diff --git a/index.html b/index.html index a0671928dc..37127abffc 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.774e60d0.async.js b/p__Classrooms__Lists__Exercise__Add__index.3ca60ab0.async.js similarity index 69% rename from p__Classrooms__Lists__Exercise__Add__index.774e60d0.async.js rename to p__Classrooms__Lists__Exercise__Add__index.3ca60ab0.async.js index c7703ca55f..60034fa86b 100644 --- a/p__Classrooms__Lists__Exercise__Add__index.774e60d0.async.js +++ b/p__Classrooms__Lists__Exercise__Add__index.3ca60ab0.async.js @@ -1,6 +1,6 @@ -(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 1-.102-1.494l.102-.006h3.425Z",fill:"#3061D0",fillRule:"nonzero"}));Gt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUuMTkgMS40ODhhMi4xMzMgMi4xMzMgMCAwIDEgMy42MiAwbC45NiAxLjU0YS4yNS4yNSAwIDAgMCAu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iIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg=="},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(` +(self.webpackChunk=self.webpackChunk||[]).push([[292],{87169:function(ot,Zt,ae){"use strict";ae.d(Zt,{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,Zt,ae){"use strict";ae.d(Zt,{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,Zt,ae){"use strict";ae.d(Zt,{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,Zt){"use strict";Zt.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,Zt){"use strict";Zt.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,Zt){"use strict";Zt.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,Zt,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 1-.102-1.494l.102-.006h3.425Z",fill:"#3061D0",fillRule:"nonzero"}));Zt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUuMTkgMS40ODhhMi4xMzMgMi4xMzMgMCAwIDEgMy42MiAwbC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gzLjQyNVoiIGZpbGw9IiMzMDYxRDAiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg=="},42128:function(ot,Zt,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"}));Zt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},95006:function(ot,Zt,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"}));Zt.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 Zt=[];function ae(ue,E){var a=Zt.pop();return a===void 0?new go.Point(ue,E):(a.x=ue,a.y=E,a)}function b(){var ue=Zt.pop();return ue===void 0?new go.Point:ue}function Ee(ue){Zt.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,st=z-Le*y;Fe=ue,Qe=Le*Fe+st}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,st=z-Le*y;Fe=(st-Ye)/(Me-Le),Qe=Me*Fe+Ye}return se.x=Fe,se.y=Qe,se}function Be(ue,E,a,x,y,z,te,oe,se,le,Pe,Fe,Qe,Le){var st=1-se,Me=se,Ye=ue*st+a*Me,Ge=E*st+x*Me,$e=a*st+y*Me,be=x*st+z*Me,ft=y*st+te*Me,ct=z*st+oe*Me,yt=Ye*st+$e*Me,Pt=Ge*st+be*Me,En=$e*st+ft*Me,xn=be*st+ct*Me,Wt=yt*st+En*Me,St=Pt*st+xn*Me;le.x=Ye,le.y=Ge,Pe.x=yt,Pe.y=Pt,Fe.x=Wt,Fe.y=St,Qe.x=En,Qe.y=xn,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(),st=b(),Me=b();Be(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.58,Qe,Qe,Me,Le,st);var Ye=b(),Ge=b(),$e=b();Be(te,oe+z,te-y,oe+z,te-z,oe+y,te-z,oe,.42,Ye,Ge,$e,Qe,Qe);var be=b(),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,st.x*E,st.y*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+z)*a,(te+z)*E,(oe+y)*a,(te+y)*E,(oe+z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,$e.x*E,$e.y*a,Ye.x*E,Ye.y*a,Ge.x*E,Ge.y*a).close()),Ee(le),Ee(Pe),Ee(Fe),Ee(Qe),Ee(Le),Ee(st),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 st=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,(st.x*.1+.9)*E,.15*a)),Qe.add(new go.PathSegment(go.PathSegment.Line,(st.x*.1+.9)*E,(st.y*.1+.05*.9)*a)),Qe.add(new go.PathSegment(go.PathSegment.Line,st.x*E,st.y*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,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(st),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ue,E,a){var x=new go.Geometry,y=.375,z=0,te=-.125,oe=y*xe,se=new go.PathFigure((.525+z)*E,(.5+y+te)*a,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+te)*a,(.5+oe+z)*E,(.5+y+te)*a,(.5+y+z)*E,(.5+oe+te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+te)*a,(1-.5+y+z)*E,(.5-oe+te)*a,(.5+oe+z)*E,(.5-y+te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+te)*a,(.5-oe+z)*E,(.5-y+te)*a,(.5-y+z)*E,(.5-oe+te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.475+z)*E,(.5+y+te)*a,(.5-y+z)*E,(.5+oe+te)*a,(.5-oe+z)*E,(.5+y+te)*a)),se.add(new go.PathSegment(go.PathSegment.Line,.475*E,.85*a)),se.add(new go.PathSegment(go.PathSegment.Line,.425*E,.85*a)),se.add(new go.PathSegment(go.PathSegment.Line,.425*E,.9*a)),se.add(new go.PathSegment(go.PathSegment.Line,.475*E,.9*a)),se.add(new go.PathSegment(go.PathSegment.Line,.475*E,a)),se.add(new go.PathSegment(go.PathSegment.Line,.525*E,a)),se.add(new go.PathSegment(go.PathSegment.Line,.525*E,.9*a)),se.add(new go.PathSegment(go.PathSegment.Line,.575*E,.9*a)),se.add(new go.PathSegment(go.PathSegment.Line,.575*E,.85*a)),se.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a).close()),y=.325,z=0,te=-.125,oe=y*xe;var se=new go.PathFigure((1-.5+y+z)*E,(.5+te)*a,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5+y+te)*a,(.5+y+z)*E,(.5+oe+te)*a,(.5+oe+z)*E,(.5+y+te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+te)*a,(.5-oe+z)*E,(.5+y+te)*a,(.5-y+z)*E,(.5+oe+te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+te)*a,(.5-y+z)*E,(.5-oe+te)*a,(.5-oe+z)*E,(.5-y+te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+te)*a,(.5+oe+z)*E,(.5-y+te)*a,(1-.5+y+z)*E,(.5-oe+te)*a));var se=new go.PathFigure((.525+z)*E,(.5+y+te)*a,!1);return x.add(se),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ue,E,a){var x=ue?ue.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ue,E,a){var x=ue?ue.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,x*E,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,x*E,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ue,E,a){var x=new go.Geometry().add(new go.PathFigure(.5*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*E,.5*a,.5*E,.5*a)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Move,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ue,E,a){var x=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ue,E,a){var x=.5;return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,x*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new 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 st=new go.PathFigure((se-oe)*E+Pe,le*a+Fe,!0);x.add(st),st.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)),st.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)),st.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)),st.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,st=new go.PathFigure(se*E,(1-le)*a,!1);return x.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,Pe*E,Fe*a,Pe*E,.7*a,Pe*E,Fe*a)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+z)*E,(Le+z)*a,(.5+y+z)*E,(.5-oe+z)*a,(.5+oe+z)*E,(.5-y+z)*a)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+te)*a,(.5-oe+z)*E,(.5-y+te)*a,(.5-y+z)*E,(.5-oe+te)*a)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.35+z)*E,.9*a,(.5-y+z)*E,(.5+oe+te)*a,(.5-oe+z)*E,.9*a)),st.add(new go.PathSegment(go.PathSegment.Move,(.25+z)*E,.8*a)),st.add(new go.PathSegment(go.PathSegment.Line,(.35+z)*E,.9*a)),st.add(new go.PathSegment(go.PathSegment.Line,(.2+z)*E,.95*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var te=new go.PathFigure(0,.5*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.2*E,.35*a,.3*E,.35*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.7*E,.65*a,.8*E,.65*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var y=new go.PathFigure(0,.2*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.7*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,0,.6*E,.5*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,a,.4*E,.5*a,E,.5*a).close());var z=new go.PathFigure(.45*E,.73*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.73*a)),z.add(new go.PathSegment(go.PathSegment.Move,.38*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.63*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Move,.31*E,.27*a)),z.add(new go.PathSegment(go.PathSegment.Line,.56*E,.27*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(.335*E,(1-.555)*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.68*a,(1-.12)*E,.46*a,(1-.02)*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.335*E,(1-.555)*a,.02*E,.54*a,.12*E,.46*a)),z.add(new go.PathSegment(go.PathSegment.Line,.365*E,(1-.595)*a));var te=.5-.285,oe=.5,se=te,le=Math.PI/4,Pe=4*(1-Math.cos(le))/(3*Math.sin(le)),Fe=Pe*.5,Qe=te,Le=te,st=Pe*Qe,Me=Pe*Le;z.add(new go.PathSegment(go.PathSegment.Bezier,(oe-Qe)*E,se*a,(oe-(st+Qe)/2)*E,(se+(Le+Me)/2)*a,(oe-Qe)*E,(se+Me)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(se-Le)*a,(oe-Qe)*E,(se-Me)*a,(oe-st)*E,(se-Le)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(oe+Qe)*E,se*a,(oe+st)*E,(se-Le)*a,(oe+Qe)*E,(se-Me)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*E,(1-.595)*a,(oe+Qe)*E,(se+Me)*a,(oe+(st+Qe)/2)*E,(se+(Le+Me)/2)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*E,(1-.595)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a));var Ye=new go.PathFigure(.2*E,a,!1);x.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Line,.2*E,.8*a));var Ge=new go.PathFigure(.8*E,a,!1);return x.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var z=new go.PathFigure(.2*E,.2*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var te=new go.PathFigure(.1*E,a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.05*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.8*a,0,a,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.1*a,.5*E,0,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.95*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,E,a,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,a));var z=.05;return y.add(new go.PathSegment(go.PathSegment.Move,(.5-z)*E,.875*a)),y.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*E,.875*a,z*E,z*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.325*a,.575*E,.725*a,.625*E,.375*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.75*a,.375*E,.375*a,.425*E,.725*a)),x}),go.Shape.defineFigureGenerator("Recycle",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.45*E,.95*a,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.185*E,.85*a,.17*E,.95*a,.15*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.235*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.625*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,.275*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.575*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.1875*E,.95*a,0,.675*a,0,.7*a)),y.add(new go.PathSegment(go.PathSegment.Move,.45*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.775*a)),y.add(new go.PathSegment(go.PathSegment.Line,.22*E,.775*a));var z=new go.PathFigure(.475*E,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.225*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.275*E,.175*a)),z.add(new go.PathSegment(go.PathSegment.Line,.325*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.05*a,.35*E,0,.375*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.575*E,.375*a)),z.add(new go.PathSegment(go.PathSegment.Line,.525*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.475*a)),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.315*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.32*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,0,.65*E,.05*a,.625*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.38*E,.0105*a));var te=new go.PathFigure(.675*E,.575*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.875*E,.525*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.85*E,.95*a,E,.8*a,E,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,.95*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,.725*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Line,.7*E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Move,.675*E,.575*a)),te.add(new go.PathSegment(go.PathSegment.Line,.775*E,.775*a)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ue,E,a){var x=new go.Geometry,y=.5,z=xe*.5,te=new go.PathFigure(E,y*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,y*E,a,E,(y+z)*a,(y+z)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y*a,(y-z)*E,a,0,(y+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,y*E,0,0,(y-z)*a,(y-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,y*a,(y+z)*E,0,E,(y-z)*a));var oe=new go.PathFigure(y*E,0,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,y*E,.15*a)),oe.add(new go.PathSegment(go.PathSegment.Move,y*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,y*E,.85*a)),oe.add(new go.PathSegment(go.PathSegment.Move,0,y*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.15*E,y*a)),oe.add(new go.PathSegment(go.PathSegment.Move,E,y*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.85*E,y*a)),oe.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.58*E,.1*a)),oe.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.78*E,.54*a)),x}),go.Shape.defineFigureGenerator("Package",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.15*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,.15*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.15*a).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var te=new go.PathFigure(0,.5*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Component",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close());var z=new go.PathFigure(0,.2*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var te=new go.PathFigure(0,.6*a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.45*E,.6*a)),te.add(new go.PathSegment(go.PathSegment.Line,.45*E,.8*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.15*E,.6*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a));var z=new go.PathFigure(.15*E,.6*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(E,.8*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.8*a).close());var te=.1,oe=xe*.1,se=.2,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,st=new go.PathFigure((Qe-Pe)*E,Le*a,!0);x.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le-Pe)*a,(Qe-Pe)*E,(Le-Fe)*a,(Qe-Fe)*E,(Le-Pe)*a)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+Pe)*E,Le*a,(Qe+Fe)*E,(Le-Pe)*a,(Qe+Pe)*E,(Le-Fe)*a)),st.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le+Pe)*a,(Qe+Pe)*E,(Le+Fe)*a,(Qe+Fe)*E,(Le+Pe)*a)),st.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={},Zt="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,xn(Te,et)},ot.setJavaCodebase=ot.setJavaCodebaseVersion=ot.isCompiledInstalled=ot.setPreCompiledScriptPath=ot.setPreCompiledResourcePath=function(){},ot.setHTML5CodebaseVersion=function(Te,et){var Kt=parseFloat(Te);if(Kt!==NaN&&Kt<5){console.log("The GeoGebra HTML5 codebase version "+Kt+" 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",Kt=ae.id,wn,Mt=!1,Xt=0;Xt=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 st=function(Te,et,Kt){var wn=document.createElement("param");wn.setAttribute("name",et),wn.setAttribute("value",Kt),Te.appendChild(wn)},Me=function(Te){return Te&&Te!=="false"},Ye=function(Te,et,Kt){se(ue)<=4.2&&(Kt=!0);var wn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ue||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(wn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Mt=document.createElement("div");Mt.classList.add("appletParameters","notranslate");var Xt=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,Xt=605);else{var rt=100;(Me(et.showToolBar)||Me(et.showMenuBar))&&(et.hasOwnProperty("customToolBar")&&(et.customToolbar=et.customToolBar),rt=Me(et.showMenuBar)?245:155),Xt=5?(et.appletOnLoad=function(Tn){var Va=Te.querySelector(".ggb_preview");Va&&Va.parentNode.removeChild(Va),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(pt),window.GGBT_wsf_view&&$(window).trigger("resize"),tt(Tn)},Xn||pt.appendChild(gn)):Mt.appendChild(gn),pt.appendChild(Mt),Xn||Te.appendChild(pt),setTimeout(function(){ot.resize()},1)}else{var Qt=document.createElement("div");Qt.className="applet_scaler",Qt.style.position="relative",Qt.style.display="block",Qt.appendChild(Mt),Te.appendChild(Qt),et.appletOnLoad=function(Tn){ot.resize(),tt(Tn)}}function Tt(Tn,Va){Va&&typeof Va.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Tn,Va.appletOnLoad):renderGGBElement(Tn),Wt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Va)}function Vn(Tn,Va){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Tn,params:Va}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Aa){Tt(Aa.article,Aa.params)}),html5AppletsToProcess=null)},se(ue)<5&&(Tn.className+=" geogebraweb")):Tt(Tn,Va)}if(wn){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=wn,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},yt=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){xn(ue,!0);return}var Kt=!Ee;if(Kt){var wn=se(ue);!isNaN(wn)&&wn<4.4&&(Kt=!1)}var Mt,Xt;window.location.protocol.substr(0,4)==="http"?Mt=window.location.protocol:Mt="http:";var Ce=ue.indexOf("//");Ce>0?Xt=ue:Ce===0?Xt=Mt+ue:Xt="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]+"/"){xn(Xt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Kt&&!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")?Xt+="webSimple/":Xt+="web3d/",xn(Xt,!1)},xn=function(Te,et){if(Te.requirejs){ke=Te;return}Te.slice(-1)!=="/"&&(Te+="/"),ke=Te,et===null&&(et=Te.indexOf("http")===-1),ze=et,E="web.nocache.js",a=!1;var Kt=ke.split("/");Kt.length>1&&(!et&&Kt[Kt.length-2]==="webSimple"?(E="webSimple.nocache.js",a=!0):Pt.indexOf(Kt[Kt.length-2])>=0&&(E=Kt[Kt.length-2]+".nocache.js")),Kt=Te.split("/"),ue=Kt[Kt.length-3],ue.substr(0,4)==="test"?ue=ue.substr(4,1)+"."+ue.substr(5,1):(ue.substr(0,3)==="war"||ue.substr(0,4)==="beta")&&(ue="5.0");var wn=parseFloat(ue);wn!==NaN&&wn<5&&Te.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+wn+" is deprecated. Using version latest instead."),En("5.0",et))},Wt=function(Te,et){window.console&&window.console.log&&(!et||typeof et.showLogging=="undefined"||et.showLogging&&et.showLogging!=="false")&&console.log(Te)};ae.material_id!==void 0?Fe(St):St();function St(){var Te=Zt;We!==null?Te=We:parseFloat(Te)<5&&(Te="5.0"),En(Te,!1),xe!==null&&xn(xe,ze),Re=!0}return ot},GGBAppletUtils=function(){"use strict";function ot(){return window.GGBT_wsf_edit!==void 0}function Zt(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 Zt=c[ot];return Zt==null?null:Zt},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 Zt(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=Zt(Be),Be}function C(ot){return ot.match(/^\//)||ot.match(/^[a-zA-Z]+:\/\//)?ot:webModule.__moduleBase+ot}function D(){var ot=[],Zt=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&&(Zt=parseInt(we.substring(Be+P),$),we=we.substring(O,Be))}catch(Re){}return webModule.__softPermutationId=Zt,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,Zt,ae){"use strict";ae.d(Zt,{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,Zt,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()}}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=` +`+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()}}Zt.Z=xe},85525:function(ot,Zt,ae){"use strict";ae.d(Zt,{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,xn,Wt)=>new Promise((St,Te)=>{var et=Mt=>{try{wn(Wt.next(Mt))}catch(Xt){Te(Xt)}},Kt=Mt=>{try{wn(Wt.throw(Mt))}catch(Xt){Te(Xt)}},wn=Mt=>Mt.done?St(Mt.value):Promise.resolve(Mt.value).then(et,Kt);wn((Wt=Wt.apply(En,xn)).next())});const le=` @@ -136,35 +136,35 @@ initArrayDisplay(); <\/script> -`;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 +`;function Pe({open:En=!0,onChange:xn,defaultValue:Wt,placement:St,width:Te,height:et,extra:Kt,onDynamic:wn,showExtra:Mt=!0}){const Xt=(0,b.useRef)(null),Ce=(0,b.useRef)(null),[rt,rn]=(0,b.useState)(Wt||""),[tt,pt]=(0,b.useState)(Wt||""),[Xn,gn]=(0,b.useState)(!!En),[Qt,Tt]=(0,b.useState)(1),Vn={selectOnLineNumbers:!0};(0,b.useEffect)(()=>{En&&(rn(Wt),pt(Wt),gn(!0))},[En,Wt]),(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",Xt.current){Xt.current.innerHTML="",Xt.current.appendChild(tn);const Ba=tn.contentDocument||tn.contentWindow.document;Ba.open(),Ba.write(rt),Ba.close()}},1e3))},[En,rt]);const ia=tn=>{rn(tn),xn==null||xn(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:Qt,onChange:tn=>Tt(tn)}),oe.createElement(te.Z,{type:"primary",className:"ml20",onClick:()=>se(this,null,function*(){yield wn(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:Qt===1?"block":"none"}},oe.createElement("div",{className:"h100",ref:Xt})),oe.createElement(a.Z,{flex:"1",style:{display:Qt===2?"block":"none"}},oe.createElement(y.ZP,{height:"90vh",value:Wt,language:"html",theme:"vs",showMiniMap:!1,options:Vn,onChange:ia}))))}var Fe=Pe,Qe=Object.defineProperty,Le=Object.defineProperties,st=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,$e=(En,xn,Wt)=>xn in En?Qe(En,xn,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):En[xn]=Wt,be=(En,xn)=>{for(var Wt in xn||(xn={}))Ye.call(xn,Wt)&&$e(En,Wt,xn[Wt]);if(Me)for(var Wt of Me(xn))Ge.call(xn,Wt)&&$e(En,Wt,xn[Wt]);return En},ft=(En,xn)=>Le(En,st(xn)),ct=(En,xn)=>{var Wt={};for(var St in En)Ye.call(En,St)&&xn.indexOf(St)<0&&(Wt[St]=En[St]);if(En!=null&&Me)for(var St of Me(En))xn.indexOf(St)<0&&Ge.call(En,St)&&(Wt[St]=En[St]);return Wt},Pt=({onFinish:En,value:xn,streamingStatus:Wt,cancelIndex:St,loadImage:Te,onDynamic:et})=>{const[Kt,wn]=(0,b.useState)(""),[Mt,Xt]=(0,b.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Ce,rt]=(0,b.useState)(0),[rn,tt]=(0,b.useState)(!1),pt=Qt=>Qt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Tt,Vn)=>`$$${Vn.trim()}$$`).replace(/\\\(([\s\S]*?)\\\)/g,'$$$$$1$$$$').replace(/\\\[([\s\S]*?)\\\]/g,'$$$$$1$$$$').replace(/_{2,}/g,"`$&`"),Xn=()=>{tt(!0),En==null||En()};(0,b.useEffect)(()=>{const Qt=Te?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A -${Bn}`:Bn,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]:""} +${xn}`:xn,Tt=pt(Qt);if(!rn)if(Te||!Wt||St>0){wn(Tt),rt(Tt.length),(!Wt||St>0)&&!Te&&Xn();return}else if((Tt==null?void 0:Tt.length)<4)wn(Tt),rt(Tt.length);else if(Ce{wn(Tt.slice(0,Ce+2)),rt(tn=>tn+2)},Vn>10?Math.max(500/(Vn/2),20):50);return()=>clearInterval(ia)}else Wt||Xn()},[xn,Wt,St,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(Qt){var Tt=Qt,{node:Vn,inline:ia,className:tn,children:Ba}=Tt,_a=ct(Tt,["node","inline","className","children"]);const Fa=/language-(\w+)/.exec(tn||""),Tn=String(Ba).trim();return ia||!Fa?b.createElement("code",be({className:tn},_a),Ba):b.createElement("code",{className:xe.codeCopy,"data-text":`\`\`\`${Fa?Fa[1]:""} ${Ba} -\`\`\``},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+` +\`\`\``},b.createElement(We.CopyToClipboard,{text:Tn,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:()=>{Xt(be({},ft(be({},Mt),{open:++Mt.open,defaultValue:Tn,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"}},_a),Tn))},img({node:Qt}){var Tt;const Vn=(Tt=Qt.properties)==null?void 0:Tt.src;return b.createElement(Oe.Z,{src:Vn,width:320,"data-text":Vn,onLoad:()=>Te&&setTimeout(()=>Xn(),500)})}}},rn?Kt:`${Kt}__`)),[Kt]);return b.createElement(b.Fragment,null,b.createElement(Fe,{defaultValue:Mt.defaultValue,open:Mt.open,language:Mt.language,height:Mt.height,onChange:(Qt,Tt)=>{wn(Kt.replaceAll(Tt,Qt))},onDynamic:et}),gn)}},77557:function(ot,Zt,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};Zt.Z=Ee},24745:function(ot,Zt,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});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/P73Z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f2VAxAf9Z49k5yNw3g7bualQDK7wfemy7puFk2TplgYL89psNDZEoLCyKVoVY3gvLqpKCcBcrD+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,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+BuAY9X6pXtGcSBEzVneFsiN8C6lqFKqihuc8MX3pgCTrAFurt2fc2jBj/AI/5GiuGBaCVIgtv2vOnAmd89OstT8Vq33fPL7pzgdJ6LKotaAoLx/k73Jzza8ANs8h1SD1gcBdMfCHg8ki/aMojzk3lPRH9hAxtfp+tfPN64AdZ6/c+pK+jvcr/DU6GwXaqAUT0FwDRfUQJgmgEYrV4ANKpgmssLgGkGYLR6AdCogmkuLwCmGYDR6gVAowqmubwAmGYARqsXAI0qmObyAmCaARitXgA0qmCaywuAaQZgtHoB0KiCaS4vAKYZgNHqBUCjCqa5vACYZgBGqxcAjSqY5vKmARR5nmkmmaD65fJII0/kRZ6nteFpo1PnkSKR55lZ8KLRxvJIRZ5nZgJkUbM8UlSnyfPcXpkLPz1QBPm5mXti2Rj51AzAXz4ah0vXZxZPD8E4qtPkef76xY0CnkWvAAbxN38ejUXHBjZIO4z9betGi4YvwmI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2wrsl3SD0SEx891y99PIgU0MRAl+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("(?]*>/g,""),De=xe(De),De});Zt.Z=Ee},25062:function(ot,Zt,ae){"use strict";ae.d(Zt,{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+jEpiUBjQFaJp3WNRYSr1kQGstBtwCdMfm5ZeV1BqYxmMxmIGGoaTZ0x4TuOLZBmoox6K5jGw7t50BzvGMZfReD5gKa60JP5x3tyTULH511wgn2cBH/QIFo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M+Fw3EoxgtDVZaKpjn1WhRVFciU+wb3SMeTeZdUamx2V7KSjLzjN+iKdeGMbmnboOWgjHg5BfHCoOfab3yytGpxI7lb9LKcXLA2h3gcukwHrHxpW+hxW2LZOqc07MGSVHHOzFse2HcMTzird+6m2pffHzve5AjAPledkuC+HbLVvcXCyGlwehTKgiSp3ticY6C3ObLfUubD6PNBI/MTAIlFHk5pHKkQ9XMgqMtVa6tgAOH8vjx08OYCjjq4ePCCF2ijD8vc4vzX/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,Zt,ae){"use strict";ae.d(Zt,{Z:function(){return xn}});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:Wt,children:St})=>{const{left:Te=0,top:et=0}=Wt||{},[Kt,wn]=(0,b.useState)(Te),[Mt,Xt]=(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,Qt=et;Te+rn>pt&&(gn=pt-rn),gn<0&&(gn=0),et+tt>Xn&&(Qt=Xn-tt),Qt<0&&(Qt=0),wn(gn),Xt(Qt)}};return(0,b.useEffect)(()=>{if(!Ce.current||!Wt)return;const rn=new ResizeObserver(()=>{rt()});return rn.observe(Ce.current),()=>{rn.disconnect()}},[Te,et,Wt]),(0,b.useEffect)(()=>{Wt&&rt()},[Te,et,Wt]),Wt?b.createElement("div",{ref:Ce,style:{position:"fixed",left:`${Kt}px`,top:`${Mt}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=(Wt,St,Te)=>St in Wt?ue(Wt,St,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Wt[St]=Te,oe=(Wt,St)=>{for(var Te in St||(St={}))y.call(St,Te)&&te(Wt,Te,St[Te]);if(x)for(var Te of x(St))z.call(St,Te)&&te(Wt,Te,St[Te]);return Wt},se=(Wt,St)=>E(Wt,a(St)),le=(Wt,St,Te)=>new Promise((et,Kt)=>{var wn=Ce=>{try{Xt(Te.next(Ce))}catch(rt){Kt(rt)}},Mt=Ce=>{try{Xt(Te.throw(Ce))}catch(rt){Kt(rt)}},Xt=Ce=>Ce.done?et(Ce.value):Promise.resolve(Ce.value).then(wn,Mt);Xt((Te=Te.apply(Wt,St)).next())}),Fe=({visible:Wt,position:St,selectText:Te,applyRefinedText:et,fetchUrl:Kt,noRestrictModal:wn})=>{var Mt;const[Xt,Ce]=(0,b.useState)(!1),[rt,rn]=(0,b.useState)([]),[tt,pt]=(0,b.useState)(""),[Xn,gn]=(0,b.useState)(1),[Qt,Tt]=(0,b.useState)(""),[Vn,ia]=(0,b.useState)(!1),tn=(0,b.useRef)(null),[Ba,_a]=(0,b.useState)(!1),[Fa,Tn]=(0,b.useState)(0),Va=(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(Wt){gn(1);return}_a(!1),Ce(!1),vr(),Tn(0),rn([]),gn(0)},[Wt]);const vr=()=>{var Da,Ra;pt(""),Tt(""),(Ra=(Da=tn.current)==null?void 0:Da.cancelRequest)==null||Ra.call(Da)},ua=(...Da)=>le(void 0,[...Da],function*(Ra="",wr=rt){const ar=Date.now(),kr=[...wr,{text:Ra,key:ar,sender:"user",show:!0},{loading:!0,key:ar,sender:"AI",show:!0}];gn(2),rn(kr);const Mo=da(wr),Ut={no_record_times:!0,prompt:Ra,history:Mo};tn.current=new Ue.Z(ke.Z.API_SERVER+Kt,Ut),yield new Promise(Yn=>{tn.current.on("data",$n=>{const{chunk:{msg:ba},full:Ze}=$n,Rt=ba==="error";_a(!0),Tt(ln(Ze)),rn(qt=>qt.map((vn,kt)=>kt===qt.length-1?se(oe({},vn),{text:Ze,loading:!1,error:Rt}):vn))}),tn.current.on("done",()=>Yn()),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),wn($n.data)),rn(Ze=>Ze.map((Rt,qt)=>qt===Ze.length-1?se(oe({},Rt),{text:ba,loading:!1,error:!0}):Rt)),Yn()}),tn.current.on("cancelled",()=>Yn()),tn.current.startStream()}),Ce(!1)}),jn=Da=>{pt(Da.target.value)},da=Da=>Da.reduce((wr,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)&&wr.push({question:ar.text,answer:kr.text})}return wr},[]),Ea=()=>{if(Qa)return;const Da=Et("\u6539\u5199");vr(),Ce(!0),ua(Da)},xa=Da=>{if(Da.key==="Enter"&&!Da.shiftKey){if(Da.preventDefault(),Va.current||Ca)return;Ea()}},Ja=()=>{var Da,Ra;Tn(wr=>wr+1),(Ra=(Da=tn.current)==null?void 0:Da.cancelRequest)==null||Ra.call(Da),Ce(!1),_a(!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")}],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((wr,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(wr=>{const ar=new RegExp(wr,"g");Da=Da.replace(ar,`**${wr}** `)}),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`,jt=Da=>{let Ra="";Da.key==="1"&&(Ra=Et("\u6DA6\u8272")),Da.key==="2"&&(Ra=Et("\u6269\u5199")),Da.key==="3"&&(Ra=Et("\u7F29\u5199")),vr(),Ce(!0),ua(Ra)},Ga=()=>{const Da=rt.splice(rt.length-2),{text:Ra}=(Da==null?void 0:Da[0])||{};vr(),Ce(!0),ua(Ra,rt)},Ca=Xt||Ba,Qa=(tt==null?void 0:tt.trim())==="";return Wt?b.createElement(Ee.Z,{open:Qa&&!Ca&&(Vn||!Qt),overlayStyle:{minWidth:200},menu:{items:Sn,onClick:jt}},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"})),Qt&&b.createElement(xe.Z,{cancelIndex:Fa,streamingStatus:Xt,loadImage:!1,onFinish:()=>le(void 0,null,function*(){Tn(0),setTimeout(()=>_a(!1),0)}),value:Qt})),b.createElement("div",{className:Ke.btnContainer},b.createElement("div",{onClick:()=>et(!0,Qt),className:Ke.btn,style:{padding:"0 16px",width:"initial"}},b.createElement("i",{className:"iconfont icon-tihuan mr10 font14"}),"\u66FF\u6362"),b.createElement("div",{onClick:()=>et(!1,Qt),className:Ke.btn,style:{padding:"0 16px",width:"initial"}},b.createElement("i",{className:"iconfont icon-charu mr10 font14"}),"\u63D2\u5165"),b.createElement(ze.CopyToClipboard,{text:Qt,onCopy:()=>we.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},b.createElement(Be.Z,{title:"\u590D\u5236"},b.createElement("div",{className:Ke.btn,style:{marginLeft:"auto"}},b.createElement("i",{className:"iconfont icon-fuzhi8 font14"})))),b.createElement(Be.Z,{title:"\u91CD\u65B0\u751F\u6210"},b.createElement("div",{onClick:Ga,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:jn,onPressEnter:xa,onCompositionStart:()=>Va.current=!0,onCompositionEnd:()=>Va.current=!1}),Ba?b.createElement("div",{className:`iconfont icon-tingzhihuida ${Ke.cancelBtn}`,onClick:Ja}):b.createElement(We.ZP,{className:Qa?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,st=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ge=(Wt,St,Te)=>St in Wt?Le(Wt,St,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Wt[St]=Te,$e=(Wt,St)=>{for(var Te in St||(St={}))Me.call(St,Te)&&Ge(Wt,Te,St[Te]);if(st)for(var Te of st(St))Ye.call(St,Te)&&Ge(Wt,Te,St[Te]);return Wt};const be=Wt=>React.createElement("svg",$e({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Wt),React.createElement("title",null,"AI\u6539\u5199"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"26.797%",y1:"22.073%",x2:"82.181%",y2:"80.474%",id:"rewrite_svg__a"},React.createElement("stop",{stopColor:"#5C64FF",offset:"0%"}),React.createElement("stop",{stopColor:"#6988F8",offset:"100%"}))),React.createElement("path",{d:"m10.406 4.741.007.015h-.007v-.022.007Zm-.04-.04.855-1.495 1.497-.855-1.496-.855L10.366 0l-.854 1.497-1.497.855 1.496.854.855 1.495ZM3.1 8.442l1.71 3.1 1.603-3.1 3.1-1.71L6.52 5.023l-1.71-3.1-1.71 3.1L0 6.733l3.099 1.709H3.1Zm6.84 3.1 1.069 1.924 1.068-1.924L14 10.473l-1.924-1.069-1.069-1.923L9.94 9.405l-1.924 1.068 1.924 1.07v-.001Z",fill:"url(#rewrite_svg__a)",fillRule:"nonzero"}));var ft="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",yt=(0,b.forwardRef)(({initialContent:Wt,onButtonClick:St},Te)=>{const[et,Kt]=(0,b.useState)(null),[wn,Mt]=(0,b.useState)(null),[Xt,Ce]=(0,b.useState)(""),[rt,rn]=(0,b.useState)(null),tt=Te,pt=tn=>{const Ba=document.elementFromPoint(10,tn),_a=document.createRange();let Fa=null;const Tn=document.createTreeWalker(tt.current,NodeFilter.SHOW_TEXT,{acceptNode:Ea=>{const xa=document.createRange();xa.selectNodeContents(Ea);const Ja=xa.getBoundingClientRect();return Ja.top<=tn&&Ja.bottom>=tn?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let Va="",Aa,vr,ua=null,jn=null,da=null;for(;Aa=Tn.nextNode();){Aa.parentNode.getAttribute("data-select")==="disabled"&&(vr=!0),Va+=Aa.textContent,jn||(jn=Aa),da=Aa;const Ea=document.createRange();Ea.selectNodeContents(Aa);const xa=Ea.getBoundingClientRect();ua===null&&(ua=xa.top)}if(jn&&da&&!vr){const Ea=document.createRange();Ea.setStart(jn,0),Ea.setEnd(da,da.textContent.length),rn(Ea)}else rn(null);return Mt(ua-1),vr?"":Va.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,_a;if(Xn(tn.target)){Mt(-1e6);return}if(((_a=(Ba=document.getSelection())==null?void 0:Ba.toString)==null?void 0:_a.call(Ba))!==""){Mt(-1e6);return}const Fa=pt(tn.clientY);if((Fa==null?void 0:Fa.trim())===""){Mt(-1e6);return}const Tn=tt.current.getBoundingClientRect();Kt(Tn.left-30),Ce(Fa)},Qt=()=>{},Tt=tn=>{St&&Xt&&St(Xt,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",Qt),()=>{tn.removeEventListener("mousemove",gn),tn.removeEventListener("mouseleave",Qt),ia()}},[Wt]),b.createElement("div",{className:Qe["hover-line-container2"]},wn!==null&&b.createElement("div",{className:Qe["line-button-container"],style:{top:wn,left:et},onMouseEnter:()=>{Vn()},onMouseLeave:()=>{ia(),Mt(null),Ce(""),rn(null)}},b.createElement("div",{className:Qe.button,onClick:Tt},b.createElement("img",{src:ft}),b.createElement("span",null,"AI\u6539\u5199"))))}),Pt={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},xn=({nodeRef:Wt,noRestrictModal:St})=>{const[Te,et]=(0,b.useState)(null),[Kt,wn]=(0,b.useState)(null),[Mt,Xt]=(0,b.useState)(!1),[Ce,rt]=(0,b.useState)(null),[rn,tt]=(0,b.useState)(!1),[pt,Xn]=(0,b.useState)(!1),gn=Wt,Qt=(0,b.useRef)(null),Tt=(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 Tn=window.getSelection(),Va=gn.current.scrollTop,Aa=gn.current.getBoundingClientRect();if(Tn.rangeCount>0&&Tn.toString().length>0){const vr=Tn.getRangeAt(0);et(vr.cloneRange());const ua=vr.getBoundingClientRect(),jn=40;let da=ua.top+Va-5+jn;da{if(!Tn||Tn.rangeCount===0){tt(!1);return}const Aa=Tn.getRangeAt(0).getBoundingClientRect(),vr=window.getComputedStyle(gn.current),ua=parseInt(vr.lineHeight),jn=parseInt(vr.paddingTop),da=gn.current.scrollTop,Ea=gn.current.getBoundingClientRect(),xa=Aa.top-Ea.top+da,Ja=Math.floor((xa-jn)/ua),Sn=jn+Ja*ua-da;rt(Sn),tt(!0)},_a=Tn=>{gn.current&&!gn.current.contains(Tn.target)&&Xn(!1)};(0,b.useEffect)(()=>{const Tn=gn.current;return Tn.addEventListener("scroll",tn),Tn.addEventListener("input",tn),Tn.addEventListener("click",tn),Tn.addEventListener("mouseup",tn),Tn.addEventListener("keyup",tn),Tn.addEventListener("click",tn),document.addEventListener("mousedown",_a),()=>{Tn.removeEventListener("scroll",tn),Tn.removeEventListener("input",tn),Tn.removeEventListener("click",tn),Tn.removeEventListener("mouseup",tn),Tn.removeEventListener("keyup",tn),Tn.removeEventListener("click",tn),document.removeEventListener("mousedown",_a)}},[]);const Fa=(Tn=!0,Va)=>{if(!Te)return;const Aa=Tt.current.querySelector("section.edu_md").innerHTML.replace(/]*>([\s\S]*?)<\/p>/g,"$1"),vr=Te.cloneRange(),ua=window.getSelection();if(ua.removeAllRanges(),ua.addRange(vr),Tn){vr.deleteContents();const jn=document.createElement("div");jn.innerHTML=Aa;const da=Array.from(jn.childNodes);for(;da.length>0;)vr.insertNode(da.pop())}else{vr.collapse(!1);const jn=document.createElement("div");jn.innerHTML=" "+Aa;const da=Array.from(jn.childNodes);for(;da.length>0;)vr.insertNode(da.pop())}ua.removeAllRanges(),et(null),Xt(!1),wn(null)};return b.createElement("section",{ref:Tt},Kt&&b.createElement("div",{ref:Qt,className:Pt.toolbar,style:{top:Kt==null?void 0:Kt.top,left:Kt==null?void 0:Kt.left}},b.createElement("div",{className:Pt.button,onClick:()=>Xt(!0)},b.createElement("img",{src:ft}),b.createElement("span",null,"AI\u6539\u5199"))),b.createElement(Fe,{key:JSON.stringify(Kt),noRestrictModal:St,visible:Mt,position:Kt,selectText:Vn,applyRefinedText:Fa,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),gn.current&&b.createElement(yt,{ref:gn,onButtonClick:(Tn,Va,Aa,vr)=>{et(vr),Xt(!0),ia(Tn),wn({left:Va,top:Aa+20})}}))}},51874:function(ot,Zt,ae){"use strict";ae.d(Zt,{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,Zt,ae){"use strict";ae.d(Zt,{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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dVDqvTm/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:st=!0,onStatusChange:Me,stringTransformer:Ye,bottomContainerNode:Ge})=>{const[$e,be]=(0,b.useState)(!1),[ft,ct]=(0,b.useState)(""),[yt,Pt]=(0,b.useState)(0),[En,xn]=(0,b.useState)(!1),Wt=(0,b.useRef)(null),St=(0,b.useRef)(null),Te=(0,b.useRef)(null),et=(0,b.useRef)(null),Kt=(0,xe.Z)({scrollBoxRef:et,bottomInspectRef:Te,contentRef:St,status:En,bottomOffset:Qe}),wn=$e||En;(0,b.useEffect)(()=>{z==null||z(ft)},[ft]),(0,b.useEffect)(()=>{Me==null||Me({contentRef:St,status:wn,value:ft,open:Mt,close:Xt})},[wn,ft]);const Mt=rt=>Ue(void 0,null,function*(){be(!0),ct(""),Pt(0);const rn=le;rt!=null&&rt.fetchUrl&&delete rt.fetchUrl,Wt.current=new we.Z(`${Be.Z.API_SERVER}${rn}`,rt),yield new Promise((tt,pt)=>{Wt.current.on("data",Xn=>{let{chunk:{content:gn,type:Qt}}=Xn;xn(!0),Qt==="text"&&ct(Tt=>Ye?Ye(Tt+gn):Tt+gn)}),Wt.current.on("done",()=>{tt()}),Wt.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)}),Wt.current.on("cancelled",()=>{tt(),oe==null||oe()}),Wt.current.startStream()}),be(!1)}),Xt=()=>{var rt,rn;Pt(1),(rn=(rt=Wt.current)==null?void 0:rt.cancelRequest)==null||rn.call(rt),be(!1),xn(!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:!wn},ft&&b.createElement(Re.Z,{cancelIndex:yt,streamingStatus:$e,loadImage:!1,onFinish:()=>Ue(void 0,null,function*(){Pt(0),setTimeout(()=>xn(!1),0),te==null||te(ft)}),value:ft})),!ft&&!wn&&b.createElement("div",{className:Ee.imgBox},b.createElement("img",{width:56,src:Oe}),b.createElement("span",null,"\u9884\u89C8\u533A")),st&&wn&&b.createElement(Ke.Z,{text:Le}),!Kt&&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),!wn&&Fe&&Ce)}},26412:function(ot,Zt,ae){"use strict";ae.d(Zt,{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,Zt,ae){"use strict";ae.d(Zt,{o:function(){return b}});const b=Ee=>(Ee=Ee.replace(new RegExp("(?$1'),Ee=Ee.replace(new RegExp("(?$1 -`),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),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rS+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,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+K5NyfEIXBdcrwy4Ym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Mp4+vIv/uasf/i/Wf4R0vqri/mh2RfXLlow66St+fXvbu/qOW4o3z/1iMXzxOnvOIpUlYNjW2QaUvSvTbFlS462PQMUo2EaG2pIpjzT+y4UlQpDuUchH3ec6DdeUqy5+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,` +`),Ee)},57466:function(ot,Zt,ae){"use strict";ae.d(Zt,{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,st]=(0,b.useState)("1");(0,b.useEffect)(()=>{Me()},[]);const Me=()=>E(void 0,null,function*(){const $e=yield(0,we.NZ)({});if($e!=null&&$e.data){const be=[{title:b.createElement("div",{title:"\u6839\u76EE\u5F55",className:Be.name},"\u6839\u76EE\u5F55"),value:0,key:0,icon:b.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:Ye($e.data||[])}];Qe(be),st("2")}}),Ye=$e=>{function be(ft){const ct=ft.children,yt=Array.isArray(ct)&&ct.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:yt?ct==null?void 0:ct.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,Zt,ae){"use strict";ae.d(Zt,{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,Zt,ae){"use strict";ae.d(Zt,{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(st){le(st)}},Fe=Le=>{try{Qe(oe.throw(Le))}catch(st){le(st)}},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)})}),st=(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:st},Me)))}},70659:function(ot,Zt,ae){"use strict";ae.d(Zt,{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,Zt,ae){"use strict";ae.d(Zt,{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&&st()):(document.body.removeAttribute("data-custom"),se.current&&(document.head.removeChild(se.current),se.current=null))},[ze==null?void 0:ze.visible]);const st=()=>Oe(void 0,null,function*(){Fe(!0),Le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const be=yield(0,Ke.ZJ)(ze==null?void 0:ze.src);te.current.src="",te.current.src=be,te.current.onload=function(){$e()},Fe(!1),Le("")}),Me=()=>{document.body.removeAttribute("data-custom"),se.current.innerHTML=" ",a()},Ye=be=>Oe(void 0,null,function*(){Fe(!0),Le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const 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 yt=document.querySelector(ct.name);yt&&yt.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,Zt,ae){"use strict";ae.d(Zt,{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/7ClGMSMSrHCKXHCpQhYhCNB5AYqRQGq1AiKgEEAiokAJFFIoipcVE5EYFyn23IGCJgoTDQimWSJSzCIKIcglUEIGu2bdv3+77vo+XfPl2Z2Zn5z8zuzsjSPDJ0tZV2ft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5O+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),st=ae(30315),Me=ae(15342),Ye=ae.n(Me),Ge=(ua,jn,da)=>new Promise((Ea,xa)=>{var Ja=Et=>{try{ln(da.next(Et))}catch(jt){xa(jt)}},Sn=Et=>{try{ln(da.throw(Et))}catch(jt){xa(jt)}},ln=Et=>Et.done?Ea(Et.value):Promise.resolve(Et.value).then(Ja,Sn);ln((da=da.apply(ua,jn)).next())}),be=b.memo(({tagName:ua="div",value:jn="",className:da,style:Ea={},onBlur:xa,id:Ja})=>{const Sn=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(!Sn.current)return;Ge(void 0,null,function*(){const jt=Sn.current;jt.innerHTML="";const Ga=jn==null?void 0:jn.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const Ca of Ga)if(Ca.startsWith("$$")&&Ca.endsWith("$$")||Ca.startsWith("`$$")&&Ca.endsWith("$$`")){const Qa=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",jt.appendChild(Da),Ye().render(Qa,Da,{throwOnError:!1})}else{const Qa=Ca==null?void 0:Ca.replace(/<[^>]*>/g,Da=>Da.startsWith("{var Et,jt;if(xa&&Sn.current){const Ca=Sn.current.cloneNode(!0),Qa=Ca.querySelectorAll("span.edu_latex");for(let Da of Qa){const Ra=Da.getAttribute("title"),wr=document.createTextNode(Ra||""),ar=Da;(jt=(Et=ar.parentNode)==null?void 0:Et.replaceChild)==null||jt.call(Et,wr,ar)}xa(Ca.innerHTML)}};return b.createElement(b.Fragment,null,b.createElement(ua,{ref:Sn,contentEditable:!0,className:da,style:Ea,onBlur:ln}))}),ft=ae(35219),ct=ae(27284),yt=ae(43428),Pt=ae(6848),En=ae(43604),xn={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},Wt=ae(77095),St=ae(21331),Te=ae(25062),et=ae(24745),Kt=ae(51874),wn=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+K5L0XUpWTaJVIJpDfU01VVTP6Uaz3OMsXL5En3ZEfZkcwwNZZFBYMCLIDSgnSAkEfiIKMSNFLYMS1akflokuiTb9sjI32vxvxvwouY3HIdrXQtirvZI6XhISyFtB8qAQ8+jaFuQT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Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",Xt=(ua,jn,da)=>new Promise((Ea,xa)=>{var Ja=Et=>{try{ln(da.next(Et))}catch(jt){xa(jt)}},Sn=Et=>{try{ln(da.throw(Et))}catch(jt){xa(jt)}},ln=Et=>Et.done?Ea(Et.value):Promise.resolve(Et.value).then(Ja,Sn);ln((da=da.apply(ua,jn)).next())}),rt=(0,b.forwardRef)(({onUpdateNum:ua,onSave:jn},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%`,[Ja,Sn]=(0,b.useState)(!1),[ln,Et]=(0,b.useState)([]),[jt,Ga]=(0,b.useState)(null),[Ca,Qa]=(0,b.useState)([]),[Da,Ra]=(0,b.useState)(0),[wr,ar]=(0,b.useState)(0),[kr,Mo]=(0,b.useState)(!1),[Ut,Yn]=(0,b.useState)(""),[$n,ba]=(0,b.useState)(0),[Ze,Rt]=(0,b.useState)(0),[qt,vn]=(0,b.useState)(0),[kt,Wn]=(0,b.useState)(0),[_n,Je]=(0,b.useState)(0),[nt,Xe]=(0,b.useState)(0),[on,bn]=(0,b.useState)(0),[Nn,wa]=(0,b.useState)(0),[pa,ta]=(0,b.useState)(wn.Q),{contentRef:ya,value:qn,status:zt,open:Ma,close:hr}=pa,So=(0,et.Z)({contentRef:ya,status:zt}),{openProgress:er,closeProgress:Ht,CreateProgressModal:$r,progressOpen:Ya}=(0,Te.Z)();(0,b.useEffect)(()=>{jt&&Nr(),jt===!1&&(hr(),ua==null||ua(),Et([]),Yn(""),ba(0),Rt(0),vn(0),Wn(0),Je(0),Xe(0),bn(0),wa(0))},[jt]);const Pr=()=>{Ga(!0)};(0,b.useImperativeHandle)(da,()=>({onClick:Pr}));const ur=ga=>{Mo(!0),Ra(ga),ar(0)},Yr=ga=>Xt(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}),Nr=()=>Xt(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)=>Xt(void 0,null,function*(){var sr,Wa;const pn=[{name:"\u5355\u9009\u9898",num:$n||0},{name:"\u591A\u9009\u9898",num:Ze||0},{name:"\u5224\u65AD\u9898",num:qt||0},{name:"\u586B\u7A7A\u9898",num:kt||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:on||0}];if(ga){if(ro(Ut)){if(Ut.length>1e3){We.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{We.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!ro(Ut)&&!(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 Jn=pn.reduce((dr,nr)=>dr+nr.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:(Wa=(sr=ln[0])==null?void 0:sr.response)==null?void 0:Wa.id,content:Ut,count_arr:pn.map(Jn=>Jn.num).join(",")};yield Ma(La),Nr()}),ca=()=>Xt(void 0,null,function*(){const ga=So();if(jn){Ga(!1),jn(ga);return}er(),Sn(!0),Qa([]);const sr=new FormData;sr.append("html",ga);const Wa=yield(0,le.ZP)("/api/intelligent_imports/import.json",{method:"post",body:sr},!0);if((Wa==null?void 0:Wa.status)===0)if(Wa!=null&&Wa.data){Ht(100),Qa(Wa==null?void 0:Wa.data);return}else We.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");Sn(!1),Ht()}),nn=()=>Xt(void 0,null,function*(){const ga=So();(0,St.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(Kt.Z,{visible:kr,totalCount:Da,usedCount:wr,onCancel:()=>Mo(!1),onOk:()=>Tr(!1)}),b.createElement(yt.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:b.createElement("div",{className:xn.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: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:()=>{Ga(!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"):Ga(!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:jt},b.createElement("div",{className:xn.wrap},b.createElement("div",{className:xn.left},b.createElement("div",{className:xn.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:Ut,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:ln,withCredentials:!0,data:{upload_type:1},beforeUpload:Yr,onChange:({file:ga})=>{var sr,Wa;ga.status!=="removed"&&(ga.status==="done"&&((sr=ga==null?void 0:ga.response)==null?void 0:sr.status)!==0&&(ga.status="error",ga.response=(Wa=ga==null?void 0:ga.response)==null?void 0:Wa.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:$n,onChange:ba,style:{marginLeft:"8px"}})),b.createElement(En.Z,null,b.createElement("label",null,"\u591A\u9009\u9898"),b.createElement(Ke.Z,{min:0,max:10,value:Ze,onChange:Rt,style:{marginLeft:"8px"}})),b.createElement(En.Z,null,b.createElement("label",null,"\u5224\u65AD\u9898"),b.createElement(Ke.Z,{min:0,max:10,value:qt,onChange:vn,style:{marginLeft:"8px"}})),b.createElement(En.Z,null,b.createElement("label",null,"\u586B\u7A7A\u9898"),b.createElement(Ke.Z,{min:0,max:10,value:kt,onChange:Wn,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:hr,className:xn.bottomBtn},b.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):mr?b.createElement("div",{className:`${xn.bottomBtn} ${xn.disabled}`},b.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):b.createElement("div",{onClick:()=>{Tr()},className:xn.bottomBtn},b.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),b.createElement(wn.Z,{onStatusChange:ta,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!Ya,noRestrictModal:ur,stringTransformer:Wt.o,onError:ga=>{Object.prototype.toString.call(ga)==="[object Object]"&&ga.status===-9&&ur(ga.data)}}))),b.createElement(yt.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Ja},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:()=>Sn(!1),onSuccess:()=>{Sn(!1),Ga(!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,Qt=Object.prototype.propertyIsEnumerable,Tt=(ua,jn,da)=>jn in ua?rn(ua,jn,{enumerable:!0,configurable:!0,writable:!0,value:da}):ua[jn]=da,Vn=(ua,jn)=>{for(var da in jn||(jn={}))gn.call(jn,da)&&Tt(ua,da,jn[da]);if(Xn)for(var da of Xn(jn))Qt.call(jn,da)&&Tt(ua,da,jn[da]);return ua},ia=(ua,jn)=>tt(ua,pt(jn)),tn=(ua,jn,da)=>new Promise((Ea,xa)=>{var Ja=Et=>{try{ln(da.next(Et))}catch(jt){xa(jt)}},Sn=Et=>{try{ln(da.throw(Et))}catch(jt){xa(jt)}},ln=Et=>Et.done?Ea(Et.value):Promise.resolve(Et.value).then(Ja,Sn);ln((da=da.apply(ua,jn)).next())});const Ba=ua=>{ua.preventDefault();let da=(ua.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,da)},_a=ua=>{ua.key==="Enter"&&ua.preventDefault()},Fa=({children:ua,style:jn})=>b.createElement("div",{className:Ee.leftBox,style:jn,onPaste:Ba},ua),Tn=({children:ua,style:jn,className:da})=>b.createElement("div",{className:Be()(Ee.rightBox,da),style:jn,onPaste:Ba},ua),Va=({className:ua,style:jn={},width:da=1200,onCancel:Ea=()=>{},onSuccess:xa=()=>{},gather:Ja={},mode:Sn=1,stickyTop:ln=0,subDisciplineId:Et=[],hideWordFeatures:jt,dataSource:Ga=[],customLeftHeadNode:Ca,customRightHeadNode:Qa,customLeftContent:Da,hideRecognition:Ra=!1,onExchange:wr,isSingleSelection:ar=!1,underpinBackgroundStyle:kr={},headExtraNode:Mo,isRefreshItemBank:Ut=!1,okText:Yn="\u786E\u5B9A\u5BFC\u5165",onSave:$n})=>{var ba;const[Ze,Rt]=(0,b.useState)(1),[qt,vn]=(0,b.useState)(0),[kt,Wn]=(0,b.useState)(""),[_n,Je]=(0,b.useState)(!1),[nt,Xe]=(0,b.useState)([]),[on,bn]=(0,b.useState)([]),[Nn,wa]=(0,b.useState)(!1),[pa,ta]=(0,b.useState)(!1),[ya,qn]=(0,b.useState)(!1),[zt,Ma]=(0,b.useState)(!1),[hr,So]=(0,b.useState)([]),[er,Ht]=(0,b.useState)(1),[$r,Ya]=(0,b.useState)(!1),[Pr,ur]=(0,b.useState)(!0),[Yr,Nr]=(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)(),Wa=(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)(()=>{Ga!=null&&Ga.length&&yo(Ga)},[Ga]),(0,b.useEffect)(()=>{Ze===2&&mr.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:()=>tn(void 0,null,function*(){Rt(1)})})},Jn=()=>tn(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||[])}),dr=me=>{const mt=[],Ct=(sn,vt)=>{sn.length>=2&&mt.push(sn.join(""));for(let Ln=vt;Ln(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=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(` +`),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 sn=Ct.types.toString(),vt=Ct.items;if(sn==="Files"||Ct.types.indexOf("Files")>-1){me.preventDefault();try{let Ln=vt[1];((mt=vt[0])==null?void 0:mt.kind)==="file"&&(Ln=vt[0]);const yn=Ln.getAsFile();(0,st.I)(yn,fn=>{var Fn;if(fn.id){if(((Fn=yn==null?void 0:yn.type)==null?void 0:Fn.indexOf("image"))>-1){const Ia=``;document.execCommand("insertText",!1,Ia)}}else(fn==null?void 0:fn.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,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 sn in me)if(Object.prototype.hasOwnProperty.call(me,sn)){const vt=me[sn];typeof vt=="string"?Ct[sn]=yield mt(vt):typeof vt=="object"?Ct[sn]=yield Ro(vt,mt):Ct[sn]=vt}return Ct})}const Fl=()=>tn(void 0,null,function*(){var me;Je(!0),Wn("\u5904\u7406\u4E2D"),yield new Promise(sn=>setTimeout(sn,1e3));let mt=(me=ga.current)==null?void 0:me.querySelectorAll('[data-text="edit"]'),Ct="";try{mt.forEach(function(sn){var vt,Ln,yn,fn;const Fn=sn.cloneNode(!0),Ia=Fn.querySelectorAll("span.edu_latex");for(let br of Ia){const ma=br.getAttribute("title"),va=document.createTextNode(ma),or=br;(Ln=(vt=or.parentNode)==null?void 0:vt.replaceChild)==null||Ln.call(vt,va,or)}const gr=Fn.querySelectorAll("span[style]");for(let br of gr)if(br.style.fontFamily){const ma=br.innerHTML,va=document.createTextNode(ma),or=br;(fn=(yn=or.parentNode)==null?void 0:yn.replaceChild)==null||fn.call(yn,va,or)}Fn==null||Fn.childNodes.forEach(function(br){br.nodeType===Node.ELEMENT_NODE&&br.localName!=="h5"&&br.localName!=="h4"?Ct+=`

${br.innerHTML}

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

${br.textContent}

`)})}),To("/api/intelligent_imports/import.json",{html:fr(Ct)})}catch(sn){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",sn)}}),Dr=me=>{let mt=me.filter(Ct=>!!(Ct!=null&&Ct.type));return mt=mt.map(Ct=>{var sn;const vt=(sn=Lr.find(yn=>yn.id===(Ct==null?void 0:Ct.type)))==null?void 0:sn.deal,Ln=ia(Vn({},Ct),{id:String(Math.random()).slice(-6),knowledgePoint:nr(Ct==null?void 0:Ct.knowledgePoint)});return vt?vt(Ln):Ln}),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:()=>Rt(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||Rt(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")))),Xa=(me,mt,Ct,sn)=>{var vt;console.log(me,mt,Ct,sn,"onDataChange\u4FEE\u6539\u6570\u503C");const Ln=JSON.parse(JSON.stringify(on));sn===void 0?Ln[mt][me]=Ct:Ln[mt].questions[sn][me]=Ct;const yn=Vn({},Ln[mt]),fn=(vt=Lr.find(Fn=>Fn.id===(yn==null?void 0:yn.type)))==null?void 0:vt.deal;Ln[mt]=fn(yn),bn(Ln)},Kr=(me,mt,Ct)=>{var sn;const vt=Ct!==void 0,Ln=(sn=Lr.find(Fn=>Fn.id===(me==null?void 0:me.type)))==null?void 0:sn.type,yn=`${mt+1}.${Ct===void 0?"":Ct+1+"."}`,fn=`${(me==null?void 0:me.type)==="7"?"{{":""}${yn}\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:fn}))},to=(me,mt)=>tn(void 0,null,function*(){var Ct;const sn=yield wr(me,mt),vt=(Ct=sn==null?void 0:sn.data)==null?void 0:Ct.content;if(vt!=null&&vt.length){const Ln=Dr(vt)[0];nt.splice(mt,1,Ln),on.splice(mt,1,Ln),Xe([...nt]),bn([...on])}}),Er=(me,mt,Ct)=>{var sn;const vt=Ct!==void 0,Ln=(sn=Lr.find(fn=>fn.id===(me==null?void 0:me.type)))==null?void 0:sn.type,yn=`${mt+1}.${Ct===void 0?"":Ct+1+"."}`;return vt?b.createElement("div",{style:{padding:"10px 18px"}},`${yn}\u3010${Ln}\u3011`,b.createElement(be,{id:me==null?void 0:me.id,tagName:"span",className:Ee.edit,onBlur:fn=>Xa("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"},`${yn}\u3010${Ln}\u3011`),Sn!==1&&b.createElement(Ke.Z,{disabled:(me==null?void 0:me.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:fn=>Xa("score",mt,fn,Ct),value:me==null?void 0:me.score}),b.createElement(Oe.Z,{align:"middle",style:{marginLeft:"auto"}},!!wr&&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=>Xa("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=>Xa("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"})),Dt=(me,mt,Ct,sn)=>{const vt=sn!==void 0,Ln=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],yn=vt&&!me.last&&!me.errorMsg?{marginBottom:10}:{},fn=Ln.map(Fn=>({key:Fn,label:Fn,onClick:()=>Xa("difficulty",Ct,Fn,sn)}));return b.createElement("div",{className:Ee.liWrap,style:yn},["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:Fn=>Xa("answer",Ct,[Fn],sn),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:Fn=>Xa("analyze",Ct,Fn,sn),value:me==null?void 0:me.analyze})),!vt&&b.createElement("div",{onKeyDown:_a,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:Fn=>Xa("knowledgePoint",Ct,nr(yr(Fn)),sn)})))},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))),Rn=(me,mt,Ct,sn)=>{let vt="flex";return(ar&&Yr!==sn||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(Tn,{className:Ct!=null&&Ct.errorMsg?Ee.error:""},mt)))},Lr=[{id:"0",type:"\u5355\u9009\u9898",element:(me,mt,Ct)=>{var sn,vt;const Ln=Ct!==void 0;let yn=(sn=me==null?void 0:me.answer)==null?void 0:sn[0];const fn=b.createElement(b.Fragment,null,Kr(me,mt,Ct),(vt=me==null?void 0:me.options)==null?void 0:vt.map((br,ma)=>b.createElement(be,{id:me==null?void 0:me.id,key:ma,value:`${pn[ma]}.${br}`,tagName:"p"})),no(me,yn,Ln),At(me));let Fn=Ln?me:on[mt];const Ia=Fn==null?void 0:Fn.options,gr=b.createElement(b.Fragment,null,Er(Fn,mt,Ct),Ia==null?void 0:Ia.map((br,ma)=>{var va;return b.createElement("div",{key:ma,className:Ee.option},b.createElement("aside",{className:((va=Fn==null?void 0:Fn.answer)==null?void 0:va[0])===pn[ma]?Ee.active:"",onClick:()=>Xa("answer",mt,[pn[ma]],Ct)},pn[ma]),b.createElement(be,{id:Fn==null?void 0:Fn.id,tagName:"div",className:`${Ee.text}`,onBlur:or=>{Ia[ma]=or,Xa("options",mt,Ia,Ct)},value:br}))}),Dt(Fn,"",mt,Ct),ht(Fn));return Ln?[fn,gr]:Rn(fn,gr,Fn,mt)},deal:me=>{var mt,Ct,sn;me.score=me.score===void 0?2:me.score;let vt=nr((mt=me==null?void 0:me.answer)==null?void 0:mt[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 yn=me.options.map(Fn=>Fn==null?void 0:Fn.trim().replace(/^\s+|\s+$/g,""));new Set(yn).size!==yn.length&&Ln.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return vt||Ln.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),vt&&(pn.slice(0,((sn=me==null?void 0:me.options)==null?void 0:sn.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")),nr(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,mt,Ct)=>{var sn,vt;const Ln=Ct!==void 0;let yn=(sn=me==null?void 0:me.answer)==null?void 0:sn[0];const fn=b.createElement(b.Fragment,null,Kr(me,mt,Ct),(vt=me==null?void 0:me.options)==null?void 0:vt.map((br,ma)=>b.createElement(be,{id:me==null?void 0:me.id,key:ma,value:`${pn[ma]}.${br}`,tagName:"p"})),no(me,yn,Ln),At(me));let Fn=Ln?me:on[mt];const Ia=Fn==null?void 0:Fn.options,gr=b.createElement(b.Fragment,null,Er(Fn,mt,Ct),Ia==null?void 0:Ia.map((br,ma)=>{var va,or;return b.createElement("div",{key:ma,className:Ee.option},b.createElement("aside",{className:(or=(va=Fn==null?void 0:Fn.answer)==null?void 0:va[0])!=null&&or.includes(pn[ma])?Ee.active:"",onClick:()=>{var Sr;let Jo=((Sr=Fn==null?void 0:Fn.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(""),Xa("answer",mt,[Jo],Ct)}},pn[ma]),b.createElement(be,{id:Fn==null?void 0:Fn.id,tagName:"div",className:`${Ee.text}`,onBlur:Sr=>{Ia[ma]=Sr,Xa("options",mt,Ia,Ct)},value:br}))}),Dt(Fn,"",mt,Ct),ht(Fn));return Ln?[fn,gr]:Rn(fn,gr,Fn,mt)},deal:me=>{var mt,Ct,sn;me.score=me.score===void 0?2:me.score;let vt=nr((mt=me==null?void 0:me.answer)==null?void 0:mt[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 yn=me.options.map(Fn=>Fn==null?void 0:Fn.trim().replace(/^\s+|\s+$/g,""));new Set(yn).size!==yn.length&&Ln.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(vt||Ln.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),vt){const yn=pn.slice(0,((sn=me==null?void 0:me.options)==null?void 0:sn.length)||8);dr(yn).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 nr(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,mt,Ct)=>{var sn,vt;const Ln=Ct!==void 0;let yn=(sn=me==null?void 0:me.answer)==null?void 0:sn[0];const fn=b.createElement(b.Fragment,null,Kr(me,mt,Ct),no(me,yn,Ln),At(me));let Fn=Ln?me:on[mt];const Ia=["\u6B63\u786E","\u9519\u8BEF"];let gr=((vt=Fn==null?void 0:Fn.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 br=b.createElement(b.Fragment,null,Er(Fn,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:()=>Xa("answer",mt,[ma],Ct)},ma==="\u6B63\u786E"?"T":"F"),b.createElement("div",{style:{pointerEvents:"none"},className:`${Ee.text}`},ma))),Dt(Fn,"",mt,Ct),ht(Fn));return Ln?[fn,br]:Rn(fn,br,Fn,mt)},deal:me=>{var mt;me.score=me.score===void 0?2:me.score;let Ct=nr((mt=me==null?void 0:me.answer)==null?void 0:mt[0]);me.answer=Ct?[Ct]:[];let sn=[];return Ct||sn.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)&&sn.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"),nr(me==null?void 0:me.question)||sn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),me.errorMsg=sn.join(` +`),me}},{id:"3",type:"\u586B\u7A7A\u9898",element:(me,mt,Ct)=>{var sn,vt;const Ln=Ct!==void 0,yn=b.createElement(b.Fragment,null,Kr(me,mt,Ct),(sn=me==null?void 0:me.answer)==null?void 0:sn.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,"",Ln),At(me));let fn=Ln?me:on[mt];const Fn=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:br=>{fn.answer[gr].latex=yr(br),Xa("answer",mt,fn.answer,Ct)},className:`${Ee.text}`,value:Ia.latex}),Ia.model===2&&b.createElement(Le.Z,{value:Ia.latex,onChange:br=>{fn.answer[gr].latex=br,Xa("answer",mt,fn.answer,Ct)}}))),Dt(fn,"",mt,Ct),ht(fn));return Ln?[yn,Fn]:Rn(yn,Fn,fn,mt)},deal:me=>{var mt,Ct,sn,vt;me.score=me.score===void 0?2:me.score,me.question=(mt=me.question)==null?void 0:mt.replaceAll("\u2581","_");const Ln=(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 Fn={model:1,text:fn,latex:fn};return fn.startsWith("$$")&&fn.endsWith("$$")||fn.startsWith("`$$")&&fn.endsWith("$$`")?(Fn.model=2,Fn.latex=fn.slice(2,-2)):Fn.latex=yr(fn),Fn});me.answer=Ln;let yn=[];return Ln||yn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),nr(me==null?void 0:me.question)?me!=null&&me.question.includes("_")?(sn=me==null?void 0:me.answer)!=null&&sn.length&&((me==null?void 0:me.question.match(/_+/g))||[]).length!==((vt=me==null?void 0:me.answer)==null?void 0:vt.length)&&yn.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):yn.push("\u586B\u7A7A\u9879\u672A\u8BBE\u7F6E\uFF0C\u8BF7\u4F7F\u7528\u82F1\u6587\u4E0B\u5212\u7EBF\u201C___\u201D\u8868\u793A\u586B\u7A7A\u9879"):yn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),me.errorMsg=yn.join(` +`),me}},{id:"4",type:"\u7B80\u7B54\u9898",element:(me,mt,Ct)=>{var sn,vt;const Ln=Ct!==void 0;let yn=(sn=me==null?void 0:me.answer)==null?void 0:sn[0];const fn=b.createElement(b.Fragment,null,Kr(me,mt,Ct),no(me,yn,Ln),At(me));let Fn=Ln?me:on[mt];const Ia=b.createElement(b.Fragment,null,Er(Fn,mt,Ct),Dt(Fn,(vt=Fn==null?void 0:Fn.answer)==null?void 0:vt[0],mt,Ct),ht(Fn));return Ln?[fn,Ia]:Rn(fn,Ia,Fn,mt)},deal:me=>{me.score=me.score===void 0?5:me.score;let mt=[];return nr(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,sn;const vt=on[mt],Ln=na.slice(0,4).map(yn=>({key:yn,label:yn,onClick:()=>Xa("platform",mt,yn)}));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},Kr(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((yn,fn)=>{var Fn;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${yn||""}`,tagName:"div"}),b.createElement(be,{id:me==null?void 0:me.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${fn+1})\u8F93\u51FA\uFF1A${((Fn=me==null?void 0:me.outputs)==null?void 0:Fn[fn])||""}`,tagName:"div"}))}),At(me)))),b.createElement("div",{className:Ee.rightLayout},b.createElement(Tn,{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:yn=>Xa("description",mt,yn)}))),Dt(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:yn=>Xa("timeLimit",mt,yr(yn))})),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:yn=>Xa("code",mt,yr(yn)),tagName:"div"}))),(sn=vt==null?void 0:vt.inputs)==null?void 0:sn.map((yn,fn)=>{var Fn;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:yn||"",className:Ee.edit,onBlur:Ia=>{const gr=[...(vt==null?void 0:vt.inputs)||[]];gr[fn]=yr(Ia),Xa("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:((Fn=vt==null?void 0:vt.outputs)==null?void 0:Fn[fn])||"",className:Ee.edit,onBlur:Ia=>{const gr=[...(vt==null?void 0:vt.outputs)||[]];gr[fn]=yr(Ia),Xa("outputs",mt,gr)},tagName:"div"})))}),ht(vt))))},deal:me=>{var mt,Ct,sn;me.score=me.score===void 0?10:me.score,me.code=(mt=me.code)==null?void 0:mt.trim();let vt=[];nr(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"),nr(me==null?void 0:me.description)||vt.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const Ln=nr(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=nr(me==null?void 0:me.platform),me!=null&&me.platform){const yn=["c","c++","java","python"],fn=(sn=me==null?void 0:me.platform)==null?void 0:sn.toLowerCase(),Fn=yn.findIndex(Ia=>Ia===fn);Fn>-1?me.platform=na[Fn]: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 yn=Math.min(me.inputs.length,me.outputs.length);me.inputs=me.inputs.slice(0,yn),me.outputs=me.outputs.slice(0,yn),me.outputs.some(fn=>!nr(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,sn;const vt=on[mt];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},Kr(me,mt),no(me),(Ct=me==null?void 0:me.questions)==null?void 0:Ct.map((Ln,yn)=>{var fn;const Fn=(fn=Lr.find(Ia=>Ia.id===(Ln==null?void 0:Ln.type)))==null?void 0:fn.element;return b.createElement(b.Fragment,{key:`left-${me.id}-${yn}`},Fn(Ln,mt,yn)[0])}),At(me),b.createElement("p",{contentEditable:!0},"}}")))),b.createElement("div",{className:Ee.rightLayout},b.createElement(Tn,{className:vt!=null&&vt.errorMsg?Ee.error:""},Er(vt,mt),Dt(vt,"",mt),(sn=vt==null?void 0:vt.questions)==null?void 0:sn.map((Ln,yn)=>{var fn;const Fn=(fn=Lr.find(Ia=>Ia.id===(Ln==null?void 0:Ln.type)))==null?void 0:fn.element;return b.createElement(b.Fragment,{key:`right-${vt.id}-${yn}`},Fn(Ln,mt,yn)[1])}),ht(vt))))},deal:me=>{var mt,Ct,sn,vt,Ln;const yn=Dr,fn=[...Lr],Fn=fn.findIndex(ma=>ma.id==="0"),Ia=fn.findIndex(ma=>ma.id==="1");if(Fn!==-1){const ma=fn[Fn].deal;fn[Fn].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 +`)),or}}me.questions=(mt=me.questions)!=null&&mt.length?Dr(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=(sn=me.questions)==null?void 0:sn.reduce((ma,va)=>{const or=parseFloat(va.score);return isNaN(or)?ma:ma+or},0);me.score=gr;let br=[];return(vt=me.questions)!=null&&vt.length?me.errorMsg=((Ln=me.questions)==null?void 0:Ln.findIndex(ma=>!!ma.errorMsg))>-1:br.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),nr(me==null?void 0:me.question)||br.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),br.length&&(me.errorMsg=br.join(` +`)),me}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(me,mt)=>{var Ct,sn;const vt=on[mt],Ln=na.map(yn=>({key:yn,label:yn,onClick:()=>Xa("platform",mt,yn)}));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},Kr(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((yn,fn)=>b.createElement(be,{key:fn,id:me==null?void 0:me.id,value:`\u7B54\u6848${fn+1}\uFF1A${yn||""}`,tagName:"p"})),At(me)))),b.createElement("div",{className:Ee.rightLayout},b.createElement(Tn,{className:vt!=null&&vt.errorMsg?Ee.error:""},Er(vt,mt),Dt(vt,"",mt),b.createElement("div",{className:Ee.liWrap},b.createElement("div",{className:Ee.li,onKeyDown:_a},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:yn=>Xa("timeLimit",mt,yr(yn))})),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:yn=>Xa("code",mt,yr(yn)),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:yn=>Xa("input",mt,yr(yn)),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:yn=>Xa("output",mt,yr(yn)),tagName:"div"}))),b.createElement("div",{className:Ee.liWrap},(sn=vt==null?void 0:vt.answer)==null?void 0:sn.map((yn,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:yn||"",className:Ee.edit,onBlur:Fn=>{const Ia=[...(vt==null?void 0:vt.answer)||[]];Ia[fn]=yr(Fn),Xa("output",mt,Ia)},tagName:"div"})))),ht(vt))))},deal:me=>{var mt,Ct,sn,vt,Ln,yn,fn,Fn;me.score=me.score===void 0?10:me.score,me.code=(sn=(Ct=(mt=me.code)==null?void 0:mt.trim())==null?void 0:Ct.replace(/@_@/g,"@\u2581@"))==null?void 0:sn.replace(/@__@/g,"@\u2581\u2581@");let Ia=[];if(nr(me==null?void 0:me.question)||Ia.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),nr(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)!==((yn=me==null?void 0:me.answer)==null?void 0:yn.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(br=>!nr(br))&&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=nr(me==null?void 0:me.platform),me!=null&&me.platform){const br=["c","c++","java","python","javascript","ruby"],ma=(Fn=me==null?void 0:me.platform)==null?void 0:Fn.toLowerCase(),va=br.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");nr(me==null?void 0:me.output)||Ia.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const gr=nr(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=Lr.find(sn=>sn.id===(me==null?void 0:me.type)))==null?void 0:mt.element)}).map((me,mt)=>{var Ct;const sn=(Ct=Lr.find(vt=>vt.id===(me==null?void 0:me.type)))==null?void 0:Ct.element;return b.createElement(b.Fragment,{key:me.id},sn(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:Et}),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 sn in me)me.hasOwnProperty(sn)&&(mt.includes(sn)?Ct[sn]=me[sn]:Ct[sn]=jr(me[sn],mt));return Ct}return me},yo=me=>tn(void 0,null,function*(){const mt=Dr(jr(me));Xe(mt),bn(JSON.parse(JSON.stringify(mt))),Rt(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 sn=new window.XMLHttpRequest;sn.withCredentials=!0,sn.addEventListener("load",function(vt){return tn(this,null,function*(){var Ln,yn;try{const fn=JSON.parse((Ln=vt==null?void 0:vt.target)==null?void 0:Ln.response);if(ur(!0),vn(100),yield new Promise(Fn=>setTimeout(()=>Fn(),780)),fn.status===0){if(!((yn=fn==null?void 0:fn.data)!=null&&yn.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)}})}),sn.addEventListener("error",()=>{Je(!1)}),sn.open("POST",`${y.Z.API_SERVER}${me}`),sn.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 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:()=>{Wa.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({},jn),{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"),!jt&&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"),!jt&&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"}},Qa||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"},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:()=>{Nr(mt)},className:Yr===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},Yn))),b.createElement(xe.default,{centered:!0,closable:!1,destroyOnClose:!0,open:_n,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"},kt,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:qt}),b.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",b.createElement("span",{className:"ml5 c-light-primary"},qt,"%")))),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,sn,vt,Ln;const yn=on.filter(Ia=>!Ia.checked&&!Ia.errorMsg);ta(!0);const fn=()=>tn(void 0,null,function*(){var Ia,gr;const br=yield(0,le.ZP)("/api/intelligent_imports/save.json",{method:"post",body:ia(Vn(Vn({},Ja),me),{list:yn,mode:Sn})});br.status===0&&(Ut&&((Ia=br==null?void 0:br.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=br==null?void 0:br.data)==null?void 0:gr.success}\u9053\u8BD5\u9898`,3),xa(br),qn(!1)),ta(!1)});if(Sn!==1){yield fn();return}const Fn=yield(0,le.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:on,mode:Sn}});if(Fn.status===0){if(!((mt=Fn==null?void 0:Fn.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=Fn==null?void 0:Fn.data)==null?void 0:Ct.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",b.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(sn=Fn==null?void 0:Fn.data)==null?void 0:sn.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",b.createElement("span",{className:"ml5 mr5"},(Ln=(vt=Fn==null?void 0:Fn.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: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})),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:er})))),b.createElement(xe.default,{centered:!0,open:zt,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;Ya(!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?(Ht(er+1),setTimeout(()=>{We.ZP.success("\u64CD\u4F5C\u6210\u529F"),Ma(!1),Ya(!1)},1e3)):Ya(!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:Wa}))},Aa=z;var vr=Va},10438:function(ot,Zt,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],yt=window.innerWidth-ct.offsetWidth,Pt=window.innerHeight-ct.offsetHeight;be=Math.max(0,Math.min(be,yt)),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 st=()=>{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:()=>st()},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})))});Zt.Z=xe},29386:function(ot,Zt,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")))});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", +\\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")))});Zt.Z=De},74038:function(ot,Zt,ae){"use strict";ae.d(Zt,{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,Zt,ae){"use strict";ae.d(Zt,{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,Zt,ae){"use strict";ae.d(Zt,{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,st=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Ye=(gn,Qt,Tt)=>Qt in gn?Pe(gn,Qt,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):gn[Qt]=Tt,Ge=(gn,Qt)=>{for(var Tt in Qt||(Qt={}))st.call(Qt,Tt)&&Ye(gn,Tt,Qt[Tt]);if(Le)for(var Tt of Le(Qt))Me.call(Qt,Tt)&&Ye(gn,Tt,Qt[Tt]);return gn},$e=(gn,Qt)=>Fe(gn,Qe(Qt)),be=(gn,Qt,Tt)=>new Promise((Vn,ia)=>{var tn=Fa=>{try{_a(Tt.next(Fa))}catch(Tn){ia(Tn)}},Ba=Fa=>{try{_a(Tt.throw(Fa))}catch(Tn){ia(Tn)}},_a=Fa=>Fa.done?Vn(Fa.value):Promise.resolve(Fa.value).then(tn,Ba);_a((Tt=Tt.apply(gn,Qt)).next())}),ct=({buttonProps:gn,buttonText:Qt,form:Tt,hackIdentifier:Vn="",answerKey:ia,data:tn})=>{const[Ba,_a]=(0,b.useState)(!1),[Fa,Tn]=(0,b.useState)(!1),[Va,Aa]=(0,b.useState)(!1),[vr,ua]=(0,b.useState)({}),[jn,da]=(0,b.useState)(""),[Ea,xa]=(0,b.useState)(""),Ja=(0,b.useRef)(Vn),Sn=(0,b.useRef)(""),ln=(0,b.useRef)(!1);(0,b.useEffect)(()=>{Va&&Ca()},[Va]),(0,b.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const Et=()=>new Date().getTime(),jt=tn==null?void 0:tn.code,Ga=()=>{var Ra,wr;let ar=jt?tn==null?void 0:tn.code:(Ra=Tt.getFieldValue("hack_codes"))==null?void 0:Ra.code,kr=jt?tn==null?void 0:tn.answer_content:Tt.getFieldValue(ia),Mo=jt?tn==null?void 0:tn.input:(wr=Tt.getFieldValue("hack_sets"))==null?void 0:wr.input;kr==null||kr.forEach(Ut=>{const Yn=Ut.value||Ut.answer_text||"";ar=ar.replace(/(@▁@|@▁▁@)/,Yn)}),xa(Mo),da(ar),ua({}),Aa(!0)},Ca=()=>be(void 0,null,function*(){var Ra,wr,ar,kr;const Mo=Et(),Ut=jt?tn==null?void 0:tn.time_limit:(Ra=Tt.getFieldsValue())==null?void 0:Ra.hack.time_limit,Yn=jt?(wr=tn==null?void 0:tn.answer_content)==null?void 0:wr.length:(kr=(ar=Tt.getFieldsValue())==null?void 0:ar.standard_answers)==null?void 0:kr.length;_a(!0),yield(0,z.bM)(Sn.current,{test_hack_code:jn,test_input:Ea});function $n(){return be(this,null,function*(){const{status:ba,data:Ze}=yield(0,z.rX)(Sn.current,"submit"),qt=Et()-Mo>(Ut+3)*1e3*Yn;if(ln.current){if(qt){Ue.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),_a(!1);return}if(ba===0){_a(!1),ua($e(Ge({},Ze),{showText:!0}));return}setTimeout($n,1e3)}})}$n()}),Qa=()=>be(void 0,null,function*(){var Ra,wr,ar,kr,Mo,Ut,Yn;if(!tn){try{yield Tt.validateFields()}catch(Rt){(ar=(wr=(Ra=Rt==null?void 0:Rt.errorFields)==null?void 0:Ra[0])==null?void 0:wr.name)!=null&&ar.includes("standard_answers")?Ue.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ue.ZP.error(Rt.errorFields[0].errors[0]),Tt.scrollToField(Rt.errorFields[0].name,{behavior:"smooth",block:"center"});return}Tn(!0);let ba="";const Ze=Tt.getFieldsValue();Ja.current?ba=yield(0,y.ZP)(`/api/problems/${Ja.current}.json`,{method:"put",body:$e(Ge({},Ze),{hack:$e(Ge({},Ze==null?void 0:Ze.hack),{sub_discipline_id:(Yn=(Ut=Ze==null?void 0:Ze.hack)==null?void 0:Ut.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=(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})}),Ja.current=ba==null?void 0:ba.identifier,sessionStorage.projectFill=ba==null?void 0:ba.identifier)}const $n=yield(0,y.ZP)(`/api/problems/${Ja.current}/start.json`,{method:"get"});if(($n==null?void 0:$n.status)===0){Sn.current=$n==null?void 0:$n.identifier,ln.current=!0,Tn(!1),Ga();return}Tn(!1)}),Da=Ra=>{const{status:wr,error_msg:ar,execute_time:kr,output:Mo,input:Ut,expected_output:Yn}=Ra;let $n=null;switch(wr){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"}},Ut),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:$n=le.createElement(le.Fragment,null,le.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",le.createElement("pre",null,Ut)),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,Ut)),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:Qa}),Qt),le.createElement(Be.default,{open:Va,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:jn,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:jn,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))))))))},yt=ae(87169),Pt=ae(59301),En=Object.defineProperty,xn=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Kt=(gn,Qt,Tt)=>Qt in gn?En(gn,Qt,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):gn[Qt]=Tt,wn=(gn,Qt)=>{for(var Tt in Qt||(Qt={}))Te.call(Qt,Tt)&&Kt(gn,Tt,Qt[Tt]);if(St)for(var Tt of St(Qt))et.call(Qt,Tt)&&Kt(gn,Tt,Qt[Tt]);return gn},Mt=(gn,Qt)=>xn(gn,Wt(Qt)),Xt=(gn,Qt)=>{var Tt={};for(var Vn in gn)Te.call(gn,Vn)&&Qt.indexOf(Vn)<0&&(Tt[Vn]=gn[Vn]);if(gn!=null&&St)for(var Vn of St(gn))Qt.indexOf(Vn)<0&&et.call(gn,Vn)&&(Tt[Vn]=gn[Vn]);return Tt};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:Qt})=>Pt.createElement(Switch,{checked:gn,onChange:Tt=>{Qt(Tt)}}),tt="@\u2581@",pt="@\u2581\u2581@",Xn=({questionTitlePlaceholder:gn,form:Qt,scoreByBlank:Tt=!1,hackidentifier:Vn,answerKey:ia})=>{const[tn,Ba]=(0,b.useState)(!1),[_a,Fa]=(0,b.useState)(!1),Va=(0,ke.useParams)().type==="edit",Aa=(Sn,ln)=>{const Et=ln.line;let jt=0;for(let Ca=0;Ca{const Ga=Sn.getRange(ln.from,ln.to);let Ca=0;if(ln.text.forEach(Qa=>{Ca+=Qa.split(tt).length-1}),ln.text.forEach(Qa=>{Ca+=Qa.split(pt).length-1}),ln.origin!=="setValue"){if(Ga&&(Ga.indexOf(tt)!==-1||Ga.indexOf(pt)!==-1)){const Qa=Ga.split(tt).length-1+Ga.split(pt).length-1,Da=Aa(Sn,ln.from);if(console.log(`\u5220\u9664${Qa}\u4E2A\uFF0C \u524D\u9762\u6709${Da}\u4E2A\uFF0C\u65B0\u589E${Ca}\u4E2A`),Qa>1){const Ra=Array.from({length:Qa},(wr,ar)=>Da+ar);jt(Ra)}else jt(Da)}else if(Ca>0){const Qa=Aa(Sn,ln.from);console.log(`\u65B0\u589E${Ca}\u4E2A\uFF0C\u4E4B\u524D\u6709${Qa}\u4E2A`),Et(Ca,Qa)}}},ua=()=>{const Sn=Qt.getFieldValue(ia);Qt.setFieldsValue({[ia]:Sn==null?void 0:Sn.map((ln,Et)=>Mt(wn({},ln),{position:Et+1}))})},jn=(0,b.useRef)(),da=(Sn,ln)=>{for(let Et=0;Et{Ea.current(Sn),ua()},Ja=we.default.useWatch(ia,Qt);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,ln)=>{const Et=Qt.getFieldValue(ia);console.log("--preAnswerData",Et,ln),Qt.setFieldsValue({[ia]:Et==null?void 0:Et.map((jt,Ga)=>{var Ca;return Mt(wn({},jt),{position:Ga+1,multi_line:(Ca=ln==null?void 0:ln[Ga])==null?void 0:Ca.multiLine})})})},placeholder:gn,onCMBeforeChange:(Sn,ln)=>{vr(Sn,ln,da,xa)}}))),Pt.createElement(we.default.List,{name:ia,rules:[{validator(Sn,ln){if(!(ln!=null&&ln.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Et of ln){const{answer_text:jt}=Et||{};if((jt==null?void 0:jt.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Sn,{add:ln,remove:Et},{errors:jt})=>(jn.current=ln,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(yt.Z,{style:{marginRight:3,color:"#3061D0"}}),Pt.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),Sn.map((Ga,Ca)=>{var Qa=Ga,{key:Da,name:Ra}=Qa,wr=Xt(Qa,["key","name"]),ar,kr;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,Mt(wn({},wr),{name:[Ra,"answer_text"],noStyle:!0}),(ar=Ja==null?void 0:Ja[Ra])!=null&&ar.multi_line||(kr=Ja==null?void 0:Ja[Ra])!=null&&kr.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=>{}}))),Tt&&Pt.createElement(We.Z,{flex:"224px"},Pt.createElement(we.default.Item,Mt(wn({},wr),{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:tn}))),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(ct,{form:Qt,answerKey:ia,hackIdentifier:Vn,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,Zt,ae){"use strict";ae.d(Zt,{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:st,isEdit:Me,setInputActive:Ye,form:Ge,choiceOptionsPath:$e,allowChangeMode:be,showAddIcon:ft,addItem:ct,deleteItem:yt})=>{console.log(Pe,"value");const Pt=(Pe==null?void 0:Pe[Le])===1,En=()=>{const Wt=Ge.getFieldValue($e);Ge.setFieldValue($e,Wt.map(St=>z(y({},St),{[Le]:0})))},xn=()=>{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:xn,className:`${We.Z.choiceIndex} ${Pt?We.Z.activeAnswer:""}`},oe[st]),De.createElement(we.Z,{flex:1,className:`${We.Z.editorWrap} ml15`,onClick:Ye},De.createElement(Oe.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Me,value:Pe==null?void 0:Pe[Qe],onChange:Wt=>{Fe(z(y({},Pe),{[Qe]:Wt}))}})),De.createElement(we.Z,{flex:"0 0 auto",className:"ml15"},De.createElement("div",{onClick:xn,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:ct,style:{visibility:ft?"visible":"hidden"}})),De.createElement(Be.Z,{title:"\u5220\u9664"},De.createElement(Ke.Z,{className:We.Z.deleteIcon,onClick:yt,style:{visibility:st>1?"visible":"hidden"}}))))},le=({questionTitlePlaceholder:Pe,titleKey:Fe,choiceKey:Qe,analysisKey:Le,choiceTextKey:st,answerKey:Me,choiceOptionsPath:Ye,allowChangeMode:Ge=!0,form:$e,showAnalysis:be=!0})=>{const[ft,ct]=(0,b.useState)(),[yt,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,xn){const Wt=xn.some(Te=>Te[Me]===1),St=xn.findIndex(Te=>{var et;return((et=Te[st])==null?void 0:et.length)<=0});return St!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${oe[St]}\u9009\u9879\u7684\u5185\u5BB9`)):Wt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(En,{add:xn,remove:Wt})=>De.createElement("div",{id:Array.isArray(Ye)?Ye.join("_"):`${Ye}`},En.map((St,Te)=>{var et=St,{key:Kt,name:wn}=et,Mt=te(et,["key","name"]);const Xt=ft===Kt,Ce=()=>{ct(Kt)},rt=Te<7&&Te===En.length-1,rn=()=>xn({[st]:"",[Me]:0}),tt=()=>Wt(wn);return De.createElement(Re.default.Item,z(y({},Mt),{key:Kt,name:wn,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:st,answerKey:Me,index:Te,isEdit:Xt,setInputActive:Ce,form:$e,choiceOptionsPath:Ye,allowChangeMode:Ge,showAddIcon:rt,addItem:rn,deleteItem:tt}))}),En.length<8&&De.createElement("div",{className:`${We.Z.addBtn} mb30`,onClick:()=>xn({[st]:"",[Me]:0})},"\u6DFB\u52A0\u9009\u9879"))),be&&De.createElement("div",{onClick:()=>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:yt}))))}},41940:function(ot,Zt,ae){"use strict";ae.d(Zt,{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=yt=>{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(yt,1),be(Pt)}})},ct=()=>{const yt=[...$e];yt.push(""),be(yt)};return a.createElement(we.Z,{className:"ml20"},a.createElement(Be.Z,{flex:1},$e==null?void 0:$e.map((yt,Pt)=>a.createElement(we.Z,{key:`${yt}_${Pt}`,className:"mb20"},a.createElement(Re.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:yt,autoSize:{maxRows:3},maxLength:1e3,onBlur:En=>{const xn=[...$e],Wt=En.target.value.trim();xn[Pt]=Wt,be(xn)}}),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:()=>{ct()}},"\u65B0\u589E\u7B54\u6848")))},st=({value:$e,onChange:be})=>{const ft=yt=>{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(yt,1),be(Pt)}})},ct=()=>{const yt=[...$e];yt.push(""),be(yt)};return a.createElement(we.Z,{className:"ml20"},a.createElement(Be.Z,{flex:1},$e==null?void 0:$e.map((yt,Pt)=>a.createElement(we.Z,{key:`${yt}_${Pt}`,align:"middle",className:"mb20"},a.createElement(E.Z,{value:yt,style:{flex:1},onChange:En=>{const xn=[...$e];xn[Pt]=En,be(xn)}}),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:()=>{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[yt,Pt]=(0,b.useState)(!1),En=(Mt,Xt)=>{const Ce=Xt.line;let rt=0;for(let tt=0;tt{const rn=Mt.getRange(Xt.from,Xt.to);let tt=0;if(Xt.text.forEach(pt=>{tt+=pt.split(Ye).length-1}),Xt.origin!=="setValue"){if(rn&&rn.indexOf(Ye)!==-1){const pt=rn.split(Ye).length-1,Xn=En(Mt,Xt.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},(Qt,Tt)=>Xn+Tt);rt(gn)}else rt(Xn)}else if(tt>0){const pt=En(Mt,Xt.from);console.log(`\u65B0\u589E${tt}\u4E2A\uFF0C\u4E4B\u524D\u6709${pt}\u4E2A`),Ce(tt,pt)}}},Wt=()=>{const Mt=be.getFieldValue(ct);be.setFieldsValue({[ct]:Mt.map((Xt,Ce)=>Fe(Pe({},Xt),{position:Ce+1}))})},St=(0,b.useRef)(),Te=(Mt,Xt)=>{for(let Ce=0;Ce{et.current(Mt),Wt()},wn=Ke.default.useWatch(ct,be);return a.createElement("div",{className:ue.Z.wrap},a.createElement("div",{className:ue.Z.questionTitleEditorWrap},a.createElement(Ke.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},a.createElement(ke.h,{scrollId:"name",watch:!0,height:140,placeholder:$e,showNullButton:!0,onCMBeforeChange:(Mt,Xt)=>{xn(Mt,Xt,Te,Kt)}}))),a.createElement(Ke.default.List,{name:ct,rules:[{validator(Mt,Xt){if(!(Xt!=null&&Xt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Ce of Xt){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:Xt,remove:Ce},{errors:rt})=>(St.current=Xt,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,Qt=Qe(pt,["key","name"]),Tt,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({},Qt),{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({},Qt),{name:[gn,"answer_text"],noStyle:!0}),((Vn=(Tt=be.getFieldValue(ct))==null?void 0:Tt[gn])==null?void 0:Vn.model)===1?a.createElement(Le,null):a.createElement(st,null))),ft&&a.createElement(Be.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},a.createElement(Ke.default.Item,Fe(Pe({},Qt),{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({},Qt),{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")),(wn==null?void 0:wn.length)>1&&a.createElement(we.Z,{align:"middle",className:(wn==null?void 0:wn.length)>1?"mb30":`${ue.Z.hide}`},a.createElement(Ke.default.Item,{name:"is_ordered"},a.createElement(Me,null)),a.createElement(Be.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),a.createElement("div",{onClick:()=>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:yt}))))}},48700:function(ot,Zt,ae){"use strict";ae.d(Zt,{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(st=>({choice_text:st.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 st=Le,{key:Me,name:Ye}=st,Ge=x(st,["key","name"]);return xe.createElement(Be.default.Item,a(E({},Ge),{key:Me,name:Ye,noStyle:!0}),xe.createElement(z,{form: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,Zt,ae){"use strict";ae.d(Zt,{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,Zt,ae){"use strict";ae.d(Zt,{W:function(){return st}});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 "))),st=({questionTitlePlaceholder:Me,form:Ye,showKeywords:Ge,isMustKeyWords:$e=Ge})=>{const[be,ft]=(0,b.useState)(!1),[ct,yt]=(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(xn,Wt){return $e?Wt!=null&&Wt.length?(Wt==null?void 0:Wt.reduce((Te,et)=>Te+et.score,0))>parseFloat(En)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(xn,{add:Wt,remove: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:ct,onChange:Te=>{yt(Te.target.value)},maxLength:50,allowClear:!0,onPressEnter:Te=>{var et,Kt,wn,Mt;const Xt=`${(et=Te.target)==null?void 0:et.value}`,Ce=(wn=(Kt=Xt==null?void 0:Xt.split("|"))==null?void 0:Kt.filter(tt=>!!tt))==null?void 0:wn.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(Xt)&&(Wt({keyword:Ce,score:1}),yt(""))},className:ke.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(xe.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),xn.map(Te=>{var et=Te,{key:Kt,name:wn}=et,Mt=Pe(et,["key","name"]);return b.createElement(We.Z,{key:Kt,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:[wn,"keyword"]}),b.createElement(Le,{onClose:()=>St(wn)})),$e&&b.createElement(Be.default.Item,le(se({},Mt),{name:[wn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ke.Z.blankInputNumberWrapper}),b.createElement(De.Z,{className:ke.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>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,Zt,ae){"use strict";ae.d(Zt,{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,Zt,ae){"use strict";ae.d(Zt,{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,st,Me)=>st in Le?Oe(Le,st,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Le[st]=Me,a=(Le,st)=>{for(var Me in st||(st={}))Ue.call(st,Me)&&E(Le,Me,st[Me]);if(ze)for(var Me of ze(st))ue.call(st,Me)&&E(Le,Me,st[Me]);return Le},x=(Le,st)=>De(Le,ke(st)),y=(Le,st)=>{var Me={};for(var Ye in Le)Ue.call(Le,Ye)&&st.indexOf(Ye)<0&&(Me[Ye]=Le[Ye]);if(Le!=null&&ze)for(var Ye of ze(Le))st.indexOf(Ye)<0&&ue.call(Le,Ye)&&(Me[Ye]=Le[Ye]);return Me},z=(Le,st,Me)=>new Promise((Ye,Ge)=>{var $e=ct=>{try{ft(Me.next(ct))}catch(yt){Ge(yt)}},be=ct=>{try{ft(Me.throw(ct))}catch(yt){Ge(yt)}},ft=ct=>ct.done?Ye(ct.value):Promise.resolve(ct.value).then($e,be);ft((Me=Me.apply(Le,st)).next())});const te=({studentNames:Le,total:st})=>{const Me=["","\u4E00","\u4E24","\u4E09"];return st>3?b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:xe.orangeColor},Le==null?void 0:Le.join("\u3001")),"\u7B49",b.createElement("span",{className:xe.orangeColor},st),"\u540D\u5B66\u751F"):b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:xe.orangeColor},Le==null?void 0:Le.join("\u3001")),Me[st],"\u540D\u5B66\u751F")},oe=({used:Le,copy:st,canNotCopy:Me,studentNames:Ye,studentCount:Ge,inPaper:$e,is_random:be=!1,position:ft=""})=>{const ct=()=>{if(st>0&&Me>0)return b.createElement(b.Fragment,null,"\u5176\u4E2D",b.createElement("span",{className:xe.orangeColor},st),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C",b.createElement("span",{className:xe.orangeColor},Me),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236");if(st>0&&Me===0)return b.createElement(b.Fragment,null,"\u5176\u4E2D",b.createElement("span",{className:xe.orangeColor},st),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236");if(st===0&&Me>0)return b.createElement(b.Fragment,null,"\u5176\u4E2D",b.createElement("span",{className:xe.orangeColor},Me),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236")},yt=ft||($e?"\u8BD5\u5377":"\u8BFE\u7A0B");return b.createElement("span",null,b.createElement(te,{studentNames:Ye,total:Ge}),"\u5B66\u4E60\u8FC7",yt,"\u4E2D\u7684",b.createElement("span",{className:xe.orangeColor},Le),"\u4E2A\u9879\u76EE\uFF0C",ct(),"\u3002\u8BF7\u9009\u62E9",be?"":"\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\u548C","\u662F\u5426\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")},se=({onCancel:Le,onOk:st,visible:Me,inPaper:Ye,renderData:Ge,type:$e,isMultipleCourse:be=!1})=>{const[ft]=Ee.default.useForm(),[ct,yt]=(0,b.useState)(1),[Pt,En]=(0,b.useState)(!1),xn=(0,b.useMemo)(()=>(Ge==null?void 0:Ge.total_num)===1&&(Ge==null?void 0:Ge.can_copy_num)===1,[Ge]),Wt=(0,b.useMemo)(()=>{var 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,xn?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=ct;if(be){const et=a({},ft.getFieldsValue());Te=(St=Ge==null?void 0:Ge.course_data_list)==null?void 0:St.map(Kt=>et[Kt.id]!==void 0?x(a({},Kt),{is_copy:et[Kt.id]}):Kt)}yield st(Te),En(!1)})},b.createElement("div",{className:xe.content,style:{marginBottom:20}},be?"\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u95EE\u662F\u5426\u590D\u5236\u6210\u65B0\u7684\u5B9E\u8BAD\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u4E2D?":b.createElement(b.Fragment,null,b.createElement(te,{studentNames:Ge==null?void 0:Ge.student_names,total:Ge==null?void 0:Ge.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u8BF7\u9009\u62E9\u662F\u5426\u5C06\u8BE5\u9879\u76EE\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")),be?b.createElement(Ee.default,{form:ft,preserve:!1},Wt==null?void 0:Wt.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:ct,onChange:St=>yt(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(Kt=>et[Kt.id]!==void 0?x(a({},Kt),{is_use:et[Kt.id]}):Kt)}yield st(Te),En(!1)})},b.createElement("div",{className:xe.content},b.createElement(te,{studentNames:Ge==null?void 0:Ge.student_names,total:Ge==null?void 0:Ge.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002",be?b.createElement(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"),Wt==null?void 0:Wt.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,st]=(0,b.useState)(!1),[Me,Ye]=(0,b.useState)();return[Le,()=>st(!1),Me,be=>z(this,null,function*(){var ft;const ct=be,{isImportMultipleCourse:yt=!1}=ct,Pt=y(ct,["isImportMultipleCourse"]);console.log(be);const En=(be==null?void 0:be.result)||(yield(0,Ke.Tr)(Pt));return"status"in En?!1:yt?((ft=En==null?void 0:En.course_data_list)==null?void 0:ft.some(Wt=>Wt.is_show))?(Ye(En),st(!0),!0):En.course_data_list||[]:En.student_count===0?!1:(Ye(En),st(!0),!0)})]},Pe=Le=>{const[st]=Ee.default.useForm(),[Me,Ye]=(0,b.useState)(!1),{onCancel:Ge,onOk:$e,visible:be,inPaper:ft=!1,renderData:ct,type:yt,isMultipleCourse:Pt=!1,position:En}=Le;let xn=(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:[`${yt==="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:[`${yt==="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:[`${yt==="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:[`${yt==="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]),Wt=(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:[`${yt==="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:[`${yt==="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:[`${yt==="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:[`${yt==="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,Kt)=>b.createElement("a",{href:`/classrooms/${Kt.course_id}`},et)};xn=[Te,...xn],Wt=[Te,...Wt]}const St=(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:En}),[ct,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=st.getFieldsValue(),et=Object.keys(Te).map(Kt=>({id:parseInt(Kt.split("_")[0]),course_id:parseInt(Kt.split("_")[1]),is_use:Te[Kt].is_use,is_copy:Te[Kt].is_copy}));yield $e(et),Ye(!1)}),onCancel:Ge,width:880,okText:"\u786E\u8BA4",className:xe.antdModal,destroyOnClose:!0},b.createElement(Ee.default,{form:st,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")),(ct==null?void 0:ct.can_copy_num)>0&&b.createElement("div",null,b.createElement("div",{className:xe.contentTitle},"\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),b.createElement(We.default,{columns:xn,className:xe.antdTable,dataSource:ct==null?void 0:ct.can_copy_list,rowKey:yt==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})),(ct==null?void 0:ct.no_copy_num)>0&&b.createElement("div",null,b.createElement("div",{className:xe.contentTitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),b.createElement(We.default,{columns:Wt,className:xe.antdTable,dataSource:ct==null?void 0:ct.no_copy_list,rowKey:yt==="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:yt==="subject"?Te.stage_shixun_id:Te.shixun_course_id||Te.id},b.createElement(Ee.default.Item,{name:[`${yt==="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:[`${yt==="subject"?Te==null?void 0:Te.stage_shixun_id:Te.shixun_course_id||Te.id}`,"is_use"],hidden:!0,initialValue:1},b.createElement(Re.default,{type:"hidden"})))))))};var Qe=Le=>{const{modalType:st}=Le;return st==="multiple"?b.createElement(Pe,a({},Le)):b.createElement(se,a({},Le))}},40886:function(ot,Zt,ae){"use strict";ae.d(Zt,{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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bZhNS1cmLafF5bUTJsyBSVMHPm+/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 st=x>0||Oe==="exercise";(0,b.useEffect)(()=>{(De==null?void 0:De.student_count)>0&&E(!0)},[De]),console.log("---11",Ue),(0,b.useEffect)(()=>{Ue||E(!1)},[Ue]);const Me=()=>{if(Oe==="exercise"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className: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",st&&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",st&&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:!st&&"none"}},zIndex:1003,confirmLoading:Ue,okText:st?ze:"\u6211\u77E5\u9053\u4E86",onOk:()=>We(void 0,null,function*(){st?yield ke([...a,...se]):E(!1)})},b.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Me(),Ye()))}},8738:function(ot,Zt,ae){"use strict";ae.d(Zt,{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"]};Zt.Z=({callback:se,onCancel:le})=>{const[Pe,Fe]=(0,b.useState)("python");function Qe(st){Fe(te[st][1])}function Le(st){se(st)}return b.createElement(we.default,x(a({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Le,style:{width:500}}),b.createElement(we.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},b.createElement(Ee.default,{getPopupContainer:st=>st.parentNode,onChange:Qe},Object.keys(te).map(st=>b.createElement(y,{key:st,value:st},te[st][0])))),b.createElement(we.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},b.createElement(oe,{mode: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,st]=(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));st(Me)}},[Qe.current,Le]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:Qe}))}},37962:function(ot,Zt,ae){"use strict";ae.d(Zt,{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:on,style:bn={}})=>{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:on,className:bn="",children:Nn}){function wa(){Je(on)}return Ue.createElement("a",{title:nt,className:bn,onClick:wa},Ue.createElement("i",{className:`${Xe}`}),Nn)}var Fe=({watch:Je,showNullButton:nt,showNullProgramButton:Xe,onActionCallback:on,fullScreen:bn,insertTemp:Nn,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,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: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:`${bn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:bn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:on})))},Qe=ae(23252),Le=ae(78241),st=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,yt=(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)&&yt(Je,Xe,nt[Xe]);if(be)for(var Xe of be(nt))ct.call(nt,Xe)&&yt(Je,Xe,nt[Xe]);return Je},En=(Je,nt)=>Ge(Je,$e(nt));const xn={labelCol:{span:4},wrapperCol:{span:20}};var Wt=({callback:Je,onCancel:nt})=>{function Xe(on){Je(on)}return b.createElement(Le.default,En(Pt({},xn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Xe,style:{width:500}}),b.createElement(Le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},b.createElement(st.default,null)),b.createElement(Le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},b.createElement(st.default,null)),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Me.ZP,{type:"ghost",onClick:nt},"\u53D6\u6D88")))},St=ae(8738),Te=ae(30315),et=ae(43418),Kt=ae(95237),wn=ae(94094),Mt=ae(59301),Xt=({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 bn=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(Kt.Z,{style:{height:"100vh"}},Mt.createElement(wn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:bn,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 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=Nn.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(bn)}}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 bn=nt.findTreeParentNode();if(bn===null)break;var Nn=this._sortTreeChildrenByY(bn),wa=Nn.indexOf(nt);if(waNn.y?1:bn.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 rn=rt,tt=ae(64242),pt=ae(43604),Xn=ae(23789),gn={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Qt=ae(59301),Tt=(Je,nt,Xe)=>new Promise((on,bn)=>{var Nn=ta=>{try{pa(Xe.next(ta))}catch(ya){bn(ya)}},wa=ta=>{try{pa(Xe.throw(ta))}catch(ya){bn(ya)}},pa=ta=>ta.done?on(ta.value):Promise.resolve(ta.value).then(Nn,wa);pa((Xe=Xe.apply(Je,nt)).next())});function Vn({onCancel:Je,callback:nt}){let Xe=(0,b.useRef)(),on=(0,b.useRef)(),bn=(0,b.useRef)(),Nn=(0,b.useRef)(!1);const wa=(0,b.useRef)(!1),[pa,ta]=(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(on.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:pn=>{var na=pn.diagram.commandHandler.addTopLevelParts(pn.diagram.selection,!0);na||pn.diagram.currentTool.doCancel()},commandHandler:zt(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=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 hr(pn,na){var La=(Jn,dr)=>{Jn.handled=!0,Jn.diagram.model.commit(nr=>{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(Jn.diagram.grid.gridOrigin,Jn.diagram.grid.gridCellSize);var fr=nr.copyNodeData(yr.data);nr.setGroupKeyForNodeData(fr,nr.getGroupKeyForNodeData(yr.data)),nr.addNodeData(fr);var _o={from:yr.key,to:nr.getKeyForNodeData(fr)};nr.addLinkData(_o);var Ro=Jn.diagram.findNodeForData(fr);Ro.location=eo,Jn.diagram.select(Ro),setTimeout(()=>{Jn.diagram.commandHandler.editTextBlock()},20)})};return zt(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:(Jn,dr)=>dr.fill="dodgerblue",mouseLeave:(Jn,dr)=>dr.fill="orange",isActionable:!0,click:La,contextClick:La})}function So(pn){return zt(Ce.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(na,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=zt(Ce.uz,"Spot",zt(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 er(pn,na){return(La,Jn)=>{La.handled=!0,La.diagram.model.commit(dr=>{dr.set(Jn.part.adornedPart.data,pn,na)})}}function Ht(pn,na){return na||(na="color"),zt(Ce.bn,{width:16,height:16,stroke:"lightgray",fill:pn,margin:1,background:"transparent",mouseEnter:(La,Jn)=>Jn.stroke="dodgerblue",mouseLeave:(La,Jn)=>Jn.stroke="lightgray",click:er(na,pn),contextClick:er(na,pn)})}function $r(){return[zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Ht(Ma.white,"fill"),Ht(Ma.beige,"fill"),Ht(Ma.extralightblue,"fill"),Ht(Ma.extralightred,"fill"))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Ht(Ma.lightgray,"fill"),Ht(Ma.lightgreen,"fill"),Ht(Ma.lightblue,"fill"),Ht(Ma.lightred,"fill")))]}function Ya(){return[zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Ht(Ma.black),Ht(Ma.green),Ht(Ma.blue),Ht(Ma.red))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Ht(Ma.white),Ht(Ma.magenta),Ht(Ma.purple),Ht(Ma.orange)))]}function Pr(pn,na){return na||(na="thickness"),zt(Ce.bn,"LineH",{width:16,height:16,strokeWidth:pn,margin:1,background:"transparent",mouseEnter:(La,Jn)=>Jn.background="dodgerblue",mouseLeave:(La,Jn)=>Jn.background="transparent",click:er(na,pn),contextClick:er(na,pn)})}function ur(pn,na){return na||(na="dash"),zt(Ce.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:pn,margin:1,background:"transparent",mouseEnter:(La,Jn)=>Jn.background="dodgerblue",mouseLeave:(La,Jn)=>Jn.background="transparent",click:er(na,pn),contextClick:er(na,pn)})}function Yr(){return[zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Pr(1),Pr(2),Pr(3),Pr(4))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",ur(null),ur([2,4]),ur([4,4])))]}function Nr(pn,na){return na||(na="figure"),zt(Ce.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:pn,margin:1,background:"transparent",mouseEnter:(La,Jn)=>Jn.fill="dodgerblue",mouseLeave:(La,Jn)=>Jn.fill="lightgray",click:er(na,pn),contextClick:er(na,pn)})}Xe.current.nodeTemplate.contextMenu=zt("ContextMenu",zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Nr("Rectangle"),Nr("RoundedRectangle"),Nr("Ellipse"),Nr("Diamond"))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Nr("Parallelogram2"),Nr("ManualOperation"),Nr("Procedure"),Nr("Cylinder1"))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Nr("Terminator"),Nr("CreateRequest"),Nr("Document"),Nr("TriangleDown"))),$r(),Ya(),Yr()),Xe.current.groupTemplate=zt(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),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",$r(),Ya(),Yr()),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",pn=>pn>=1?10:0),new Ce.KX("toShortLength","dir",pn=>pn>=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",pn=>pn===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",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))),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",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))),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:ro(2)},new Ce.KX("pathPattern","thickness",ro)),So({alignmentFocus:new Ce.z6(0,0,-6,-4)}));function ro(pn){return zt(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"),zt(Ce.bn,{geometryString:na,margin:2,background:"transparent",mouseEnter:(La,Jn)=>Jn.background="dodgerblue",mouseLeave:(La,Jn)=>Jn.background="transparent",click:er("dir",pn),contextClick:er("dir",pn)})}function ca(pn){var na=(La,Jn)=>{La.handled=!0,La.diagram.model.commit(dr=>{var nr=Jn.part.adornedPart;dr.set(nr.data,pn?"toSpot":"fromSpot",Ce.z6.stringify(Ce.z6.AllSides)),(pn?nr.toNode:nr.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:na,contextClick:na})}function nn(pn,na){var La=0,Jn=Ce.z6.RightSide;pn.equals(Ce.z6.Top)?(La=270,Jn=Ce.z6.TopSide):pn.equals(Ce.z6.Left)?(La=180,Jn=Ce.z6.LeftSide):pn.equals(Ce.z6.Bottom)&&(La=90,Jn=Ce.z6.BottomSide),na||(La-=180);var dr=(nr,yr)=>{nr.handled=!0,nr.diagram.model.commit(eo=>{var fr=yr.part.adornedPart;eo.set(fr.data,na?"toSpot":"fromSpot",Ce.z6.stringify(Jn)),(na?fr.toNode:fr.fromNode).invalidateConnectedLinks()})};return zt(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:(nr,yr)=>yr.background="dodgerblue",mouseLeave:(nr,yr)=>yr.background="transparent",click:dr,contextClick:dr})}Xe.current.linkTemplate.contextMenu=zt("ContextMenu",Ya(),Yr(),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Tr(0),Tr(1),Tr(2))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",zt(Ce.s_,"Spot",ca(!1),nn(Ce.z6.Top,!1),nn(Ce.z6.Left,!1),nn(Ce.z6.Right,!1),nn(Ce.z6.Bottom,!1)),zt(Ce.s_,"Spot",{margin:new Ce.Zt(0,0,0,2)},ca(!0),nn(Ce.z6.Top,!0),nn(Ce.z6.Left,!0),nn(Ce.z6.Right,!0),nn(Ce.z6.Bottom,!0)))));const 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 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=` +]}`;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 Wa=new Ce.YI(bn.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(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 Jn=(na=document.activeElement)==null?void 0:na.value;typeof Jn=="string"&&Jn.trim()===""&&Xe.current.model.commit(function(dr){dr.set(La.data,"text","\u672A\u547D\u540D"),Xe.current.commandHandler.stopCommand()},"increment")}),Wa.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=()=>Tt(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),ta(pa+1),()=>{Xe.current=null}),[]),Qt.createElement("div",{ref:wa,className:Nn.current?`${gn.maxH60} body-overflow-initial`:"body-overflow-initial"},Qt.createElement(et.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!pa,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Qt.createElement(Kt.Z,null,Qt.createElement(pt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Qt.createElement(pt.Z,{onClick:()=>{var zt,Ma,hr=Xe.current.selection.first();if(Nn.current=!Nn.current,document.activeElement&&hr){let So=(Ma=(zt=document.activeElement)==null?void 0:zt.value)==null?void 0:Ma.trim();typeof So=="string"&&Xe.current.model.commit(function(er){er.set(hr.data,"text",So||"\u672A\u547D\u540D"),Xe.current.commandHandler.stopCommand()},"increment")}ta(pa+1)}},Qt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Je},Qt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:gn.flowChartWrp},Qt.createElement("div",{style:{display:"flex",height:"100%"}},Qt.createElement("div",{style:{width:"300px",height:"100%"}},Qt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Qt.createElement("div",{style:{height:"calc(100% - 50px)"},className:gn.myPaletteDiv,ref:bn})),Qt.createElement("div",{style:{flex:1,position:"relative"}},Qt.createElement("div",{ref:on,style:{height:"80vh"}}))),Qt.createElement("div",{className:"tr"},Qt.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 _a=tn.ZP.Group,Fa={margin:"0 8px"};var Tn=({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(_a,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")))},Va=ae(78673),Aa=ae(13547),vr=ae.n(Aa),jn=(0,b.forwardRef)(({use3d:Je,width:nt,height:Xe,callback:on,showSaveButton:bn},Nn)=>{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 zt=()=>{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)(Nn,()=>({getImgData:zt})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:wa}),b.createElement(Kt.Z,{align:"middle"},b.createElement(pt.Z,{flex:1},b.createElement(Va.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:zt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),da=ae(29386),Ea=ae(1012),xa=ae(8591);const Ja="link",Sn="upload-image",ln="add-flowchart",Et="draw-image",jt="add-flowchart",Ga="code-block",Ca="add-table",Qa="------------",Da={default:Qa,left:`:${Qa}`,center:`:${Qa}:`,right:`${Qa}:`};var Ra=ae(34500),wr=(Je,nt,Xe)=>new Promise((on,bn)=>{var Nn=ta=>{try{pa(Xe.next(ta))}catch(ya){bn(ya)}},wa=ta=>{try{pa(Xe.throw(ta))}catch(ya){bn(ya)}},pa=ta=>ta.done?on(ta.value):Promise.resolve(ta.value).then(Nn,wa);pa((Xe=Xe.apply(Je,nt)).next())});function ar(){}let kr=0;const Mo=1e4,Ut="\u2581",Yn="@\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 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(`
+\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 Rt(Je){return/^\d+$/.test(Je)?`${Je}px`:Je}const vn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",kt={[vn+"-B"]:"bold",[vn+"-I"]:"italic"},Wn={[Ja]:"\u6DFB\u52A0\u94FE\u63A5",[Ga]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Sn]:"\u6DFB\u52A0\u56FE\u7247",[Et]:"\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 _n=({defaultValue:Je="",onChange:nt,width:Xe="100%",height:on=400,miniToolbar:bn=!1,isFocus:Nn=!1,watch:wa,insertTemp:pa,mode:ta="markdown",id:ya="markdown-editor-id",showResizeBar:qn=!1,noStorage:zt=!1,showNullButton:Ma=!1,showNullProgramButton:hr=!1,hidetoolBar:So=!1,fullScreen:er=!1,onBlur:Ht,onCMBeforeChange:$r,onFullScreen:Ya,className:Pr="",disablePaste:ur=!1,disabled:Yr=!1,disabledFill:Nr=!1,placeholder:ro="",values:Tr="",extraUse:ca})=>{const[nn,mr]=(0,b.useState)(null),[ga,sr]=(0,b.useState)(Je),[Wa,pn]=(0,b.useState)(wa),[na,La]=(0,b.useState)(er),[Jn,dr]=(0,b.useState)(""),[nr,yr]=(0,b.useState)(0),[eo,fr]=(0,b.useState)(on),[_o,Ro]=(0,b.useState)(!1),Fl=(0,b.useRef)((0,Ea.Z)()),Dr=(0,b.useRef)(!1),Or=(0,b.useRef)(),[Ao,Xa]=(0,b.useState)(0),[Kr,to]=(0,b.useState)(0),Er=(0,b.useRef)(),no=(0,b.useRef)(),Dt=(0,b.useRef)(),At=(0,b.useRef)(),ht=()=>wr(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:",nn,Er),Dn.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)(()=>{Ya==null||Ya(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 sn=Ct.types.toString(),vt=Ct.items;if(sn==="Files"||Ct.types.indexOf("Files")>-1){if(me.preventDefault(),ta=="stex")return;try{let Ln=vt[1];((mt=vt[0])==null?void 0:mt.kind)==="file"&&(Ln=vt[0]);const yn=Ln.getAsFile(),fn=yn.name.split(".").pop();(0,Te.I)(yn,Fn=>{var Ia,gr,br;Fn.id?((Ia=yn==null?void 0:yn.type)==null?void 0:Ia.indexOf("image"))>-1?Dn.replaceSelection(``):((gr=yn==null?void 0:yn.type)==null?void 0:gr.indexOf("video"))>-1?Dn.replaceSelection(``):((br=yn==null?void 0:yn.type)==null?void 0:br.indexOf("pdf"))>-1?Dn.replaceSelection(`${yn.name}`):Ze.includes(fn)?Dn.replaceSelection(`${yn.name}`):Dn.replaceSelection(`[${yn.name}](/api/attachments/${Fn.id}?type=${Fn.content_type})`):(Fn==null?void 0:Fn.status)===401&&(xa.ZP.warning((Fn==null?void 0:Fn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Ln){xa.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Dn=we().fromTextArea(Er.current,{mode:ta,lineNumbers:!bn,lineWrapping:!0,value:Je,autoCloseTags:!hr,autoCloseBrackets:!0});return Dn.on("keyup",function(Gn,me){me.keyCode===8&&(Gn.getValue()==""?Dn.setOption("placeholder",ro):Dn.setOption("placeholder",null))}),Dn.on("keydown",function(Gn,me){if(me.keyCode===8){var mt=Ha(Gn);mt&&me.preventDefault()}}),Nn&&Dn.focus(),Dn.on("paste",sa),Dn.on("dragleave",function(Gn,me){no.current.classList.remove("mouse-hover-md")}),Yr&&Dn.on("beforeChange",function(Gn,me){(me.origin==="paste"||me.origin==="+input")&&me.cancel()}),mr(Dn),()=>{Dn.off("paste",sa)}}},[]);const Rn=(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 Dn=new Be.Z(Gn=>{for(let me of Gn)(me.target.offsetHeight>0||me.target.offsetWidth>0)&&(Rn(),nn.setSize("100%","100%"),nn.refresh())});return Dn.observe(Er.current.parentElement),Dn}if(nn){const Dn=sa();return()=>{var Gn,me;(Gn=Er.current)!=null&&Gn.parentElement&&Dn.unobserve((me=Er.current)==null?void 0:me.parentElement)}}},[nn,Rn]),(0,b.useEffect)(()=>{if(nn){let sa=[];for(const[Dn,Gn]of Object.entries(kt)){let me={[Dn]:()=>{rr(Gn)}};sa.push(me),nn.addKeyMap(me)}return Or.current=setInterval(()=>{Dr.current&&ht()},4e3),()=>{clearInterval(Or.current);for(let Dn of sa)nn.removeKeyMap(Dn)}}},[nn]),(0,b.useEffect)(()=>{er!==na&&La(er)},[er]),(0,Ra.Z)(()=>{if(!zt&&nr>0){let sa=new Date().getTime(),Dn=window.sessionStorage.getItem(ya);sa>=nr+Mo&&(!Dn||Dn!==ga)&&(window.sessionStorage.setItem(ya,ga),Ro(!0))}},Mo),(0,b.useEffect)(()=>{pn(wa)},[nn,wa]),(0,b.useEffect)(()=>{nn&&Nn&&nn.focus()},[nn,Nn]),(0,b.useEffect)(()=>{if(Wa&&nn){let sa=function(Gn){let me=Gn.target;if(At.current){let mt=me.scrollTop/me.scrollHeight;At.current.scrollTop=At.current.scrollHeight*mt}};const Dn=nn.getScrollerElement();return Dn.addEventListener("scroll",sa),()=>{Dn.removeEventListener("scroll",sa)}}},[nn,Wa]),(0,b.useEffect)(()=>{if(nn&&$r){let sa=function(Dn,Gn){$r(Dn,Gn)};return nn.on("beforeChange",sa),()=>{nn.off("beforeChange",sa)}}},[nn,$r]),(0,b.useEffect)(()=>{if(nn&&Ht){let sa=function(){Ht(nn.getValue())};return nn.on("blur",sa),()=>{nn.off("blur",sa)}}},[nn,Ht]);function Ha(sa,Dn){var Gn=sa.getDoc(),me=Gn.getCursor(),mt=Gn.getLine(me.line),Ct=mt.charAt(me.ch-1),sn=mt.lastIndexOf("@\u2581@",me.ch),vt=mt.lastIndexOf("@\u2581\u2581@",me.ch),Ln=sn>vt?sn:vt,yn=sn>vt?3:4;if(Yn.indexOf(Ct)===-1)return null;if(console.log("change1:",Dn,sa,mt,me,Ln,sn,vt,Ct),Ln>=0&&me.ch-Ln<5){var fn=Ln+yn;return Gn.replaceRange("",{line:me.line,ch:Ln},{line:me.line,ch:fn}),{line:me.line,ch:fn}}return null}(0,b.useEffect)(()=>{if(nn){let sa=function(Dn,Gn){const me=Dn.getValue();sr(me),yr(new Date().getTime()),Dn.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(Yr?1:nn.lineCount(),0),window.scrollTo(0,sa))}},[nn,Je]);const rr=(0,b.useCallback)(sa=>{const Dn=nn.getCursor(),Gn=nn.getSelection();let me=Gn.split(` +`);switch(sa){case"bold":return nn.replaceSelection("**"+Gn+"**"),Gn===""&&nn.setCursor(Dn.line,Dn.ch+2),nn.focus();case"italic":return nn.replaceSelection("*"+Gn+"*"),Gn===""&&nn.setCursor(Dn.line,Dn.ch+1),nn.focus();case"code":return nn.replaceSelection("`"+Gn+"`"),Gn===""&&nn.setCursor(Dn.line,Dn.ch+1),nn.focus();case"inline-latex":return dr("inline-latex"),nn.focus();case"latex":return nn.replaceSelection("```latex\n"+Gn+"\n```"),nn.setCursor(Dn.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=` +`)),nn.focus();case"add-null-ch":return Gn===""&&nn.setCursor(Dn.line,Dn.ch),nn.replaceSelection(Ut),nn.focus();case"add-signal":return Gn===""&&nn.setCursor(Dn.line,Dn.ch),nn.replaceSelection($n),nn.focus();case"add-multiple":return Gn===""&&nn.setCursor(Dn.line,Dn.ch),nn.replaceSelection(Yn),nn.focus();case"inster-template-1":return Gn===""&&nn.setCursor(Dn.line,Dn.ch),nn.replaceSelection(ba),nn.focus();case"eraser":return nn.setValue(""),nn.focus();case"trigger-watch":return pn(!Wa),nn.focus();case"trigger-full-screen":return La(!na),nn.focus();case Ja:dr(Ja);return;case Ga:dr(Ga);return;case Sn:dr(Sn);return;case Et:dr(Et);return;case"maths-latex":dr("maths-latex");return;case ln:dr(ln);return;case Ca:dr(Ca);return;default:throw new Error}},[nn,Wa,na]),Pn=(0,b.useCallback)((sa,Dn)=>{var Gn,me,mt,Ct,sn,vt;switch(dr(""),Jn){case Ja:const{title:Ia,link:gr}=sa;return nn.replaceSelection(`[${Ia}](${gr})`),nn.focus();case Ga:const{language:br,content:ma}=sa;return nn.replaceSelection(["```"+br,ma,"```"].join(` +`)),nn.focus();case"maths-latex":for(var Ln=atob(sa),yn=new Uint8Array(Ln.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 Sn:case Et:case jt:const{src:va,alt:or}=sa,Sr=Dn,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||`):((sn=Sr==null?void 0:Sr.type)==null?void 0:sn.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(_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+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8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WMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/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/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njV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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/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLR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p9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+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`]:{[` +`),nn.focus();default:throw new Error}},[nn,Jn]),tr=(0,b.useMemo)(()=>{switch(Jn){case Ja:return b.createElement(Wt,{callback:Pn,onCancel:qa});case Ga:return b.createElement(St.Z,{callback:Pn,onCancel:qa});case Sn:return b.createElement(Te.Z,{callback:Pn,onCancel:qa});case ln:return b.createElement(ia,{callback:Pn,onCancel:qa});case Ca:return b.createElement(Tn,{callback:Pn,onCancel:qa});case"maths-latex":return b.createElement(jn,{showSaveButton:!0,callback:Pn});case"inline-latex":return b.createElement(da.Z,{showSaveButton:!0,callback:Pn});default:return null}},[Jn]);function qa(){dr("")}(0,b.useEffect)(()=>{if(Dt.current){let sa=function(sn){mt=!0,Ct=sn.pageY},Dn=function(){mt=!1},Gn=function(sn){if(mt){let vt=sn.pageY-Ct;vt<0&&(vt=0),vt>300&&(vt=300);let Ln=on+vt+"px";fr(Ln)}},me=Dt.current,mt=!1,Ct=0;return me.addEventListener("mousedown",sa),document.addEventListener("mousemove",Gn),document.addEventListener("mouseup",Dn),()=>{me.removeEventListener("mousedown",sa),document.removeEventListener("mousemove",Gn),document.removeEventListener("mouseup",Dn)}}},[nn,Dt]),(0,b.useEffect)(()=>{fr(on)},[on]);const oo=Rt(Xe),cr=Rt(eo),za={width:oo,height:cr},Lr=(0,b.useMemo)(()=>{if(nr){let sa=new Date(nr),Dn=sa.getHours(),Gn=sa.getMinutes(),me=sa.getSeconds();return Dn=Dn<10?"0"+Dn:Dn,Gn=Gn<10?"0"+Gn:Gn,me=me<10?"0"+me:me,`${Dn}:${Gn}:${me}`}return 0},[nr]),bo=sa=>{const Dn=[];if(hr){let Gn=-1;sa=sa.replace(/(@▁▁@|@▁@)/g,function(me,mt,Ct){Dn.push({multiLine:me!==$n})})}return Dn};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[Jn]&&Jn!==Et&&Jn!==ln&&setTimeout(()=>{const sa=document.getElementsByClassName("markdown-popup-form")[0],Dn=window.innerWidth/2-sa.offsetWidth/2,Gn=window.innerHeight/2-sa.offsetHeight/2;Xa(Dn),to(Gn)},0)},[Jn]);const yo=sa=>{sa.preventDefault();const Dn=sa.clientX-Ao,Gn=sa.clientY-Kr;document.body.onmousemove=me=>{let mt=me.clientX-Dn,Ct=me.clientY-Gn;const sn=document.getElementsByClassName("markdown-popup-form")[0],vt=window.innerWidth-sn.offsetWidth,Ln=window.innerHeight-sn.offsetHeight;mt=Math.max(0,Math.min(mt,vt)),Ct=Math.max(0,Math.min(Ct,Ln)),To(me.clientX,me.clientY,Dn,Gn)&&(Xa(mt),to(Ct))},document.body.onmouseup=function(){document.body.onmousemove=null}},To=(sa,Dn,Gn,me)=>{const mt=document.body.clientHeight,Ct=document.body.clientWidth;return sa<20&&Gn>sa||sa>Ct-20&&GnDn||Dn>mt-20&&mest in Le?ze(Le,st,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Le[st]=Me,z=(Le,st)=>{for(var Me in st||(st={}))a.call(st,Me)&&y(Le,Me,st[Me]);if(E)for(var Me of E(st))x.call(st,Me)&&y(Le,Me,st[Me]);return Le},te=(Le,st)=>Ue(Le,ue(st));const{useForm:oe}=b.default,se={width:280,marginRight:10},le={labelCol:{span:5},wrapperCol:{span:19}};var Pe=({callback:Le,onCancel:st})=>{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:st},"\u53D6\u6D88"))))};function Fe({onFileChange:Le}){return ke.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ke.createElement("input",{type:"file",onChange:Le}))}function Qe(Le,st){if(!Le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,De.bg)())throw 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){st(JSON.parse(Ge.target.responseText),Le)},!1),Ye.addEventListener("error",function(Ge){console.error(Ge)},!1),Ye.open("POST",`${Ke.KI}/api/attachments.json`),Ye.send(Me)}},23252:function(ot,Zt,ae){"use strict";ae.d(Zt,{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,Zt,ae){"use strict";ae.d(Zt,{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:st=4,right:Me,bottom:Ye=23,precision:Ge=0,wrapWidth:$e=1200,trackEventItems:be,loading:ft,onRemove:ct=()=>{},isCurrent:yt=!0,showAlias:Pt=!1,showProgress:En=!1})=>{const xn=Math.floor(($e-(st-1)*Me)/st),Wt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(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,Kt,wn,Mt,Xt,Ce;const{name:rt,id:rn,identifier:tt,featured:pt,school_name:Xn,image_url:gn,excellent:Qt,is_plan:Tt}=St;return se.createElement("div",{key:rn,className:yt&&En?b.wrapisCurrent:b.wrap,style:{width:xn,marginRight:(1+Te)%st===0?0:Me+Ge,marginBottom:Ye}},se.createElement("a",{className:b.li,onClick: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}`}),yt&&(0,Oe.bg)()&&(St==null?void 0:St.studying)&&se.createElement("div",{className:`${b.movebq} user-path-items`,onClick:Vn=>{Vn.stopPropagation(),ct(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((Vn,ia)=>{var tn,Ba;if(ia===0){const Fa=(tn=Wt.find(Tn=>Tn.name==Vn))==null?void 0:tn.swimg;return se.createElement("img",{className:b.sign,src:Fa,style:{left:"-4px"}})}const _a=(Ba=Wt.find(Fa=>Fa.name==Vn))==null?void 0:Ba.ptimg;return se.createElement("img",{className:b.sign,src:_a,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))),yt&&En&&((Kt=St==null?void 0:St.progress)==null?void 0:Kt.all_score)!=0&&se.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},se.createElement(Be.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((wn=St==null?void 0:St.progress)==null?void 0:wn.my_score)/((Mt=St==null?void 0:St.progress)==null?void 0:Mt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Xt=St==null?void 0:St.progress)==null?void 0:Xt.my_score,"/",(Ce=St==null?void 0:St.progress)==null?void 0:Ce.all_score),(!yt||!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,Zt,ae){"use strict";ae.d(Zt,{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 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 wn},cq:function(){return Ut},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+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+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pGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Re=({dataSource:Dt=[],img:At,imgWidth:ht=346,title:Rn,sunTitle:Ha,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,Rn),b.createElement("span",null,Ha)),Dt.length>0&&b.createElement("div",{className:Ee.btns},Dt.map((Pn,tr)=>b.createElement("div",{key:tr,onClick:Pn.click},Pn.name,Pn.sign?b.createElement("img",{src:we,width:39}):null))),rr),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=(Dt,At,ht)=>At in Dt?De(Dt,At,{enumerable:!0,configurable:!0,writable:!0,value:ht}):Dt[At]=ht,E=(Dt,At)=>{for(var ht in At||(At={}))ze.call(At,ht)&&ue(Dt,ht,At[ht]);if(ke)for(var ht of ke(At))Ue.call(At,ht)&&ue(Dt,ht,At[ht]);return Dt},x=({dataSource:Dt=[],value:At,onChange:ht,onTitleChange:Rn,className:Ha,title:rr,titleWidth:Pn=41,style:tr={},fontColor:qa="#6A7283",showCount:oo,classNameActive:cr,styleItem:za={}})=>{const[Lr,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;Dt.length!==0&&(((sa=yo==null?void 0:yo.current)==null?void 0:sa.clientHeight)>97?bo(1):bo(0)),Dt.length===0&&bo(0),jr(!1)},[Dt]),b.createElement("div",{className:Ke()(We.row,Ha),style:tr},b.createElement("div",{onClick:(0,Oe.throttle)(()=>Rn==null?void 0:Rn(),2e3),style:{width:Pn,marginTop:rl?12:4},className:`${We.title} ${Rn?"current":""}`},rr),b.createElement("div",{className:rl?`${We.tagsWrap} ${We.tagsBorderWrap}`:We.tagsWrap},b.createElement("div",{className:We.bar,ref:To,style:Lr>0?{height:Lr===1?97:"auto",overflow:Lr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:We.tag,ref:yo},Dt==null?void 0:Dt.map(sa=>b.createElement("span",{onClick:()=>ht(sa.id),key:sa.id,style:E(E({color:qa},za),(sa==null?void 0:sa.style)||{}),className:At===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))))),!!Lr&&b.createElement(b.Fragment,null,Lr===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:Dt=[],value:At,onChange:ht,onTitleChange:Rn,className:Ha,title:rr,titleWidth:Pn=41,style:tr={},fontColor:qa="#6A7283",showCount:oo,expand:cr=!0})=>{const[za,Lr]=(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,Ha),style:tr},b.createElement("div",{className:"flex item-center justify-between"},b.createElement("div",{onClick:(0,Oe.throttle)(()=>Rn==null?void 0:Rn(),2e3),style:{width:Pn,marginTop:bo?12:4},className:`${y.title} ${Rn?"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},Dt==null?void 0:Dt.map(Dn=>b.createElement("span",{onClick:()=>ht(Dn.id),key:Dn.id,style:{color:qa},className:At===Dn.id?y.active:""},b.createElement("span",{title:Dn.name,className:y.name},Dn.name),!!oo&&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:Dt=[],value:At,onChange:ht,className:Rn,style:Ha={}})=>b.createElement("div",{style:Ha,className:Ke()(oe.tabs,Rn)},Dt.map(rr=>b.createElement("span",{onClick:()=>ht(rr.id),className:At===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:Dt=[],value:At="",onChange:ht,onInputChange:Rn=()=>{},className:Ha,style:rr={},placeholder:Pn,allowClear:tr=!1})=>{var qa;const[oo,cr]=(0,b.useState)(""),[za,Lr]=(0,b.useState)("");(0,b.useEffect)(()=>{var jr;let yo=At;(jr=JSON.stringify(At))!=null&&jr.includes("{")&&(cr(At.id),yo=At.value||"");try{Lr(decodeURIComponent(yo||""))}catch(To){Lr(decodeURIComponent(yo||""))}},[At]);const bo=()=>{ht(encodeURIComponent(za),oo||null)},rl=jr=>{jr!==oo&&(cr(jr),ht(encodeURIComponent(za),jr))};return b.createElement("div",{className:Ke()(Pe.input,Ha),style:rr},!!Dt.length&&b.createElement("div",{className:Pe.dropdown},b.createElement("div",{className:Pe.text},(qa=Dt.find(jr=>jr.id===oo))==null?void 0:qa.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},Dt.map((jr,yo)=>b.createElement("div",{key:yo,onClick:()=>rl(jr.id)},jr.name)))),b.createElement(Fe.default,{onPressEnter:bo,value:za,onChange:jr=>{Lr(jr.target.value),Rn(encodeURIComponent(jr.target.value),oo||null)},bordered:!1,placeholder:Pn}),b.createElement("i",{onClick:bo,className:"iconfont icon-sousuo9 font14 pl10 current"}))},st={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Ye=({value:Dt,onChange:At,className:ht,total:Rn,pageSize:Ha,style:rr={}})=>{const Pn=Dt<2,tr=Dt>=Math.ceil(Rn/Ha);return Rn<=Ha?b.createElement(b.Fragment,null):b.createElement("div",{className:Ke()(st.quickPager,ht),style:rr},b.createElement("div",{onClick:()=>{Pn||At(Dt-1,"prev")},className:Pn?st.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{tr||At(Dt+1,"next")},className:tr?st.disabled:""},"\u4E0B\u4E00\u9875"))},Ge={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},$e=ae(71418),be=ae(6848),ft=ae(13570),ct=ae(41510),yt=ae(21331),Pt=ae(96908),En=ae(57177),xn=ae(81378),Wt=ae(41625),Te=({className:Dt,dataSource:At=[],col:ht=4,right:Rn,bottom:Ha=23,precision:rr=0,wrapWidth:Pn=1200,trackEventItems:tr,loading:qa})=>{const oo=Math.floor((Pn-(ht-1)*Rn)/ht);return b.createElement($e.Z,{spinning:qa},b.createElement("div",{className:Ke()(Ge.list,Dt)},!!At.length&&At.map((cr,za)=>{const{name:Lr,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+za)%ht===0?0:Rn+rr,marginBottom:Ha}},b.createElement("a",{target:"_blank",href:`/shixuns/${rl}/challenges`,className:Ge.li,onClick:sa=>{sa.preventDefault(),tr&&(0,yt.L9)([tr]),jr&&(0,yt.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:Pt}),cr.is_jupyter_lab&&b.createElement("img",{className:Ge.sign,src:En}),cr.is_unity_3d&&b.createElement("img",{className:Ge.sign,src:xn})),b.createElement("div",{className:Ge.name},b.createElement(be.Z,{title:Lr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:Ge.e},Lr||"\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")))}),!At.length&&b.createElement(Wt.Z,null)))},et={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},wn=({className:Dt,dataSource:At=[],col:ht=4,right:Rn,bottom:Ha=23,precision:rr=0,wrapWidth:Pn=1200,wrapClassName:tr,trackEventItems:qa,loading:oo})=>{const cr=Math.floor((Pn-(ht-1)*Rn)/ht);return b.createElement($e.Z,{spinning:oo},b.createElement("div",{className:Ke()(et.list,Dt)},!!At.length&&At.map((za,Lr)=>{const{name:bo,id:rl,identifier:jr,power:yo,cover_image_id:To,pic:sa}=za;return b.createElement("div",{className:Ke()(et.wrap,tr),key:rl,style:{width:cr,marginRight:(1+Lr)%ht===0?0:Rn+rr,marginBottom:Ha}},b.createElement("a",{target:"_blank",href:`/shixuns/${jr}/challenges`,className:et.li,onClick:Dn=>{Dn.preventDefault(),qa&&(0,yt.L9)([qa]),yo&&(0,yt.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}`}),za.is_jupyter&&b.createElement("div",{className:et.bq},"Jupyter"),za.is_jupyter_lab&&b.createElement("div",{className:et.bq},"JupyterLab"),za.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},za.myshixuns_count)),b.createElement("div",null,b.createElement("span",{className:et.text},"\u56F0\u96BE\u7B49\u7EA7"),b.createElement("span",{className:et.value},za.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},za.challenges_count)),b.createElement("div",{className:et.rate},b.createElement(ft.Z,{allowHalf:!0,disabled:!0,defaultValue:za.score_info}),b.createElement("span",{className:et.value,style:{color:"#FF9C00"}},"\xA0",za.score_info?`${za.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")))}),!At.length&&b.createElement(Wt.Z,null)))},Mt=ae(50543),Xt={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),Qt=ae(42922),Tt=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:Qt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Tt,swimg:Vn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:ia,swimg:tn}];var Fa=({className:Dt,dataSource:At=[],col:ht=4,right:Rn,bottom:Ha=23,precision:rr=0,wrapWidth:Pn=1200,trackEventItems:tr,loading:qa,wrapClassName:oo,imgClassName:cr,isArrow:za=!1})=>{const Lr=Math.floor((Pn-(ht-1)*Rn)/ht),[bo,rl]=(0,b.useState)(),[jr,yo]=(0,b.useState)(),To=Dn=>rl(Dn),sa=()=>rl(-1);return b.createElement($e.Z,{spinning:qa},b.createElement("div",{className:Ke()(Xt.list,Dt)},!!(At!=null&&At.length)&&(At==null?void 0:At.map((Dn,Gn)=>{var me;const{name:mt,id:Ct,identifier:sn,featured:vt,school_name:Ln,image_url:yn,excellent:fn,is_plan:Fn}=Dn;return b.createElement("div",{key:Ct,className:Ke()(Xt.wrap,oo),style:{width:Lr,marginRight:(1+Gn)%ht===0?0:Rn+rr,marginBottom:Ha}},b.createElement("a",{target:"_blank",href:`/paths/${sn}`,className:Xt.li,onClick:Ia=>{Ia.preventDefault(),tr&&(0,yt.L9)([tr]),(0,yt.xg)(`/paths/${sn}`)}},b.createElement("img",{src:ae(39057),className:Xt.titleBg}),b.createElement("div",{className:Xt.name},b.createElement(be.Z,{title:mt},b.createElement("span",{className:Xt.e,style:{color:za&&bo===Gn?"#145DFF":"#000000"},onMouseEnter:()=>{To(Gn)},onMouseLeave:sa},mt))),b.createElement("div",{style:{padding:"14px",paddingBottom:0}},b.createElement("div",{className:Ke()(Xt.img,cr)},b.createElement("img",{className:Xt.cover,src:`${ct.Z.IMG_SERVER+yn}`}),(me=Dn==null?void 0:Dn.subject_tags)==null?void 0:me.map((Ia,gr)=>{var br,ma;if(gr===0){const or=(br=Ba.find(Sr=>Sr.name==Ia))==null?void 0:br.swimg;return b.createElement("img",{className:Xt.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:Xt.sign,src:va,style:{left:`${48+52*(gr-1)+2*gr}px`}})}),b.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(Dn==null?void 0:Dn.excellent)&&b.createElement("div",{className:Xt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),b.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:Xt.text},"\u7AE0\u8282\u6570"),b.createElement("span",{className:Xt.value},Dn.stages_count)),b.createElement("div",null,b.createElement("span",{className:Xt.text},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:Xt.value},Dn.members_count))))))})),!At.length&&b.createElement(Wt.Z,null)))},Tn={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",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3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Aa=ae(59301),ua=({className:Dt,dataSource:At=[],col:ht=4,right:Rn,bottom:Ha=23,precision:rr=0,wrapWidth:Pn=1200,trackEventItems:tr,loading:qa})=>{const oo=Math.floor((Pn-(ht-1)*Rn)/ht);return Aa.createElement($e.Z,{spinning:qa},Aa.createElement("div",{className:Ke()(Tn.list,Dt)},!!At.length&&At.map((cr,za)=>{const{subject_identifier:Lr,id:bo,identifier:rl,power:jr}=cr,yo=cr.is_public!=0&&cr.is_public;return Aa.createElement("div",{className:Tn.wrap,key:bo,style:{width:oo,marginRight:(1+za)%ht===0?0:Rn+rr,marginBottom:Ha}},Aa.createElement("a",{className:Tn.li,onClick:To=>{To.preventDefault(),tr&&(0,yt.L9)([tr]),(0,yt.xg)(cr.first_category_url)}},Aa.createElement("div",{className:Tn.top},Aa.createElement(be.Z,{title:cr.name},Aa.createElement("div",{className:Tn.name},cr.name)),Aa.createElement("img",{className:Tn.img,src:ct.Z.IMG_SERVER+"/images/"+cr.avatar_url}),Aa.createElement("div",{className:Tn.text,title:cr.creator},cr.creator),Lr&&Aa.createElement("div",{className:Tn.btns},Aa.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Aa.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),yo&&Aa.createElement("div",{className:Tn.sign},"\u516C\u5F00")),Aa.createElement("div",{className:Tn.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:Tn.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")))}),!At.length&&Aa.createElement(Wt.Z,null)))},jn={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+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373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AAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",xa=({className:Dt,dataSource:At=[],col:ht=4,right:Rn,bottom:Ha=23,precision:rr=0,wrapWidth:Pn=1200,wrapClassName:tr,trackEventItems:qa,loading:oo})=>{const cr=Math.floor((Pn-(ht-1)*Rn)/ht);return b.createElement($e.Z,{spinning:oo},b.createElement("div",{className:Ke()(jn.list,Dt)},!!At.length&&At.map((za,Lr)=>{const{subject_identifier:bo,id:rl,identifier:jr,power:yo}=za,To=za.is_public!=0&&za.is_public;return b.createElement("div",{className:Ke()(`${jn.wrap} ${za.is_accessible?"":jn.warpStyle}`,tr),key:rl,style:{width:cr,marginRight:(1+Lr)%ht===0?0:Rn+rr,marginBottom:Ha}},b.createElement("a",{className:jn.li,onClick:sa=>{sa.preventDefault(),qa&&(0,yt.L9)([qa]),(0,yt.xg)(za.first_category_url)}},b.createElement("div",{className:jn.creator},b.createElement("img",{className:jn.img,src:ct.Z.IMG_SERVER+"/images/"+za.avatar_url}),b.createElement("div",{className:jn.text,title:za.creator},za.creator)),b.createElement("div",{className:jn.top},b.createElement(be.Z,{title:za.name},b.createElement("div",{className:jn.name},za.name)),To&&b.createElement("div",{className:jn.sign},"\u516C\u5F00")),b.createElement("div",{className:jn.middle},b.createElement("div",{className:jn.row,style:{marginBottom:6}},b.createElement("div",null,b.createElement("span",{className:jn.text},"\u8BBF\u95EE\u91CF"),b.createElement("span",{className:jn.value},(za==null?void 0:za.visits)||0)),b.createElement("div",null,b.createElement("span",{className:jn.text},"\u6210\u5458"),b.createElement("span",{className:jn.value},(za==null?void 0:za.course_members_count)||0))),b.createElement("div",{className:jn.row},b.createElement("div",null,b.createElement("span",{className:jn.text,style:{width:42}},"\u4F5C",b.createElement("span",{style:{marginLeft:14}},"\u4E1A")),b.createElement("span",{className:jn.value},(za==null?void 0:za.tasks_count)||0)),b.createElement("div",null,b.createElement("span",{className:jn.text},"\u72B6\u6001"),za.is_end?b.createElement("span",{className:jn.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):b.createElement("span",{className:jn.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),bo&&b.createElement("div",{className:jn.btns},b.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),b.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!za.is_accessible&&b.createElement("div",{className:jn.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")))}),!At.length&&b.createElement(Wt.Z,null)))},Ja={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:Dt=[],value:At,onChange:ht,className:Rn,style:Ha={},tabBarExtraContent:rr})=>b.createElement("div",{className:Ke()(Ja.tabs,Rn),style:Ha},b.createElement("div",{className:Ja.tabsWrap},Dt.map((Pn,tr)=>b.createElement("aside",{className:Ja.tab,onClick:()=>{ht(Pn.id),Pn.link&&Sn.history.push(Pn.link)},key:tr},b.createElement("div",{className:At===Pn.id?Ja.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:Ja.tabBar},rr)),jt={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:Dt=[],value:At,onChange:ht,className:Rn,style:Ha={},tabBarExtraContent:rr})=>b.createElement("div",{className:Ke()(jt.tabs,Rn),style:Ha},b.createElement("div",{className:jt.tabsWrap},Dt.map((Pn,tr)=>b.createElement("aside",{className:jt.tab,onClick:()=>{ht(Pn.id),Pn.link&&Sn.history.push(Pn.link)},key:tr},b.createElement("div",{className:At===Pn.id?jt.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:jt.tabBar},rr)),Da=({className:Dt,style:At={},children:ht})=>b.createElement("div",{className:Ke()(Dt),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"},wr=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 Ut=({sortValue:Dt,dropValue:At,className:ht,onSort:Rn,onDrop:Ha,dataSource:rr=kr})=>{var Pn;return b.createElement("div",{className:Ke()(Ra.orderWrap,ht)},b.createElement(wr.Z,{dropdownRender:()=>b.createElement(ar.default,null,rr.map((tr,qa)=>b.createElement(ar.default.Item,{key:qa,onClick:()=>Ha(tr.id)},tr.name)))},b.createElement("span",{className:Ra.orderTextWrap},(Pn=rr.find(tr=>At===tr.id))==null?void 0:Pn.name)),b.createElement("span",{className:Ra.orderIconWrap},b.createElement("span",{className:Ra.orderAsc},b.createElement("i",{className:Dt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ra.cursorPointer} ${Ra.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ra.cursorPointer}`,onClick:()=>Rn(Dt==="asc"?"desc":"asc")})),b.createElement("span",{className:Ra.orderDesc},b.createElement("i",{className:Dt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ra.cursorPointer} ${Ra.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ra.cursorPointer}`,onClick:()=>Rn(Dt==="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"},$n=ae(3113),ba=ae(95051),Ze=Object.defineProperty,Rt=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,kt=(Dt,At,ht)=>At in Dt?Ze(Dt,At,{enumerable:!0,configurable:!0,writable:!0,value:ht}):Dt[At]=ht,Wn=(Dt,At)=>{for(var ht in At||(At={}))qt.call(At,ht)&&kt(Dt,ht,At[ht]);if(Rt)for(var ht of Rt(At))vn.call(At,ht)&&kt(Dt,ht,At[ht]);return Dt},_n=(Dt,At)=>{var ht={};for(var Rn in Dt)qt.call(Dt,Rn)&&At.indexOf(Rn)<0&&(ht[Rn]=Dt[Rn]);if(Dt!=null&&Rt)for(var Rn of Rt(Dt))At.indexOf(Rn)<0&&vn.call(Dt,Rn)&&(ht[Rn]=Dt[Rn]);return ht},Je=(Dt,At,ht)=>new Promise((Rn,Ha)=>{var rr=qa=>{try{tr(ht.next(qa))}catch(oo){Ha(oo)}},Pn=qa=>{try{tr(ht.throw(qa))}catch(oo){Ha(oo)}},tr=qa=>qa.done?Rn(qa.value):Promise.resolve(qa.value).then(rr,Pn);tr((ht=ht.apply(Dt,At)).next())}),Xe=Dt=>{var At=Dt,{className:ht,style:Rn,children:Ha,loading:rr=!1,openLoading:Pn,onClick:tr=()=>{},size:qa="middle",shape:oo="round",theme:cr}=At,za=_n(At,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[Lr,bo]=(0,b.useState)(!1),rl=(0,b.useMemo)(()=>{switch(cr){case ba.Fy.THEMEONE:return Yn.ThemeOne;case ba.Fy.DEFAULT:default:return Yn.btn}},[cr]);return b.createElement($n.ZP,Wn({onClick:(0,Oe.throttle)(jr=>Je(void 0,null,function*(){Pn&&bo(!0);try{yield tr(jr)}catch(yo){console.log("error",yo)}Pn&&bo(!1)}),2e3,{leading:!0,trailing:!1}),className:Ke()(rl,Yn[`${qa}-${oo}`],ht),style:Rn,size:qa,shape:oo,loading:Lr||rr},za),Ha)},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"},Nn=({className:Dt,style:At,children:ht=null,onClick:Rn,title:Ha})=>b.createElement("div",{className:Ke()(on.head,Dt),style:At},b.createElement("span",{className:"primary-hover",onClick:Rn},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:Ha},Ha),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:Dt=!0,confirmTitle:At,confirmClick:ht,cancelShow:Rn=!0,cancelTitle:Ha,cancelClick:rr,className:Pn,style:tr,confirmLoading:qa=!1})=>b.createElement("div",{className:Ke()(wa.btns,Pn),style:tr},Dt&&b.createElement($n.ZP,{loading:qa,onClick:ht,type:"primary",className:wa.confirm},At),Rn&&b.createElement($n.ZP,{onClick:rr,className:wa.cancel},Ha)),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:Dt,style:At={},LeftContent:ht,children:Rn,RightContent:Ha})=>b.createElement("div",{className:Ke()(ya.fixedBottom,Dt),style:At},b.createElement("div",{className:ya.wrap},b.createElement("div",{className:ya.left},ht),b.createElement("div",{className:ya.center},Rn),b.createElement("div",{className:ya.right},Ha))),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:Dt,style:At={},dataSource:ht=[]})=>b.createElement("div",{className:Ke()(Ma.crumbs,Dt),style:At},ht.map((Rn,Ha)=>HaSn.history.push(Rn.path)},Rn.name):b.createElement("span",null,Rn.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:Ha,style:{color:"#5F6368"}},Rn.name))),er=ae(31797),Ht=Object.defineProperty,$r=Object.defineProperties,Ya=Object.getOwnPropertyDescriptors,Pr=Object.getOwnPropertySymbols,ur=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable,Nr=(Dt,At,ht)=>At in Dt?Ht(Dt,At,{enumerable:!0,configurable:!0,writable:!0,value:ht}):Dt[At]=ht,ro=(Dt,At)=>{for(var ht in At||(At={}))ur.call(At,ht)&&Nr(Dt,ht,At[ht]);if(Pr)for(var ht of Pr(At))Yr.call(At,ht)&&Nr(Dt,ht,At[ht]);return Dt},Tr=(Dt,At)=>$r(Dt,Ya(At)),ca=(Dt,At)=>{var ht={};for(var Rn in Dt)ur.call(Dt,Rn)&&At.indexOf(Rn)<0&&(ht[Rn]=Dt[Rn]);if(Dt!=null&&Pr)for(var Rn of Pr(Dt))At.indexOf(Rn)<0&&Yr.call(Dt,Rn)&&(ht[Rn]=Dt[Rn]);return ht};const{Countdown:nn}=er.default;var ga=Dt=>{var At=Dt,{onChange:ht}=At,Rn=ca(At,["onChange"]);const[Ha,rr]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof Ha=="number"&&Ha>=0&&ht(Ha)},[Ha]);const Pn=tr=>{const qa=Math.floor(tr/1e3);rr(qa)};return b.createElement(nn,Tr(ro({},Rn),{onChange:Pn}))},sr={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},pn=({DataProps:Dt,className:At,style:ht={}})=>{var Rn;return b.createElement("div",{className:Ke()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",sr.ClassRoomItem,At),style:ht,onClick:()=>{(0,yt.xg)(Dt==null?void 0:Dt.first_category_url)}},b.createElement("div",{className:"flex flex-col item-center"},b.createElement("img",{src:`${(Rn=ct.Z)==null?void 0:Rn.IMG_SERVER}/images/${Dt==null?void 0:Dt.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(Dt==null?void 0:Dt.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}},!!(Dt!=null&&Dt.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)},Dt==null?void 0:Dt.name)),b.createElement("div",{className:"c-grey-333 font-medium"},Dt==null?void 0:Dt.creator),b.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",Dt==null?void 0:Dt.course_members_count),b.createElement("div",{className:"c-grey-333 flex item-center justify-between"},b.createElement("div",null,"\u4F5C\u4E1A\uFF1A",Dt==null?void 0:Dt.tasks_count),Dt!=null&&Dt.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,Jn=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable,nr=(Dt,At,ht)=>At in Dt?na(Dt,At,{enumerable:!0,configurable:!0,writable:!0,value:ht}):Dt[At]=ht,yr=(Dt,At)=>{for(var ht in At||(At={}))Jn.call(At,ht)&&nr(Dt,ht,At[ht]);if(La)for(var ht of La(At))dr.call(At,ht)&&nr(Dt,ht,At[ht]);return Dt},fr=({DataProps:Dt=[],selectValue:At,onChange:ht,className:Rn,style:Ha={},extra:rr,classNameItem:Pn,styleItem:tr={},barHidden:qa})=>{const[oo,cr]=(0,b.useState)();return(0,b.useEffect)(()=>{cr(Array.isArray(At)?At:[At])},[At]),b.createElement("div",{className:Ke()("flex px-20px py-10px gap-40px",Rn),style:yr({borderBottom:"1px solid #D3F0FF"},Ha)},Dt==null?void 0:Dt.map(za=>b.createElement("div",{key:za==null?void 0:za.id,className:Ke()("flex item-center justify-center current c-grey-333 text-16 relative",Pn,za==null?void 0:za.className),style:yr(yr({color:oo!=null&&oo.includes(za==null?void 0:za.id)?"#1890FF":"",minWidth:88},tr),(za==null?void 0:za.style)||{}),onClick:Lr=>{ht==null||ht({domEvent:Lr,item:za}),za!=null&&za.link&&Sn.history.push(za==null?void 0:za.link)}},za==null?void 0:za.name,!qa&&(oo==null?void 0:oo.includes(za==null?void 0:za.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,Dr=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,Ao=Object.prototype.propertyIsEnumerable,Xa=(Dt,At,ht)=>At in Dt?_o(Dt,At,{enumerable:!0,configurable:!0,writable:!0,value:ht}):Dt[At]=ht,Kr=(Dt,At)=>{for(var ht in At||(At={}))Or.call(At,ht)&&Xa(Dt,ht,At[ht]);if(Dr)for(var ht of Dr(At))Ao.call(At,ht)&&Xa(Dt,ht,At[ht]);return Dt},to=(Dt,At)=>Ro(Dt,Fl(At)),no=({value:Dt,onChange:At,onInputChange:ht,className:Rn,style:Ha={},InputProps:rr})=>{const[Pn,tr]=(0,b.useState)(Dt);return b.createElement("div",{className:Ke()("flex item-center rounded-full px-10px py-2px",Rn),style:Kr({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},Ha)},b.createElement(Fe.default,to(Kr({bordered:!1},rr),{onChange:qa=>{tr(qa.target.value),ht==null||ht(encodeURIComponent(qa.target.value))},onPressEnter:qa=>{At==null||At({domEvent:qa,item:{value:Pn}})}})),b.createElement("img",{className:"h-22px current",src:ae(25365),height:22,onClick:qa=>{At==null||At({domEvent:qa,item:{value:Pn}})}}))}},34500:function(ot,Zt,ae){"use strict";ae.d(Zt,{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,Zt,ae){"use strict";ae.r(Zt),ae.d(Zt,{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{_t(he.next(it))}catch($t){Bt($t)}},Bn=it=>{try{_t(he.throw(it))}catch($t){Bt($t)}},_t=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,Bn);_t((he=he.apply(ie,Se)).next())});const y=({user:ie,dispatch:Se,classroomList:he,onModalOk:gt,setsubloading:Bt})=>{const Qn=(0,Ee.useParams)(),[Bn,_t]=(0,b.useState)(),[it,$t]=(0,b.useState)(!1);function ra(Ot){return Ot&&Ot{$t(!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:(Ot,wt)=>{_t(wt)},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*(){$t(!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,st=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))st.call(Se,he)&&Me(ie,he,Se[he]);return ie},Ge=(ie,Se,he)=>new Promise((gt,Bt)=>{var Qn=it=>{try{_t(he.next(it))}catch($t){Bt($t)}},Bn=it=>{try{_t(he.throw(it))}catch($t){Bt($t)}},_t=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,Bn);_t((he=he.apply(ie,Se)).next())}),be=({setitem:ie,item:Se,rz:he})=>{var gt,Bt,Qn,Bn,_t,it,$t,ra;let[Ot,wt]=(0,b.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const[ut]=we.default.useForm(),[xt,An]=(0,b.useState)(!1);(0,b.useEffect)(()=>{he&&!xt&&(Ot.zydatas=he,wt(Ye({},Ot)),An(!0),Se!=null&&Se.ec_course_id&&cn())},[Se,he,xt]),console.log(Ot,"params");function cn(){return Ge(this,null,function*(){yield Ft(Se==null?void 0:Se.ec_major_school_id),yield bt(Se==null?void 0:Se.ec_year_id),yield hn(Se==null?void 0:Se.ec_course_id),ut.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 Ft(en){return Ge(this,null,function*(){const Jt=yield(0,te.ZP)(`/api/ec_major_schools/${en}/ec_years/get_year_list.json`,{method:"get"});Ot.jbdatas=Jt==null?void 0:Jt.data,wt(Ye({},Ot)),ut.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function bt(en){return Ge(this,null,function*(){const Jt=yield(0,te.ZP)(`/api/ec_years/${en}/ec_courses/get_courses.json`,{method:"get"});Ot.kcdatas=Jt==null?void 0:Jt.data,wt(Ye({},Ot)),ut.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const hn=en=>Ge(void 0,null,function*(){const Jt=yield(0,te.ZP)(`/api/ec_courses/${en}/ec_points.json`,{method:"get",params:{ec_course_id:en}});Ot.zsdatas=Jt==null?void 0:Jt.data,wt(Ye({},Ot))});return b.createElement("div",{className:le.from},b.createElement(we.default,{form:ut,layout:"inline",onValuesChange:en=>{console.log("----",en),en.ec_major_school_id&&(Ot.jbdatas=[],Ot.kcdatas=[],Ot.zsdatas=[],wt(Ye({},Ot)),Ft(en.ec_major_school_id)),en.ec_year_id&&(Ot.kcdatas=[],Ot.zsdatas=[],wt(Ye({},Ot)),bt(en.ec_year_id)),en.ec_course_id&&(Ot.zsdatas=[],wt(Ye({},Ot)),hn(en.ec_course_id))},onFinish:en=>Ge(void 0,null,function*(){ie(en)})},b.createElement(we.default.Item,{name:"ec_major_school_id"},b.createElement(Pe.default,{style:{width:160},disabled:((gt=Ot.zydatas)==null?void 0:gt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(Bt=Ot==null?void 0:Ot.zydatas)==null?void 0:Bt.map((en,Jt)=>b.createElement(Pe.default.Option,{key:Jt,value:en==null?void 0:en.ec_major_school_id},en==null?void 0:en.name)))),b.createElement(we.default.Item,{name:"ec_year_id"},b.createElement(Pe.default,{style:{width:160},disabled:((Qn=Ot.jbdatas)==null?void 0:Qn.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(Bn=Ot==null?void 0:Ot.jbdatas)==null?void 0:Bn.map((en,Jt)=>b.createElement(Pe.default.Option,{key:Jt,value:en==null?void 0:en.ec_year_id},en==null?void 0:en.year)))),b.createElement(we.default.Item,{name:"ec_course_id"},b.createElement(Pe.default,{style:{width:208},disabled:((_t=Ot.kcdatas)==null?void 0:_t.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(it=Ot==null?void 0:Ot.kcdatas)==null?void 0:it.map((en,Jt)=>b.createElement(Pe.default.Option,{key:Jt,value:en==null?void 0:en.id},en==null?void 0:en.name)))),b.createElement(we.default.Item,{name:"ec_point_ids"},b.createElement(Pe.default,{onChange:()=>{ut.submit()},style:{width:160},maxTagCount:1,maxTagTextLength:7,mode:"multiple",disabled:(($t=Ot.zsdatas)==null?void 0:$t.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(ra=Ot==null?void 0:Ot.zsdatas)==null?void 0:ra.map((en,Jt)=>b.createElement(Pe.default.Option,{key:Jt,value:en==null?void 0:en.id},en==null?void 0:en.name))))))},ft=Object.defineProperty,ct=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,Pt=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable,Wt=(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)&&Wt(ie,he,Se[he]);if(Pt)for(var he of Pt(Se))xn.call(Se,he)&&Wt(ie,he,Se[he]);return ie},Te=(ie,Se)=>ct(ie,yt(Se)),et=(ie,Se,he)=>new Promise((gt,Bt)=>{var Qn=it=>{try{_t(he.next(it))}catch($t){Bt($t)}},Bn=it=>{try{_t(he.throw(it))}catch($t){Bt($t)}},_t=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,Bn);_t((he=he.apply(ie,Se)).next())});const Kt=({user:ie,exercise_id:Se=null,homework_common_id:he=null,setitem:gt})=>{var Bt,Qn,Bn;let[_t,it]=(0,b.useState)([{id:Math.random()}]),[$t,ra]=(0,b.useState)(null);function Ot(){return et(this,null,function*(){var ut,xt,An,cn;let Ft=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(((ut=Ft==null?void 0:Ft.data)==null?void 0:ut.length)>0){let bt=[];(xt=Ft==null?void 0:Ft.data)==null||xt.map(hn=>{var en;(en=hn==null?void 0:hn.ec_point_ids)==null||en.map(Jt=>{bt.push(Jt)})}),gt(Te(St({},(An=Ft==null?void 0:Ft.data)==null?void 0:An[0]),{ec_point_ids:bt})),it((cn=Ft==null?void 0:Ft.data)==null?void 0:cn.map(hn=>Te(St({},hn),{id:Math.random()})))}})}(0,b.useEffect)(()=>{var ut,xt;(xt=(ut=ie==null?void 0:ie.userInfo)==null?void 0:ut.course)!=null&&xt.course_school_id&&wt()},[(Qn=(Bt=ie==null?void 0:ie.userInfo)==null?void 0:Bt.course)==null?void 0:Qn.course_school_id]);function wt(){return et(this,null,function*(){var ut,xt;const An=yield(0,te.ZP)(`/api/schools/${(xt=(ut=ie==null?void 0:ie.userInfo)==null?void 0:ut.course)==null?void 0:xt.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});ra(An==null?void 0:An.data),(he||Se)&&Ot()})}return console.log(_t,$t,"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},_t==null?void 0:_t.map((ut,xt)=>b.createElement("div",{key:ut.id,style:{display:"flex",alignItems:"center",marginBottom:20}},b.createElement(be,{rz:$t,item:ut,setitem:An=>{An=St(St({},_t==null?void 0:_t[xt]),An),_t.splice(xt,1,An),it([..._t]);let cn=[];_t==null||_t.map(Ft=>{var bt;(bt=Ft==null?void 0:Ft.ec_point_ids)==null||bt.map(hn=>{cn.push(hn)})}),gt(Te(St({},An),{ec_point_ids:cn}))}}),b.createElement(oe.Z,{className:le.addIcon,onClick:()=>{_t.push({id:Math.random()}),it([..._t])}}),xt!=0&&b.createElement(se.Z,{className:le.deleteIcon,onClick:()=>{_t.splice(xt,1);let An=[];_t==null||_t.map(cn=>{var Ft;(Ft=cn==null?void 0:cn.ec_point_ids)==null||Ft.map(bt=>{An.push(bt)})}),gt(Te(St({},_t[xt-1]),{ec_point_ids:An})),it([..._t])}}))))))};var wn=(0,Ee.connect)(({user:ie})=>({user:ie}))(Kt),Mt=ae(20834),Xt=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),Qt=ae(43141),Tt=ae(28900),Vn=ae(59301),ia=Object.defineProperty,tn=Object.defineProperties,Ba=Object.getOwnPropertyDescriptors,_a=Object.getOwnPropertySymbols,Fa=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,Va=(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)&&Va(ie,he,Se[he]);if(_a)for(var he of _a(Se))Tn.call(Se,he)&&Va(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{_t(he.next(it))}catch($t){Bt($t)}},Bn=it=>{try{_t(he.throw(it))}catch($t){Bt($t)}},_t=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,Bn);_t((he=he.apply(ie,Se)).next())}),da=({Itemid:ie,setqitem:Se,qitem:he,data:gt,getdata:Bt,bigitem:Qn,setBigqitem:Bn,isedit:_t,handleEditing:it})=>{const[$t,ra]=(0,b.useState)([]),[Ot,wt]=(0,b.useState)(!1),ut=(An,cn,Ft)=>{const bt=Array.from(An),[hn]=bt.splice(cn,1);return bt.splice(Ft,0,hn),bt};(0,b.useEffect)(()=>{gt.length>0&&ra([...gt])},[gt]);const xt=(An,cn)=>ua(void 0,null,function*(){if(!An.destination)return;if(_t){it();return}const Ft=ut(cn,An.source.index,An.destination.index);wt(!0);let bt=yield(0,te.ZP)(`/api/exercises/${ie}/adjust_position.json`,{method:"post",body:{id:ie,question_ids:Ft==null?void 0:Ft.map(hn=>hn.question_id)}});wt(!1),bt.status===0&&Bt({id:cn==null?void 0:cn[An.source.index].question_id})});return Vn.createElement("div",null,Vn.createElement(Qt.Z5,{onDragEnd:An=>xt(An,$t)},Vn.createElement(Qt.bK,{droppableId:"droppable"},(An,cn)=>Vn.createElement("div",Aa({ref:An.innerRef},An.droppableProps),Vn.createElement(Xt.Z,{spinning:Ot},$t.map((Ft,bt)=>Vn.createElement(Qt._l,{key:bt,draggableId:bt.toString(),index:bt},(hn,en)=>{var Jt,$a;return Vn.createElement("aside",Aa(Aa({ref:hn.innerRef},hn.draggableProps),hn.dragHandleProps),Vn.createElement(rt.Z,{title:Vn.createElement(Tt.Z,{value:(Ft==null?void 0:Ft.question_type)===8?(Jt=Ft==null?void 0:Ft.program_attr)==null?void 0:Jt.description:Ft.question_title}),color:"#fff",placement:"left",overlayClassName:tt.titleTooltip},Vn.createElement("div",{onClick:()=>{if(_t){it();return}Se(vr(Aa({},Ft),{index:bt+1})),Bn(Qn),(0,pt.Vf)("#question-scroll-id")},className:`${tt.qcount} ${Ft.question_id===(he==null?void 0:he.question_id)?tt.qcountclick:""}`},Vn.createElement("span",{className:tt.score},Ft==null?void 0:Ft.question_score,"\u5206"),Vn.createElement("span",{className:tt.qtitle},bt+1,"\u3001",Vn.createElement(Tt.Z,{value:(Ft==null?void 0:Ft.question_type)===8?($a=Ft==null?void 0:Ft.program_attr)==null?void 0:$a.description:Ft.question_title,showTextOnly:!0})))))}))),An.placeholder))))},Ea=ae(95237),xa=ae(80815),Ja=ae(78673),Sn=ae(61485),ln=ae(74038),Et=ae(59301),jt=(ie,Se,he)=>new Promise((gt,Bt)=>{var Qn=it=>{try{_t(he.next(it))}catch($t){Bt($t)}},Bn=it=>{try{_t(he.throw(it))}catch($t){Bt($t)}},_t=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,Bn);_t((he=he.apply(ie,Se)).next())}),Ca=({form:ie,TagDiscipline:Se,exerciseitem:he,qitem:gt,getTagData:Bt})=>{var Qn;const[Bn,_t]=(0,b.useState)(!0),[it,$t]=(0,b.useState)(!1),[ra,Ot]=(0,b.useState)(""),[wt,ut]=(0,b.useState)([]),[xt,An]=(0,b.useState)([]),[cn,Ft]=(0,b.useState)(0);(0,b.useEffect)(()=>{hn()},[]);const bt=en=>jt(void 0,null,function*(){const Jt=yield(0,te.ZP)("/api/tag_disciplines.json",{method:"get",params:{sub_discipline_id:en==null?void 0:en.sub_discipline_id}});An(Jt==null?void 0:Jt.tag_disciplines)}),hn=()=>jt(void 0,null,function*(){const en=yield(0,te.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});ut(en.disciplines||[]),gt!=null&>.sub_discipline_id&&bt(gt),Ft(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 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:wt,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(en,Jt)=>{ie.setFieldsValue({sub_discipline_id:en,tag_discipline_ids:[]}),Ft(en?en.length:0),(en==null?void 0:en.length)>0&&(bt({sub_discipline_id:en[1]}),en[1]==(gt==null?void 0:gt.sub_discipline_id)&&ie.setFieldValue("tag_discipline_ids",gt.tag_discipline_ids))},onClear:()=>{An([]),ie.setFieldValue("tag_discipline_ids",[]),Ft(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:cn===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:(en,Jt)=>Jt.key.indexOf(en.toLowerCase())>=0},xt==null?void 0:xt.map(en=>Et.createElement(Pe.default.Option,{key:en.name+en.id,value:en.id},Et.createElement("div",{style:{display:"flex",alignItems:"center"}},Et.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},en.name),(en==null?void 0:en.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")))))),cn>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:()=>{$t(!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(Ja.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(ln.Z,{open:it,subDisciplineId:(Qn=ie.getFieldValue("sub_discipline_id"))==null?void 0:Qn[1],onCancel:()=>{$t(!1)},onOkClick:en=>{An(Jt=>[...Jt,en]),ie.setFieldValue("tag_discipline_ids",[...ie.getFieldValue("tag_discipline_ids"),en==null?void 0:en.id])}}))},Qa=ae(59301),Da=Object.defineProperty,Ra=Object.defineProperties,wr=Object.getOwnPropertyDescriptors,ar=Object.getOwnPropertySymbols,kr=Object.prototype.hasOwnProperty,Mo=Object.prototype.propertyIsEnumerable,Ut=(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={}))kr.call(Se,he)&&Ut(ie,he,Se[he]);if(ar)for(var he of ar(Se))Mo.call(Se,he)&&Ut(ie,he,Se[he]);return ie},$n=(ie,Se)=>Ra(ie,wr(Se)),ba=(ie,Se,he)=>new Promise((gt,Bt)=>{var Qn=it=>{try{_t(he.next(it))}catch($t){Bt($t)}},Bn=it=>{try{_t(he.throw(it))}catch($t){Bt($t)}},_t=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,Bn);_t((he=he.apply(ie,Se)).next())}),Rt=({qitem:ie,setisedit:Se,TagDiscipline:he,exerciseitem:gt,seveeditor:Bt,deleteitem:Qn,getTagData:Bn,init:_t,showTip:it=!1})=>{var $t;const[ra]=we.default.useForm();(0,b.useEffect)(()=>{var wt;ra.setFieldsValue($n(Yn({},ie),{name:ie==null?void 0:ie.question_title,choices:(wt=ie==null?void 0:ie.question_choices)==null?void 0:wt.map(ut=>$n(Yn({},ut),{standard_boolean:ut!=null&&ut.standard_boolean?1:0})),repeat_answer:!(ie!=null&&ie.repeat_answer)}))},[ie]);const Ot=wt=>{if(!(wt!=null&&wt.length))return!1;const ut=wt.map(An=>{var cn;return(cn=An.choice_text)==null?void 0:cn.trim().replace(/^\s+|\s+$/g,"")});return new Set(ut).size!==ut.length};return Qa.createElement("div",null,Qa.createElement(we.default,{form:ra,colon:!1,onFinish:wt=>{var ut,xt,An,cn,Ft;if(Ot(wt.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 bt=(xt=(ut=wt==null?void 0:wt.choices)==null?void 0:ut.map)==null?void 0:xt.call(ut,(en,Jt)=>{if((en==null?void 0:en.standard_boolean)===1)return Jt+1}),hn=$n(Yn({},wt),{item_type:ie==null?void 0:ie.question_type,question_choices:(cn=(An=wt==null?void 0:wt.choices)==null?void 0:An.map)==null?void 0:cn.call(An,en=>en.choice_text),standard_answers:bt.filter(en=>en),choices:(Ft=wt==null?void 0:wt.choices)==null?void 0:Ft.map(en=>$n(Yn({},en),{is_answer:en.standard_boolean}))});Bt(Yn(Yn({},ie),hn))},onFinishFailed:wt=>ba(void 0,null,function*(){var ut,xt;Be.ZP.error(wt.errorFields[0].errors[0]),ra.scrollToField((xt=(ut=wt==null?void 0:wt.errorFields)==null?void 0:ut[0])==null?void 0:xt.name,{behavior:"smooth",block:"center"})})},Qa.createElement("div",{style:{display:"flex",alignItems:"center"}},Qa.createElement("div",{style:{flex:1}},Qa.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Qa.createElement("span",null,(ie==null?void 0:ie.question_type)===1?"\u591A\u9009\u9898":"\u5355\u9009\u9898")),(($t=gt==null?void 0:gt.exercise)==null?void 0:$t.exercise_status)==1&&!(ie!=null&&ie.isadd)&&Qa.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Qn()}},Qa.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Qa.createElement(ke.ZP,{onClick:()=>{var wt;ie.isadd?(Se(!1),_t()):(ra.setFieldsValue($n(Yn({},ie),{name:ie==null?void 0:ie.question_title,choices:(wt=ie==null?void 0:ie.question_choices)==null?void 0:wt.map(ut=>$n(Yn({},ut),{standard_boolean:ut!=null&&ut.standard_boolean?1:0})),repeat_answer:!(ie!=null&&ie.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),Qa.createElement(rt.Z,{overlayClassName:tt.shake,open:it,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Qa.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Qa.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")},Qa.createElement(ke.ZP,{type:"primary",className:"ml20",onClick:()=>ba(void 0,null,function*(){ra.submit()})},"\u4FDD\u5B58"))),Qa.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Qa.createElement(Ea.Z,{align:"middle"},Qa.createElement(we.default.Item,{className:tt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Qa.createElement(De.Z,{onBlur:wt=>{wt.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}))),Qa.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"}),Qa.createElement(Ca,{getTagData:Bn,qitem:ie,exerciseitem:gt,TagDiscipline:he,form:ra}))))},qt=ae(41940),vn=ae(24417),kt=ae(59301),Wn=Object.defineProperty,_n=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,bn=(ie,Se,he)=>Se in ie?Wn(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)&&bn(ie,he,Se[he]);if(nt)for(var he of nt(Se))on.call(Se,he)&&bn(ie,he,Se[he]);return ie},wa=(ie,Se)=>_n(ie,Je(Se)),pa=(ie,Se,he)=>new Promise((gt,Bt)=>{var Qn=it=>{try{_t(he.next(it))}catch($t){Bt($t)}},Bn=it=>{try{_t(he.throw(it))}catch($t){Bt($t)}},_t=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,Bn);_t((he=he.apply(ie,Se)).next())}),ya=({qitem:ie,TagDiscipline:Se,exerciseitem:he,setisedit:gt,seveeditor:Bt,deleteitem:Qn,getTagData:Bn,init:_t,showTip:it=!1})=>{var $t;const[ra]=we.default.useForm(),Ot=we.default.useWatch("use_blank_score",ra);return(0,b.useEffect)(()=>{ra.setFieldsValue(wa(Nn({},ie),{standard_answers:ie.standard_answers||[],name:ie.question_title,repeat_answer:!ie.repeat_answer}))},[ie]),kt.createElement("div",null,kt.createElement(we.default,{form:ra,colon:!1,onValuesChange:(wt,ut)=>{var xt,An,cn,Ft;if(wt!=null&&wt.standard_answers||wt!=null&&wt.use_blank_score){let bt=((xt=ra.getFieldValue("standard_answers"))==null?void 0:xt.length)>0&&((cn=(An=ra.getFieldValue("standard_answers"))==null?void 0:An.map(hn=>hn.score))==null?void 0:cn.filter(hn=>hn));(bt==null?void 0:bt.length)>0&&ra.setFieldsValue({question_score:(bt==null?void 0:bt.length)>0&&((Ft=bt.reduce((hn,en)=>hn+en))==null?void 0:Ft.toFixed(1))})}},onFinish:wt=>{Bt(wa(Nn(Nn({},ie),wt),{item_type:ie==null?void 0:ie.question_type,standard_answers:wt.standard_answers,question_title:wt.name}))},onFinishFailed:wt=>pa(void 0,null,function*(){var ut,xt;wt.errorFields[0].errors[0]==="\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"&&(0,pt.pE)(),Be.ZP.error(wt.errorFields[0].errors[0]),ra.scrollToField((xt=(ut=wt==null?void 0:wt.errorFields)==null?void 0:ut[0])==null?void 0:xt.name,{behavior:"smooth",block:"center"})})},kt.createElement("div",{style:{display:"flex",alignItems:"center"}},kt.createElement("div",{style:{flex:1}},kt.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),kt.createElement("span",null,"\u586B\u7A7A\u9898")),(($t=he==null?void 0:he.exercise)==null?void 0:$t.exercise_status)==1&&!(ie!=null&&ie.isadd)&&kt.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Qn()}},kt.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),kt.createElement(ke.ZP,{onClick:()=>{ie.isadd?(gt(!1),_t()):(ra.setFieldsValue(wa(Nn({},ie),{standard_answers:ie.standard_answers||[],name:ie.question_title,repeat_answer:!ie.repeat_answer})),gt(!1))}},"\u53D6\u6D88"),kt.createElement(rt.Z,{overlayClassName:tt.shake,open:it,placement:"bottom",color:"rgba(244,156,14,0.19)",title:kt.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},kt.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")},kt.createElement(ke.ZP,{type:"primary",className:"ml20",onClick:()=>{ra.submit()}},"\u4FDD\u5B58"))),kt.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},kt.createElement(Ea.Z,{align:"middle"},Ot?kt.createElement(vn.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}):kt.createElement(we.default.Item,{key:2,className:tt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},kt.createElement(De.Z,{onBlur:wt=>{wt.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})),kt.createElement(we.default.Item,{name:"use_blank_score",noStyle:!0},kt.createElement(Oe.ZP.Group,{className:tt.scoreByBlankRadio,optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}]})),kt.createElement(rt.Z,{overlayInnerStyle:{width:460},title:kt.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",kt.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")},kt.createElement("i",{className:"icon-tishixiaowenhao font18 ml20 c-3061d0"}))),kt.createElement(qt.u,{form:ra,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:Ot,answerKey:"standard_answers"}),kt.createElement(Ca,{getTagData:Bn,qitem:ie,exerciseitem:he,TagDiscipline:Se,form:ra}))))},qn=ae(48700),zt=ae(59301),Ma=Object.defineProperty,hr=Object.defineProperties,So=Object.getOwnPropertyDescriptors,er=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable,Ya=(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={}))Ht.call(Se,he)&&Ya(ie,he,Se[he]);if(er)for(var he of er(Se))$r.call(Se,he)&&Ya(ie,he,Se[he]);return ie},ur=(ie,Se)=>hr(ie,So(Se)),Yr=(ie,Se,he)=>new Promise((gt,Bt)=>{var Qn=it=>{try{_t(he.next(it))}catch($t){Bt($t)}},Bn=it=>{try{_t(he.throw(it))}catch($t){Bt($t)}},_t=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,Bn);_t((he=he.apply(ie,Se)).next())}),ro=({qitem:ie,setisedit:Se,TagDiscipline:he,exerciseitem:gt,seveeditor:Bt,deleteitem:Qn,getTagData:Bn,init:_t,showTip:it=!1})=>{var $t;const[ra]=we.default.useForm();return(0,b.useEffect)(()=>{var Ot;ra.setFieldsValue(ur(Pr({},ie),{name:ie.question_title,repeat_answer:!ie.repeat_answer,choices:(Ot=ie==null?void 0:ie.question_choices)==null?void 0:Ot.map(wt=>ur(Pr({},wt),{is_answer:wt!=null&&wt.standard_boolean?1:0}))}))},[ie]),zt.createElement("div",null,zt.createElement(we.default,{form:ra,colon:!1,onFinish:Ot=>{var wt,ut,xt,An;let cn=(ut=(wt=Ot==null?void 0:Ot.choices)==null?void 0:wt.map)==null?void 0:ut.call(wt,(Ft,bt)=>{if((Ft==null?void 0:Ft.is_answer)===1)return bt+1});Bt(ur(Pr(Pr({},ie),Ot),{question_title:Ot.name,standard_answers:cn.filter(Ft=>Ft),question_choices:(An=(xt=Ot==null?void 0:Ot.choices)==null?void 0:xt.map)==null?void 0:An.call(xt,Ft=>Ft.choice_text)}))},onFinishFailed:Ot=>Yr(void 0,null,function*(){var wt,ut;Be.ZP.error(Ot.errorFields[0].errors[0]),ra.scrollToField((ut=(wt=Ot==null?void 0:Ot.errorFields)==null?void 0:wt[0])==null?void 0:ut.name,{behavior:"smooth",block:"center"})})},zt.createElement("div",{style:{display:"flex",alignItems:"center"}},zt.createElement("div",{style:{flex:1}},zt.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),zt.createElement("span",null,"\u5224\u65AD\u9898")),(($t=gt==null?void 0:gt.exercise)==null?void 0:$t.exercise_status)==1&&!(ie!=null&&ie.isadd)&&zt.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Qn()}},zt.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),zt.createElement(ke.ZP,{onClick:()=>{var Ot;ie.isadd?(Se(!1),_t()):(ra.setFieldsValue(ur(Pr({},ie),{name:ie.question_title,repeat_answer:!ie.repeat_answer,choices:(Ot=ie==null?void 0:ie.question_choices)==null?void 0:Ot.map(wt=>ur(Pr({},wt),{is_answer:wt!=null&&wt.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:()=>{ra.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: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})),zt.createElement(qn.Z,{form:ra,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",choiceKey:""}),zt.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,Wa=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,Jn=(ie,Se)=>{for(var he in Se||(Se={}))pn.call(Se,he)&&La(ie,he,Se[he]);if(Wa)for(var he of Wa(Se))na.call(Se,he)&&La(ie,he,Se[he]);return ie},dr=(ie,Se)=>ga(ie,sr(Se)),nr=(ie,Se)=>{var he={};for(var gt in ie)pn.call(ie,gt)&&Se.indexOf(gt)<0&&(he[gt]=ie[gt]);if(ie!=null&&Wa)for(var gt of Wa(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=nr(Se,["value","onChange","scrollId"]);return b.createElement("div",{id:Bt||""},b.createElement(nn.Z,dr(Jn({},Qn),{defaultValue:he,onChange:(Bn,_t)=>{console.log("a:",Bn,_t),_t!=null&&_t.length?gt(Bn,_t):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(Tt.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,Dr=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,Ao=Object.prototype.propertyIsEnumerable,Xa=(ie,Se,he)=>Se in ie?_o(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Kr=(ie,Se)=>{for(var he in Se||(Se={}))Or.call(Se,he)&&Xa(ie,he,Se[he]);if(Dr)for(var he of Dr(Se))Ao.call(Se,he)&&Xa(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&&Dr)for(var gt of Dr(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"],Dt=({value:ie,onChange:Se,choiceTextKey:he,answerKey:gt,index:Bt,isEdit:Qn,setInputActive:Bn,form:_t,choiceOptionsPath:it,allowChangeMode:$t,showAddIcon:ra,addItem:Ot,deleteItem:wt})=>{const ut=(ie==null?void 0:ie[gt])===1,xt=()=>{const cn=_t.getFieldValue(it);_t.setFieldValue(it,cn.map(Ft=>to(Kr({},Ft),{[gt]:0})))},An=()=>{ut?Se(to(Kr({},ie),{[gt]:0})):($t||xt(),Se(to(Kr({},ie),{[gt]:1})))};return b.createElement(Ea.Z,{className:ca.choiceWrap,align:"middle",wrap:!1},b.createElement(fr.Z,{onClick:An,className:`${ca.choiceIndex} ${ut?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:cn=>{Se(to(Kr({},ie),{[he]:cn}))}})),b.createElement(fr.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:An,className:`${ca.setAnswerBtn} ${ut?ca.activeAnswer:""}`},ut?"\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:Ot,style:{visibility:ra?"visible":"hidden"}})),b.createElement(rt.Z,{title:"\u5220\u9664"},b.createElement(se.Z,{className:ca.deleteIcon,onClick:wt,style:{visibility:Bt>1?"visible":"hidden"}}))))},At=({questionTitlePlaceholder:ie,titleKey:Se,choiceKey:he,analysisKey:gt,choiceTextKey:Bt,answerKey:Qn,choiceOptionsPath:Bn,allowChangeMode:_t=!0,form:it,showAnalysis:$t=!0})=>{const[ra,Ot]=(0,b.useState)(),[wt,ut]=(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,An){const cn=An.some(bt=>bt[Qn]===1),Ft=An.findIndex(bt=>{var hn;return((hn=bt[Bt])==null?void 0:hn.length)<=0});return Ft!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${no[Ft]}\u9009\u9879\u7684\u5185\u5BB9`)):cn?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(xt,{add:An,remove:cn})=>b.createElement("div",{id:Array.isArray(Bn)?Bn.join("_"):`${Bn}`},xt.map((Ft,bt)=>{var hn=Ft,{key:en,name:Jt}=hn,$a=Er(hn,["key","name"]);const Br=ra===en,Za=()=>{Ot(en)},Hr=bt<7&&bt===xt.length-1,Un=()=>An({[Bt]:"",[Qn]:0}),zr=()=>cn(Jt);return b.createElement(we.default.Item,to(Kr({},$a),{key:en,name:Jt,noStyle:!0}),b.createElement(Dt,{choiceTextKey:Bt,answerKey:Qn,index:bt,isEdit:Br,setInputActive:Za,form:it,choiceOptionsPath:Bn,allowChangeMode:_t,showAddIcon:Hr,addItem:Un,deleteItem:zr}))}),xt.length<8&&b.createElement("div",{className:`${ca.addBtn} mb30`,onClick:()=>An({[Bt]:"",[Qn]:0})},"\u6DFB\u52A0\u9009\u9879"))),$t&&b.createElement("div",{onClick:()=>ut(!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:wt}))))};var ht=ae(59301),Rn=Object.defineProperty,Ha=Object.defineProperties,rr=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertySymbols,tr=Object.prototype.hasOwnProperty,qa=Object.prototype.propertyIsEnumerable,oo=(ie,Se,he)=>Se in ie?Rn(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,cr=(ie,Se)=>{for(var he in Se||(Se={}))tr.call(Se,he)&&oo(ie,he,Se[he]);if(Pn)for(var he of Pn(Se))qa.call(Se,he)&&oo(ie,he,Se[he]);return ie},za=(ie,Se)=>Ha(ie,rr(Se)),Lr=(ie,Se)=>{var he={};for(var gt in ie)tr.call(ie,gt)&&Se.indexOf(gt)<0&&(he[gt]=ie[gt]);if(ie!=null&&Pn)for(var gt of Pn(ie))Se.indexOf(gt)<0&&qa.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 _t=[...ie],it=Bn.target.value.trim();_t[Qn]=it,Se(_t)}}),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(Ja.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:_t="is_ordered"})=>{var it,$t;const[ra,Ot]=(0,b.useState)(!1),wt=(en,Jt)=>{const $a=Jt.line;let Br=0;for(let Hr=0;Hr<$a;Hr++)Br+=en.getLine(Hr).split(jr).length-1;const Za=en.getLine($a).substring(0,Jt.ch);return Br+=Za.split(jr).length-1,Br},ut=(en,Jt,$a,Br)=>{const Za=en.getRange(Jt.from,Jt.to);let Hr=0;if(Jt.text.forEach(Un=>{Hr+=Un.split(jr).length-1}),Jt.origin!=="setValue"){if(Za&&Za.indexOf(jr)!==-1){const Un=Za.split(jr).length-1,zr=wt(en,Jt.from);if(console.log(`\u5220\u9664${Un}\u4E2A\uFF0C \u524D\u9762\u6709${zr}\u4E2A\uFF0C\u65B0\u589E${Hr}\u4E2A`),Un>1){const lo=Array.from({length:Un},(Do,Ir)=>zr+Ir);Br(lo)}else Br(zr)}else if(Hr>0){const Un=wt(en,Jt.from);console.log(`\u65B0\u589E${Hr}\u4E2A\uFF0C\u4E4B\u524D\u6709${Un}\u4E2A`),$a(Hr,Un)}}},xt=()=>{const en=Se.getFieldValue(["sub_item_banks",...Bt]);Se.setFieldValue(["sub_item_banks",...Bt],en==null?void 0:en.map((Jt,$a)=>za(cr({},Jt),{position:$a+1})))},An=(0,b.useRef)(),cn=(en,Jt)=>{for(let $a=0;$a{Ft.current(en),xt()},hn=($t=(it=Se.getFieldValue("sub_item_banks"))==null?void 0:it[Bt==null?void 0:Bt[0]])==null?void 0:$t[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:(en,Jt)=>{ut(en,Jt,cn,bt)}}))),ht.createElement(we.default.List,{name:Bt,rules:[{validator(en,Jt){if((Jt==null?void 0:Jt.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const $a of Jt){const{answer_text:Br}=$a||{};if(Br!=null&&Br.some(Za=>(Za==null?void 0:Za.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(en,{add:Jt,remove:$a},{errors:Br})=>(An.current=Jt,Ft.current=$a,ht.createElement(ht.Fragment,null,ht.createElement(we.default.Item,{label:ht.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(en!=null&&en.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}}),en.map((Za,Hr)=>{var Un=Za,{key:zr,name:lo}=Un,Do=Lr(Un,["key","name"]);return ht.createElement(Ea.Z,{className:"mb20",key:zr,align:"top"},ht.createElement(fr.Z,{flex:"0 0 auto",className:`${ca.blankIndex} pt5`},"\u586B\u7A7A\u9879",Hr+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,za(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,za(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 In in Io)(Ir=Io[In])!=null&&Ir.score&&(Al+=Number((Lo=Io[In])==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,za(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(Ja.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(Ja.Z,null)),ht.createElement(fr.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(hn==null?void 0:hn.length)>1&&ht.createElement(Ea.Z,{align:"middle",className:(hn==null?void 0:hn.length)>1?"mb30":`${ca.hide}`},ht.createElement(we.default.Item,{name:_t},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:()=>Ot(!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,Dn=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,sn=(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,Dn(Se)),Ln=(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 yn={\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 _t;const it=(_t=he==null?void 0:he.getFieldValue(["sub_item_banks",...gt]))==null?void 0:_t.map($t=>({choice_text:$t.choice_text,is_answer:0}));he==null||he.setFieldValue(["sub_item_banks",...gt],it),Se(vt(sn({},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:""}`},yn[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")))},Fn=({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(_t,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"))}}]},_t=>b.createElement("div",{id:"choices"},_t.map(it=>{var $t=it,{key:ra,name:Ot}=$t,wt=Ln($t,["key","name"]);return b.createElement(we.default.Item,vt(sn({},wt),{key:ra,name:Ot,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"},br=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:br.Z}),"\u6D4B\u8BD5AI\u8BC4\u5206"))),va.createElement("div",{style:{background:"#F6F7F9"}},va.createElement(we.default.List,{name:Qn||"ai_review_settings"},(Bn,{add:_t,remove:it})=>Bn.map(($t,ra)=>{var Ot;return va.createElement(Ea.Z,{key:$t.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:[$t.name,"name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u9879\u76EE"}]},va.createElement(We.default,{onChange:wt=>{Se.setFieldValue([$t.name,"content"],wt.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:[$t.name,"content"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6"}]},va.createElement(We.default,{onChange:wt=>{Se.setFieldValue([$t.name,"content"],wt.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:[$t.name,"weight"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6743\u91CD"},{pattern:/^(?!0(\.0+)?$)(\d+(\.\d)?)$/,message:"\u6700\u591A\u4FDD\u7559\u4E00\u4F4D\u5C0F\u6570"}]},va.createElement(De.Z,{value:Se.getFieldValue([$t.name,"weight"]),onChange:wt=>{Number.isInteger(wt)||Se.setFieldValue([$t.name,"weight"],parseFloat(wt).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:(Ot=gr)==null?void 0:Ot.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");_t()}})),ra>0&&va.createElement(fr.Z,null,va.createElement("i",{className:"iconfont icon-shanjian1 ml10 current",style:{color:"#E30000"},onClick:()=>{it($t.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:_t="keywords",useKeywords:it="use_keywords",indexs:$t,qitem:ra,exerciseitem:Ot,aiReviewSettings:wt})=>{var ut,xt,An,cn,Ft;const[bt,hn]=(0,b.useState)(!1),[en,Jt]=(0,b.useState)(""),$a=(xt=(ut=Se.getFieldValue("sub_item_banks"))==null?void 0:ut[it==null?void 0:it[0]])==null?void 0:xt[it==null?void 0:it[1]],Br=(cn=(An=Se.getFieldValue("sub_item_banks"))==null?void 0:An[it==null?void 0:it[0]])==null?void 0:cn.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(Ja.Z,{defaultChecked:!0})),he&>&&b.createElement(Ea.Z,{align:"middle",className:"mb30"},b.createElement(we.default.Item,{name:it,valuePropName:"checked"},b.createElement(Ja.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(Sn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),($a||!gt)&&b.createElement(we.default.List,{name:_t,rules:[{validator(Za,Hr){return gt?Hr!=null&&Hr.length?(Hr==null?void 0:Hr.reduce((zr,lo)=>zr+lo.score,0))>parseFloat(Br)?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()}}]},(Za,{add:Hr,remove:Un})=>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:en,onChange:zr=>{Jt(zr.target.value)},maxLength:50,allowClear:!0,onPressEnter:zr=>{var lo,Do,Ir,Lo;const Io=`${(lo=zr.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()),In=Se.getFieldValue(["sub_item_banks",..._t]),fl=((Lo=In==null?void 0:In.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)&&(Hr({keyword:Al,score:1}),Jt(""))},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")),Za.map(zr=>{var lo=zr,{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:()=>Un(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:()=>hn(!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:bt}))),((Ft=Ot==null?void 0:Ot.exercise)==null?void 0:Ft.is_open_ai_review)&&b.createElement(Sr,{form:Se,qitem:ra,aiReviewSettings:wt}))};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,_t]=(0,b.useState)(),[it,$t]=(0,b.useState)([]),ra=wt=>{$t(wt)},Ot=({value:wt})=>ao.createElement("div",{style:{width:150,paddingLeft:11}},wt);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(wt,ut){return ut?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(wt,{add:ut,remove:xt,move:An})=>{const cn=he.getFieldValue("sub_item_banks");return ao.createElement(ao.Fragment,null,ao.createElement(Tr.default,{className:wt.length>0?ca.collapseWrapper:"",bordered:!1,activeKey:it,onChange:ra,expandIcon:({isActive:Ft})=>ao.createElement("i",{className:`iconfont icon-weizhankai ${Ft?ca.open:ca.close}`,style:{fontSize:14,transition:"all .2s"}})},wt.map((Ft,bt)=>{var hn=Ft,{key:en,name:Jt}=hn,$a=Ku(hn,["key","name"]),Br,Za,Hr,Un,zr,lo,Do,Ir,Lo,Io,Al,In,fl,xl;return ao.createElement(Tu,{className:ca.panel,forceRender:!0,header:ao.createElement("div",{className:ca.panelHeader},"\u7B2C",bt+1,"\u5C0F\u9898",ao.createElement("span",null,"\uFF08",((Br=cn==null?void 0:cn[Jt])==null?void 0:Br.question_type)==0?"\u5355\u9009\u9898":((Za=cn==null?void 0:cn[Jt])==null?void 0:Za.question_type)==1?"\u591A\u9009\u9898":((Hr=cn==null?void 0:cn[Jt])==null?void 0:Hr.question_type)==3?"\u586B\u7A7A\u9898":((Un=cn==null?void 0:cn[Jt])==null?void 0:Un.question_type)==2?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:Jt,extra:ao.createElement(Ea.Z,{align:"middle",onClick:ko=>ko.stopPropagation()},((zr=cn==null?void 0:cn[Jt])==null?void 0:zr.question_type)==3&&ao.createElement(ao.Fragment,null,ao.createElement(Oe.ZP.Group,{defaultValue:(lo=cn==null?void 0:cn[Jt])==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",Jt,"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",Jt]))==null?void 0:zl.standard_answers)Ql+=Number((Wl=(Jl=he==null?void 0:he.getFieldValue(["sub_item_banks",Jt]))==null?void 0:Jl.standard_answers[vl])==null?void 0:Wl.score);he==null||he.setFieldValue(["sub_item_banks",Jt,"question_score"],Ql||"")}_t(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({},$a),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[Jt,"question_score"],className:ca.blankInputNumberWrapper}),((Do=cn==null?void 0:cn[Jt])==null?void 0:Do.question_type)==3&&((Ir=cn==null?void 0:cn[Jt])!=null&&Ir.use_blank_score)?ao.createElement(Ot,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}},bt!==0&&ao.createElement("div",{onClick:()=>{var ko;An(bt,bt-1);const Hn=(ko=he.getFieldValue("sub_item_banks"))==null?void 0:ko.map((Bl,zl)=>(wt.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"}))),bt{var ko;An(bt,bt+1);const Hn=(ko=he.getFieldValue("sub_item_banks"))==null?void 0:ko.map((Bl,zl)=>(wt.map((Jl,Wl)=>{zl===Wl&&(Bl.q_position=Number(Jl.name)+1)}),Bl));he.setFieldValue("sub_item_banks",Hn)},className:bt===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(Jt)})))},ao.createElement(we.default.Item,ru(ku({},$a),{name:Jt}),(((Lo=cn==null?void 0:cn[Jt])==null?void 0:Lo.question_type)==0||((Io=cn==null?void 0:cn[Jt])==null?void 0:Io.question_type)==1)&&ao.createElement(At,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((Al=cn==null?void 0:cn[Jt])==null?void 0:Al.question_type)==1,form:he,choiceKey:[Jt,"choices"],titleKey:[Jt,"name"],analysisKey:[Jt,"analysis"],choiceOptionsPath:["sub_item_banks",Jt,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((In=cn==null?void 0:cn[Jt])==null?void 0:In.question_type)==3&&ao.createElement(yo,{form:he,name:Jt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:[Jt,"use_blank_score"],titleKey:[Jt,"name"],analysisKey:[Jt,"analysis"],isOrdered:[Jt,"is_ordered"],answerKey:[Jt,"standard_answers"],key:Bn}),((fl=cn==null?void 0:cn[Jt])==null?void 0:fl.question_type)==2&&ao.createElement(Fn,{form:he,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Jt,"name"],analysisKey:[Jt,"analysis"],choiceKey:[Jt,"choices"]}),((xl=cn==null?void 0:cn[Jt])==null?void 0:xl.question_type)==4&&ao.createElement(rs,{showKeywords:!0,isMustKeyWords:!0,form:he,titleKey:[Jt,"name"],analysisKey:[Jt,"analysis"],answerTexts:[Jt,"answer_texts"],useKeywords:[Jt,"use_keywords"],keywords:[Jt,"keywords"],aiReviewSettings:[Jt,"ai_review_settings"],indexs:Jt,qitem:cn==null?void 0:cn[Jt],questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9",exerciseitem:Bt})))})),wt.length<20&&ao.createElement(Ce.Z,{menu:{items:[{label:ao.createElement("div",{onClick:()=>{ut({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:0,item_type:"SINGLE"}),$t([wt==null?void 0:wt.length,...it])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:ao.createElement("div",{onClick:()=>{ut({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:1,item_type:"MULTIPLE"}),$t([wt==null?void 0:wt.length,...it])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:ao.createElement("div",{onClick:()=>{ut({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",question_type:2,item_type:"JUDGMENT"}),$t([wt==null?void 0:wt.length,...it])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:ao.createElement("div",{onClick:()=>{ut({name:"",analysis:"",is_ordered:!0,standard_answers:[],question_type:3,item_type:"COMPLETION",use_blank_score:!0,downcase:!0,no_space:!0}),$t([wt==null?void 0:wt.length,...it])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:ao.createElement("div",{onClick:()=>{ut({name:"",answer_texts:[],keywords:[],use_keywords:!1,analysis:"",question_type:4,item_type:"SUBJECTIVE"}),$t([wt==null?void 0:wt.length,...it])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(Ft=>Ft.show).map(Ft=>({label:Ft.label,key:Ft.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{_t(he.next(it))}catch($t){Bt($t)}},Bn=it=>{try{_t(he.throw(it))}catch($t){Bt($t)}},_t=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,Bn);_t((he=he.apply(ie,Se)).next())}),us=({qitem:ie,setisedit:Se,TagDiscipline:he,exerciseitem:gt,seveeditor:Bt,deleteitem:Qn,getTagData:Bn,init:_t,showTip:it=!1})=>{var $t;const[ra]=we.default.useForm(),{unified_ai_setting:Ot,ai_review_settings:wt}=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(An=>{var cn,Ft;if(An.question_type==4){const bt=Ot?wt:((cn=An==null?void 0:An.ai_review_settings)==null?void 0:cn.length)>0?An.ai_review_settings:wt;An.ai_review_settings=bt}return Bi(bi({},An),{name:An.question_title,choices:(Ft=An==null?void 0:An.question_choices)==null?void 0:Ft.map(bt=>Bi(bi({},bt),{is_answer:bt!=null&&bt.standard_boolean?1:0}))})}),repeat_answer:!ie.repeat_answer}))},[ie]);const ut=xt=>{if(!(xt!=null&&xt.length))return!1;const An=xt.map(Ft=>{var bt;return(bt=Ft.choice_text)==null?void 0:bt.trim().replace(/^\s+|\s+$/g,"")});return new Set(An).size!==An.length};return Gl.createElement("div",null,Gl.createElement(we.default,{form:ra,colon:!1,onValuesChange:(xt,An)=>{var cn,Ft,bt,hn;if(xt!=null&&xt.sub_item_banks){let en=((cn=ra.getFieldValue("sub_item_banks"))==null?void 0:cn.length)>0&&((bt=(Ft=ra.getFieldValue("sub_item_banks"))==null?void 0:Ft.map(Jt=>{var $a;if(Jt.question_type==3&&(Jt!=null&&Jt.use_blank_score)){let Br=0;for(let Za in Jt==null?void 0:Jt.standard_answers)Br+=Number(($a=Jt==null?void 0:Jt.standard_answers[Za])==null?void 0:$a.score);return Br}else return Jt.question_score}))==null?void 0:bt.filter(Jt=>Jt));(en==null?void 0:en.length)>0&&ra.setFieldsValue({question_score:(hn=parseFloat(en.reduce((Jt,$a)=>parseFloat(Jt)+parseFloat($a))))==null?void 0:hn.toFixed(1)})}},onFinish:xt=>{var An,cn;if((An=xt.sub_item_banks)==null?void 0:An.some(bt=>bt.question_type===0||bt.question_type===1?ut(bt.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:(cn=xt==null?void 0:xt.sub_item_banks)==null?void 0:cn.map(bt=>{var hn,en,Jt,$a;return(bt==null?void 0:bt.question_type)==3?Bi(bi({},bt),{question_title:bt.name,item_type:bt==null?void 0:bt.question_type}):Bi(bi({},bt),{question_title:bt.name,question_choices:(en=(hn=bt==null?void 0:bt.choices)==null?void 0:hn.map)==null?void 0:en.call(hn,Br=>Br.choice_text),standard_answers:($a=(Jt=bt==null?void 0:bt.choices)==null?void 0:Jt.map)==null?void 0:$a.call(Jt,(Br,Za)=>(Br==null?void 0:Br.is_answer)===1&&Za+1).filter(Br=>Br),item_type:bt==null?void 0:bt.question_type})})}))},onFinishFailed:xt=>is(void 0,null,function*(){var An,cn;Be.ZP.error(xt.errorFields[0].errors[0]),ra.scrollToField((cn=(An=xt==null?void 0:xt.errorFields)==null?void 0:An[0])==null?void 0:cn.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")),(($t=gt==null?void 0:gt.exercise)==null?void 0:$t.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),_t()):(ra.setFieldsValue(Bi(bi({},ie),{name:ie.question_title,sub_item_banks:(xt=ie.sub_exercise_questions)==null?void 0:xt.map(An=>{var cn;return Bi(bi({},An),{name:An.question_title,choices:(cn=An==null?void 0:An.question_choices)==null?void 0:cn.map(Ft=>Bi(bi({},Ft),{is_answer:Ft!=null&&Ft.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),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((gt,Bt)=>{var Qn=it=>{try{_t(he.next(it))}catch($t){Bt($t)}},Bn=it=>{try{_t(he.throw(it))}catch($t){Bt($t)}},_t=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,Bn);_t((he=he.apply(ie,Se)).next())}),bs=({qitem:ie,setqitem:Se,setisedit:he,TagDiscipline:gt,exerciseitem:Bt,seveeditor:Qn,deleteitem:Bn,showTip:_t=!1})=>{var it,$t,ra,Ot;const[wt]=we.default.useForm();(0,b.useEffect)(()=>{var Ft,bt;wt.setFieldsValue(ql(Dl({},ie),{name:ie==null?void 0:ie.question_title,choices:(Ft=ie==null?void 0:ie.question_choices)==null?void 0:Ft.map(hn=>ql(Dl({},hn),{standard_boolean:hn!=null&&hn.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(hn=>ql(Dl({},hn),{defaultscore:hn.challenge_score}))},[]);const ut=(Ft,bt,hn)=>{const en=JSON.parse(JSON.stringify((ie==null?void 0:ie.shixun)||[]));en[hn][Ft]=bt,Se(ql(Dl({},ie),{shixun:en}))},xt=(Ft,bt,hn,en)=>{const Jt=JSON.parse(JSON.stringify((ie==null?void 0:ie.shixun)||[]));Jt[hn].challenge_step_penalties[en][Ft]=bt,Se(ql(Dl({},ie),{shixun:Jt}))},An=Ft=>{var bt;const hn=JSON.parse(JSON.stringify((ie==null?void 0:ie.shixun)||[]));(bt=hn[Ft])!=null&&bt.challenge_step_penalties&&hn[Ft].challenge_step_penalties.push({id:null,score:null,start_time:null,end_time:null}),Se(ql(Dl({},ie),{shixun:hn}))},cn=(Ft,bt)=>{var hn;const en=JSON.parse(JSON.stringify((ie==null?void 0:ie.shixun)||[]));en[Ft].challenge_step_penalties,(hn=en[Ft])!=null&&hn.challenge_step_penalties&&en[Ft].challenge_step_penalties.splice(bt,1),Se(ql(Dl({},ie),{shixun:en}))};return Cr.createElement("div",null,Cr.createElement(we.default,{form:wt,colon:!1,onFinish:Ft=>{var bt,hn;let en=ql(Dl({},Ft),{question_scores:(bt=ie==null?void 0:ie.shixun)==null?void 0:bt.map(Jt=>Jt.challenge_score),item_type:ie==null?void 0:ie.question_type,choices:(hn=Ft==null?void 0:Ft.choices)==null?void 0:hn.map(Jt=>ql(Dl({},Jt),{is_answer:Jt.standard_boolean}))});Qn(Dl(Dl({},ie),en))},onFinishFailed:Ft=>zu(void 0,null,function*(){var bt,hn;Be.ZP.error(Ft.errorFields[0].errors[0]),wt.scrollToField((hn=(bt=Ft==null?void 0:Ft.errorFields)==null?void 0:bt[0])==null?void 0:hn.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 Ft,bt;wt.setFieldsValue(ql(Dl({},ie),{name:ie==null?void 0:ie.question_title,choices:(Ft=ie==null?void 0:ie.question_choices)==null?void 0:Ft.map(hn=>ql(Dl({},hn),{standard_boolean:hn!=null&&hn.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(hn=>ql(Dl({},hn),{challenge_score:hn.defaultscore})),Se(Dl({},ie)),he(!1)}},"\u53D6\u6D88"),Cr.createElement(rt.Z,{overlayClassName:tt.shake,open:_t,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 Ft,bt,hn,en;if(((bt=(Ft=ie==null?void 0:ie.shixun)==null?void 0:Ft.map)==null?void 0:bt.call(Ft,Br=>Br.challenge_score).filter(Br=>Br).length)<((hn=ie==null?void 0:ie.shixun)==null?void 0:hn.length)){Be.ZP.info("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A");return}console.log(ie,"qitem");const Jt=parseFloat(wt.getFieldValue("question_score")),$a=parseFloat((en=ie==null?void 0:ie.shixun)==null?void 0:en.map(Br=>Br.challenge_score).reduce((Br,Za)=>parseFloat(Br||0)+parseFloat(Za||0)));if((ie==null?void 0:ie.shixun_mode)===2&&Jt!==$a){Be.ZP.info("\u8003\u70B9\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BD5\u9898\u5206\u503C");return}wt.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(vn.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,{disabled:!!(($t=ie==null?void 0:ie.shixun)!=null&&$t.some(Ft=>Ft.challenge_test_set_score_rule==2)),onChange:Ft=>{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=Ft,Se(Dl({},ie)))},onBlur:Ft=>{const bt=Number(Ft.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}),((ra=ie==null?void 0:ie.shixun)==null?void 0:ra.some(Ft=>Ft.challenge_test_set_score_rule==2))&&Cr.createElement("span",{style:{marginLeft:"20px",color:"#e99237"}},"\u91C7\u96C6\u70B9\u5F97\u5206\u89C4\u8303\u4E3A\u201C\u81EA\u5B9A\u4E49\u5F97\u5206\u201D\uFF0C\u603B\u5206\u503C\u7B49\u4E8E\u5404\u91C7\u96C6\u70B9\u5206\u503C\u4E4B\u548C")),Cr.createElement(we.default.Item,{label:"\u9898\u5E72",name:"question_title",labelCol:{span:24},rules:[{required:!0}]},Cr.createElement(nn.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")),(Ot=ie==null?void 0:ie.shixun)==null?void 0:Ot.map((Ft,bt)=>{var hn,en,Jt;return Cr.createElement(b.Fragment,{key:Ft.challenge_id},Cr.createElement("div",{style:{display:"flex",marginBottom:20}},Cr.createElement("div",{style:{flex:1}},bt+1,"\u3001",Ft.challenge_name),Cr.createElement("div",null,Cr.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C",Cr.createElement(De.Z,{disabled:!!((hn=ie==null?void 0:ie.shixun)!=null&&hn.some($a=>$a.challenge_test_set_score_rule==2)),precision:1,value:Ft==null?void 0:Ft.challenge_score,onChange:$a=>{const Br=JSON.parse(JSON.stringify((ie==null?void 0:ie.shixun)||[]));Br[bt].challenge_score=$a;const Za=Br.every(Un=>!Un.challenge_score),Hr=parseFloat(Br==null?void 0:Br.map(Un=>Un.challenge_score).reduce((Un,zr)=>parseFloat(Un||0)+parseFloat(zr||0)));(ie==null?void 0:ie.shixun_mode)!==2&&wt.setFieldsValue({question_score:Za?"":Hr.toFixed(1)}),Se(ql(Dl({},ie),{shixun:Br}))},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(Ja.Z,{checked:Ft==null?void 0:Ft.is_time_limit,onChange:$a=>ut("is_time_limit",$a,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)&&(Ft==null?void 0:Ft.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:Ft==null?void 0:Ft.time_limit,onChange:$a=>ut("time_limit",$a,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:Ft==null?void 0:Ft.timeout_second,onChange:$a=>ut("timeout_second",$a,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:Ft==null?void 0:Ft.deduct_point,onChange:$a=>ut("deduct_point",$a,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)&&(Ft==null?void 0:Ft.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:Ft==null?void 0:Ft.time_limit,onChange:$a=>ut("time_limit",$a,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")),!!((en=Ft==null?void 0:Ft.challenge_step_penalties)!=null&&en.length)&&Cr.createElement("div",{className:"mt20 p20",style:{backgroundColor:"#F6F7F9",display:"flex",flexDirection:"column",gap:20}},(Jt=Ft==null?void 0:Ft.challenge_step_penalties)==null?void 0:Jt.map(($a,Br)=>Cr.createElement(Ea.Z,{key:Br,align:"middle"},Cr.createElement("div",null,"\u5B8C\u6210\u65F6\u95F4"),Cr.createElement(De.Z,{suffix:"\u79D2",value:$a==null?void 0:$a.start_time,onChange:Za=>xt("start_time",Za,bt,Br),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),Cr.createElement("div",null,"-"),Cr.createElement(De.Z,{suffix:"\u79D2",value:$a==null?void 0:$a.end_time,onChange:Za=>xt("end_time",Za,bt,Br),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:$a==null?void 0:$a.score,onChange:Za=>xt("score",Za,bt,Br),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),Cr.createElement("i",{className:"iconfont icon-shanchu15 c-red current ml20",onClick:()=>cn(bt,Br)})))),Cr.createElement(ss.op,{onClick:()=>An(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),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,_t,it,$t,ra,Ot,wt,ut,xt,An,cn,Ft,bt,hn,en,Jt,$a,Br,Za,Hr;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((Un,zr)=>aa.createElement("div",{className:Na.redio},!(Un!=null&&Un.standard_boolean)&&aa.createElement("span",{className:Na.redioitem}),(Un==null?void 0:Un.standard_boolean)&&aa.createElement("i",{className:`${Na.redioitemyes} icon-duigou1`}),aa.createElement("span",{className:`${Un!=null&&Un.standard_boolean?Na.titleyes:Na.title} ${Na.indexTag}`},(ie==null?void 0:ie.question_type)===0?Vu[zr]:""),aa.createElement(Tt.Z,{className:Un!=null&&Un.standard_boolean?Na.titleyes:Na.title,value:Un==null?void 0:Un.choice_text}),(Un==null?void 0:Un.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((Un,zr)=>aa.createElement("div",{className:Na.checkbox},!(Un!=null&&Un.standard_boolean)&&aa.createElement("span",{className:Na.checkboxitem}),(Un==null?void 0:Un.standard_boolean)&&aa.createElement("i",{className:`${Na.checkboxitemyes} icon-duigou1`}),aa.createElement("span",{className:`${Un!=null&&Un.standard_boolean?Na.titleyes:Na.title} ${Na.indexTag}`},Vu[zr]),aa.createElement(Tt.Z,{className:Un!=null&&Un.standard_boolean?Na.titleyes:Na.title,value:Un==null?void 0:Un.choice_text}),(Un==null?void 0:Un.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((Un,zr)=>{var lo;return aa.createElement(Ea.Z,{align:"top"},aa.createElement("span",{className:Na.title},"\u586B\u7A7A\u9879",zr+1),aa.createElement("div",{className:Na.content},(lo=Un.answer_text)==null?void 0:lo.map((Do,Ir)=>aa.createElement("div",{key:Ir,className:Na.items,style:(Un==null?void 0:Un.model)===2?{border:0,padding:0}:{}},(Un==null?void 0:Un.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(Tt.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},(_t=ie==null?void 0:ie.shixun)==null?void 0:_t.map((Un,zr)=>{var lo,Do;return aa.createElement("div",null,aa.createElement("div",{key:zr,className:`${Na.shixun} mb30`},aa.createElement("span",{style:{flexShrink:0},className:Na.score},"\uFF08",Un==null?void 0:Un.challenge_score,"\u5206\uFF09"),aa.createElement(rt.Z,{title:`${(ie==null?void 0:ie.index)+"."+(zr+1)}\u3001${Un==null?void 0:Un.challenge_name}`},aa.createElement("span",{style:{width:"fit-content",marginRight:"auto"},className:Na.qtitle},(ie==null?void 0:ie.index)+"."+(zr+1),"\u3001",Un==null?void 0:Un.challenge_name)),(Un==null?void 0:Un.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(Tt.Z,{className:Na.content,value:(Un==null?void 0:Un.task_pass)||"\u6682\u65E0\u5173\u5361\u63CF\u8FF0"}))})),(ie==null?void 0:ie.question_type)===6&&aa.createElement("div",{className:Na.program,style:{border:!(($t=(it=Se==null?void 0:Se.editData)==null?void 0:it.exercise)!=null&&$t.show_hack_sets)&&!((Ot=(ra=Se==null?void 0:Se.editData)==null?void 0:ra.exercise)!=null&&Ot.show_hack_description)&&"none"}},((ut=(wt=Se==null?void 0:Se.editData)==null?void 0:wt.exercise)==null?void 0:ut.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:(Un,zr,lo)=>lo+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(Un,zr,lo)=>aa.createElement(rt.Z,{title:aa.createElement("pre",null,Un)},aa.createElement("div",{className:Na.divname},Un))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(Un,zr,lo)=>aa.createElement(rt.Z,{title:aa.createElement("pre",null,Un)}," ",aa.createElement("div",{className:Na.divname},Un))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:ie==null?void 0:ie.hack_sets})),((An=(xt=Se==null?void 0:Se.editData)==null?void 0:xt.exercise)==null?void 0:An.show_hack_description)&&aa.createElement("div",null,aa.createElement(Tt.Z,{className:Na.content,value:(ie==null?void 0:ie.description)||"- -"}))),(ie==null?void 0:ie.question_type)===7&&((cn=ie==null?void 0:ie.sub_exercise_questions)==null?void 0:cn.map((Un,zr)=>{var lo,Do,Ir,Lo,Io,Al;return aa.createElement("div",{key:zr},aa.createElement("div",{className:Na.combination},aa.createElement("span",{className:Na.score},Un==null?void 0:Un.question_score,"\u5206"),aa.createElement("span",{className:Na.qtype},(lo=fs.find(In=>In.type==Un.question_type))==null?void 0:lo.name),aa.createElement("span",{className:Na.qtitle},zr+1,"\u3001",Un==null?void 0:Un.question_title)),(Un.question_type===0||Un.question_type===2)&&aa.createElement("div",{className:Na.warp,style:{padding:"30px 58px",paddingBottom:0}},aa.createElement("div",null,(Do=Un==null?void 0:Un.question_choices)==null?void 0:Do.map((In,fl)=>aa.createElement("div",{className:Na.redio,key:fl},!(In!=null&&In.standard_boolean)&&aa.createElement("span",{className:Na.redioitem}),(In==null?void 0:In.standard_boolean)&&aa.createElement("i",{className:`${Na.redioitemyes} icon-duigou1`}),Un.question_type===2&&aa.createElement("span",{className:`${In!=null&&In.standard_boolean?Na.titleyes:Na.title} ${Na.indexTag}`},Vu[fl]),aa.createElement(Tt.Z,{className:In!=null&&In.standard_boolean?Na.titleyes:Na.title,value:In==null?void 0:In.choice_text}),(In==null?void 0:In.standard_boolean)&&aa.createElement("div",{className:Na.yestag},"\u6B63\u786E\u7B54\u6848"))))),Un.question_type===1&&aa.createElement("div",{className:Na.normalWrap},(Ir=Un==null?void 0:Un.question_choices)==null?void 0:Ir.map((In,fl)=>aa.createElement("div",{className:Na.checkbox,key:fl},!(In!=null&&In.standard_boolean)&&aa.createElement("span",{className:Na.checkboxitem}),(In==null?void 0:In.standard_boolean)&&aa.createElement("i",{className:`${Na.checkboxitemyes} icon-duigou1`}),aa.createElement("span",{className:`${In!=null&&In.standard_boolean?Na.titleyes:Na.title} ${Na.indexTag}`},Vu[fl]),aa.createElement(Tt.Z,{className:In!=null&&In.standard_boolean?Na.titleyes:Na.title,value:In==null?void 0:In.choice_text}),(In==null?void 0:In.standard_boolean)&&aa.createElement("div",{className:Na.yestag},"\u6B63\u786E\u7B54\u6848")))),Un.question_type===3&&aa.createElement("div",{className:Na.completion},(Lo=Un==null?void 0:Un.standard_answers)==null?void 0:Lo.map((In,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=In.answer_text)==null?void 0:xl.map((ko,Hn)=>aa.createElement("div",{key:Hn,className:Na.items},aa.createElement("pre",{className:"mb0"},ko)))))})),Un.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=Un==null?void 0:Un.answer_texts)!=null&&Io[0]?aa.createElement(Tt.Z,{className:Na.content,value:(Al=Un==null?void 0:Un.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"}},Un!=null&&Un.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(Tt.Z,{disabledFill:!0,className:Na.content,showProgramFill:!0,value:zi.Base64.decode(((Ft=ie==null?void 0:ie.program_attr)==null?void 0:Ft.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(Tt.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:((bt=ie==null?void 0:ie.tag_discipline_names)==null?void 0:bt.length)<=0||((hn=ie==null?void 0:ie.tag_discipline_names)==null?void 0:hn.length)==1&&["-"].includes(ie==null?void 0:ie.tag_discipline_names[0])?"\u6682\u672A\u8BBE\u7F6E~":(Jt=(en=ie==null?void 0:ie.tag_discipline_names)==null?void 0:en.join("\uFF1B"))==null?void 0:Jt.toString()},aa.createElement("span",{className:Na.right},(($a=ie==null?void 0:ie.tag_discipline_names)==null?void 0:$a.length)<=0?aa.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):((Br=ie==null?void 0:ie.tag_discipline_names)==null?void 0:Br.length)==1&&["-"].includes(ie==null?void 0:ie.tag_discipline_names[0])?aa.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):(Hr=(Za=ie==null?void 0:ie.tag_discipline_names)==null?void 0:Za.join("\uFF1B"))==null?void 0:Hr.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,dt=(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)&&dt(ie,he,Se[he]);if(fe)for(var he of fe(Se))Ie.call(Se,he)&&dt(ie,he,Se[he]);return ie},Nt=(ie,Se)=>ce(ie,ge(Se)),It=(ie,Se,he)=>new Promise((gt,Bt)=>{var Qn=it=>{try{_t(he.next(it))}catch($t){Bt($t)}},Bn=it=>{try{_t(he.throw(it))}catch($t){Bt($t)}},_t=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,Bn);_t((he=he.apply(ie,Se)).next())}),Kn=({qitem:ie,setisedit:Se,TagDiscipline:he,exerciseitem:gt,seveeditor:Bt,deleteitem:Qn,getTagData:Bn,init:_t,showTip:it=!1})=>{var $t,ra,Ot,wt;const[ut]=we.default.useForm(),{unified_ai_setting:xt,ai_review_settings:An}=gt==null?void 0:gt.exercise,cn=xt?An:(($t=ie==null?void 0:ie.ai_review_settings)==null?void 0:$t.length)>0?ie.ai_review_settings:An;return(0,b.useEffect)(()=>{ut.setFieldsValue(Nt(at({},ie),{name:ie.question_title,answer_texts:ie.answer_texts,repeat_answer:!ie.repeat_answer,ai_review_settings:cn}))},[ie]),Ll.createElement("div",null,Ll.createElement(we.default,{form:ut,colon:!1,onFinish:Ft=>{var bt;(bt=gt==null?void 0:gt.exercise)!=null&&bt.is_open_ai_review&&!(0,pt.BR)(Ft==null?void 0:Ft.ai_review_settings)||Bt(Nt(at(at({},ie),Ft),{answer_texts:Ft==null?void 0:Ft.answer_texts,question_title:Ft==null?void 0:Ft.name}))},onFinishFailed:Ft=>It(void 0,null,function*(){var bt,hn;Be.ZP.error(Ft.errorFields[0].errors[0]),ut.scrollToField((hn=(bt=Ft==null?void 0:Ft.errorFields)==null?void 0:bt[0])==null?void 0:hn.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),_t()):(ut.setFieldsValue(Nt(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:()=>{ut.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:Ft=>{Ft.target.value==="0"&&Be.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1})),Ll.createElement(Wu.W,{form:ut,showKeywords:!0,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"}),((Ot=gt==null?void 0:gt.exercise)==null?void 0:Ot.is_open_ai_review)&&!((wt=gt==null?void 0:gt.exercise)!=null&&wt.unified_ai_setting)&&Ll.createElement(Sr,{form:ut,qitem:ie}),Ll.createElement(Ca,{getTagData:Bn,qitem:ie,exerciseitem:gt,TagDiscipline:he,form:ut}))))},Vt=ae(59301),mn=(ie,Se,he)=>new Promise((gt,Bt)=>{var Qn=it=>{try{_t(he.next(it))}catch($t){Bt($t)}},Bn=it=>{try{_t(he.throw(it))}catch($t){Bt($t)}},_t=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,Bn);_t((he=he.apply(ie,Se)).next())}),Mn=({setScoreShow:ie,ScoreShow:Se,exerciseitem:he,getdata:gt})=>{var Bt,Qn,Bn;const[_t,it]=(0,b.useState)(!1);function $t(){return mn(this,null,function*(){var Ot,wt,ut;let xt=(wt=(Ot=he==null?void 0:he.exercise_question_types)==null?void 0:Ot.filter(cn=>cn.Singlequestion))==null?void 0:wt.map(cn=>({question_type:cn.question_type,score:cn.Singlequestion})),An=yield(0,te.ZP)(`/api/exercises/${(ut=he==null?void 0:he.exercise)==null?void 0:ut.id}/batch_set_score.json`,{method:"POST",body:{question_arr:xt}});(An==null?void 0:An.status)===0&>()})}const ra=Ot=>{if((Ot==null?void 0:Ot.name)!="\u5B9E\u8BAD\u9898")return!1;const wt=Ot.items;for(const ut of wt)for(const xt of ut.shixun)if(xt.challenge_test_set_score_rule==2)return!0;return!1};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 Ot,wt,ut;if(he!=null&&he.use_blank_score&&((ut=(wt=(Ot=he==null?void 0:he.exercise_question_types)==null?void 0:Ot.filter(xt=>xt.name==="\u586B\u7A7A\u9898"))==null?void 0:wt[0])!=null&&ut.Singlequestion)){it(!0);return}$t(),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=(Qn=he==null?void 0:he.exercise_question_types)==null?void 0:Qn.filter(Ot=>Ot.name!=="\u7EC4\u5408\u9898"))==null?void 0:Bn.map(Ot=>{var wt;return Vt.createElement("div",{className:tt.items},Vt.createElement("span",null,Ot==null?void 0:Ot.name),Vt.createElement("span",null,(wt=Ot==null?void 0:Ot.items)==null?void 0:wt.length),Vt.createElement("span",null,Ot==null?void 0:Ot.score),Vt.createElement("span",null,"\u6BCF\u9898",Vt.createElement(De.Z,{disabled:ra(Ot),max:100,precision:1,min:.1,onChange:ut=>{Ot.Singlequestion=ut},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:_t,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:()=>{$t(),it(!1),ie(!1)}},"\u786E\u8BA4"))))},Lt=ae(99313),un=ae(98228),kn=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),dn={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,_t,it,$t,ra;return b.createElement("div",{className:dn.warp},b.createElement("div",{className:dn.mainPart},b.createElement("div",{className:dn.qcount},(ie==null?void 0:ie.question_type)===8&&b.createElement(Tt.Z,{className:dn.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(Tt.Z,{className:dn.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((Ot,wt)=>b.createElement("div",{className:dn.redio},!(Ot!=null&&Ot.is_answer)&&b.createElement("span",{className:dn.redioitem}),(Ot==null?void 0:Ot.is_answer)&&b.createElement("i",{className:`${dn.redioitemyes} icon-duigou1`}),b.createElement(Tt.Z,{className:Ot!=null&&Ot.is_answer?dn.titleyes:dn.title,value:ka[wt]+(Ot==null?void 0:Ot.choice_text)}),(Ot==null?void 0:Ot.is_answer)&&b.createElement("div",{className:dn.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((Ot,wt)=>b.createElement("div",{className:dn.checkbox},!(Ot!=null&&Ot.is_answer)&&b.createElement("span",{className:dn.checkboxitem}),(Ot==null?void 0:Ot.is_answer)&&b.createElement("i",{className:`${dn.checkboxitemyes} icon-duigou1`}),b.createElement(Tt.Z,{className:Ot!=null&&Ot.is_answer?dn.titleyes:dn.title,value:ka[wt]+(Ot==null?void 0:Ot.choice_text)}),(Ot==null?void 0:Ot.is_answer)&&b.createElement("div",{className:dn.yestag},"\u6B63\u786E\u7B54\u6848")))),(ie==null?void 0:ie.question_type)===3&&b.createElement("div",{className:dn.completion},(Bt=ie==null?void 0:ie.standard_answer)==null?void 0:Bt.map((Ot,wt)=>{var ut;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:dn.title},"\u586B\u7A7A\u9879",wt+1),b.createElement("div",{className:dn.content},(ut=Ot==null?void 0:Ot.answer_text)==null?void 0:ut.map((xt,An)=>b.createElement("div",{className:dn.items},xt))))})),(ie==null?void 0:ie.question_type)===4&&b.createElement("div",{className:dn.simple},b.createElement("div",{className:dn.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(Tt.Z,{className:dn.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&&((_t=ie==null?void 0:ie.challenge_names)==null?void 0:_t.map((Ot,wt)=>b.createElement("div",{className:dn.shixun},b.createElement("span",{className:dn.qtitle},b.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,pt.EM)(wt+1),"\u9898"),Ot)))),(ie==null?void 0:ie.question_type)===6&&b.createElement("div",{className:dn.simple},b.createElement(Tt.Z,{className:dn.content,value:((it=ie==null?void 0:ie.program_attr)==null?void 0:it.description)||"- -"})),(ie==null?void 0:ie.question_type)===7&&(($t=ie==null?void 0:ie.sub_item_banks)==null?void 0:$t.map((Ot,wt)=>{var ut,xt,An,cn,Ft;return b.createElement("div",null,b.createElement("div",{className:dn.combination},b.createElement("span",{className:dn.qtitle},Ot==null?void 0:Ot.name)),b.createElement("div",{className:dn.warp,style:{padding:"0px",paddingTop:20}},b.createElement("div",null,((Ot==null?void 0:Ot.item_type)=="SINGLE"||(Ot==null?void 0:Ot.item_type)=="JUDGMENT")&&((ut=Ot==null?void 0:Ot.choices)==null?void 0:ut.map((bt,hn)=>b.createElement("div",{className:dn.redio},!(bt!=null&&bt.is_answer)&&b.createElement("span",{className:dn.redioitem}),(bt==null?void 0:bt.is_answer)&&b.createElement("i",{className:`${dn.redioitemyes} icon-duigou1`}),b.createElement(Tt.Z,{className:bt!=null&&bt.is_answer?dn.titleyes:dn.title,value:ka[hn]+(bt==null?void 0:bt.choice_text)}),(bt==null?void 0:bt.is_answer)&&b.createElement("div",{className:dn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Ot==null?void 0:Ot.item_type)=="MULTIPLE"&&((xt=Ot==null?void 0:Ot.choices)==null?void 0:xt.map((bt,hn)=>b.createElement("div",{className:dn.checkbox},!(bt!=null&&bt.is_answer)&&b.createElement("span",{className:dn.checkboxitem}),(bt==null?void 0:bt.is_answer)&&b.createElement("i",{className:`${dn.checkboxitemyes} icon-duigou1`}),b.createElement(Tt.Z,{className:bt!=null&&bt.is_answer?dn.titleyes:dn.title,value:ka[hn]+(bt==null?void 0:bt.choice_text)}),(bt==null?void 0:bt.is_answer)&&b.createElement("div",{className:dn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Ot==null?void 0:Ot.item_type)=="COMPLETION"&&b.createElement("div",{className:dn.completion},(An=Ot==null?void 0:Ot.standard_answer)==null?void 0:An.map((bt,hn)=>{var en;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:dn.title},"\u586B\u7A7A\u9879",hn+1),b.createElement("div",{className:dn.content},(en=bt==null?void 0:bt.answer_text)==null?void 0:en.map((Jt,$a)=>b.createElement("div",{className:dn.items},Jt))))})),(Ot==null?void 0:Ot.item_type)=="SUBJECTIVE"&&b.createElement("div",{className:dn.simple},b.createElement("div",{className:dn.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(cn=Ot==null?void 0:Ot.answer_texts)!=null&&cn[0]?b.createElement(Tt.Z,{className:dn.content,value:(Ft=Ot==null?void 0:Ot.answer_texts)==null?void 0:Ft[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(Tt.Z,{disabledFill:!0,className:dn.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:dn.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:dn.bottom},b.createElement("div",{className:dn.bottomitem},b.createElement("span",{className:dn.left},"\u89E3\u6790"),b.createElement("span",{className:dn.right},ie!=null&&ie.analysis?b.createElement(Tt.Z,{value:ie==null?void 0:ie.analysis}):b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),b.createElement("div",{className:dn.bottomitem},b.createElement("span",{className:dn.left},"\u96BE\u5EA6"),b.createElement("span",{className:dn.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:dn.bottomitem},b.createElement("span",{className:dn.left},"\u77E5\u8BC6\u70B9"),b.createElement("span",{className:dn.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),_r=ae(33008),so=ae(70659),Fo=ae(93758),xo=ae(40886),ll=ae(95382),Zn=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{_t(he.next(it))}catch($t){Bt($t)}},Bn=it=>{try{_t(he.throw(it))}catch($t){Bt($t)}},_t=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,Bn);_t((he=he.apply(ie,Se)).next())});const Ml=({setScoreShow:ie,ScoreShow:Se,onOk:he,isshixuns:gt,isloadings:Bt,dispatch:Qn,shixunsDetail:Bn,exercise:_t,SpecificDifficulty:it=!1})=>{var $t,ra,Ot,wt;let[ut,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:[]}),[An,cn]=(0,b.useState)([]),[Ft,bt]=(0,b.useState)([]),[hn,en]=(0,b.useState)([]),[Jt,$a]=(0,b.useState)([]);const[Br,Za]=(0,b.useState)(!1),[Hr]=we.default.useForm(),[Un,zr]=(0,b.useState)(),[lo,Do]=(0,b.useState)(!1);let[Ir,Lo]=(0,b.useState)(gt);const[Io,Al]=(0,b.useState)([]),[In,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 Yt,zn,Jr,xr,Rr,fo,Wo,vo,fi,kl;(((Jr=(zn=(Yt=_t==null?void 0:_t.editData)==null?void 0:Yt.exercise)==null?void 0:zn.exist_item_bank_ids)==null?void 0:Jr.length)>0||((fo=(Rr=(xr=_t==null?void 0:_t.editData)==null?void 0:xr.exercise)==null?void 0:Rr.exist_item_bank_shixun_ids)==null?void 0:fo.length)>0)&&Jl([...(vo=(Wo=_t==null?void 0:_t.editData)==null?void 0:Wo.exercise)==null?void 0:vo.exist_item_bank_ids,...(kl=(fi=_t==null?void 0:_t.editData)==null?void 0:fi.exercise)==null?void 0:kl.exist_item_bank_shixun_ids])},[(ra=($t=_t==null?void 0:_t.editData)==null?void 0:$t.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 Vr=[{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=()=>{Hr.resetFields(),Ir=!1,Lo(!1),Ul(!1),Hr.submit()};(0,b.useEffect)(()=>{Hn>0&&setTimeout(()=>{Bl(0)},2e3)},[Hn]),(0,b.useEffect)(()=>{Se&&(Hr.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),In&&Ir&&(Hr.setFieldsValue({item_type:"SHIXUN"}),ut.item_type="SHIXUN",it&&(Hr.setFieldsValue({diff:it}),ut.diff=it),xt(Zr({},ut)),fl(!1)),cl(ut),ui(),Pi({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Zi())},[Se]);function cl(Yt){return No(this,null,function*(){var zn,Jr,xr;if(Za(!0),xt(Yt),(hn==null?void 0:hn.length)<=0&&Yt.type==="5"){$a([]),Za(!1);return}let Rr=Yt.type==="5"?hn==null?void 0:hn.filter(vo=>!Io.includes(vo)):null,fo=Yt.type==="5"?hn==null?void 0:hn.filter(vo=>Io.includes(vo)):null,Wo=yield(0,te.ZP)("/api/item_banks.json",{method:"get",params:el(Zr({},Yt),{discipline_id:((zn=Yt==null?void 0:Yt.courseid)==null?void 0:zn[0])||null,sub_discipline_id:((Jr=Yt==null?void 0:Yt.courseid)==null?void 0:Jr[1])||null,ids:Rr,shixun_ids:fo,group_id:((xr=Yt.group_id)==null?void 0:xr.map(vo=>vo==null?void 0:vo.value))||null,keyword:Yt.keyword?encodeURIComponent(Yt.keyword):Yt.keyword,include_shixuns:!0,type:Yt.type==="5"?null:Yt.type,clazz:Yt.type==="3"?"ItemBanksGroup":null})});$a(Wo),Za(!1)})}function Zi(){return No(this,null,function*(){let Yt=yield(0,te.ZP)("/api/users/vrs_subject_names.json",{method:"Get"});(Yt==null?void 0:Yt.status)==0&&Ni(Yt==null?void 0:Yt.names)})}function Pi(Yt){return No(this,null,function*(){var zn;let Jr=yield(0,te.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Yt}),xr=[{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(xr)})}function ui(){return No(this,null,function*(){let Yt=yield(0,te.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:ut.type==="5"?null:ut.type,clazz:"ItemBanksGroup"}});cn((0,Sa.L)(Yt==null?void 0:Yt.disciplines))})}function pl(Yt){return No(this,null,function*(){var zn,Jr,xr,Rr;Za(!0);let fo=(zn=Yt.list)==null?void 0:zn.filter(fi=>!Io.includes(fi)),Wo=(Jr=Yt.list)==null?void 0:Jr.filter(fi=>Io.includes(fi));if(fo.length===0&&Wo.length===0){Za(!1),$a([]);return}let vo=yield(0,te.ZP)("/api/item_banks.json",{method:"get",params:el(Zr({},Yt),{discipline_id:((xr=Yt==null?void 0:Yt.courseid)==null?void 0:xr[0])||null,sub_discipline_id:((Rr=Yt==null?void 0:Yt.courseid)==null?void 0:Rr[1])||null,ids:fo,shixun_ids:Wo,type:Yt.type==="5"?null:Yt.type,clazz:Yt.type==="3"?"ItemBanksGroup":null})});Za(!1),$a(vo)})}const Ui=(0,Ee.useParams)(),[Gi,zo,yu,Fu]=(0,_r.P)(),tu=Yt=>No(void 0,null,function*(){const zn=yield Qn({type:"shixunsDetail/release",payload:{id:Yt}});let Jr=zn==null?void 0:zn.tag_position,xr=(zn==null?void 0:zn.evaluation_set_position)||[],Rr=zn.status;return Rr===0?(Be.ZP.success("\u53D1\u5E03\u6210\u529F"),cl(ut),!0):(Rr===2?Be.ZP.error(`\u7B2C${xr.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=Yt=>(Yt==null?void 0:Yt.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=(Yt,zn,Jr)=>Yt.map(xr=>xr.key===zn?Zr(Zr({},xr),Jr):xr.children?el(Zr({},xr),{children:Yi(xr.children,zn,Jr)}):xr),Nu=Yt=>No(void 0,null,function*(){const{key:zn}=Yt;let Jr=ut.type;const xr=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}=xr||{};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(Yt){console.log("----",ut),Yt==="1"&&(al.gg=Zr({},ut)),Yt==="2"&&(al.scj=Zr({},ut)),Yt==="3"&&(al.ttgx=Zr({},ut)),Yt==="0"&&(al.wcjd=Zr({},ut)),Yt==="5"&&(al.yx=Zr({},ut)),Xl(Zr({},al))}function yi(){ut.type==="1"&&(ut=al.gg),ut.type==="2"&&(ut=al.scj),ut.type==="3"&&(ut=al.ttgx),ut.type==="0"&&(ut=al.wcjd),ut.type==="5"&&(ut=al.yx),(ut==null?void 0:ut.item_type)==="SHIXUN"?(Ir=!0,Lo(!0)):(Ir=!1,Lo(!1)),Hr.setFieldsValue(Zr({},ut)),xt(Zr({},ut)),cl(Zr({},ut))}return Zn.createElement("div",null,Zn.createElement(Ue.default,{title:!1,footer:!1,open:Se,width:1360,centered:!0,className:oa.scoremodal,onCancel:()=>{ie(!1)}},Zn.createElement("div",{style:{display:"flex",alignItems:"center"}},Zn.createElement("div",{className:oa.title},"\u9898\u5E93\u9009\u9898")),Zn.createElement(Lt.default,{className:oa.tabWrap,activeKey:ut.type,onChange:Yt=>{Yt==="3"?(ut.show_all_share=!0,Pi({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):ut.show_all_share=null,Yt==="0"&&Pi({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Cu(ut.type),ut.type=Yt,(ut==null?void 0:ut.item_type)==="SHIXUN"&&ut.type!=="5"&&(Ir=!0,Lo(!0)),Ul(!1),ut.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:Zn.createElement("div",null,"\u5DF2\u9009",hn.length>0&&Zn.createElement("span",{className:oa.titlecount},hn.length),Hn>0&&Zn.createElement("span",{className:oa.add},"+",Hn)),key:"5"}]}),Zn.createElement(we.default,{layout:"inline",form:Hr,onValuesChange:(Yt,zn)=>{var Jr,xr;const Rr=Object.values(zn).some(Wo=>Wo!==null&&Wo!==""&&Wo!==void 0),fo=zn.keyword==="";if(Ul(Rr||!fo),ut.page=1,ut.keyword=(xr=(Jr=ut.keyword)==null?void 0:Jr.replace)==null?void 0:xr.call(Jr,/^\s+|\s+$/g,""),(zn==null?void 0:zn.item_type)==="SHIXUN"){if(ut.type==="5"?(it&&(Yt==null?void 0:Yt.item_type)==="SHIXUN"&&Hr.setFieldsValue({difficulty:it}),Lo(!1)):(it&&(Yt==null?void 0:Yt.item_type)==="SHIXUN"&&Hr.setFieldsValue({diff:it}),Lo(!0)),Yt.keyword||Yt.keyword==="")return;setTimeout(()=>{Hr.submit()},0)}else{if(Yt!=null&&Yt.courseid&&Hr.setFieldsValue({tag_discipline_id:""}),Lo(!1),Yt.keyword||Yt.keyword==="")return;Hr.submit()}},onFinish:Yt=>{var zn;ut.type==="3"&&(!Yt.group_id||((zn=Yt==null?void 0:Yt.group_id)==null?void 0:zn.length)===0)?ut.show_all_share=!0:ut.show_all_share=null,xt(Zr(Zr({},ut),Yt)),cl(Zr(Zr({},ut),Yt))}},Zn.createElement(we.default.Item,{name:"item_type"},Zn.createElement(Pe.default,{className:oa.selectWrapper,placeholder:"\u9898\u578B",style:{width:110},size:"middle",allowClear:!0},Wl.map(Yt=>Zn.createElement(Pe.default.Option,{key:Yt.value},Yt.name)))),Zn.createElement(we.default.Item,{name:"courseid"},Zn.createElement(xe.Z,{className:oa.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:An})),!Ir&&Zn.createElement(we.default.Item,{name:"tag_discipline_id"},Zn.createElement(Pe.default,{className:oa.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(Ot=Jt==null?void 0:Jt.tag_disciplines)==null?void 0:Ot.map(Yt=>Zn.createElement(Pe.default.Option,{key:Yt.id},Yt.name)))),Ir&&Zn.createElement(we.default.Item,{name:"vrs_name"},Zn.createElement(Pe.default,{className:oa.selectWrapper,placeholder:"\u79D1\u76EE",style:{width:118},size:"middle",allowClear:!0},(wt=[{id:"",name:"\u5168\u90E8"},...(Qi==null?void 0:Qi.map(Yt=>({id:Yt,name:Yt})))||[]])==null?void 0:wt.map(Yt=>Zn.createElement(Pe.default.Option,{key:Yt.id},Yt.name)))),Zn.createElement(we.default.Item,{name:Ir?"diff":"difficulty"},Zn.createElement(Pe.default,{className:oa.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},!Ir&&Vr.map(Yt=>Zn.createElement(Pe.default.Option,{value:Yt.value,key:Yt.value},Yt.name)),Ir&&Uo.map(Yt=>Zn.createElement(Pe.default.Option,{value:Yt.value,key:Yt.value},Yt.name)))),Ir&&Zn.createElement(we.default.Item,{name:"shixun_publish_status"},Zn.createElement(Pe.default,{className:oa.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},yl.map(Yt=>Zn.createElement(Pe.default.Option,{key:Yt.value},Yt.name)))),(ut.type==="3"||ut.type==="0")&&!Ir&&Zn.createElement(we.default.Item,{name:"group_id"},Zn.createElement(un.default,{treeDataSimpleMode:!0,style:{width:118},className:oa.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Yt,zn)=>zn.title.toUpperCase().indexOf(Yt.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&&Zn.createElement("span",{className:oa.allqingchu,onClick:mi},Zn.createElement("i",{className:"iconfont icon-guanbi4"}),Zn.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Zn.createElement(we.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Zn.createElement(We.default.Search,{className:oa.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Zn.createElement("i",{className:`iconfont icon-sousuo9 font14 ${oa.searchIcon}`,onClick:()=>Hr.submit()}),onSearch:Yt=>{Hr.submit()}}))),Zn.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Zn.createElement("div",{onClick:()=>{ut.updated_at==="asc"?ut.updated_at="desc":ut.updated_at="asc",xt(el(Zr({},ut),{page:1})),cl(el(Zr({},ut),{page:1}))}}," ",ut.updated_at?Zn.createElement("img",{src:ut.updated_at==="asc"?Xr.Z:Ar.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Zn.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Zn.createElement("div",{onClick:()=>{ut.quotes==="asc"?ut.quotes="desc":ut.quotes="asc",xt(el(Zr({},ut),{page:1})),cl(el(Zr({},ut),{page:1}))},style:{marginLeft:20}}," ",ut.quotes?Zn.createElement("img",{src:ut.quotes==="asc"?Xr.Z:Ar.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Zn.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Zn.createElement(Xu.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(Jt==null?void 0:Jt.items)||(Jt==null?void 0:Jt.shixun_list),pagination:!1,loading:Br,rowKey:Yt=>Yt.id,rowSelection:{type:"checkbox",selectedRowKeys:[...Ft,...zl],getCheckboxProps:Yt=>({disabled:Yt.shixun_tag_num===1||(zl==null?void 0:zl.find(zn=>Yt.id===zn))}),onSelect(Yt,zn,Jr){if(console.log("---",Jr,zn,Yt),zn)(Ir||Yt!=null&&Yt.challenge_names)&&Al([...Io,Yt.id]),bt([...Ft,Yt.id]),Yt.identifier?ai.current.add(Yt.id):Ho.current.add(Yt.id),Bl(1),en([...hn,Yt.id]);else{Yt.identifier?ai.current.delete(Yt.id):Ho.current.delete(Yt.id);let xr=hn.filter(Rr=>Rr!==Yt.id);if(bt(xr),en(xr),Ir||Yt!=null&&Yt.challenge_names){let Rr=Io.filter(fo=>fo!==Yt.id);Al([...Rr])}if(ut.type==="5"){pl(el(Zr({},ut),{list:[...xr]}));return}}},onSelectAll(Yt,zn,Jr){var xr,Rr;if(console.log("----",Jr),Yt){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]),bt([...Ft,...fo]),en([...hn,...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=Ft.filter(kl=>!fo.some(bu=>bu===kl)),vo=(xr=Jr==null?void 0:Jr.filter(kl=>kl==null?void 0:kl.challenge_names))==null?void 0:xr.map(kl=>kl.id);bt([...Wo]),en([...Wo]);let fi=Io.filter(kl=>!vo.some(bu=>bu===kl.id));Al([...fi]),ut.type==="5"&&pl(el(Zr({},ut),{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:(Yt,zn,Jr)=>{var xr,Rr;return Zn.createElement(rt.Z,{title:Ai(zn)},Zn.createElement("div",null,Ir||zn!=null&&zn.challenge_names?"\u5B9E\u8BAD\u9898":(Rr=(xr=Wl==null?void 0:Wl.filter(fo=>fo.value===Yt))==null?void 0:xr[0])==null?void 0:Rr.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:Ir?"30%":"60%",key:"name",render:(Yt,zn,Jr)=>{var xr;return Zn.createElement("div",{style:{display:"flex",alignItems:"center"}},Zn.createElement(rt.Z,{title:Ai(zn)},Zn.createElement("span",null,Zn.createElement(Tt.Z,{key:1,showLines:1,showTextOnly:!0,value:Ir||zn!=null&&zn.challenge_names?zn!=null&&zn.title||Yt===null?"--":Yt:(zn==null?void 0:zn.item_type)=="BPROGRAM"?(xr=zn==null?void 0:zn.program_attr)==null?void 0:xr.description:Yt}))),(zn==null?void 0:zn.high_resources_consume)&&Zn.createElement(so.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!Ir,render:(Yt,zn,Jr)=>{var xr;return Zn.createElement(rt.Z,{title:Ai(zn)},Zn.createElement("span",null,Yt?(xr=Yt==null?void 0:Yt.split("\u3001"))==null?void 0:xr[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!Ir,render:(Yt,zn,Jr)=>Zn.createElement(rt.Z,{title:Ai(zn)},Zn.createElement("span",null,Yt||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(Yt,zn,Jr)=>{var xr,Rr,fo,Wo;return Zn.createElement(rt.Z,{title:Ai(zn)},Zn.createElement("div",null,Ir||zn!=null&&zn.challenge_names?(zn==null?void 0:zn.level)||((Rr=(xr=Vr==null?void 0:Vr.filter(vo=>vo.value===Yt))==null?void 0:xr[0])==null?void 0:Rr.name):(Wo=(fo=Vr==null?void 0:Vr.filter(vo=>vo.value===Yt))==null?void 0:fo[0])==null?void 0:Wo.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!Ir,render:(Yt,zn,Jr)=>Zn.createElement(rt.Z,{title:Ai(zn)},Zn.createElement("div",null,Yt||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(Yt,zn,Jr)=>Zn.createElement(rt.Z,{title:Ai(zn)},Zn.createElement("div",null,Ir||zn!=null&&zn.challenge_names?(zn==null?void 0:zn.study_count)||(zn==null?void 0:zn.stu_num):Yt))},{title:Zn.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Zn.createElement(rt.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Zn.createElement(Sn.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!Ir,render:(Yt,zn,Jr)=>Zn.createElement(rt.Z,{title:Ai(zn)},Zn.createElement("div",null,Yt||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(Yt,zn,Jr)=>Zn.createElement(rt.Z,{title:Ai(zn)},Zn.createElement("div",{style:{flex:1,textAlign:"start"}},Zn.createElement("a",{onClick:()=>{var xr,Rr;zr(el(Zr({},zn),{question_type:Ir||zn!=null&&zn.challenge_names?5:(Rr=(xr=Wl==null?void 0:Wl.filter(fo=>fo.value===(zn==null?void 0:zn.item_type)))==null?void 0:xr[0])==null?void 0:Rr.question_type})),Do(!0)}},"\u67E5\u770B"),(zn==null?void 0:zn.shixun_tag_num)===1&&Zn.createElement("a",{style:{marginLeft:10},onClick:()=>{Ue.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Zn.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Zn.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((xr,Rr)=>{Rr()})})})}},"\u53D1\u5E03")))}].filter(Yt=>!Yt.hidden)}),Zn.createElement(kn.Z,{current:ut.page,total:(Jt==null?void 0:Jt.items_count)||(Jt==null?void 0:Jt.shixuns_count),style:{marginBottom:20},defaultPageSize:ut.per_page,showTotal:Yt=>Zn.createElement("span",null,"\u5171\xA0",Zn.createElement("span",{style:{color:"#165DFF"}},Yt),"\xA0\u6761\u6570\u636E"),pageSize:ut.per_page,onChange:(Yt,zn)=>{ut.page=Yt,ut.per_page=zn,xt(Zr({},ut)),cl(Zr({},ut))}}),Zn.createElement("div",{className:oa.bottom},Zn.createElement(ke.ZP,{className:oa.no,onClick:()=>{ie(!1)}},"\u53D6\u6D88"),Zn.createElement(ke.ZP,{loading:Bt,style:{width:Bt&&75},className:oa.yes,onClick:()=>No(void 0,null,function*(){if((hn==null?void 0:hn.length)<=0){Be.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}let Yt=yield(0,ll.Tr)({id:[...hn==null?void 0:hn.filter(zn=>Io.includes(zn))],course_id:Ui.coursesId,type:"shixun"});(Yt==null?void 0:Yt.student_count)===0?he([...Ho.current],[...hn==null?void 0:hn.filter(zn=>Io.includes(zn))],!0,hn==null?void 0:hn.length):vl(Yt)})},"\u786E\u8BA4"))),Zn.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)}},Zn.createElement(ha,{qitem:Un})),Zn.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:Yt=>No(void 0,null,function*(){const zn=[],Jr=[];for(const xr of Ql==null?void 0:Ql.can_copy_list)zn.push(xr.id);zo(),yield he([...Ho.current],[...ai.current].filter(xr=>!Jr.includes(xr)),!0,hn==null?void 0:hn.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{_t(he.next(it))}catch($t){Bt($t)}},Bn=it=>{try{_t(he.throw(it))}catch($t){Bt($t)}},_t=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,Bn);_t((he=he.apply(ie,Se)).next())}),xi=({qitem:ie,TagDiscipline:Se,exerciseitem:he,setisedit:gt,seveeditor:Bt,deleteitem:Qn,getTagData:Bn,init:_t,showTip:it=!1})=>{var $t;const[ra]=we.default.useForm(),Ot=!0;return(0,b.useEffect)(()=>{var wt,ut,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:(wt=ie==null?void 0:ie.program_attr)==null?void 0:wt.language,code:zi.Base64.decode(((ut=ie==null?void 0:ie.program_attr)==null?void 0:ut.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:(wt,ut)=>{var xt,An,cn,Ft;if(wt!=null&&wt.standard_answers){let bt=((xt=ra.getFieldValue("standard_answers"))==null?void 0:xt.length)>0&&((cn=(An=ra.getFieldValue("standard_answers"))==null?void 0:An.map(hn=>hn.score))==null?void 0:cn.filter(hn=>hn));(bt==null?void 0:bt.length)>0&&ra.setFieldsValue({question_score:(bt==null?void 0:bt.length)>0&&((Ft=bt.reduce((hn,en)=>hn+en))==null?void 0:Ft.toFixed(1))})}},onFinish:wt=>{var ut;Bt(El(Xo(Xo({},ie),wt),{item_type:ie==null?void 0:ie.question_type,standard_answers:(ut=wt.standard_answers)==null?void 0:ut.map((xt,An)=>El(Xo({},xt),{position:An+1})),hack_codes:El(Xo({},wt.hack_codes),{code:zi.Base64.encode(wt.hack_codes.code)}),standard_answer:void 0}))},onFinishFailed:wt=>gl(void 0,null,function*(){var ut,xt;Be.ZP.error(wt.errorFields[0].errors[0]),ra.scrollToField((xt=(ut=wt==null?void 0:wt.errorFields)==null?void 0:ut[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")),(($t=he==null?void 0:he.exercise)==null?void 0:$t.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 wt,ut,xt,An;ie.isadd?(gt(!1),_t()):(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:(wt=he==null?void 0:he.exercise)==null?void 0:wt.sub_discipline_id,tag_discipline_ids:[]}),hack_codes:{language:(ut=ie==null?void 0:ie.program_attr)==null?void 0:ut.language,code:zi.Base64.decode((xt=ie==null?void 0:ie.program_attr)==null?void 0:xt.code)},hack_sets:Xo({},(An=ie==null?void 0:ie.hack_sets)==null?void 0:An[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:Ot,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),Cn=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{_t(he.next(it))}catch($t){Bt($t)}},Bn=it=>{try{_t(he.throw(it))}catch($t){Bt($t)}},_t=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,Bn);_t((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,_t,it,$t,ra,Ot,wt,ut,xt,An,cn,Ft,bt,hn,en,Jt,$a,Br,Za,Hr,Un,zr,lo,Do,Ir,Lo,Io,Al;const[In,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,Vr]=(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,Yt]=(0,b.useState)(!1),[zn,Jr]=(0,b.useState)(!1),xr=(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}),Vr(lr)});function fo(){return Co(this,null,function*(){var ea,lr,qr,io,po,Wr;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({},(Wr=ho==null?void 0:ho.exercise_question_types)==null?void 0:Wr[0]),{indexs:1}))})}function Wo(ea,lr=!0){return Co(this,null,function*(){var qr,io,po,Wr;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(Ur=>{var Ko;(Ko=Ur==null?void 0:Ur.items)==null||Ko.map((Ji,vi)=>{Yo.push(Il(Sl({},Ji),{index:vi+1}))})});let Qr=(io=Yo.filter(Ur=>Ur.question_id===(ea==null?void 0:ea.id)))==null?void 0:io[0],Fr=(Wr=((po=ho==null?void 0:ho.exercise_question_types)==null?void 0:po.map((Ur,Ko)=>{if((Qr==null?void 0:Qr.question_type)===(Ur==null?void 0:Ur.question_type))return Il(Sl({},Ur),{indexs:Ko+1})})).filter(Ur=>Ur))==null?void 0:Wr[0];Qi(Sl({},Fr)),Bl(Sl({},Qr)),Jl(Qr==null?void 0:Qr.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:Cn.createElement("div",null,Cn.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"),Cn.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 Wr=yield(0,te.ZP)(io,{method:ui?"post":"PUT",body:Sl({},qr)});(Wr==null?void 0:Wr.status)===0&&(al(!1),Wo({id:(Wr==null?void 0:Wr.exercise_question_id)||(ea==null?void 0:ea.question_id)})),po.destroy()}),onCancel:()=>Co(this,null,function*(){let Wr=yield(0,te.ZP)(io,{method:ui?"post":"PUT",body:Sl({},qr)});(Wr==null?void 0:Wr.status)===0&&(al(!1),Wo({id:(Wr==null?void 0:Wr.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`,Wr=>{var ho;if((Wr==null?void 0:Wr.status)===0){const Yo={};(ho=Wr==null?void 0:Wr.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 Qr=`\u6210\u529F\u5BFC\u5165${Wr==null?void 0:Wr.success}\u6761`;Object.keys(Yo).forEach(Oa=>{Qr=Qr+`,${Oa}${Yo[Oa]}\u6761`}),Be.ZP.success(Qr),yl(!1),fo()}(Wr==null?void 0:Wr.status)===-1&&(Be.ZP.error(Wr==null?void 0:Wr.message),qr())})}),bu=(ea,lr)=>Co(void 0,null,function*(){In.exercise_types.q_scores=Number(In.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 Wr=new FormData;Object.keys(ea).forEach(Yo=>{Wr.append(Yo,ea[Yo])});const ho=new window.XMLHttpRequest;return ho.withCredentials=!0,ho.addEventListener("load",function(Yo){var Qr;qr(JSON.parse((Qr=Yo==null?void 0:Yo.target)==null?void 0:Qr.response))},!1),ho.addEventListener("error",function(Yo){po&&po(Yo)},!1),ho.upload.onprogress=Yo=>{io&&io(Yo)},ho.open("POST",lr),ho.send(Wr),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)=>Cn.createElement(Mt.default,null,Cn.createElement(Mt.default.Item,{key:"0",onClick:()=>ts(ea==null?void 0:ea.question_type)},Cn.createElement("span",{className:tt.moreSpan},"\u65B0\u589E")),Cn.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)(In==null?void 0:In.exercise_question_types,lr,lr-1);yield fi(qr.map(io=>io.name))})},Cn.createElement("span",{className:tt.moreSpan},"\u4E0A\u79FB")),Cn.createElement(Mt.default.Item,{key:"2",disabled:lr===(In==null?void 0:In.exercise_question_types.length)-1,onClick:()=>Co(void 0,null,function*(){if(lr===(In==null?void 0:In.exercise_question_types.length)-1)return;if(Ho){Hi();return}let qr=(0,pt.rz)(In==null?void 0:In.exercise_question_types,lr,lr+1);yield fi(qr.map(io=>io.name))})},Cn.createElement("span",{className:tt.moreSpan},"\u4E0B\u79FB")),Cn.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)}},Cn.createElement("span",{className:tt.moreSpan},"\u91CD\u547D\u540D"))),ts=ea=>{var lr,qr,io,po,Wr,ho,Yo,Qr,Oa,Fr,Ur,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=In==null?void 0:In.exercise)==null?void 0:io.id}&callback_url=/classrooms/${zo.coursesId}/exercise/add/${he}?type=2&discipline_id=${(Wr=(po=Bt==null?void 0:Bt.editData)==null?void 0:po.exercise)==null?void 0:Wr.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=${(Qr=In==null?void 0:In.exercise)==null?void 0:Qr.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=(Ur=Bt==null?void 0:Bt.editData)==null?void 0:Ur.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:Cn.createElement("div",null,Cn.createElement("img",{width:26,style:{position:"absolute",top:-2},src:Hl.$}),Cn.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),Cn.createElement("div",null,Cn.createElement(Xt.Z,{spinning:Ni},Cn.createElement("div",{className:tt.bg},((Bn=In==null?void 0:In.exercise_types)==null?void 0:Bn.q_counts)===0&&!Ho&&Cn.createElement(Xn.Z,{styles:{marginTop:180},customText:Cn.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",Cn.createElement("span",{className:"c-light-primary"},"\u5E95\u90E8\u64CD\u4F5C\u680F"),"\u8FDB\u884C\u6DFB\u52A0~")}),(((_t=In==null?void 0:In.exercise_types)==null?void 0:_t.q_counts)>0||Ho)&&Cn.createElement("div",{style:{textAlign:"center"}},Cn.createElement("div",{style:{marginTop:20,borderTop:"1px solid #DCDCDC",display:"block",alignItems:"stretch"}},Cn.createElement("div",{style:{backgroundColor:"#F6F7F9",display:"inline-block",position:"sticky",top:0}},Cn.createElement("div",{className:tt.left},Cn.createElement("div",{className:tt.leftAction},((it=In==null?void 0:In.exercise)==null?void 0:it.exercise_status)===1&&Cn.createElement(ke.ZP,{onClick:()=>{if(Ho){Hi();return}Ul(!0)},className:tt.Button},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C")),Cn.createElement("div",{className:tt.scrollWrapper,style:{overflow:qu},onMouseEnter:$u,onMouseLeave:es},($t=In==null?void 0:In.exercise_question_types)==null?void 0:$t.map((ea,lr)=>Cn.createElement("div",{key:lr,className:"mb30"},Cn.createElement("div",{className:tt.title},Cn.createElement("div",{className:tt.titleleft},Cn.createElement("span",{style:{color:"#000000",fontWeight:400,fontSize:12}}," ",(0,pt.EM)(lr+1),"\u3001\u3010",ea.name,"\u3011"),Cn.createElement("span",{style:{color:"#464F66",fontSize:12}},"\uFF08",ea.count,"\u5C0F\u9898\uFF0C\u5171",ea.score,"\u5206\uFF09")),Cn.createElement(Ce.Z,{dropdownRender:()=>Es(ea,lr),placement:"bottomLeft"},Cn.createElement("div",{className:tt.more_style},Cn.createElement("i",{className:"iconfont icon-sandian font12"})))),Cn.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})))))),Cn.createElement("div",{id:"question-scroll-id",style:{overflow:Ho?"hidden":"auto"},className:tt.right},!(Hn!=null&&Hn.isadd)&&Cn.createElement("div",{className:tt.title},!Ho&&Cn.createElement("div",{style:{flex:1}},Cn.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"),Cn.createElement(rt.Z,{title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0"},Cn.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)}})),Cn.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&&Cn.createElement("span",{onClick:()=>{Ue.default.destroyAll(),Yt(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&&Cn.createElement(Ke.default,{defaultChecked:(Ot=(ra=Bt==null?void 0:Bt.editData)==null?void 0:ra.exercise)==null?void 0:Ot.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&&Cn.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:Cn.createElement("div",null,(Hn==null?void 0:Hn.question_type)===6&&Cn.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 Wr=yield(0,te.ZP)(`/api/exercises/${he}/update_show_columns.json`,{method:"post",body:{show_hack_sets:po.target.checked}});(Wr==null?void 0:Wr.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"),Cn.createElement("br",null),(Hn==null?void 0:Hn.question_type)===6&&Cn.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 Wr=yield(0,te.ZP)(`/api/exercises/${he}/update_show_columns.json`,{method:"post",body:{show_hack_description:po.target.checked}});(Wr==null?void 0:Wr.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")),Cn.createElement("div",{style:{display:"flex",alignItems:"center"}},(Hn==null?void 0:Hn.question_type)===5&&!Ho&&Cn.createElement("a",{className:tt.shixun,href:`/shixuns/${Hn==null?void 0:Hn.shixun_identifier}/challenges?exercise=true`,target:"_blank"},Cn.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u8BD5\u9898\u8BE6\u60C5"),!Ho&&((wt=In==null?void 0:In.exercise)==null?void 0:wt.exercise_status)==1&&[0,1,2,4,6].includes(Hn==null?void 0:Hn.question_type)&&Cn.createElement(we.default.Item,{label:"\u5206\u503C",style:{margin:"0 20px"},required:!0},Cn.createElement(De.Z,{precision:1,ref:Wl,onChange:ea=>Jl(ea),value:zl,onBlur:ea=>{bu(ea.target.value,Hn)}})),!Ho&&((ut=In==null?void 0:In.exercise)==null?void 0:ut.exercise_status)==1&&Cn.createElement(rt.Z,{title:"\u5220\u9664"},Cn.createElement("span",{onClick:()=>{_i()},style:{marginRight:20},className:`${tt.delete} mr8 ml8 `},"\u5220\u9664")),(Hn==null?void 0:Hn.question_type)!==5&&!Ho&&Cn.createElement(Cn.Fragment,null,(Hn==null?void 0:Hn.is_my)==1&&Cn.createElement(rt.Z,{title:"\u67E5\u770B\u539F\u9898"},Cn.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}`)}})),Cn.createElement(rt.Z,{title:"\u52A0\u5165\u6211\u7684\u9898\u5E93"},Cn.createElement("i",{className:`${tt.tianjia} iconfont icon-jiarushitiku mr8 ml8`,onClick:()=>{xr.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:Cn.createElement("div",{className:`font14 ${tt.overflow}`,style:{maxHeight:500,overflow:"auto"}},Cn.createElement("p",{className:"c-grey-333"},"\u8BF7\u9009\u62E9\u52A0\u5165\u7684\u6587\u4EF6\u5939"),Cn.createElement(Xt.Z,{spinning:!1},Cn.createElement(lu.Z,{defaultValue:!0,value:xr.current,onChange:ea=>xr.current=ea}))),onOk:()=>Co(void 0,null,function*(){var ea;(0,Si.$l)({id:Hn==null?void 0:Hn.question_id,group_id:((ea=xr==null?void 0:xr.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=In==null?void 0:In.exercise)==null?void 0:xt.exercise_status)==1||((An=In==null?void 0:In.exercise)==null?void 0:An.exercise_status)==2&&((Ft=(cn=ie.userInfo)==null?void 0:cn.course)==null?void 0:Ft.course_role)!=15||((bt=In==null?void 0:In.exercise)==null?void 0:bt.exercise_status)==3&&((en=(hn=ie.userInfo)==null?void 0:hn.course)==null?void 0:en.course_role)!=15||((Jt=In==null?void 0:In.exercise)==null?void 0:Jt.exercise_status)==4&&((Br=($a=ie.userInfo)==null?void 0:$a.course)==null?void 0:Br.course_role)!=15)&&Cn.createElement(rt.Z,{title:"\u7F16\u8F91\u8BD5\u9898"},Cn.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&&Cn.createElement("div",null,Cn.createElement("div",{className:tt.qcount},Cn.createElement("span",{className:tt.score},Hn==null?void 0:Hn.question_score,"\u5206"),Cn.createElement(Tt.Z,{className:tt.qtitle,value:(Hn==null?void 0:Hn.index)+`\u3001${(Hn==null?void 0:Hn.question_type)==8?(Za=Hn==null?void 0:Hn.program_attr)==null?void 0:Za.description:Hn==null?void 0:Hn.question_title}`}),(Hn==null?void 0:Hn.high_resources_consume)&&Cn.createElement(so.Z,{type:"shixun",style:{marginLeft:10}})),(Hn==null?void 0:Hn.question_type)===6&&Cn.createElement(gn.Z,{onEdit:()=>Yt(1),className:"mt10",dataSource:(Hn==null?void 0:Hn.languages)||[]}),Cn.createElement(eu,{exercise:Bt,TagDiscipline:Xl,qitem:Hn})),Ho&&Cn.createElement("div",null,(Hn==null?void 0:Hn.question_type)<=1&&Cn.createElement(Rt,{deleteitem:_i,getTagData:Rr,seveeditor:vo,exerciseitem:In,TagDiscipline:Xl,setisedit:al,qitem:Hn,init:fo,showTip:zn}),(Hn==null?void 0:Hn.question_type)===5&&Cn.createElement(bs,{setqitem:Bl,deleteitem:_i,seveeditor:vo,exerciseitem:In,TagDiscipline:Xl,setisedit:al,qitem:Hn,showTip:zn}),(Hn==null?void 0:Hn.question_type)===3&&Cn.createElement(ya,{deleteitem:_i,getTagData:Rr,seveeditor:vo,exerciseitem:In,TagDiscipline:Xl,setisedit:al,qitem:Hn,init:fo,showTip:zn}),(Hn==null?void 0:Hn.question_type)===2&&Cn.createElement(ro,{deleteitem:_i,getTagData:Rr,seveeditor:vo,exerciseitem:In,TagDiscipline:Xl,setisedit:al,qitem:Hn,init:fo,showTip:zn}),(Hn==null?void 0:Hn.question_type)===4&&Cn.createElement(Kn,{deleteitem:_i,getTagData:Rr,seveeditor:vo,exerciseitem:In,TagDiscipline:Xl,setisedit:al,qitem:Hn,init:fo,showTip:zn}),(Hn==null?void 0:Hn.question_type)===7&&Cn.createElement(us,{deleteitem:_i,getTagData:Rr,seveeditor:vo,exerciseitem:In,TagDiscipline:Xl,setisedit:al,qitem:Hn,init:fo,showTip:zn}),(Hn==null?void 0:Hn.question_type)===8&&Cn.createElement(xi,{deleteitem:_i,getTagData:Rr,seveeditor:vo,exerciseitem:In,TagDiscipline:Xl,setisedit:al,qitem:Hn,init:fo,showTip:zn}))))))),Cn.createElement("div",{className:tt.bottomdiv},Cn.createElement("div",{className:tt.exercise_styles},((Hr=In==null?void 0:In.exercise)==null?void 0:Hr.exercise_status)==1&&Cn.createElement(Cn.Fragment,null,Cn.createElement("span",{className:tt.spanBtn,onClick:()=>{if(Ho){Hi();return}cl(!0),Pi(!0)}},"\u9898\u5E93\u9009\u9898"),Cn.createElement(Ce.Z,{menu:{items:ns}},Cn.createElement("span",{className:tt.spanBtn},"\u5BFC\u5165\u8BD5\u9898")),Cn.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"),Cn.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=>Cn.createElement(ke.ZP,{className:tt.addQuestionBtn,key:ea.id,type:"primary",onClick:()=>{ts(ea.id)}},ea.name))),((Un=In==null?void 0:In.exercise)==null?void 0:Un.exercise_status)!=1&&Cn.createElement(Cn.Fragment,null,Cn.createElement("span",{style:{width:"1022px"}})),Cn.createElement("span",{className:tt.saveBtn,onClick:()=>Co(void 0,null,function*(){var ea,lr,qr;if(Ho){Hi();return}const io=Number(In.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:Cn.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",Cn.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=In==null?void 0:In.exercise_question_types)==null?void 0:ea.filter(ho=>ho.question_type===5)[0])==null?void 0:lr.items,Wr=0;po==null||po.map(ho=>{ho.high_resources_consume&&(Wr=Wr+1)}),console.log(Wr),Wr>0?Se({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u63D0\u793A",count:Wr,fn:()=>{var ho;((ho=In==null?void 0:In.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=In==null?void 0:In.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()})},Cn.createElement("i",{className:"iconfont icon-baocun1",style:{fontSize:15,marginRight:5}}),"\u4FDD\u5B58\u8BD5\u5377"))),Cn.createElement(Mn,{setScoreShow:Ul,ScoreShow:wl,exerciseitem:In,getdata:fo}),mi&&Cn.createElement(il,{setScoreShow:cl,isshixuns:Zi,SpecificDifficulty:(zr=In==null?void 0:In.exercise)==null?void 0:zr.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()}})})}),Cn.createElement(Lu.Z,{sub_discipline_id:(lo=In==null?void 0:In.exercise)!=null&&lo.sub_discipline_id?[(Do=In==null?void 0:In.exercise)==null?void 0:Do.discipline_id,(Ir=In==null?void 0:In.exercise)==null?void 0:Ir.sub_discipline_id]:[],visible:Uo,onCancel:()=>yl(!1),onOk:kl}),Cn.createElement(Ue.default,{title:"\u63D0\u793A",open:Ui,confirmLoading:!1,centered:!0,okText:"\u8BBE\u7F6E\u89C4\u5219",cancelText:"\u4FEE\u6539\u8BD5\u5377",footer:Cn.createElement("div",null,Cn.createElement(ke.ZP,{onClick:()=>{Gi(!1),Ee.history.back()}},"\u7A0D\u540E\u518D\u8BF4"),Cn.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)}},Cn.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")),Cn.createElement(Ue.default,{centered:!0,title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0",open:Ai,width:500,onOk:()=>tu.submit(),onCancel:()=>Yi(!1)},Cn.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))})},Cn.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,Wr;const ho=(qr=dl==null?void 0:dl.find(Yo=>Yo.nameType==tu.getFieldValue("item_type_en")))==null?void 0:qr.id;return(Wr=(po=(io=In==null?void 0:In.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&&Wr.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()}}]},Cn.createElement(We.default,{size:"large",maxLength:10,showCount:!0})),Cn.createElement(we.default.Item,{hidden:!0,name:"item_type_en"},Cn.createElement(We.default,{size:"large"})))),Cn.createElement(rn.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Nu},Cn.createElement("div",{style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},"\u667A\u80FD\u5BFC\u5165"),Cn.createElement(Hl.Z,{stickyTop:-24,subDisciplineId:(Lo=In==null?void 0:In.exercise)!=null&&Lo.sub_discipline_id?[(Io=In==null?void 0:In.exercise)==null?void 0:Io.discipline_id,(Al=In==null?void 0:In.exercise)==null?void 0:Al.sub_discipline_id]:[],onCancel:()=>Cu(!1),mode:3,gather:{exercise_id:he},onSuccess:()=>{Cu(!1),fo()}}),Cn.createElement("div",{style:{height:70}})),Cn.createElement(gn.Q,{visible:!!yi,setVisible:Yt,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}),Yt(!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,Ua=(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)&&Ua(ie,he,Se[he]);if(Ti)for(var he of Ti(Se))Gr.call(Se,he)&&Ua(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{_t(he.next(it))}catch($t){Bt($t)}},Bn=it=>{try{_t(he.throw(it))}catch($t){Bt($t)}},_t=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,Bn);_t((he=he.apply(ie,Se)).next())});const Au=ie=>{var Se=ie,{classroomList:he,globalSetting:gt,problemset:Bt,loading:Qn,exercise:Bn,user:_t,dispatch:it}=Se,$t=gi(Se,["classroomList","globalSetting","problemset","loading","exercise","user","dispatch"]),ra,Ot,wt,ut,xt,An,cn,Ft,bt,hn,en,Jt,$a,Br;const Za=(0,Ee.useParams)(),[Hr,Un]=(0,b.useState)(!1),{userInfo:zr}=_t,[lo]=we.default.useForm();let[Do,Ir]=(0,b.useState)({});const[Lo,Io]=(0,b.useState)(1),[Al,In]=(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:Za==null?void 0:Za.coursesId}}),it({type:"globalSetting/footerToggle",payload:!1}),lo.setFieldsValue({difficulty:2,courseid:[]})},[]),(0,b.useEffect)(()=>{Za.exerciseId&&ji(void 0,null,function*(){var Vr,Uo,yl;const wl=yield it({type:"exercise/editExercise",payload:{categoryId:Za.exerciseId}});(wl==null?void 0:wl.status)!==-1&&(((Vr=wl==null?void 0:wl.exercise)==null?void 0:Vr.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))})},[Za]),(0,b.useEffect)(()=>{if(Za.exerciseId){let Vr=Bn.editData.exercise;ai(Vr==null?void 0:Vr.set_question_sub_discipline),lo.setFieldsValue(nl(Mr({},Vr),{courseid:Vr!=null&&Vr.sub_discipline_id?[Vr==null?void 0:Vr.discipline_id,Vr==null?void 0:Vr.sub_discipline_id]:[]}))}},[Bn]),(0,b.useEffect)(()=>{fl.get("type")==="2"&&(In(Za.exerciseId),Io(2))},[fl.get("type")]),(0,b.useEffect)(()=>{var Vr;let Uo=(Vr=Bt==null?void 0:Bt.disciplinesData)==null?void 0:Vr.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(Vr,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),Za)});pl.status===0?(yield(0,te.ZP)(`/api/courses/${Za==null?void 0:Za.coursesId}/exercises/notice_at.json`,{method:"POST",body:{course_id:Za==null?void 0:Za.coursesId,id:(yl=pl==null?void 0:pl.data)==null?void 0:yl.exercise_id,time:Vr}}),Xl((wl=pl.data)==null?void 0:wl.exercise_id),In((Ul=pl==null?void 0:pl.data)==null?void 0:Ul.exercise_id),Io(2),ko(!1),Ee.history.replace(`/classrooms/${Za.coursesId}/exercise/add/${(mi=pl.data)==null?void 0:mi.exercise_id}?type=2`)):Be.ZP.error(pl.message),Uo()})}function al(Vr){Ir(Mr({},Vr))}function Xl(Vr){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:Vr},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"},zr&&ja.createElement(Re.Z,{separator:">"},ja.createElement(Re.Z.Item,null,ja.createElement(Ee.Link,{to:`/classrooms/${Za.coursesId}/exercise`},(Ot=zr==null?void 0:zr.course)==null?void 0:Ot.course_name)),ja.createElement(Re.Z.Item,null,ja.createElement(Ee.Link,{to:`/classrooms/${Za.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")),ja.createElement(Re.Z.Item,null,Za.exerciseId?"\u7F16\u8F91\u8BD5\u5377":"\u65B0\u5EFA\u8BD5\u5377")))),Za.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:[Za.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(!Za.exerciseId&&!Al){Be.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u57FA\u7840\u4FE1\u606F\u518D\u65B0\u5EFA\u8BD5\u9898");return}Io(2),!Al&&In(Za.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:(ut=(wt=Bn==null?void 0:Bn.editData)==null?void 0:wt.exercise)==null?void 0:ut.exercise_name,onFinish:Vr=>ji(void 0,null,function*(){var Uo,yl,wl,Ul,mi,cl,Zi,Pi,ui,pl,Ui,Gi;return Vr.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:Vr,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",Vr),!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}},((An=(xt=Bn==null?void 0:Bn.editData)==null?void 0:xt.exercise)==null?void 0:An.time)||"\u4E0D\u9650")),ja.createElement("span",{style:{margin:"0px 30px",color:"#5F6368"}},"\u96BE\u5EA6",ja.createElement("span",{style:{color:"#000000",marginLeft:8}},((Ft=(cn=Bn==null?void 0:Bn.editData)==null?void 0:cn.exercise)==null?void 0:Ft.difficulty)===1?"\u7B80\u5355":((hn=(bt=Bn==null?void 0:Bn.editData)==null?void 0:bt.exercise)==null?void 0:hn.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}},((Jt=(en=Bn==null?void 0:Bn.editData)==null?void 0:en.exercise_types)==null?void 0:Jt.q_counts)||0)),ja.createElement("span",{style:{color:"#5F6368"}},"\u603B\u5206",ja.createElement("span",{style:{color:"#000000",marginLeft:8}},(Br=($a=Bn==null?void 0:Bn.editData)==null?void 0:$a.exercise_types)==null?void 0:Br.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:Vr=>ji(void 0,null,function*(){var Uo,yl,wl,Ul,mi;if(Un(!0),ko(!0),Za.exerciseId){Vr.exerciseId=(yl=(Uo=Bn.editData)==null?void 0:Uo.exercise)==null?void 0:yl.id,Vr.sub_discipline_id=Vr.courseid[Vr.courseid.length-1],yield(0,Si.wy)(nl(Mr({},Vr),{set_question_sub_discipline:Ni})),Io(2),Xl(Za==null?void 0:Za.exerciseId),In(Za.exerciseId),Un(!1),ko(!1);return}const cl=yield(0,te.ZP)(`/api/courses/${Za==null?void 0:Za.coursesId}/exercises/overload_alert.json`,{method:"get",params:{course_id:Za==null?void 0:Za.coursesId}});if(cl!=null&&cl.alert)it({type:"classroomList/setActionTabs",payload:{key:"\u9884\u7EA6\u5F39\u7A97"}});else{const{courseid:Zi}=Vr,[Pi,ui]=Zi;Vr.sub_discipline_id=ui,Vr.is_md=!0,Vr.time=parseInt(Vr.time)>9999?9999:Vr.time,Vr.set_question_sub_discipline=Ni;const pl=yield it({type:"exercise/addExercise",payload:nl(Mr(Mr({},Vr),Za),{category_id:fl.get("catalogue")||null})});pl.status===0&&(Xl((wl=pl.data)==null?void 0:wl.exercise_id),Ee.history.replace(`/classrooms/${Za.coursesId}/exercise/add/${(Ul=pl.data)==null?void 0:Ul.exercise_id}?type=2`),In((mi=pl==null?void 0:pl.data)==null?void 0:mi.exercise_id),Io(2)),ko(!1)}Un(!1)}),className:ze.formWrap},ja.createElement(we.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u540D\u79F0",className:ze.baseLineHeight,rules:[{required:!0,validator:(Vr,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:Vr=>{ai(Vr.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(wn,{exercise_id:Za==null?void 0:Za.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:In,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,Zt,ae){"use strict";ae.d(Zt,{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)),st=(Ge,$e,be)=>new Promise((ft,ct)=>{var yt=xn=>{try{En(be.next(xn))}catch(Wt){ct(Wt)}},Pt=xn=>{try{En(be.throw(xn))}catch(Wt){ct(Wt)}},En=xn=>xn.done?ft(xn.value):Promise.resolve(xn.value).then(yt,Pt);En((be=be.apply(Ge,$e)).next())});const Me=({shixunHomeworks:Ge,exercise:$e,loading:be,dispatch:ft})=>{var ct,yt,Pt;const{commonHeader:En}=$e,[xn,Wt]=(0,De.useState)([]),[St,Te]=(0,De.useState)(Le(Qe({},(0,ke.useParams)()),{page:1,limit:10})),[et,Kt]=(0,De.useState)([]),[wn,Mt]=(0,De.useState)(""),[Xt,Ce]=(0,De.useState)(1),[rt]=b.default.useForm(),[rn,tt]=(0,De.useState)({}),[pt,Xn]=(0,De.useState)(null),[gn,Qt]=(0,De.useState)(!1),[Tt,Vn]=(0,De.useState)([]),[ia,tn]=(0,De.useState)(null),[Ba,_a]=(0,De.useState)(0),[Fa,Tn]=(0,De.useState)(0),[Va,Aa]=(0,De.useState)(!1),vr=[{title:"\u5E8F\u53F7",dataIndex:"1",width:80,render:(Et,jt,Ga)=>(St.page-1)*St.limit+Ga+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,jt)=>y.createElement("div",{className:ue.banding,title:Et||"--"},Et||"--")},{title:"\u63D0\u4EA4\u72B6\u6001",width:200,dataIndex:"commit_status",render:(Et,jt)=>Et===0?y.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):Et===1?y.createElement("span",{style:{color:"#DF3042"}},!jt.is_make_up&&"\u8003\u8BD5\u4E2D",jt.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):Et===2?y.createElement("span",{style:{color:"#5AB891"}},!jt.is_make_up&&!jt.is_force_commit&&"\u5DF2\u4EA4\u5377",jt.is_make_up&&!jt.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",jt.is_make_up&&jt.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!jt.is_make_up&&jt.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):y.createElement("span",{style:{color:"#5AB891"}},!jt.is_make_up&&!jt.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",jt.is_make_up&&!jt.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",jt.is_make_up&&jt.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!jt.is_make_up&&jt.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,jt)=>jt.commit_status===0||jt.commit_status===1?"--":!jt.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"&&(Vn([]),tn(null),ua(),da(St))},[(ct=$e.actionTabs)==null?void 0:ct.key]);const ua=()=>st(void 0,null,function*(){var Et;if(!((Et=$e.actionTabs)!=null&&Et.showSelectQuestion))return;const jt=yield(0,ze.ZP)(`/api/exercises/${St==null?void 0:St.categoryId}/all_subj_questions.json`,{method:"get"});jt.status==0&&Vn(jt.data)}),jn=(Et,jt)=>{St.page=Et,St.limit=jt,Te(Qe({},St)),da(St)},da=Et=>st(void 0,null,function*(){Aa(!0);const jt=yield(0,ze.ZP)(`/api/exercises/${St.categoryId||(St==null?void 0:St.exerciseId)}/exercise_users.json`,{method:"get",params:Et});jt.status==0&&(_a(jt.data.total_count),Te(Le(Qe({},St),{total:jt.data.total_count})),Wt(jt.data.exercise_users),Tn(jt.data.total_score)),Aa(!1)}),Ea=Et=>{St.search=Et,St.page=1,rt.resetFields(),tt({}),Kt([]),Xn(null),Te(Qe({},St)),da(St)},xa=Et=>st(void 0,null,function*(){var jt,Ga;const Ca=Qe({},rn);if(!((jt=Et==null?void 0:Et.content)!=null&&jt.trim())){Ee.ZP.warning("\u8BF7\u8F93\u5165\u7B54\u9898\u5185\u5BB9\uFF01");return}Ca.content=Et==null?void 0:Et.content,Ca.attachment_ids=(Ga=Et==null?void 0:Et.attachment_ids)==null?void 0:Ga.map(Qa=>Qa.response.id),Ja(Ca)}),Ja=Et=>st(void 0,null,function*(){var jt;Qt(!0);const{showSelectQuestion:Ga,ai_review_settings:Ca}=$e.actionTabs,Qa=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:Ga?ia:(jt=$e.actionTabs)==null?void 0:jt.questionId,ai_review_settings:Ca})});if([0,-3].includes(Qa.status)){Qa.status==0&&Ee.ZP.success("\u8BC4\u5206\u6D4B\u8BD5\u6210\u529F\uFF01"),Xn(Qa);const Da=document.querySelector(".modal-ai-pfcs");if(Da){const Ra=Da.querySelector(".ant-modal-body");Ra&&(Ra.scrollTop=Ra.scrollHeight)}}Qt(!1)}),Sn=()=>{ft({type:"exercise/setActionTabs",payload:{key:""}}),Ce(1),ln()},ln=()=>{rt.resetFields(),tt({}),Kt([]),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:((yt=$e.actionTabs)==null?void 0:yt.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(Xt==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");Ja({exercise_user_id:et[0]})}else Xt==2&&rt.submit()}},y.createElement(Be.Z,{spinning:gn,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=>tn(Et)},Tt==null?void 0:Tt.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&&jn(1,10),Ce(Et.target.value),ln()},value:Xt,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"}}]})),Xt==1&&y.createElement(y.Fragment,null,y.createElement("div",{className:"flex justify-between item-center mb10"},y.createElement("div",{style:{fontSize:"14px",color:"#FA6400"}},"\u63D0\u793A\uFF1A","\u53EA\u80FD\u9009\u62E9\u5DF2\u63D0\u4EA4\u8BD5\u5377\u7684\u5B66\u751F\u8FDB\u884C\u8BC4\u5206\u6D4B\u8BD5"),y.createElement(Ke.default.Search,{style:{width:487},size:"large",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:wn,onChange:Et=>Mt(Et.target.value),onSearch:Ea})),y.createElement(Oe.default,{rowSelection:{type:"radio",selectedRowKeys:et,onChange:(Et,jt)=>{Kt(Et)},getCheckboxProps:Et=>({disabled:[0,1].includes(Et==null?void 0:Et.commit_status)})},loading:Va,rowKey:"exercise_user_id",dataSource:xn||[],columns:vr,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:jn},onChange:(Et,jt,Ga)=>{St.page=1,Ga.order===void 0?(St.order_type=null,St.order=null):(St.order_type=Ga.order==="descend"?"desc":"asc",St.order=Ga.field),Te(Qe({},St)),da(St)}})),Xt==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,Zt,ae){"use strict";ae.d(Zt,{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,st]=(0,b.useState)([]);(0,b.useEffect)(()=>{a?Me():(st([]),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||[]),st((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 yt={name:ct.name,uid:ct.uid,file:ct};return oe([yt]),!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,yt)=>{st(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,yt)=>ze.createElement("div",{key:yt,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,Zt,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))))))};Zt.Z=(0,Be.connect)(({exercise:Ke})=>({exercise:Ke}))(xe)},78547:function(ot,Zt,ae){"use strict";ae.d(Zt,{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,Zt,ae){"use strict";ae.d(Zt,{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,Zt,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)}))))};Zt.Z=Ke},76832:function(ot,Zt,ae){"use strict";ae.d(Zt,{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,Zt,ae){"use strict";ae.d(Zt,{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,Zt,ae){"use strict";ae.d(Zt,{Z:function(){return b}});const b=Ee=>Ee?typeof Ee=="function"?Ee():Ee:null},66104:function(ot,Zt,ae){"use strict";ae.d(Zt,{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_),yt=ct("breadcrumb");return Re.createElement("li",{className:`${yt}-separator`,"aria-hidden":"true"},ft===""?ft:ft||"/")};De.__ANT_BREADCRUMB_SEPARATOR=!0;var ke=De,ze=function(be,ft){var ct={};for(var yt in be)Object.prototype.hasOwnProperty.call(be,yt)&&ft.indexOf(yt)<0&&(ct[yt]=be[yt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,yt=Object.getOwnPropertySymbols(be);Ptft[Pt]||yt)}function ue(be,ft,ct,yt){if(ct==null)return null;const{className:Pt,onClick:En}=ft,xn=ze(ft,["className","onClick"]),Wt=Object.assign(Object.assign({},(0,Be.Z)(xn,{data:!0,aria:!0})),{onClick:En});return yt!==void 0?Re.createElement("a",Object.assign({},Wt,{className:Ee()(`${be}-link`,Pt),href:yt}),ct):Re.createElement("span",Object.assign({},Wt,{className:Ee()(`${be}-link`,Pt)}),ct)}function E(be,ft){return(yt,Pt,En,xn,Wt)=>{if(ft)return ft(yt,Pt,En,xn);const St=Ue(yt,Pt);return ue(be,yt,St,Wt)}}var a=function(be,ft){var ct={};for(var yt in be)Object.prototype.hasOwnProperty.call(be,yt)&&ft.indexOf(yt)<0&&(ct[yt]=be[yt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,yt=Object.getOwnPropertySymbols(be);Pt{const{prefixCls:ft,separator:ct="/",children:yt,menu:Pt,overlay:En,dropdownProps:xn,href:Wt}=be,Te=(et=>{if(Pt||En){const Kt=Object.assign({},xn);if(Pt){const wn=Pt||{},{items:Mt}=wn,Xt=a(wn,["items"]);Kt.menu=Object.assign(Object.assign({},Xt),{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 Qt=pt!=null?pt:tt;return Xn&&(Qt=Re.createElement("a",{href:`${Wt}${Xn}`},Qt)),Object.assign(Object.assign({},gn),{key:rn!=null?rn:rt,label:Qt})})})}else En&&(Kt.overlay=En);return Re.createElement(Oe.Z,Object.assign({placement:"bottom"},Kt),Re.createElement("span",{className:`${ft}-overlay-link`},et,Re.createElement(Ke.Z,null)))}return et})(yt);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:yt}=be,Pt=a(be,["prefixCls","children","href"]),{getPrefixCls:En}=Re.useContext(xe.E_),xn=En("breadcrumb",ft);return Re.createElement(x,Object.assign({},Pt,{prefixCls:xn}),ue(xn,Pt,ct,yt))};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":{[` + `]:{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 yt in be)Object.prototype.hasOwnProperty.call(be,yt)&&ft.indexOf(yt)<0&&(ct[yt]=be[yt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,yt=Object.getOwnPropertySymbols(be);Pt{var{breadcrumbName:xn}=En,Wt=Fe(En,["breadcrumbName"]);return Object.assign(Object.assign({},Wt),{title:xn})})}),Pt}function Le(be,ft){return(0,Re.useMemo)(()=>be||(ft?ft.map(Qe):null),[be,ft])}var st=function(be,ft){var ct={};for(var yt in be)Object.prototype.hasOwnProperty.call(be,yt)&&ft.indexOf(yt)<0&&(ct[yt]=be[yt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,yt=Object.getOwnPropertySymbols(be);Pt{if(ft===void 0)return ft;let ct=(ft||"").replace(/^\//,"");return Object.keys(be).forEach(yt=>{ct=ct.replace(`:${yt}`,be[yt])}),ct},Ye=be=>{const{prefixCls:ft,separator:ct="/",style:yt,className:Pt,rootClassName:En,routes:xn,items:Wt,children:St,itemRender:Te,params:et={}}=be,Kt=st(be,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:wn,direction:Mt,breadcrumb:Xt}=Re.useContext(xe.E_);let Ce;const rt=wn("breadcrumb",ft),[rn,tt]=Pe(rt),pt=Le(Wt,xn),Xn=E(rt,Te);if(pt&&pt.length>0){const Tt=[],Vn=Wt||xn;Ce=pt.map((ia,tn)=>{const{path:Ba,key:_a,type:Fa,menu:Tn,overlay:Va,onClick:Aa,className:vr,separator:ua,dropdownProps:jn}=ia,da=Me(et,Ba);da!==void 0&&Tt.push(da);const Ea=_a!=null?_a:tn;if(Fa==="separator")return Re.createElement(ke,{key:Ea},ua);const xa={},Ja=tn===pt.length-1;Tn?xa.menu=Tn:Va&&(xa.overlay=Va);let{href:Sn}=ia;return Tt.length&&da!==void 0&&(Sn=`#/${Tt.join("/")}`),Re.createElement(x,Object.assign({key:Ea},xa,(0,Be.Z)(ia,{data:!0,aria:!0}),{className:vr,dropdownProps:jn,href:Sn,separator:Ja?"":ct,onClick:Aa,prefixCls:rt}),Xn(ia,et,Vn,Tt,Sn))})}else if(St){const Tt=(0,we.Z)(St).length;Ce=(0,we.Z)(St).map((Vn,ia)=>{if(!Vn)return Vn;const tn=ia===Tt-1;return(0,We.Tm)(Vn,{separator:tn?"":ct,key:ia})})}const gn=Ee()(rt,Xt==null?void 0:Xt.className,{[`${rt}-rtl`]:Mt==="rtl"},Pt,En,tt),Qt=Object.assign(Object.assign({},Xt==null?void 0:Xt.style),yt);return rn(Re.createElement("nav",Object.assign({className:gn,style:Qt},Kt),Re.createElement("ol",null,Ce)))};Ye.Item=z,Ye.Separator=ke;var Ge=Ye,$e=Ge},19842:function(ot,Zt,ae){"use strict";ae.d(Zt,{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(Rt,qt,vn){var kt=vn.label;return qt.some(function(Wn){return String(Wn[kt]).toLowerCase().includes(Rt.toLowerCase())})},le=function(Rt,qt,vn,kt){return qt.map(function(Wn){return Wn[kt.label]}).join(" / ")},Pe=function(Ze,Rt,qt,vn,kt,Wn){var _n=kt.filter,Je=_n===void 0?se:_n,nt=kt.render,Xe=nt===void 0?le:nt,on=kt.limit,bn=on===void 0?50:on,Nn=kt.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(zt){if(!(!Nn&&bn!==!1&&bn>0&&wa.length>=bn)){var Ma=[].concat((0,b.Z)(ya),[zt]),hr=zt[qt.children],So=qn||zt.disabled;if((!hr||hr.length===0||Wn)&&Je(Ze,Ma,{label:qt.label})){var er;wa.push((0,te.Z)((0,te.Z)({},zt),{},(er={disabled:So},(0,z.Z)(er,qt.label,Xe(Ze,Ma,vn,qt)),(0,z.Z)(er,oe,Ma),(0,z.Z)(er,qt.children,void 0),er)))}hr&&pa(zt[qt.children],Ma,So)}})}return pa(Rt,[]),Nn&&wa.sort(function(ta,ya){return Nn(ta[oe],ya[oe],Ze,qt)}),bn!==!1&&bn>0?wa.slice(0,bn):wa},[Ze,Rt,qt,vn,Xe,Wn,Je,Nn,bn])},Fe="__RC_CASCADER_SPLIT__",Qe="SHOW_PARENT",Le="SHOW_CHILD";function st(Ze){return Ze.join(Fe)}function Me(Ze){return Ze.map(st)}function Ye(Ze){return Ze.split(Fe)}function Ge(Ze){var Rt=Ze||{},qt=Rt.label,vn=Rt.value,kt=Rt.children,Wn=vn||"value";return{label:qt||"label",value:Wn,key:Wn,children:kt||"children"}}function $e(Ze,Rt){var qt,vn;return(qt=Ze.isLeaf)!==null&&qt!==void 0?qt:!((vn=Ze[Rt.children])!==null&&vn!==void 0&&vn.length)}function be(Ze){var Rt=Ze.parentElement;if(Rt){var qt=Ze.offsetTop-Rt.offsetTop;qt-Rt.scrollTop<0?Rt.scrollTo({top:qt}):qt+Ze.offsetHeight-Rt.scrollTop>Rt.offsetHeight&&Rt.scrollTo({top:qt+Ze.offsetHeight-Rt.offsetHeight})}}function ft(Ze,Rt){return Ze.map(function(qt){var vn;return(vn=qt[oe])===null||vn===void 0?void 0:vn.map(function(kt){return kt[Rt.value]})})}function ct(Ze,Rt,qt){var vn=new Set(Ze),kt=Rt();return Ze.filter(function(Wn){var _n=kt[Wn],Je=_n?_n.parent:null,nt=_n?_n.children:null;return _n&&_n.node.disabled?!0:qt===Le?!(nt&&nt.some(function(Xe){return Xe.key&&vn.has(Xe.key)})):!(Je&&!Je.node.disabled&&vn.has(Je.key))})}function yt(Ze,Rt,qt){for(var vn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,kt=Rt,Wn=[],_n=function(){var Xe,on,bn,Nn=Ze[Je],wa=(Xe=kt)===null||Xe===void 0?void 0:Xe.findIndex(function(ta){var ya=ta[qt.value];return vn?String(ya)===String(Nn):ya===Nn}),pa=wa!==-1?(on=kt)===null||on===void 0?void 0:on[wa]:null;Wn.push({value:(bn=pa==null?void 0:pa[qt.value])!==null&&bn!==void 0?bn:Nn,index:wa,option:pa}),kt=pa==null?void 0:pa[qt.children]},Je=0;Je1){var Ht=pa.slice(0,-1);zt(Ht)}else Xe(!1)},So=function(){var Ht,$r=((Ht=ya[ta])===null||Ht===void 0?void 0:Ht[qt.children])||[],Ya=$r.find(function(ur){return!ur.disabled});if(Ya){var Pr=[].concat((0,b.Z)(pa),[Ya[qt.value]]);zt(Pr)}};Ee.useImperativeHandle(Ze,function(){return{onKeyDown:function(Ht){var $r=Ht.which;switch($r){case rt.Z.UP:case rt.Z.DOWN:{var Ya=0;$r===rt.Z.UP?Ya=-1:$r===rt.Z.DOWN&&(Ya=1),Ya!==0&&Ma(Ya);break}case rt.Z.LEFT:{if(nt)break;bn?So():hr();break}case rt.Z.RIGHT:{if(nt)break;bn?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(Yr){return Yr[qt.value]}),ur[ur.length-1]):Wn(pa,ya[ta])}break}case rt.Z.ESC:Xe(!1),on&&Ht.stopPropagation()}},onKeyUp:function(){}}})},tt=Ee.forwardRef(function(Ze,Rt){var qt,vn,kt,Wn,_n=(0,ke.lk)(),Je=_n.prefixCls,nt=_n.multiple,Xe=_n.searchValue,on=_n.toggleOpen,bn=_n.notFoundContent,Nn=_n.direction,wa=_n.open,pa=Ee.useRef(),ta=Nn==="rtl",ya=Ee.useContext(x),qn=ya.options,zt=ya.values,Ma=ya.halfValues,hr=ya.fieldNames,So=ya.changeOnSelect,er=ya.onSelect,Ht=ya.searchOptions,$r=ya.dropdownPrefixCls,Ya=ya.loadData,Pr=ya.expandTrigger,ur=$r||Je,Yr=Ee.useState([]),Nr=(0,Oe.Z)(Yr,2),ro=Nr[0],Tr=Nr[1],ca=function(Or){if(!(!Ya||Xe)){var Ao=yt(Or,qn,hr),Xa=Ao.map(function(Er){var no=Er.option;return no}),Kr=Xa[Xa.length-1];if(Kr&&!$e(Kr,hr)){var to=st(Or);Tr(function(Er){return[].concat((0,b.Z)(Er),[to])}),Ya(Xa)}}};Ee.useEffect(function(){ro.length&&ro.forEach(function(Dr){var Or=Ye(Dr),Ao=yt(Or,qn,hr,!0).map(function(Kr){var to=Kr.option;return to}),Xa=Ao[Ao.length-1];(!Xa||Xa[hr.children]||$e(Xa,hr))&&Tr(function(Kr){return Kr.filter(function(to){return to!==Dr})})})},[qn,ro,hr]);var nn=Ee.useMemo(function(){return new Set(Me(zt))},[zt]),mr=Ee.useMemo(function(){return new Set(Me(Ma))},[Ma]),ga=Ce(),sr=(0,Oe.Z)(ga,2),Wa=sr[0],pn=sr[1],na=function(Or){pn(Or),ca(Or)},La=function(Or){var Ao=Or.disabled,Xa=$e(Or,hr);return!Ao&&(Xa||So||nt)},Jn=function(Or,Ao){var Xa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;er(Or),!nt&&(Ao||So&&(Pr==="hover"||Xa))&&on(!1)},dr=Ee.useMemo(function(){return Xe?Ht:qn},[Xe,Ht,qn]),nr=Ee.useMemo(function(){for(var Dr=[{options:dr}],Or=dr,Ao=ft(Or,hr),Xa=function(){var no=Wa[Kr],Dt=Or.find(function(ht,Rn){return(Ao[Rn]?st(Ao[Rn]):ht[hr.value])===no}),At=Dt==null?void 0:Dt[hr.children];if(!(At!=null&&At.length))return"break";Or=At,Dr.push({options:At})},Kr=0;Kr":ro,ca=Ze.loadingIcon,nn=Ze.children,mr=Ze.dropdownMatchSelectWidth,ga=mr===void 0?!1:mr,sr=Ze.showCheckedStrategy,Wa=sr===void 0?Qe:sr,pn=(0,De.Z)(Ze,Tt),na=(0,ze.ZP)(qt),La=!!bn,Jn=(0,E.Z)(_n,{value:Je,postState:ia}),dr=(0,Oe.Z)(Jn,2),nr=dr[0],yr=dr[1],eo=Ee.useMemo(function(){return Ge(Wn)},[JSON.stringify(Wn)]),fr=Ee.useMemo(function(){return zt||[]},[zt]),_o=xn(fr,eo),Ro=Ee.useCallback(function(Dn){var Gn=_o();return Dn.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||""}}),Dr=(0,Oe.Z)(Fl,2),Or=Dr[0],Ao=Dr[1],Xa=function(Gn,me){Ao(Gn),me.source!=="blur"&&ta&&ta(Gn)},Kr=Te(ya),to=(0,Oe.Z)(Kr,2),Er=to[0],no=to[1],Dt=Pe(Or,fr,eo,Ma||kt,no,nt),At=Wt(fr,eo),ht=Ee.useMemo(function(){var Dn=At(nr),Gn=(0,Oe.Z)(Dn,2),me=Gn[0],mt=Gn[1];if(!La||!nr.length)return[me,[],mt];var Ct=Me(me),sn=_o(),vt=(0,Ue.S)(Ct,!0,sn),Ln=vt.checkedKeys,yn=vt.halfCheckedKeys;return[Ro(Ln),Ro(yn),mt]},[La,nr,_o,Ro,At]),Rn=(0,Oe.Z)(ht,3),Ha=Rn[0],rr=Rn[1],Pn=Rn[2],tr=Ee.useMemo(function(){var Dn=Me(Ha),Gn=ct(Dn,_o,Wa);return[].concat((0,b.Z)(Pn),(0,b.Z)(Ro(Gn)))},[Ha,_o,Ro,Pn,Wa]),qa=Pt(tr,fr,eo,La,on),oo=(0,ue.Z)(function(Dn){if(yr(Dn),Xe){var Gn=ia(Dn),me=Gn.map(function(sn){return yt(sn,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(Dn){if((!La||wa)&&Ao(""),!La)oo(Dn);else{var Gn=st(Dn),me=Me(Ha),mt=Me(rr),Ct=me.includes(Gn),sn=Pn.some(function(ma){return st(ma)===Gn}),vt=Ha,Ln=Pn;if(sn&&!Ct)Ln=Pn.filter(function(ma){return st(ma)!==Gn});else{var yn=Ct?me.filter(function(ma){return ma!==Gn}):[].concat((0,b.Z)(me),[Gn]),fn=_o(),Fn;if(Ct){var Ia=(0,Ue.S)(yn,{checked:!1,halfCheckedKeys:mt},fn);Fn=Ia.checkedKeys}else{var gr=(0,Ue.S)(yn,!0,fn);Fn=gr.checkedKeys}var br=ct(Fn,_o,Wa);vt=Ro(br)}oo([].concat((0,b.Z)(Ln),(0,b.Z)(vt)))}}),za=function(Gn,me){if(me.type==="clear"){oo([]);return}var mt=me.values[0],Ct=mt.valueCells;cr(Ct)},Lr=er!==void 0?er:So,bo=$r||Ht,rl=ur||Pr,jr=function(Gn){Yr==null||Yr(Gn),Nr==null||Nr(Gn)},yo=Ee.useMemo(function(){return{options:fr,fieldNames:eo,values:Ha,halfValues:rr,changeOnSelect:nt,onSelect:cr,checkable:bn,searchOptions:Dt,dropdownPrefixCls:Ma,loadData:hr,expandTrigger:qn,expandIcon:Tr,loadingIcon:ca,dropdownMenuColumnStyle:Ya}},[fr,eo,Ha,rr,nt,cr,bn,Dt,Ma,hr,qn,Tr,ca,Ya]),To=!(Or?Dt: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:Rt,id:na,prefixCls:kt,autoClearSearchValue:wa,dropdownMatchSelectWidth:ga,dropdownStyle:sa,displayValues:qa,onDisplayValuesChange:za,mode:La?"multiple":void 0,searchValue:Or,onSearch:Xa,showSearch:Er,OptionList:pt,emptyOptions:To,open:Lr,dropdownClassName:bo,placement:rl,onDropdownVisibleChange:jr,getRawInputElement:function(){return nn}})))});tn.SHOW_PARENT=Qe,tn.SHOW_CHILD=Le;var Ba=tn,_a=Ba,Fa=ae(2738),Tn=ae(62892),Va=ae(53487),Aa=ae(19080),vr=ae(36355),ua=ae(93891),jn=ae(1684),da=ae(19716),Ea=ae(32441),xa=ae(14154),Ja=ae(58582),Sn=ae(84443),ln=ae(66339),Et=ae(33234),jt=ae(98447),Ga=ae(17313),Ca=ae(74207),Qa=ae(83116);const Da=Ze=>{const{prefixCls:Rt,componentCls:qt,antCls:vn}=Ze,kt=`${qt}-menu-item`,Wn=` + &${kt}-expand ${kt}-expand-icon, + ${kt}-loading-icon + `;return[{[qt]:{width:Ze.controlWidth}},{[`${qt}-dropdown`]:[(0,jt.C2)(`${Rt}-checkbox`,Ze),{[`&${vn}-select-dropdown`]:{padding:0}},{[qt]:{"&-checkbox":{top:0,marginInlineEnd:Ze.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${qt}-menu-empty`]:{[`${qt}-menu`]:{width:"100%",height:"auto",[kt]:{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({},Ga.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(${kt}-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}})}}}]},{[`${qt}-dropdown-rtl`]:{direction:"rtl"}},(0,Ca.c)(Ze)]};var Ra=(0,Qa.Z)("Cascader",Ze=>[Da(Ze)],Ze=>{const Rt=Math.round((Ze.controlHeight-Ze.fontSize*Ze.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Ze.controlItemBgActive,optionSelectedFontWeight:Ze.fontWeightStrong,optionPadding:`${Rt}px ${Ze.paddingSM}px`,menuPadding:Ze.paddingXXS}}),wr=function(Ze,Rt){var qt={};for(var vn in Ze)Object.prototype.hasOwnProperty.call(Ze,vn)&&Rt.indexOf(vn)<0&&(qt[vn]=Ze[vn]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,vn=Object.getOwnPropertySymbols(Ze);ktnt===0?[Je]:[].concat((0,b.Z)(_n),[Rt,Je]),[]),kt=[];let Wn=0;return vn.forEach((_n,Je)=>{const nt=Wn+_n.length;let Xe=Ze.slice(Wn,nt);Wn=nt,Je%2===1&&(Xe=Ee.createElement("span",{className:`${qt}-menu-item-keyword`,key:`separator-${Je}`},Xe)),kt.push(Xe)}),kt}const Ut=(Ze,Rt,qt,vn)=>{const kt=[],Wn=Ze.toLowerCase();return Rt.forEach((_n,Je)=>{Je!==0&&kt.push(" / ");let nt=_n[vn.label];const Xe=typeof nt;(Xe==="string"||Xe==="number")&&(nt=Mo(String(nt),Wn,qt)),kt.push(nt)}),kt},Yn=Ee.forwardRef((Ze,Rt)=>{const{prefixCls:qt,size:vn,disabled:kt,className:Wn,rootClassName:_n,multiple:Je,bordered:nt=!0,transitionName:Xe,choiceTransitionName:on="",popupClassName:bn,dropdownClassName:Nn,expandIcon:wa,placement:pa,showSearch:ta,allowClear:ya=!0,notFoundContent:qn,direction:zt,getPopupContainer:Ma,status:hr,showArrow:So,builtinPlacements:er,style:Ht}=Ze,$r=wr(Ze,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Ya=(0,Fa.Z)($r,["suffixIcon"]),{getPopupContainer:Pr,getPrefixCls:ur,renderEmpty:Yr,direction:Nr,popupOverflow:ro,cascader:Tr}=Ee.useContext(vr.E_),ca=zt||Nr,nn=ca==="rtl",{status:mr,hasFeedback:ga,isFormItemInput:sr,feedbackIcon:Wa}=Ee.useContext(Ea.aM),pn=(0,Aa.F)(mr,hr),na=qn||(Yr==null?void 0:Yr("Cascader"))||Ee.createElement(ua.Z,{componentName:"Cascader"}),La=ur(),Jn=ur("select",qt),dr=ur("cascader",qt),[nr,yr]=(0,xa.Z)(Jn),[eo]=Ra(dr),{compactSize:fr,compactItemClassnames:_o}=(0,Et.ri)(Jn,zt),Ro=xe()(bn||Nn,`${dr}-dropdown`,{[`${dr}-dropdown-rtl`]:ca==="rtl"},_n,yr),Fl=Ee.useMemo(()=>{if(!ta)return ta;let Pn={render:Ut};return typeof ta=="object"&&(Pn=Object.assign(Object.assign({},Pn),ta)),Pn},[ta]),Dr=(0,da.Z)(Pn=>{var tr;return(tr=vn!=null?vn:fr)!==null&&tr!==void 0?tr:Pn}),Or=Ee.useContext(jn.Z),Ao=kt!=null?kt:Or;let Xa=wa;wa||(Xa=nn?Ee.createElement(we.Z,null):Ee.createElement(Re.Z,null));const Kr=Ee.createElement("span",{className:`${Jn}-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,Sn.Z)(Ze.suffixIcon,So),{suffixIcon:no,removeIcon:Dt,clearIcon:At}=(0,ln.Z)(Object.assign(Object.assign({},Ze),{hasFeedback:ga,feedbackIcon:Wa,showSuffixIcon:Er,multiple:Je,prefixCls:Jn,componentName:"Cascader"})),ht=Ee.useMemo(()=>pa!==void 0?pa:nn?"bottomRight":"bottomLeft",[pa,nn]),Rn=(0,Ja.Z)(er,ro),Ha=ya===!0?{clearIcon:At}:ya,rr=Ee.createElement(_a,Object.assign({prefixCls:Jn,className:xe()(!qt&&dr,{[`${Jn}-lg`]:Dr==="large",[`${Jn}-sm`]:Dr==="small",[`${Jn}-rtl`]:nn,[`${Jn}-borderless`]:!nt,[`${Jn}-in-form-item`]:sr},(0,Aa.Z)(Jn,pn,ga),_o,Tr==null?void 0:Tr.className,Wn,_n,yr),disabled:Ao,style:Object.assign(Object.assign({},Tr==null?void 0:Tr.style),Ht)},Ya,{builtinPlacements:Rn,direction:ca,placement:ht,notFoundContent:na,allowClear:Ha,showSearch:Fl,expandIcon:Xa,suffixIcon:no,removeIcon:Dt,loadingIcon:Kr,checkable:to,dropdownClassName:Ro,dropdownPrefixCls:qt||dr,choiceTransitionName:(0,Tn.m)(La,"",on),transitionName:(0,Tn.m)(La,"slide-up",Xe),getPopupContainer:Ma||Pr,ref:Rt}));return eo(nr(rr))}),$n=(0,Va.Z)(Yn);Yn.SHOW_PARENT=kr,Yn.SHOW_CHILD=ar,Yn._InternalPanelDoNotUseOrYouWillBeFired=$n;var ba=Yn},36381:function(ot,Zt,ae){"use strict";ae.d(Zt,{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,Qt=tt.className,Tt=tt.style,Vn=tt.children,ia=tt.isActive,tn=tt.role,Ba=De.useState(ia||gn),_a=(0,We.Z)(Ba,2),Fa=_a[0],Tn=_a[1];return De.useEffect(function(){(gn||ia)&&Tn(!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),Qt),style:Tt,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,Qt=tt.headerClass,Tt=tt.isActive,Vn=tt.onItemClick,ia=tt.forceRender,tn=tt.className,Ba=tt.prefixCls,_a=tt.collapsible,Fa=tt.accordion,Tn=tt.panelKey,Va=tt.extra,Aa=tt.header,vr=tt.expandIcon,ua=tt.openMotion,jn=tt.destroyInactivePanel,da=tt.children,Ea=(0,ke.Z)(tt,y),xa=_a==="disabled",Ja=_a==="header",Sn=_a==="icon",ln=Va!=null&&typeof Va!="boolean",Et=function(){Vn==null||Vn(Tn)},jt=function(wr){(wr.key==="Enter"||wr.keyCode===E.Z.ENTER||wr.which===E.Z.ENTER)&&Et()},Ga=typeof vr=="function"?vr(tt):De.createElement("i",{className:"arrow"});Ga&&(Ga=De.createElement("div",{className:"".concat(Ba,"-expand-icon"),onClick:["header","icon"].includes(_a)?Et:void 0},Ga));var Ca=we()((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(Ba,"-item"),!0),"".concat(Ba,"-item-active"),Tt),"".concat(Ba,"-item-disabled"),xa),tn),Qa=we()(Qt,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(Ba,"-header"),!0),"".concat(Ba,"-header-collapsible-only"),Ja),"".concat(Ba,"-icon-collapsible-only"),Sn)),Da={className:Qa,"aria-expanded":Tt,"aria-disabled":xa,onKeyDown:jt};return!Ja&&!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,gn&&Ga,De.createElement("span",{className:"".concat(Ba,"-header-text"),onClick:_a==="header"?Et:void 0},Aa),ln&&De.createElement("div",{className:"".concat(Ba,"-extra")},Va)),De.createElement(ue.default,(0,Be.Z)({visible:Tt,leavedClassName:"".concat(Ba,"-content-hidden")},ua,{forceRender:ia,removeOnLeave:jn}),function(Ra,wr){var ar=Ra.className,kr=Ra.style;return De.createElement(x,{ref:wr,prefixCls:Ba,className:ar,style:kr,isActive:Tt,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,Qt=Xn.accordion,Tt=Xn.collapsible,Vn=Xn.destroyInactivePanel,ia=Xn.onItemClick,tn=Xn.activeKey,Ba=Xn.openMotion,_a=Xn.expandIcon;return pt.map(function(Fa,Tn){var Va=Fa.children,Aa=Fa.label,vr=Fa.key,ua=Fa.collapsible,jn=Fa.onItemClick,da=Fa.destroyInactivePanel,Ea=(0,ke.Z)(Fa,oe),xa=String(vr!=null?vr:Tn),Ja=ua!=null?ua:Tt,Sn=da!=null?da:Vn,ln=function(Ga){Ja!=="disabled"&&(ia(Ga),jn==null||jn(Ga))},Et=!1;return Qt?Et=tn[0]===xa:Et=tn.indexOf(xa)>-1,De.createElement(te,(0,Be.Z)({},Ea,{prefixCls:gn,key:xa,panelKey:xa,isActive:Et,accordion:Qt,openMotion:Ba,expandIcon:_a,header:Aa,collapsible:Ja,onItemClick:ln,destroyInactivePanel:Sn}),Va)})},le=function(pt,Xn,gn){if(!pt)return null;var Qt=gn.prefixCls,Tt=gn.accordion,Vn=gn.collapsible,ia=gn.destroyInactivePanel,tn=gn.onItemClick,Ba=gn.activeKey,_a=gn.openMotion,Fa=gn.expandIcon,Tn=pt.key||String(Xn),Va=pt.props,Aa=Va.header,vr=Va.headerClass,ua=Va.destroyInactivePanel,jn=Va.collapsible,da=Va.onItemClick,Ea=!1;Tt?Ea=Ba[0]===Tn:Ea=Ba.indexOf(Tn)>-1;var xa=jn!=null?jn:Vn,Ja=function(Et){xa!=="disabled"&&(tn(Et),da==null||da(Et))},Sn={key:Tn,panelKey:Tn,header:Aa,headerClass:vr,isActive:Ea,prefixCls:Qt,destroyInactivePanel:ua!=null?ua:ia,openMotion:_a,accordion:Tt,children:pt.props.children,onItemClick:Ja,expandIcon:Fa,collapsible:xa};return typeof pt.type=="string"?pt:(Object.keys(Sn).forEach(function(ln){typeof Sn[ln]=="undefined"&&delete Sn[ln]}),De.cloneElement(pt,Sn))};function Pe(tt,pt,Xn){return Array.isArray(tt)?se(tt,Xn):(0,ze.Z)(pt).map(function(gn,Qt){return le(gn,Qt,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 st=De.forwardRef(function(tt,pt){var Xn=tt.prefixCls,gn=Xn===void 0?"rc-collapse":Xn,Qt=tt.destroyInactivePanel,Tt=Qt===void 0?!1:Qt,Vn=tt.style,ia=tt.accordion,tn=tt.className,Ba=tt.children,_a=tt.collapsible,Fa=tt.openMotion,Tn=tt.expandIcon,Va=tt.activeKey,Aa=tt.defaultActiveKey,vr=tt.onChange,ua=tt.items,jn=we()(gn,tn),da=(0,Ke.Z)([],{value:Va,onChange:function(jt){return vr==null?void 0:vr(jt)},defaultValue:Aa,postState:Le}),Ea=(0,We.Z)(da,2),xa=Ea[0],Ja=Ea[1],Sn=function(jt){return Ja(function(){if(ia)return xa[0]===jt?[]:[jt];var Ga=xa.indexOf(jt),Ca=Ga>-1;return Ca?xa.filter(function(Qa){return Qa!==jt}):[].concat((0,Re.Z)(xa),[jt])})};(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:Tn,collapsible:_a,destroyInactivePanel:Tt,onItemClick:Sn,activeKey:xa});return De.createElement("div",(0,Be.Z)({ref:pt,className:jn,style:Vn,role:ia?"tablist":void 0},(0,Qe.Z)(tt,{aria:!0,data:!0})),ln)}),Me=Object.assign(st,{Panel:te}),Ye=Me,Ge=Me.Panel,$e=ae(2738),be=ae(62892),ft=ae(92343),ct=ae(36355),yt=ae(19716),En=De.forwardRef((tt,pt)=>{const{getPrefixCls:Xn}=De.useContext(ct.E_),{prefixCls:gn,className:Qt,showArrow:Tt=!0}=tt,Vn=Xn("collapse",gn),ia=we()({[`${Vn}-no-arrow`]:!Tt},Qt);return De.createElement(Ye.Panel,Object.assign({ref:pt},tt,{prefixCls:Vn,className:ia}))}),xn=ae(17313),Wt=ae(8378),St=ae(83116),Te=ae(37613);const et=tt=>{const{componentCls:pt,contentBg:Xn,padding:gn,headerBg:Qt,headerPadding:Tt,collapseHeaderPaddingSM:Vn,collapseHeaderPaddingLG:ia,collapsePanelBorderRadius:tn,lineWidth:Ba,lineType:_a,colorBorder:Fa,colorText:Tn,colorTextHeading:Va,colorTextDisabled:Aa,fontSize:vr,fontSizeLG:ua,lineHeight:jn,marginSM:da,paddingSM:Ea,paddingLG:xa,paddingXS:Ja,motionDurationSlow:Sn,fontSizeIcon:ln,contentPadding:Et}=tt,jt=`${Ba}px ${_a} ${Fa}`;return{[pt]:Object.assign(Object.assign({},(0,xn.Wf)(tt)),{backgroundColor:Qt,border:jt,borderBottom:0,borderRadius:`${tn}px`,"&-rtl":{direction:"rtl"},[`& > ${pt}-item`]:{borderBottom:jt,"&:last-child":{[` &, - & > ${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}-header`]:{borderRadius:`0 0 ${tn}px ${tn}px`}},[`> ${pt}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:Tt,color:Va,lineHeight:jn,cursor:"pointer",transition:`all ${Sn}, visibility 0s`,[`> ${pt}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${pt}-expand-icon`]:{height:vr*jn,display:"flex",alignItems:"center",paddingInlineEnd:da},[`${pt}-arrow`]:Object.assign(Object.assign({},(0,xn.Ro)()),{fontSize:ln,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:Tn,backgroundColor:Xn,borderTop:jt,[`& > ${pt}-content-box`]:{padding:Et},"&-hidden":{display:"none"}},"&-small":{[`> ${pt}-item`]:{[`> ${pt}-header`]:{padding:Vn,paddingInlineStart:Ja,[`> ${pt}-expand-icon`]:{marginInlineStart:Ea-Ja}},[`> ${pt}-content > ${pt}-content-box`]:{padding:Ea}}},"&-large":{[`> ${pt}-item`]:{fontSize:ua,[`> ${pt}-header`]:{padding:ia,paddingInlineStart:gn,[`> ${pt}-expand-icon`]:{height:ua*jn,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}}}}})}},Kt=tt=>{const{componentCls:pt}=tt,Xn=`> ${pt}-item > ${pt}-header ${pt}-arrow svg`;return{[`${pt}-rtl`]:{[Xn]:{transform:"rotate(180deg)"}}}},wn=tt=>{const{componentCls:pt,headerBg:Xn,paddingXXS:gn,colorBorder:Qt}=tt;return{[`${pt}-borderless`]:{backgroundColor:Xn,border:0,[`> ${pt}-item`]:{borderBottom:`1px solid ${Qt}`},[` > ${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: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}, + `]:{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 Xt=(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),wn(pt),Mt(pt),Kt(pt),(0,Wt.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:Qt}=De.useContext(ct.E_),{prefixCls:Tt,className:Vn,rootClassName:ia,style:tn,bordered:Ba=!0,ghost:_a,size:Fa,expandIconPosition:Tn="start",children:Va,expandIcon:Aa}=tt,vr=(0,yt.Z)(jt=>{var Ga;return(Ga=Fa!=null?Fa:jt)!==null&&Ga!==void 0?Ga:"middle"}),ua=Xn("collapse",Tt),jn=Xn(),[da,Ea]=Xt(ua),xa=De.useMemo(()=>Tn==="left"?"start":Tn==="right"?"end":Tn,[Tn]),Ja=function(){let jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Ga=Aa?Aa(jt):De.createElement(b.Z,{rotate:jt.isActive?90:void 0});return(0,ft.Tm)(Ga,()=>({className:we()(Ga.props.className,`${ua}-arrow`)}))},Sn=we()(`${ua}-icon-position-${xa}`,{[`${ua}-borderless`]:!Ba,[`${ua}-rtl`]:gn==="rtl",[`${ua}-ghost`]:!!_a,[`${ua}-${vr}`]:vr!=="middle"},Qt==null?void 0:Qt.className,Vn,ia,Ea),ln=Object.assign(Object.assign({},(0,be.Z)(jn)),{motionAppear:!1,leavedClassName:`${ua}-content-hidden`}),Et=De.useMemo(()=>Va?(0,ze.Z)(Va).map((jt,Ga)=>{var Ca,Qa;if(!((Ca=jt.props)===null||Ca===void 0)&&Ca.disabled){const Da=(Qa=jt.key)!==null&&Qa!==void 0?Qa:String(Ga),{disabled:Ra,collapsible:wr}=jt.props,ar=Object.assign(Object.assign({},(0,$e.Z)(jt.props,["disabled"])),{key:Da,collapsible:wr!=null?wr:Ra?"disabled":void 0});return(0,ft.Tm)(jt,ar)}return jt}):null,[Va]);return da(De.createElement(Ye,Object.assign({ref:pt,openMotion:ln},(0,$e.Z)(tt,["rootClassName"]),{expandIcon:Ja,prefixCls:ua,className:Sn,style:Object.assign(Object.assign({},Qt==null?void 0:Qt.style),tn)}),Et))}),{Panel:En}),rn=rt},5083:function(ot,Zt,ae){"use strict";ae.d(Zt,{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(dt){var at=(dt||"").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),dt=0;dt1&&(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 Ja(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 dt=function(Mn,Lt,un){for(var kn=Lt;kn<=un;){var oa=void 0;switch(Mn){case"date":{if(oa=Ie.setDate(ge,kn),!Ne(oa))return!1;break}case"month":{if(oa=Ie.setMonth(ge,kn),!Sn({cellDate:oa,mode:"month",generateConfig:Ie,disabledDate:Ne}))return!1;break}case"year":{if(oa=Ie.setYear(ge,kn),!Sn({cellDate:oa,mode:"year",generateConfig:Ie,disabledDate:Ne}))return!1;break}}kn+=1}return!0};switch(fe){case"date":case"week":return Ne(ge);case"month":{var at=1,Nt=Ie.getDate(Ie.getEndDate(ge));return dt("date",at,Nt)}case"quarter":{var It=Math.floor(Ie.getMonth(ge)/3)*3,an=It+2;return dt("month",It,an)}case"year":return dt("month",0,11);case"decade":{var Kn=Ie.getYear(ge),Vt=Math.floor(Kn/Qt)*Qt,mn=Vt+Qt-1;return dt("year",Vt,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 dt="",at=[],Nt=0;Nt1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(an.current),kn){It(un);return}an.current=requestAnimationFrame(function(){It(un)})}var Vt=ln(Nt,{formatList:fe,generateConfig:Ne,locale:Ie}),mn=(0,rn.Z)(Vt,2),On=mn[1];function Mn(un){Kn(un)}function Lt(){var un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Kn(null,un)}return(0,le.useEffect)(function(){Lt(!0)},[ce]),(0,le.useEffect)(function(){return function(){return cancelAnimationFrame(an.current)}},[]),[On,Mn,Lt]}var jt=ae(10228),Ga=ae(16089),Ca=ae(77654),Qa=ae(29194),Da=new Map;function Ra(ce,ge){var fe;function Ne(){(0,Qa.Z)(ce)?ge():fe=(0,Ga.Z)(function(){Ne()})}return Ne(),function(){Ga.Z.cancel(fe)}}function wr(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&&wr(ce,ge,fe-10)}))}function ar(ce,ge){var fe=ge.onLeftRight,Ne=ge.onCtrlLeftRight,Ie=ge.onUpDown,dt=ge.onPageUpDown,at=ge.onEnter,Nt=ce.which,It=ce.ctrlKey,an=ce.metaKey;switch(Nt){case jt.Z.LEFT:if(It||an){if(Ne)return Ne(-1),!0}else if(fe)return fe(-1),!0;break;case jt.Z.RIGHT:if(It||an){if(Ne)return Ne(1),!0}else if(fe)return fe(1),!0;break;case jt.Z.UP:if(Ie)return Ie(-1),!0;break;case jt.Z.DOWN:if(Ie)return Ie(1),!0;break;case jt.Z.PAGE_UP:if(dt)return dt(-1),!0;break;case jt.Z.PAGE_DOWN:if(dt)return dt(1),!0;break;case jt.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 Ut=null,Yn=new Set;function $n(ce){return!Ut&&typeof window!="undefined"&&window.addEventListener&&(Ut=function(fe){(0,Ca.Z)(Yn).forEach(function(Ne){Ne(fe)})},window.addEventListener("mousedown",Ut)),Yn.add(ce),function(){Yn.delete(ce),Yn.size===0&&(window.removeEventListener("mousedown",Ut),Ut=null)}}function ba(ce){var ge=ce.target;if(ce.composed&&ge.shadowRoot){var fe;return((fe=ce.composedPath)===null||fe===void 0?void 0:fe.call(ce)[0])||ge}return ge}var Ze=function(ge){return ge==="month"||ge==="date"?"year":ge},Rt=function(ge){return ge==="date"?"month":ge},qt=function(ge){return ge==="month"||ge==="date"?"quarter":ge},vn=function(ge){return ge==="date"?"week":ge},kt={year:Ze,month:Rt,quarter:qt,week:vn,time:null,date:null};function Wn(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,dt=ce.forwardKeyDown,at=ce.onKeyDown,Nt=ce.blurToCancel,It=ce.onSubmit,an=ce.onCancel,Kn=ce.onFocus,Vt=ce.onBlur,mn=ce.changeOnBlur,On=(0,le.useState)(!1),Mn=(0,rn.Z)(On,2),Lt=Mn[0],un=Mn[1],kn=(0,le.useState)(!1),oa=(0,rn.Z)(kn,2),Sa=oa[0],dn=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(_r){var so=function(){ha.current=!0};if(at(_r,so),!ha.current){switch(_r.which){case jt.Z.ENTER:{ge?It()!==!1&&un(!0):Ie(!0),_r.preventDefault();return}case jt.Z.TAB:{Lt&&ge&&!_r.shiftKey?(un(!1),_r.preventDefault()):!Lt&&ge&&!dt(_r)&&_r.shiftKey&&(un(!0),_r.preventDefault());return}case jt.Z.ESC:{un(!0),an();return}}!ge&&![jt.Z.SHIFT].includes(_r.which)?Ie(!0):Lt||dt(_r)}},onFocus:function(_r){un(!0),dn(!0),Kn&&Kn(_r)},onBlur:function(_r){if(ka.current||!Ne(document.activeElement)){ka.current=!1;return}Nt?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&&It()),dn(!1),Vt==null||Vt(_r)}};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 _r=ba(Ar),so=Ne(_r);ge&&(so?!mn&&(!Sa||so)&&Ie(!1):(ka.current=!0,(0,Ga.Z)(function(){ka.current=!1})))})}),[Xr,{focused:Sa,typing:Lt}]}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],dt=Ne[1];return{label:Ie,value:dt}})):[])},[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),dt=Ie[0],at=Ie[1],Nt=le.useRef([]);Nt.current=ge;function It(Kn){at(Kn),fe(Kn)}function an(){at(Nt.current[0])}return(0,nt.Z)(function(){ge.every(function(Kn){return Kn!==dt})&&an()},[ge.join("||")]),[dt,It,an]}var on=le.createContext({}),bn=on,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(dt,at){var Nt=dt;return Ne&&at.type==="date"?Ne(Nt,at.today):fe&&at.type==="month"?fe(Nt,at.locale):at.originNode}},[ge,fe,Ne]);return Ie}function 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+=dt)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,dt=ce.value,at=ce.showHour,Nt=ce.showMinute,It=ce.showSecond,an=ce.use12Hours,Kn=ce.hourStep,Vt=Kn===void 0?1:Kn,mn=ce.minuteStep,On=mn===void 0?1:mn,Mn=ce.secondStep,Lt=Mn===void 0?1:Mn,un=ce.disabledHours,kn=ce.disabledMinutes,oa=ce.disabledSeconds,Sa=ce.disabledTime,dn=ce.hideDisabledOptions,ka=ce.onSelect,Ta=ce.cellRender,ha=ce.locale,Xr=[],Ar="".concat(fe,"-content"),_r="".concat(fe,"-time-panel"),so,Fo=dt?ge.getHour(dt):-1,xo=Fo,ll=dt?ge.getMinute(dt):-1,Zn=dt?ge.getSecond(dt):-1,co=ge.getNow(),Po=le.useMemo(function(){if(Sa){var mo=Sa(co);return[mo.disabledHours,mo.disabledMinutes,mo.disabledSeconds]}return[un,kn,oa]},[un,kn,oa,Sa,co]),jo=(0,rn.Z)(Po,3),Zo=jo[0],Bo=jo[1],$o=jo[2],bl=yr(0,23,Vt,Zo&&Zo()),Zr=(0,Xn.Z)(function(){return bl},bl,nr);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,On,Bo&&Bo(Fo)),Vl=yr(0,59,Lt,$o&&$o(Fo,ll)),Nl=La({value:dt,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(Ua),Xr&&Xr(Ua),Nl&&Nl(Ua,Mr),Ar&&!ua(It,Ua,Yl)&&!(On!=null&&On(Ua))&&Ar(Ua))},_l=function(Ua){if(br.includes(ml)){var Mr,nl,gi=ml==="date";switch(Ua===jt.Z.PAGE_UP||Ua===jt.Z.PAGE_DOWN?nl=gi?It.addMonth:It.addYear:nl=gi?It.addDate:It.addMonth,Ua){case jt.Z.LEFT:case jt.Z.PAGE_UP:Mr=nl(Hl,-1);break;case jt.Z.RIGHT:case jt.Z.PAGE_DOWN:Mr=nl(Hl,1);break;case jt.Z.UP:case jt.Z.DOWN:Mr=nl(Hl,Number("".concat(Ua===jt.Z.UP?"-":"").concat(gi?Vn:rr)));break}if(Mr)return!(On!=null&&On(Mr))}return!0},Vi=function(Ua){if(gl.current&&gl.current.onKeyDown){var Mr=!0,nl=Ua.which;if([jt.Z.LEFT,jt.Z.RIGHT,jt.Z.UP,jt.Z.DOWN,jt.Z.PAGE_UP,jt.Z.PAGE_DOWN,jt.Z.ENTER].includes(nl)&&(Ua.preventDefault(),nl!==jt.Z.ENTER&&oa===0&&(Mr=_l(nl))),Mr)return gl.current.onKeyDown(Ua)}return(0,we.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},qo=function(Ua){gl.current&&gl.current.onBlur&&gl.current.onBlur(Ua)};Vl&&tl!=="right"&&(Vl.current={onKeyDown:Vi,onClose:function(){gl.current&&gl.current.onClose&&gl.current.onClose()}}),le.useEffect(function(){an&&!Rl.current&&Cn(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:On});switch(delete Go.onChange,delete Go.onSelect,ml){case"decade":ni=le.createElement(ht,(0,se.Z)({},Go,{onSelect:function(Ua,Mr){Kl(Ua),dl(Ua,Mr)}}));break;case"year":ni=le.createElement(Fn,(0,se.Z)({},Go,{onSelect:function(Ua,Mr){Kl(Ua),dl(Ua,Mr)}}));break;case"month":ni=le.createElement(cr,(0,se.Z)({},Go,{onSelect:function(Ua,Mr){Kl(Ua),dl(Ua,Mr)}}));break;case"quarter":ni=le.createElement(sa,(0,se.Z)({},Go,{onSelect:function(Ua,Mr){Kl(Ua),dl(Ua,Mr)}}));break;case"week":ni=le.createElement(Gn,(0,se.Z)({},Go,{onSelect:function(Ua,Mr){Kl(Ua),dl(Ua,Mr)}}));break;case"time":delete Go.showTime,ni=le.createElement(Fl,(0,se.Z)({},Go,(0,Nn.Z)(dn)==="object"?dn:null,{onSelect:function(Ua,Mr){Kl(Ua),dl(Ua,Mr)}}));break;default:dn?ni=le.createElement(Ao,(0,se.Z)({},Go,{onSelect:function(Ua,Mr){Kl(Ua),dl(Ua,Mr)}})):ni=le.createElement(Wa,(0,se.Z)({},Go,{onSelect:function(Ua,Mr){Kl(Ua),dl(Ua,Mr)}}))}var Ri,ja,ci=function(){var Ua=It.getNow(),Mr=Ya(It.getHour(Ua),It.getMinute(Ua),It.getSecond(Ua),Ml?Po:1,il?Zo:1,Pl?$o:1),nl=Ht(It,Ua,Mr[0],Mr[1],Mr[2]);dl(nl,"submit")};$l||(Ri=Ia(Ie,ml,Ta),dn&&ml!=="date"?ja=null:ja=gr({prefixCls:Ie,components:ll,needConfirmButton:No,okDisabled:!Yl||On&&On(Yl),locale:Nt,showNow:Sa,onNow:No&&ci,onOk:function(){Yl&&(dl(Yl,"submit",!0),xo&&xo(Yl))}}));var uu;if(ka&&ml==="date"&&un==="date"&&!dn){var ki=It.getNow(),Ti="".concat(Ie,"-today-btn"),Wi=On&&On(ki);uu=le.createElement("a",{className:Te()(Ti,Wi&&"".concat(Ti,"-disabled")),"aria-disabled":Wi,onClick:function(){Wi||dl(ki,"mouse",!0)}},Nt.today)}return le.createElement(bn.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"),dt,(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"),Zn==="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,dt=ce.visible,at=ce.dropdownClassName,Nt=ce.dropdownAlign,It=ce.transitionName,an=ce.getPopupContainer,Kn=ce.children,Vt=ce.range,mn=ce.popupPlacement,On=ce.direction,Mn="".concat(fe,"-dropdown"),Lt=function(){return mn!==void 0?mn:On==="rtl"?"bottomRight":"bottomLeft"};return le.createElement(or.Z,{showAction:[],hideAction:[],popupPlacement:Lt(),builtinPlacements:Sr,prefixCls:Mn,popupTransitionName:It,popup:Ne,popupAlign:Nt,popupVisible:dt,popupClassName:Te()(at,(ge={},(0,Ce.Z)(ge,"".concat(Mn,"-range"),Vt),(0,Ce.Z)(ge,"".concat(Mn,"-rtl"),On==="rtl"),ge)),popupStyle:Ie,getPopupContainer:an},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(dt,at){var Nt=dt.label,It=dt.value;return le.createElement("li",{key:at,onClick:function(){return Ne==null?void 0:Ne(Ma(It))},onMouseEnter:function(){return Ie==null?void 0:Ie(Ma(It))},onMouseLeave:function(){return Ie==null?void 0:Ie(null)}},Nt)}))):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,dt=fe.id,at=fe.name,Nt=fe.tabIndex,It=fe.style,an=fe.className,Kn=fe.dropdownClassName,Vt=fe.dropdownAlign,mn=fe.popupStyle,On=fe.transitionName,Mn=fe.generateConfig,Lt=fe.locale,un=fe.inputReadOnly,kn=fe.allowClear,oa=fe.autoFocus,Sa=fe.showTime,dn=fe.picker,ka=dn===void 0?"date":dn,Ta=fe.format,ha=fe.use12Hours,Xr=fe.value,Ar=fe.defaultValue,_r=fe.presets,so=fe.open,Fo=fe.defaultOpen,xo=fe.defaultOpenValue,ll=fe.suffixIcon,Zn=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(_r),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),Cn=Hl[0],Kl=Hl[1],iu=le.useState(Cn),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:Mn,locale:Lt}),dl=(0,rn.Z)(Di,2),_l=dl[0],Vi=dl[1],qo=Xe({valueTexts:_l,onTextChange:function(xt){var An=Ja(xt,{locale:Lt,formatList:Ei,generateConfig:Mn});An&&(!Po||!Po(An))&&ml(An)}}),ni=(0,rn.Z)(qo,3),Li=ni[0],Go=ni[1],Ri=ni[2],ja=function(xt){ml(xt),Kl(xt),bl&&!ua(Mn,Cn,xt)&&bl(xt,xt?xa(xt,{generateConfig:Mn,locale:Lt,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,An=new Array(xt),cn=0;cnmn(an);case"month":return Vt(Lt)>Vt(an);case"week":return Kn(Lt)>Kn(an);default:return!Va(Nt,Lt,an)&&Nt.isAfter(Lt,an)}return!1},[dt,at[1],an,ge]),Mn=le.useCallback(function(Lt){if(at[1]||dt&&dt(Lt))return!0;if(at[0]&&It)return!Va(Nt,Lt,an)&&Nt.isAfter(It,Lt);if(!ge&&It)switch(fe){case"quarter":return mn(Lt)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]&&Lt.isAfter(vl[1],vl[0])&&(Fr=vl);var Ur=ha;if(ha&&(0,Nn.Z)(ha)==="object"&&ha.defaultValue){var Ko=ha.defaultValue;Ur=(0,rt.Z)((0,rt.Z)({},ha),{},{defaultValue:qn(Ko,he)||void 0})}return le.createElement(er.Provider,{value:{inRange:!0,panelPosition:Qr,rangedValue:zl||Gr,hoverRangedValue:Fr}},le.createElement(va,(0,se.Z)({},ce,Oa,{cellRender:kl,showTime:Ur,mode:gi[he],generateConfig:Lt,style:void 0,direction:Hl,disabledDate:he===0?$t: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:!xr)),value:qn(Gr,he),locale:un,tabIndex:-1,onPanelChange:function(vi,Xi){he===0&&Xl(!0),he===1&&Ul(!0),Au(zt(gi,Xi,he),zt(Gr,vi,he));var Ii=vi;Qr==="right"&&gi[he]===Xi&&(Ii=Ea(Ii,Xi,Lt,-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 Qr,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&&(cn(Gr,he),Yl==null||Yl(Gr),Bt(!1,he,"confirm"))}});if(Ta!=="time"&&!ha){var Ur=uu(he),Ko=Ea(Ur,Ta,Lt),Ji=gi[he],vi=Ji===Ta,Xi=Hi(vi?"left":!1,{pickerValue:Ur,onPickerValueChange:function(Fi){ki(Fi,he)}}),Ii=Hi("right",{pickerValue:Ko,onPickerValueChange:function(Fi){ki(Ea(Fi,Ta,Lt,-1),he)}});Hl==="rtl"?Qr=le.createElement(le.Fragment,null,Ii,vi&&Xi):Qr=le.createElement(le.Fragment,null,Xi,vi&&Ii)}else Qr=Hi();var mu=le.createElement("div",{className:"".concat(at,"-panel-layout")},le.createElement(Qo,{prefixCls:at,presets:bu,onClick:function(Fi){cn(Fi,null),Bt(!1,he,"preset")},onHover:function(Fi){Jl(Fi)}}),le.createElement("div",null,le.createElement("div",{className:"".concat(at,"-panels")},Qr),(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:ut}},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=zt(Fr,null,0)),qo[1]||(Fr=zt(Fr,null,1)),cn(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],Lt)},po=0,Wr=0;wi.current&&Sl.current&&Il.current&&(he===0?Wr=wi.current.offsetWidth:(po=Ki,Wr=Sl.current.offsetWidth));var ho=Hl==="rtl"?{right:po}:{left:po},Yo=function(Oa,Fr){var Ur=zt(Gr,Oa,he);if(Fr==="submit"||Fr!=="key"&&!ei){cn(Ur,he),he===0?Xl():Ul();var Ko=he===0?1:0;qo[Ko]?Bt(!1,!1,"confirm"):Bt(!1,he,"confirm")}else Ua(Ur)};return le.createElement(bn.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:On,getPopupContainer:Mn,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:It,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:Nt,disabled:qo[0],readOnly:wo||typeof _l[0]=="function"||!Nu,value:Ho||Ir,onChange:function(Oa){Lo(Oa.target.value)},autoFocus:oa,placeholder:qn(kn,0)||"",ref:Co},tu,io,{autoComplete:iu}))),le.createElement("div",{className:"".concat(at,"-range-separator"),ref:Il},_r),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"||!xr,value:yl||fl,onChange:function(Oa){xl(Oa.target.value)},placeholder:qn(kn,1)||"",ref:Di},Yt,io,{autoComplete:iu}))),le.createElement("div",{className:"".concat(at,"-active-bar"),style:(0,rt.Z)((0,rt.Z)({},ho),{},{width:Wr,position:"absolute"})}),ns,qr&&lr)))}var Zl=function(ce){(0,Mt.Z)(fe,ce);var ge=(0,Xt.Z)(fe);function fe(){var Ne;(0,et.Z)(this,fe);for(var Ie=arguments.length,dt=new Array(Ie),at=0;at{const{lineHeight:Ie}=ce,dt=Math.floor(fe*Ie)+2,at=Math.max((ge-dt)/2,0),Nt=Math.max(ge-dt-at,0);return{padding:`${at}px ${Ne}px ${Nt}px`}},us=ce=>{const{componentCls:ge,pickerCellCls:fe,pickerCellInnerCls:Ne,cellHeight:Ie,motionDurationSlow:dt,borderRadiusSM:at,motionDurationMid:Nt,cellHoverBg:It,lineWidth:an,lineType:Kn,colorPrimary:Vt,cellActiveWithRangeBg:mn,colorTextLightSolid:On,controlHeightSM:Mn,cellRangeBorderColor:Lt,pickerCellBorderGap:un,cellHoverWithRangeBg:kn,cellWidth:oa,colorTextDisabled:Sa,cellBgDisabled:dn}=ce;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:Ie,transform:"translateY(-50%)",transition:`all ${dt}`,content:'""'},[Ne]:{position:"relative",zIndex:2,display:"inline-block",minWidth:Ie,height:Ie,lineHeight:`${Ie}px`,borderRadius:at,transition:`background ${Nt}, border ${Nt}`},"&-range-hover-start, &-range-hover-end":{[Ne]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${fe}-in-view), + &:hover:not(${fe}-selected):not(${fe}-range-start):not(${fe}-range-end):not(${fe}-range-hover-start):not(${fe}-range-hover-end)`]:{[Ne]:{background:It}},[`&-in-view${fe}-today ${Ne}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${an}px ${Kn} ${Vt}`,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:In,background:Qt},[`&-in-view${fe}-range-start:not(${fe}-range-start-single), + &-in-view${fe}-range-end ${Ne}`]:{color:On,background:Vt},[`&-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: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}-range-hover:not(${fe}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:Mn,borderTop:`${an}px dashed ${Lt}`,borderBottom:`${an}px dashed ${Lt}`,transform:"translateY(-50%)",transition:`all ${dt}`,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: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, + &-in-view${fe}-in-range${fe}-range-hover-end::before`]:{background:kn},[`&-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:`${an}px dashed ${Dt}`,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 ${Lt}`,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:`${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, + &-in-view${fe}-range-hover-end::after`]:{insetInlineEnd:(oa-Ie)/2,borderInlineEnd:`${an}px dashed ${Lt}`,borderStartEndRadius:at,borderEndEndRadius:at},"&-disabled":{color:Sa,pointerEvents:"none",[Ne]:{background:"transparent"},"&::before":{background:dn}},[`&-disabled${fe}-today ${Ne}::before`]:{borderColor:Sa}}},Ju=ce=>{const{componentCls:ge,pickerCellCls:fe,pickerCellInnerCls:Ne,pickerYearMonthCellWidth:Ie,pickerControlIconSize:dt,cellWidth:at,paddingSM:Nt,paddingXS:It,paddingXXS:an,colorBgContainer:Kn,lineWidth:Vt,lineType:mn,borderRadiusLG:On,colorPrimary:Mn,colorTextHeading:Lt,colorSplit:un,pickerControlIconBorderWidth:kn,colorIcon:oa,textHeight:Sa,motionDurationMid:dn,colorIconHover:ka,fontWeightStrong:Ta,cellHeight:ha,pickerCellPaddingVertical:Xr,colorTextDisabled:Ar,colorText:_r,fontSize:so,cellHoverWithRangeBg:Fo,motionDurationSlow:xo,withoutTimeCellHeight:ll,pickerQuarterPanelContentHeight:Zn,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-It*2)/3-Ie-Nt,Nl=(wo-It*2)/4-Ie;return{[ge]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:Kn,border:`${Vt}px ${mn} ${un}`,borderRadius:On,outline:"none","&-focused":{borderColor:Mn},"&-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 ${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}, + ${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 ${It}px`,color:Lt,borderBottom:`${Vt}px ${mn} ${un}`,"> *":{flex:"none"},button:{padding:0,color:oa,lineHeight:`${Sa}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${dn}`,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:It},"&:hover":{color:Mn}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:dt,height:dt,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:dt,height:dt,border:"0 solid currentcolor",borderBlockStartWidth:kn,borderBlockEndWidth:0,borderInlineStartWidth:kn,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(dt/2),insetInlineStart:Math.ceil(dt/2),display:"inline-block",width:dt,height:dt,border:"0 solid currentcolor",borderBlockStartWidth:kn,borderBlockEndWidth:0,borderInlineStartWidth:kn,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:_r,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Xr}px 0`,color:Ar,cursor:"pointer","&-in-view":{color:_r}},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 ${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}, + ${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 ${It}px`}},"&-quarter-panel":{[`${ge}-content`]:{height:Zn},[`${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 ${mn} ${un}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${Sa-2*Vt}px`,textAlign:"center","&-extra":{padding:`0 ${Nt}px`,lineHeight:`${Sa-2*Vt}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${Vt}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 ${It/2}px`},[`${ge}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${ge}-body`]:{padding:`0 ${It}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:`${It}px ${Nt}px`},[`${ge}-cell`]:{[`&:hover ${Ne}, &-selected ${Ne}, - ${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, + ${Ne}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${dn}`},"&: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:Mn},[`&${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:`${It}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 ${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: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, + ${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 ${dn}`,overflowX:"hidden","&::after":{display:"block",height:Zr-No,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Vt}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:_r,lineHeight:`${No}px`,borderRadius:Bo,cursor:"pointer",transition:`background ${dn}`,"&: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:dt,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:dt},[`&${ge}-focused, &:focus`]:Object.assign({},(0,Ol.M1)((0,Bi.TS)(ce,{activeBorderColor:dt,activeShadow:at}))),[`${ge}-active-bar`]:{background:dt}}}}},Cr=ce=>{const{componentCls:ge,antCls:fe,controlHeight:Ne,fontSize:Ie,paddingInline:dt,colorBgContainer:at,lineWidth:Nt,lineType:It,colorBorder:an,borderRadius:Kn,motionDurationMid:Vt,colorBgContainerDisabled:mn,colorTextDisabled:On,colorTextPlaceholder:Mn,controlHeightLG:Lt,fontSizeLG:un,controlHeightSM:kn,paddingInlineSM:oa,paddingXS:Sa,marginXS:dn,colorTextDescription:ka,lineWidthBold:Ta,lineHeight:ha,colorPrimary:Xr,motionDurationSlow:Ar,zIndexPopup:_r,paddingXXS:so,paddingSM:Fo,textHeight:xo,cellActiveWithRangeBg:ll,colorPrimaryBorder:Zn,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,dt)),{position:"relative",display:"inline-flex",alignItems:"center",background:at,lineHeight:1,border:`${Nt}px ${It} ${an}`,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: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:Mn}}},"&-large":Object.assign(Object.assign({},Zu(ce,Lt,un,dt)),{[`${ge}-input > input`]:{fontSize:un}}),"&-small":Object.assign({},Zu(ce,kn,Ie,oa)),[`${ge}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:Sa/2,color:On,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:dn}}},[`${ge}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:On,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:un,color:On,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:dt},"&:hover":{[`${ge}-clear`]:{opacity:1}},[`${ge}-active-bar`]:{bottom:-Nt,height:Ta,marginInlineStart:dt,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:_r,[`&${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*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+=` + &${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*Nt-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:Zn,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:dt*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:`${Nt}px ${It} ${Zr}`,li:Object.assign(Object.assign({},wu.vS),{borderRadius:bl,paddingInline:Sa,paddingBlock:(kn-Math.round(Ie*ha))/2,cursor:"pointer",transition:`all ${Ar}`,"+ li":{marginTop:dn},"&:hover":{background:el}})}},[`${ge}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${ge}-panel`]:{borderWidth:`0 0 ${Nt}px`},"&:last-child":{[`${ge}-panel`]:{borderWidth:0}}},[`${ge}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${ge}-content, + table`]:{textAlign:"center"},"&-focused":{borderColor: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[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:dt,use12Hours:at}=ce,Nt=du(ge)[0],It=Object.assign({},ce);return ge&&Array.isArray(ge)&&(It.format=Nt),Nt&&typeof Nt=="string"&&(!Nt.includes("s")&&dt===void 0&&(It.showSecond=!1),!Nt.includes("m")&&Ie===void 0&&(It.showMinute=!1),!Nt.includes("H")&&!Nt.includes("h")&&!Nt.includes("K")&&!Nt.includes("k")&&Ne===void 0&&(It.showHour=!1),(Nt.includes("a")||Nt.includes("A"))&&at===void 0&&(It.use12Hours=!0)),fe==="time"?It:(typeof Nt=="function"&&delete It.format,{showTime:It})}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:dt,className:at,placement:Nt,size:It,disabled:an,bordered:Kn=!0,placeholder:Vt,popupClassName:mn,dropdownClassName:On,status:Mn,clearIcon:Lt,allowClear:un,rootClassName:kn}=fe,oa=Xu(fe,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),Sa=le.useRef(null),{getPrefixCls:dn,direction:ka,getPopupContainer:Ta}=(0,le.useContext)(ku.E_),ha=dn("picker",Ie),{compactSize:Xr,compactItemClassnames:Ar}=(0,Gl.ri)(ha,ka),{format:_r,showTime:so,picker:Fo}=fe,xo=dn(),[ll,Zn]=Gu(ha),co=Object.assign(Object.assign({},so?Dl(Object.assign({format:_r,picker:Fo},so)):{}),Fo==="time"?Dl(Object.assign(Object.assign({format:_r},fe),{picker:Fo})):{}),Po=(0,Ku.Z)(il=>{var Pl;return(Pl=It!=null?It: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(Wt,null)),disabled:Zo,ref:Sa,dropdownAlign:Hu(ka,Nt),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,Mn),$o),Zn,Ar,at,kn),locale:Ml.lang,prefixCls:ha,getPopupContainer:dt||Ta,generateConfig:ce,components:Na,direction:ka,dropdownClassName:Te()(Zn,mn||On,kn),allowClear:ql(un,Lt,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:Mn,getPopupContainer:Lt,style:un,className:kn,rootClassName:oa,size:Sa,bordered:dn=!0,placement:ka,placeholder:Ta,popupClassName:ha,dropdownClassName:Xr,disabled:Ar,status:_r,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:Zn,getPopupContainer:co,[Kn]:Po}=(0,le.useContext)(ku.E_),jo=ll("picker",Mn),{compactSize:Zo,compactItemClassnames:Bo}=(0,Gl.ri)(jo,Zn),$o=le.useRef(null),{format:bl,showTime:Zr}=mn,[el,No]=Gu(jo);(0,le.useImperativeHandle)(On,()=>({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={};It&&(il.picker=It);const Pl=It||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(Zn,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`]:!dn},(0,Su.Z)(jo,(0,Su.F)(ul,_r),mo),No,Bo,Po==null?void 0:Po.className,kn,oa),style:Object.assign(Object.assign({},Po==null?void 0:Po.style),un),prefixCls:jo,getPopupContainer:Lt||co,generateConfig:ce,components:Na,direction:Zn,disabled:$l,dropdownClassName:Te()(No,oa,ha||Xr),allowClear:ql(Fo,so,le.createElement(ct.Z,null))})))});return an&&(Vt.displayName=an),Vt}const fe=ge(),Ne=ge("week","WeekPicker"),Ie=ge("month","MonthPicker"),dt=ge("year","YearPicker"),at=ge("time","TimePicker"),Nt=ge("quarter","QuarterPicker");return{DatePicker:fe,WeekPicker:Ne,MonthPicker:Ie,YearPicker:dt,TimePicker:at,QuarterPicker:Nt}}const Vu=null;function fs(ce){const{DatePicker:ge,WeekPicker:fe,MonthPicker:Ne,YearPicker:Ie,TimePicker:dt,QuarterPicker:at}=aa(ce),Nt=Pu(ce),It=ge;return It.WeekPicker=fe,It.MonthPicker=Ne,It.YearPicker=Ie,It.RangePicker=Nt,It.TimePicker=dt,It.QuarterPicker=at,It}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,Zt,ae){"use strict";ae.d(Zt,{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})))};Zt.ZP=ke},60324:function(ot,Zt,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,st]=(0,Oe.Z)(Qe),Me=Fe(),Ye=Ee()(y,st);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,Zt.Z=ze},17356:function(ot,Zt,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`}}}};Zt.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,Zt,ae){"use strict";ae.d(Zt,{default:function(){return st}});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,yt=a(Me,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Pt,tag:En}=b.useContext(Ke.E_),xn=Kt=>{ft==null||ft(!be),ct==null||ct(Kt)},Wt=Pt("tag",Ye),[St,Te]=E(Wt),et=Be()(Wt,`${Wt}-checkable`,{[`${Wt}-checkable-checked`]:be},En==null?void 0:En.className,$e,Te);return St(b.createElement("span",Object.assign({},yt,{style:Object.assign(Object.assign({},Ge),En==null?void 0:En.style),className:et,onClick:xn})))},z=ae(45157);const te=Me=>(0,z.Z)(Me,(Ye,Ge)=>{let{textColor:$e,lightBorderColor:be,lightColor: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:yt,color:Pt,onClose:En,closeIcon:xn,closable:Wt,bordered:St=!0}=Me,Te=Fe(Me,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:et,direction:Kt,tag:wn}=b.useContext(Ke.E_),[Mt,Xt]=b.useState(!0);b.useEffect(()=>{"visible"in Te&&Xt(Te.visible)},[Te.visible]);const Ce=(0,Re.o2)(Pt),rt=(0,Re.yT)(Pt),rn=Ce||rt,tt=Object.assign(Object.assign({backgroundColor:Pt&&!rn?Pt:void 0},wn==null?void 0:wn.style),ft),pt=et("tag",Ge),[Xn,gn]=E(pt),Qt=Be()(pt,wn==null?void 0:wn.className,{[`${pt}-${Pt}`]:rn,[`${pt}-has-color`]:Pt&&!rn,[`${pt}-hidden`]:!Mt,[`${pt}-rtl`]:Kt==="rtl",[`${pt}-borderless`]:!St},$e,be,gn),Tt=Fa=>{Fa.stopPropagation(),En==null||En(Fa),!Fa.defaultPrevented&&Xt(!1)},[,Vn]=(0,We.Z)(Wt,xn,Fa=>Fa===null?b.createElement(Ee.Z,{className:`${pt}-close-icon`,onClick:Tt}):b.createElement("span",{className:`${pt}-close-icon`,onClick:Tt},Fa),null,!1),ia=typeof Te.onClick=="function"||ct&&ct.type==="a",tn=yt||null,Ba=tn?b.createElement(b.Fragment,null,tn,ct&&b.createElement("span",null,ct)):ct,_a=b.createElement("span",Object.assign({},Te,{ref:Ye,className:Qt,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"},_a):_a)},Le=b.forwardRef(Qe);Le.CheckableTag=y;var st=Le},98228:function(ot,Zt,ae){"use strict";ae.d(Zt,{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(Ut){var Yn=ue.useRef({valueLabels:new Map});return ue.useMemo(function(){var $n=Yn.current.valueLabels,ba=new Map,Ze=Ut.map(function(Rt){var qt,vn=Rt.value,kt=(qt=Rt.label)!==null&&qt!==void 0?qt:$n.get(vn);return ba.set(vn,kt),(0,Re.Z)((0,Re.Z)({},Rt),{},{label:kt})});return Yn.current.valueLabels=ba,[Ze]},[Ut])},a=function(Ut,Yn,$n,ba){return ue.useMemo(function(){var Ze=Ut.map(function(kt){var Wn=kt.value;return Wn}),Rt=Yn.map(function(kt){var Wn=kt.value;return Wn}),qt=Ze.filter(function(kt){return!ba[kt]});if($n){var vn=(0,ke.S)(Ze,!0,ba);Ze=vn.checkedKeys,Rt=vn.halfCheckedKeys}return[Array.from(new Set([].concat((0,Be.Z)(qt),(0,Be.Z)(Ze)))),Rt]},[Ut,Yn,$n,ba])},x=ae(71430),y=function(Ut,Yn){return ue.useMemo(function(){var $n=(0,x.I8)(Ut,{fieldNames:Yn,initWrapper:function(Ze){return(0,Re.Z)((0,Re.Z)({},Ze),{},{valueEntities:new Map})},processEntity:function(Ze,Rt){var qt=Ze.node[Yn.value];if(0)var vn;Rt.valueEntities.set(qt,Ze)}});return $n},[Ut,Yn])},z=ae(18642),te=ae(11592),oe=function(){return null},se=oe,le=["children","value"];function Pe(Ut){return(0,te.Z)(Ut).map(function(Yn){if(!ue.isValidElement(Yn)||!Yn.type)return null;var $n=Yn,ba=$n.key,Ze=$n.props,Rt=Ze.children,qt=Ze.value,vn=(0,xe.Z)(Ze,le),kt=(0,Re.Z)({key:ba,value:qt},vn),Wn=Pe(Rt);return Wn.length&&(kt.children=Wn),kt}).filter(function(Yn){return Yn})}function Fe(Ut){if(!Ut)return Ut;var Yn=(0,Re.Z)({},Ut);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(Ut,Yn,$n,ba,Ze,Rt){var qt=null,vn=null;function kt(){function Wn(_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,on){var bn="".concat(Je,"-").concat(on),Nn=Xe[Rt.value],wa=$n.includes(Nn),pa=Wn(Xe[Rt.children]||[],bn,wa),ta=ue.createElement(se,Xe,pa.map(function(qn){return qn.node}));if(Yn===Nn&&(qt=ta),wa){var ya={pos:bn,node:ta,children:pa};return nt||vn.push(ya),ya}return null}).filter(function(Xe){return Xe})}vn||(vn=[],Wn(ba),vn.sort(function(_n,Je){var nt=_n.node.props.value,Xe=Je.node.props.value,on=$n.indexOf(nt),bn=$n.indexOf(Xe);return on-bn}))}Object.defineProperty(Ut,"triggerNode",{get:function(){return(0,Ue.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),kt(),qt}}),Object.defineProperty(Ut,"allCheckedNodes",{get:function(){return(0,Ue.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),kt(),Ze?vn:vn.map(function(_n){var Je=_n.node;return Je})}})}var Le=function(Ut,Yn,$n){var ba=$n.treeNodeFilterProp,Ze=$n.filterTreeNode,Rt=$n.fieldNames,qt=Rt.children;return ue.useMemo(function(){if(!Yn||Ze===!1)return Ut;var vn;if(typeof Ze=="function")vn=Ze;else{var kt=Yn.toUpperCase();vn=function(Je,nt){var Xe=nt[ba];return String(Xe).toUpperCase().includes(kt)}}function Wn(_n){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _n.reduce(function(nt,Xe){var on=Xe[qt],bn=Je||vn(Yn,Fe(Xe)),Nn=Wn(on||[],bn);return(bn||Nn.length)&&nt.push((0,Re.Z)((0,Re.Z)({},Xe),{},(0,z.Z)({isLeaf:void 0},qt,Nn))),nt},[])}return Wn(Ut)},[Ut,Yn,qt,ba,Ze])};function st(Ut){var Yn=ue.useRef();Yn.current=Ut;var $n=ue.useCallback(function(){return Yn.current.apply(Yn,arguments)},[]);return $n}function Me(Ut,Yn){var $n=Yn.id,ba=Yn.pId,Ze=Yn.rootPId,Rt={},qt=[],vn=Ut.map(function(kt){var Wn=(0,Re.Z)({},kt),_n=Wn[$n];return Rt[_n]=Wn,Wn.key=Wn.key||_n,Wn});return vn.forEach(function(kt){var Wn=kt[ba],_n=Rt[Wn];_n&&(_n.children=_n.children||[],_n.children.push(kt)),(Wn===Ze||!_n&&Ze===null)&&qt.push(kt)}),qt}function Ye(Ut,Yn,$n){return ue.useMemo(function(){return Ut?$n?Me(Ut,(0,Re.Z)({id:"id",pId:"pId",rootPId:null},$n!==!0?$n:{})):Ut:Pe(Yn)},[Yn,$n,Ut])}var Ge=ue.createContext(null),$e=Ge,be=ae(10228),ft=ae(80547),ct=ae(38028),yt=ue.createContext(null),Pt=yt;function En(Ut){return Array.isArray(Ut)?Ut:Ut!==void 0?[Ut]:[]}function xn(Ut){var Yn=Ut||{},$n=Yn.label,ba=Yn.value,Ze=Yn.children,Rt=ba||"value";return{_title:$n?[$n]:["title","label"],value:Rt,key:Rt,children:Ze||"children"}}function Wt(Ut){return!Ut||Ut.disabled||Ut.disableCheckbox||Ut.checkable===!1}function St(Ut,Yn){var $n=[];function ba(Ze){Ze.forEach(function(Rt){var qt=Rt[Yn.children];qt&&($n.push(Rt[Yn.value]),ba(qt))})}return ba(Ut),$n}function Te(Ut){return Ut==null}var et={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Kt=function(Yn,$n){var ba=(0,Oe.lk)(),Ze=ba.prefixCls,Rt=ba.multiple,qt=ba.searchValue,vn=ba.toggleOpen,kt=ba.open,Wn=ba.notFoundContent,_n=ue.useContext(Pt),Je=_n.virtual,nt=_n.listHeight,Xe=_n.listItemHeight,on=_n.treeData,bn=_n.fieldNames,Nn=_n.onSelect,wa=_n.dropdownMatchSelectWidth,pa=_n.treeExpandAction,ta=ue.useContext($e),ya=ta.checkable,qn=ta.checkedKeys,zt=ta.halfCheckedKeys,Ma=ta.treeExpandedKeys,hr=ta.treeDefaultExpandAll,So=ta.treeDefaultExpandedKeys,er=ta.onTreeExpand,Ht=ta.treeIcon,$r=ta.showTreeIcon,Ya=ta.switcherIcon,Pr=ta.treeLine,ur=ta.treeNodeFilterProp,Yr=ta.loadData,Nr=ta.treeLoadedKeys,ro=ta.treeMotion,Tr=ta.onTreeLoad,ca=ta.keyEntities,nn=ue.useRef(),mr=(0,ft.Z)(function(){return on},[kt,on],function(Er,no){return no[0]&&Er[1]!==no[1]}),ga=ue.useState(null),sr=(0,We.Z)(ga,2),Wa=sr[0],pn=sr[1],na=ca[Wa],La=ue.useMemo(function(){return ya?{checked:qn,halfChecked:zt}:null},[ya,qn,zt]);ue.useEffect(function(){if(kt&&!Rt&&qn.length){var Er;(Er=nn.current)===null||Er===void 0||Er.scrollTo({key:qn[0]}),pn(qn[0])}},[kt]);var Jn=String(qt).toLowerCase(),dr=function(no){return Jn?String(no[ur]).toLowerCase().includes(Jn):!1},nr=ue.useState(So),yr=(0,We.Z)(nr,2),eo=yr[0],fr=yr[1],_o=ue.useState(null),Ro=(0,We.Z)(_o,2),Fl=Ro[0],Dr=Ro[1],Or=ue.useMemo(function(){return Ma?(0,Be.Z)(Ma):qt?Fl:eo},[eo,Fl,Ma,qt]);ue.useEffect(function(){qt&&Dr(St(on,bn))},[qt]);var Ao=function(no){fr(no),Dr(no),er&&er(no)},Xa=function(no){no.preventDefault()},Kr=function(no,Dt){var At=Dt.node;ya&&Wt(At)||(Nn(At.key,{selected:!qn.includes(At.key)}),Rt||vn(!1))};if(ue.useImperativeHandle($n,function(){var Er;return{scrollTo:(Er=nn.current)===null||Er===void 0?void 0:Er.scrollTo,onKeyDown:function(Dt){var At,ht=Dt.which;switch(ht){case be.Z.UP:case be.Z.DOWN:case be.Z.LEFT:case be.Z.RIGHT:(At=nn.current)===null||At===void 0||At.onKeyDown(Dt);break;case be.Z.ENTER:{if(na){var Rn=(na==null?void 0:na.node)||{},Ha=Rn.selectable,rr=Rn.value;Ha!==!1&&Kr(null,{node:{key:Wa},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:Xa},Wn);var to={fieldNames:bn};return Nr&&(to.loadedKeys=Nr),Or&&(to.expandedKeys=Or),ue.createElement("div",{onMouseDown:Xa},na&&kt&&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:Rt,icon:Ht,showIcon:$r,switcherIcon:Ya,showLine:Pr,loadData:qt?null:Yr,motion:ro,activeKey:Wa,checkable:ya,checkStrictly:!0,checkedKeys:La,selectedKeys:ya?[]:qn,defaultExpandAll:hr},to,{onActiveChange:pn,onSelect:Kr,onCheck:Kr,onExpand:Ao,onLoad:Tr,filterTreeNode:dr,expandAction:pa})))},wn=ue.forwardRef(Kt);wn.displayName="OptionList";var Mt=wn,Xt="SHOW_ALL",Ce="SHOW_PARENT",rt="SHOW_CHILD";function rn(Ut,Yn,$n,ba){var Ze=new Set(Ut);return Yn===rt?Ut.filter(function(Rt){var qt=$n[Rt];return!(qt&&qt.children&&qt.children.some(function(vn){var kt=vn.node;return Ze.has(kt[ba.value])})&&qt.children.every(function(vn){var kt=vn.node;return Wt(kt)||Ze.has(kt[ba.value])}))}):Yn===Ce?Ut.filter(function(Rt){var qt=$n[Rt],vn=qt?qt.parent:null;return!(vn&&!Wt(vn.node)&&Ze.has(vn.key))}):Ut}function tt(Ut){var Yn=Ut.searchPlaceholder,$n=Ut.treeCheckStrictly,ba=Ut.treeCheckable,Ze=Ut.labelInValue,Rt=Ut.value,qt=Ut.multiple;warning(!Yn,"`searchPlaceholder` has been removed."),$n&&Ze===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Ze||$n)&&warning(toArray(Rt).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||qt||ba?warning(!Rt||Array.isArray(Rt),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(Rt),"`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(Ut){return!Ut||(0,Ke.Z)(Ut)!=="object"}var Qt=ue.forwardRef(function(Ut,Yn){var $n=Ut.id,ba=Ut.prefixCls,Ze=ba===void 0?"rc-tree-select":ba,Rt=Ut.value,qt=Ut.defaultValue,vn=Ut.onChange,kt=Ut.onSelect,Wn=Ut.onDeselect,_n=Ut.searchValue,Je=Ut.inputValue,nt=Ut.onSearch,Xe=Ut.autoClearSearchValue,on=Xe===void 0?!0:Xe,bn=Ut.filterTreeNode,Nn=Ut.treeNodeFilterProp,wa=Nn===void 0?"value":Nn,pa=Ut.showCheckedStrategy,ta=Ut.treeNodeLabelProp,ya=Ut.multiple,qn=Ut.treeCheckable,zt=Ut.treeCheckStrictly,Ma=Ut.labelInValue,hr=Ut.fieldNames,So=Ut.treeDataSimpleMode,er=Ut.treeData,Ht=Ut.children,$r=Ut.loadData,Ya=Ut.treeLoadedKeys,Pr=Ut.onTreeLoad,ur=Ut.treeDefaultExpandAll,Yr=Ut.treeExpandedKeys,Nr=Ut.treeDefaultExpandedKeys,ro=Ut.onTreeExpand,Tr=Ut.treeExpandAction,ca=Ut.virtual,nn=Ut.listHeight,mr=nn===void 0?200:nn,ga=Ut.listItemHeight,sr=ga===void 0?20:ga,Wa=Ut.onDropdownVisibleChange,pn=Ut.dropdownMatchSelectWidth,na=pn===void 0?!0:pn,La=Ut.treeLine,Jn=Ut.treeIcon,dr=Ut.showTreeIcon,nr=Ut.switcherIcon,yr=Ut.treeMotion,eo=(0,xe.Z)(Ut,Xn),fr=(0,De.ZP)($n),_o=qn&&!zt,Ro=qn||zt,Fl=zt||Ma,Dr=Ro||ya,Or=(0,ze.Z)(qt,{value:Rt}),Ao=(0,We.Z)(Or,2),Xa=Ao[0],Kr=Ao[1],to=ue.useMemo(function(){return qn?pa||rt:Xt},[pa,qn]),Er=ue.useMemo(function(){return xn(hr)},[JSON.stringify(hr)]),no=(0,ze.Z)("",{value:_n!==void 0?_n:Je,postState:function(va){return va||""}}),Dt=(0,We.Z)(no,2),At=Dt[0],ht=Dt[1],Rn=function(va){ht(va),nt==null||nt(va)},Ha=Ye(er,Ht,So),rr=y(Ha,Er),Pn=rr.keyEntities,tr=rr.valueEntities,qa=ue.useCallback(function(ma){var va=[],or=[];return ma.forEach(function(Sr){tr.has(Sr)?or.push(Sr):va.push(Sr)}),{missingRawValues:va,existRawValues:or}},[tr]),oo=Le(Ha,At,{fieldNames:Er,treeNodeFilterProp:wa,filterTreeNode:bn}),cr=ue.useCallback(function(ma){if(ma){if(ta)return ma[ta];for(var va=Er._title,or=0;or{const{componentCls:Yn,treePrefixCls:$n,colorBgElevated:ba}=Ut,Ze=`.${$n}`;return[{[`${Yn}-dropdown`]:[{padding:`${Ut.paddingXS}px ${Ut.paddingXS/2}px`},(0,Ga.Yk)($n,(0,Et.TS)(Ut,{colorBgContainer:ba})),{[Ze]:{borderRadius:0,[`${Ze}-list-holder-inner`]:{alignItems:"stretch",[`${Ze}-treenode`]:{[`${Ze}-node-content-wrapper`]:{flex:"auto"}}}}},(0,ln.C2)(`${$n}-checkbox`,Ut),{"&-rtl":{direction:"rtl",[`${Ze}-switcher${Ze}-switcher_close`]:{[`${Ze}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Qa(Ut,Yn){return(0,jt.Z)("TreeSelect",$n=>{const ba=(0,Et.TS)($n,{treePrefixCls:Yn});return[Ca(ba)]},Ga.TM)(Ut)}var Da=function(Ut,Yn){var $n={};for(var ba in Ut)Object.prototype.hasOwnProperty.call(Ut,ba)&&Yn.indexOf(ba)<0&&($n[ba]=Ut[ba]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ba=Object.getOwnPropertySymbols(Ut);Ze{var $n,{prefixCls:ba,size:Ze,disabled:Rt,bordered:qt=!0,className:vn,rootClassName:kt,treeCheckable:Wn,multiple:_n,listHeight:Je=256,listItemHeight:nt=26,placement:Xe,notFoundContent:on,switcherIcon:bn,treeLine:Nn,getPopupContainer:wa,popupClassName:pa,dropdownClassName:ta,treeIcon:ya=!1,transitionName:qn,choiceTransitionName:zt="",status:Ma,treeExpandAction:hr,builtinPlacements:So,dropdownMatchSelectWidth:er,popupMatchSelectWidth:Ht,allowClear:$r}=Ut,Ya=Da(Ut,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:Pr,getPrefixCls:ur,renderEmpty:Yr,direction:Nr,virtual:ro,popupMatchSelectWidth:Tr,popupOverflow:ca}=ue.useContext(Tn.E_),nn=ur(),mr=ur("select",ba),ga=ur("select-tree",ba),sr=ur("tree-select",ba),{compactSize:Wa,compactItemClassnames:pn}=(0,Ja.ri)(mr,Nr),[na,La]=(0,jn.Z)(mr),[Jn]=Qa(sr,ga),dr=Ee()(pa||ta,`${sr}-dropdown`,{[`${sr}-dropdown-rtl`]:Nr==="rtl"},kt,La),nr=!!(Wn||_n),yr=(0,Ea.Z)(Ya.suffixIcon,Ya.showArrow),eo=($n=Ht!=null?Ht:er)!==null&&$n!==void 0?$n:Tr,{status:fr,hasFeedback:_o,isFormItemInput:Ro,feedbackIcon:Fl}=ue.useContext(ua.aM),Dr=(0,Fa.F)(fr,Ma),{suffixIcon:Or,removeIcon:Ao,clearIcon:Xa}=(0,xa.Z)(Object.assign(Object.assign({},Ya),{multiple:nr,showSuffixIcon:yr,hasFeedback:_o,feedbackIcon:Fl,prefixCls:mr,componentName:"TreeSelect"})),Kr=$r===!0?{clearIcon:Xa}:$r;let to;on!==void 0?to=on:to=(Yr==null?void 0:Yr("Select"))||ue.createElement(Aa.Z,{componentName:"Select"});const Er=(0,tn.Z)(Ya,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),no=ue.useMemo(()=>Xe!==void 0?Xe:Nr==="rtl"?"bottomRight":"bottomLeft",[Xe,Nr]),Dt=(0,da.Z)(So,ca),At=(0,vr.Z)(tr=>{var qa;return(qa=Ze!=null?Ze:Wa)!==null&&qa!==void 0?qa:tr}),ht=ue.useContext(Va.Z),Rn=Rt!=null?Rt:ht,Ha=Ee()(!ba&&sr,{[`${mr}-lg`]:At==="large",[`${mr}-sm`]:At==="small",[`${mr}-rtl`]:Nr==="rtl",[`${mr}-borderless`]:!qt,[`${mr}-in-form-item`]:Ro},(0,Fa.Z)(mr,Dr,_o),pn,vn,kt,La),rr=tr=>ue.createElement(Sn.Z,{prefixCls:ga,switcherIcon:bn,treeNodeProps:tr,showLine:Nn}),Pn=ue.createElement(ia,Object.assign({virtual:ro,disabled:Rn},Er,{dropdownMatchSelectWidth:eo,builtinPlacements:Dt,ref:Yn,prefixCls:mr,className:Ha,listHeight:Je,listItemHeight:nt,treeCheckable:Wn&&ue.createElement("span",{className:`${mr}-tree-checkbox-inner`}),treeLine:!!Nn,suffixIcon:Or,multiple:nr,placement:no,removeIcon:Ao,allowClear:Kr,switcherIcon:rr,showTreeIcon:ya,notFoundContent:to,getPopupContainer:wa||Pr,treeMotion:null,dropdownClassName:dr,choiceTransitionName:(0,_a.m)(nn,"",zt),transitionName:(0,_a.m)(nn,"slide-up",qn),treeExpandAction:hr}));return na(Jn(Pn))},ar=ue.forwardRef(Ra),kr=(0,Ba.Z)(ar);ar.TreeNode=se,ar.SHOW_ALL=Xt,ar.SHOW_PARENT=Ce,ar.SHOW_CHILD=rt,ar._InternalPanelDoNotUseOrYouWillBeFired=kr;var Mo=ar},24334:function(ot,Zt,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(xn>>>12&63)+(typeof Pt!="undefined"?We.charAt(xn>>>6&63):"=")+(typeof En!="undefined"?We.charAt(xn&63):"=")}return $e?E(be):be});var z=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,te=function(Ge){switch(Ge.length){case 4:var $e=(7&Ge.charCodeAt(0))<<18|(63&Ge.charCodeAt(1))<<12|(63&Ge.charCodeAt(2))<<6|63&Ge.charCodeAt(3),be=$e-65536;return Ke((be>>>10)+55296)+Ke((be&1023)+56320);case 3:return Ke((15&Ge.charCodeAt(0))<<12|(63&Ge.charCodeAt(1))<<6|63&Ge.charCodeAt(2));default:return Ke((31&Ge.charCodeAt(0))<<6|63&Ge.charCodeAt(1))}},oe=function(Ge){return Ge.replace(z,te)},se=function(Ge){var $e=Ge.length,be=$e%4,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))},st;we.Uint8Array&&(st=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:st},typeof Object.defineProperty=="function"){var Ye=function(Ge){return{value:Ge,enumerable:!1,writable:!0,configurable:!0}};we.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ye(function(){return Le(this)})),Object.defineProperty(String.prototype,"toBase64",Ye(function(Ge){return a(this,Ge)})),Object.defineProperty(String.prototype,"toBase64URI",Ye(function(){return a(this,!0)}))}}return we.Meteor&&(Base64=we.Base64),ot.exports?ot.exports.Base64=we.Base64:(b=[],Ee=function(){return we.Base64}.apply(Zt,b),Ee!==void 0&&(ot.exports=Ee)),{Base64:we.Base64}})},43141:function(ot,Zt,ae){"use strict";ae.d(Zt,{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 st(ee,ne,re){E(function(){return ee.apply(void 0,ne)},re)}function Me(ee,ne,re,de,ve,pe,Ae){ee.current=de,ne.current=ve,re.current=!1,pe.current&&(pe.current=null,Ae())}function Ye(ee,ne,re,de,ve,pe,Ae,ye,je,qe){if(ee){var _e=!1,He=null,Ve=function(){if(!_e){var la=ne.getState(),fa,Pa;try{fa=de(la,ve.current)}catch(Ka){Pa=Ka,He=Ka}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,Gt=lt===void 0?!1:lt,la=re.forwardRef,fa=la===void 0?!1:la,Pa=re.context,Ka=Pa===void 0?We:Pa,ir=(0,y.Z)(re,se);if(0)var pr;var Eo=Ka;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]);st(Me,[zs,rd,od,Qu,Vs,Rs,Is]),st(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?wn: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,Gt,la,fa){fa===void 0&&(fa={});var Pa=fa,Ka=Pa.pure,ir=Ka===void 0?!0:Ka,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,Qt),fu=Tt(lt,pe,"mapStateToProps"),su=Tt(Gt,ye,"mapDispatchToProps"),qi=Tt(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 _a(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 Tn(ee){ee===void 0&&(ee=ReactReduxContext);var ne=ee===ReactReduxContext?useDefaultStore:createStoreHook(ee);return function(){var de=ne();return de.dispatch}}var Va=null,Aa=function(ne,re){return ne===re};function vr(ee,ne,re,de){var ve=useReducer(function(Gt){return Gt+1},0),pe=ve[1],Ae=useMemo(function(){return createSubscription(re,de)},[re,de]),ye=useRef(),je=useRef(),qe=useRef(),_e=useRef(),He=re.getState(),Ve;try{if(ee!==je.current||He!==qe.current||ye.current){var lt=ee(He);_e.current===void 0||!ne(lt,_e.current)?Ve=lt:Ve=_e.current}else Ve=_e.current}catch(Gt){throw ye.current&&(Gt.message+=` The error may be correlated with this previous error: `+ye.current.stack+` -`),zt}return useIsomorphicLayoutEffect(function(){je.current=ee,qe.current=He,_e.current=Ve,ye.current=void 0}),useIsomorphicLayoutEffect(function(){function zt(){try{var 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=vr(de,ve,Ae,ye);return useDebugValue(je),je}}var Tn=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=` +`)},Nn=function(ne){return[bn(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,Nn(ne))}var ta=pa.bind(null,"warn"),ya=pa.bind(null,"error");function qn(){}function zt(ee,ne){return(0,Be.Z)({},ee,{},ne)}function Ma(ee,ne,re){var de=ne.map(function(ve){var pe=zt(re,ve.options);return ee.addEventListener(ve.eventName,ve.fn,pe),function(){ee.removeEventListener(ve.eventName,ve.fn,pe)}});return function(){de.forEach(function(pe){pe()})}}var hr=!0,So="Invariant failed";function er(ee){this.message=ee}er.prototype.toString=function(){return this.message};function Ht(ee,ne){if(!ee)throw hr?new er(So):new er(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 er){this.setState({});return}throw ve},re.render=function(){return this.props.children(this.setCallbacks)},ne}(b.Component),Ya=` 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 `,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?` +`},Yr=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,14 +346,14 @@ The error may be correlated with this previous error: in list `+ne.droppableId+` to list `+re.droppableId+` in position `+pe+` - `},Lr=function(ne,re,de){var ve=re.droppableId===de.droppableId;return ve?` + `},Nr=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+` - `},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` + `},ro=function(ne){var re=ne.destination;if(re)return Yr(ne.source,re);var de=ne.combine;return de?Nr(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 `+Pr(ne.index)+` `},ca=function(ne){if(ne.reason==="CANCEL")return` @@ -361,14 +361,14 @@ The error may be correlated with this previous error: `+Tr(ne.source)+` `;var re=ne.destination,de=ne.combine;return re?` You have dropped the item. - `+Qr(ne.source,re)+` + `+Yr(ne.source,re)+` `:de?` You have dropped the item. - `+Lr(ne.draggableId,ne.source,de)+` + `+Nr(ne.draggableId,ne.source,de)+` `:` The item has been dropped while not over a drop area. `+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=` + `},nn={dragHandleUsageInstructions:Ya,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}},Wa=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))},Jn=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)}}},nr=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?nr(re.pageMarginBox,ne):Ca(ne)},Dr=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||Ht(!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=Dr({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 Xa(ee){return Object.values?Object.values(ee):Object.keys(ee).map(function(ne){return ee[ne]})}function Kr(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=Lr(ee.top,ee.bottom),re=Lr(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=Lr(ne.top,ne.bottom),de=Lr(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)},Dn=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 Dn(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}))},sn=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(Qa(re,de))}function yn(ee){var ne=ee.afterDragging,re=ee.destination,de=ee.displacedBy,ve=ee.viewport,pe=ee.forceShouldAnimate,Ae=ee.last;return ne.reduce(function(je,qe){var _e=Ln(qe,de),He=qe.descriptor.id;je.all.push(He);var Ve=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),Gt={draggableId:He,shouldAnimate:lt};return je.visible[He]=Gt,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 Fn(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=qa(ne,de);if(ye==null)return Fn({insideDestination:re,inHomeList:qe,displacedBy:pe,destination:de});var _e=to(re,function(la){return la.descriptor.index===ye});if(!_e)return Fn({insideDestination:re,inHomeList:qe,displacedBy:pe,destination:de});var He=Pn(ne,re),Ve=re.indexOf(_e),lt=He.slice(Ve),Gt=yn({afterDragging:lt,destination:de,displacedBy:pe,last:Ae,viewport:ve.frame,forceShouldAnimate:je});return{displaced:Gt,displacedBy:pe,at:{type:"REORDER",destination:{droppableId:de.descriptor.id,index:ye}}}}function gr(ee,ne){return!!ne.effected[ee]}var br=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||Ht(!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=br({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||Ht(!1);var pe=ve.draggableId,Ae=de[pe].page.borderBox.center,ye=or({displaced:re.displaced,afterCritical:ne,combineWith:pe,displacedBy:re.displacedBy});return ga(Ae,ye)},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=Rn(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=Ut(Ve.page,_e.point);return hl({axis:je,moveRelativeTo:lt,isMoving:ye})}var Gt=Ae[Ae.length-1];if(Gt.descriptor.id===re.descriptor.id)return ye.borderBox.center;if(gr(Gt.descriptor.id,pe)){var la=Ut(Gt.page,pn(pe.displacedBy.point));return ol({axis:je,moveRelativeTo:la,isMoving:ye})}return ol({axis:je,moveRelativeTo:Gt.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=Jn(re,eo(Zl(He))),Gt=Jn(re,eo(Zl(Ve)));return lt!==Gt?lt-Gt: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=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=Lr(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 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),Gt=to(lt,function(fa){var Pa=fa.descriptor.id,Ka=fa.page.borderBox.center[je.line],ir=gr(Pa,ye),pr=Ju({displaced:pe,id:Pa});return ir?pr?Ve<=Ka: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&&Ht(!1),pe.phase==="DRAGGING"||pe.phase==="DROP_PENDING"||Ht(!1);var je=pe.critical,qe=pe.dimensions,_e=qe.draggables[pe.critical.draggable.id],He=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,Gt=lt?Ha(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:Gt,combine:la},Ka=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=!Wa(pe.current.client.offset,Ka)||!!Pa.combine;if(!pr){re(kn({completed:ir}));return}var Eo=$o({current:pe.current.client.offset,destination:Ka,reason:Ae}),uo={newHomeClientOffset:Ka,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=_n(re),ve=Ml(de),pe=qn;function Ae(){return pe!==qn}function ye(){Ae()&&Ht(!1),pe=Ma(window,[ve])}function je(){Ae()||Ht(!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=Kr(ee,function(qe){return qe.timerId===pe});Ae===-1&&Ht(!1);var ye=ee.splice(Ae,1),je=ye[0];je.callback()},re=function(pe){var Ae=setTimeout(function(){return ne(Ae)}),ye={timerId:Ae,callback:pe};ee.push(ye)},de=function(){if(ee.length){var pe=[].concat(ee);ee.length=0,pe.forEach(function(Ae){clearTimeout(Ae.timerId),Ae.callback()})}};return{add:re,flush:de}},$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&&Ht(!1),ul("onBeforeCapture",function(){var Gt=ee().onBeforeCapture;if(Gt){var la={draggableId:Ve,mode:lt};Gt(la)}})},pe=function(Ve,lt){de&&Ht(!1),ul("onBeforeDragStart",function(){var Gt=ee().onBeforeDragStart;Gt&&Gt(tl(Ve,lt))})},Ae=function(Ve,lt){de&&Ht(!1);var Gt=tl(Ve,lt);de={mode:lt,lastCritical:Ve,lastLocation:Gt.source,lastCombine:null},re.add(function(){ul("onDragStart",function(){return Xo(ee().onDragStart,Gt,ne,nn.onDragStart)})})},ye=function(Ve,lt){var Gt=Ha(lt),la=rr(lt);de||Ht(!1);var fa=!mo(Ve,de.lastCritical);fa&&(de.lastCritical=Ve);var Pa=!$l(de.lastLocation,Gt);Pa&&(de.lastLocation=Gt);var Ka=!ii(de.lastCombine,la);if(Ka&&(de.lastCombine=la),!(!fa&&!Pa&&!Ka)){var ir=(0,Be.Z)({},tl(Ve,de.mode),{combine:la,destination:Gt});re.add(function(){ul("onDragUpdate",function(){return Xo(ee().onDragUpdate,ir,ne,nn.onDragUpdate)})})}},je=function(){de||Ht(!1),re.flush()},qe=function(Ve){de||Ht(!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"&&Ht(!1),ee.dispatch(kn({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(dn())}};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"&&Ht(!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,Cn=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,Gt=Object.keys(He).map(function(Pa){return ne.draggable.getById(Pa).getDimension(mr)}).sort(function(Pa,Ka){return Pa.descriptor.index-Ka.descriptor.index}),la=Object.keys(lt).map(function(Pa){var Ka=ne.droppable.getById(Pa),ir=Ka.callbacks.getScrollWhileDragging();return{droppableId:Pa,scroll:ir}}),fa={additions:Gt,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||Ht(!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:Dt(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,Gt){ee.droppable.exists(lt)||Ht(!1),re&&ne.updateDroppableIsEnabled({id:lt,isEnabled:Gt})},pe=function(lt,Gt){re&&(ee.droppable.exists(lt)||Ht(!1),ne.updateDroppableIsCombineEnabled({id:lt,isCombineEnabled:Gt}))},Ae=function(lt,Gt){re&&(ee.droppable.exists(lt)||Ht(!1),ne.updateDroppableScroll({id:lt,newScroll:Gt}))},ye=function(lt,Gt){re&&ee.droppable.getById(lt).callbacks.scroll(Gt)},je=function(){if(re){de.stop();var lt=re.critical.droppable;ee.droppable.getAllByType(lt.type).forEach(function(Gt){return Gt.callbacks.dragStopped()}),re.unsubscribe(),re=null}},qe=function(lt){re||Ht(!1);var Gt=re.critical.draggable;lt.type==="ADDITION"&&Sl(ee,Gt,lt.value)&&de.add(lt.value),lt.type==="REMOVAL"&&Sl(ee,Gt,lt.value)&&de.remove(lt.value)},_e=function(lt){re&&Ht(!1);var Gt=ee.draggable.getById(lt.draggableId),la=ee.droppable.getById(Gt.descriptor.droppableId),fa={draggable:Gt.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=kt(function(ee){return At(ee).filter(function(ne){return!(!ne.isEnabled||!ne.frame)})}),_l=function(ne,re){var de=to(dl(re),function(ve){return ve.frame||Ht(!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}),Ua=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(Wa(qe,mr))return null;var _e=Wi({container:re,subject:de,proposedScroll:qe});return _e?Wa(_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 Wa(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=Ua({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=Ua({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=_n(ne),ve=_n(re),pe=null,Ae=function(_e){pe||Ht(!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&&Ht(!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 Gt=sr(He,lt);return Gt},ye=function(qe){var _e=qe.scrollJumpRequest;if(_e){var He=Ol(qe.impact);He||Ht(!1);var Ve=pe(qe.dimensions.droppables[He],_e);if(Ve){var lt=qe.viewport,Gt=Ae(qe.isWindowScrollAllowed,lt,Ve);Gt&&ve(qe,Gt)}}};return ye},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},_t="data-rbd",it=function(){var ee=_t+"-drag-handle";return{base:ee,draggableId:ee+"-draggable-id",contextId:ee+"-context-id"}}(),$t=function(){var ee=_t+"-draggable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),ra=function(){var ee=_t+"-droppable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),Ot={contextId:_t+"-scroll-container-context-id"},wt=function(ne){return function(re){return"["+re+'="'+ne+'"]'}},ut=function(ne,re){return ne.map(function(de){var ve=de.styles[re];return ve?de.selector+" { "+ve+" }":""}).join(" ")},xt="pointer-events: none;",An=function(ee){var ne=wt(ee),re=function(){var ye=` cursor: -webkit-grab; cursor: grab; `;return{selector:ne(it.contextId),styles:{always:` @@ -377,7 +377,7 @@ The error may be correlated with this previous error: touch-action: manipulation; `,resting:ye,dragging:xt,dropAnimating:ye}}}(),de=function(){var ye=` transition: `+xo.outOfTheWay+`; - `;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:` + `;return{selector:ne($t.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: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=` + `}},Ae=[de,re,ve,pe];return{always:ut(Ae,"always"),resting:ut(Ae,"resting"),dragging:ut(Ae,"dragging"),dropAnimating:ut(Ae,"dropAnimating"),userCancel:ut(Ae,"userCancel")}},cn=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect,Ft=function(){var ne=document.querySelector("head");return ne||Ht(!1),ne},bt=function(ne){var re=document.createElement("style");return ne&&re.setAttribute("nonce",ne),re.type="text/css",re};function hn(ee,ne){var re=Sn(function(){return An(ee)},[ee]),de=(0,b.useRef)(null),ve=(0,b.useRef)(null),pe=ln(kt(function(He){var Ve=ve.current;Ve||Ht(!1),Ve.textContent=He}),[]),Ae=ln(function(He){var Ve=de.current;Ve||Ht(!1),Ve.textContent=He},[]);cn(function(){!de.current&&!ve.current||Ht(!1);var He=bt(ne),Ve=bt(ne);return de.current=He,ve.current=Ve,He.setAttribute(_t+"-always",ee),Ve.setAttribute(_t+"-dynamic",ee),Ft().appendChild(He),Ft().appendChild(Ve),Ae(re.always),pe(re.resting),function(){var lt=function(la){var fa=la.current;fa||Ht(!1),Ft().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=Sn(function(){return{dragging:ye,dropping:je,resting:qe}},[ye,je,qe]);return _e}var en=function(ee){return ee&&ee.ownerDocument?ee.ownerDocument.defaultView:window};function Jt(ee){return ee instanceof en(ee).HTMLElement}function $a(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||!Jt(ve)?null:ve}function Br(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 Gt={id:Ve,focus:lt};return ne.current[Ve]=Gt,function(){var fa=ne.current,Pa=fa[Ve];Pa!==Gt&&delete fa[Ve]}},[]),Ae=ln(function(Ve){var lt=$a(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)},[]);cn(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 Za(){var ee={draggables:{},droppables:{}},ne=[];function re(He){return ne.push(He),function(){var lt=ne.indexOf(He);lt!==-1&&ne.splice(lt,1)}}function de(He){ne.length&&ne.forEach(function(Ve){return Ve(He)})}function ve(He){return ee.draggables[He]||null}function pe(He){var Ve=ve(He);return Ve||Ht(!1),Ve}var Ae={register:function(Ve){ee.draggables[Ve.descriptor.id]=Ve,de({type:"ADDITION",value:Ve})},update:function(Ve,lt){var Gt=ee.draggables[lt.descriptor.id];Gt&&Gt.uniqueId===Ve.uniqueId&&(delete ee.draggables[lt.descriptor.id],ee.draggables[Ve.descriptor.id]=Ve)},unregister:function(Ve){var lt=Ve.descriptor.id,Gt=ve(lt);Gt&&Ve.uniqueId===Gt.uniqueId&&(delete ee.draggables[lt],de({type:"REMOVAL",value:Ve}))},getById:pe,findById:ve,exists:function(Ve){return!!ve(Ve)},getAllByType:function(Ve){return Xa(ee.draggables).filter(function(lt){return lt.descriptor.type===Ve})}};function ye(He){return ee.droppables[He]||null}function je(He){var Ve=ye(He);return Ve||Ht(!1),Ve}var qe={register:function(Ve){ee.droppables[Ve.descriptor.id]=Ve},unregister:function(Ve){var lt=ye(Ve.descriptor.id);lt&&Ve.uniqueId===lt.uniqueId&&delete ee.droppables[Ve.descriptor.id]},getById:je,findById:ye,exists:function(Ve){return!!ye(Ve)},getAllByType:function(Ve){return Xa(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 Hr(){var ee=Sn(Za,[]);return(0,b.useEffect)(function(){return function(){requestAnimationFrame(ee.clean)}},[ee]),ee}var Un=b.createContext(null),zr=function(){var ee=document.body;return ee||Ht(!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=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),zr().appendChild(pe),function(){setTimeout(function(){var je=zr();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 In(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=In("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",zr().appendChild(Ae),function(){var je=zr();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&&Ht(!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(Hn.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&&Vt(!1);var ye={abandon:Ae};return ee=ye,ye}function ve(){ee||Vt(!1),ee=null}function pe(){ee&&(ee.abandon(),ve())}return{isClaimed:ne,isActive:re,claim:de,release:ve,tryAbandon:pe}}var Xl=9,Hr=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[Hr]=!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=to(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"&&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;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"&&Ht(!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"&&Ht(!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 Gt={x:He.clientX,y:He.clientY};re.current(),qe(lt,Gt)}}}}}},[ee]),ve=Sn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(He){if(!He.defaultPrevented){var Ve=ee.findClosestDraggableId(He);if(Ve){var lt=ee.findOptionsForDraggable(Ve);lt&&(lt.shouldRespectForcePress||ee.canGetLock(Ve)&&He.preventDefault())}}}}},[ee]),pe=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(Gt){ne.current=Gt}});re.current=Ma(window,Ve,He)},[ye,Ae]),qe=ln(function(He,Ve){ne.current.type!=="IDLE"&&Ht(!1),ne.current={type:"PENDING",point:Ve,actions:He},je()},[je]);cn(function(){return pe(),function(){re.current()}},[pe])}var yi;function Yt(){}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 xr(ee){var ne=(0,b.useRef)(Yt),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||Ht(!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]);cn(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"&&Ht(!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=Sn(function(){return{eventName:"touchstart",fn:function(lt){if(!lt.defaultPrevented){var Gt=ee.findClosestDraggableId(lt);if(Gt){var la=ee.tryGetLock(Gt,ye,{sourceEvent:lt});if(la){var fa=lt.touches[0],Pa=fa.clientX,Ka=fa.clientY,ir={x:Pa,y:Ka};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},Gt={cancel:je,completed:ye,getPhase:de},la=Ma(window,fi(Gt),lt),fa=Ma(window,vo(Gt),lt);re.current=function(){la(),fa()}},[je,de,ye]),_e=ln(function(){var lt=de();lt.type!=="PENDING"&&Ht(!1);var Gt=lt.actions.fluidLift(lt.point);ve({type:"DRAGGING",actions:Gt,hasMoved:!1})},[de,ve]),He=ln(function(lt,Gt){de().type!=="IDLE"&&Ht(!1);var la=setTimeout(_e,fo);ve({type:"PENDING",point:Gt,actions:lt,longPressTimerId:la}),qe()},[qe,de,ve,_e]);cn(function(){return Ae(),function(){re.current();var Gt=de();Gt.type==="PENDING"&&(clearTimeout(Gt.longPressTimerId),ve(Rr))}},[de,Ae,ve]),cn(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 Jt(re)?Ki(ee,re):!1}var hs=function(ee){return Ca(ee.getBoundingClientRect()).center};function qu(ee){return ee instanceof en(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||!Jt(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="["+$t.contextId+'="'+ee+'"]',de=Er(document.querySelectorAll(re)),ve=to(de,function(pe){return pe.getAttribute($t.id)===ne});return!ve||!Jt(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 Wr(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 Gt(){return ne.isActive(He)}function la(uo,Oo){io({expected:uo,phase:Ve,isLockActive:Gt,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"&&Ht(!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:Gt,shouldWarn:!1})},shouldRespectForcePress:lt,drop:function(jl){return Tl("DROP",jl)},cancel:function(jl){return Tl("CANCEL",jl)}},uo.actions)}function Ka(uo){var Oo=_n(function(Vo){fa(function(){return It({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(Vt)},moveRight:function(){return fa(On)},moveDown:function(){return fa(mn)},moveLeft:function(){return fa(Mn)}};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:Gt,shouldWarn:!0});uo&&ne.release()}var Eo={isActive:function(){return io({expected:"PRE_DRAG",phase:Ve,isLockActive:Gt,shouldWarn:!1})},shouldRespectForcePress:lt,fluidLift:Ka,snapLift:ir,abort:pr};return Eo}var ho=[Cu,xr,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(Ka,ir){Ka.isDragging&&!ir.isDragging&&ye.tryAbandon()},[ye]);cn(function(){var Ka=re.getState(),ir=re.subscribe(function(){var pr=re.getState();je(Ka,pr),Ka=pr});return ir},[ye,re,je]),cn(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,Ka,ir){return Wr({lockAPI:ye,registry:de,contextId:ne,store:re,draggableId:Pa,forceSensorStop:Ka,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 Ka=de.draggable.findById(Pa);return Ka?Ka.options:null},[de.draggable]),lt=ln(function(){ye.isClaimed()&&(ye.tryAbandon(),re.getState().phase!=="IDLE"&&re.dispatch(Lt()))},[ye,re]),Gt=ln(ye.isClaimed,[ye]),la=Sn(function(){return{canGetLock:qe,tryGetLock:_e,findClosestDraggableId:He,findOptionsForDraggable:Ve,tryReleaseLock:lt,isLockClaimed:Gt}},[qe,_e,He,Ve,lt,Gt]);bu(Ae);for(var fa=0;faDe in ke?he(ke,De,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ke[De]=Oe,Fe=(ke,De)=>{for(var Oe in De||(De={}))Ie.call(De,Oe)&&Ge(ke,Oe,De[Oe]);if(Be)for(var Oe of Be(De))be.call(De,Oe)&&Ge(ke,Oe,De[Oe]);return ke};const Ye=ke=>React.createElement("svg",Fe({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},ke),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));xt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},95006:function(_e,xt,oe){"use strict";var b=oe(59301),he=Object.defineProperty,Be=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Ge=(ke,De,Oe)=>De in ke?he(ke,De,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ke[De]=Oe,Fe=(ke,De)=>{for(var Oe in De||(De={}))Ie.call(De,Oe)&&Ge(ke,Oe,De[Oe]);if(Be)for(var Oe of Be(De))be.call(De,Oe)&&Ge(ke,Oe,De[Oe]);return ke};const Ye=ke=>React.createElement("svg",Fe({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},ke),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));xt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},64242:function(){"use strict";function _e(le,E,a,x){a===void 0&&(a=0),x===void 0&&(x=1/0),this._name=le,this._defaultValue=E,this._minimum=a,this._maximum=x}Object.defineProperty(_e.prototype,"name",{get:function(){return this._name},set:function(le){if(typeof le!="string"||le==="")throw new Error("Shape name must be a valid string.");this._name=le}}),Object.defineProperty(_e.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("The default value must be a real number, not: "+le);this._defaultValue=le}}),Object.defineProperty(_e.prototype,"minimum",{get:function(){return this._minimum},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("Minimum must be a real number, not: "+le);this._minimum=le}}),Object.defineProperty(_e.prototype,"maximum",{get:function(){return this._maximum},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("Maximum must be a real number, not: "+le);this._maximum=le}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(le,E){var a=go.Shape._FigureParameters[le];return a?a[E]:null},go.Shape.setFigureParameter=function(le,E,a){if(!(a instanceof _e))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValuea.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var x=go.Shape._FigureParameters[le];x||(x=[],go.Shape._FigureParameters[le]=x),x[E]=a};var xt=[];function oe(le,E){var a=xt.pop();return a===void 0?new go.Point(le,E):(a.x=le,a.y=E,a)}function b(){var le=xt.pop();return le===void 0?new go.Point:le}function he(le){xt.push(le)}function Be(le,E,a,x,y,z,ne,re,ie){ie||(ie=new go.Point);var ge=le-a,fe=y-ne,Pe=NaN,Ue=NaN;if(ge===0)if(fe===0)le===a&&(Pe=le,Ue=E);else{var Re=(z-re)/fe,lt=z-Re*y;Pe=le,Ue=Re*Pe+lt}else if(fe===0){var Le=(E-x)/ge,Ce=E-Le*le;Pe=y,Ue=Le*Pe+Ce}else{var Le=(E-x)/ge,Re=(z-re)/fe,Ce=E-Le*le,lt=z-Re*y;Pe=(lt-Ce)/(Le-Re),Ue=Le*Pe+Ce}return ie.x=Pe,ie.y=Ue,ie}function Ie(le,E,a,x,y,z,ne,re,ie,ge,fe,Pe,Ue,Re){var lt=1-ie,Le=ie,Ce=le*lt+a*Le,Xe=E*lt+x*Le,nt=a*lt+y*Le,ye=x*lt+z*Le,gt=y*lt+ne*Le,pt=z*lt+re*Le,wt=Ce*lt+nt*Le,ut=Xe*lt+ye*Le,Yt=nt*lt+gt*Le,ln=ye*lt+pt*Le,Nt=wt*lt+Yt*Le,Wt=ut*lt+ln*Le;ge.x=Ce,ge.y=Xe,fe.x=wt,fe.y=ut,Pe.x=Nt,Pe.y=Wt,Ue.x=Yt,Ue.y=ln,Re.x=gt,Re.y=pt}var be=new go.Spot(.156,.156),Ge=new go.Spot(.844,.844),Fe=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new _e("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,E/3),x=Math.min(x,a/3);var y=x*Fe,z=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,E-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,x,E-y,0,E,y)).add(new go.PathSegment(go.PathSegment.Line,E,a-x)).add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,a-y,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,x,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,y,a,0,a-y)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()));return y>1&&(z.spot1=new go.Spot(0,0,y,y),z.spot2=new go.Spot(1,1,-y,-y)),z}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=a/2,x.endX=E,x.endY=a/2,x}),go.Shape.defineFigureGenerator("LineV",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=E/2,x.startY=0,x.endX=E/2,x.endY=a,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LineRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.25*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)))}),go.Shape.defineFigureGenerator("LineDown",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Line,E,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.75*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,a)))}),go.Shape.defineFigureGenerator("LineUp",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,E,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(le,E,a){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*E,(1-x)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,x*a)).add(new go.PathSegment(go.PathSegment.Move,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(le,E,a){var x=E/2,y=new go.Geometry().add(new go.PathFigure(E,E/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return y.spot1=be,y.spot2=Ge,y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Line1",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=E,x.endY=a,x}),go.Shape.defineFigureGenerator("Line2",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=E,x.startY=0,x.endX=0,x.endY=a,x}),go.Shape.defineFigureGenerator("Curve1",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,Fe*E,0,E,(1-Fe)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,0,Fe*a,(1-Fe)*E,a)))}),go.Shape.defineFigureGenerator("Curve3",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,Fe*a,Fe*E,a)))}),go.Shape.defineFigureGenerator("Curve4",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-Fe)*E,0,0,(1-Fe)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new _e("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var y=Math.abs(x)*E;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),yE&&(x=E);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y.5&&(x=.5);var y=Math.abs(x)*E;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),yE&&(x=E/2);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),yE&&(x=E/2);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())):z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),y0&&(ne.add(new go.PathSegment(go.PathSegment.Move,E/2+re,E/2)),ne.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y,y,re,re).close())),z.spot1=be,z.spot2=Ge,z.defaultStretch=go.GraphObject.Uniform,z}),go.Shape.defineFigureGenerator("Cloud",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.08034461*E,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*E,.05349299*a,-.09239631*E,.07836421*a,.1406031*E,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*E,.074219*a,.2450511*E,-.00697547*a,.3776197*E,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*E,.07004196*a,.4539471*E,0,.6066018*E,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*E,.08370865*a,.6914277*E,-.01904177*a,.8921095*E,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*E,.3194596*a,1.036446*E,.04105738*a,1.020377*E,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*E,.562044*a,1.04448*E,.360238*a,.992256*E,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*E,.8217117*a,1.032337*E,.5771781*a,1.018411*E,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*E,.9156953*a,1.028411*E,.9571472*a,.8556702*E,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*E,.9310455*a,.7431877*E,1.009325*a,.5624123*E,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*E,.9344623*a,.4820677*E,1.031761*a,.3030112*E,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.870098*a,.2329994*E,1.01518*a,.03213784*E,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*E,.6545475*a,-.02812061*E,.9032597*a,-.01205169*E,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*E,.4265613*a,-.01812061*E,.6089503*a,-.00606892*E,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.1944299*a,-.01606892*E,.3892545*a,-.01205169*E,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(le,E,a){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,x*a)).add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Line,x*E,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,x*a).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new _e("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new _e("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(le,E,a){var x=le?le.parameter1:NaN,y=le?le.parameter2:NaN;isNaN(x)&&(x=0),isNaN(y)&&(y=315);var z=x%360;z<0&&(z+=360);var ne=y%360,re=Math.min(E,a)/2;return new go.Geometry().add(new go.PathFigure(re,re).add(new go.PathSegment(go.PathSegment.Arc,z,ne,re,re,re,re).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(le,E,a){var x=Fe/Math.SQRT2*.5,y=Math.SQRT2/2,z=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,y*E,z*a,E,(1-x)*a,(y+x)*E,(z+x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new _e("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var y=Math.min(x,E)/2,z=E/2,ne=a/2;return new go.Geometry().add(new go.PathFigure(z-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+y,0)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne-y)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne-y).close()))}),go.Shape.setFigureParameter("ThinCross",0,new _e("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=Math.min(x,E)/2,z=E/2,ne=a/2;return new go.Geometry().add(new go.PathFigure(z-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+y,0)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne-y)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne-y).close()))}),go.Shape.setFigureParameter("ThickX",0,new _e("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(le,E,a){var x=le?le.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),E===0||a===0){var y=new go.Geometry(go.Geometry.Rectangle);return y.startX=0,y.startY=0,y.endX=E,y.endY=a,y}else{var z=E/2,ne=a/2,re=Math.atan2(a,E),ie=x-Math.min(Math.cos(re)*x/2,z),ge=x-Math.min(Math.sin(re)*x/2,ne),y=new go.Geometry,fe=new go.PathFigure(ie,0,!0);return y.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,z,.2*a)),fe.add(new go.PathSegment(go.PathSegment.Line,E-ie,0)),fe.add(new go.PathSegment(go.PathSegment.Line,E,ge)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,E,a-ge)),fe.add(new go.PathSegment(go.PathSegment.Line,E-ie,a)),fe.add(new go.PathSegment(go.PathSegment.Line,z,.8*a)),fe.add(new go.PathSegment(go.PathSegment.Line,ie,a)),fe.add(new go.PathSegment(go.PathSegment.Line,0,a-ge)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ge).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new _e("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=new go.Geometry,z=new go.PathFigure(.1*E,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),y}),go.Shape.setFigureParameter("SquareIBeam",0,new _e("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*a).close()),y}),go.Shape.setFigureParameter("RoundedIBeam",0,new _e("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.5);var y=new go.Geometry,z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,a,Math.abs(1-x)*E,.25*a,Math.abs(1-x)*E,.75*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*E,.75*a,x*E,.25*a).close()),y}),go.Shape.defineFigureGenerator("HalfEllipse",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,Fe*E,0,E,(.5-Fe/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,(.5+Fe/2)*a,Fe*E,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,0,E,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*E,.75*a,.5*E,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*E,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,0,0,.45*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.55*E,0,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.5*a,.9*E,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*E,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.6*E,.2*a,E,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.7*a,E,.8*a,.6*E,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,.5*E,.75*a,.55*E,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.7*a,.45*E,.95*a,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*E,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*E,.01*a,0,.25*a,.4*E,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.4*E,.6*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.15*E,a,.5*E,.75*a,.45*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.6*a,.55*E,.95*a,.5*E,.75*a));var z=.2,ne=.3,re=0,ie=z*Fe;return y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5+z+re)*a,(.5-z+ne)*E,(.5+ie+re)*a,(.5-ie+ne)*E,(.5+z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+ne)*E,(.5+re)*a,(.5+ie+ne)*E,(.5+z+re)*a,(.5+z+ne)*E,(.5+ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5-z+re)*a,(1-.5+z+ne)*E,(.5-ie+re)*a,(.5+ie+ne)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.65*E,.36771243*a,(.5-ie+ne)*E,(.5-z+re)*a,(.5-z+ne+.05)*E,(.5-ie+re-.02)*a)),z=.2,ne=0,re=-.3,ie=z*Fe,y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+ne)*E,(.5+re)*a,(.5+ie+ne)*E,(.5+z+re)*a,(.5+z+ne)*E,(.5+ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5-z+re)*a,(1-.5+z+ne)*E,(.5-ie+re)*a,(.5+ie+ne)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+ne)*E,(.5+re)*a,(.5-ie+ne)*E,(.5-z+re)*a,(.5-z+ne)*E,(.5-ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ie+ne)*E,(.5+z+re)*a,(.5-z+ne)*E,(.5+ie+re)*a,(.5-ie+ne)*E,(.5+z+re)*a)),z=.2,ne=-.3,re=0,ie=z*Fe,y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5-z+re)*a,(1-.5+z+ne-.05)*E,(.5-ie+re-.02)*a,(.5+ie+ne)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+ne)*E,(.5+re)*a,(.5-ie+ne)*E,(.5-z+re)*a,(.5-z+ne)*E,(.5-ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5+z+re)*a,(.5-z+ne)*E,(.5+ie+re)*a,(.5-ie+ne)*E,(.5+z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.6*a,(.5+ie+ne)*E,(.5+z+re)*a,(.5+z+ne)*E,(.5+ie+re)*a).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.5,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*.5,E*.5,E*.5,E*.5)),y.add(new go.PathSegment(go.PathSegment.Arc,90,-180,E*.5,E*.75,E*.25,E*.25)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,E*.5,E*.25,E*.25,E*.25));var z=.1,ne=.5,re=.25;return y.add(new go.PathSegment(go.PathSegment.Move,(ne+z)*E,re*a)),y.add(new go.PathSegment(go.PathSegment.Arc,0,-360,E*ne,a*re,z*E,z*E).close()),y=new go.PathFigure(E*.5,0,!1),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*.5,E*.5,E*.5,E*.5)),re=.75,y=new go.PathFigure((ne+z)*E,re*a,!0),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,0,360,E*ne,a*re,z*E,z*E).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(le,E,a){var x=.8535533905932737,y=.5*E,z=.5*a;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,y,z,y,z)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,y,z)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,x*a)).add(new go.PathSegment(go.PathSegment.Move,y,z)).add(new go.PathSegment(go.PathSegment.Line,x*E,x*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=.5,re=.5,ie=new go.PathFigure(ne*E,(re-z)*a);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),z=.4,y=Fe*.4;var ge=b(),fe=b(),Pe=b(),Ue=b();Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.42,ge,fe,Pe,Ue,Ue);var Re=b(),lt=b(),Le=b();Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.58,Ue,Ue,Le,Re,lt);var Ce=b(),Xe=b(),nt=b();Ie(ne,re+z,ne-y,re+z,ne-z,re+y,ne-z,re,.42,Ce,Xe,nt,Ue,Ue);var ye=b(),gt=b(),pt=b();return Ie(ne,re+z,ne-y,re+z,ne-z,re+y,ne-z,re,.58,Ue,Ue,pt,ye,gt),ie.add(new go.PathSegment(go.PathSegment.Move,pt.x*E,pt.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,ye.x*E,ye.y*a,gt.x*E,gt.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*E,Pe.y*a,ge.x*E,ge.y*a,fe.x*E,fe.y*a)),ie.add(new go.PathSegment(go.PathSegment.Line,pt.x*E,pt.y*a).close()),ie.add(new go.PathSegment(go.PathSegment.Move,nt.x*E,nt.y*a)),ie.add(new go.PathSegment(go.PathSegment.Line,Le.x*E,Le.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,Re.x*E,Re.y*a,lt.x*E,lt.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,nt.x*E,nt.y*a,Ce.x*E,Ce.y*a,Xe.x*E,Xe.y*a).close()),he(ge),he(fe),he(Pe),he(Ue),he(Re),he(lt),he(Le),he(Ce),he(Xe),he(nt),he(ye),he(gt),he(pt),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*E,0)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*E,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.5*a,E,.25*a,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new _e("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>E&&(x=E);var y=(E-x)/2,z=y+x;return new go.Geometry().add(new go.PathFigure(z,.5*a).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*E,0)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(le,E,a){var x=new go.Geometry,y=Fe*.4,z=.4,ne=.5,re=.5,ie=b(),ge=b(),fe=b(),Pe=b(),Ue=new go.PathFigure((ne-z)*E,re*a,!1);x.add(Ue),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.44,fe,Pe,ge,ie,ie),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*E,ge.y*a,fe.x*E,fe.y*a,Pe.x*E,Pe.y*a));var Re=oe(ge.x,ge.y);Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.56,ie,ie,ge,fe,Pe);var lt=oe(ge.x,ge.y);Ue.add(new go.PathSegment(go.PathSegment.Line,(Re.x*.1+.95*.9)*E,Re.y*.1*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,.85*E,Re.y*.1*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,.85*E,0)),Ue.add(new go.PathSegment(go.PathSegment.Line,E,0)),Ue.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,(lt.x*.1+.9)*E,.15*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,(lt.x*.1+.9)*E,(lt.y*.1+.05*.9)*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,lt.x*E,lt.y*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,fe.x*E,fe.y*a,Pe.x*E,Pe.y*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),z=.35,y=Fe*.35;var Le=new go.PathFigure(ne*E,(re-z)*a,!1);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a));var Ce=new go.PathFigure((ne-z)*E,re*a,!1);return x.add(Ce),he(ie),he(ge),he(fe),he(Pe),he(Re),he(lt),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(le,E,a){var x=new go.Geometry,y=.375,z=0,ne=-.125,re=y*Fe,ie=new go.PathFigure((.525+z)*E,(.5+y+ne)*a,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+ne)*a,(.5+re+z)*E,(.5+y+ne)*a,(.5+y+z)*E,(.5+re+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+ne)*a,(1-.5+y+z)*E,(.5-re+ne)*a,(.5+re+z)*E,(.5-y+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+ne)*a,(.5-re+z)*E,(.5-y+ne)*a,(.5-y+z)*E,(.5-re+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.475+z)*E,(.5+y+ne)*a,(.5-y+z)*E,(.5+re+ne)*a,(.5-re+z)*E,(.5+y+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*E,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*E,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*E,a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*E,a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*E,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a).close()),y=.325,z=0,ne=-.125,re=y*Fe;var ie=new go.PathFigure((1-.5+y+z)*E,(.5+ne)*a,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5+y+ne)*a,(.5+y+z)*E,(.5+re+ne)*a,(.5+re+z)*E,(.5+y+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+ne)*a,(.5-re+z)*E,(.5+y+ne)*a,(.5-y+z)*E,(.5+re+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+ne)*a,(.5-y+z)*E,(.5-re+ne)*a,(.5-re+z)*E,(.5-y+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+ne)*a,(.5+re+z)*E,(.5-y+ne)*a,(1-.5+y+z)*E,(.5-re+ne)*a));var ie=new go.PathFigure((.525+z)*E,(.5+y+ne)*a,!1);return x.add(ie),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(le,E,a){var x=le?le.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(le,E,a){var x=le?le.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,x*E,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,x*E,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(le,E,a){var x=new go.Geometry().add(new go.PathFigure(.5*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*E,.5*a,.5*E,.5*a)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Move,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(le,E,a){var x=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(le,E,a){var x=.5;return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,x*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new _e("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new _e("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=le?le.parameter2:NaN;isNaN(y)&&(y=.3);var z=(1-x)*E,ne=(.5-y/2)*a,re=(.5+y/2)*a,ie=new go.Geometry,ge=new go.PathFigure(0,ne,!0);ie.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,z,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,z,0)),ge.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Line,z,a)),ge.add(new go.PathSegment(go.PathSegment.Line,z,re)),ge.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),ie.spot1=new go.Spot(0,ne/a);var fe=Be(0,re/a,1,re/a,z/E,1,1,.5,b());return ie.spot2=new go.Spot(fe.x,fe.y),he(fe),ie}),go.Shape.setFigureParameter("Arrow2",0,new _e("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new _e("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=30),x>E&&(x=E);var y=le?le.parameter2:NaN;isNaN(y)&&(y=30),y=Math.min(y,a/2);var z=E-x,ne=(a-y)/2,re=ne+y,ie=new go.Geometry,ge=new go.PathFigure(0,ne,!0);ie.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,z,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,z,0)),ge.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Line,z,a)),ge.add(new go.PathSegment(go.PathSegment.Line,z,re)),ge.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),ie.spot1=new go.Spot(0,ne/a);var fe=Be(0,re/a,1,re/a,z/E,1,1,.5,b());return ie.spot2=new go.Spot(fe.x,fe.y),he(fe),ie}),go.Shape.defineFigureGenerator("Chevron",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.214*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,1*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.786*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new _e("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*a,z=(.5+x/2)*a,ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close());var ie=Be(0,.5,.3,0,0,y/a,.1,y/a,b());return ne.spot1=new go.Spot(ie.x,ie.y),ie=Be(.7,1,1,.5,0,z/a,1,z/a,ie),ne.spot2=new go.Spot(ie.x,ie.y),he(ie),ne}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new _e("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new _e("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=40);var y=le?le.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,ne=z+x,re=(a-y)/2,ie=re+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,ne=z+x,re=0,ie=a):(z=0,ne=a,re=0,ie=a));var ge=new go.Geometry,fe=new go.PathFigure(E,.5*a,!0);ge.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,.3*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,.3*E,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),fe.add(new go.PathSegment(go.PathSegment.Line,.3*E,re)),fe.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,re).close());var Pe=Be(0,.5,.3,re/a,0,z/a,1,z/a,b());return ge.spot1=new go.Spot(Pe.x,Pe.y),Pe=Be(.7,ie/a,1,.5,0,ne/a,1,ne/a,Pe),ge.spot2=new go.Spot(Pe.x,Pe.y),he(Pe),ge}),go.Shape.setFigureParameter("IBeamArrow",0,new _e("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*a,z=(.5+x/2)*a,ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ne.spot1=new go.Spot(0,y/a);var ie=Be(.7,1,1,.5,0,z/a,1,z/a,b());return ne.spot2=new go.Spot(ie.x,ie.y),he(ie),ne}),go.Shape.setFigureParameter("IBeamArrow2",0,new _e("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new _e("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=40);var y=le?le.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,ne=z+x,re=(a-y)/2,ie=re+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,ne=z+x,re=0,ie=a):(z=0,ne=a,re=0,ie=a));var ge=new go.Geometry,fe=new go.PathFigure(E,.5*a,!0);ge.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,0,re)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,re)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,re).close()),ge.spot1=new go.Spot(0,z/a);var Pe=Be(.7,ie/a,1,.5,0,ne/a,1,ne/a,b());return ge.spot2=new go.Spot(Pe.x,Pe.y),he(Pe),ge}),go.Shape.setFigureParameter("Pointer",0,new _e("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.1);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),y.spot1=new go.Spot(x,.35);var ne=Be(.2,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(ne.x,ne.y),he(ne),y}),go.Shape.setFigureParameter("RoundedPointer",0,new _e("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*E,.75*a,x*E,.25*a).close()),y.spot1=new go.Spot(x,.35);var ne=Be(0,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(ne.x,ne.y),he(ne),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new _e("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.4);var y=(.5-x/2)*a,z=(.5+x/2)*a,ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ne.spot1=new go.Spot(.2,.3);var ie=Be(.7,1,1,.5,0,z/a,1,z/a,b());return ne.spot2=new go.Spot(ie.x,ie.y),he(ie),ne}),go.Shape.setFigureParameter("SplitEndArrow2",0,new _e("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=50);var y=(a-x)/2,z=y+x;x>a&&(y=0,z=a);var ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ne.spot1=new go.Spot(.2,y/a);var ie=Be(.7,1,1,.5,0,z/a,1,z/a,b());return ne.spot2=new go.Spot(ie.x,ie.y),he(ie),ne}),go.Shape.setFigureParameter("SquareArrow",0,new _e("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.7);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,x*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,0).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(x,1),y}),go.Shape.defineFigureGenerator("Cone1",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=Fe*.1,ne=new go.PathFigure(0,.9*a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.9*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,a,.85/.9*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var z=new go.PathFigure(0,.9*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,.8*a,.85/.9*E,.8*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.3*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0).close());var z=new go.PathFigure(0,.3*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,z=Fe*.5,ne=new go.PathFigure(0,x,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,Fe*x,(.5-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,1*E,x,(.5+z)*E,0,1*E,Fe*x)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,1*a,1*E,a-Fe*x,(.5+z)*E,1*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-z)*E,1*a,0,a-Fe*x)),ne.add(new go.PathSegment(go.PathSegment.Line,0,x));var re=new go.PathFigure(E,x,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,2*x,1*E,2*x-Fe*x,(.5+z)*E,2*x)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-z)*E,2*x,0,2*x-Fe*x)),y.spot1=new go.Spot(0,0,0,2*x),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,z=Fe*.5,ne=new go.PathFigure(0,a-x,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,x)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,Fe*x,(.5-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,x,(.5+z)*E,0,E,Fe*x)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,a-Fe*x,(.5+z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-z)*E,a,0,a-Fe*x));var re=new go.PathFigure(0,a-x,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a-2*x,0,a-x-Fe*x,(.5-z)*E,a-2*x)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,a-x,(.5+z)*E,a-2*x,E,a-x-Fe*x)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,0,-2*x),y}),go.Shape.defineFigureGenerator("Cylinder3",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,z=Fe*.5,ne=new go.PathFigure(x,0,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E-x,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-Fe*x,0,E,(.5-z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,(.5+z)*a,E-Fe*x,a)),ne.add(new go.PathSegment(go.PathSegment.Line,x,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,Fe*x,a,0,(.5+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*a,Fe*x,0));var re=new go.PathFigure(x,0,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*a,x+Fe*x,0,2*x,(.5-z)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,x,a,2*x,(.5+z)*a,x+Fe*x,a)),y.spot1=new go.Spot(0,0,2*x,0),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder4",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,z=Fe*.5,ne=new go.PathFigure(E-x,0,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-Fe*x,0,E,(.5-z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,(.5+z)*a,E-Fe*x,a)),ne.add(new go.PathSegment(go.PathSegment.Line,x,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,Fe*x,a,0,(.5+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*a,Fe*x,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E-x,0));var re=new go.PathFigure(E-x,0,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,E-2*x,.5*a,E-x-Fe*x,0,E-2*x,(.5-z)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E-2*x,(.5+z)*a,E-x-Fe*x,a)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,-2*x,0),y}),go.Shape.defineFigureGenerator("Prism1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,.25*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.25*E,.25*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.25*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var z=new go.PathFigure(.5*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(le,E,a){var x=new go.Geometry,y=.2,z=.1,ne=Fe*y,re=Fe*z,ie=.5,ge=.1,fe=new go.PathFigure(ie*E,(ge+z)*a,!0);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-y)*E,ge*a,(ie-ne)*E,(ge+z)*a,(ie-y)*E,(ge+re)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-z)*a,(ie-y)*E,(ge-re)*a,(ie-ne)*E,(ge-z)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+y)*E,ge*a,(ie+ne)*E,(ge-z)*a,(ie+y)*E,(ge-re)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge+z)*a,(ie+y)*E,(ge+re)*a,(ie+ne)*E,(ge+z)*a));var Pe=.05,Ue=Fe*Pe;ie=.05,ge=.25;var Re=new go.PathFigure(.5*E,.2*a,!0);return x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,.95*E,.2*a)),ie=.95,ge=.25,Re.add(new go.PathSegment(go.PathSegment.Bezier,(ie+Pe)*E,ge*a,(ie+Ue)*E,(ge-Pe)*a,(ie+Pe)*E,(ge-Ue)*a)),Re.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),Re.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),Re.add(new go.PathSegment(go.PathSegment.Line,.85*E,.35*a)),Pe=.025,Ue=Fe*Pe,ie=.825,ge=.35,Re.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-Pe)*a,(ie+Pe)*E,(ge-Ue)*a,(ie+Ue)*E,(ge-Pe)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ie-Pe)*E,ge*a,(ie-Ue)*E,(ge-Pe)*a,(ie-Pe)*E,(ge-Ue)*a)),Re.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),Re.add(new go.PathSegment(go.PathSegment.Line,.55*E,a)),Re.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a)),Pe=.05,Ue=Fe*Pe,ie=.5,ge=.7,Re.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-Pe)*a,(ie+Pe)*E,(ge-Ue)*a,(ie+Ue)*E,(ge-Pe)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ie-Pe)*E,ge*a,(ie-Ue)*E,(ge-Pe)*a,(ie-Pe)*E,(ge-Ue)*a)),Re.add(new go.PathSegment(go.PathSegment.Line,.45*E,a)),Re.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),Re.add(new go.PathSegment(go.PathSegment.Line,.2*E,.35*a)),Pe=.025,Ue=Fe*Pe,ie=.175,ge=.35,Re.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-Pe)*a,(ie+Pe)*E,(ge-Ue)*a,(ie+Ue)*E,(ge-Pe)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ie-Pe)*E,ge*a,(ie-Ue)*E,(ge-Pe)*a,(ie-Pe)*E,(ge-Ue)*a)),Re.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),Re.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),Re.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),Pe=.05,Ue=Fe*Pe,ie=.05,ge=.25,Re.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-Pe)*a,(ie-Pe)*E,(ge-Ue)*a,(ie-Ue)*E,(ge-Pe)*a)),Re.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new _e("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,z=new go.PathFigure(E,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,0).close()),y.spot1=new go.Spot(0,x),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Collate",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a));var z=new go.PathFigure(.5*E,.5*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(0,y*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),ne.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,(1-y)*a)),x}),go.Shape.defineFigureGenerator("Database",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=Fe*.1,ne=new go.PathFigure(E,.1*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+y)*E,0,E,(.1-z)*a));var re=new go.PathFigure(E,.1*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+y)*E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*E,.2*a,0,(.1+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+y)*E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*E,.3*a,0,(.2+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.4*a,E,(.3+z)*a,(.5+y)*E,.4*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-y)*E,.4*a,0,(.3+z)*a)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.9*a,.25*E,.1*a).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=Fe*.1,ne=new go.PathFigure(E,.1*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+y)*E,0,E,(.1-z)*a));var re=new go.PathFigure(E,.1*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+y)*E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*E,.2*a,0,(.1+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+y)*E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*E,.3*a,0,(.2+z)*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)?y=.2:y<.15&&(y=.15);var z=Fe*.2,ne=new go.PathFigure(0,.2*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,0,(.2-z)*a,(.2-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.2*a,(.8+z)*E,0,E,(.2-z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,a,E,(.8+z)*a,(.8+z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-z)*E,a,0,(.8+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var re=new go.PathFigure(0,y*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;(isNaN(y)||y<.1)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(0,y*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),x}),go.Shape.defineFigureGenerator("Document",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;(isNaN(y)||y<.2)&&(y=.2);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(y*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y*a)),ne.add(new go.PathSegment(go.PathSegment.Move,E,y*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),ne.add(new go.PathSegment(go.PathSegment.Move,(1-y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,(1-y)*a)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(.1*E,.4*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.9*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.6*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Move,.4*E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.9*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.75*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a));var z=new go.PathFigure(E,.5*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a));var ne=new go.PathFigure(E,.5*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.1);var ne=new go.PathFigure(0,0,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var re=new go.PathFigure(y*E,0,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),re.add(new go.PathSegment(go.PathSegment.Move,0,z*a)),re.add(new go.PathSegment(go.PathSegment.Line,E,z*a)),x}),go.Shape.defineFigureGenerator("Junction",function(le,E,a){var x=new go.Geometry,y=1/Math.SQRT2,z=(1-1/Math.SQRT2)/2,ne=Fe*.5,re=.5,ie=new go.PathFigure(E,re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,re*E,a,E,(re+ne)*a,(re+ne)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,re*a,(re-ne)*E,a,0,(re+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,re*E,0,0,(re-ne)*a,(re-ne)*E,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,re*a,(re+ne)*E,0,E,(re-ne)*a));var ge=new go.PathFigure((z+y)*E,(z+y)*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,z*E,z*a)),ge.add(new go.PathSegment(go.PathSegment.Move,z*E,(z+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Line,(z+y)*E,z*a)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close());var z=new go.PathFigure(.1*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.75*a)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=new go.PathFigure(.5*E,a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+.1)*E,.9*a,E,(z+y)*a,(z+y)*E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.7);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.25);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,y*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.44*a,.96*E,.47*a,.93*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.54*a,.86*E,.57*a,.83*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*E,.4*a,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,0).close());var z=new go.PathFigure(.1*E,.2*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.44*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,.1*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close());var z=new go.PathFigure(.2*E,.1*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Move,.1*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=1-y,ne=new go.PathFigure(0,0,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close());var re=new go.PathFigure(.5*y*E,y*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,(1-.5*y)*E,y*a)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=new go.PathFigure(E,z*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+y)*a,(z+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a));var re=new go.PathFigure(E,.5*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),re.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.5*E,.6*a,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.3);var ne=new go.PathFigure(0,0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.3);var ne=new go.PathFigure(0,0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure((1-y)*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Move,y*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),x}),go.Shape.defineFigureGenerator("Process",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(y*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(0,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.25);var z=new go.PathFigure(y*E,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a));var ne=new go.PathFigure(y*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),ne.add(new go.PathSegment(go.PathSegment.Move,(1-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,a)),x.spot1=new go.Spot(y,0),x.spot2=new go.Spot(1-y,1),x}),go.Shape.defineFigureGenerator("Terminator",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(.5+y)*E,0,E,(.5-y)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.5+y)*a,(.5+y)*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=new go.PathFigure(E,z*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+y)*a,(z+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a));var re=new go.PathFigure(E,z*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,z*a));var ie=new go.PathFigure(.8*E,.75*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.8*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*E,.75*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*E,.75*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*E,.75*a)),x}),go.Shape.defineFigureGenerator("Ground",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Move,.3*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),x}),go.Shape.defineFigureGenerator("Inverter",function(le,E,a){var x=new go.Geometry,y=Fe*.1,z=.1,ne=.9,re=.5,ie=new go.PathFigure(.8*E,.5*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,a)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a));var ge=new go.PathFigure((ne+z)*E,re*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re-z)*a,(ne+z)*E,(re-y)*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=Fe*.4,ne=Fe*.1,re=.1,ie=.9,ge=.5,fe=new go.PathFigure(.8*E,.5*a,!0);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,.8*E,(.5+z)*a,(.4+y)*E,a)),fe.add(new go.PathSegment(go.PathSegment.Line,0,a)),fe.add(new go.PathSegment(go.PathSegment.Line,0,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(.4+y)*E,0,.8*E,(.5-z)*a));var Pe=new go.PathFigure((ie+re)*E,ge*a,!0);return x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge+re)*a,(ie+re)*E,(ge+ne)*a,(ie+ne)*E,(ge+re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E,ge*a,(ie-ne)*E,(ge+re)*a,(ie-re)*E,(ge+ne)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-re)*a,(ie-re)*E,(ge-ne)*a,(ie-ne)*E,(ge-re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E,ge*a,(ie+ne)*E,(ge-re)*a,(ie+re)*E,(ge-ne)*a)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*y,ne=0,re=.5,ie=new go.PathFigure(.8*E,.5*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(ne+z)*E,(re-y)*a,.7*E,(re-z)*a)),y=.1,z=Fe*.1,ne=.9,re=.5;var ge=new go.PathFigure((ne-y)*E,re*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*y,ne=0,re=.5,ie=new go.PathFigure(0,0,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(ne+z+z)*E,(re-y)*a,.8*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*E,(re+z)*a,(ne+z+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*y,ne=.2,re=.5,ie=new go.PathFigure(.1*E,0,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ge=new go.PathFigure(.8*E,.5*a,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.7*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(ne+z)*E,(re-y)*a,.7*E,(re-z)*a)),y=.1,z=Fe*.1,ne=.9,re=.5;var fe=new go.PathFigure((ne-y)*E,re*a,!0);return x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*y,ne=.2,re=.5,ie=new go.PathFigure(.1*E,0,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ge=new go.PathFigure(.2*E,0,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(ne+z)*E,(re-y)*a,.9*E,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.9*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("Resistor",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),x}),go.Shape.defineFigureGenerator("Inductor",function(le,E,a){var x=new go.Geometry,y=Fe*.1,z=.1,ne=.1,re=.5,ie=new go.PathFigure((ne-y*.5)*E,a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.3,ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,a,(ne+z)*E,0,(ne+y)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.5,ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,a,(ne+z)*E,0,(ne+y)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.7,ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,a,(ne+z)*E,0,(ne+y)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.9,ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y*.5)*E,a,(ne+z)*E,0,(ne+y)*E,a)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=.5,re=.5,ie=new go.PathFigure((ne-z)*E,re*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re-z)*a,(ne+z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Move,(ne-z+.1)*E,re*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z-.1)*E,re*a,ne*E,(re-z)*a,ne*E,(re+z)*a)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("Diode",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(le,E,a){var x=new go.Geometry,y=E,z=a;E=E*.38,a=a*.6;var ne=Fe*.8,re=.8,ie=0,ge=.5,fe=(y-E)/2,Pe=(z-a)/2,Ue=new go.PathFigure(ie*E+fe,(ge+re)*a+Pe,!0);x.add(Ue),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E+fe,ge*a+Pe,(ie-ne)*E+fe,(ge+re)*a+Pe,(ie-re)*E+fe,(ge+ne)*a+Pe)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie-re)*E+fe,(ge-ne)*a+Pe,(ie-ne)*E+fe,(ge-re)*a+Pe)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re+ne*.5)*E+fe,ge*a+Pe,ie*E+fe,(ge-re)*a+Pe,(ie-re+ne*.5)*E+fe,(ge-ne)*a+Pe)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie-re+ne*.5)*E+fe,(ge+ne)*a+Pe,ie*E+fe,(ge+re)*a+Pe).close()),ne=Fe*.4,re=.4,ie=.2,ge=.5;var Re=new go.PathFigure(ie*E+fe,(ge+re)*a+Pe,!0);x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E+fe,ge*a+Pe,(ie-ne)*E+fe,(ge+re)*a+Pe,(ie-re)*E+fe,(ge+ne)*a+Pe)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie-re)*E+fe,(ge-ne)*a+Pe,(ie-ne)*E+fe,(ge-re)*a+Pe)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re+ne*.5)*E+fe,ge*a+Pe,ie*E+fe,(ge-re)*a+Pe,(ie-re+ne*.5)*E+fe,(ge-ne)*a+Pe)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie-re+ne*.5)*E+fe,(ge+ne)*a+Pe,ie*E+fe,(ge+re)*a+Pe).close()),ne=Fe*.2,re=.2,ie=.5,ge=.5;var lt=new go.PathFigure((ie-re)*E+fe,ge*a+Pe,!0);x.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie-re)*E+fe,(ge-ne)*a+Pe,(ie-ne)*E+fe,(ge-re)*a+Pe)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E+fe,ge*a+Pe,(ie+ne)*E+fe,(ge-re)*a+Pe,(ie+re)*E+fe,(ge-ne)*a+Pe)),lt.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie+re)*E+fe,(ge+ne)*a+Pe,(ie+ne)*E+fe,(ge+re)*a+Pe)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E+fe,ge*a+Pe,(ie-ne)*E+fe,(ge+re)*a+Pe,(ie-re)*E+fe,(ge+ne)*a+Pe)),ne=Fe*.4,re=.4,ie=.8,ge=.5;var Le=new go.PathFigure(ie*E+fe,(ge-re)*a+Pe,!0);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E+fe,ge*a+Pe,(ie+ne)*E+fe,(ge-re)*a+Pe,(ie+re)*E+fe,(ge-ne)*a+Pe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie+re)*E+fe,(ge+ne)*a+Pe,(ie+ne)*E+fe,(ge+re)*a+Pe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re-ne*.5)*E+fe,ge*a+Pe,ie*E+fe,(ge+re)*a+Pe,(ie+re-ne*.5)*E+fe,(ge+ne)*a+Pe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie+re-ne*.5)*E+fe,(ge-ne)*a+Pe,ie*E+fe,(ge-re)*a+Pe).close()),ne=Fe*.8,re=.8,ie=1,ge=.5;var Ce=new go.PathFigure(ie*E+fe,(ge-re)*a+Pe,!0);return x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E+fe,ge*a+Pe,(ie+ne)*E+fe,(ge-re)*a+Pe,(ie+re)*E+fe,(ge-ne)*a+Pe)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie+re)*E+fe,(ge+ne)*a+Pe,(ie+ne)*E+fe,(ge+re)*a+Pe)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re-ne*.5)*E+fe,ge*a+Pe,ie*E+fe,(ge+re)*a+Pe,(ie+re-ne*.5)*E+fe,(ge+ne)*a+Pe)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie+re-ne*.5)*E+fe,(ge-ne)*a+Pe,ie*E+fe,(ge-re)*a+Pe).close()),x}),go.Shape.defineFigureGenerator("Email",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.54*a)),x}),go.Shape.defineFigureGenerator("Ethernet",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.35*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,0).close());var z=new go.PathFigure(.1*E,a,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var ne=new go.PathFigure(.6*E,a,!0,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*E,.6*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*E,a).close());var re=new go.PathFigure(0,.5*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),re.add(new go.PathSegment(go.PathSegment.Move,.75*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.75*E,.6*a)),re.add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.25*E,.6*a)),x}),go.Shape.defineFigureGenerator("Power",function(le,E,a){var x=new go.Geometry,y=Fe*.4,z=.4,ne=.5,re=.5,ie=b(),ge=b(),fe=b(),Pe=b();Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.5,ie,ie,ge,fe,Pe);var Ue=oe(ge.x,ge.y),Re=new go.PathFigure(ge.x*E,ge.y*a,!0);x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,fe.x*E,fe.y*a,Pe.x*E,Pe.y*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),Ie(ne-z,re,ne-z,re-y,ne-y,re-z,ne,re-z,.5,fe,Pe,ge,ie,ie),Re.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*E,ge.y*a,fe.x*E,fe.y*a,Pe.x*E,Pe.y*a)),y=Fe*.3,z=.3,Ie(ne-z,re,ne-z,re-y,ne-y,re-z,ne,re-z,.5,fe,Pe,ge,ie,ie),Re.add(new go.PathSegment(go.PathSegment.Line,ge.x*E,ge.y*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,Pe.x*E,Pe.y*a,fe.x*E,fe.y*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.5,ie,ie,ge,fe,Pe),Re.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*E,ge.y*a,Pe.x*E,Pe.y*a,fe.x*E,fe.y*a).close());var Re=new go.PathFigure(.45*E,0,!0);return x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)),Re.add(new go.PathSegment(go.PathSegment.Line,.55*E,.5*a)),Re.add(new go.PathSegment(go.PathSegment.Line,.55*E,0).close()),he(ie),he(ge),he(fe),he(Pe),he(Ue),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a/2,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,180,360,E/2,a/2,E/2,a/2));function z(ne,re,ie){ne.add(new go.PathSegment(go.PathSegment.Move,(.3+re)*E,(.8+ie)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(.5+re)*E,(.5+ie)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(.1+re)*E,(.5+ie)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(.3+re)*E,(.8+ie)*a).close())}return z(y,0,0),z(y,.4,0),z(y,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.2*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.37*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.11*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*E,.04*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.49*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.37*a)),y.add(new go.PathSegment(go.PathSegment.Line,.63*E,.86*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*E,.91*a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*E,.78*a)),y.add(new go.PathSegment(go.PathSegment.Line,.44*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.56*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.29*E,0,-.25*E,.63*a,.45*E,.44*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.51*E,.42*a,.48*E,.17*a,.54*E,.35*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.59*E,.18*a,.59*E,.29*a,.58*E,.28*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,.6*a,.8*E,.34*a,.88*E,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.88*E,.31*a,.87*E,.48*a,.88*E,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,1.17*E,.76*a,.82*E,.8*a).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(le,E,a){var x=new go.Geometry,y=.5,z=0,ne=0,re=y*Fe,ie=.4*Math.SQRT2/2+.5,ge=.5-.5*Math.SQRT2/2,fe=1,Pe=.5,Ue=.5,Re=0,lt=new go.PathFigure(ie*E,(1-ge)*a,!1);return x.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,Pe*a,fe*E,.7*a,fe*E,Pe*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+z)*E,(Re+z)*a,(.5+y+z)*E,(.5-re+z)*a,(.5+re+z)*E,(.5-y+z)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+ne)*a,(.5-re+z)*E,(.5-y+ne)*a,(.5-y+z)*E,(.5-re+ne)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+z)*E,.9*a,(.5-y+z)*E,(.5+re+ne)*a,(.5-re+z)*E,.9*a)),lt.add(new go.PathSegment(go.PathSegment.Move,(.25+z)*E,.8*a)),lt.add(new go.PathSegment(go.PathSegment.Line,(.35+z)*E,.9*a)),lt.add(new go.PathSegment(go.PathSegment.Line,(.2+z)*E,.95*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var ne=new go.PathFigure(0,.5*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.2*E,.35*a,.3*E,.35*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.7*E,.65*a,.8*E,.65*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var y=new go.PathFigure(0,.2*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.7*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,0,.6*E,.5*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,a,.4*E,.5*a,E,.5*a).close());var z=new go.PathFigure(.45*E,.73*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.73*a)),z.add(new go.PathSegment(go.PathSegment.Move,.38*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.63*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Move,.31*E,.27*a)),z.add(new go.PathSegment(go.PathSegment.Line,.56*E,.27*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(.335*E,(1-.555)*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.68*a,(1-.12)*E,.46*a,(1-.02)*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.335*E,(1-.555)*a,.02*E,.54*a,.12*E,.46*a)),z.add(new go.PathSegment(go.PathSegment.Line,.365*E,(1-.595)*a));var ne=.5-.285,re=.5,ie=ne,ge=Math.PI/4,fe=4*(1-Math.cos(ge))/(3*Math.sin(ge)),Pe=fe*.5,Ue=ne,Re=ne,lt=fe*Ue,Le=fe*Re;z.add(new go.PathSegment(go.PathSegment.Bezier,(re-Ue)*E,ie*a,(re-(lt+Ue)/2)*E,(ie+(Re+Le)/2)*a,(re-Ue)*E,(ie+Le)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,re*E,(ie-Re)*a,(re-Ue)*E,(ie-Le)*a,(re-lt)*E,(ie-Re)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(re+Ue)*E,ie*a,(re+lt)*E,(ie-Re)*a,(re+Ue)*E,(ie-Le)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*E,(1-.595)*a,(re+Ue)*E,(ie+Le)*a,(re+(lt+Ue)/2)*E,(ie+(Re+Le)/2)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*E,(1-.595)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a));var Ce=new go.PathFigure(.2*E,a,!1);x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*E,.8*a));var Xe=new go.PathFigure(.8*E,a,!1);return x.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var z=new go.PathFigure(.2*E,.2*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var ne=new go.PathFigure(.1*E,a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Caution",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.05*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.8*a,0,a,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.1*a,.5*E,0,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.95*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,E,a,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,a));var z=.05;return y.add(new go.PathSegment(go.PathSegment.Move,(.5-z)*E,.875*a)),y.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*E,.875*a,z*E,z*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.325*a,.575*E,.725*a,.625*E,.375*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.75*a,.375*E,.375*a,.425*E,.725*a)),x}),go.Shape.defineFigureGenerator("Recycle",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.45*E,.95*a,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.185*E,.85*a,.17*E,.95*a,.15*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.235*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.625*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,.275*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.575*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.1875*E,.95*a,0,.675*a,0,.7*a)),y.add(new go.PathSegment(go.PathSegment.Move,.45*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.775*a)),y.add(new go.PathSegment(go.PathSegment.Line,.22*E,.775*a));var z=new go.PathFigure(.475*E,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.225*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.275*E,.175*a)),z.add(new go.PathSegment(go.PathSegment.Line,.325*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.05*a,.35*E,0,.375*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.575*E,.375*a)),z.add(new go.PathSegment(go.PathSegment.Line,.525*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.475*a)),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.315*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.32*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,0,.65*E,.05*a,.625*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.38*E,.0105*a));var ne=new go.PathFigure(.675*E,.575*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.875*E,.525*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.85*E,.95*a,E,.8*a,E,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,.95*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,.725*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Move,.675*E,.575*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.775*E,.775*a)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*.5,ne=new go.PathFigure(E,y*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,y*E,a,E,(y+z)*a,(y+z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y*a,(y-z)*E,a,0,(y+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,y*E,0,0,(y-z)*a,(y-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,y*a,(y+z)*E,0,E,(y-z)*a));var re=new go.PathFigure(y*E,0,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*E,.15*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,y*E,.85*a)),re.add(new go.PathSegment(go.PathSegment.Move,0,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.15*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.85*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.58*E,.1*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.78*E,.54*a)),x}),go.Shape.defineFigureGenerator("Package",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.15*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,.15*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.15*a).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var ne=new go.PathFigure(0,.5*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Component",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close());var z=new go.PathFigure(0,.2*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var ne=new go.PathFigure(0,.6*a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.45*E,.6*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.45*E,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.15*E,.6*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a));var z=new go.PathFigure(.15*E,.6*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(E,.8*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.8*a).close());var ne=.1,re=Fe*.1,ie=.2,ge=.9,fe=new go.PathFigure((ie-ne)*E,ge*a,!0);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-ne)*a,(ie-ne)*E,(ge-re)*a,(ie-re)*E,(ge-ne)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*E,ge*a,(ie+re)*E,(ge-ne)*a,(ie+ne)*E,(ge-re)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge+ne)*a,(ie+ne)*E,(ge+re)*a,(ie+re)*E,(ge+ne)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*E,ge*a,(ie-re)*E,(ge+ne)*a,(ie-ne)*E,(ge+re)*a).close()),ne=.1,re=Fe*.1,ie=.8,ge=.9;var Pe=new go.PathFigure((ie-ne)*E,ge*a,!0);return x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-ne)*a,(ie-ne)*E,(ge-re)*a,(ie-re)*E,(ge-ne)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*E,ge*a,(ie+re)*E,(ge-ne)*a,(ie+ne)*E,(ge-re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge+ne)*a,(ie+ne)*E,(ge+re)*a,(ie+re)*E,(ge+ne)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*E,ge*a,(ie-re)*E,(ge+ne)*a,(ie-ne)*E,(ge+re)*a).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.2*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),x}),go.Shape.defineFigureGenerator("Forklift",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0));var z=new go.PathFigure(0,.5*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var ne=new go.PathFigure(.5*E,.8*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a));var re=new go.PathFigure(.5*E,.7*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.7*a));var ie=.1,ge=Fe*.1,fe=.1,Pe=.9,Ue=new go.PathFigure((fe-ie)*E,Pe*a,!0);x.add(Ue),Ue.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,(Pe-ie)*a,(fe-ie)*E,(Pe-ge)*a,(fe-ge)*E,(Pe-ie)*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(fe+ie)*E,Pe*a,(fe+ge)*E,(Pe-ie)*a,(fe+ie)*E,(Pe-ge)*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,(Pe+ie)*a,(fe+ie)*E,(Pe+ge)*a,(fe+ge)*E,(Pe+ie)*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(fe-ie)*E,Pe*a,(fe-ge)*E,(Pe+ie)*a,(fe-ie)*E,(Pe+ge)*a)),ie=.1,ge=Fe*.1,fe=.4,Pe=.9;var Re=new go.PathFigure((fe-ie)*E,Pe*a,!0);return x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,(Pe-ie)*a,(fe-ie)*E,(Pe-ge)*a,(fe-ge)*E,(Pe-ie)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(fe+ie)*E,Pe*a,(fe+ge)*E,(Pe-ie)*a,(fe+ie)*E,(Pe-ge)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,(Pe+ie)*a,(fe+ie)*E,(Pe+ge)*a,(fe+ge)*E,(Pe+ie)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(fe-ie)*E,Pe*a,(fe-ge)*E,(Pe+ie)*a,(fe-ie)*E,(Pe+ge)*a)),x}),go.Shape.defineFigureGenerator("RailShipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,.4*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.4*a).close());var z=new go.PathFigure(.45*E,.7*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a));var ne=new go.PathFigure(.55*E,.4*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.4*a).close());var fe=.05,Pe=Fe*.05,Ue=.175,Re=.95,re=new go.PathFigure((Ue-fe)*E,Re*a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Re-fe)*a,(Ue-fe)*E,(Re-Pe)*a,(Ue-Pe)*E,(Re-fe)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+fe)*E,Re*a,(Ue+Pe)*E,(Re-fe)*a,(Ue+fe)*E,(Re-Pe)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Re+fe)*a,(Ue+fe)*E,(Re+Pe)*a,(Ue+Pe)*E,(Re+fe)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ue-fe)*E,Re*a,(Ue-Pe)*E,(Re+fe)*a,(Ue-fe)*E,(Re+Pe)*a));var fe=.05,Pe=Fe*.05,Ue=.375,Re=.95,ie=new go.PathFigure((Ue-fe)*E,Re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Re-fe)*a,(Ue-fe)*E,(Re-Pe)*a,(Ue-Pe)*E,(Re-fe)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+fe)*E,Re*a,(Ue+Pe)*E,(Re-fe)*a,(Ue+fe)*E,(Re-Pe)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Re+fe)*a,(Ue+fe)*E,(Re+Pe)*a,(Ue+Pe)*E,(Re+fe)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ue-fe)*E,Re*a,(Ue-Pe)*E,(Re+fe)*a,(Ue-fe)*E,(Re+Pe)*a));var fe=.05,Pe=Fe*.05,Ue=.625,Re=.95,ge=new go.PathFigure((Ue-fe)*E,Re*a,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Re-fe)*a,(Ue-fe)*E,(Re-Pe)*a,(Ue-Pe)*E,(Re-fe)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+fe)*E,Re*a,(Ue+Pe)*E,(Re-fe)*a,(Ue+fe)*E,(Re-Pe)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Re+fe)*a,(Ue+fe)*E,(Re+Pe)*a,(Ue+Pe)*E,(Re+fe)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Ue-fe)*E,Re*a,(Ue-Pe)*E,(Re+fe)*a,(Ue-fe)*E,(Re+Pe)*a));var fe=.05,Pe=Fe*.05,Ue=.825,Re=.95,lt=new go.PathFigure((Ue-fe)*E,Re*a,!0);x.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Re-fe)*a,(Ue-fe)*E,(Re-Pe)*a,(Ue-Pe)*E,(Re-fe)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+fe)*E,Re*a,(Ue+Pe)*E,(Re-fe)*a,(Ue+fe)*E,(Re-Pe)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Re+fe)*a,(Ue+fe)*E,(Re+Pe)*a,(Ue+Pe)*E,(Re+fe)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Ue-fe)*E,Re*a,(Ue-Pe)*E,(Re+fe)*a,(Ue-fe)*E,(Re+Pe)*a).close());var Le=new go.PathFigure(0,a,!1);return x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var ne=new go.PathFigure(.15*E,a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.15*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.15*E,a).close());var re=.05,ie=Fe*.05,ge=.35,fe=.775,Pe=new go.PathFigure((ge-re)*E,fe*a,!0);return x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*E,(fe-re)*a,(ge-re)*E,(fe-ie)*a,(ge-ie)*E,(fe-re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge+re)*E,fe*a,(ge+ie)*E,(fe-re)*a,(ge+re)*E,(fe-ie)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*E,(fe+re)*a,(ge+re)*E,(fe+ie)*a,(ge+ie)*E,(fe+re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge-re)*E,fe*a,(ge-ie)*E,(fe+re)*a,(ge-re)*E,(fe+ie)*a).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),x}),go.Shape.defineFigureGenerator("Globe",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.75*E,0,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.75*a,.75*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*E,a,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,.25*a,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,.15*E,.25*a,.15*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.85*E,.75*a,.85*E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.15*a,.35*E,.3*a,.65*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.85*a,.35*E,.7*a,.65*E,.7*a)),x}),go.Shape.defineFigureGenerator("Wave",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.25*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.25*a,.1*E,0,.2*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.25*a,.425*E,.5*a,.575*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.25*a,.8*E,0,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.75*a,.1*E,.5*a,.2*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.75*a,.425*E,a,.575*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.75*a,.8*E,.5*a,.9*E,.5*a)),x}),go.Shape.defineFigureGenerator("Operator",function(le,E,a){var x=new go.Geometry,y=.3,z=Fe*.3,ne=.5,re=.7,ie=new go.PathFigure((ne-y)*E,re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a));var ge=new go.PathFigure(0,.7*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,E,.7*a,0,0,E,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.65*E,.3*a,.65*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.35*E,.5*a,.35*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*E,.6*a,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.2*E,a,.35*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,a,.7*E,.6*a,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.8*E,a,.65*E,.95*a)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,0,a,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.4*a,.8*E,a,.85*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),x}),go.Shape.defineFigureGenerator("Battery",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.1*a));var z=new go.PathFigure(0,.6*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),x}),go.Shape.defineFigureGenerator("Delete",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*.5,ne=.5,re=.5,ie=new go.PathFigure((ne-y)*E,re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a));var ge=new go.PathFigure(.15*E,.5*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.85*E,.5*a)),x}),go.Shape.defineFigureGenerator("Flag",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.1*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.1*a,.15*E,0,.35*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,.65*E,.2*a,.85*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.85*E,.6*a,.65*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*E,.4*a,.15*E,.4*a).close()),x}),go.Shape.defineFigureGenerator("Help",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*.5,ne=.5,re=.5,ie=new go.PathFigure((ne-y)*E,re*a,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a).close()),y=.05,z=Fe*.05,ne=.5,re=.8;var ge=new go.PathFigure((ne-y)*E,re*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a).close()),ge.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,.75*E,.475*a,.75*E,.225*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.35*a,.4*E,.2*a,.3*E,.25*a)),x}),go.Shape.defineFigureGenerator("Location",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.975*E,.025*a,.5*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*E,.5*a,.5*E,0,.025*E,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*E,.3*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.3*a)),x}),go.Shape.defineFigureGenerator("Unlocked",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.35*a)),x}),go.Shape.defineFigureGenerator("Gear",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.9375*E,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*E,.3316875*a,.79840625*E,.39915625*a,.7834375*E,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*E,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*E,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*E,.19378125*a,.64228125*E,.2188125*a,.603875*E,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*E,.239375*a,.39759375*E,.20190625*a,.36053125*E,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*E,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*E,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*E,.4375*a,.21765625*E,.36059375*a,.201875*E,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*E,.67596875*a,.20221875*E,.603875*a,.21884375*E,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*E,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*E,.80621875*a,.36353125*E,.78340625*a,.3991875*E,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*E,.760625*a,.602375*E,.79809375*a,.63946875*E,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*E,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*E,.56246875*a,.78234375*E,.63940625*a,.798125*E,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*E,.5*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.3*a,0,.375*a,.05*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.075*a,.3*E,.225*a,.4*E,.175*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.525*E,.075*a,.46*E,.05*a,.525*E,.05*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.4*a,.525*E,.275*a,.475*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.55*a,E,.4*a,E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.425*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.7*a,.675*E,.55*a,.675*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.575*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,.85*a,.65*E,.7*a,.65*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.535*E,a,.61*E,.85*a,.61*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*E,a,0,a).close()),x}),go.Shape.defineFigureGenerator("Map",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),x}),go.Shape.defineFigureGenerator("Eject",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.7)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var z=new go.PathFigure(0,a*.6,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*1,a*1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.85).close());var z=new go.PathFigure(.126*E,.85*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.126*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.85*a).close());var ne=new go.PathFigure(.402*E,.85*a,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.402*E,.45*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.598*E,.45*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.598*E,.85*a).close());var re=new go.PathFigure(.678*E,.85*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.678*E,.45*a)),re.add(new go.PathSegment(go.PathSegment.Line,.874*E,.45*a)),re.add(new go.PathSegment(go.PathSegment.Line,.874*E,.85*a).close());var ie=new go.PathFigure(.5*E,.1*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*E,.3*a)),ie.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*E,.3*a).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a*1,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a*1,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*(1-.184)).close());var z=new go.PathFigure(E*.204,a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.204,a*(1-.184))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*1).close());var ne=new go.PathFigure(E*.408,a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.408,a*(1-.184*2))),ne.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*(1-.184*3))),ne.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*1).close());var re=new go.PathFigure(E*.612,a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.612,a*(1-.184*3))),re.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*(1-.184*4))),re.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*1).close());var ie=new go.PathFigure(E*.816,a,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.816,a*(1-.184*4))),ie.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-.184*5))),ie.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,0).close());var z=new go.PathFigure(E*.055,.07*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.07)),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.1).close());var ne=new go.PathFigure(E*.055,.13*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.13)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.16)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.16).close());var re=new go.PathFigure(E*.055,.18*a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.18)),re.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.21)),re.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.21).close());var ie=new go.PathFigure(E*1,0,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.4,0)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.65)),ie.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.55*E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.475*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.35*E,.525*a,0,.4*a,.225*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.475*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.2*a,.975*E,0,E,.08*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.55*E,a).close()),x}),go.Shape.defineFigureGenerator("Key",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*1,a*.5,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.9,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,.575*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.9,.6*a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.17*E,.425*a)),y.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*E,.5*a,.075*E,.075*a).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*0,E*.3,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var z=new go.PathFigure(0,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*0)),z.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*1,E*.3,E*.055)),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var ne=new go.PathFigure(E*.11,a*.1,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.11,a*.8).close());var re=new go.PathFigure(E*(.11+.24133333*1+.028*1),a*.1,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.1)),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.8)),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*1),a*.8).close());var ie=new go.PathFigure(E*(.11+.24133333*2+.028*2),a*.1,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.1)),ie.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.8)),ie.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*2),a*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(le,E,a){var x=new go.Geometry,y=8,z=y*Fe,ne=new go.PathFigure(y,0,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.86,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.14)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-y,a,E,a-z,E-z,a)),ne.add(new go.PathSegment(go.PathSegment.Line,y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,z,a,0,a-z)),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,z,z,0).close());var re=new go.PathFigure(E*.83,0,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.3)),re.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.3)),re.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*0).close());var ie=new go.PathFigure(E*.83,a*1,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*1).close());var ge=new go.PathFigure(E*.78,a*.05,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.05)),ge.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.25)),ge.add(new go.PathSegment(go.PathSegment.Line,E*.78,a*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,E/3),x=Math.min(x,a/3);var y=x*Fe,z=a*.8,ne=new go.Geometry,re=new go.PathFigure(x,0,!0);return ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E-x,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,x,E-y,0,E,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,z-x)),re.add(new go.PathSegment(go.PathSegment.Bezier,E-x,z,E,z-y,E-y,z)),re.add(new go.PathSegment(go.PathSegment.Line,E*.7,z)),re.add(new go.PathSegment(go.PathSegment.Line,E*.7,a)),re.add(new go.PathSegment(go.PathSegment.Line,E*.55,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,z-x,y,z,0,z-y)),re.add(new go.PathSegment(go.PathSegment.Line,0,x)),re.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()),y>1?(ne.spot1=new go.Spot(0,0,y,y),ne.spot2=new go.Spot(1,.8,-y,-y)):(ne.spot1=go.Spot.TopLeft,ne.spot2=new go.Spot(1,.8)),ne}),go.Shape.defineFigureGenerator("Repeat",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*.45,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.45).close());var z=new go.PathFigure(E*1,a*.55,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*E,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*.1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.9).close());var z=new go.PathFigure(E*.1,a*.2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,E*.22,a*.285)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.25).close());var ne=new go.PathFigure(E*.28,a*.37,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.37)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.41)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.28,a*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(le,E,a){var x=new go.Geometry,y=15,z=y*Fe,ne=new go.PathFigure(E*.62,a*.475,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-y,a,E,a-z,E-z,a)),ne.add(new go.PathSegment(go.PathSegment.Line,y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,z,a,0,a-z)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.475)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.03)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*0)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*0)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.62,a*.03).close()),z>1?(x.spot1=new go.Spot(0,0,z,z),x.spot2=new go.Spot(1,1,-z,-z)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var ne=new go.PathFigure(E*.4,a*0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.66)),ne.add(new go.PathSegment(go.PathSegment.Line,E*(1-.26),a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;return y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var ne=new go.PathFigure(E*.5,a*0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.25)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.25)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.63)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.63)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.25)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.74,a*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.15,a*0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.15,a*0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close());var z=new go.PathFigure(E*.235,a*.28,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.765,a*.28)),z.add(new go.PathSegment(go.PathSegment.Line,E*.655,a*.97)),z.add(new go.PathSegment(go.PathSegment.Line,E*.345,a*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.5,a*0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},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 _e={},xt="5.0",oe={},b=null,he=!1,Be=!1,Ie=null,be=!1,Ge=null,Fe=null,Ye=0;Ye4?parseFloat(Qe):5};_e.setHTML5Codebase=function(Qe,Me){Fe=Qe,ln(Qe,Me)},_e.setJavaCodebase=_e.setJavaCodebaseVersion=_e.isCompiledInstalled=_e.setPreCompiledScriptPath=_e.setPreCompiledResourcePath=function(){},_e.setHTML5CodebaseVersion=function(Qe,Me){var Et=parseFloat(Qe);if(Et!==NaN&&Et<5){console.log("The GeoGebra HTML5 codebase version "+Et+" is deprecated. Using version latest instead.");return}Ge=Qe,Yt(Qe,Me)},_e.getHTML5CodebaseVersion=function(){return le},_e.getParameters=function(){return oe},_e.setFontsCSSURL=function(Qe){ne=Qe},_e.setGiacJSURL=function(Qe){},_e.setJNLPFile=function(Qe){De=Qe},_e.setJNLPBaseDir=function(Qe){},_e.inject=function(){function Qe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Me="auto",Et=oe.id,Gt,vt=!1,Dt=0;Dt=5)return!0;var Qe=_e.getAppletObject();return Qe&&typeof Qe.recalculateEnvironments=="function"?(Qe.recalculateEnvironments(),!0):!1},_e.startAnimation=function(){var Qe=_e.getAppletObject();return Qe&&typeof Qe.startAnimation=="function"?(Qe.startAnimation(),!0):!1},_e.stopAnimation=function(){var Qe=_e.getAppletObject();return Qe&&typeof Qe.stopAnimation=="function"?(Qe.stopAnimation(),!0):!1},_e.getAppletObject=function(){var Qe=oe.id!==void 0?oe.id:"ggbApplet";return window[Qe]},_e.resize=function(){};var lt=function(Qe,Me,Et){var Gt=document.createElement("param");Gt.setAttribute("name",Me),Gt.setAttribute("value",Et),Qe.appendChild(Gt)},Le=function(Qe){return Qe&&Qe!=="false"},Ce=function(Qe,Me,Et){ie(le)<=4.2&&(Et=!0);var Gt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==le||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(Gt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var vt=document.createElement("div");vt.classList.add("appletParameters","notranslate");var Dt=Me.width,Ae=Me.height;if(Me.disableAutoScale=Me.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Me.disableAutoScale,Me.width!==void 0)if(ie(le)<=4.4)Le(Me.showToolBar)&&(Me.height-=7),Le(Me.showAlgebraInput)&&(Me.height-=37),Me.width<605&&Le(Me.showToolBar)&&(Me.width=605,Dt=605);else{var dt=100;(Le(Me.showToolBar)||Le(Me.showMenuBar))&&(Me.hasOwnProperty("customToolBar")&&(Me.customToolbar=Me.customToolBar),dt=Le(Me.showMenuBar)?245:155),Dt=5?(Me.appletOnLoad=function($t){var ma=Qe.querySelector(".ggb_preview");ma&&ma.parentNode.removeChild(ma),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(et),window.GGBT_wsf_view&&$(window).trigger("resize"),ct($t)},bn||et.appendChild(ot)):vt.appendChild(ot),et.appendChild(vt),bn||Qe.appendChild(et),setTimeout(function(){_e.resize()},1)}else{var Bt=document.createElement("div");Bt.className="applet_scaler",Bt.style.position="relative",Bt.style.display="block",Bt.appendChild(vt),Qe.appendChild(Bt),Me.appletOnLoad=function($t){_e.resize(),ct($t)}}function Ht($t,ma){ma&&typeof ma.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement($t,ma.appletOnLoad):renderGGBElement($t),Nt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ma)}function St($t,ma){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:$t,params:ma}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Wn){Ht(Wn.article,Wn.params)}),html5AppletsToProcess=null)},ie(le)<5&&($t.className+=" geogebraweb")):Ht($t,ma)}if(Gt){scriptLoadStarted=!0;for(var Tn=0;Tn0?(un.remove(),et.attr("id","fullscreencontent").show(),jQuery(ct).append(et),window.dispatchEvent(new Event("resize"))):Ce(un,Me,!1),window.GGBT_wsf_view.launchFullScreen(ct)}else Ve=Gt,Ce(Qe,Me,!1);if(!window.GGBT_wsf_view)for(Ae=0;AeQe/4*3&&(un=Qe/4*3),ct=un/5.8,dt.setAttribute("src",y),dt.setAttribute("width",un),dt.setAttribute("height",ct);var et=(Qe-un)/2,bn=(Me-ct)/2;dt.style.left=et+"px",dt.style.top=bn+"px",vt.appendChild(dt)}}return vt.appendChild(Ae),vt},wt=function(Qe){return Qe=Qe.toLowerCase(),Qe==="html5"||Qe==="screenshot"?Qe:"html5"},ut=["web","webSimple","web3d","tablet","tablet3d","phone"],Yt=function(Qe,Me){if(le=Qe,Me){ln(le,!0);return}var Et=!he;if(Et){var Gt=ie(le);!isNaN(Gt)&&Gt<4.4&&(Et=!1)}var vt,Dt;window.location.protocol.substr(0,4)==="http"?vt=window.location.protocol:vt="http:";var Ae=le.indexOf("//");Ae>0?Dt=le:Ae===0?Dt=vt+le:Dt="https://www.geogebra.org/apps/5.2.814.0/";for(var dt in ut)if(le.slice(ut[dt].length*-1)===ut[dt]||le.slice((ut[dt].length+1)*-1)===ut[dt]+"/"){ln(Dt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Et&&!b.is3D&&!b.AV&&!b.SV&&!b.CV&&!b.EV2&&!b.CP&&!b.PC&&!b.DA&&!b.FI&&!b.PV&&!Le(oe.showToolBar)&&!Le(oe.showMenuBar)&&!Le(oe.showAlgebraInput)&&!Le(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?Dt+="webSimple/":Dt+="web3d/",ln(Dt,!1)},ln=function(Qe,Me){if(Qe.requirejs){Oe=Qe;return}Qe.slice(-1)!=="/"&&(Qe+="/"),Oe=Qe,Me===null&&(Me=Qe.indexOf("http")===-1),We=Me,E="web.nocache.js",a=!1;var Et=Oe.split("/");Et.length>1&&(!Me&&Et[Et.length-2]==="webSimple"?(E="webSimple.nocache.js",a=!0):ut.indexOf(Et[Et.length-2])>=0&&(E=Et[Et.length-2]+".nocache.js")),Et=Qe.split("/"),le=Et[Et.length-3],le.substr(0,4)==="test"?le=le.substr(4,1)+"."+le.substr(5,1):(le.substr(0,3)==="war"||le.substr(0,4)==="beta")&&(le="5.0");var Gt=parseFloat(le);Gt!==NaN&&Gt<5&&Qe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Gt+" is deprecated. Using version latest instead."),Yt("5.0",Me))},Nt=function(Qe,Me){window.console&&window.console.log&&(!Me||typeof Me.showLogging=="undefined"||Me.showLogging&&Me.showLogging!=="false")&&console.log(Qe)};oe.material_id!==void 0?Pe(Wt):Wt();function Wt(){var Qe=xt;Ge!==null?Qe=Ge:parseFloat(Qe)<5&&(Qe="5.0"),Yt(Qe,!1),Fe!==null&&ln(Fe,We),be=!0}return _e},GGBAppletUtils=function(){"use strict";function _e(){return window.GGBT_wsf_edit!==void 0}function xt(be,Ge){Ge!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+Ge+","+Ge+")",be.style.webkitTransform="scale("+Ge+","+Ge+")",be.style.maxWidth="initial",be.querySelector(".ggb_preview")!==null&&(be.querySelector(".ggb_preview").style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(be.style.transform="none",be.style.webkitTransform="none")}function oe(be,Ge,Fe,Ye,ke,De){var Oe=null;if(De!=null&&De!="")for(var We=be.parentNode;We!=null;)if((" "+We.className+" ").indexOf(" "+De+" ")>-1){Oe=We;break}else We=We.parentNode;var Ve=0,le=0,E=0,a=0,x=0,y=0,z=0;if(Oe)Ve=Oe.offsetWidth,le=Math.max(Ye?Oe.offsetWidth:0,Oe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ve=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),E=Ve):(Ve=window.innerWidth,le=window.innerHeight,E=window.innerWidth),be){var ne=be.getBoundingClientRect();ne.left>0&&ne.left<=Ve&&(ke===void 0||!ke)&&(document.dir==="rtl"?(x=Ve-ne.width-ne.left,y=E<=480?10:30):(y=ne.left,x=E<=480?10:30),a=y+x)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var re=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,z=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,z=40)}}return be&&((Fe===void 0||!Fe)&&Ge>0&&Ge+a1&&(De=!0)),Ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))ke=b(be,Ge,De,Fe,be.scaleContainerClass);else return Ye;return De&&(!be.hasOwnProperty("scale")||Ye===1)?ke:Math.min(Ye,ke)}function Be(be){var Ge=Math.min(window.innerWidth,document.documentElement.clientWidth),Fe=Math.min(window.innerHeight,document.documentElement.clientHeight),Ye=be.getBoundingClientRect(),ke=(Ge-Ye.width)/2,De=(Fe-Ye.height)/2;De<0&&(De=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ke<40?be.style.left="40px":be.style.left=ke+"px",be.style.top=De+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(De<40?be.style.top="40px":be.style.top=De+"px",be.style.left=ke+"px")}function Ie(be,Ge){var Fe=be.querySelector(".appletParameters");if(Fe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ge.id!==Fe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(Fe.parentElement&&/fullscreen/.test(Fe.parentElement.className))return;var Ye=he(Ge,be);_e()&&Fe.setAttribute("data-param-scale",Ye);for(var ke=null,De=0;De=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(_e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(_e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(_e){var xt=c[_e];return xt==null?null:xt},r=d,webModule.__errFn=e}function B(){function _e(be){var Ge=be.lastIndexOf(rb);Ge==-1&&(Ge=be.length);var Fe=be.indexOf(sb);Fe==-1&&(Fe=be.length);var Ye=be.lastIndexOf(tb,Math.min(Fe,Ge));return Ye>=O?be.substring(O,Ye+P):W}function xt(be){if(!be.match(/^\w+:\/\//)){var Ge=o.createElement(ub);Ge.src=be+vb,be=_e(Ge.src)}return be}function oe(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function b(){for(var be=o.getElementsByTagName(_),Ge=O;GeO?be[be.length-P].href:W}function Be(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var Ie=oe();return Ie==W&&(Ie=b()),Ie==W&&(Ie=he()),Ie==W&&Be()&&(Ie=_e(o.location.href)),Ie=xt(Ie),Ie}function C(_e){return _e.match(/^\//)||_e.match(/^[a-zA-Z]+:\/\//)?_e:webModule.__moduleBase+_e}function D(){var _e=[],xt=O,oe=[],b=[];function he(be){var Ge=b[be](),Fe=oe[be];if(Ge in Fe)return Ge;var Ye=[];for(var ke in Fe)Ye[Fe[ke]]=ke;throw r&&r(be,Ye,Ge),null}if(__gwt_isKnownPropertyValue=function(be,Ge){return Ge in oe[be]},webModule.__getPropMap=function(){var be={};for(var Ge in oe)oe.hasOwnProperty(Ge)&&(be[Ge]=he(Ge));return be},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Be;try{Be=Cb;var Ie=Be.indexOf(Db);Ie!=-1&&(xt=parseInt(Be.substring(Ie+P),$),Be=Be.substring(O,Ie))}catch(be){}return webModule.__softPermutationId=xt,C(Be+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},5862:function(_e,xt,oe){"use strict";oe.d(xt,{Ax:function(){return Ie},Ds:function(){return be},KI:function(){return Fe},SI:function(){return Be},f1:function(){return he}});var b=oe(41510);function he(Ye){let ke=!0;if(Ye.length>0){for(let De=0;Dea in E?Be(E,a,{enumerable:!0,configurable:!0,writable:!0,value:x}):E[a]=x,De=(E,a)=>{for(var x in a||(a={}))Fe.call(a,x)&&ke(E,x,a[x]);if(Ge)for(var x of Ge(a))Ye.call(a,x)&&ke(E,x,a[x]);return E},Oe=(E,a)=>Ie(E,be(a)),We=(E,a)=>{var x={};for(var y in E)Fe.call(E,y)&&a.indexOf(y)<0&&(x[y]=E[y]);if(E!=null&&Ge)for(var y of Ge(E))a.indexOf(y)<0&&Ye.call(E,y)&&(x[y]=E[y]);return x},Ve=(E,a,x)=>new Promise((y,z)=>{var ne=ge=>{try{ie(x.next(ge))}catch(fe){z(fe)}},re=ge=>{try{ie(x.throw(ge))}catch(fe){z(fe)}},ie=ge=>ge.done?y(ge.value):Promise.resolve(ge.value).then(ne,re);ie((x=x.apply(E,a)).next())});const le=E=>{var a=E,{children:x}=a,y=We(a,["children"]);const[z,ne]=(0,he.useState)(!1);return he.createElement(b.ZP,Oe(De({},y),{loading:z,onClick:re=>Ve(void 0,null,function*(){try{ne(!0),yield y.onClick(re),ne(!1)}catch(ie){console.error(ie),ne(!1)}})}),x)}},25603:function(_e,xt,oe){"use strict";var b=oe(86204),he=oe.n(b),Be=Object.defineProperty,Ie=(Ye,ke,De)=>ke in Ye?Be(Ye,ke,{enumerable:!0,configurable:!0,writable:!0,value:De}):Ye[ke]=De,be=(Ye,ke,De)=>Ie(Ye,typeof ke!="symbol"?ke+"":ke,De),Ge=(Ye,ke,De)=>new Promise((Oe,We)=>{var Ve=a=>{try{E(De.next(a))}catch(x){We(x)}},le=a=>{try{E(De.throw(a))}catch(x){We(x)}},E=a=>a.done?Oe(a.value):Promise.resolve(a.value).then(Ve,le);E((De=De.apply(Ye,ke)).next())});class Fe extends b.EventEmitter{constructor(ke,De){super(),be(this,"url"),be(this,"body"),be(this,"fullContent",""),be(this,"controller",null),be(this,"buffer",""),this.url=ke,this.body=De}startStream(){return Ge(this,null,function*(){this.controller=new AbortController;const{signal:ke}=this.controller;try{const De=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:ke});if(!De.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${De.status}`);const Oe=De.headers.get("content-type");if(!Oe)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(Oe.includes("application/json")){const le=yield De.json();this.emit("error",le);return}if(!Oe.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const We=De.body.getReader(),Ve=new TextDecoder("utf-8");for(;;){const{done:le,value:E}=yield We.read();if(le)break;const a=Ve.decode(E,{stream:!0});this.buffer+=a;const x=this.buffer.split(` +(self.webpackChunk=self.webpackChunk||[]).push([[3260],{87169:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Ye}});var b=oe(60499),he=oe(59301),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Ie=Be,be=oe(7657),Ge=function(De,Oe){return he.createElement(be.Z,(0,b.Z)({},De,{ref:Oe,icon:Ie}))},Fe=he.forwardRef(Ge),Ye=Fe},12893:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Ye}});var b=oe(60499),he=oe(59301),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Ie=Be,be=oe(7657),Ge=function(De,Oe){return he.createElement(be.Z,(0,b.Z)({},De,{ref:Oe,icon:Ie}))},Fe=he.forwardRef(Ge),Ye=Fe},32134:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Ye}});var b=oe(60499),he=oe(59301),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Ie=Be,be=oe(7657),Ge=function(De,Oe){return he.createElement(be.Z,(0,b.Z)({},De,{ref:Oe,icon:Ie}))},Fe=he.forwardRef(Ge),Ye=Fe},14973:function(_e,xt){"use strict";xt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},44388:function(_e,xt){"use strict";xt.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},49570:function(_e,xt){"use strict";xt.Z={flex_box_center:"flex_box_center___ycN2f",flex_space_between:"flex_space_between___LcS9e",flex_box_vertical_center:"flex_box_vertical_center___uwjPm",flex_box_center_end:"flex_box_center_end___Pc903",flex_box_column:"flex_box_column___AXEdv",bg:"bg___fm2Cw",title:"title___J3MCU",editIcon:"editIcon___i4Zll",titleLeft:"titleLeft___da61c",titleRight:"titleRight___EsdL6",formWrap:"formWrap___YTxC3",baseLineHeight:"baseLineHeight___TprCB",radioBtnWrapper:"radioBtnWrapper___Mt_XG",radiogroup:"radiogroup___EvkWh",easy:"easy___mSxtg",medium:"medium___NIaWN",hard:"hard___mddnD",baseFormItem:"baseFormItem___csbyb",cascaderPopup:"cascaderPopup___BttnF",selectdiv:"selectdiv___TAr4i",divitem:"divitem___iaXB2",bottmodiv:"bottmodiv___bmp6p",cancelBtn:"cancelBtn___Q4ZcL",confirmBtn:"confirmBtn___nRiCD",concat:"concat___jlPR1"}},42128:function(_e,xt,oe){"use strict";var b=oe(59301),he=Object.defineProperty,Be=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Ge=(ke,De,Oe)=>De in ke?he(ke,De,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ke[De]=Oe,Fe=(ke,De)=>{for(var Oe in De||(De={}))Ie.call(De,Oe)&&Ge(ke,Oe,De[Oe]);if(Be)for(var Oe of Be(De))be.call(De,Oe)&&Ge(ke,Oe,De[Oe]);return ke};const Ye=ke=>React.createElement("svg",Fe({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},ke),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));xt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},95006:function(_e,xt,oe){"use strict";var b=oe(59301),he=Object.defineProperty,Be=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Ge=(ke,De,Oe)=>De in ke?he(ke,De,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ke[De]=Oe,Fe=(ke,De)=>{for(var Oe in De||(De={}))Ie.call(De,Oe)&&Ge(ke,Oe,De[Oe]);if(Be)for(var Oe of Be(De))be.call(De,Oe)&&Ge(ke,Oe,De[Oe]);return ke};const Ye=ke=>React.createElement("svg",Fe({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},ke),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));xt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},64242:function(){"use strict";function _e(le,E,a,x){a===void 0&&(a=0),x===void 0&&(x=1/0),this._name=le,this._defaultValue=E,this._minimum=a,this._maximum=x}Object.defineProperty(_e.prototype,"name",{get:function(){return this._name},set:function(le){if(typeof le!="string"||le==="")throw new Error("Shape name must be a valid string.");this._name=le}}),Object.defineProperty(_e.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("The default value must be a real number, not: "+le);this._defaultValue=le}}),Object.defineProperty(_e.prototype,"minimum",{get:function(){return this._minimum},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("Minimum must be a real number, not: "+le);this._minimum=le}}),Object.defineProperty(_e.prototype,"maximum",{get:function(){return this._maximum},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("Maximum must be a real number, not: "+le);this._maximum=le}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(le,E){var a=go.Shape._FigureParameters[le];return a?a[E]:null},go.Shape.setFigureParameter=function(le,E,a){if(!(a instanceof _e))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValuea.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var x=go.Shape._FigureParameters[le];x||(x=[],go.Shape._FigureParameters[le]=x),x[E]=a};var xt=[];function oe(le,E){var a=xt.pop();return a===void 0?new go.Point(le,E):(a.x=le,a.y=E,a)}function b(){var le=xt.pop();return le===void 0?new go.Point:le}function he(le){xt.push(le)}function Be(le,E,a,x,y,z,ne,re,ie){ie||(ie=new go.Point);var ge=le-a,fe=y-ne,Pe=NaN,Ue=NaN;if(ge===0)if(fe===0)le===a&&(Pe=le,Ue=E);else{var Re=(z-re)/fe,lt=z-Re*y;Pe=le,Ue=Re*Pe+lt}else if(fe===0){var Le=(E-x)/ge,Ce=E-Le*le;Pe=y,Ue=Le*Pe+Ce}else{var Le=(E-x)/ge,Re=(z-re)/fe,Ce=E-Le*le,lt=z-Re*y;Pe=(lt-Ce)/(Le-Re),Ue=Le*Pe+Ce}return ie.x=Pe,ie.y=Ue,ie}function Ie(le,E,a,x,y,z,ne,re,ie,ge,fe,Pe,Ue,Re){var lt=1-ie,Le=ie,Ce=le*lt+a*Le,Xe=E*lt+x*Le,nt=a*lt+y*Le,ye=x*lt+z*Le,gt=y*lt+ne*Le,pt=z*lt+re*Le,wt=Ce*lt+nt*Le,ut=Xe*lt+ye*Le,Jt=nt*lt+gt*Le,on=ye*lt+pt*Le,It=wt*lt+Jt*Le,Vt=ut*lt+on*Le;ge.x=Ce,ge.y=Xe,fe.x=wt,fe.y=ut,Pe.x=It,Pe.y=Vt,Ue.x=Jt,Ue.y=on,Re.x=gt,Re.y=pt}var be=new go.Spot(.156,.156),Ge=new go.Spot(.844,.844),Fe=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new _e("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,E/3),x=Math.min(x,a/3);var y=x*Fe,z=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,E-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,x,E-y,0,E,y)).add(new go.PathSegment(go.PathSegment.Line,E,a-x)).add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,a-y,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,x,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,y,a,0,a-y)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()));return y>1&&(z.spot1=new go.Spot(0,0,y,y),z.spot2=new go.Spot(1,1,-y,-y)),z}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=a/2,x.endX=E,x.endY=a/2,x}),go.Shape.defineFigureGenerator("LineV",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=E/2,x.startY=0,x.endX=E/2,x.endY=a,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LineRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.25*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)))}),go.Shape.defineFigureGenerator("LineDown",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Line,E,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.75*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,a)))}),go.Shape.defineFigureGenerator("LineUp",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,E,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(le,E,a){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*E,(1-x)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,x*a)).add(new go.PathSegment(go.PathSegment.Move,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(le,E,a){var x=E/2,y=new go.Geometry().add(new go.PathFigure(E,E/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return y.spot1=be,y.spot2=Ge,y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Line1",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=E,x.endY=a,x}),go.Shape.defineFigureGenerator("Line2",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=E,x.startY=0,x.endX=0,x.endY=a,x}),go.Shape.defineFigureGenerator("Curve1",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,Fe*E,0,E,(1-Fe)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,0,Fe*a,(1-Fe)*E,a)))}),go.Shape.defineFigureGenerator("Curve3",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,Fe*a,Fe*E,a)))}),go.Shape.defineFigureGenerator("Curve4",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-Fe)*E,0,0,(1-Fe)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new _e("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var y=Math.abs(x)*E;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),yE&&(x=E);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y.5&&(x=.5);var y=Math.abs(x)*E;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),yE&&(x=E/2);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),yE&&(x=E/2);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())):z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),y0&&(ne.add(new go.PathSegment(go.PathSegment.Move,E/2+re,E/2)),ne.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y,y,re,re).close())),z.spot1=be,z.spot2=Ge,z.defaultStretch=go.GraphObject.Uniform,z}),go.Shape.defineFigureGenerator("Cloud",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.08034461*E,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*E,.05349299*a,-.09239631*E,.07836421*a,.1406031*E,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*E,.074219*a,.2450511*E,-.00697547*a,.3776197*E,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*E,.07004196*a,.4539471*E,0,.6066018*E,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*E,.08370865*a,.6914277*E,-.01904177*a,.8921095*E,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*E,.3194596*a,1.036446*E,.04105738*a,1.020377*E,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*E,.562044*a,1.04448*E,.360238*a,.992256*E,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*E,.8217117*a,1.032337*E,.5771781*a,1.018411*E,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*E,.9156953*a,1.028411*E,.9571472*a,.8556702*E,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*E,.9310455*a,.7431877*E,1.009325*a,.5624123*E,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*E,.9344623*a,.4820677*E,1.031761*a,.3030112*E,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.870098*a,.2329994*E,1.01518*a,.03213784*E,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*E,.6545475*a,-.02812061*E,.9032597*a,-.01205169*E,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*E,.4265613*a,-.01812061*E,.6089503*a,-.00606892*E,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.1944299*a,-.01606892*E,.3892545*a,-.01205169*E,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(le,E,a){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,x*a)).add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Line,x*E,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,x*a).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new _e("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new _e("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(le,E,a){var x=le?le.parameter1:NaN,y=le?le.parameter2:NaN;isNaN(x)&&(x=0),isNaN(y)&&(y=315);var z=x%360;z<0&&(z+=360);var ne=y%360,re=Math.min(E,a)/2;return new go.Geometry().add(new go.PathFigure(re,re).add(new go.PathSegment(go.PathSegment.Arc,z,ne,re,re,re,re).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(le,E,a){var x=Fe/Math.SQRT2*.5,y=Math.SQRT2/2,z=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,y*E,z*a,E,(1-x)*a,(y+x)*E,(z+x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new _e("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var y=Math.min(x,E)/2,z=E/2,ne=a/2;return new go.Geometry().add(new go.PathFigure(z-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+y,0)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne-y)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne-y).close()))}),go.Shape.setFigureParameter("ThinCross",0,new _e("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=Math.min(x,E)/2,z=E/2,ne=a/2;return new go.Geometry().add(new go.PathFigure(z-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+y,0)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne-y)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne-y).close()))}),go.Shape.setFigureParameter("ThickX",0,new _e("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(le,E,a){var x=le?le.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),E===0||a===0){var y=new go.Geometry(go.Geometry.Rectangle);return y.startX=0,y.startY=0,y.endX=E,y.endY=a,y}else{var z=E/2,ne=a/2,re=Math.atan2(a,E),ie=x-Math.min(Math.cos(re)*x/2,z),ge=x-Math.min(Math.sin(re)*x/2,ne),y=new go.Geometry,fe=new go.PathFigure(ie,0,!0);return y.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,z,.2*a)),fe.add(new go.PathSegment(go.PathSegment.Line,E-ie,0)),fe.add(new go.PathSegment(go.PathSegment.Line,E,ge)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,E,a-ge)),fe.add(new go.PathSegment(go.PathSegment.Line,E-ie,a)),fe.add(new go.PathSegment(go.PathSegment.Line,z,.8*a)),fe.add(new go.PathSegment(go.PathSegment.Line,ie,a)),fe.add(new go.PathSegment(go.PathSegment.Line,0,a-ge)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ge).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new _e("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=new go.Geometry,z=new go.PathFigure(.1*E,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),y}),go.Shape.setFigureParameter("SquareIBeam",0,new _e("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*a).close()),y}),go.Shape.setFigureParameter("RoundedIBeam",0,new _e("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.5);var y=new go.Geometry,z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,a,Math.abs(1-x)*E,.25*a,Math.abs(1-x)*E,.75*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*E,.75*a,x*E,.25*a).close()),y}),go.Shape.defineFigureGenerator("HalfEllipse",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,Fe*E,0,E,(.5-Fe/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,(.5+Fe/2)*a,Fe*E,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,0,E,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*E,.75*a,.5*E,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*E,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,0,0,.45*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.55*E,0,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.5*a,.9*E,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*E,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.6*E,.2*a,E,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.7*a,E,.8*a,.6*E,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,.5*E,.75*a,.55*E,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.7*a,.45*E,.95*a,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*E,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*E,.01*a,0,.25*a,.4*E,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.4*E,.6*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.15*E,a,.5*E,.75*a,.45*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.6*a,.55*E,.95*a,.5*E,.75*a));var z=.2,ne=.3,re=0,ie=z*Fe;return y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5+z+re)*a,(.5-z+ne)*E,(.5+ie+re)*a,(.5-ie+ne)*E,(.5+z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+ne)*E,(.5+re)*a,(.5+ie+ne)*E,(.5+z+re)*a,(.5+z+ne)*E,(.5+ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5-z+re)*a,(1-.5+z+ne)*E,(.5-ie+re)*a,(.5+ie+ne)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.65*E,.36771243*a,(.5-ie+ne)*E,(.5-z+re)*a,(.5-z+ne+.05)*E,(.5-ie+re-.02)*a)),z=.2,ne=0,re=-.3,ie=z*Fe,y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+ne)*E,(.5+re)*a,(.5+ie+ne)*E,(.5+z+re)*a,(.5+z+ne)*E,(.5+ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5-z+re)*a,(1-.5+z+ne)*E,(.5-ie+re)*a,(.5+ie+ne)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+ne)*E,(.5+re)*a,(.5-ie+ne)*E,(.5-z+re)*a,(.5-z+ne)*E,(.5-ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ie+ne)*E,(.5+z+re)*a,(.5-z+ne)*E,(.5+ie+re)*a,(.5-ie+ne)*E,(.5+z+re)*a)),z=.2,ne=-.3,re=0,ie=z*Fe,y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5-z+re)*a,(1-.5+z+ne-.05)*E,(.5-ie+re-.02)*a,(.5+ie+ne)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+ne)*E,(.5+re)*a,(.5-ie+ne)*E,(.5-z+re)*a,(.5-z+ne)*E,(.5-ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5+z+re)*a,(.5-z+ne)*E,(.5+ie+re)*a,(.5-ie+ne)*E,(.5+z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.6*a,(.5+ie+ne)*E,(.5+z+re)*a,(.5+z+ne)*E,(.5+ie+re)*a).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.5,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*.5,E*.5,E*.5,E*.5)),y.add(new go.PathSegment(go.PathSegment.Arc,90,-180,E*.5,E*.75,E*.25,E*.25)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,E*.5,E*.25,E*.25,E*.25));var z=.1,ne=.5,re=.25;return y.add(new go.PathSegment(go.PathSegment.Move,(ne+z)*E,re*a)),y.add(new go.PathSegment(go.PathSegment.Arc,0,-360,E*ne,a*re,z*E,z*E).close()),y=new go.PathFigure(E*.5,0,!1),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*.5,E*.5,E*.5,E*.5)),re=.75,y=new go.PathFigure((ne+z)*E,re*a,!0),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,0,360,E*ne,a*re,z*E,z*E).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(le,E,a){var x=.8535533905932737,y=.5*E,z=.5*a;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,y,z,y,z)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,y,z)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,x*a)).add(new go.PathSegment(go.PathSegment.Move,y,z)).add(new go.PathSegment(go.PathSegment.Line,x*E,x*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=.5,re=.5,ie=new go.PathFigure(ne*E,(re-z)*a);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),z=.4,y=Fe*.4;var ge=b(),fe=b(),Pe=b(),Ue=b();Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.42,ge,fe,Pe,Ue,Ue);var Re=b(),lt=b(),Le=b();Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.58,Ue,Ue,Le,Re,lt);var Ce=b(),Xe=b(),nt=b();Ie(ne,re+z,ne-y,re+z,ne-z,re+y,ne-z,re,.42,Ce,Xe,nt,Ue,Ue);var ye=b(),gt=b(),pt=b();return Ie(ne,re+z,ne-y,re+z,ne-z,re+y,ne-z,re,.58,Ue,Ue,pt,ye,gt),ie.add(new go.PathSegment(go.PathSegment.Move,pt.x*E,pt.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,ye.x*E,ye.y*a,gt.x*E,gt.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*E,Pe.y*a,ge.x*E,ge.y*a,fe.x*E,fe.y*a)),ie.add(new go.PathSegment(go.PathSegment.Line,pt.x*E,pt.y*a).close()),ie.add(new go.PathSegment(go.PathSegment.Move,nt.x*E,nt.y*a)),ie.add(new go.PathSegment(go.PathSegment.Line,Le.x*E,Le.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,Re.x*E,Re.y*a,lt.x*E,lt.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,nt.x*E,nt.y*a,Ce.x*E,Ce.y*a,Xe.x*E,Xe.y*a).close()),he(ge),he(fe),he(Pe),he(Ue),he(Re),he(lt),he(Le),he(Ce),he(Xe),he(nt),he(ye),he(gt),he(pt),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*E,0)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*E,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.5*a,E,.25*a,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new _e("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>E&&(x=E);var y=(E-x)/2,z=y+x;return new go.Geometry().add(new go.PathFigure(z,.5*a).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*E,0)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(le,E,a){var x=new go.Geometry,y=Fe*.4,z=.4,ne=.5,re=.5,ie=b(),ge=b(),fe=b(),Pe=b(),Ue=new go.PathFigure((ne-z)*E,re*a,!1);x.add(Ue),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.44,fe,Pe,ge,ie,ie),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*E,ge.y*a,fe.x*E,fe.y*a,Pe.x*E,Pe.y*a));var Re=oe(ge.x,ge.y);Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.56,ie,ie,ge,fe,Pe);var lt=oe(ge.x,ge.y);Ue.add(new go.PathSegment(go.PathSegment.Line,(Re.x*.1+.95*.9)*E,Re.y*.1*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,.85*E,Re.y*.1*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,.85*E,0)),Ue.add(new go.PathSegment(go.PathSegment.Line,E,0)),Ue.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,(lt.x*.1+.9)*E,.15*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,(lt.x*.1+.9)*E,(lt.y*.1+.05*.9)*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,lt.x*E,lt.y*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,fe.x*E,fe.y*a,Pe.x*E,Pe.y*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),z=.35,y=Fe*.35;var Le=new go.PathFigure(ne*E,(re-z)*a,!1);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a));var Ce=new go.PathFigure((ne-z)*E,re*a,!1);return x.add(Ce),he(ie),he(ge),he(fe),he(Pe),he(Re),he(lt),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(le,E,a){var x=new go.Geometry,y=.375,z=0,ne=-.125,re=y*Fe,ie=new go.PathFigure((.525+z)*E,(.5+y+ne)*a,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+ne)*a,(.5+re+z)*E,(.5+y+ne)*a,(.5+y+z)*E,(.5+re+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+ne)*a,(1-.5+y+z)*E,(.5-re+ne)*a,(.5+re+z)*E,(.5-y+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+ne)*a,(.5-re+z)*E,(.5-y+ne)*a,(.5-y+z)*E,(.5-re+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.475+z)*E,(.5+y+ne)*a,(.5-y+z)*E,(.5+re+ne)*a,(.5-re+z)*E,(.5+y+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*E,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*E,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*E,a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*E,a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*E,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a).close()),y=.325,z=0,ne=-.125,re=y*Fe;var ie=new go.PathFigure((1-.5+y+z)*E,(.5+ne)*a,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5+y+ne)*a,(.5+y+z)*E,(.5+re+ne)*a,(.5+re+z)*E,(.5+y+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+ne)*a,(.5-re+z)*E,(.5+y+ne)*a,(.5-y+z)*E,(.5+re+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+ne)*a,(.5-y+z)*E,(.5-re+ne)*a,(.5-re+z)*E,(.5-y+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+ne)*a,(.5+re+z)*E,(.5-y+ne)*a,(1-.5+y+z)*E,(.5-re+ne)*a));var ie=new go.PathFigure((.525+z)*E,(.5+y+ne)*a,!1);return x.add(ie),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(le,E,a){var x=le?le.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(le,E,a){var x=le?le.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,x*E,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,x*E,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(le,E,a){var x=new go.Geometry().add(new go.PathFigure(.5*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*E,.5*a,.5*E,.5*a)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Move,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(le,E,a){var x=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(le,E,a){var x=.5;return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,x*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new _e("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new _e("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=le?le.parameter2:NaN;isNaN(y)&&(y=.3);var z=(1-x)*E,ne=(.5-y/2)*a,re=(.5+y/2)*a,ie=new go.Geometry,ge=new go.PathFigure(0,ne,!0);ie.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,z,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,z,0)),ge.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Line,z,a)),ge.add(new go.PathSegment(go.PathSegment.Line,z,re)),ge.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),ie.spot1=new go.Spot(0,ne/a);var fe=Be(0,re/a,1,re/a,z/E,1,1,.5,b());return ie.spot2=new go.Spot(fe.x,fe.y),he(fe),ie}),go.Shape.setFigureParameter("Arrow2",0,new _e("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new _e("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=30),x>E&&(x=E);var y=le?le.parameter2:NaN;isNaN(y)&&(y=30),y=Math.min(y,a/2);var z=E-x,ne=(a-y)/2,re=ne+y,ie=new go.Geometry,ge=new go.PathFigure(0,ne,!0);ie.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,z,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,z,0)),ge.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Line,z,a)),ge.add(new go.PathSegment(go.PathSegment.Line,z,re)),ge.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),ie.spot1=new go.Spot(0,ne/a);var fe=Be(0,re/a,1,re/a,z/E,1,1,.5,b());return ie.spot2=new go.Spot(fe.x,fe.y),he(fe),ie}),go.Shape.defineFigureGenerator("Chevron",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.214*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,1*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.786*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new _e("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*a,z=(.5+x/2)*a,ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close());var ie=Be(0,.5,.3,0,0,y/a,.1,y/a,b());return ne.spot1=new go.Spot(ie.x,ie.y),ie=Be(.7,1,1,.5,0,z/a,1,z/a,ie),ne.spot2=new go.Spot(ie.x,ie.y),he(ie),ne}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new _e("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new _e("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=40);var y=le?le.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,ne=z+x,re=(a-y)/2,ie=re+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,ne=z+x,re=0,ie=a):(z=0,ne=a,re=0,ie=a));var ge=new go.Geometry,fe=new go.PathFigure(E,.5*a,!0);ge.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,.3*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,.3*E,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),fe.add(new go.PathSegment(go.PathSegment.Line,.3*E,re)),fe.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,re).close());var Pe=Be(0,.5,.3,re/a,0,z/a,1,z/a,b());return ge.spot1=new go.Spot(Pe.x,Pe.y),Pe=Be(.7,ie/a,1,.5,0,ne/a,1,ne/a,Pe),ge.spot2=new go.Spot(Pe.x,Pe.y),he(Pe),ge}),go.Shape.setFigureParameter("IBeamArrow",0,new _e("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*a,z=(.5+x/2)*a,ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ne.spot1=new go.Spot(0,y/a);var ie=Be(.7,1,1,.5,0,z/a,1,z/a,b());return ne.spot2=new go.Spot(ie.x,ie.y),he(ie),ne}),go.Shape.setFigureParameter("IBeamArrow2",0,new _e("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new _e("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=40);var y=le?le.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,ne=z+x,re=(a-y)/2,ie=re+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,ne=z+x,re=0,ie=a):(z=0,ne=a,re=0,ie=a));var ge=new go.Geometry,fe=new go.PathFigure(E,.5*a,!0);ge.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,0,re)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,re)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,re).close()),ge.spot1=new go.Spot(0,z/a);var Pe=Be(.7,ie/a,1,.5,0,ne/a,1,ne/a,b());return ge.spot2=new go.Spot(Pe.x,Pe.y),he(Pe),ge}),go.Shape.setFigureParameter("Pointer",0,new _e("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.1);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),y.spot1=new go.Spot(x,.35);var ne=Be(.2,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(ne.x,ne.y),he(ne),y}),go.Shape.setFigureParameter("RoundedPointer",0,new _e("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*E,.75*a,x*E,.25*a).close()),y.spot1=new go.Spot(x,.35);var ne=Be(0,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(ne.x,ne.y),he(ne),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new _e("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.4);var y=(.5-x/2)*a,z=(.5+x/2)*a,ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ne.spot1=new go.Spot(.2,.3);var ie=Be(.7,1,1,.5,0,z/a,1,z/a,b());return ne.spot2=new go.Spot(ie.x,ie.y),he(ie),ne}),go.Shape.setFigureParameter("SplitEndArrow2",0,new _e("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=50);var y=(a-x)/2,z=y+x;x>a&&(y=0,z=a);var ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ne.spot1=new go.Spot(.2,y/a);var ie=Be(.7,1,1,.5,0,z/a,1,z/a,b());return ne.spot2=new go.Spot(ie.x,ie.y),he(ie),ne}),go.Shape.setFigureParameter("SquareArrow",0,new _e("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.7);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,x*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,0).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(x,1),y}),go.Shape.defineFigureGenerator("Cone1",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=Fe*.1,ne=new go.PathFigure(0,.9*a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.9*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,a,.85/.9*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var z=new go.PathFigure(0,.9*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,.8*a,.85/.9*E,.8*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.3*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0).close());var z=new go.PathFigure(0,.3*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,z=Fe*.5,ne=new go.PathFigure(0,x,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,Fe*x,(.5-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,1*E,x,(.5+z)*E,0,1*E,Fe*x)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,1*a,1*E,a-Fe*x,(.5+z)*E,1*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-z)*E,1*a,0,a-Fe*x)),ne.add(new go.PathSegment(go.PathSegment.Line,0,x));var re=new go.PathFigure(E,x,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,2*x,1*E,2*x-Fe*x,(.5+z)*E,2*x)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-z)*E,2*x,0,2*x-Fe*x)),y.spot1=new go.Spot(0,0,0,2*x),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,z=Fe*.5,ne=new go.PathFigure(0,a-x,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,x)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,Fe*x,(.5-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,x,(.5+z)*E,0,E,Fe*x)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,a-Fe*x,(.5+z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-z)*E,a,0,a-Fe*x));var re=new go.PathFigure(0,a-x,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a-2*x,0,a-x-Fe*x,(.5-z)*E,a-2*x)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,a-x,(.5+z)*E,a-2*x,E,a-x-Fe*x)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,0,-2*x),y}),go.Shape.defineFigureGenerator("Cylinder3",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,z=Fe*.5,ne=new go.PathFigure(x,0,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E-x,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-Fe*x,0,E,(.5-z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,(.5+z)*a,E-Fe*x,a)),ne.add(new go.PathSegment(go.PathSegment.Line,x,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,Fe*x,a,0,(.5+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*a,Fe*x,0));var re=new go.PathFigure(x,0,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*a,x+Fe*x,0,2*x,(.5-z)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,x,a,2*x,(.5+z)*a,x+Fe*x,a)),y.spot1=new go.Spot(0,0,2*x,0),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder4",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,z=Fe*.5,ne=new go.PathFigure(E-x,0,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-Fe*x,0,E,(.5-z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,(.5+z)*a,E-Fe*x,a)),ne.add(new go.PathSegment(go.PathSegment.Line,x,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,Fe*x,a,0,(.5+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*a,Fe*x,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E-x,0));var re=new go.PathFigure(E-x,0,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,E-2*x,.5*a,E-x-Fe*x,0,E-2*x,(.5-z)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E-2*x,(.5+z)*a,E-x-Fe*x,a)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,-2*x,0),y}),go.Shape.defineFigureGenerator("Prism1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,.25*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.25*E,.25*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.25*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var z=new go.PathFigure(.5*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(le,E,a){var x=new go.Geometry,y=.2,z=.1,ne=Fe*y,re=Fe*z,ie=.5,ge=.1,fe=new go.PathFigure(ie*E,(ge+z)*a,!0);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-y)*E,ge*a,(ie-ne)*E,(ge+z)*a,(ie-y)*E,(ge+re)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-z)*a,(ie-y)*E,(ge-re)*a,(ie-ne)*E,(ge-z)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+y)*E,ge*a,(ie+ne)*E,(ge-z)*a,(ie+y)*E,(ge-re)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge+z)*a,(ie+y)*E,(ge+re)*a,(ie+ne)*E,(ge+z)*a));var Pe=.05,Ue=Fe*Pe;ie=.05,ge=.25;var Re=new go.PathFigure(.5*E,.2*a,!0);return x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,.95*E,.2*a)),ie=.95,ge=.25,Re.add(new go.PathSegment(go.PathSegment.Bezier,(ie+Pe)*E,ge*a,(ie+Ue)*E,(ge-Pe)*a,(ie+Pe)*E,(ge-Ue)*a)),Re.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),Re.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),Re.add(new go.PathSegment(go.PathSegment.Line,.85*E,.35*a)),Pe=.025,Ue=Fe*Pe,ie=.825,ge=.35,Re.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-Pe)*a,(ie+Pe)*E,(ge-Ue)*a,(ie+Ue)*E,(ge-Pe)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ie-Pe)*E,ge*a,(ie-Ue)*E,(ge-Pe)*a,(ie-Pe)*E,(ge-Ue)*a)),Re.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),Re.add(new go.PathSegment(go.PathSegment.Line,.55*E,a)),Re.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a)),Pe=.05,Ue=Fe*Pe,ie=.5,ge=.7,Re.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-Pe)*a,(ie+Pe)*E,(ge-Ue)*a,(ie+Ue)*E,(ge-Pe)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ie-Pe)*E,ge*a,(ie-Ue)*E,(ge-Pe)*a,(ie-Pe)*E,(ge-Ue)*a)),Re.add(new go.PathSegment(go.PathSegment.Line,.45*E,a)),Re.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),Re.add(new go.PathSegment(go.PathSegment.Line,.2*E,.35*a)),Pe=.025,Ue=Fe*Pe,ie=.175,ge=.35,Re.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-Pe)*a,(ie+Pe)*E,(ge-Ue)*a,(ie+Ue)*E,(ge-Pe)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ie-Pe)*E,ge*a,(ie-Ue)*E,(ge-Pe)*a,(ie-Pe)*E,(ge-Ue)*a)),Re.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),Re.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),Re.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),Pe=.05,Ue=Fe*Pe,ie=.05,ge=.25,Re.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-Pe)*a,(ie-Pe)*E,(ge-Ue)*a,(ie-Ue)*E,(ge-Pe)*a)),Re.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new _e("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,z=new go.PathFigure(E,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,0).close()),y.spot1=new go.Spot(0,x),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Collate",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a));var z=new go.PathFigure(.5*E,.5*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(0,y*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),ne.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,(1-y)*a)),x}),go.Shape.defineFigureGenerator("Database",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=Fe*.1,ne=new go.PathFigure(E,.1*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+y)*E,0,E,(.1-z)*a));var re=new go.PathFigure(E,.1*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+y)*E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*E,.2*a,0,(.1+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+y)*E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*E,.3*a,0,(.2+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.4*a,E,(.3+z)*a,(.5+y)*E,.4*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-y)*E,.4*a,0,(.3+z)*a)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.9*a,.25*E,.1*a).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=Fe*.1,ne=new go.PathFigure(E,.1*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+y)*E,0,E,(.1-z)*a));var re=new go.PathFigure(E,.1*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+y)*E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*E,.2*a,0,(.1+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+y)*E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*E,.3*a,0,(.2+z)*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)?y=.2:y<.15&&(y=.15);var z=Fe*.2,ne=new go.PathFigure(0,.2*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,0,(.2-z)*a,(.2-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.2*a,(.8+z)*E,0,E,(.2-z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,a,E,(.8+z)*a,(.8+z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-z)*E,a,0,(.8+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var re=new go.PathFigure(0,y*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;(isNaN(y)||y<.1)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(0,y*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),x}),go.Shape.defineFigureGenerator("Document",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;(isNaN(y)||y<.2)&&(y=.2);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(y*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y*a)),ne.add(new go.PathSegment(go.PathSegment.Move,E,y*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),ne.add(new go.PathSegment(go.PathSegment.Move,(1-y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,(1-y)*a)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(.1*E,.4*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.9*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.6*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Move,.4*E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.9*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.75*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a));var z=new go.PathFigure(E,.5*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a));var ne=new go.PathFigure(E,.5*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.1);var ne=new go.PathFigure(0,0,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var re=new go.PathFigure(y*E,0,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),re.add(new go.PathSegment(go.PathSegment.Move,0,z*a)),re.add(new go.PathSegment(go.PathSegment.Line,E,z*a)),x}),go.Shape.defineFigureGenerator("Junction",function(le,E,a){var x=new go.Geometry,y=1/Math.SQRT2,z=(1-1/Math.SQRT2)/2,ne=Fe*.5,re=.5,ie=new go.PathFigure(E,re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,re*E,a,E,(re+ne)*a,(re+ne)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,re*a,(re-ne)*E,a,0,(re+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,re*E,0,0,(re-ne)*a,(re-ne)*E,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,re*a,(re+ne)*E,0,E,(re-ne)*a));var ge=new go.PathFigure((z+y)*E,(z+y)*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,z*E,z*a)),ge.add(new go.PathSegment(go.PathSegment.Move,z*E,(z+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Line,(z+y)*E,z*a)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close());var z=new go.PathFigure(.1*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.75*a)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=new go.PathFigure(.5*E,a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+.1)*E,.9*a,E,(z+y)*a,(z+y)*E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.7);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.25);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,y*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.44*a,.96*E,.47*a,.93*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.54*a,.86*E,.57*a,.83*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*E,.4*a,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,0).close());var z=new go.PathFigure(.1*E,.2*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.44*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,.1*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close());var z=new go.PathFigure(.2*E,.1*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Move,.1*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=1-y,ne=new go.PathFigure(0,0,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close());var re=new go.PathFigure(.5*y*E,y*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,(1-.5*y)*E,y*a)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=new go.PathFigure(E,z*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+y)*a,(z+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a));var re=new go.PathFigure(E,.5*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),re.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.5*E,.6*a,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.3);var ne=new go.PathFigure(0,0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.3);var ne=new go.PathFigure(0,0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure((1-y)*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Move,y*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),x}),go.Shape.defineFigureGenerator("Process",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(y*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(0,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.25);var z=new go.PathFigure(y*E,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a));var ne=new go.PathFigure(y*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),ne.add(new go.PathSegment(go.PathSegment.Move,(1-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,a)),x.spot1=new go.Spot(y,0),x.spot2=new go.Spot(1-y,1),x}),go.Shape.defineFigureGenerator("Terminator",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(.5+y)*E,0,E,(.5-y)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.5+y)*a,(.5+y)*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=new go.PathFigure(E,z*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+y)*a,(z+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a));var re=new go.PathFigure(E,z*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,z*a));var ie=new go.PathFigure(.8*E,.75*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.8*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*E,.75*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*E,.75*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*E,.75*a)),x}),go.Shape.defineFigureGenerator("Ground",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Move,.3*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),x}),go.Shape.defineFigureGenerator("Inverter",function(le,E,a){var x=new go.Geometry,y=Fe*.1,z=.1,ne=.9,re=.5,ie=new go.PathFigure(.8*E,.5*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,a)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a));var ge=new go.PathFigure((ne+z)*E,re*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re-z)*a,(ne+z)*E,(re-y)*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=Fe*.4,ne=Fe*.1,re=.1,ie=.9,ge=.5,fe=new go.PathFigure(.8*E,.5*a,!0);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,.8*E,(.5+z)*a,(.4+y)*E,a)),fe.add(new go.PathSegment(go.PathSegment.Line,0,a)),fe.add(new go.PathSegment(go.PathSegment.Line,0,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(.4+y)*E,0,.8*E,(.5-z)*a));var Pe=new go.PathFigure((ie+re)*E,ge*a,!0);return x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge+re)*a,(ie+re)*E,(ge+ne)*a,(ie+ne)*E,(ge+re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E,ge*a,(ie-ne)*E,(ge+re)*a,(ie-re)*E,(ge+ne)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-re)*a,(ie-re)*E,(ge-ne)*a,(ie-ne)*E,(ge-re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E,ge*a,(ie+ne)*E,(ge-re)*a,(ie+re)*E,(ge-ne)*a)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*y,ne=0,re=.5,ie=new go.PathFigure(.8*E,.5*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(ne+z)*E,(re-y)*a,.7*E,(re-z)*a)),y=.1,z=Fe*.1,ne=.9,re=.5;var ge=new go.PathFigure((ne-y)*E,re*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*y,ne=0,re=.5,ie=new go.PathFigure(0,0,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(ne+z+z)*E,(re-y)*a,.8*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*E,(re+z)*a,(ne+z+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*y,ne=.2,re=.5,ie=new go.PathFigure(.1*E,0,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ge=new go.PathFigure(.8*E,.5*a,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.7*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(ne+z)*E,(re-y)*a,.7*E,(re-z)*a)),y=.1,z=Fe*.1,ne=.9,re=.5;var fe=new go.PathFigure((ne-y)*E,re*a,!0);return x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*y,ne=.2,re=.5,ie=new go.PathFigure(.1*E,0,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ge=new go.PathFigure(.2*E,0,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(ne+z)*E,(re-y)*a,.9*E,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.9*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("Resistor",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),x}),go.Shape.defineFigureGenerator("Inductor",function(le,E,a){var x=new go.Geometry,y=Fe*.1,z=.1,ne=.1,re=.5,ie=new go.PathFigure((ne-y*.5)*E,a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.3,ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,a,(ne+z)*E,0,(ne+y)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.5,ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,a,(ne+z)*E,0,(ne+y)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.7,ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,a,(ne+z)*E,0,(ne+y)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.9,ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y*.5)*E,a,(ne+z)*E,0,(ne+y)*E,a)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=.5,re=.5,ie=new go.PathFigure((ne-z)*E,re*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re-z)*a,(ne+z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Move,(ne-z+.1)*E,re*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z-.1)*E,re*a,ne*E,(re-z)*a,ne*E,(re+z)*a)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("Diode",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(le,E,a){var x=new go.Geometry,y=E,z=a;E=E*.38,a=a*.6;var ne=Fe*.8,re=.8,ie=0,ge=.5,fe=(y-E)/2,Pe=(z-a)/2,Ue=new go.PathFigure(ie*E+fe,(ge+re)*a+Pe,!0);x.add(Ue),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E+fe,ge*a+Pe,(ie-ne)*E+fe,(ge+re)*a+Pe,(ie-re)*E+fe,(ge+ne)*a+Pe)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie-re)*E+fe,(ge-ne)*a+Pe,(ie-ne)*E+fe,(ge-re)*a+Pe)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re+ne*.5)*E+fe,ge*a+Pe,ie*E+fe,(ge-re)*a+Pe,(ie-re+ne*.5)*E+fe,(ge-ne)*a+Pe)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie-re+ne*.5)*E+fe,(ge+ne)*a+Pe,ie*E+fe,(ge+re)*a+Pe).close()),ne=Fe*.4,re=.4,ie=.2,ge=.5;var Re=new go.PathFigure(ie*E+fe,(ge+re)*a+Pe,!0);x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E+fe,ge*a+Pe,(ie-ne)*E+fe,(ge+re)*a+Pe,(ie-re)*E+fe,(ge+ne)*a+Pe)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie-re)*E+fe,(ge-ne)*a+Pe,(ie-ne)*E+fe,(ge-re)*a+Pe)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re+ne*.5)*E+fe,ge*a+Pe,ie*E+fe,(ge-re)*a+Pe,(ie-re+ne*.5)*E+fe,(ge-ne)*a+Pe)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie-re+ne*.5)*E+fe,(ge+ne)*a+Pe,ie*E+fe,(ge+re)*a+Pe).close()),ne=Fe*.2,re=.2,ie=.5,ge=.5;var lt=new go.PathFigure((ie-re)*E+fe,ge*a+Pe,!0);x.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie-re)*E+fe,(ge-ne)*a+Pe,(ie-ne)*E+fe,(ge-re)*a+Pe)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E+fe,ge*a+Pe,(ie+ne)*E+fe,(ge-re)*a+Pe,(ie+re)*E+fe,(ge-ne)*a+Pe)),lt.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie+re)*E+fe,(ge+ne)*a+Pe,(ie+ne)*E+fe,(ge+re)*a+Pe)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E+fe,ge*a+Pe,(ie-ne)*E+fe,(ge+re)*a+Pe,(ie-re)*E+fe,(ge+ne)*a+Pe)),ne=Fe*.4,re=.4,ie=.8,ge=.5;var Le=new go.PathFigure(ie*E+fe,(ge-re)*a+Pe,!0);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E+fe,ge*a+Pe,(ie+ne)*E+fe,(ge-re)*a+Pe,(ie+re)*E+fe,(ge-ne)*a+Pe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie+re)*E+fe,(ge+ne)*a+Pe,(ie+ne)*E+fe,(ge+re)*a+Pe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re-ne*.5)*E+fe,ge*a+Pe,ie*E+fe,(ge+re)*a+Pe,(ie+re-ne*.5)*E+fe,(ge+ne)*a+Pe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie+re-ne*.5)*E+fe,(ge-ne)*a+Pe,ie*E+fe,(ge-re)*a+Pe).close()),ne=Fe*.8,re=.8,ie=1,ge=.5;var Ce=new go.PathFigure(ie*E+fe,(ge-re)*a+Pe,!0);return x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E+fe,ge*a+Pe,(ie+ne)*E+fe,(ge-re)*a+Pe,(ie+re)*E+fe,(ge-ne)*a+Pe)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie+re)*E+fe,(ge+ne)*a+Pe,(ie+ne)*E+fe,(ge+re)*a+Pe)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re-ne*.5)*E+fe,ge*a+Pe,ie*E+fe,(ge+re)*a+Pe,(ie+re-ne*.5)*E+fe,(ge+ne)*a+Pe)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie+re-ne*.5)*E+fe,(ge-ne)*a+Pe,ie*E+fe,(ge-re)*a+Pe).close()),x}),go.Shape.defineFigureGenerator("Email",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.54*a)),x}),go.Shape.defineFigureGenerator("Ethernet",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.35*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,0).close());var z=new go.PathFigure(.1*E,a,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var ne=new go.PathFigure(.6*E,a,!0,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*E,.6*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*E,a).close());var re=new go.PathFigure(0,.5*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),re.add(new go.PathSegment(go.PathSegment.Move,.75*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.75*E,.6*a)),re.add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.25*E,.6*a)),x}),go.Shape.defineFigureGenerator("Power",function(le,E,a){var x=new go.Geometry,y=Fe*.4,z=.4,ne=.5,re=.5,ie=b(),ge=b(),fe=b(),Pe=b();Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.5,ie,ie,ge,fe,Pe);var Ue=oe(ge.x,ge.y),Re=new go.PathFigure(ge.x*E,ge.y*a,!0);x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,fe.x*E,fe.y*a,Pe.x*E,Pe.y*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),Ie(ne-z,re,ne-z,re-y,ne-y,re-z,ne,re-z,.5,fe,Pe,ge,ie,ie),Re.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*E,ge.y*a,fe.x*E,fe.y*a,Pe.x*E,Pe.y*a)),y=Fe*.3,z=.3,Ie(ne-z,re,ne-z,re-y,ne-y,re-z,ne,re-z,.5,fe,Pe,ge,ie,ie),Re.add(new go.PathSegment(go.PathSegment.Line,ge.x*E,ge.y*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,Pe.x*E,Pe.y*a,fe.x*E,fe.y*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.5,ie,ie,ge,fe,Pe),Re.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*E,ge.y*a,Pe.x*E,Pe.y*a,fe.x*E,fe.y*a).close());var Re=new go.PathFigure(.45*E,0,!0);return x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)),Re.add(new go.PathSegment(go.PathSegment.Line,.55*E,.5*a)),Re.add(new go.PathSegment(go.PathSegment.Line,.55*E,0).close()),he(ie),he(ge),he(fe),he(Pe),he(Ue),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a/2,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,180,360,E/2,a/2,E/2,a/2));function z(ne,re,ie){ne.add(new go.PathSegment(go.PathSegment.Move,(.3+re)*E,(.8+ie)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(.5+re)*E,(.5+ie)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(.1+re)*E,(.5+ie)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(.3+re)*E,(.8+ie)*a).close())}return z(y,0,0),z(y,.4,0),z(y,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.2*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.37*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.11*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*E,.04*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.49*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.37*a)),y.add(new go.PathSegment(go.PathSegment.Line,.63*E,.86*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*E,.91*a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*E,.78*a)),y.add(new go.PathSegment(go.PathSegment.Line,.44*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.56*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.29*E,0,-.25*E,.63*a,.45*E,.44*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.51*E,.42*a,.48*E,.17*a,.54*E,.35*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.59*E,.18*a,.59*E,.29*a,.58*E,.28*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,.6*a,.8*E,.34*a,.88*E,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.88*E,.31*a,.87*E,.48*a,.88*E,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,1.17*E,.76*a,.82*E,.8*a).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(le,E,a){var x=new go.Geometry,y=.5,z=0,ne=0,re=y*Fe,ie=.4*Math.SQRT2/2+.5,ge=.5-.5*Math.SQRT2/2,fe=1,Pe=.5,Ue=.5,Re=0,lt=new go.PathFigure(ie*E,(1-ge)*a,!1);return x.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,Pe*a,fe*E,.7*a,fe*E,Pe*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+z)*E,(Re+z)*a,(.5+y+z)*E,(.5-re+z)*a,(.5+re+z)*E,(.5-y+z)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+ne)*a,(.5-re+z)*E,(.5-y+ne)*a,(.5-y+z)*E,(.5-re+ne)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+z)*E,.9*a,(.5-y+z)*E,(.5+re+ne)*a,(.5-re+z)*E,.9*a)),lt.add(new go.PathSegment(go.PathSegment.Move,(.25+z)*E,.8*a)),lt.add(new go.PathSegment(go.PathSegment.Line,(.35+z)*E,.9*a)),lt.add(new go.PathSegment(go.PathSegment.Line,(.2+z)*E,.95*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var ne=new go.PathFigure(0,.5*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.2*E,.35*a,.3*E,.35*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.7*E,.65*a,.8*E,.65*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var y=new go.PathFigure(0,.2*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.7*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,0,.6*E,.5*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,a,.4*E,.5*a,E,.5*a).close());var z=new go.PathFigure(.45*E,.73*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.73*a)),z.add(new go.PathSegment(go.PathSegment.Move,.38*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.63*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Move,.31*E,.27*a)),z.add(new go.PathSegment(go.PathSegment.Line,.56*E,.27*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(.335*E,(1-.555)*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.68*a,(1-.12)*E,.46*a,(1-.02)*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.335*E,(1-.555)*a,.02*E,.54*a,.12*E,.46*a)),z.add(new go.PathSegment(go.PathSegment.Line,.365*E,(1-.595)*a));var ne=.5-.285,re=.5,ie=ne,ge=Math.PI/4,fe=4*(1-Math.cos(ge))/(3*Math.sin(ge)),Pe=fe*.5,Ue=ne,Re=ne,lt=fe*Ue,Le=fe*Re;z.add(new go.PathSegment(go.PathSegment.Bezier,(re-Ue)*E,ie*a,(re-(lt+Ue)/2)*E,(ie+(Re+Le)/2)*a,(re-Ue)*E,(ie+Le)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,re*E,(ie-Re)*a,(re-Ue)*E,(ie-Le)*a,(re-lt)*E,(ie-Re)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(re+Ue)*E,ie*a,(re+lt)*E,(ie-Re)*a,(re+Ue)*E,(ie-Le)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*E,(1-.595)*a,(re+Ue)*E,(ie+Le)*a,(re+(lt+Ue)/2)*E,(ie+(Re+Le)/2)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*E,(1-.595)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a));var Ce=new go.PathFigure(.2*E,a,!1);x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*E,.8*a));var Xe=new go.PathFigure(.8*E,a,!1);return x.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var z=new go.PathFigure(.2*E,.2*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var ne=new go.PathFigure(.1*E,a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Caution",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.05*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.8*a,0,a,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.1*a,.5*E,0,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.95*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,E,a,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,a));var z=.05;return y.add(new go.PathSegment(go.PathSegment.Move,(.5-z)*E,.875*a)),y.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*E,.875*a,z*E,z*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.325*a,.575*E,.725*a,.625*E,.375*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.75*a,.375*E,.375*a,.425*E,.725*a)),x}),go.Shape.defineFigureGenerator("Recycle",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.45*E,.95*a,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.185*E,.85*a,.17*E,.95*a,.15*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.235*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.625*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,.275*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.575*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.1875*E,.95*a,0,.675*a,0,.7*a)),y.add(new go.PathSegment(go.PathSegment.Move,.45*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.775*a)),y.add(new go.PathSegment(go.PathSegment.Line,.22*E,.775*a));var z=new go.PathFigure(.475*E,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.225*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.275*E,.175*a)),z.add(new go.PathSegment(go.PathSegment.Line,.325*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.05*a,.35*E,0,.375*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.575*E,.375*a)),z.add(new go.PathSegment(go.PathSegment.Line,.525*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.475*a)),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.315*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.32*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,0,.65*E,.05*a,.625*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.38*E,.0105*a));var ne=new go.PathFigure(.675*E,.575*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.875*E,.525*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.85*E,.95*a,E,.8*a,E,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,.95*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,.725*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Move,.675*E,.575*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.775*E,.775*a)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*.5,ne=new go.PathFigure(E,y*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,y*E,a,E,(y+z)*a,(y+z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y*a,(y-z)*E,a,0,(y+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,y*E,0,0,(y-z)*a,(y-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,y*a,(y+z)*E,0,E,(y-z)*a));var re=new go.PathFigure(y*E,0,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*E,.15*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,y*E,.85*a)),re.add(new go.PathSegment(go.PathSegment.Move,0,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.15*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.85*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.58*E,.1*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.78*E,.54*a)),x}),go.Shape.defineFigureGenerator("Package",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.15*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,.15*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.15*a).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var ne=new go.PathFigure(0,.5*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Component",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close());var z=new go.PathFigure(0,.2*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var ne=new go.PathFigure(0,.6*a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.45*E,.6*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.45*E,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.15*E,.6*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a));var z=new go.PathFigure(.15*E,.6*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(E,.8*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.8*a).close());var ne=.1,re=Fe*.1,ie=.2,ge=.9,fe=new go.PathFigure((ie-ne)*E,ge*a,!0);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-ne)*a,(ie-ne)*E,(ge-re)*a,(ie-re)*E,(ge-ne)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*E,ge*a,(ie+re)*E,(ge-ne)*a,(ie+ne)*E,(ge-re)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge+ne)*a,(ie+ne)*E,(ge+re)*a,(ie+re)*E,(ge+ne)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*E,ge*a,(ie-re)*E,(ge+ne)*a,(ie-ne)*E,(ge+re)*a).close()),ne=.1,re=Fe*.1,ie=.8,ge=.9;var Pe=new go.PathFigure((ie-ne)*E,ge*a,!0);return x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-ne)*a,(ie-ne)*E,(ge-re)*a,(ie-re)*E,(ge-ne)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*E,ge*a,(ie+re)*E,(ge-ne)*a,(ie+ne)*E,(ge-re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge+ne)*a,(ie+ne)*E,(ge+re)*a,(ie+re)*E,(ge+ne)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*E,ge*a,(ie-re)*E,(ge+ne)*a,(ie-ne)*E,(ge+re)*a).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.2*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),x}),go.Shape.defineFigureGenerator("Forklift",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0));var z=new go.PathFigure(0,.5*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var ne=new go.PathFigure(.5*E,.8*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a));var re=new go.PathFigure(.5*E,.7*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.7*a));var ie=.1,ge=Fe*.1,fe=.1,Pe=.9,Ue=new go.PathFigure((fe-ie)*E,Pe*a,!0);x.add(Ue),Ue.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,(Pe-ie)*a,(fe-ie)*E,(Pe-ge)*a,(fe-ge)*E,(Pe-ie)*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(fe+ie)*E,Pe*a,(fe+ge)*E,(Pe-ie)*a,(fe+ie)*E,(Pe-ge)*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,(Pe+ie)*a,(fe+ie)*E,(Pe+ge)*a,(fe+ge)*E,(Pe+ie)*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(fe-ie)*E,Pe*a,(fe-ge)*E,(Pe+ie)*a,(fe-ie)*E,(Pe+ge)*a)),ie=.1,ge=Fe*.1,fe=.4,Pe=.9;var Re=new go.PathFigure((fe-ie)*E,Pe*a,!0);return x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,(Pe-ie)*a,(fe-ie)*E,(Pe-ge)*a,(fe-ge)*E,(Pe-ie)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(fe+ie)*E,Pe*a,(fe+ge)*E,(Pe-ie)*a,(fe+ie)*E,(Pe-ge)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,(Pe+ie)*a,(fe+ie)*E,(Pe+ge)*a,(fe+ge)*E,(Pe+ie)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(fe-ie)*E,Pe*a,(fe-ge)*E,(Pe+ie)*a,(fe-ie)*E,(Pe+ge)*a)),x}),go.Shape.defineFigureGenerator("RailShipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,.4*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.4*a).close());var z=new go.PathFigure(.45*E,.7*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a));var ne=new go.PathFigure(.55*E,.4*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.4*a).close());var fe=.05,Pe=Fe*.05,Ue=.175,Re=.95,re=new go.PathFigure((Ue-fe)*E,Re*a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Re-fe)*a,(Ue-fe)*E,(Re-Pe)*a,(Ue-Pe)*E,(Re-fe)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+fe)*E,Re*a,(Ue+Pe)*E,(Re-fe)*a,(Ue+fe)*E,(Re-Pe)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Re+fe)*a,(Ue+fe)*E,(Re+Pe)*a,(Ue+Pe)*E,(Re+fe)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ue-fe)*E,Re*a,(Ue-Pe)*E,(Re+fe)*a,(Ue-fe)*E,(Re+Pe)*a));var fe=.05,Pe=Fe*.05,Ue=.375,Re=.95,ie=new go.PathFigure((Ue-fe)*E,Re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Re-fe)*a,(Ue-fe)*E,(Re-Pe)*a,(Ue-Pe)*E,(Re-fe)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+fe)*E,Re*a,(Ue+Pe)*E,(Re-fe)*a,(Ue+fe)*E,(Re-Pe)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Re+fe)*a,(Ue+fe)*E,(Re+Pe)*a,(Ue+Pe)*E,(Re+fe)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ue-fe)*E,Re*a,(Ue-Pe)*E,(Re+fe)*a,(Ue-fe)*E,(Re+Pe)*a));var fe=.05,Pe=Fe*.05,Ue=.625,Re=.95,ge=new go.PathFigure((Ue-fe)*E,Re*a,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Re-fe)*a,(Ue-fe)*E,(Re-Pe)*a,(Ue-Pe)*E,(Re-fe)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+fe)*E,Re*a,(Ue+Pe)*E,(Re-fe)*a,(Ue+fe)*E,(Re-Pe)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Re+fe)*a,(Ue+fe)*E,(Re+Pe)*a,(Ue+Pe)*E,(Re+fe)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Ue-fe)*E,Re*a,(Ue-Pe)*E,(Re+fe)*a,(Ue-fe)*E,(Re+Pe)*a));var fe=.05,Pe=Fe*.05,Ue=.825,Re=.95,lt=new go.PathFigure((Ue-fe)*E,Re*a,!0);x.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Re-fe)*a,(Ue-fe)*E,(Re-Pe)*a,(Ue-Pe)*E,(Re-fe)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+fe)*E,Re*a,(Ue+Pe)*E,(Re-fe)*a,(Ue+fe)*E,(Re-Pe)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Re+fe)*a,(Ue+fe)*E,(Re+Pe)*a,(Ue+Pe)*E,(Re+fe)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Ue-fe)*E,Re*a,(Ue-Pe)*E,(Re+fe)*a,(Ue-fe)*E,(Re+Pe)*a).close());var Le=new go.PathFigure(0,a,!1);return x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var ne=new go.PathFigure(.15*E,a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.15*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.15*E,a).close());var re=.05,ie=Fe*.05,ge=.35,fe=.775,Pe=new go.PathFigure((ge-re)*E,fe*a,!0);return x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*E,(fe-re)*a,(ge-re)*E,(fe-ie)*a,(ge-ie)*E,(fe-re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge+re)*E,fe*a,(ge+ie)*E,(fe-re)*a,(ge+re)*E,(fe-ie)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*E,(fe+re)*a,(ge+re)*E,(fe+ie)*a,(ge+ie)*E,(fe+re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge-re)*E,fe*a,(ge-ie)*E,(fe+re)*a,(ge-re)*E,(fe+ie)*a).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),x}),go.Shape.defineFigureGenerator("Globe",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.75*E,0,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.75*a,.75*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*E,a,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,.25*a,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,.15*E,.25*a,.15*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.85*E,.75*a,.85*E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.15*a,.35*E,.3*a,.65*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.85*a,.35*E,.7*a,.65*E,.7*a)),x}),go.Shape.defineFigureGenerator("Wave",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.25*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.25*a,.1*E,0,.2*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.25*a,.425*E,.5*a,.575*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.25*a,.8*E,0,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.75*a,.1*E,.5*a,.2*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.75*a,.425*E,a,.575*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.75*a,.8*E,.5*a,.9*E,.5*a)),x}),go.Shape.defineFigureGenerator("Operator",function(le,E,a){var x=new go.Geometry,y=.3,z=Fe*.3,ne=.5,re=.7,ie=new go.PathFigure((ne-y)*E,re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a));var ge=new go.PathFigure(0,.7*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,E,.7*a,0,0,E,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.65*E,.3*a,.65*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.35*E,.5*a,.35*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*E,.6*a,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.2*E,a,.35*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,a,.7*E,.6*a,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.8*E,a,.65*E,.95*a)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,0,a,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.4*a,.8*E,a,.85*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),x}),go.Shape.defineFigureGenerator("Battery",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.1*a));var z=new go.PathFigure(0,.6*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),x}),go.Shape.defineFigureGenerator("Delete",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*.5,ne=.5,re=.5,ie=new go.PathFigure((ne-y)*E,re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a));var ge=new go.PathFigure(.15*E,.5*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.85*E,.5*a)),x}),go.Shape.defineFigureGenerator("Flag",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.1*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.1*a,.15*E,0,.35*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,.65*E,.2*a,.85*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.85*E,.6*a,.65*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*E,.4*a,.15*E,.4*a).close()),x}),go.Shape.defineFigureGenerator("Help",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*.5,ne=.5,re=.5,ie=new go.PathFigure((ne-y)*E,re*a,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a).close()),y=.05,z=Fe*.05,ne=.5,re=.8;var ge=new go.PathFigure((ne-y)*E,re*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a).close()),ge.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,.75*E,.475*a,.75*E,.225*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.35*a,.4*E,.2*a,.3*E,.25*a)),x}),go.Shape.defineFigureGenerator("Location",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.975*E,.025*a,.5*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*E,.5*a,.5*E,0,.025*E,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*E,.3*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.3*a)),x}),go.Shape.defineFigureGenerator("Unlocked",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.35*a)),x}),go.Shape.defineFigureGenerator("Gear",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.9375*E,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*E,.3316875*a,.79840625*E,.39915625*a,.7834375*E,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*E,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*E,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*E,.19378125*a,.64228125*E,.2188125*a,.603875*E,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*E,.239375*a,.39759375*E,.20190625*a,.36053125*E,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*E,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*E,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*E,.4375*a,.21765625*E,.36059375*a,.201875*E,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*E,.67596875*a,.20221875*E,.603875*a,.21884375*E,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*E,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*E,.80621875*a,.36353125*E,.78340625*a,.3991875*E,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*E,.760625*a,.602375*E,.79809375*a,.63946875*E,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*E,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*E,.56246875*a,.78234375*E,.63940625*a,.798125*E,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*E,.5*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.3*a,0,.375*a,.05*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.075*a,.3*E,.225*a,.4*E,.175*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.525*E,.075*a,.46*E,.05*a,.525*E,.05*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.4*a,.525*E,.275*a,.475*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.55*a,E,.4*a,E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.425*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.7*a,.675*E,.55*a,.675*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.575*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,.85*a,.65*E,.7*a,.65*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.535*E,a,.61*E,.85*a,.61*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*E,a,0,a).close()),x}),go.Shape.defineFigureGenerator("Map",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),x}),go.Shape.defineFigureGenerator("Eject",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.7)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var z=new go.PathFigure(0,a*.6,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*1,a*1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.85).close());var z=new go.PathFigure(.126*E,.85*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.126*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.85*a).close());var ne=new go.PathFigure(.402*E,.85*a,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.402*E,.45*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.598*E,.45*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.598*E,.85*a).close());var re=new go.PathFigure(.678*E,.85*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.678*E,.45*a)),re.add(new go.PathSegment(go.PathSegment.Line,.874*E,.45*a)),re.add(new go.PathSegment(go.PathSegment.Line,.874*E,.85*a).close());var ie=new go.PathFigure(.5*E,.1*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*E,.3*a)),ie.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*E,.3*a).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a*1,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a*1,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*(1-.184)).close());var z=new go.PathFigure(E*.204,a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.204,a*(1-.184))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*1).close());var ne=new go.PathFigure(E*.408,a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.408,a*(1-.184*2))),ne.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*(1-.184*3))),ne.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*1).close());var re=new go.PathFigure(E*.612,a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.612,a*(1-.184*3))),re.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*(1-.184*4))),re.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*1).close());var ie=new go.PathFigure(E*.816,a,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.816,a*(1-.184*4))),ie.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-.184*5))),ie.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,0).close());var z=new go.PathFigure(E*.055,.07*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.07)),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.1).close());var ne=new go.PathFigure(E*.055,.13*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.13)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.16)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.16).close());var re=new go.PathFigure(E*.055,.18*a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.18)),re.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.21)),re.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.21).close());var ie=new go.PathFigure(E*1,0,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.4,0)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.65)),ie.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.55*E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.475*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.35*E,.525*a,0,.4*a,.225*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.475*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.2*a,.975*E,0,E,.08*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.55*E,a).close()),x}),go.Shape.defineFigureGenerator("Key",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*1,a*.5,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.9,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,.575*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.9,.6*a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.17*E,.425*a)),y.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*E,.5*a,.075*E,.075*a).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*0,E*.3,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var z=new go.PathFigure(0,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*0)),z.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*1,E*.3,E*.055)),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var ne=new go.PathFigure(E*.11,a*.1,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.11,a*.8).close());var re=new go.PathFigure(E*(.11+.24133333*1+.028*1),a*.1,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.1)),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.8)),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*1),a*.8).close());var ie=new go.PathFigure(E*(.11+.24133333*2+.028*2),a*.1,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.1)),ie.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.8)),ie.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*2),a*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(le,E,a){var x=new go.Geometry,y=8,z=y*Fe,ne=new go.PathFigure(y,0,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.86,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.14)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-y,a,E,a-z,E-z,a)),ne.add(new go.PathSegment(go.PathSegment.Line,y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,z,a,0,a-z)),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,z,z,0).close());var re=new go.PathFigure(E*.83,0,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.3)),re.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.3)),re.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*0).close());var ie=new go.PathFigure(E*.83,a*1,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*1).close());var ge=new go.PathFigure(E*.78,a*.05,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.05)),ge.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.25)),ge.add(new go.PathSegment(go.PathSegment.Line,E*.78,a*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,E/3),x=Math.min(x,a/3);var y=x*Fe,z=a*.8,ne=new go.Geometry,re=new go.PathFigure(x,0,!0);return ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E-x,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,x,E-y,0,E,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,z-x)),re.add(new go.PathSegment(go.PathSegment.Bezier,E-x,z,E,z-y,E-y,z)),re.add(new go.PathSegment(go.PathSegment.Line,E*.7,z)),re.add(new go.PathSegment(go.PathSegment.Line,E*.7,a)),re.add(new go.PathSegment(go.PathSegment.Line,E*.55,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,z-x,y,z,0,z-y)),re.add(new go.PathSegment(go.PathSegment.Line,0,x)),re.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()),y>1?(ne.spot1=new go.Spot(0,0,y,y),ne.spot2=new go.Spot(1,.8,-y,-y)):(ne.spot1=go.Spot.TopLeft,ne.spot2=new go.Spot(1,.8)),ne}),go.Shape.defineFigureGenerator("Repeat",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*.45,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.45).close());var z=new go.PathFigure(E*1,a*.55,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*E,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*.1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.9).close());var z=new go.PathFigure(E*.1,a*.2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,E*.22,a*.285)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.25).close());var ne=new go.PathFigure(E*.28,a*.37,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.37)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.41)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.28,a*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(le,E,a){var x=new go.Geometry,y=15,z=y*Fe,ne=new go.PathFigure(E*.62,a*.475,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-y,a,E,a-z,E-z,a)),ne.add(new go.PathSegment(go.PathSegment.Line,y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,z,a,0,a-z)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.475)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.03)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*0)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*0)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.62,a*.03).close()),z>1?(x.spot1=new go.Spot(0,0,z,z),x.spot2=new go.Spot(1,1,-z,-z)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var ne=new go.PathFigure(E*.4,a*0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.66)),ne.add(new go.PathSegment(go.PathSegment.Line,E*(1-.26),a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;return y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var ne=new go.PathFigure(E*.5,a*0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.25)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.25)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.63)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.63)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.25)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.74,a*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.15,a*0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.15,a*0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close());var z=new go.PathFigure(E*.235,a*.28,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.765,a*.28)),z.add(new go.PathSegment(go.PathSegment.Line,E*.655,a*.97)),z.add(new go.PathSegment(go.PathSegment.Line,E*.345,a*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.5,a*0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},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 _e={},xt="5.0",oe={},b=null,he=!1,Be=!1,Ie=null,be=!1,Ge=null,Fe=null,Ye=0;Ye4?parseFloat(Qe):5};_e.setHTML5Codebase=function(Qe,Me){Fe=Qe,on(Qe,Me)},_e.setJavaCodebase=_e.setJavaCodebaseVersion=_e.isCompiledInstalled=_e.setPreCompiledScriptPath=_e.setPreCompiledResourcePath=function(){},_e.setHTML5CodebaseVersion=function(Qe,Me){var Et=parseFloat(Qe);if(Et!==NaN&&Et<5){console.log("The GeoGebra HTML5 codebase version "+Et+" is deprecated. Using version latest instead.");return}Ge=Qe,Jt(Qe,Me)},_e.getHTML5CodebaseVersion=function(){return le},_e.getParameters=function(){return oe},_e.setFontsCSSURL=function(Qe){ne=Qe},_e.setGiacJSURL=function(Qe){},_e.setJNLPFile=function(Qe){De=Qe},_e.setJNLPBaseDir=function(Qe){},_e.inject=function(){function Qe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Me="auto",Et=oe.id,kt,vt=!1,Dt=0;Dt=5)return!0;var Qe=_e.getAppletObject();return Qe&&typeof Qe.recalculateEnvironments=="function"?(Qe.recalculateEnvironments(),!0):!1},_e.startAnimation=function(){var Qe=_e.getAppletObject();return Qe&&typeof Qe.startAnimation=="function"?(Qe.startAnimation(),!0):!1},_e.stopAnimation=function(){var Qe=_e.getAppletObject();return Qe&&typeof Qe.stopAnimation=="function"?(Qe.stopAnimation(),!0):!1},_e.getAppletObject=function(){var Qe=oe.id!==void 0?oe.id:"ggbApplet";return window[Qe]},_e.resize=function(){};var lt=function(Qe,Me,Et){var kt=document.createElement("param");kt.setAttribute("name",Me),kt.setAttribute("value",Et),Qe.appendChild(kt)},Le=function(Qe){return Qe&&Qe!=="false"},Ce=function(Qe,Me,Et){ie(le)<=4.2&&(Et=!0);var kt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==le||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(kt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var vt=document.createElement("div");vt.classList.add("appletParameters","notranslate");var Dt=Me.width,Ae=Me.height;if(Me.disableAutoScale=Me.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Me.disableAutoScale,Me.width!==void 0)if(ie(le)<=4.4)Le(Me.showToolBar)&&(Me.height-=7),Le(Me.showAlgebraInput)&&(Me.height-=37),Me.width<605&&Le(Me.showToolBar)&&(Me.width=605,Dt=605);else{var dt=100;(Le(Me.showToolBar)||Le(Me.showMenuBar))&&(Me.hasOwnProperty("customToolBar")&&(Me.customToolbar=Me.customToolBar),dt=Le(Me.showMenuBar)?245:155),Dt=5?(Me.appletOnLoad=function($t){var ma=Qe.querySelector(".ggb_preview");ma&&ma.parentNode.removeChild(ma),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(et),window.GGBT_wsf_view&&$(window).trigger("resize"),ct($t)},Bn||et.appendChild(ot)):vt.appendChild(ot),et.appendChild(vt),Bn||Qe.appendChild(et),setTimeout(function(){_e.resize()},1)}else{var bt=document.createElement("div");bt.className="applet_scaler",bt.style.position="relative",bt.style.display="block",bt.appendChild(vt),Qe.appendChild(bt),Me.appletOnLoad=function($t){_e.resize(),ct($t)}}function zt($t,ma){ma&&typeof ma.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement($t,ma.appletOnLoad):renderGGBElement($t),It("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ma)}function St($t,ma){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:$t,params:ma}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Wn){zt(Wn.article,Wn.params)}),html5AppletsToProcess=null)},ie(le)<5&&($t.className+=" geogebraweb")):zt($t,ma)}if(kt){scriptLoadStarted=!0;for(var Rn=0;Rn0?(ln.remove(),et.attr("id","fullscreencontent").show(),jQuery(ct).append(et),window.dispatchEvent(new Event("resize"))):Ce(ln,Me,!1),window.GGBT_wsf_view.launchFullScreen(ct)}else Ve=kt,Ce(Qe,Me,!1);if(!window.GGBT_wsf_view)for(Ae=0;AeQe/4*3&&(ln=Qe/4*3),ct=ln/5.8,dt.setAttribute("src",y),dt.setAttribute("width",ln),dt.setAttribute("height",ct);var et=(Qe-ln)/2,Bn=(Me-ct)/2;dt.style.left=et+"px",dt.style.top=Bn+"px",vt.appendChild(dt)}}return vt.appendChild(Ae),vt},wt=function(Qe){return Qe=Qe.toLowerCase(),Qe==="html5"||Qe==="screenshot"?Qe:"html5"},ut=["web","webSimple","web3d","tablet","tablet3d","phone"],Jt=function(Qe,Me){if(le=Qe,Me){on(le,!0);return}var Et=!he;if(Et){var kt=ie(le);!isNaN(kt)&&kt<4.4&&(Et=!1)}var vt,Dt;window.location.protocol.substr(0,4)==="http"?vt=window.location.protocol:vt="http:";var Ae=le.indexOf("//");Ae>0?Dt=le:Ae===0?Dt=vt+le:Dt="https://www.geogebra.org/apps/5.2.814.0/";for(var dt in ut)if(le.slice(ut[dt].length*-1)===ut[dt]||le.slice((ut[dt].length+1)*-1)===ut[dt]+"/"){on(Dt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Et&&!b.is3D&&!b.AV&&!b.SV&&!b.CV&&!b.EV2&&!b.CP&&!b.PC&&!b.DA&&!b.FI&&!b.PV&&!Le(oe.showToolBar)&&!Le(oe.showMenuBar)&&!Le(oe.showAlgebraInput)&&!Le(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?Dt+="webSimple/":Dt+="web3d/",on(Dt,!1)},on=function(Qe,Me){if(Qe.requirejs){Oe=Qe;return}Qe.slice(-1)!=="/"&&(Qe+="/"),Oe=Qe,Me===null&&(Me=Qe.indexOf("http")===-1),We=Me,E="web.nocache.js",a=!1;var Et=Oe.split("/");Et.length>1&&(!Me&&Et[Et.length-2]==="webSimple"?(E="webSimple.nocache.js",a=!0):ut.indexOf(Et[Et.length-2])>=0&&(E=Et[Et.length-2]+".nocache.js")),Et=Qe.split("/"),le=Et[Et.length-3],le.substr(0,4)==="test"?le=le.substr(4,1)+"."+le.substr(5,1):(le.substr(0,3)==="war"||le.substr(0,4)==="beta")&&(le="5.0");var kt=parseFloat(le);kt!==NaN&&kt<5&&Qe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+kt+" is deprecated. Using version latest instead."),Jt("5.0",Me))},It=function(Qe,Me){window.console&&window.console.log&&(!Me||typeof Me.showLogging=="undefined"||Me.showLogging&&Me.showLogging!=="false")&&console.log(Qe)};oe.material_id!==void 0?Pe(Vt):Vt();function Vt(){var Qe=xt;Ge!==null?Qe=Ge:parseFloat(Qe)<5&&(Qe="5.0"),Jt(Qe,!1),Fe!==null&&on(Fe,We),be=!0}return _e},GGBAppletUtils=function(){"use strict";function _e(){return window.GGBT_wsf_edit!==void 0}function xt(be,Ge){Ge!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+Ge+","+Ge+")",be.style.webkitTransform="scale("+Ge+","+Ge+")",be.style.maxWidth="initial",be.querySelector(".ggb_preview")!==null&&(be.querySelector(".ggb_preview").style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(be.style.transform="none",be.style.webkitTransform="none")}function oe(be,Ge,Fe,Ye,ke,De){var Oe=null;if(De!=null&&De!="")for(var We=be.parentNode;We!=null;)if((" "+We.className+" ").indexOf(" "+De+" ")>-1){Oe=We;break}else We=We.parentNode;var Ve=0,le=0,E=0,a=0,x=0,y=0,z=0;if(Oe)Ve=Oe.offsetWidth,le=Math.max(Ye?Oe.offsetWidth:0,Oe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ve=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),E=Ve):(Ve=window.innerWidth,le=window.innerHeight,E=window.innerWidth),be){var ne=be.getBoundingClientRect();ne.left>0&&ne.left<=Ve&&(ke===void 0||!ke)&&(document.dir==="rtl"?(x=Ve-ne.width-ne.left,y=E<=480?10:30):(y=ne.left,x=E<=480?10:30),a=y+x)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var re=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,z=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,z=40)}}return be&&((Fe===void 0||!Fe)&&Ge>0&&Ge+a1&&(De=!0)),Ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))ke=b(be,Ge,De,Fe,be.scaleContainerClass);else return Ye;return De&&(!be.hasOwnProperty("scale")||Ye===1)?ke:Math.min(Ye,ke)}function Be(be){var Ge=Math.min(window.innerWidth,document.documentElement.clientWidth),Fe=Math.min(window.innerHeight,document.documentElement.clientHeight),Ye=be.getBoundingClientRect(),ke=(Ge-Ye.width)/2,De=(Fe-Ye.height)/2;De<0&&(De=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ke<40?be.style.left="40px":be.style.left=ke+"px",be.style.top=De+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(De<40?be.style.top="40px":be.style.top=De+"px",be.style.left=ke+"px")}function Ie(be,Ge){var Fe=be.querySelector(".appletParameters");if(Fe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ge.id!==Fe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(Fe.parentElement&&/fullscreen/.test(Fe.parentElement.className))return;var Ye=he(Ge,be);_e()&&Fe.setAttribute("data-param-scale",Ye);for(var ke=null,De=0;De=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(_e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(_e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(_e){var xt=c[_e];return xt==null?null:xt},r=d,webModule.__errFn=e}function B(){function _e(be){var Ge=be.lastIndexOf(rb);Ge==-1&&(Ge=be.length);var Fe=be.indexOf(sb);Fe==-1&&(Fe=be.length);var Ye=be.lastIndexOf(tb,Math.min(Fe,Ge));return Ye>=O?be.substring(O,Ye+P):W}function xt(be){if(!be.match(/^\w+:\/\//)){var Ge=o.createElement(ub);Ge.src=be+vb,be=_e(Ge.src)}return be}function oe(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function b(){for(var be=o.getElementsByTagName(_),Ge=O;GeO?be[be.length-P].href:W}function Be(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var Ie=oe();return Ie==W&&(Ie=b()),Ie==W&&(Ie=he()),Ie==W&&Be()&&(Ie=_e(o.location.href)),Ie=xt(Ie),Ie}function C(_e){return _e.match(/^\//)||_e.match(/^[a-zA-Z]+:\/\//)?_e:webModule.__moduleBase+_e}function D(){var _e=[],xt=O,oe=[],b=[];function he(be){var Ge=b[be](),Fe=oe[be];if(Ge in Fe)return Ge;var Ye=[];for(var ke in Fe)Ye[Fe[ke]]=ke;throw r&&r(be,Ye,Ge),null}if(__gwt_isKnownPropertyValue=function(be,Ge){return Ge in oe[be]},webModule.__getPropMap=function(){var be={};for(var Ge in oe)oe.hasOwnProperty(Ge)&&(be[Ge]=he(Ge));return be},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Be;try{Be=Cb;var Ie=Be.indexOf(Db);Ie!=-1&&(xt=parseInt(Be.substring(Ie+P),$),Be=Be.substring(O,Ie))}catch(be){}return webModule.__softPermutationId=xt,C(Be+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},5862:function(_e,xt,oe){"use strict";oe.d(xt,{Ax:function(){return Ie},Ds:function(){return be},KI:function(){return Fe},SI:function(){return Be},f1:function(){return he}});var b=oe(41510);function he(Ye){let ke=!0;if(Ye.length>0){for(let De=0;Dea in E?Be(E,a,{enumerable:!0,configurable:!0,writable:!0,value:x}):E[a]=x,De=(E,a)=>{for(var x in a||(a={}))Fe.call(a,x)&&ke(E,x,a[x]);if(Ge)for(var x of Ge(a))Ye.call(a,x)&&ke(E,x,a[x]);return E},Oe=(E,a)=>Ie(E,be(a)),We=(E,a)=>{var x={};for(var y in E)Fe.call(E,y)&&a.indexOf(y)<0&&(x[y]=E[y]);if(E!=null&&Ge)for(var y of Ge(E))a.indexOf(y)<0&&Ye.call(E,y)&&(x[y]=E[y]);return x},Ve=(E,a,x)=>new Promise((y,z)=>{var ne=ge=>{try{ie(x.next(ge))}catch(fe){z(fe)}},re=ge=>{try{ie(x.throw(ge))}catch(fe){z(fe)}},ie=ge=>ge.done?y(ge.value):Promise.resolve(ge.value).then(ne,re);ie((x=x.apply(E,a)).next())});const le=E=>{var a=E,{children:x}=a,y=We(a,["children"]);const[z,ne]=(0,he.useState)(!1);return he.createElement(b.ZP,Oe(De({},y),{loading:z,onClick:re=>Ve(void 0,null,function*(){try{ne(!0),yield y.onClick(re),ne(!1)}catch(ie){console.error(ie),ne(!1)}})}),x)}},25603:function(_e,xt,oe){"use strict";var b=oe(86204),he=oe.n(b),Be=Object.defineProperty,Ie=(Ye,ke,De)=>ke in Ye?Be(Ye,ke,{enumerable:!0,configurable:!0,writable:!0,value:De}):Ye[ke]=De,be=(Ye,ke,De)=>Ie(Ye,typeof ke!="symbol"?ke+"":ke,De),Ge=(Ye,ke,De)=>new Promise((Oe,We)=>{var Ve=a=>{try{E(De.next(a))}catch(x){We(x)}},le=a=>{try{E(De.throw(a))}catch(x){We(x)}},E=a=>a.done?Oe(a.value):Promise.resolve(a.value).then(Ve,le);E((De=De.apply(Ye,ke)).next())});class Fe extends b.EventEmitter{constructor(ke,De){super(),be(this,"url"),be(this,"body"),be(this,"fullContent",""),be(this,"controller",null),be(this,"buffer",""),this.url=ke,this.body=De}startStream(){return Ge(this,null,function*(){this.controller=new AbortController;const{signal:ke}=this.controller;try{const De=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:ke});if(!De.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${De.status}`);const Oe=De.headers.get("content-type");if(!Oe)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(Oe.includes("application/json")){const le=yield De.json();this.emit("error",le);return}if(!Oe.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const We=De.body.getReader(),Ve=new TextDecoder("utf-8");for(;;){const{done:le,value:E}=yield We.read();if(le)break;const a=Ve.decode(E,{stream:!0});this.buffer+=a;const x=this.buffer.split(` `);this.buffer=x.pop()||"";for(const y of x)if(y.startsWith("data:")){const z=y.slice(5).trim();if(z==="[DONE]")break;try{const ne=JSON.parse(z);ne.data&&this.handleData(ne.data)}catch(ne){this.buffer=y+` -`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",ne)}}}this.emit("done",this.fullContent)}catch(De){De.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",De.message)}})}handleData(ke){ke.content&&(this.fullContent+=ke.content,this.emit("data",{chunk:ke,full:this.fullContent}))}cancelRequest(){var ke;(ke=this.controller)==null||ke.abort()}}xt.Z=Fe},85525:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return ut}});var b=oe(59301),he=oe(47055),Be=oe(66328),Ie=oe(84821),be=oe(18369),Ge=oe(56102),Fe={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ye=oe(8591),ke=oe(11611),De=oe(72067),Oe=oe(30084),We=oe(10787),Ve=oe(1891),le=oe(43428),E=oe(95237),a=oe(43604),x={smartWrp:"smartWrp___NjRcB"},y=oe(7441),z=oe(14739),ne=oe(48697),re=oe(59301),ie=(Yt,ln,Nt)=>new Promise((Wt,Qe)=>{var Me=vt=>{try{Gt(Nt.next(vt))}catch(Dt){Qe(Dt)}},Et=vt=>{try{Gt(Nt.throw(vt))}catch(Dt){Qe(Dt)}},Gt=vt=>vt.done?Wt(vt.value):Promise.resolve(vt.value).then(Me,Et);Gt((Nt=Nt.apply(Yt,ln)).next())});const ge=` +`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",ne)}}}this.emit("done",this.fullContent)}catch(De){De.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",De.message)}})}handleData(ke){ke.content&&(this.fullContent+=ke.content,this.emit("data",{chunk:ke,full:this.fullContent}))}cancelRequest(){var ke;(ke=this.controller)==null||ke.abort()}}xt.Z=Fe},85525:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return ut}});var b=oe(59301),he=oe(47055),Be=oe(66328),Ie=oe(84821),be=oe(18369),Ge=oe(56102),Fe={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ye=oe(8591),ke=oe(11611),De=oe(72067),Oe=oe(30084),We=oe(10787),Ve=oe(1891),le=oe(43428),E=oe(95237),a=oe(43604),x={smartWrp:"smartWrp___NjRcB"},y=oe(7441),z=oe(14739),ne=oe(48697),re=oe(59301),ie=(Jt,on,It)=>new Promise((Vt,Qe)=>{var Me=vt=>{try{kt(It.next(vt))}catch(Dt){Qe(Dt)}},Et=vt=>{try{kt(It.throw(vt))}catch(Dt){Qe(Dt)}},kt=vt=>vt.done?Vt(vt.value):Promise.resolve(vt.value).then(Me,Et);kt((It=It.apply(Jt,on)).next())});const ge=` @@ -136,35 +136,35 @@ initArrayDisplay(); <\/script> -`;function fe({open:Yt=!0,onChange:ln,defaultValue:Nt,placement:Wt,width:Qe,height:Me,extra:Et,onDynamic:Gt,showExtra:vt=!0}){const Dt=(0,b.useRef)(null),Ae=(0,b.useRef)(null),[dt,un]=(0,b.useState)(Nt||""),[ct,et]=(0,b.useState)(Nt||""),[bn,ot]=(0,b.useState)(!!Yt),[Bt,Ht]=(0,b.useState)(1),St={selectOnLineNumbers:!0};(0,b.useEffect)(()=>{Yt&&(un(Nt),et(Nt),ot(!0))},[Yt,Nt]),(0,b.useEffect)(()=>{dt!==""&&(clearTimeout(Ae.current),Ae.current=setTimeout(()=>{const Mt=document.createElement("iframe");if(Mt.style.width="100%",Mt.style.height="100%",Mt.style.border="0",Dt.current){Dt.current.innerHTML="",Dt.current.appendChild(Mt);const Kn=Mt.contentDocument||Mt.contentWindow.document;Kn.open(),Kn.write(dt),Kn.close()}},1e3))},[Yt,dt]);const Tn=Mt=>{un(Mt),ln==null||ln(Mt,ct)};return re.createElement(le.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:bn,width:vt?700:"100%",height:Me||"100vh",rootClassName:x.smartWrp,destroyOnClose:!0,onClose:()=>ot(!1),extra:vt&&re.createElement("div",null,re.createElement(z.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Bt,onChange:Mt=>Ht(Mt)}),re.createElement(ne.Z,{type:"primary",className:"ml20",onClick:()=>ie(this,null,function*(){yield Gt(dt,()=>{ot(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},re.createElement(E.Z,{className:"h100"},re.createElement(a.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Bt===1?"block":"none"}},re.createElement("div",{className:"h100",ref:Dt})),re.createElement(a.Z,{flex:"1",style:{display:Bt===2?"block":"none"}},re.createElement(y.ZP,{height:"90vh",value:Nt,language:"html",theme:"vs",showMiniMap:!1,options:St,onChange:Tn}))))}var Pe=fe,Ue=Object.defineProperty,Re=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,nt=(Yt,ln,Nt)=>ln in Yt?Ue(Yt,ln,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):Yt[ln]=Nt,ye=(Yt,ln)=>{for(var Nt in ln||(ln={}))Ce.call(ln,Nt)&&nt(Yt,Nt,ln[Nt]);if(Le)for(var Nt of Le(ln))Xe.call(ln,Nt)&&nt(Yt,Nt,ln[Nt]);return Yt},gt=(Yt,ln)=>Re(Yt,lt(ln)),pt=(Yt,ln)=>{var Nt={};for(var Wt in Yt)Ce.call(Yt,Wt)&&ln.indexOf(Wt)<0&&(Nt[Wt]=Yt[Wt]);if(Yt!=null&&Le)for(var Wt of Le(Yt))ln.indexOf(Wt)<0&&Xe.call(Yt,Wt)&&(Nt[Wt]=Yt[Wt]);return Nt},ut=({onFinish:Yt,value:ln,streamingStatus:Nt,cancelIndex:Wt,loadImage:Qe,onDynamic:Me})=>{const[Et,Gt]=(0,b.useState)(""),[vt,Dt]=(0,b.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Ae,dt]=(0,b.useState)(0),[un,ct]=(0,b.useState)(!1),et=Bt=>Bt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Ht,St)=>`$$${St.trim()}$$`).replace(/\\\(([\s\S]*?)\\\)/g,'$$$$$1$$$$').replace(/\\\[([\s\S]*?)\\\]/g,'$$$$$1$$$$').replace(/_{2,}/g,"`$&`"),bn=()=>{ct(!0),Yt==null||Yt()};(0,b.useEffect)(()=>{const Bt=Qe?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A +`;function fe({open:Jt=!0,onChange:on,defaultValue:It,placement:Vt,width:Qe,height:Me,extra:Et,onDynamic:kt,showExtra:vt=!0}){const Dt=(0,b.useRef)(null),Ae=(0,b.useRef)(null),[dt,ln]=(0,b.useState)(It||""),[ct,et]=(0,b.useState)(It||""),[Bn,ot]=(0,b.useState)(!!Jt),[bt,zt]=(0,b.useState)(1),St={selectOnLineNumbers:!0};(0,b.useEffect)(()=>{Jt&&(ln(It),et(It),ot(!0))},[Jt,It]),(0,b.useEffect)(()=>{dt!==""&&(clearTimeout(Ae.current),Ae.current=setTimeout(()=>{const Ot=document.createElement("iframe");if(Ot.style.width="100%",Ot.style.height="100%",Ot.style.border="0",Dt.current){Dt.current.innerHTML="",Dt.current.appendChild(Ot);const Kn=Ot.contentDocument||Ot.contentWindow.document;Kn.open(),Kn.write(dt),Kn.close()}},1e3))},[Jt,dt]);const Rn=Ot=>{ln(Ot),on==null||on(Ot,ct)};return re.createElement(le.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Bn,width:vt?700:"100%",height:Me||"100vh",rootClassName:x.smartWrp,destroyOnClose:!0,onClose:()=>ot(!1),extra:vt&&re.createElement("div",null,re.createElement(z.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:bt,onChange:Ot=>zt(Ot)}),re.createElement(ne.Z,{type:"primary",className:"ml20",onClick:()=>ie(this,null,function*(){yield kt(dt,()=>{ot(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},re.createElement(E.Z,{className:"h100"},re.createElement(a.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:bt===1?"block":"none"}},re.createElement("div",{className:"h100",ref:Dt})),re.createElement(a.Z,{flex:"1",style:{display:bt===2?"block":"none"}},re.createElement(y.ZP,{height:"90vh",value:It,language:"html",theme:"vs",showMiniMap:!1,options:St,onChange:Rn}))))}var Pe=fe,Ue=Object.defineProperty,Re=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,nt=(Jt,on,It)=>on in Jt?Ue(Jt,on,{enumerable:!0,configurable:!0,writable:!0,value:It}):Jt[on]=It,ye=(Jt,on)=>{for(var It in on||(on={}))Ce.call(on,It)&&nt(Jt,It,on[It]);if(Le)for(var It of Le(on))Xe.call(on,It)&&nt(Jt,It,on[It]);return Jt},gt=(Jt,on)=>Re(Jt,lt(on)),pt=(Jt,on)=>{var It={};for(var Vt in Jt)Ce.call(Jt,Vt)&&on.indexOf(Vt)<0&&(It[Vt]=Jt[Vt]);if(Jt!=null&&Le)for(var Vt of Le(Jt))on.indexOf(Vt)<0&&Xe.call(Jt,Vt)&&(It[Vt]=Jt[Vt]);return It},ut=({onFinish:Jt,value:on,streamingStatus:It,cancelIndex:Vt,loadImage:Qe,onDynamic:Me})=>{const[Et,kt]=(0,b.useState)(""),[vt,Dt]=(0,b.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Ae,dt]=(0,b.useState)(0),[ln,ct]=(0,b.useState)(!1),et=bt=>bt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(zt,St)=>`$$${St.trim()}$$`).replace(/\\\(([\s\S]*?)\\\)/g,'$$$$$1$$$$').replace(/\\\[([\s\S]*?)\\\]/g,'$$$$$1$$$$').replace(/_{2,}/g,"`$&`"),Bn=()=>{ct(!0),Jt==null||Jt()};(0,b.useEffect)(()=>{const bt=Qe?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A -${ln}`:ln,Ht=et(Bt);if(!un)if(Qe||!Nt||Wt>0){Gt(Ht),dt(Ht.length),(!Nt||Wt>0)&&!Qe&&bn();return}else if((Ht==null?void 0:Ht.length)<4)Gt(Ht),dt(Ht.length);else if(Ae{Gt(Ht.slice(0,Ae+2)),dt(Mt=>Mt+2)},St>10?Math.max(500/(St/2),20):50);return()=>clearInterval(Tn)}else Nt||bn()},[ln,Nt,Wt,Qe,Ae]);const ot=(0,b.useMemo)(()=>b.createElement("section",{className:`${Fe.answer} fadeIn animated edu_md`},b.createElement(he.UG,{remarkPlugins:[Oe.Z,We.Z],rehypePlugins:[De.Z,Ie.Z],components:{code(Bt){var Ht=Bt,{node:St,inline:Tn,className:Mt,children:Kn}=Ht,wn=pt(Ht,["node","inline","className","children"]);const jn=/language-(\w+)/.exec(Mt||""),$t=String(Kn).trim();return Tn||!jn?b.createElement("code",ye({className:Mt},wn),Kn):b.createElement("code",{className:Fe.codeCopy,"data-text":`\`\`\`${jn?jn[1]:""} +${on}`:on,zt=et(bt);if(!ln)if(Qe||!It||Vt>0){kt(zt),dt(zt.length),(!It||Vt>0)&&!Qe&&Bn();return}else if((zt==null?void 0:zt.length)<4)kt(zt),dt(zt.length);else if(Ae{kt(zt.slice(0,Ae+2)),dt(Ot=>Ot+2)},St>10?Math.max(500/(St/2),20):50);return()=>clearInterval(Rn)}else It||Bn()},[on,It,Vt,Qe,Ae]);const ot=(0,b.useMemo)(()=>b.createElement("section",{className:`${Fe.answer} fadeIn animated edu_md`},b.createElement(he.UG,{remarkPlugins:[Oe.Z,We.Z],rehypePlugins:[De.Z,Ie.Z],components:{code(bt){var zt=bt,{node:St,inline:Rn,className:Ot,children:Kn}=zt,xn=pt(zt,["node","inline","className","children"]);const jn=/language-(\w+)/.exec(Ot||""),$t=String(Kn).trim();return Rn||!jn?b.createElement("code",ye({className:Ot},xn),Kn):b.createElement("code",{className:Fe.codeCopy,"data-text":`\`\`\`${jn?jn[1]:""} ${Kn} -\`\`\``},b.createElement(Ge.CopyToClipboard,{text:$t,onCopy:()=>Ye.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},b.createElement("button",null,"\u590D\u5236")),jn[1]==="html"&&un&&b.createElement("button",{className:Fe.runCode,onClick:()=>{Dt(ye({},gt(ye({},vt),{open:++vt.open,defaultValue:$t,language:jn[1]})))}},"\u8FD0\u884CHTML"),b.createElement(Be.Z,ye({wrapLongLines:!0,style:be.Z,language:jn[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},wn),$t))},img({node:Bt}){var Ht;const St=(Ht=Bt.properties)==null?void 0:Ht.src;return b.createElement(ke.Z,{src:St,width:320,"data-text":St,onLoad:()=>Qe&&setTimeout(()=>bn(),500)})}}},un?Et:`${Et}__`)),[Et]);return b.createElement(b.Fragment,null,b.createElement(Pe,{defaultValue:vt.defaultValue,open:vt.open,language:vt.language,height:vt.height,onChange:(Bt,Ht)=>{Gt(Et.replaceAll(Ht,Bt))},onDynamic:Me}),ot)}},77557:function(_e,xt,oe){"use strict";var b=oe(59301);const he=({scrollBoxRef:Be,bottomInspectRef:Ie,contentRef:be,status:Ge,rootMargin:Fe="70px",bottomOffset:Ye=110})=>{const[ke,De]=(0,b.useState)(!0),Oe=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{if(!Be.current||!Ie.current)return;const We=new IntersectionObserver(([Ve])=>{var le,E,a,x;if(!document.contains(Ve.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((le=Ve.rootBounds)==null?void 0:le.width)===0&&((E=Ve.rootBounds)==null?void 0:E.height)===0){console.log("root\uFF08\u6EDA\u52A8\u5BB9\u5668\uFF09\u65E0\u6548\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664");return}if(((a=Ve.boundingClientRect)==null?void 0:a.width)===0&&((x=Ve.boundingClientRect)==null?void 0:x.height)===0){console.log("\u76EE\u6807\u5143\u7D20\u5BBD\u9AD8\u4E3A 0\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664\u6216 display: none");return}De(Ve.isIntersecting)},{root:Be.current,rootMargin:Fe,threshold:0});return We.observe(Ie.current),()=>{We.disconnect()}},[Be.current,Ie.current,Fe]),(0,b.useEffect)(()=>{if(!Ge)return;const We=Be.current,Ve=be.current;Oe.current=!1;let le=We.scrollTop;const E=()=>{const{scrollTop:x,scrollHeight:y,clientHeight:z}=We;x>le?x+z>=y-Ye&&(We.scrollTop=We.scrollHeight,Oe.current=!1):x{Oe.current||(We.scrollTop=We.scrollHeight)});return a.observe(Ve),()=>{setTimeout(()=>{a.unobserve(Ve)},250),We.removeEventListener("scroll",E)}},[Ge]),ke};xt.Z=he},24745:function(_e,xt,oe){"use strict";var b=oe(59301);const he=({contentRef:Be,status:Ie})=>((0,b.useEffect)(()=>{!Ie&&(Be!=null&&Be.current)&&Be.current.querySelectorAll("code[data-text], mathx[data-text]").forEach(Fe=>{Fe.tagName.toLowerCase()==="code"?Fe.parentElement&&(Fe.parentElement.contentEditable="false"):Fe.tagName.toLowerCase()==="mathx"&&(Fe.contentEditable="false")})},[Ie]),(Ge=!1)=>{const Fe=Oe=>{const We={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":" ","©":"\xA9","®":"\xAE","€":"\u20AC"};return Oe.replace(/&[^;]+;/g,Ve=>We[Ve]||Ve)};if(!Be.current)return"";const Ye=Be.current.cloneNode(!0);Ye.querySelectorAll("code[data-text], mathx[data-text]").forEach(Oe=>{let We=Oe.getAttribute("data-text");Oe.tagName.toLowerCase()==="code"?We=We.replace(/```.*\n|\n```/g,""):Oe.tagName.toLowerCase()==="mathx"&&(We=`$$${We}$$`);const Ve=document.createTextNode(We);Oe.parentNode.replaceChild(Ve,Oe)}),Ge&&Ye.querySelectorAll('[data-select="disabled"]').forEach(We=>{var Ve;const le=We.textContent||"",E=document.createTextNode(le+` +\`\`\``},b.createElement(Ge.CopyToClipboard,{text:$t,onCopy:()=>Ye.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},b.createElement("button",null,"\u590D\u5236")),jn[1]==="html"&&ln&&b.createElement("button",{className:Fe.runCode,onClick:()=>{Dt(ye({},gt(ye({},vt),{open:++vt.open,defaultValue:$t,language:jn[1]})))}},"\u8FD0\u884CHTML"),b.createElement(Be.Z,ye({wrapLongLines:!0,style:be.Z,language:jn[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},xn),$t))},img({node:bt}){var zt;const St=(zt=bt.properties)==null?void 0:zt.src;return b.createElement(ke.Z,{src:St,width:320,"data-text":St,onLoad:()=>Qe&&setTimeout(()=>Bn(),500)})}}},ln?Et:`${Et}__`)),[Et]);return b.createElement(b.Fragment,null,b.createElement(Pe,{defaultValue:vt.defaultValue,open:vt.open,language:vt.language,height:vt.height,onChange:(bt,zt)=>{kt(Et.replaceAll(zt,bt))},onDynamic:Me}),ot)}},77557:function(_e,xt,oe){"use strict";var b=oe(59301);const he=({scrollBoxRef:Be,bottomInspectRef:Ie,contentRef:be,status:Ge,rootMargin:Fe="70px",bottomOffset:Ye=110})=>{const[ke,De]=(0,b.useState)(!0),Oe=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{if(!Be.current||!Ie.current)return;const We=new IntersectionObserver(([Ve])=>{var le,E,a,x;if(!document.contains(Ve.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((le=Ve.rootBounds)==null?void 0:le.width)===0&&((E=Ve.rootBounds)==null?void 0:E.height)===0){console.log("root\uFF08\u6EDA\u52A8\u5BB9\u5668\uFF09\u65E0\u6548\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664");return}if(((a=Ve.boundingClientRect)==null?void 0:a.width)===0&&((x=Ve.boundingClientRect)==null?void 0:x.height)===0){console.log("\u76EE\u6807\u5143\u7D20\u5BBD\u9AD8\u4E3A 0\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664\u6216 display: none");return}De(Ve.isIntersecting)},{root:Be.current,rootMargin:Fe,threshold:0});return We.observe(Ie.current),()=>{We.disconnect()}},[Be.current,Ie.current,Fe]),(0,b.useEffect)(()=>{if(!Ge)return;const We=Be.current,Ve=be.current;Oe.current=!1;let le=We.scrollTop;const E=()=>{const{scrollTop:x,scrollHeight:y,clientHeight:z}=We;x>le?x+z>=y-Ye&&(We.scrollTop=We.scrollHeight,Oe.current=!1):x{Oe.current||(We.scrollTop=We.scrollHeight)});return a.observe(Ve),()=>{setTimeout(()=>{a.unobserve(Ve)},250),We.removeEventListener("scroll",E)}},[Ge]),ke};xt.Z=he},24745:function(_e,xt,oe){"use strict";var b=oe(59301);const he=({contentRef:Be,status:Ie})=>((0,b.useEffect)(()=>{!Ie&&(Be!=null&&Be.current)&&Be.current.querySelectorAll("code[data-text], mathx[data-text]").forEach(Fe=>{Fe.tagName.toLowerCase()==="code"?Fe.parentElement&&(Fe.parentElement.contentEditable="false"):Fe.tagName.toLowerCase()==="mathx"&&(Fe.contentEditable="false")})},[Ie]),(Ge=!1)=>{const Fe=Oe=>{const We={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":" ","©":"\xA9","®":"\xAE","€":"\u20AC"};return Oe.replace(/&[^;]+;/g,Ve=>We[Ve]||Ve)};if(!Be.current)return"";const Ye=Be.current.cloneNode(!0);Ye.querySelectorAll("code[data-text], mathx[data-text]").forEach(Oe=>{let We=Oe.getAttribute("data-text");Oe.tagName.toLowerCase()==="code"?We=We.replace(/```.*\n|\n```/g,""):Oe.tagName.toLowerCase()==="mathx"&&(We=`$$${We}$$`);const Ve=document.createTextNode(We);Oe.parentNode.replaceChild(Ve,Oe)}),Ge&&Ye.querySelectorAll('[data-select="disabled"]').forEach(We=>{var Ve;const le=We.textContent||"",E=document.createTextNode(le+` `);(Ve=We.parentNode)==null||Ve.replaceChild(E,We)});let De=Ye.innerHTML;return Ge||(De=De.replace(/<[^>]*data-select="disabled"[^>]*>.*?<\/[^>]*>/g,"")),De=De.replace(/

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

/g,""),de=de.replace(/
/g,` +`),he)},60636:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Ie}});var b=oe(59301),he={digitalLabel:"digitalLabel___tImKs",active:"active___Ck70Q"},Ie=({number:be,active:Ge,className:Fe})=>b.createElement("div",{className:`${he.digitalLabel} ${Ge?he.active:""} ${Fe}`},be)},54185:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return y}});var b=oe(59301),he=oe(17574),Be={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},Ie=oe(73631),be=oe(5623),Ge=oe(93758),Fe=Object.defineProperty,Ye=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ve=(z,ne,re)=>ne in z?Fe(z,ne,{enumerable:!0,configurable:!0,writable:!0,value:re}):z[ne]=re,le=(z,ne)=>{for(var re in ne||(ne={}))Oe.call(ne,re)&&Ve(z,re,ne[re]);if(De)for(var re of De(ne))We.call(ne,re)&&Ve(z,re,ne[re]);return z},E=(z,ne)=>Ye(z,ke(ne)),a=(z,ne,re)=>new Promise((ie,ge)=>{var fe=Re=>{try{Ue(re.next(Re))}catch(lt){ge(lt)}},Pe=Re=>{try{Ue(re.throw(Re))}catch(lt){ge(lt)}},Ue=Re=>Re.done?ie(Re.value):Promise.resolve(Re.value).then(fe,Pe);Ue((re=re.apply(z,ne)).next())}),y=({value:z,onChange:ne,scrollId:re})=>{const[ie,ge]=(0,b.useState)([]);(0,b.useEffect)(()=>{fe()},[]);const fe=()=>a(void 0,null,function*(){const Ce=yield(0,Ge.NZ)({});if(Ce!=null&&Ce.data){const Xe=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:b.createElement("img",{src:Ie,className:Be.folderIcon}),isLeaf:!1,children:Pe(Ce.data||[])}];ge(Xe)}}),Pe=Ce=>Ce.map(Xe=>({title:Xe.name,key:Xe.group_id,icon:b.createElement("img",{src:Ie,className:Be.folderIcon}),isLeaf:Xe.children.length===0,children:Pe(Xe.children)})),Ue=(Ce,Xe,nt)=>Ce.map(ye=>ye.key===Xe?le(le({},ye),nt):ye.children?E(le({},ye),{children:Ue(ye.children,Xe,nt)}):ye),Re=(Ce,Xe,nt)=>Ce.map(ye=>{if(ye.key===Xe)return E(le({},ye),{icon:nt?b.createElement("img",{src:be,className:Be.folderIcon}):b.createElement("img",{src:Ie,className:Be.folderIcon})});if(ye.children)return E(le({},ye),{children:Re(ye.children,Xe,nt)})}),lt=(Ce,Xe)=>{ge(nt=>Re(nt,Xe.node.key,Xe.expanded))},Le=z?{selectedKeys:z,defaultExpandedKeys:z}:{};return ie.length>0&&b.createElement("div",{id:re||""},b.createElement(he.default,le({showLine:{showLeafIcon:!1},showIcon:!0,treeData:ie,className:Be.folderWrapper,onSelect:ne,onExpand:lt},Le)))}},70659:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Ge}});var b=oe(60324),he={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},Be=oe(32637),Ie=oe(59301),Ge=({type:Fe,style:Ye})=>{const ke=Ie.createElement("div",{className:he.wrap,onClick:De=>{De.preventDefault(),De.stopPropagation()}},Ie.createElement("p",null,Fe==="shixun"||Fe==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Ie.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",Fe==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Ie.createElement("div",{className:he.contact},Ie.createElement("div",{className:he.img},Ie.createElement("img",{src:Be,width:"124px",height:"124px"})),Ie.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Ie.createElement(b.Z,{content:ke},Ie.createElement("span",{className:he.text,style:Ye},"\u9AD8\u6D88\u8017"))}},94094:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Oe}});var b=oe(59301),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Be=oe(92310),Ie=oe.n(Be),be=oe(71418),Ge=oe(2859),Fe=oe(23789),Ye=oe(21331),ke=(We,Ve,le)=>new Promise((E,a)=>{var x=ne=>{try{z(le.next(ne))}catch(re){a(re)}},y=ne=>{try{z(le.throw(ne))}catch(re){a(re)}},z=ne=>ne.done?E(ne.value):Promise.resolve(ne.value).then(x,y);z((le=le.apply(We,Ve)).next())}),Oe=({data:We,className:Ve,fullWidth:le,style:E={},onClose:a,onOk:x,showFullTools:y,noAssociationId:z})=>{const ne=(0,b.useRef)(null),re=(0,b.useRef)(null),ie=(0,b.useRef)(null),ge=(0,b.useRef)(null),[fe,Pe]=(0,b.useState)(!1),[Ue,Re]=(0,b.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,b.useEffect)(()=>{ie.current||(ie.current=document.createElement("style"),document.head.appendChild(ie.current)),We!=null&&We.visible?(document.body.setAttribute("data-custom","y-hidden"),ie.current.innerHTML=" html { overflow-y: hidden; }",We!=null&&We.src&<()):(document.body.removeAttribute("data-custom"),ie.current&&(document.head.removeChild(ie.current),ie.current=null))},[We==null?void 0:We.visible]);const lt=()=>ke(void 0,null,function*(){Pe(!0),Re("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ye=yield(0,Ye.ZJ)(We==null?void 0:We.src);ne.current.src="",ne.current.src=ye,ne.current.onload=function(){nt()},Pe(!1),Re("")}),Le=()=>{document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",a()},Ce=ye=>ke(void 0,null,function*(){Pe(!0),Re("\u6B63\u5728\u4FDD\u5B58\u4E2D");const gt=yield(0,Fe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:We.title,file:ye.dataUrl}});gt!=null&>.id&&!z?(yield(0,Fe.ZP)(`/api/attachments/${We.id}/add_subitem.json`,{method:"post",body:{subitem_id:gt==null?void 0:gt.id,settings:JSON.stringify(ye.state)}})).status===0&&x():gt!=null&>.id&&x(gt),document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",Pe(!1),Re("")}),Xe=()=>{const ye=document.querySelector('a[href="https://markerjs.com/"]');ye&&ye.parentNode&&(ye.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(pt=>{const wt=document.querySelector(pt.name);wt&&wt.setAttribute("title",pt.title)})},nt=()=>{re.current=new Ge.hP(ne.current),re.current.targetRoot=ge.current,re.current.addEventListener("render",Ce),re.current.addEventListener("beforeclose",Le),y&&(re.current.availableMarkerTypes=re.current.ALL_MARKER_TYPES,re.current.uiStyleSettings.redoButtonVisible=!0,re.current.uiStyleSettings.notesButtonVisible=!0,re.current.uiStyleSettings.zoomButtonVisible=!0,re.current.uiStyleSettings.zoomOutButtonVisible=!0,re.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=re.current.uiStyleSettings,re.current.show(),We!=null&&We.snapshotData&&re.current.restoreState(We.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Xe()},300)};return b.createElement(b.Fragment,null,(We==null?void 0:We.visible)&&b.createElement(be.Z,{spinning:fe,tip:Ue,style:{position:"absolute"}},b.createElement("div",{ref:ge,className:Ie()(he.imageDimensions,Ve,le?he.fullWidth:""),style:E},b.createElement("img",{className:he.img,ref:ne}))))}},30561:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return ba},$:function(){return Wn}});var b=oe(59301),he={flex_box_center:"flex_box_center___ILe3s",flex_space_between:"flex_space_between___c0XhE",flex_box_vertical_center:"flex_box_vertical_center___Iusj1",flex_box_center_end:"flex_box_center_end___DIVMO",flex_box_column:"flex_box_column___x06LA",intelligentBox:"intelligentBox___M5xO7",red:"red___oyEWt",imgBox:"imgBox___DdoNI",underpin:"underpin___fwUex",row:"row___W9MrK",leftLayout:"leftLayout___MMjoZ",rightLayout:"rightLayout___EsxRX",head:"head___Q7Od8",centerBox:"centerBox___j58Ut",title:"title___rMcNx",tip:"tip___gLHFS",leftBox:"leftBox___DJ6lp",question:"question___THjM9",rightBox:"rightBox___CuMdf",error:"error___PHzCG",actionHead:"actionHead___vTHMx",edit:"edit___EaRLy",option:"option___z4UTy",active:"active___o8wNJ",fill:"fill___g760n",text:"text___L_lug",liWrap:"liWrap___LDwxe",li:"li___k4Mcf",buttonFixed:"buttonFixed___QxKdm",buttonWrap:"buttonWrap___OEep5",button:"button___b2y4h",menu:"menu___aQ4xO",tabs:"tabs___QmlP4",dotLoading:"dotLoading___zUYOu",showHide:"showHide___fHrAG"},Be=oe(92310),Ie=oe.n(Be),be=oe(78241),Ge=oe(8591),Fe=oe(43418),Ye=oe(5871),ke=oe(95237),De=oe(24905),Oe=oe(38854),We=oe(54580),Ve=oe(3113),le=oe(93948),E=oe(19842),a=oe(92832),x=oe(14739),y=oe(41510),z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAABk1JREFUWEd1lwlsVkUQx3/7ClGMSMSrHCKXHCpQhYhCNB5AYqRQGq1AiKgEEAiokAJFFIoipcVE5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Qhuo0IhQa9SdCNvB63UKRoKS0UGtQnQYvZ6sxCk/D1OIke6IbG1z8T8f1Al7ZUhE+g0paK+vRpU5O+ROObmvSnTsk6gVBsKyQV+gSCEEgbe/X5o5NYgW6/u5m+Q1vr0SJ0C+gKpJdbdIkHnNMRSK+XBSwBU05VIL3giaHdhayKQHrFugsCsCX9CKRDDrCUu5jvJJCOGeki/CBK00E/QVA0WIOO2jIIP4jW8/OSP8u/m/aksJr16LC7IMj2sEbzuEkBnmdFo+u9PG7yNxidqHC3DAxxAAAAAElFTkSuQmCC",ge=oe(23789),fe=oe(54185),Pe=oe(5623),Ue=oe(1891),Re=oe(10438),lt=oe(30315),Le=oe(15342),Ce=oe.n(Le),Xe=(un,mn,En)=>new Promise((Oa,Sa)=>{var wa=Sn=>{try{ht(En.next(Sn))}catch(Cn){Sa(Cn)}},tn=Sn=>{try{ht(En.throw(Sn))}catch(Cn){Sa(Cn)}},ht=Sn=>Sn.done?Oa(Sn.value):Promise.resolve(Sn.value).then(wa,tn);ht((En=En.apply(un,mn)).next())}),ye=b.memo(({tagName:un="div",value:mn="",className:En,style:Oa={},onBlur:Sa,id:wa})=>{const tn=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(!tn.current)return;Xe(void 0,null,function*(){const Cn=tn.current;Cn.innerHTML="";const ya=mn==null?void 0:mn.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const ra of ya)if(ra.startsWith("$$")&&ra.endsWith("$$")||ra.startsWith("`$$")&&ra.endsWith("$$`")){const Ka=ra.startsWith("`$$")?ra.slice(3,-3):ra.slice(2,-2),oa=document.createElement("span");oa.setAttribute("contentEditable","false"),oa.setAttribute("title",ra),oa.className="edu_latex",Cn.appendChild(oa),Ce().render(Ka,oa,{throwOnError:!1})}else{const Ka=ra==null?void 0:ra.replace(/<[^>]*>/g,oa=>oa.startsWith("{var Sn,Cn;if(Sa&&tn.current){const ra=tn.current.cloneNode(!0),Ka=ra.querySelectorAll("span.edu_latex");for(let oa of Ka){const Qn=oa.getAttribute("title"),Ya=document.createTextNode(Qn||""),Ma=oa;(Cn=(Sn=Ma.parentNode)==null?void 0:Sn.replaceChild)==null||Cn.call(Sn,Ya,Ma)}Sa(ra.innerHTML)}};return b.createElement(b.Fragment,null,b.createElement(un,{ref:tn,contentEditable:!0,className:En,style:Oa,onBlur:ht}))}),gt=oe(35219),pt=oe(27284),wt=oe(43428),ut=oe(6848),Jt=oe(43604),on={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},It=oe(77095),Vt=oe(21331),Qe=oe(25062),Me=oe(24745),Et=oe(51874),kt=oe(46736),vt="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+K5L0XUpWTaJVIJpDfU01VVTP6Uaz3OMsXL5En3ZEfZkcwwNZZFBY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yxDOP7ViyYP7Ug9r6upadcPSqhYlkYm405jXteNqt8reG9LYO5NJVqt8VXlsU2Nsi6WySofvCfml38xm3nvFv+Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",Dt=(un,mn,En)=>new Promise((Oa,Sa)=>{var wa=Sn=>{try{ht(En.next(Sn))}catch(Cn){Sa(Cn)}},tn=Sn=>{try{ht(En.throw(Sn))}catch(Cn){Sa(Cn)}},ht=Sn=>Sn.done?Oa(Sn.value):Promise.resolve(Sn.value).then(wa,tn);ht((En=En.apply(un,mn)).next())}),dt=(0,b.forwardRef)(({onUpdateNum:un,onSave:mn},En)=>{var Oa;const Sa=`\u8BF7\u8F93\u5165\u51FA\u9898\u8981\u6C42\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u5148\u4E0A\u4F20\u6750\u6599\u4E4B\u540E\u518D\u6839\u636E\u6750\u6599\u51FA\u9898 +\u4F8B\uFF1A\u8BF7\u751F\u6210\u5173\u4E8E\u300APython\u7A0B\u5E8F\u8BBE\u8BA1\u300B\u7684\u8BD5\u9898\u3002\u8003\u5BDF\u77E5\u8BC6\u70B9\uFF1A\u53D8\u91CF\u5B9A\u4E49\u3001\u6570\u636E\u7C7B\u578B\u3001\u8FD0\u7B97\u7B26\u548C\u63A7\u5236\u7ED3\u6784\u3002\u96BE\u5EA6\u4E3A\u201C\u56F0\u96BE\u201D\u7684\u8BD5\u9898\u536020%`,[wa,tn]=(0,b.useState)(!1),[ht,Sn]=(0,b.useState)([]),[Cn,ya]=(0,b.useState)(null),[ra,Ka]=(0,b.useState)([]),[oa,Qn]=(0,b.useState)(0),[Ya,Ma]=(0,b.useState)(0),[Ja,Br]=(0,b.useState)(!1),[At,On]=(0,b.useState)(""),[Tn,Ln]=(0,b.useState)(0),[xe,ft]=(0,b.useState)(0),[Ft,Ut]=(0,b.useState)(0),[Rt,yt]=(0,b.useState)(0),[An,je]=(0,b.useState)(0),[Ke,He]=(0,b.useState)(0),[Mt,sn]=(0,b.useState)(0),[dn,qn]=(0,b.useState)(0),[Un,fn]=(0,b.useState)(kt.Q),{contentRef:Jn,value:Ea,status:Zt,open:_n,close:Je}=Un,Kt=(0,Me.Z)({contentRef:Jn,status:Zt}),{openProgress:wn,closeProgress:tt,CreateProgressModal:Xn,progressOpen:Mn}=(0,Qe.Z)();(0,b.useEffect)(()=>{Cn&&sa(),Cn===!1&&(Je(),un==null||un(),Sn([]),On(""),Ln(0),ft(0),Ut(0),yt(0),je(0),He(0),sn(0),qn(0))},[Cn]);const ca=()=>{ya(!0)};(0,b.useImperativeHandle)(En,()=>({onClick:ca}));const Vn=Qt=>{Br(!0),Qn(Qt),Ma(0)},Za=Qt=>Dt(void 0,null,function*(){const xa=Qt.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(xa)==-1?(Ge.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):Qt.size/1024/1024>10?(Ge.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),sa=()=>Dt(void 0,null,function*(){const Qt=yield(0,ge.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});Qt.status===0&&(Qn(Qt.total_number),Ma(Qt.remaining_number))}),er=Qt=>(Qt=Qt||"",Qt=String(Qt),Qt=Qt.replace(/\s+/g,""),Qt),tr=(Qt=!0)=>Dt(void 0,null,function*(){var xa,pa;const Xt=[{name:"\u5355\u9009\u9898",num:Tn||0},{name:"\u591A\u9009\u9898",num:xe||0},{name:"\u5224\u65AD\u9898",num:Ft||0},{name:"\u586B\u7A7A\u9898",num:Rt||0},{name:"\u7B80\u7B54\u9898",num:An||0},{name:"\u7EC4\u5408\u9898",num:dn||0},{name:"\u7F16\u7A0B\u9898",num:Ke||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:Mt||0}];if(Qt){if(er(At)){if(At.length>1e3){Ge.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{Ge.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!er(At)&&!(ht!=null&&ht.length)){Ge.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const yn=Xt.reduce((Ra,Pa)=>Ra+Pa.num,0);if(yn===0){Ge.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(yn>30){Ge.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}if(oa!==-1){Br(!0);return}}Br(!1);const ea={scene_type:6,request_identifier:Math.random(),file_id:(pa=(xa=ht[0])==null?void 0:xa.response)==null?void 0:pa.id,content:At,count_arr:Xt.map(yn=>yn.num).join(",")};yield _n(ea),sa()}),gr=()=>Dt(void 0,null,function*(){const Qt=Kt();if(mn){ya(!1),mn(Qt);return}wn(),tn(!0),Ka([]);const xa=new FormData;xa.append("html",Qt);const pa=yield(0,ge.ZP)("/api/intelligent_imports/import.json",{method:"post",body:xa},!0);if((pa==null?void 0:pa.status)===0)if(pa!=null&&pa.data){tt(100),Ka(pa==null?void 0:pa.data);return}else Ge.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");tn(!1),tt()}),Tt=()=>Dt(void 0,null,function*(){const Qt=Kt();(0,Vt.RG)(Qt)}),Da=["uploading","error"].includes((Oa=ht==null?void 0:ht[0])==null?void 0:Oa.status);return b.createElement(b.Fragment,null,b.createElement(Et.Z,{visible:Ja,totalCount:oa,usedCount:Ya,onCancel:()=>Br(!1),onOk:()=>tr(!1)}),b.createElement(wt.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:b.createElement("div",{className:on.extraHeader},b.createElement(ke.Z,{align:"middle"},!Zt&&!!Ea&&b.createElement(b.Fragment,null,b.createElement(x.op,{onClick:gr,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),b.createElement(x.op,{onClick:Tt,shape:"default",type:"text"},b.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),b.createElement("i",{onClick:()=>{const Qt=xa=>{Fe.default.confirm({centered:!0,icon:null,width:500,zIndex:1101,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:xa,onOk:()=>{ya(!1)}})};if(Zt){Qt("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else Ea?Qt("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):ya(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Cn},b.createElement("div",{className:on.wrap},b.createElement("div",{className:on.left},b.createElement("div",{className:on.tip},b.createElement("img",{src:vt}),b.createElement("span",null,"\u60A8\u597D\uFF01\u6211\u662F\u60A8\u7684\u667A\u80FD\u51FA\u9898\u52A9\u624B\uFF0C\u6211\u5DF2\u5B66\u4E60\u4E86\u5E73\u53F0\u4EE5\u53CA\u4E92\u8054\u7F51\u4E0A\u6D77\u91CF\u7684\u8BD5\u9898\u77E5\u8BC6\u5E93\u3002\u53EF\u4EE5\u6839\u636E\u60A8\u7684\u8981\u6C42\u548C\u4E0A\u4F20\u7684\u6750\u6599\u7075\u6D3B\u751F\u6210\u5404\u7C7B\u8BD5\u9898\u3002\u6B22\u8FCE\u968F\u65F6\u4E0E\u6211\u4E92\u52A8\uFF0C\u8BA9\u6211\u4EEC\u4E00\u8D77\u6253\u9020\u66F4\u9AD8\u6548\u3001\u66F4\u4F18\u8D28\u7684\u8BD5\u9898\uFF01")),b.createElement("div",{className:"mb10 mt20 c-black"},b.createElement("b",null,"\u51FA\u9898\u8981\u6C42")),b.createElement(a.default.TextArea,{style:{height:160},className:"mb20",value:At,placeholder:Sa,onChange:Qt=>{On(Qt.target.value)}}),b.createElement(We.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${y.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:ht,withCredentials:!0,data:{upload_type:1},beforeUpload:Za,onChange:({file:Qt})=>{var xa,pa;Qt.status!=="removed"&&(Qt.status==="done"&&((xa=Qt==null?void 0:Qt.response)==null?void 0:xa.status)!==0&&(Qt.status="error",Qt.response=(pa=Qt==null?void 0:Qt.response)==null?void 0:pa.message),Sn([Qt]))},onRemove:()=>Sn([])},b.createElement(ut.Z,{title:"\u5355\u6B21\u4EC5\u652F\u6301\u4E0A\u4F201\u4E2A\u6587\u6863\u62161\u5F20\u56FE\u7247\uFF0C\u6587\u6863\u652F\u6301PDF/Word\u683C\u5F0F\uFF0C\u56FE\u7247\u652F\u63011\u5F20\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247"},b.createElement(x.op,{style:{borderRadius:2}},b.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),b.createElement("div",{className:"c-black mt20"},b.createElement("div",{className:"mb10 c-black"},b.createElement("b",null,"\u51FA\u9898\u6570\u91CF"),b.createElement("span",{className:"c-grey-999"},"\uFF08\u4E3A\u4FDD\u8BC1\u51FA\u9898\u4F53\u9A8C\uFF0C\u5355\u6B21\u51FA\u9898\u603B\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC7",b.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"30"),"\u9053\uFF09")),b.createElement(ke.Z,{style:{gap:16}},b.createElement(Jt.Z,null,b.createElement("label",null,"\u5355\u9009\u9898"),b.createElement(Ye.Z,{min:0,max:10,value:Tn,onChange:Ln,style:{marginLeft:"8px"}})),b.createElement(Jt.Z,null,b.createElement("label",null,"\u591A\u9009\u9898"),b.createElement(Ye.Z,{min:0,max:10,value:xe,onChange:ft,style:{marginLeft:"8px"}})),b.createElement(Jt.Z,null,b.createElement("label",null,"\u5224\u65AD\u9898"),b.createElement(Ye.Z,{min:0,max:10,value:Ft,onChange:Ut,style:{marginLeft:"8px"}})),b.createElement(Jt.Z,null,b.createElement("label",null,"\u586B\u7A7A\u9898"),b.createElement(Ye.Z,{min:0,max:10,value:Rt,onChange:yt,style:{marginLeft:"8px"}})),b.createElement(Jt.Z,null,b.createElement("label",null,"\u7B80\u7B54\u9898"),b.createElement(Ye.Z,{min:0,max:10,value:An,onChange:je,style:{marginLeft:"8px"}})))),Zt?b.createElement("div",{onClick:Je,className:on.bottomBtn},b.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):Da?b.createElement("div",{className:`${on.bottomBtn} ${on.disabled}`},b.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):b.createElement("div",{onClick:()=>{tr()},className:on.bottomBtn},b.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),b.createElement(kt.Z,{onStatusChange:fn,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!Mn,noRestrictModal:Vn,stringTransformer:It.o,onError:Qt=>{Object.prototype.toString.call(Qt)==="[object Object]"&&Qt.status===-9&&Vn(Qt.data)}}))),b.createElement(wt.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:wa},b.createElement(ke.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},b.createElement("img",{src:oe(36413),alt:"\u667A\u80FD\u51FA\u9898"}),b.createElement("span",{className:"ml10"},"\u667A\u80FD\u51FA\u9898")),b.createElement(ba,{stickyTop:-24,hideWordFeatures:!0,dataSource:ra,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>tn(!1),onSuccess:()=>{tn(!1),ya(!1)}}),b.createElement("div",{style:{height:70}})),Xn("\u5904\u7406\u4E2D"))}),ln=Object.defineProperty,ct=Object.defineProperties,et=Object.getOwnPropertyDescriptors,Bn=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,zt=(un,mn,En)=>mn in un?ln(un,mn,{enumerable:!0,configurable:!0,writable:!0,value:En}):un[mn]=En,St=(un,mn)=>{for(var En in mn||(mn={}))ot.call(mn,En)&&zt(un,En,mn[En]);if(Bn)for(var En of Bn(mn))bt.call(mn,En)&&zt(un,En,mn[En]);return un},Rn=(un,mn)=>ct(un,et(mn)),Ot=(un,mn,En)=>new Promise((Oa,Sa)=>{var wa=Sn=>{try{ht(En.next(Sn))}catch(Cn){Sa(Cn)}},tn=Sn=>{try{ht(En.throw(Sn))}catch(Cn){Sa(Cn)}},ht=Sn=>Sn.done?Oa(Sn.value):Promise.resolve(Sn.value).then(wa,tn);ht((En=En.apply(un,mn)).next())});const Kn=un=>{un.preventDefault();let En=(un.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,En)},xn=un=>{un.key==="Enter"&&un.preventDefault()},jn=({children:un,style:mn})=>b.createElement("div",{className:he.leftBox,style:mn,onPaste:Kn},un),$t=({children:un,style:mn,className:En})=>b.createElement("div",{className:Ie()(he.rightBox,En),style:mn,onPaste:Kn},un),ma=({className:un,style:mn={},width:En=1200,onCancel:Oa=()=>{},onSuccess:Sa=()=>{},gather:wa={},mode:tn=1,stickyTop:ht=0,subDisciplineId:Sn=[],hideWordFeatures:Cn,dataSource:ya=[],customLeftHeadNode:ra,customRightHeadNode:Ka,customLeftContent:oa,hideRecognition:Qn=!1,onExchange:Ya,isSingleSelection:Ma=!1,underpinBackgroundStyle:Ja={},headExtraNode:Br,isRefreshItemBank:At=!1,okText:On="\u786E\u5B9A\u5BFC\u5165",onSave:Tn})=>{var Ln;const[xe,ft]=(0,b.useState)(1),[Ft,Ut]=(0,b.useState)(0),[Rt,yt]=(0,b.useState)(""),[An,je]=(0,b.useState)(!1),[Ke,He]=(0,b.useState)([]),[Mt,sn]=(0,b.useState)([]),[dn,qn]=(0,b.useState)(!1),[Un,fn]=(0,b.useState)(!1),[Jn,Ea]=(0,b.useState)(!1),[Zt,_n]=(0,b.useState)(!1),[Je,Kt]=(0,b.useState)([]),[wn,tt]=(0,b.useState)(1),[Xn,Mn]=(0,b.useState)(!1),[ca,Vn]=(0,b.useState)(!0),[Za,sa]=(0,b.useState)(0),[er,tr]=(0,b.useState)(!1),[gr]=be.default.useForm(),[Tt]=be.default.useForm(),Da=(0,b.useRef)(null),Qt=(0,b.useRef)(null),xa=(0,b.useRef)(),pa=(0,b.useRef)(null),Xt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Dn=["C","C++","Java","Python","JavaScript","Ruby"];(0,b.useEffect)(()=>{ya!=null&&ya.length&&fr(ya)},[ya]),(0,b.useEffect)(()=>{xe===2&&Da.current.focus()},[xe]),(0,b.useEffect)(()=>{Jn&&yn()},[Jn]);const ea=()=>{if(xe===1){Ge.ZP.warning("\u8BF7\u5148\u4E0A\u4F20\u8BD5\u9898\uFF01");return}Fe.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u6E05\u7A7A\u64CD\u4F5C\u5C06\u5220\u9664\u8BD5\u9898\u7F16\u8F91\u533A\u57DF\u7684\u5168\u90E8\u5185\u5BB9\uFF0C\u786E\u5B9A\u4E00\u952E\u6E05\u7A7A\u5417\uFF1F",onOk:()=>Ot(void 0,null,function*(){ft(1)})})},yn=()=>Ot(void 0,null,function*(){const de=yield(0,ge.ZP)("/api/disciplines.json",{method:"get",params:{source:tn===1?"new_question":"subject"}});Kt(de.disciplines||[])}),Ra=de=>{const $e=[],st=(Ht,at)=>{Ht.length>=2&&$e.push(Ht.join(""));for(let an=at;an(de=de||"",de=String(de),de=de.replace(/\s+/g,""),de),Va=de=>(de=de||"",de=String(de),de=de.replace(/
/g,""),de=de.replace(/
/g,` `),de=de.replace(/<\/div>/g,` -`),de=Er(de),de),dr=de=>de.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),Er=de=>de.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"),Mr=de=>{var $e;const st=de.clipboardData;if(st){const jt=st.types.toString(),at=st.items;if(jt==="Files"||st.types.indexOf("Files")>-1){de.preventDefault();try{let rn=at[1];(($e=at[0])==null?void 0:$e.kind)==="file"&&(rn=at[0]);const qt=rn.getAsFile();(0,lt.I)(qt,Kt=>{var _t;if(Kt.id){if(((_t=qt==null?void 0:qt.type)==null?void 0:_t.indexOf("image"))>-1){const oa=``;document.execCommand("insertText",!1,oa)}}else(Kt==null?void 0:Kt.status)===401&&(document.location.href="/user/login")})}catch(rn){Ge.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function hr(de,$e){return Mt(this,null,function*(){if(typeof de=="string")return yield $e(de);if(typeof de!="object"||de===null)return de;if(Array.isArray(de))return yield Promise.all(de.map(at=>Mt(this,null,function*(){return yield hr(at,$e)})));const st={};for(const jt in de)if(Object.prototype.hasOwnProperty.call(de,jt)){const at=de[jt];typeof at=="string"?st[jt]=yield $e(at):typeof at=="object"?st[jt]=yield hr(at,$e):st[jt]=at}return st})}const Jr=()=>Mt(void 0,null,function*(){var de;je(!0),yt("\u5904\u7406\u4E2D"),yield new Promise(jt=>setTimeout(jt,1e3));let $e=(de=Vt.current)==null?void 0:de.querySelectorAll('[data-text="edit"]'),st="";try{$e.forEach(function(jt){var at,rn,qt,Kt;const _t=jt.cloneNode(!0),oa=_t.querySelectorAll("span.edu_latex");for(let Wa of oa){const pn=Wa.getAttribute("title"),Na=document.createTextNode(pn),xa=Wa;(rn=(at=xa.parentNode)==null?void 0:at.replaceChild)==null||rn.call(at,Na,xa)}const Ha=_t.querySelectorAll("span[style]");for(let Wa of Ha)if(Wa.style.fontFamily){const pn=Wa.innerHTML,Na=document.createTextNode(pn),xa=Wa;(Kt=(qt=xa.parentNode)==null?void 0:qt.replaceChild)==null||Kt.call(qt,Na,xa)}_t==null||_t.childNodes.forEach(function(Wa){Wa.nodeType===Node.ELEMENT_NODE&&Wa.localName!=="h5"&&Wa.localName!=="h4"?st+=`

${Wa.innerHTML}

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

${Wa.textContent}

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

${Wa.innerHTML}

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

${Wa.textContent}

`)})}),Dr("/api/intelligent_imports/import.json",{html:Ar(st)})}catch(Ht){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",Ht)}}),Xa=de=>{let $e=de.filter(st=>!!(st!=null&&st.type));return $e=$e.map(st=>{var Ht;const at=(Ht=Qa.find(qt=>qt.id===(st==null?void 0:st.type)))==null?void 0:Ht.deal,an=Rn(St({},st),{id:String(Math.random()).slice(-6),knowledgePoint:Pa(st==null?void 0:st.knowledgePoint)});return at?at(an):an}),$e},qa=()=>{if(xe===1){Ge.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!");return}Fe.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u91CD\u65B0\u8BC6\u522B\u4F1A\u8986\u76D6\u53F3\u4FA7\u5DF2\u8BC6\u522B\u7ED3\u679C\uFF0C\u5305\u62EC\u4EBA\u5DE5\u4FEE\u6539\u7684\u5185\u5BB9\uFF0C\u786E\u5B9A\u91CD\u65B0\u8BC6\u522B\u5417?",onOk:Jr})},pr=()=>b.createElement("div",{className:he.row},b.createElement("div",{className:he.leftLayout},b.createElement(jn,{style:{height:675}},xe===1&&b.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>ft(2)},b.createElement("div",{style:{color:"#9096A3",fontSize:12}},"1.\u672C\u529F\u80FD\u652F\u6301\u5BFC\u5165\u7684\u9898\u578B\uFF1A\u5355\u9009\u9898\u3001\u591A\u9009\u9898\u3001\u586B\u7A7A\u9898\u3001\u5224\u65AD\u9898\u3001\u7B80\u7B54\u9898\u3001 \u7EC4\u5408\u9898\u3001\u7F16\u7A0B\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\u3002",b.createElement("br",null),"2.\u82E5\u8981\u5BFC\u5165\u7EC4\u5408\u9898\uFF0C\u8BF7\u5728\u9898\u76EE\u524D\u540E\u4F7F\u7528\u4E00\u5BF9\u201C","{{\u201D\u3001\u201C}}","\u201D\u5C06\u5185\u5BB9\u6807\u51FA\uFF1B\u5927\u9898\u9898\u5E72\u548C\u5C0F\u9898\u9898\u5E72\u4E4B\u95F4\u4E0D\u9700\u8981\u7A7A\u884C\uFF1B\u5927\u9898\u548C\u5C0F\u9898\u9898\u5E72\u90FD\u9700\u6807\u6CE8\u9898\u53F7\uFF1B\u5C0F\u9898\u7B54\u6848\u53EF\u8DDF\u5728\u5C0F\u9898\u9898\u5E72\u540E\uFF0C\u5E76\u7528\u7A7A\u683C\u4E0E\u9898\u5E72\u5185\u5BB9\u9694\u5F00\u3002\u8303\u4F8B\u53EF\u53C2\u8003\u63A8\u8350\u683C\u5F0F\u3002",b.createElement("br",null),"3.\u5BFC\u5165\u652F\u6301\u6587\u672C\u3001\u56FE\u7247\u3001\u516C\u5F0F\u3002\u9898\u76EE\u7ED3\u6784\u652F\u6301\u8BC6\u522B\u7B54\u6848\u3001\u89E3\u6790\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9\u3002",b.createElement("br",null),"4.\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u4FEE\u6539\u9898\u76EE\u5185\u5BB9\u540E\u91CD\u65B0\u8BC6\u522B\uFF0C\u6216\u4E0B\u8F7D\u63A8\u8350\u683C\u5F0F\uFF0C\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u5BFC\u5165\u8BC6\u522B\u3002",b.createElement("br",null)),b.createElement("div",{className:he.imgBox,style:{marginTop:75}},b.createElement("img",{width:56,src:ne}),b.createElement("span",null,"\u7F16\u8F91\u533A"))),xe===2&&b.createElement("div",{"data-text":"edit",onBlur:()=>{Da.current.innerHTML||ft(1)},ref:Da,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),b.createElement("div",{className:he.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},b.createElement("div",{className:he.imgBox,style:{marginTop:240}},b.createElement("img",{width:56,src:re}),b.createElement("span",null,"\u9884\u89C8\u533A")))),fa=(de,$e,st,Ht)=>{var at;console.log(de,$e,st,Ht,"onDataChange\u4FEE\u6539\u6570\u503C");const an=JSON.parse(JSON.stringify(Mt));Ht===void 0?an[$e][de]=st:an[$e].questions[Ht][de]=st;const qt=St({},an[$e]),Yt=(at=Qa.find(_t=>_t.id===(qt==null?void 0:qt.type)))==null?void 0:at.deal;an[$e]=Yt(qt),sn(an)},ur=(de,$e,st)=>{var Ht;const at=st!==void 0,an=(Ht=Qa.find(_t=>_t.id===(de==null?void 0:de.type)))==null?void 0:Ht.type,qt=`${$e+1}.${st===void 0?"":st+1+"."}`,Yt=`${(de==null?void 0:de.type)==="7"?"{{":""}${qt}\u3010${an}\u3011${(de==null?void 0:de.question)||""}`;return b.createElement(b.Fragment,null,at&&b.createElement("h4",{contentEditable:!0}),b.createElement(ye,{id:de==null?void 0:de.id,tagName:"div",value:Yt}))},mr=(de,$e)=>Ot(void 0,null,function*(){var st;const Ht=yield Ya(de,$e),at=(st=Ht==null?void 0:Ht.data)==null?void 0:st.content;if(at!=null&&at.length){const an=Xa(at)[0];Ke.splice($e,1,an),Mt.splice($e,1,an),He([...Ke]),sn([...Mt])}}),Ga=(de,$e,st)=>{var Ht;const at=st!==void 0,an=(Ht=Qa.find(Yt=>Yt.id===(de==null?void 0:de.type)))==null?void 0:Ht.type,qt=`${$e+1}.${st===void 0?"":st+1+"."}`;return at?b.createElement("div",{style:{padding:"10px 18px"}},`${qt}\u3010${an}\u3011`,b.createElement(ye,{id:de==null?void 0:de.id,tagName:"span",className:he.edit,onBlur:Yt=>fa("question",$e,Yt,st),value:(de==null?void 0:de.question)||""})):b.createElement(b.Fragment,null,b.createElement("div",{className:he.actionHead},b.createElement("div",{className:"c-light-primary"},`${qt}\u3010${an}\u3011`),tn!==1&&b.createElement(Ye.Z,{disabled:(de==null?void 0:de.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:Yt=>fa("score",$e,Yt,st),value:de==null?void 0:de.score}),b.createElement(ke.Z,{align:"middle",style:{marginLeft:"auto"}},!!Ya&&b.createElement("span",{className:"current c-light-primary mr30",onClick:()=>mr(de,$e)},b.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),b.createElement(De.default,{onChange:Yt=>fa("checked",$e,Yt.target.checked,st),checked:!!(de!=null&&de.checked)},"\u4E0D\u5BFC\u5165\u6B64\u9898"))),b.createElement(ye,{id:de==null?void 0:de.id,tagName:"div",style:{padding:"10px 18px"},className:he.edit,onBlur:Yt=>fa("question",$e,Yt,st),value:de==null?void 0:de.question}))},ar=(de,$e,st)=>b.createElement(b.Fragment,null,["0","1","2","4"].includes(de==null?void 0:de.type)&&b.createElement(ye,{id:de==null?void 0:de.id,value:`\u7B54\u6848\uFF1A${$e||""}`,tagName:"p"}),!st&&b.createElement(ye,{id:de==null?void 0:de.id,value:`\u96BE\u5EA6\uFF1A${(de==null?void 0:de.difficulty)||""}`,tagName:"p"}),(de==null?void 0:de.type)!=="7"&&b.createElement(ye,{id:de==null?void 0:de.id,value:`\u89E3\u6790\uFF1A${(de==null?void 0:de.analyze)||""}`,tagName:"p"}),!st&&b.createElement(ye,{id:de==null?void 0:de.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(de==null?void 0:de.knowledgePoint)||""}`,tagName:"p"})),mt=(de,$e,st,Ht)=>{const at=Ht!==void 0,an=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],qt=at&&!de.last&&!de.errorMsg?{marginBottom:10}:{},Yt=an.map(_t=>({key:_t,label:_t,onClick:()=>fa("difficulty",st,_t,Ht)}));return b.createElement("div",{className:he.liWrap,style:qt},["4"].includes(de==null?void 0:de.type)&&b.createElement("div",{className:he.li},b.createElement("aside",null,"\u7B54\xA0\xA0\xA0\xA0\u6848\uFF1A"),b.createElement(ye,{id:de==null?void 0:de.id,tagName:"div",className:`${he.edit} c-black`,onBlur:_t=>fa("answer",st,[_t],Ht),value:$e})),!at&&b.createElement("div",{className:he.li},b.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(Oe.Z,{menu:{items:Yt}},b.createElement("span",{className:"c-light-primary"},de==null?void 0:de.difficulty,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),(de==null?void 0:de.type)!=="7"&&b.createElement("div",{className:he.li},b.createElement("aside",null,"\u89E3\xA0\xA0\xA0\xA0\u6790\uFF1A"),b.createElement(ye,{id:de==null?void 0:de.id,tagName:"div",className:`${he.edit} c-grey-333`,onBlur:_t=>fa("analyze",st,_t,Ht),value:de==null?void 0:de.analyze})),!at&&b.createElement("div",{onKeyDown:xn,className:he.li},b.createElement("aside",null,"\u77E5\u8BC6\u70B9\uFF1A"),b.createElement(ye,{id:de==null?void 0:de.id,tagName:"div",value:(de==null?void 0:de.knowledgePoint)||"",className:`${he.edit} c-grey-333`,onBlur:_t=>fa("knowledgePoint",st,Pa(Va(_t)),Ht)})))},it=de=>b.createElement(b.Fragment,null,typeof(de==null?void 0:de.errorMsg)=="string"&&!!(de!=null&&de.errorMsg)&&b.createElement("h5",{contentEditable:!1},b.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),b.createElement("div",null,de==null?void 0:de.errorMsg))),Nt=de=>b.createElement(b.Fragment,null,typeof(de==null?void 0:de.errorMsg)=="string"&&!!(de!=null&&de.errorMsg)&&b.createElement("h5",null,b.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),b.createElement("div",null,de==null?void 0:de.errorMsg))),cn=(de,$e,st,Ht)=>{let at="flex";return(Ma&&Za!==Ht||dn&&!(st!=null&&st.errorMsg))&&(at="none"),b.createElement("div",{className:he.row,style:{display:at}},b.createElement("div",{className:he.leftLayout},oa||b.createElement(jn,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},de))),b.createElement("div",{className:he.rightLayout},b.createElement($t,{className:st!=null&&st.errorMsg?he.error:""},$e)))},Qa=[{id:"0",type:"\u5355\u9009\u9898",element:(de,$e,st)=>{var Ht,at;const an=st!==void 0;let qt=(Ht=de==null?void 0:de.answer)==null?void 0:Ht[0];const Yt=b.createElement(b.Fragment,null,ur(de,$e,st),(at=de==null?void 0:de.options)==null?void 0:at.map((Wa,pn)=>b.createElement(ye,{id:de==null?void 0:de.id,key:pn,value:`${Xt[pn]}.${Wa}`,tagName:"p"})),ar(de,qt,an),it(de));let _t=an?de:Mt[$e];const ia=_t==null?void 0:_t.options,za=b.createElement(b.Fragment,null,Ga(_t,$e,st),ia==null?void 0:ia.map((Wa,pn)=>{var Ia;return b.createElement("div",{key:pn,className:he.option},b.createElement("aside",{className:((Ia=_t==null?void 0:_t.answer)==null?void 0:Ia[0])===Xt[pn]?he.active:"",onClick:()=>fa("answer",$e,[Xt[pn]],st)},Xt[pn]),b.createElement(ye,{id:_t==null?void 0:_t.id,tagName:"div",className:`${he.text}`,onBlur:Ca=>{ia[pn]=Ca,fa("options",$e,ia,st)},value:Wa}))}),mt(_t,"",$e,st),Nt(_t));return an?[Yt,za]:cn(Yt,za,_t,$e)},deal:de=>{var $e,st,Ht;de.score=de.score===void 0?2:de.score;let at=Pa(($e=de==null?void 0:de.answer)==null?void 0:$e[0]).toUpperCase();de.answer=at?[at]:[];let an=[];if(!(de!=null&&de.options))an.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{de.options=(st=de.options)==null?void 0:st.slice(0,8);const qt=de.options.map(_t=>_t==null?void 0:_t.trim().replace(/^\s+|\s+$/g,""));new Set(qt).size!==qt.length&&an.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return at||an.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),at&&(Xt.slice(0,((Ht=de==null?void 0:de.options)==null?void 0:Ht.length)||8).includes(at)||an.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D")),Pa(de==null?void 0:de.question)||an.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),de.errorMsg=an.join(` +`),de}},{id:"1",type:"\u591A\u9009\u9898",element:(de,$e,st)=>{var Ht,at;const an=st!==void 0;let qt=(Ht=de==null?void 0:de.answer)==null?void 0:Ht[0];const Yt=b.createElement(b.Fragment,null,ur(de,$e,st),(at=de==null?void 0:de.options)==null?void 0:at.map((Wa,pn)=>b.createElement(ye,{id:de==null?void 0:de.id,key:pn,value:`${Xt[pn]}.${Wa}`,tagName:"p"})),ar(de,qt,an),it(de));let _t=an?de:Mt[$e];const ia=_t==null?void 0:_t.options,za=b.createElement(b.Fragment,null,Ga(_t,$e,st),ia==null?void 0:ia.map((Wa,pn)=>{var Ia,Ca;return b.createElement("div",{key:pn,className:he.option},b.createElement("aside",{className:(Ca=(Ia=_t==null?void 0:_t.answer)==null?void 0:Ia[0])!=null&&Ca.includes(Xt[pn])?he.active:"",onClick:()=>{var ja;let Ir=((ja=_t==null?void 0:_t.answer)==null?void 0:ja[0])||"";const Qr=Xt[pn];Ir.includes(Qr)?Ir=Ir.replace(new RegExp(Qr,"g"),""):Ir+=Qr,Ir=Ir.split("").sort().join(""),fa("answer",$e,[Ir],st)}},Xt[pn]),b.createElement(ye,{id:_t==null?void 0:_t.id,tagName:"div",className:`${he.text}`,onBlur:ja=>{ia[pn]=ja,fa("options",$e,ia,st)},value:Wa}))}),mt(_t,"",$e,st),Nt(_t));return an?[Yt,za]:cn(Yt,za,_t,$e)},deal:de=>{var $e,st,Ht;de.score=de.score===void 0?2:de.score;let at=Pa(($e=de==null?void 0:de.answer)==null?void 0:$e[0]).toUpperCase().split("").sort().join("");de.answer=at?[at]:[];let an=[];if(!(de!=null&&de.options))an.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{de.options=(st=de.options)==null?void 0:st.slice(0,8);const qt=de.options.map(_t=>_t==null?void 0:_t.trim().replace(/^\s+|\s+$/g,""));new Set(qt).size!==qt.length&&an.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(at||an.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),at){const qt=Xt.slice(0,((Ht=de==null?void 0:de.options)==null?void 0:Ht.length)||8);Ra(qt).includes(at)||an.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D")}return Pa(de==null?void 0:de.question)||an.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),de.errorMsg=an.join(` +`),de}},{id:"2",type:"\u5224\u65AD\u9898",element:(de,$e,st)=>{var Ht,at;const an=st!==void 0;let qt=(Ht=de==null?void 0:de.answer)==null?void 0:Ht[0];const Yt=b.createElement(b.Fragment,null,ur(de,$e,st),ar(de,qt,an),it(de));let _t=an?de:Mt[$e];const ia=["\u6B63\u786E","\u9519\u8BEF"];let za=((at=_t==null?void 0:_t.answer)==null?void 0:at[0])||"";["\u6B63\u786E","\u5BF9","T","True","t","true"].includes(za)?za="\u6B63\u786E":["\u9519\u8BEF","\u9519","T","true","t","false"].includes(za)&&(za="\u9519\u8BEF");const Wa=b.createElement(b.Fragment,null,Ga(_t,$e,st),ia==null?void 0:ia.map((pn,Ia)=>b.createElement("div",{key:Ia,className:he.option},b.createElement("aside",{style:{borderRadius:2},className:za===pn?he.active:"",onClick:()=>fa("answer",$e,[pn],st)},pn==="\u6B63\u786E"?"T":"F"),b.createElement("div",{style:{pointerEvents:"none"},className:`${he.text}`},pn))),mt(_t,"",$e,st),Nt(_t));return an?[Yt,Wa]:cn(Yt,Wa,_t,$e)},deal:de=>{var $e;de.score=de.score===void 0?2:de.score;let st=Pa(($e=de==null?void 0:de.answer)==null?void 0:$e[0]);de.answer=st?[st]:[];let Ht=[];return st||Ht.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),st&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(st)&&Ht.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),Pa(de==null?void 0:de.question)||Ht.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),de.errorMsg=Ht.join(` +`),de}},{id:"3",type:"\u586B\u7A7A\u9898",element:(de,$e,st)=>{var Ht,at;const an=st!==void 0,qt=b.createElement(b.Fragment,null,ur(de,$e,st),(Ht=de==null?void 0:de.answer)==null?void 0:Ht.map((ia,za)=>b.createElement(ye,{id:de==null?void 0:de.id,key:za,tagName:"p",value:`\u7B54\u6848${za+1}\uFF1A${ia.text||""}`})),ar(de,"",an),it(de));let Yt=an?de:Mt[$e];const _t=b.createElement(b.Fragment,null,Ga(Yt,$e,st),(at=Yt==null?void 0:Yt.answer)==null?void 0:at.map((ia,za)=>b.createElement("div",{key:za,className:he.option},b.createElement("aside",{className:he.fill},"\u586B\u7A7A\u9879",za+1),ia.model===1&&b.createElement(ye,{id:Yt==null?void 0:Yt.id,tagName:"div",onBlur:Wa=>{Yt.answer[za].latex=Va(Wa),fa("answer",$e,Yt.answer,st)},className:`${he.text}`,value:ia.latex}),ia.model===2&&b.createElement(Re.Z,{value:ia.latex,onChange:Wa=>{Yt.answer[za].latex=Wa,fa("answer",$e,Yt.answer,st)}}))),mt(Yt,"",$e,st),Nt(Yt));return an?[qt,_t]:cn(qt,_t,Yt,$e)},deal:de=>{var $e,st,Ht,at;de.score=de.score===void 0?2:de.score,de.question=($e=de.question)==null?void 0:$e.replaceAll("\u2581","_");const an=(st=de.answer)==null?void 0:st.map(Yt=>{if(Object.prototype.toString.call(Yt)==="[object Object]")return Yt;Yt=Yt==null?void 0:Yt.trim();const _t={model:1,text:Yt,latex:Yt};return Yt.startsWith("$$")&&Yt.endsWith("$$")||Yt.startsWith("`$$")&&Yt.endsWith("$$`")?(_t.model=2,_t.latex=Yt.slice(2,-2)):_t.latex=Va(Yt),_t});de.answer=an;let qt=[];return an||qt.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),Pa(de==null?void 0:de.question)?de!=null&&de.question.includes("_")?(Ht=de==null?void 0:de.answer)!=null&&Ht.length&&((de==null?void 0:de.question.match(/_+/g))||[]).length!==((at=de==null?void 0:de.answer)==null?void 0:at.length)&&qt.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):qt.push("\u586B\u7A7A\u9879\u672A\u8BBE\u7F6E\uFF0C\u8BF7\u4F7F\u7528\u82F1\u6587\u4E0B\u5212\u7EBF\u201C___\u201D\u8868\u793A\u586B\u7A7A\u9879"):qt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),de.errorMsg=qt.join(` +`),de}},{id:"4",type:"\u7B80\u7B54\u9898",element:(de,$e,st)=>{var Ht,at;const an=st!==void 0;let qt=(Ht=de==null?void 0:de.answer)==null?void 0:Ht[0];const Yt=b.createElement(b.Fragment,null,ur(de,$e,st),ar(de,qt,an),it(de));let _t=an?de:Mt[$e];const ia=b.createElement(b.Fragment,null,Ga(_t,$e,st),mt(_t,(at=_t==null?void 0:_t.answer)==null?void 0:at[0],$e,st),Nt(_t));return an?[Yt,ia]:cn(Yt,ia,_t,$e)},deal:de=>{de.score=de.score===void 0?5:de.score;let $e=[];return Pa(de==null?void 0:de.question)||$e.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),de.errorMsg=$e.join(` +`),de}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(de,$e)=>{var st,Ht;const at=Mt[$e],an=Dn.slice(0,4).map(qt=>({key:qt,label:qt,onClick:()=>fa("platform",$e,qt)}));return b.createElement("div",{className:he.row,style:{display:dn?at!=null&&at.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:he.leftLayout},b.createElement(jn,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},ur(de,$e),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(de==null?void 0:de.description)||""}`,tagName:"p"}),ar(de),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${de==null?void 0:de.timeLimit}`,tagName:"p"}),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(de==null?void 0:de.platform)||""}`,tagName:"p"}),b.createElement("p",{contentEditable:!0},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),b.createElement("h4",null),b.createElement(ye,{id:de==null?void 0:de.id,value:(de==null?void 0:de.code)||"",tagName:"div"}),(st=de==null?void 0:de.inputs)==null?void 0:st.map((qt,Yt)=>{var _t;return b.createElement(b.Fragment,{key:Yt},b.createElement("h4",null),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Yt+1})\u8F93\u5165\uFF1A${qt||""}`,tagName:"div"}),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Yt+1})\u8F93\u51FA\uFF1A${((_t=de==null?void 0:de.outputs)==null?void 0:_t[Yt])||""}`,tagName:"div"}))}),it(de)))),b.createElement("div",{className:he.rightLayout},b.createElement($t,{className:at!=null&&at.errorMsg?he.error:""},Ga(at,$e),b.createElement("div",{className:he.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},b.createElement("div",{className:he.li},b.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:at==null?void 0:at.description,tagName:"div",onBlur:qt=>fa("description",$e,qt)}))),mt(at,"",$e),b.createElement("div",{className:he.liWrap},b.createElement("div",{className:he.li},b.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:at==null?void 0:at.timeLimit,tagName:"div",onBlur:qt=>fa("timeLimit",$e,Va(qt))})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(Oe.Z,{menu:{items:an}},b.createElement("span",{className:"c-light-primary"},at==null?void 0:at.platform,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),b.createElement("div",{className:he.li,style:{flexDirection:"column",alignItems:"start"}},b.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:(at==null?void 0:at.code)||"",onBlur:qt=>fa("code",$e,Va(qt)),tagName:"div"}))),(Ht=at==null?void 0:at.inputs)==null?void 0:Ht.map((qt,Yt)=>{var _t;return b.createElement("div",{className:he.liWrap,key:Yt},b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Yt+1,")\u8F93\u5165\uFF1A"),b.createElement(ye,{id:at==null?void 0:at.id,value:qt||"",className:he.edit,onBlur:ia=>{const za=[...(at==null?void 0:at.inputs)||[]];za[Yt]=Va(ia),fa("inputs",$e,za)},tagName:"div"})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Yt+1,")\u8F93\u51FA\uFF1A"),b.createElement(ye,{id:at==null?void 0:at.id,value:((_t=at==null?void 0:at.outputs)==null?void 0:_t[Yt])||"",className:he.edit,onBlur:ia=>{const za=[...(at==null?void 0:at.outputs)||[]];za[Yt]=Va(ia),fa("outputs",$e,za)},tagName:"div"})))}),Nt(at))))},deal:de=>{var $e,st,Ht;de.score=de.score===void 0?10:de.score,de.code=($e=de.code)==null?void 0:$e.trim();let at=[];Pa(de==null?void 0:de.question)?((st=de==null?void 0:de.question)==null?void 0:st.length)>60&&at.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):at.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Pa(de==null?void 0:de.description)||at.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const an=Pa(String((de==null?void 0:de.timeLimit)||""));if(de.timeLimit=an,(!an||an&&!["3","4","5","6","7","8","9","10"].includes(an))&&at.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),de.platform=Pa(de==null?void 0:de.platform),de!=null&&de.platform){const qt=["c","c++","java","python"],Yt=(Ht=de==null?void 0:de.platform)==null?void 0:Ht.toLowerCase(),_t=qt.findIndex(ia=>ia===Yt);_t>-1?de.platform=Dn[_t]:at.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else at.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00");if(!(de!=null&&de.inputs)||!(de!=null&&de.outputs))de.inputs=[],de.outputs=[],at.push("\u672A\u8BC6\u522B\u5230\u6D4B\u8BD5\u7528\u4F8B\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u5165\uFF1A1\uFF1B\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u51FA\uFF1A2");else{const qt=Math.min(de.inputs.length,de.outputs.length);de.inputs=de.inputs.slice(0,qt),de.outputs=de.outputs.slice(0,qt),de.outputs.some(Yt=>!Pa(Yt))&&at.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return de.errorMsg=at.join(` +`),de}},{id:"7",type:"\u7EC4\u5408\u9898",element:(de,$e)=>{var st,Ht;const at=Mt[$e];return b.createElement("div",{className:he.row,style:{display:dn?at!=null&&at.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:he.leftLayout},b.createElement(jn,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},ur(de,$e),ar(de),(st=de==null?void 0:de.questions)==null?void 0:st.map((an,qt)=>{var Yt;const _t=(Yt=Qa.find(ia=>ia.id===(an==null?void 0:an.type)))==null?void 0:Yt.element;return b.createElement(b.Fragment,{key:`left-${de.id}-${qt}`},_t(an,$e,qt)[0])}),it(de),b.createElement("p",{contentEditable:!0},"}}")))),b.createElement("div",{className:he.rightLayout},b.createElement($t,{className:at!=null&&at.errorMsg?he.error:""},Ga(at,$e),mt(at,"",$e),(Ht=at==null?void 0:at.questions)==null?void 0:Ht.map((an,qt)=>{var Yt;const _t=(Yt=Qa.find(ia=>ia.id===(an==null?void 0:an.type)))==null?void 0:Yt.element;return b.createElement(b.Fragment,{key:`right-${at.id}-${qt}`},_t(an,$e,qt)[1])}),Nt(at))))},deal:de=>{var $e,st,Ht,at,an;const qt=Xa,Yt=[...Qa],_t=Yt.findIndex(pn=>pn.id==="0"),ia=Yt.findIndex(pn=>pn.id==="1");if(_t!==-1){const pn=Yt[_t].deal;Yt[_t].deal=Ia=>{const Ca=pn(Ia);return Ca.errorMsg&&(Ca.errorMsg=Ca.errorMsg.split(` `).filter(ja=>ja!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(` -`)),xa}}if(oa!==-1){const pn=Kt[oa].deal;Kt[oa].deal=Na=>{const xa=pn(Na);return xa.errorMsg&&(xa.errorMsg=xa.errorMsg.split(` +`)),Ca}}if(ia!==-1){const pn=Yt[ia].deal;Yt[ia].deal=Ia=>{const Ca=pn(Ia);return Ca.errorMsg&&(Ca.errorMsg=Ca.errorMsg.split(` `).filter(ja=>ja!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(` -`)),xa}}de.questions=($e=de.questions)!=null&&$e.length?Xa(de.questions.slice(0,20)):[],de.questions=(st=de.questions)==null?void 0:st.map((pn,Na)=>{var xa;if(pn.type==="0"||pn.type==="1"){const ja=(xa=pn.options)==null?void 0:xa.map(Ir=>Ir==null?void 0:Ir.trim().replace(/^\s+|\s+$/g,""));ja&&new Set(ja).size!==ja.length&&(pn.errorMsg=(pn.errorMsg?pn.errorMsg+` -`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return Tn(St({},pn),{last:Na===de.questions.length-1})});const Ha=(jt=de.questions)==null?void 0:jt.reduce((pn,Na)=>{const xa=parseFloat(Na.score);return isNaN(xa)?pn:pn+xa},0);de.score=Ha;let Wa=[];return(at=de.questions)!=null&&at.length?de.errorMsg=((rn=de.questions)==null?void 0:rn.findIndex(pn=>!!pn.errorMsg))>-1:Wa.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),Pa(de==null?void 0:de.question)||Wa.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Wa.length&&(de.errorMsg=Wa.join(` -`)),de}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(de,$e)=>{var st,jt;const at=Rt[$e],rn=Ln.map(qt=>({key:qt,label:qt,onClick:()=>fa("platform",$e,qt)}));return b.createElement("div",{className:he.row,style:{display:cn?at!=null&&at.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:he.leftLayout},b.createElement(jn,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},lr(de,$e),tr(de),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${de==null?void 0:de.timeLimit}`,tagName:"p"}),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(de==null?void 0:de.platform)||""}`,tagName:"p"}),b.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),b.createElement("h4",null),b.createElement(ye,{id:de==null?void 0:de.id,value:(de==null?void 0:de.code)||"",tagName:"div"}),b.createElement("h4",null),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A${(de==null?void 0:de.input)||""}`,tagName:"p"}),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A${(de==null?void 0:de.output)||""}`,tagName:"p"}),(st=de==null?void 0:de.answer)==null?void 0:st.map((qt,Kt)=>b.createElement(ye,{key:Kt,id:de==null?void 0:de.id,value:`\u7B54\u6848${Kt+1}\uFF1A${qt||""}`,tagName:"p"})),it(de)))),b.createElement("div",{className:he.rightLayout},b.createElement($t,{className:at!=null&&at.errorMsg?he.error:""},Ga(at,$e),mt(at,"",$e),b.createElement("div",{className:he.liWrap},b.createElement("div",{className:he.li,onKeyDown:wn},b.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:at==null?void 0:at.timeLimit,tagName:"div",onBlur:qt=>fa("timeLimit",$e,Va(qt))})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(Oe.Z,{menu:{items:rn}},b.createElement("span",{className:"c-light-primary"},at==null?void 0:at.platform,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),b.createElement("div",{className:he.li,style:{flexDirection:"column",alignItems:"start"}},b.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:(at==null?void 0:at.code)||"",onBlur:qt=>fa("code",$e,Va(qt)),tagName:"div"})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:(at==null?void 0:at.input)||"",onBlur:qt=>fa("input",$e,Va(qt)),tagName:"div"})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:(at==null?void 0:at.output)||"",onBlur:qt=>fa("output",$e,Va(qt)),tagName:"div"}))),b.createElement("div",{className:he.liWrap},(jt=at==null?void 0:at.answer)==null?void 0:jt.map((qt,Kt)=>b.createElement("div",{className:he.li,key:Kt},b.createElement("aside",null,"\u7B54\u6848",Kt+1,"\uFF1A"),b.createElement(ye,{id:at==null?void 0:at.id,value:qt||"",className:he.edit,onBlur:_t=>{const oa=[...(at==null?void 0:at.answer)||[]];oa[Kt]=Va(_t),fa("output",$e,oa)},tagName:"div"})))),Ot(at))))},deal:de=>{var $e,st,jt,at,rn,qt,Kt,_t;de.score=de.score===void 0?10:de.score,de.code=(jt=(st=($e=de.code)==null?void 0:$e.trim())==null?void 0:st.replace(/@_@/g,"@\u2581@"))==null?void 0:jt.replace(/@__@/g,"@\u2581\u2581@");let oa=[];if(Pa(de==null?void 0:de.question)||oa.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Pa(de==null?void 0:de.code)?/@▁@|@▁▁@/.test(de==null?void 0:de.code)?(at=de==null?void 0:de.answer)!=null&&at.length&&((rn=de==null?void 0:de.code.match(/@▁@|@▁▁@/g))==null?void 0:rn.length)!==((qt=de==null?void 0:de.answer)==null?void 0:qt.length)&&oa.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):oa.push("\u7A0B\u5E8F\u4EE3\u7801\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u7A0B\u5E8F\u4EE3\u7801\u4E2D\u7684\u586B\u7A7A\u9879\u9700\u8981\u4F7F\u7528 @\u2581@ \u7B26\u53F7\u6807\u8BC6\u51FA\u6765"):oa.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),de!=null&&de.answer?(Kt=de.answer)!=null&&Kt.some(Wa=>!Pa(Wa))&&oa.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):oa.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1AHello\uFF1B\u7B54\u68482\uFF1AWorld"),de.platform=Pa(de==null?void 0:de.platform),de!=null&&de.platform){const Wa=["c","c++","java","python","javascript","ruby"],pn=(_t=de==null?void 0:de.platform)==null?void 0:_t.toLowerCase(),Na=Wa.findIndex(xa=>xa===pn);Na>-1?de.platform=Ln[Na]:oa.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else oa.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00");Pa(de==null?void 0:de.output)||oa.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const Ha=Pa(String((de==null?void 0:de.timeLimit)||""));return de.timeLimit=Ha,(!Ha||Ha&&!["3","4","5","6","7","8","9","10"].includes(Ha))&&oa.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),de.errorMsg=oa.join(` -`),de}}],pr=()=>b.createElement(b.Fragment,null,Ke.filter(de=>{var $e;return!!(($e=Qa.find(jt=>jt.id===(de==null?void 0:de.type)))==null?void 0:$e.element)}).map((de,$e)=>{var st;const jt=(st=Qa.find(at=>at.id===(de==null?void 0:de.type)))==null?void 0:st.element;return b.createElement(b.Fragment,{key:de.id},jt(de,$e))})),Gr=()=>Mt(void 0,null,function*(){const de=Rt.filter($e=>!$e.checked);if(xe!==3||!de.length){Ge.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if(kn){$a(!0),yield kn(Rt),$a(!1);return}gr.setFieldsValue({sub_discipline_id:hn}),Ea(!0)}),er=(de,$e=[])=>{if(typeof de=="string")return de.trim();if(Array.isArray(de))return de.map(st=>er(st,$e));if(typeof de=="object"&&de!==null){const st={};for(const jt in de)de.hasOwnProperty(jt)&&($e.includes(jt)?st[jt]=de[jt]:st[jt]=er(de[jt],$e));return st}return de},fr=de=>Mt(void 0,null,function*(){const $e=Xa(er(de));He($e),dn(JSON.parse(JSON.stringify($e))),ft(3),je(!1),qn(!1)});(0,b.useEffect)(()=>{if(ca)return;const de=()=>{Qt($e=>$e>=90?(clearInterval(wa.current),90):$e+1)};return wa.current=setInterval(de,5e4/90),()=>clearInterval(wa.current)},[ca]);const Dr=(de,$e)=>{Vn(!1);const st=new FormData;Object.keys($e).forEach(at=>{st.append(at,$e[at])});const jt=new window.XMLHttpRequest;jt.withCredentials=!0,jt.addEventListener("load",function(at){return Mt(this,null,function*(){var rn,qt;try{const Kt=JSON.parse((rn=at==null?void 0:at.target)==null?void 0:rn.response);if(Vn(!0),Qt(100),yield new Promise(_t=>setTimeout(()=>_t(),780)),Kt.status===0){if(!((qt=Kt==null?void 0:Kt.data)!=null&&qt.length)){Ge.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),je(!1);return}fr((Kt==null?void 0:Kt.data)||[])}else je(!1),Ge.ZP.warning(Kt==null?void 0:Kt.message)}catch(Kt){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",Kt)}})}),jt.addEventListener("error",()=>{je(!1)}),jt.open("POST",`${y.Z.API_SERVER}${de}`),jt.send(st)},Gn=de=>Mt(void 0,null,function*(){const $e=de.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf($e)==-1?(Ge.ZP.error(`${de.name}\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\uFF0C\u5F53\u524D\u4EC5\u9650\u652F\u6301\u683C\u5F0F\u4E3Adocx\u6587\u4EF6\uFF08Microsoft Word 2007\u4EE5\u4E0A\u7684\u7248\u672C\uFF09`),Promise.reject()):(je(!0),yt("\u5904\u7406\u4E2D"),Dr("/api/intelligent_imports/import.json",{file:de}),Promise.reject())});let on=[{key:1,label:b.createElement(We.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:Gn},b.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,gt.Ny)()||(0,gt.$O)())&&on.push({key:2,label:b.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{pa.current.onClick()}});const It=[Rt.length,(In=Rt.filter(de=>!!(de!=null&&de.errorMsg)))==null?void 0:In.length];return b.createElement("div",{className:Ie()(he.intelligentBox,"intelligent-body-curb",sn),style:Tn(St({},mn),{width:En}),ref:Vt},b.createElement("div",{className:he.underpin},b.createElement("b",{style:Ja}),b.createElement("b",{style:Ja})),b.createElement("div",{className:he.head,style:{top:ht}},b.createElement("div",{className:he.leftLayout},aa||b.createElement(b.Fragment,null,b.createElement(ke.Z,{align:"middle"},b.createElement("div",{className:he.title},"\u8BD5\u9898\u7F16\u8F91"),!xn&&b.createElement(x.op,{href:`${y.Z.API_SERVER}/api/intelligent_imports/download_template`,download:!0,type:"link"},"\u4E0B\u8F7DWord\u6A21\u7248",b.createElement("i",{className:"iconfont icon-xiazai4 font14 ml10"})),b.createElement(x.op,{onClick:ea,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!xn&&b.createElement(Oe.Z,{overlayClassName:he.menu,menu:{items:on}},b.createElement(x.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!Br&&Br),b.createElement("div",{className:he.tip},b.createElement("i",{className:"iconfont icon-tishi7 font12 mr10"}),"\u63D0\u793A\uFF1A\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u7F16\u8F91\u533A\u70B9\u51FB\u5BF9\u5E94\u7684\u8BD5\u9898\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u8BC6\u522B"))),b.createElement(ke.Z,{className:he.rightLayout,style:{alignItems:"start"}},Ka||b.createElement(b.Fragment,null,b.createElement("div",{className:he.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(xe)&&b.createElement(De.default,{className:"ml20",checked:cn,onChange:de=>qn(de.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(xe)&&b.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",b.createElement("span",{className:"ml5 mr5 c-light-primary"},It[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",b.createElement("span",{className:"ml5 mr5 c-red-e53"},It[1]),"\u9898")),Ra&&b.createElement("div",{className:he.tabs},Ke==null?void 0:Ke.map((de,$e)=>b.createElement("div",{onClick:()=>{sa($e)},className:Za===$e&&he.active,key:$e},"\u65B0\u9898",$e+1)))),b.createElement("div",{className:he.centerBox},b.createElement("img",{className:"mb10",src:ie,width:56}),!Qn&&b.createElement(x.op,{onClick:qa},"\u8BC6\u522B"))),[1,2].includes(xe)&&vr(),[3].includes(xe)&&pr(),b.createElement("div",{className:"pb10"}),b.createElement("div",{className:he.buttonFixed},b.createElement("div",{className:he.buttonWrap},b.createElement(Ve.ZP,{size:"middle",className:`${he.button} mr20`,onClick:Ma},"\u53D6\u6D88"),b.createElement(Ve.ZP,{size:"middle",type:"primary",loading:_a,className:`${he.button}`,onClick:Gr},Mn))),b.createElement(Fe.default,{centered:!0,closable:!1,destroyOnClose:!0,open:An,title:null,footer:null,width:320,afterClose:()=>Qt(0)},b.createElement(ke.Z,{align:"middle",style:{flexDirection:"column"}},b.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},Tt,b.createElement("span",{className:he.dotLoading},b.createElement("span",null,"."),b.createElement("span",null,"."),b.createElement("span",null,"."))),b.createElement(le.Z,{style:{width:"auto"},size:[200,8],showInfo:!1,percent:Ft}),b.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",b.createElement("span",{className:"ml5 c-light-primary"},Ft,"%")))),b.createElement(Fe.default,{centered:!0,open:Jn,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:Un,width:480,onCancel:()=>Ea(!1),onOk:()=>gr.submit(),afterClose:()=>{gr.resetFields()}},b.createElement(be.default,{style:{maxHeight:550},form:gr,layout:"horizontal",colon:!1,size:"large",onFinish:de=>Mt(void 0,null,function*(){var $e,st,jt,at,rn;const qt=Rt.filter(oa=>!oa.checked&&!oa.errorMsg);vn(!0);const Kt=()=>Mt(void 0,null,function*(){var oa,Ha;const Wa=yield(0,ge.ZP)("/api/intelligent_imports/save.json",{method:"post",body:Tn(St(St({},Da),de),{list:qt,mode:en})});Wa.status===0&&(At&&((oa=Wa==null?void 0:Wa.data)!=null&&oa.success)&&window.location.pathname==="/problemset"&&(pt.Z.publish("refresh-item-bank",de.group_id),yield new Promise(pn=>setTimeout(()=>pn(),1500))),Ge.ZP.success(`\u6210\u529F\u5BFC\u5165${(Ha=Wa==null?void 0:Wa.data)==null?void 0:Ha.success}\u9053\u8BD5\u9898`,3),Sa(Wa),Ea(!1)),vn(!1)});if(en!==1){yield Kt();return}const _t=yield(0,ge.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:Rt,mode:en}});if(_t.status===0){if(!(($e=_t==null?void 0:_t.data)!=null&&$e.error_size)){yield Kt();return}Fe.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{vn(!1)},title:"\u63D0\u793A",content:b.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",b.createElement("span",{className:"c-light-primary ml5 mr5"},(st=_t==null?void 0:_t.data)==null?void 0:st.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",b.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(jt=_t==null?void 0:_t.data)==null?void 0:jt.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",b.createElement("span",{className:"ml5 mr5"},(rn=(at=_t==null?void 0:_t.data)==null?void 0:at.index)==null?void 0:rn.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:Kt})}})},b.createElement("div",{className:"c-grey-999 mb20"},"\u63D0\u793A\uFF1A\u8BC6\u522B\u6709\u8BEF\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u5BFC\u5165"),b.createElement(be.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"sub_discipline_id",labelCol:{span:5},wrapperCol:{span:19},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"}]},b.createElement(E.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",fieldNames:{label:"name",value:"id",children:"sub_disciplines"},options:Je})),en===1&&b.createElement(be.default.Item,{label:b.createElement(ke.Z,{align:"middle",style:{justifyContent:"space-between"}},b.createElement("span",null,"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55"),b.createElement("div",{onClick:()=>_n(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},b.createElement("img",{className:"mr5 primary-hover",src:Pe}),"\u65B0\u5EFA\u6587\u4EF6\u5939")),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"group_id",labelCol:{span:24},wrapperCol:{span:24}},b.createElement(fe.Z,{key:Dn})))),b.createElement(Fe.default,{centered:!0,open:zt,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:Xn,onCancel:()=>_n(!1),onOk:()=>kt.submit(),afterClose:()=>{kt.resetFields()}},b.createElement(be.default,{style:{maxHeight:550},form:kt,layout:"horizontal",colon:!1,size:"large",onFinish:de=>Mt(void 0,null,function*(){var $e;Rn(!0),(yield(0,ge.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:de.name,parent_id:($e=de==null?void 0:de.parent_id)==null?void 0:$e[0]}})).status===0?(tt(Dn+1),setTimeout(()=>{Ge.ZP.success("\u64CD\u4F5C\u6210\u529F"),_n(!1),Rn(!1)},1e3)):Rn(!1)})},b.createElement(be.default.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},b.createElement(a.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"})),b.createElement(be.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},b.createElement(fe.Z,null)))),b.createElement(dt,{onSave:de=>{je(!0),yt("\u5904\u7406\u4E2D"),Dr("/api/intelligent_imports/import.json",{html:de})},ref:pa}))},Wn=z;var Ca=ma},10438:function(_e,xt,oe){"use strict";var b=oe(59301),he=oe(14973),Be=oe(48136),Ie=oe(29386),be=oe(43418),Ge=oe(59301);const Fe=(0,b.forwardRef)(({callback:Ye,width:ke,onChange:De,disabled:Oe,readOnly:We,type:Ve="",value:le="",style:E={}},a)=>{const x=(0,b.useRef)(),y=(0,b.useRef)(),[z,ne]=(0,b.useState)(0),[re,ie]=(0,b.useState)(0),[ge,fe]=(0,b.useState)(!1),Pe=()=>{var Le=document.createElement("div");Le.innerHTML=x.current.getValue();var Ce=Le.innerText;return Ye&&Ye(Ce),Ce};(0,b.useImperativeHandle)(a,()=>({getData:Pe}));const Ue=Le=>{Le.preventDefault();const Ce=Le.clientX-z,Xe=Le.clientY-re;document.body.onmousemove=nt=>{let ye=nt.clientX-Ce,gt=nt.clientY-Xe;const pt=document.getElementsByClassName("markdown-popup-form")[0],wt=window.innerWidth-pt.offsetWidth,ut=window.innerHeight-pt.offsetHeight;ye=Math.max(0,Math.min(ye,wt)),gt=Math.max(0,Math.min(gt,ut)),Re(nt.clientX,nt.clientY,Ce,Xe)&&(ne(ye),ie(gt))},document.body.onmouseup=function(){document.body.onmousemove=null}},Re=(Le,Ce,Xe,nt)=>{const ye=document.body.clientHeight,gt=document.body.clientWidth;return Le<20&&Xe>Le||Le>gt-20&&XeCe||Ce>ye-20&&nt{ge&&setTimeout(()=>{const Le=document.getElementsByClassName("markdown-popup-form")[0],Ce=window.innerWidth/2-Le.offsetWidth/2,Xe=window.innerHeight/2-Le.offsetHeight/2;ne(Ce),ie(Xe)},0)},[ge]);const lt=()=>{Oe||We||fe(!0)};return Ge.createElement("div",{style:E},Ge.createElement("div",{style:{width:ke||"100%",position:"relative"},className:`${he.Z.mathFillWrap} ${Oe||We?"cursorDefault":""}`,onClick:()=>lt()},Ge.createElement("math-field",{disabled:Oe,locale:"zh_cn",class:`${he.Z.mathField} ${Ve}`,readOnly:We,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:x,style:{width:"100%",fontSize:le?18:14},value:le||""})),Ge.createElement(be.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:z,top:re},title:Ge.createElement("div",{style:{cursor:"move"},onMouseDown:Ue},"\u8F93\u5165\u516C\u5F0F"),open:ge,onOk:()=>{const Le=y.current.getData();x.current.setValue(Le),De(Le),fe(!1)},onCancel:()=>{fe(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Ge.createElement(Ie.Z,{value:le,ref:y,onChange:De,showSaveButton:!1})))});xt.Z=Fe},29386:function(_e,xt,oe){"use strict";var b=oe(59301),he=oe(95237),Be=oe(43604),Ie=oe(99313),be=oe(3113),Ge=oe(28900),Fe=oe(14973),Ye=oe(48136),ke=oe(59301);const De=(0,b.forwardRef)(({callback:Oe,showSaveButton:We,value:Ve=""},le)=>{const E=(0,b.useRef)(),a=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r +`)),Ca}}de.questions=($e=de.questions)!=null&&$e.length?Xa(de.questions.slice(0,20)):[],de.questions=(st=de.questions)==null?void 0:st.map((pn,Ia)=>{var Ca;if(pn.type==="0"||pn.type==="1"){const ja=(Ca=pn.options)==null?void 0:Ca.map(Ir=>Ir==null?void 0:Ir.trim().replace(/^\s+|\s+$/g,""));ja&&new Set(ja).size!==ja.length&&(pn.errorMsg=(pn.errorMsg?pn.errorMsg+` +`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return Rn(St({},pn),{last:Ia===de.questions.length-1})});const za=(Ht=de.questions)==null?void 0:Ht.reduce((pn,Ia)=>{const Ca=parseFloat(Ia.score);return isNaN(Ca)?pn:pn+Ca},0);de.score=za;let Wa=[];return(at=de.questions)!=null&&at.length?de.errorMsg=((an=de.questions)==null?void 0:an.findIndex(pn=>!!pn.errorMsg))>-1:Wa.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),Pa(de==null?void 0:de.question)||Wa.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Wa.length&&(de.errorMsg=Wa.join(` +`)),de}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(de,$e)=>{var st,Ht;const at=Mt[$e],an=Dn.map(qt=>({key:qt,label:qt,onClick:()=>fa("platform",$e,qt)}));return b.createElement("div",{className:he.row,style:{display:dn?at!=null&&at.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:he.leftLayout},b.createElement(jn,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},ur(de,$e),ar(de),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${de==null?void 0:de.timeLimit}`,tagName:"p"}),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(de==null?void 0:de.platform)||""}`,tagName:"p"}),b.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),b.createElement("h4",null),b.createElement(ye,{id:de==null?void 0:de.id,value:(de==null?void 0:de.code)||"",tagName:"div"}),b.createElement("h4",null),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A${(de==null?void 0:de.input)||""}`,tagName:"p"}),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A${(de==null?void 0:de.output)||""}`,tagName:"p"}),(st=de==null?void 0:de.answer)==null?void 0:st.map((qt,Yt)=>b.createElement(ye,{key:Yt,id:de==null?void 0:de.id,value:`\u7B54\u6848${Yt+1}\uFF1A${qt||""}`,tagName:"p"})),it(de)))),b.createElement("div",{className:he.rightLayout},b.createElement($t,{className:at!=null&&at.errorMsg?he.error:""},Ga(at,$e),mt(at,"",$e),b.createElement("div",{className:he.liWrap},b.createElement("div",{className:he.li,onKeyDown:xn},b.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:at==null?void 0:at.timeLimit,tagName:"div",onBlur:qt=>fa("timeLimit",$e,Va(qt))})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(Oe.Z,{menu:{items:an}},b.createElement("span",{className:"c-light-primary"},at==null?void 0:at.platform,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),b.createElement("div",{className:he.li,style:{flexDirection:"column",alignItems:"start"}},b.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:(at==null?void 0:at.code)||"",onBlur:qt=>fa("code",$e,Va(qt)),tagName:"div"})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:(at==null?void 0:at.input)||"",onBlur:qt=>fa("input",$e,Va(qt)),tagName:"div"})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:(at==null?void 0:at.output)||"",onBlur:qt=>fa("output",$e,Va(qt)),tagName:"div"}))),b.createElement("div",{className:he.liWrap},(Ht=at==null?void 0:at.answer)==null?void 0:Ht.map((qt,Yt)=>b.createElement("div",{className:he.li,key:Yt},b.createElement("aside",null,"\u7B54\u6848",Yt+1,"\uFF1A"),b.createElement(ye,{id:at==null?void 0:at.id,value:qt||"",className:he.edit,onBlur:_t=>{const ia=[...(at==null?void 0:at.answer)||[]];ia[Yt]=Va(_t),fa("output",$e,ia)},tagName:"div"})))),Nt(at))))},deal:de=>{var $e,st,Ht,at,an,qt,Yt,_t;de.score=de.score===void 0?10:de.score,de.code=(Ht=(st=($e=de.code)==null?void 0:$e.trim())==null?void 0:st.replace(/@_@/g,"@\u2581@"))==null?void 0:Ht.replace(/@__@/g,"@\u2581\u2581@");let ia=[];if(Pa(de==null?void 0:de.question)||ia.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Pa(de==null?void 0:de.code)?/@▁@|@▁▁@/.test(de==null?void 0:de.code)?(at=de==null?void 0:de.answer)!=null&&at.length&&((an=de==null?void 0:de.code.match(/@▁@|@▁▁@/g))==null?void 0:an.length)!==((qt=de==null?void 0:de.answer)==null?void 0:qt.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"),de!=null&&de.answer?(Yt=de.answer)!=null&&Yt.some(Wa=>!Pa(Wa))&&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"),de.platform=Pa(de==null?void 0:de.platform),de!=null&&de.platform){const Wa=["c","c++","java","python","javascript","ruby"],pn=(_t=de==null?void 0:de.platform)==null?void 0:_t.toLowerCase(),Ia=Wa.findIndex(Ca=>Ca===pn);Ia>-1?de.platform=Dn[Ia]: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");Pa(de==null?void 0:de.output)||ia.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const za=Pa(String((de==null?void 0:de.timeLimit)||""));return de.timeLimit=za,(!za||za&&!["3","4","5","6","7","8","9","10"].includes(za))&&ia.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),de.errorMsg=ia.join(` +`),de}}],hr=()=>b.createElement(b.Fragment,null,Ke.filter(de=>{var $e;return!!(($e=Qa.find(Ht=>Ht.id===(de==null?void 0:de.type)))==null?void 0:$e.element)}).map((de,$e)=>{var st;const Ht=(st=Qa.find(at=>at.id===(de==null?void 0:de.type)))==null?void 0:st.element;return b.createElement(b.Fragment,{key:de.id},Ht(de,$e))})),Gr=()=>Ot(void 0,null,function*(){const de=Mt.filter($e=>!$e.checked);if(xe!==3||!de.length){Ge.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if(Tn){tr(!0),yield Tn(Mt),tr(!1);return}gr.setFieldsValue({sub_discipline_id:Sn}),Ea(!0)}),nr=(de,$e=[])=>{if(typeof de=="string")return de.trim();if(Array.isArray(de))return de.map(st=>nr(st,$e));if(typeof de=="object"&&de!==null){const st={};for(const Ht in de)de.hasOwnProperty(Ht)&&($e.includes(Ht)?st[Ht]=de[Ht]:st[Ht]=nr(de[Ht],$e));return st}return de},fr=de=>Ot(void 0,null,function*(){const $e=Xa(nr(de));He($e),sn(JSON.parse(JSON.stringify($e))),ft(3),je(!1),qn(!1)});(0,b.useEffect)(()=>{if(ca)return;const de=()=>{Ut($e=>$e>=90?(clearInterval(xa.current),90):$e+1)};return xa.current=setInterval(de,5e4/90),()=>clearInterval(xa.current)},[ca]);const Dr=(de,$e)=>{Vn(!1);const st=new FormData;Object.keys($e).forEach(at=>{st.append(at,$e[at])});const Ht=new window.XMLHttpRequest;Ht.withCredentials=!0,Ht.addEventListener("load",function(at){return Ot(this,null,function*(){var an,qt;try{const Yt=JSON.parse((an=at==null?void 0:at.target)==null?void 0:an.response);if(Vn(!0),Ut(100),yield new Promise(_t=>setTimeout(()=>_t(),780)),Yt.status===0){if(!((qt=Yt==null?void 0:Yt.data)!=null&&qt.length)){Ge.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),je(!1);return}fr((Yt==null?void 0:Yt.data)||[])}else je(!1),Ge.ZP.warning(Yt==null?void 0:Yt.message)}catch(Yt){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",Yt)}})}),Ht.addEventListener("error",()=>{je(!1)}),Ht.open("POST",`${y.Z.API_SERVER}${de}`),Ht.send(st)},Gn=de=>Ot(void 0,null,function*(){const $e=de.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf($e)==-1?(Ge.ZP.error(`${de.name}\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\uFF0C\u5F53\u524D\u4EC5\u9650\u652F\u6301\u683C\u5F0F\u4E3Adocx\u6587\u4EF6\uFF08Microsoft Word 2007\u4EE5\u4E0A\u7684\u7248\u672C\uFF09`),Promise.reject()):(je(!0),yt("\u5904\u7406\u4E2D"),Dr("/api/intelligent_imports/import.json",{file:de}),Promise.reject())});let rn=[{key:1,label:b.createElement(We.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:Gn},b.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,gt.Ny)()||(0,gt.$O)())&&rn.push({key:2,label:b.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{pa.current.onClick()}});const Lt=[Mt.length,(Ln=Mt.filter(de=>!!(de!=null&&de.errorMsg)))==null?void 0:Ln.length];return b.createElement("div",{className:Ie()(he.intelligentBox,"intelligent-body-curb",un),style:Rn(St({},mn),{width:En}),ref:Qt},b.createElement("div",{className:he.underpin},b.createElement("b",{style:Ja}),b.createElement("b",{style:Ja})),b.createElement("div",{className:he.head,style:{top:ht}},b.createElement("div",{className:he.leftLayout},ra||b.createElement(b.Fragment,null,b.createElement(ke.Z,{align:"middle"},b.createElement("div",{className:he.title},"\u8BD5\u9898\u7F16\u8F91"),!Cn&&b.createElement(x.op,{href:`${y.Z.API_SERVER}/api/intelligent_imports/download_template`,download:!0,type:"link"},"\u4E0B\u8F7DWord\u6A21\u7248",b.createElement("i",{className:"iconfont icon-xiazai4 font14 ml10"})),b.createElement(x.op,{onClick:ea,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!Cn&&b.createElement(Oe.Z,{overlayClassName:he.menu,menu:{items:rn}},b.createElement(x.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!Br&&Br),b.createElement("div",{className:he.tip},b.createElement("i",{className:"iconfont icon-tishi7 font12 mr10"}),"\u63D0\u793A\uFF1A\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u7F16\u8F91\u533A\u70B9\u51FB\u5BF9\u5E94\u7684\u8BD5\u9898\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u8BC6\u522B"))),b.createElement(ke.Z,{className:he.rightLayout,style:{alignItems:"start"}},Ka||b.createElement(b.Fragment,null,b.createElement("div",{className:he.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(xe)&&b.createElement(De.default,{className:"ml20",checked:dn,onChange:de=>qn(de.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(xe)&&b.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",b.createElement("span",{className:"ml5 mr5 c-light-primary"},Lt[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",b.createElement("span",{className:"ml5 mr5 c-red-e53"},Lt[1]),"\u9898")),Ma&&b.createElement("div",{className:he.tabs},Ke==null?void 0:Ke.map((de,$e)=>b.createElement("div",{onClick:()=>{sa($e)},className:Za===$e&&he.active,key:$e},"\u65B0\u9898",$e+1)))),b.createElement("div",{className:he.centerBox},b.createElement("img",{className:"mb10",src:ie,width:56}),!Qn&&b.createElement(x.op,{onClick:qa},"\u8BC6\u522B"))),[1,2].includes(xe)&&pr(),[3].includes(xe)&&hr(),b.createElement("div",{className:"pb10"}),b.createElement("div",{className:he.buttonFixed},b.createElement("div",{className:he.buttonWrap},b.createElement(Ve.ZP,{size:"middle",className:`${he.button} mr20`,onClick:Oa},"\u53D6\u6D88"),b.createElement(Ve.ZP,{size:"middle",type:"primary",loading:er,className:`${he.button}`,onClick:Gr},On))),b.createElement(Fe.default,{centered:!0,closable:!1,destroyOnClose:!0,open:An,title:null,footer:null,width:320,afterClose:()=>Ut(0)},b.createElement(ke.Z,{align:"middle",style:{flexDirection:"column"}},b.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},Rt,b.createElement("span",{className:he.dotLoading},b.createElement("span",null,"."),b.createElement("span",null,"."),b.createElement("span",null,"."))),b.createElement(le.Z,{style:{width:"auto"},size:[200,8],showInfo:!1,percent:Ft}),b.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",b.createElement("span",{className:"ml5 c-light-primary"},Ft,"%")))),b.createElement(Fe.default,{centered:!0,open:Jn,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:Un,width:480,onCancel:()=>Ea(!1),onOk:()=>gr.submit(),afterClose:()=>{gr.resetFields()}},b.createElement(be.default,{style:{maxHeight:550},form:gr,layout:"horizontal",colon:!1,size:"large",onFinish:de=>Ot(void 0,null,function*(){var $e,st,Ht,at,an;const qt=Mt.filter(ia=>!ia.checked&&!ia.errorMsg);fn(!0);const Yt=()=>Ot(void 0,null,function*(){var ia,za;const Wa=yield(0,ge.ZP)("/api/intelligent_imports/save.json",{method:"post",body:Rn(St(St({},wa),de),{list:qt,mode:tn})});Wa.status===0&&(At&&((ia=Wa==null?void 0:Wa.data)!=null&&ia.success)&&window.location.pathname==="/problemset"&&(pt.Z.publish("refresh-item-bank",de.group_id),yield new Promise(pn=>setTimeout(()=>pn(),1500))),Ge.ZP.success(`\u6210\u529F\u5BFC\u5165${(za=Wa==null?void 0:Wa.data)==null?void 0:za.success}\u9053\u8BD5\u9898`,3),Sa(Wa),Ea(!1)),fn(!1)});if(tn!==1){yield Yt();return}const _t=yield(0,ge.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:Mt,mode:tn}});if(_t.status===0){if(!(($e=_t==null?void 0:_t.data)!=null&&$e.error_size)){yield Yt();return}Fe.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{fn(!1)},title:"\u63D0\u793A",content:b.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",b.createElement("span",{className:"c-light-primary ml5 mr5"},(st=_t==null?void 0:_t.data)==null?void 0:st.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",b.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(Ht=_t==null?void 0:_t.data)==null?void 0:Ht.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",b.createElement("span",{className:"ml5 mr5"},(an=(at=_t==null?void 0:_t.data)==null?void 0:at.index)==null?void 0:an.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:Yt})}})},b.createElement("div",{className:"c-grey-999 mb20"},"\u63D0\u793A\uFF1A\u8BC6\u522B\u6709\u8BEF\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u5BFC\u5165"),b.createElement(be.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"sub_discipline_id",labelCol:{span:5},wrapperCol:{span:19},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"}]},b.createElement(E.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",fieldNames:{label:"name",value:"id",children:"sub_disciplines"},options:Je})),tn===1&&b.createElement(be.default.Item,{label:b.createElement(ke.Z,{align:"middle",style:{justifyContent:"space-between"}},b.createElement("span",null,"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55"),b.createElement("div",{onClick:()=>_n(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},b.createElement("img",{className:"mr5 primary-hover",src:Pe}),"\u65B0\u5EFA\u6587\u4EF6\u5939")),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"group_id",labelCol:{span:24},wrapperCol:{span:24}},b.createElement(fe.Z,{key:wn})))),b.createElement(Fe.default,{centered:!0,open:Zt,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:Xn,onCancel:()=>_n(!1),onOk:()=>Tt.submit(),afterClose:()=>{Tt.resetFields()}},b.createElement(be.default,{style:{maxHeight:550},form:Tt,layout:"horizontal",colon:!1,size:"large",onFinish:de=>Ot(void 0,null,function*(){var $e;Mn(!0),(yield(0,ge.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:de.name,parent_id:($e=de==null?void 0:de.parent_id)==null?void 0:$e[0]}})).status===0?(tt(wn+1),setTimeout(()=>{Ge.ZP.success("\u64CD\u4F5C\u6210\u529F"),_n(!1),Mn(!1)},1e3)):Mn(!1)})},b.createElement(be.default.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},b.createElement(a.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"})),b.createElement(be.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},b.createElement(fe.Z,null)))),b.createElement(dt,{onSave:de=>{je(!0),yt("\u5904\u7406\u4E2D"),Dr("/api/intelligent_imports/import.json",{html:de})},ref:pa}))},Wn=z;var ba=ma},10438:function(_e,xt,oe){"use strict";var b=oe(59301),he=oe(14973),Be=oe(48136),Ie=oe(29386),be=oe(43418),Ge=oe(59301);const Fe=(0,b.forwardRef)(({callback:Ye,width:ke,onChange:De,disabled:Oe,readOnly:We,type:Ve="",value:le="",style:E={}},a)=>{const x=(0,b.useRef)(),y=(0,b.useRef)(),[z,ne]=(0,b.useState)(0),[re,ie]=(0,b.useState)(0),[ge,fe]=(0,b.useState)(!1),Pe=()=>{var Le=document.createElement("div");Le.innerHTML=x.current.getValue();var Ce=Le.innerText;return Ye&&Ye(Ce),Ce};(0,b.useImperativeHandle)(a,()=>({getData:Pe}));const Ue=Le=>{Le.preventDefault();const Ce=Le.clientX-z,Xe=Le.clientY-re;document.body.onmousemove=nt=>{let ye=nt.clientX-Ce,gt=nt.clientY-Xe;const pt=document.getElementsByClassName("markdown-popup-form")[0],wt=window.innerWidth-pt.offsetWidth,ut=window.innerHeight-pt.offsetHeight;ye=Math.max(0,Math.min(ye,wt)),gt=Math.max(0,Math.min(gt,ut)),Re(nt.clientX,nt.clientY,Ce,Xe)&&(ne(ye),ie(gt))},document.body.onmouseup=function(){document.body.onmousemove=null}},Re=(Le,Ce,Xe,nt)=>{const ye=document.body.clientHeight,gt=document.body.clientWidth;return Le<20&&Xe>Le||Le>gt-20&&XeCe||Ce>ye-20&&nt{ge&&setTimeout(()=>{const Le=document.getElementsByClassName("markdown-popup-form")[0],Ce=window.innerWidth/2-Le.offsetWidth/2,Xe=window.innerHeight/2-Le.offsetHeight/2;ne(Ce),ie(Xe)},0)},[ge]);const lt=()=>{Oe||We||fe(!0)};return Ge.createElement("div",{style:E},Ge.createElement("div",{style:{width:ke||"100%",position:"relative"},className:`${he.Z.mathFillWrap} ${Oe||We?"cursorDefault":""}`,onClick:()=>lt()},Ge.createElement("math-field",{disabled:Oe,locale:"zh_cn",class:`${he.Z.mathField} ${Ve}`,readOnly:We,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:x,style:{width:"100%",fontSize:le?18:14},value:le||""})),Ge.createElement(be.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:z,top:re},title:Ge.createElement("div",{style:{cursor:"move"},onMouseDown:Ue},"\u8F93\u5165\u516C\u5F0F"),open:ge,onOk:()=>{const Le=y.current.getData();x.current.setValue(Le),De(Le),fe(!1)},onCancel:()=>{fe(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Ge.createElement(Ie.Z,{value:le,ref:y,onChange:De,showSaveButton:!1})))});xt.Z=Fe},29386:function(_e,xt,oe){"use strict";var b=oe(59301),he=oe(95237),Be=oe(43604),Ie=oe(99313),be=oe(3113),Ge=oe(28900),Fe=oe(14973),Ye=oe(48136),ke=oe(59301);const De=(0,b.forwardRef)(({callback:Oe,showSaveButton:We,value:Ve=""},le)=>{const E=(0,b.useRef)(),a=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r x=a + r\\text{cos}\\theta \\ \r y=b + r\\text{sin}\\theta \r \\end{matrix}\\right. `},{value:`\\begin{array}{l} \r @@ -232,7 +232,7 @@ ${Kn} \\end{array}`},{value:`\\begin{array}{c} \r P_{n}=n! \\\\ \r A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r -\\end{array}`}]}]}],y=re=>{E.current.setValue(E.current.getValue()+" "+re.value+" ")},z=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ke.createElement(he.Z,{className:Fe.Z.lists,gutter:[10,10]},a.map((re,ie)=>ke.createElement(Be.Z,{flex:"110px",className:Fe.Z.item},ke.createElement("div",null,ke.createElement(Ge.Z,{value:`$$${re.value}$$`}),re.name),ke.createElement("div",{className:Fe.Z.children},re.children.map((ge,fe)=>ke.createElement("div",{key:fe},ke.createElement("h1",null,ge.name),ke.createElement(he.Z,{gutter:[10,10]},ge.data.map((Pe,Ue)=>ke.createElement(Be.Z,{key:Ue,onClick:()=>y(Pe),className:Fe.Z.diamond},ke.createElement(Ge.Z,{value:"`$$"+Pe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ke.createElement(he.Z,{className:Fe.Z.lists,gutter:[10,10]},x.map((re,ie)=>ke.createElement(Be.Z,{flex:"110px",className:Fe.Z.item},ke.createElement("div",null,ke.createElement(Ge.Z,{value:"`$$"+re.value+"$$`"}),re.name),ke.createElement("div",{className:Fe.Z.children},re.children.map((ge,fe)=>ke.createElement("div",{key:fe},ge.name&&ke.createElement("h1",null,ge.name),ke.createElement(he.Z,{gutter:[10,10]},ge.data.map((Pe,Ue)=>ke.createElement(Be.Z,{key:Ue,onClick:()=>y(Pe),className:Fe.Z.diamond},ke.createElement(Ge.Z,{value:"`$$"+Pe.value+"$$`"}))))))))))}],ne=()=>{var re=document.createElement("div");re.innerHTML=E.current.getValue();var ie=re.innerText;return Oe&&Oe(ie),ie};return(0,b.useImperativeHandle)(le,()=>({getData:ne})),ke.createElement("div",{className:Fe.Z.mathWrap},ke.createElement(Ie.default,{defaultActiveKey:"1",items:z}),ke.createElement("math-field",{locale:"zh_cn",className:Fe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:E,style:{width:800,marginTop:30,fontSize:18}},Ve||""),We&&ke.createElement("div",{className:Fe.Z.button},ke.createElement(be.ZP,{size:"large",onClick:ne,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});xt.Z=De},74038:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return We}});var b=oe(59301),he=oe(78241),Be=oe(43418),Ie=oe(92832),be=oe(87169),Ge=oe(23789),Fe={publicQuest:"publicQuest___iYvzo",publicQuestContent:"publicQuestContent___vgbKh",public_tips:"public_tips___UX0Dn",concat:"concat___wOfND"},Ye=oe(76832),ke=oe(59301),De=(Ve,le,E)=>new Promise((a,x)=>{var y=re=>{try{ne(E.next(re))}catch(ie){x(ie)}},z=re=>{try{ne(E.throw(re))}catch(ie){x(ie)}},ne=re=>re.done?a(re.value):Promise.resolve(re.value).then(y,z);ne((E=E.apply(Ve,le)).next())}),We=({type:Ve="subject",open:le,onCancel:E,onOkClick:a,subDisciplineId:x})=>{const[y]=he.default.useForm(),[z,ne]=(0,b.useState)([]),[re,ie]=(0,b.useState)(!1);(0,b.useEffect)(()=>{},[]);const ge=()=>De(void 0,null,function*(){if(Ve){const fe=yield(0,Ge.ZP)("/api/disciplines.json",{method:"get",params:{source:Ve}});ne(fe.disciplines||[])}});return ke.createElement(Be.default,{title:ke.createElement("div",{style:{fontWeight:"bold"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9"),open:le,width:558,centered:!0,className:Fe.publicQuest,onCancel:()=>{E(),y.resetFields()},onOk:()=>{y.validateFields().then(fe=>De(void 0,null,function*(){const Pe=yield(0,Ge.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:fe==null?void 0:fe.name,sub_discipline_id:x}});(Pe==null?void 0:Pe.status)===0&&a({name:fe==null?void 0:fe.name,id:Pe==null?void 0:Pe.tag_discipline_id,public:!1,type:"personal"}),y.resetFields(),E()}))}},ke.createElement("div",{className:Fe.publicQuestContent},ke.createElement("div",{className:Fe.public_tips},ke.createElement(be.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"),ke.createElement(he.default,{labelAlign:"left",form:y,colon:!1},ke.createElement(he.default.Item,{label:"\u77E5\u8BC6\u70B9\u540D\u79F0",name:"name",rules:[{required:!0}]},ke.createElement(Ie.default,{showCount:!0,maxLength:20,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"}))),ke.createElement(Ye.Z,{open:re,onCancel:()=>{ie(!1)}})))}},98524:function(_e,xt,oe){"use strict";oe.d(xt,{Q:function(){return ke},Z:function(){return Oe}});var b=oe(59301),he={flex_box_center:"flex_box_center___VcCAZ",flex_space_between:"flex_space_between___I3jjO",flex_box_vertical_center:"flex_box_vertical_center___Rm_54",flex_box_center_end:"flex_box_center_end___nTsdc",flex_box_column:"flex_box_column___UVpzN",tags:"tags___kRRoe",text:"text___IyyEa",tagWrap:"tagWrap___v63mB",tag:"tag___X7wE6",c:"c___mZMPq",cpp:"cpp___eaTie",java:"java___gL98T",python:"python___eNRkk",edit:"edit___tbVu0"},Be=oe(92310),Ie=oe.n(Be),be=oe(43418),Ge=oe(8591),Fe=oe(24905),Ye=(We,Ve,le)=>new Promise((E,a)=>{var x=ne=>{try{z(le.next(ne))}catch(re){a(re)}},y=ne=>{try{z(le.throw(ne))}catch(re){a(re)}},z=ne=>ne.done?E(ne.value):Promise.resolve(ne.value).then(x,y);z((le=le.apply(We,Ve)).next())});const ke=({title:We="\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00",dataSource:Ve=[],visible:le,setVisible:E,tip:a,onOk:x})=>{const[y,z]=(0,b.useState)([]),[ne,re]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{le&&z(Ve)},[le]),b.createElement(be.default,{centered:!0,open:le,title:We,confirmLoading:ne,width:564,onOk:()=>Ye(void 0,null,function*(){if(!y.length){Ge.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}re(!0),yield x(y),re(!1)}),onCancel:()=>E(!1)},!!a&&b.createElement("div",{className:"c-grey-666 font16 mb10"},a),b.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},b.createElement(Fe.default.Group,{value:y,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:ie=>{z(ie)}})))};var Oe=({title:We="\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00",className:Ve,style:le={},onEdit:E,dataSource:a=[]})=>{const x={C:b.createElement("div",{className:he.c},"C"),"C++":b.createElement("div",{className:he.cpp},"C++"),Java:b.createElement("div",{className:he.java},"Java"),Python:b.createElement("div",{className:he.python},"Python")};return b.createElement("div",{className:Ie()(he.tags,Ve),style:le},!!We&&b.createElement("div",{className:he.text},We),b.createElement("div",{className:he.tagWrap},a==null?void 0:a.map(y=>b.createElement(b.Fragment,{key:y},x[y]))),!!E&&b.createElement("div",{onClick:E,className:`iconfont icon-bianji_Hover ${he.edit}`}))}},94827:function(_e,xt,oe){"use strict";oe.d(xt,{t:function(){return bn}});var b=oe(59301),he=oe(92832),Be=oe(78241),Ie=oe(43418),be=oe(95237),Ge=oe(43604),Fe=oe(5871),Ye=oe(57809),ke=oe(5112),De=oe(80061),Oe=oe(6075),We=oe(44388),Ve=oe(8591),le=oe(3113),E=oe(71418),a=oe(24334),x={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},y=oe(23789),z=oe(18509),ne=oe(37962),re=oe(56102),ie=oe(78547),ge=oe(59301),fe=Object.defineProperty,Pe=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Ce=(ot,Bt,Ht)=>Bt in ot?fe(ot,Bt,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):ot[Bt]=Ht,Xe=(ot,Bt)=>{for(var Ht in Bt||(Bt={}))lt.call(Bt,Ht)&&Ce(ot,Ht,Bt[Ht]);if(Re)for(var Ht of Re(Bt))Le.call(Bt,Ht)&&Ce(ot,Ht,Bt[Ht]);return ot},nt=(ot,Bt)=>Pe(ot,Ue(Bt)),ye=(ot,Bt,Ht)=>new Promise((St,Tn)=>{var Mt=jn=>{try{wn(Ht.next(jn))}catch($t){Tn($t)}},Kn=jn=>{try{wn(Ht.throw(jn))}catch($t){Tn($t)}},wn=jn=>jn.done?St(jn.value):Promise.resolve(jn.value).then(Mt,Kn);wn((Ht=Ht.apply(ot,Bt)).next())}),pt=({buttonProps:ot,buttonText:Bt,form:Ht,hackIdentifier:St="",answerKey:Tn,data:Mt})=>{const[Kn,wn]=(0,b.useState)(!1),[jn,$t]=(0,b.useState)(!1),[ma,Wn]=(0,b.useState)(!1),[Ca,sn]=(0,b.useState)({}),[mn,En]=(0,b.useState)(""),[Ma,Sa]=(0,b.useState)(""),Da=(0,b.useRef)(St),en=(0,b.useRef)(""),ht=(0,b.useRef)(!1);(0,b.useEffect)(()=>{ma&&aa()},[ma]),(0,b.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const hn=()=>new Date().getTime(),xn=Mt==null?void 0:Mt.code,ya=()=>{var Qn,Ya;let Ra=xn?Mt==null?void 0:Mt.code:(Qn=Ht.getFieldValue("hack_codes"))==null?void 0:Qn.code,Ja=xn?Mt==null?void 0:Mt.answer_content:Ht.getFieldValue(Tn),Br=xn?Mt==null?void 0:Mt.input:(Ya=Ht.getFieldValue("hack_sets"))==null?void 0:Ya.input;Ja==null||Ja.forEach(At=>{const Mn=At.value||At.answer_text||"";Ra=Ra.replace(/(@▁@|@▁▁@)/,Mn)}),Sa(Br),En(Ra),sn({}),Wn(!0)},aa=()=>ye(void 0,null,function*(){var Qn,Ya,Ra,Ja;const Br=hn(),At=xn?Mt==null?void 0:Mt.time_limit:(Qn=Ht.getFieldsValue())==null?void 0:Qn.hack.time_limit,Mn=xn?(Ya=Mt==null?void 0:Mt.answer_content)==null?void 0:Ya.length:(Ja=(Ra=Ht.getFieldsValue())==null?void 0:Ra.standard_answers)==null?void 0:Ja.length;wn(!0),yield(0,z.bM)(en.current,{test_hack_code:mn,test_input:Ma});function kn(){return ye(this,null,function*(){const{status:In,data:xe}=yield(0,z.rX)(en.current,"submit"),Ft=hn()-Br>(At+3)*1e3*Mn;if(ht.current){if(Ft){Ve.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),wn(!1);return}if(In===0){wn(!1),sn(nt(Xe({},xe),{showText:!0}));return}setTimeout(kn,1e3)}})}kn()}),Ka=()=>ye(void 0,null,function*(){var Qn,Ya,Ra,Ja,Br,At,Mn;if(!Mt){try{yield Ht.validateFields()}catch(ft){(Ra=(Ya=(Qn=ft==null?void 0:ft.errorFields)==null?void 0:Qn[0])==null?void 0:Ya.name)!=null&&Ra.includes("standard_answers")?Ve.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ve.ZP.error(ft.errorFields[0].errors[0]),Ht.scrollToField(ft.errorFields[0].name,{behavior:"smooth",block:"center"});return}$t(!0);let In="";const xe=Ht.getFieldsValue();Da.current?In=yield(0,y.ZP)(`/api/problems/${Da.current}.json`,{method:"put",body:nt(Xe({},xe),{hack:nt(Xe({},xe==null?void 0:xe.hack),{sub_discipline_id:(Mn=(At=xe==null?void 0:xe.hack)==null?void 0:At.sub_discipline_id)==null?void 0:Mn[1],difficult:xe.difficulty,item_banks_group_id:xe.item_banks_group_id}),hack_codes:nt(Xe({},xe.hack_codes),{code:a.Base64.encode(xe.hack_codes.code)}),update_hack_sets:[Xe({},xe.hack_sets)],is_blank:!0})}):(In=yield(0,y.ZP)("/api/problems.json",{method:"post",body:nt(Xe({},xe),{hack:nt(Xe({},xe==null?void 0:xe.hack),{sub_discipline_id:(Br=(Ja=xe==null?void 0:xe.hack)==null?void 0:Ja.sub_discipline_id)==null?void 0:Br[1],difficult:xe.difficulty,item_banks_group_id:xe.item_banks_group_id}),hack_codes:nt(Xe({},xe.hack_codes),{code:a.Base64.encode(xe.hack_codes.code)}),hack_sets:[Xe({},xe.hack_sets)],is_blank:!0})}),Da.current=In==null?void 0:In.identifier,sessionStorage.projectFill=In==null?void 0:In.identifier)}const kn=yield(0,y.ZP)(`/api/problems/${Da.current}/start.json`,{method:"get"});if((kn==null?void 0:kn.status)===0){en.current=kn==null?void 0:kn.identifier,ht.current=!0,$t(!1),ya();return}$t(!1)}),ra=Qn=>{const{status:Ya,error_msg:Ra,execute_time:Ja,output:Br,input:At,expected_output:Mn}=Qn;let kn=null;switch(Ya){case ie.h.OK:kn=ge.createElement(ge.Fragment,null,ge.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Ja/1e3,"\u79D2"),ge.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case ie.h.NOMATCH:kn=ge.createElement(ge.Fragment,null,ge.createElement("div",null,"\u8F93\u5165\uFF1A"),ge.createElement("pre",{style:{fontFamily:"initial"}},At),ge.createElement("div",null,"\u8F93\u51FA\uFF1A"),ge.createElement("pre",{style:{fontFamily:"initial"}},Br&&a.Base64.decode(Br)),ge.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),ge.createElement("pre",{style:{fontFamily:"initial"}},Mn&&a.Base64.decode(Mn)));break;case ie.h.EXECUTEFAILURE:kn=ge.createElement(ge.Fragment,null,ge.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ge.createElement("pre",null,At)),ge.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ge.createElement("pre",{className:"error"},a.Base64.decode(Ra)));break;case ie.h.COMPILEFAILURE:kn=ge.createElement(ge.Fragment,null,ge.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ge.createElement("pre",null,At)),ge.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ge.createElement("pre",{className:"error"},a.Base64.decode(Ra)));break;case ie.h.PODFAILURE:kn=ge.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case ie.h.TIMEOUT:kn=ge.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return ge.createElement(ge.Fragment,null," ",kn," ")};return ge.createElement("div",null,ge.createElement(le.ZP,nt(Xe({loading:jn},ot),{onClick:Ka}),Bt),ge.createElement(Ie.default,{open:ma,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Kn,cancelButtonProps:{style:{display:"none"}},onOk:()=>aa(),onCancel:()=>{ht.current=!1,Wn(!1)}},ge.createElement("div",{className:x.result},ge.createElement("div",{className:x.left},ge.createElement("div",{className:"mb20"},ge.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!Mt&&ge.createElement(re.CopyToClipboard,{text:mn,onCopy:()=>Ve.ZP.success("\u590D\u5236\u6210\u529F")},ge.createElement("span",{style:{float:"right"},className:"current c-light-primary"},ge.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),ge.createElement(ne.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:mn,onChange:Qn=>En(Qn)})),ge.createElement("div",{className:x.right},ge.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),ge.createElement("div",{className:x.box},ge.createElement("div",{className:x.li},ge.createElement(he.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:Ma,onChange:Qn=>Sa(Qn.target.value),bordered:!1,style:{height:180}}))),ge.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),ge.createElement("div",{className:x.box},ge.createElement(E.Z,{spinning:Kn,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},ge.createElement("div",{className:x.li,style:{height:196,overflow:"auto",padding:10}},ra(Ca))))))))},wt=oe(87169),ut=oe(59301),Yt=Object.defineProperty,ln=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,Wt=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Et=(ot,Bt,Ht)=>Bt in ot?Yt(ot,Bt,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):ot[Bt]=Ht,Gt=(ot,Bt)=>{for(var Ht in Bt||(Bt={}))Qe.call(Bt,Ht)&&Et(ot,Ht,Bt[Ht]);if(Wt)for(var Ht of Wt(Bt))Me.call(Bt,Ht)&&Et(ot,Ht,Bt[Ht]);return ot},vt=(ot,Bt)=>ln(ot,Nt(Bt)),Dt=(ot,Bt)=>{var Ht={};for(var St in ot)Qe.call(ot,St)&&Bt.indexOf(St)<0&&(Ht[St]=ot[St]);if(ot!=null&&Wt)for(var St of Wt(ot))Bt.indexOf(St)<0&&Me.call(ot,St)&&(Ht[St]=ot[St]);return Ht};const{TextArea:Ae}=he.default,dt=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],un=({value:ot,onChange:Bt})=>ut.createElement(Switch,{checked:ot,onChange:Ht=>{Bt(Ht)}}),ct="@\u2581@",et="@\u2581\u2581@",bn=({questionTitlePlaceholder:ot,form:Bt,scoreByBlank:Ht=!1,hackidentifier:St,answerKey:Tn})=>{const[Mt,Kn]=(0,b.useState)(!1),[wn,jn]=(0,b.useState)(!1),ma=(0,Oe.useParams)().type==="edit",Wn=(en,ht)=>{const hn=ht.line;let xn=0;for(let aa=0;aa{const ya=en.getRange(ht.from,ht.to);let aa=0;if(ht.text.forEach(Ka=>{aa+=Ka.split(ct).length-1}),ht.text.forEach(Ka=>{aa+=Ka.split(et).length-1}),ht.origin!=="setValue"){if(ya&&(ya.indexOf(ct)!==-1||ya.indexOf(et)!==-1)){const Ka=ya.split(ct).length-1+ya.split(et).length-1,ra=Wn(en,ht.from);if(console.log(`\u5220\u9664${Ka}\u4E2A\uFF0C \u524D\u9762\u6709${ra}\u4E2A\uFF0C\u65B0\u589E${aa}\u4E2A`),Ka>1){const Qn=Array.from({length:Ka},(Ya,Ra)=>ra+Ra);xn(Qn)}else xn(ra)}else if(aa>0){const Ka=Wn(en,ht.from);console.log(`\u65B0\u589E${aa}\u4E2A\uFF0C\u4E4B\u524D\u6709${Ka}\u4E2A`),hn(aa,Ka)}}},sn=()=>{const en=Bt.getFieldValue(Tn);Bt.setFieldsValue({[Tn]:en==null?void 0:en.map((ht,hn)=>vt(Gt({},ht),{position:hn+1}))})},mn=(0,b.useRef)(),En=(en,ht)=>{for(let hn=0;hn{Ma.current(en),sn()},Da=Be.default.useWatch(Tn,Bt);return ut.createElement("div",{className:We.Z.wrap},ut.createElement(Be.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},ut.createElement(De.h,{scrollId:"name",watch:!0,height:140})),ut.createElement("div",{className:We.Z.questionTitleEditorWrap},ut.createElement(Be.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},ut.createElement(De.h,{scrollId:"name",watch:!0,height:400,hidetoolBar:!0,showNullProgramButton:!0,onChange:(en,ht)=>{const hn=Bt.getFieldValue(Tn);console.log("--preAnswerData",hn,ht),Bt.setFieldsValue({[Tn]:hn==null?void 0:hn.map((xn,ya)=>{var aa;return vt(Gt({},xn),{position:ya+1,multi_line:(aa=ht==null?void 0:ht[ya])==null?void 0:aa.multiLine})})})},placeholder:ot,onCMBeforeChange:(en,ht)=>{Ca(en,ht,En,Sa)}}))),ut.createElement(Be.default.List,{name:Tn,rules:[{validator(en,ht){if(!(ht!=null&&ht.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const hn of ht){const{answer_text:xn}=hn||{};if((xn==null?void 0:xn.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(en,{add:ht,remove:hn},{errors:xn})=>(mn.current=ht,Ma.current=hn,ut.createElement(ut.Fragment,null,ut.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},ut.createElement(Be.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),ut.createElement("div",{onClick:()=>{Ie.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:ut.createElement("div",null,ut.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",ut.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),ut.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},ut.createElement(wt.Z,{style:{marginRight:3,color:"#3061D0"}}),ut.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),en.map((ya,aa)=>{var Ka=ya,{key:ra,name:Qn}=Ka,Ya=Dt(Ka,["key","name"]),Ra,Ja;return ut.createElement(be.Z,{className:"mb20",key:ra,align:"middle",wrap:!1},ut.createElement(Ge.Z,{flex:"0 0 auto",className:`${We.Z.blankIndex}`},"\u586B\u7A7A\u9879",aa+1),ut.createElement(Ge.Z,{flex:1},ut.createElement(be.Z,{align:"top",justify:"space-between",wrap:!1},ut.createElement(Ge.Z,null,ut.createElement(Be.default.Item,vt(Gt({},Ya),{name:[Qn,"answer_text"],noStyle:!0}),(Ra=Da==null?void 0:Da[Qn])!=null&&Ra.multi_line||(Ja=Da==null?void 0:Da[Qn])!=null&&Ja.multiLine?ut.createElement(Ae,{spellCheck:!1,style:{marginLeft:10,width:550}}):ut.createElement(he.default,{style:{marginLeft:10,width:550},className:We.Z.blankInput,size:"large",maxLength:1e3,onBlur:Br=>{}}))),Ht&&ut.createElement(Ge.Z,{flex:"224px"},ut.createElement(Be.default.Item,vt(Gt({},Ya),{name:[Qn,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),ut.createElement(Fe.Z,{size:"large",className:We.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),ut.createElement("div",{onClick:()=>Kn(!0)},ut.createElement(Be.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ut.createElement(De.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Mt}))),ut.createElement(Be.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},ut.createElement(Ye.default,{size:"large"},dt.map(en=>ut.createElement(Ye.default.Option,{key:en.title,value:en.key}," ",en.title)))),ut.createElement(Be.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},ut.createElement(Be.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},ut.createElement(Fe.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),ut.createElement("span",{className:"ml10 font14"},"\u79D2")),ut.createElement(Be.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},ut.createElement(ke.ZP.Group,{style:{marginTop:-10}},ut.createElement(ke.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),ut.createElement(ke.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),ut.createElement(ke.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),ut.createElement(Be.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),ut.createElement("div",{style:{background:"#F6F7F9",padding:15}},ut.createElement(Be.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},ut.createElement(Ae,{rows:4})),ut.createElement(Be.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},ut.createElement(Ae,{rows:4}))),ut.createElement(pt,{form:Bt,answerKey:Tn,hackIdentifier:St,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:ut.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},80815:function(_e,xt,oe){"use strict";oe.d(xt,{u:function(){return ge}});var b=oe(59301),he=oe(95237),Be=oe(43604),Ie=oe(6848),be=oe(78241),Ge=oe(44388),Fe=oe(32134),Ye=oe(12893),ke=oe(80061),De=oe(59301),Oe=Object.defineProperty,We=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,x=(fe,Pe,Ue)=>Pe in fe?Oe(fe,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):fe[Pe]=Ue,y=(fe,Pe)=>{for(var Ue in Pe||(Pe={}))E.call(Pe,Ue)&&x(fe,Ue,Pe[Ue]);if(le)for(var Ue of le(Pe))a.call(Pe,Ue)&&x(fe,Ue,Pe[Ue]);return fe},z=(fe,Pe)=>We(fe,Ve(Pe)),ne=(fe,Pe)=>{var Ue={};for(var Re in fe)E.call(fe,Re)&&Pe.indexOf(Re)<0&&(Ue[Re]=fe[Re]);if(fe!=null&&le)for(var Re of le(fe))Pe.indexOf(Re)<0&&a.call(fe,Re)&&(Ue[Re]=fe[Re]);return Ue};const re=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ie=({value:fe,onChange:Pe,choiceTextKey:Ue,answerKey:Re,index:lt,isEdit:Le,setInputActive:Ce,form:Xe,choiceOptionsPath:nt,allowChangeMode:ye,showAddIcon:gt,addItem:pt,deleteItem:wt})=>{console.log(fe,"value");const ut=(fe==null?void 0:fe[Re])===1,Yt=()=>{const Nt=Xe.getFieldValue(nt);Xe.setFieldValue(nt,Nt.map(Wt=>z(y({},Wt),{[Re]:0})))},ln=()=>{ut?Pe(z(y({},fe),{[Re]:0})):(ye||Yt(),Pe(z(y({},fe),{[Re]:1})))};return De.createElement(he.Z,{className:Ge.Z.choiceWrap,align:"middle",wrap:!1},De.createElement(Be.Z,{onClick:ln,className:`${Ge.Z.choiceIndex} ${ut?Ge.Z.activeAnswer:""}`},re[lt]),De.createElement(Be.Z,{flex:1,className:`${Ge.Z.editorWrap} ml15`,onClick:Ce},De.createElement(ke.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Le,value:fe==null?void 0:fe[Ue],onChange:Nt=>{Pe(z(y({},fe),{[Ue]:Nt}))}})),De.createElement(Be.Z,{flex:"0 0 auto",className:"ml15"},De.createElement("div",{onClick:ln,className:`${Ge.Z.setAnswerBtn} ${ut?Ge.Z.activeAnswer:""}`},ut?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),De.createElement(Be.Z,{className:Ge.Z.actionWrapper},De.createElement(Ie.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},De.createElement(Fe.Z,{className:Ge.Z.addIcon,onClick:pt,style:{visibility:gt?"visible":"hidden"}})),De.createElement(Ie.Z,{title:"\u5220\u9664"},De.createElement(Ye.Z,{className:Ge.Z.deleteIcon,onClick:wt,style:{visibility:lt>1?"visible":"hidden"}}))))},ge=({questionTitlePlaceholder:fe,titleKey:Pe,choiceKey:Ue,analysisKey:Re,choiceTextKey:lt,answerKey:Le,choiceOptionsPath:Ce,allowChangeMode:Xe=!0,form:nt,showAnalysis:ye=!0})=>{const[gt,pt]=(0,b.useState)(),[wt,ut]=(0,b.useState)(!1);return De.createElement("div",{className:Ge.Z.wrap},De.createElement("div",{className:Ge.Z.questionTitleEditorWrap},De.createElement(be.default.Item,{label:"\u9898\u5E72",name:Pe,labelCol:{span:24},rules:[{required:!0}]},De.createElement(ke.h,{scrollId:Array.isArray(Pe)?Pe.join("_"):`${Pe}`,watch:!0,height:140,placeholder:fe}))),De.createElement(be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),De.createElement(be.default.List,{name:Ue,rules:[{validator(Yt,ln){const Nt=ln.some(Qe=>Qe[Le]===1),Wt=ln.findIndex(Qe=>{var Me;return((Me=Qe[lt])==null?void 0:Me.length)<=0});return Wt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${re[Wt]}\u9009\u9879\u7684\u5185\u5BB9`)):Nt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Yt,{add:ln,remove:Nt})=>De.createElement("div",{id:Array.isArray(Ce)?Ce.join("_"):`${Ce}`},Yt.map((Wt,Qe)=>{var Me=Wt,{key:Et,name:Gt}=Me,vt=ne(Me,["key","name"]);const Dt=gt===Et,Ae=()=>{pt(Et)},dt=Qe<7&&Qe===Yt.length-1,un=()=>ln({[lt]:"",[Le]:0}),ct=()=>Nt(Gt);return De.createElement(be.default.Item,z(y({},vt),{key:Et,name:Gt,className:Ge.Z.choiceListWrap,rules:[{validator(et,bn){return bn!=null&&bn.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${re[Qe]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),De.createElement(ie,{choiceTextKey:lt,answerKey:Le,index:Qe,isEdit:Dt,setInputActive:Ae,form:nt,choiceOptionsPath:Ce,allowChangeMode:Xe,showAddIcon:dt,addItem:un,deleteItem:ct}))}),Yt.length<8&&De.createElement("div",{className:`${Ge.Z.addBtn} mb30`,onClick:()=>ln({[lt]:"",[Le]:0})},"\u6DFB\u52A0\u9009\u9879"))),ye&&De.createElement("div",{onClick:()=>ut(!0)},De.createElement(be.default.Item,{name:Re,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},De.createElement(ke.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:wt}))))}},41940:function(_e,xt,oe){"use strict";oe.d(xt,{u:function(){return Xe}});var b=oe(59301),he=oe(43418),Be=oe(95237),Ie=oe(43604),be=oe(92832),Ge=oe(6848),Fe=oe(78673),Ye=oe(78241),ke=oe(5112),De=oe(5871),Oe=oe(80061),We=oe(12893),Ve=oe(61485),le=oe(44388),E=oe(10438),a=oe(59301),x=Object.defineProperty,y=Object.defineProperties,z=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,ge=(nt,ye,gt)=>ye in nt?x(nt,ye,{enumerable:!0,configurable:!0,writable:!0,value:gt}):nt[ye]=gt,fe=(nt,ye)=>{for(var gt in ye||(ye={}))re.call(ye,gt)&&ge(nt,gt,ye[gt]);if(ne)for(var gt of ne(ye))ie.call(ye,gt)&&ge(nt,gt,ye[gt]);return nt},Pe=(nt,ye)=>y(nt,z(ye)),Ue=(nt,ye)=>{var gt={};for(var pt in nt)re.call(nt,pt)&&ye.indexOf(pt)<0&&(gt[pt]=nt[pt]);if(nt!=null&&ne)for(var pt of ne(nt))ye.indexOf(pt)<0&&ie.call(nt,pt)&&(gt[pt]=nt[pt]);return gt};const Re=({value:nt,onChange:ye})=>{const gt=wt=>{he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:le.Z.modal,onOk:()=>{const ut=[...nt];ut.splice(wt,1),ye(ut)}})},pt=()=>{const wt=[...nt];wt.push(""),ye(wt)};return a.createElement(Be.Z,{className:"ml20"},a.createElement(Ie.Z,{flex:1},nt==null?void 0:nt.map((wt,ut)=>a.createElement(Be.Z,{key:`${wt}_${ut}`,className:"mb20"},a.createElement(be.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:wt,autoSize:{maxRows:3},maxLength:1e3,onBlur:Yt=>{const ln=[...nt],Nt=Yt.target.value.trim();ln[ut]=Nt,ye(ln)}}),a.createElement(Ge.Z,{title:"\u5220\u9664"},a.createElement(We.Z,{className:le.Z.deleteIcon,style:{marginLeft:15,visibility:ut>0?"visible":"hidden"},onClick:()=>gt(ut)}))))),a.createElement(Ie.Z,null,a.createElement("div",{className:`${le.Z.addBtn}`,onClick:()=>{pt()}},"\u65B0\u589E\u7B54\u6848")))},lt=({value:nt,onChange:ye})=>{const gt=wt=>{he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:le.Z.modal,onOk:()=>{const ut=[...nt];ut.splice(wt,1),ye(ut)}})},pt=()=>{const wt=[...nt];wt.push(""),ye(wt)};return a.createElement(Be.Z,{className:"ml20"},a.createElement(Ie.Z,{flex:1},nt==null?void 0:nt.map((wt,ut)=>a.createElement(Be.Z,{key:`${wt}_${ut}`,align:"middle",className:"mb20"},a.createElement(E.Z,{value:wt,style:{flex:1},onChange:Yt=>{const ln=[...nt];ln[ut]=Yt,ye(ln)}}),a.createElement(Ge.Z,{title:"\u5220\u9664"},a.createElement(We.Z,{className:le.Z.deleteIcon,style:{marginLeft:15,visibility:ut>0?"visible":"hidden"},onClick:()=>gt(ut)}))))),a.createElement(Ie.Z,null,a.createElement("div",{className:`${le.Z.addBtn}`,onClick:()=>{pt()}},"\u65B0\u589E\u7B54\u6848")))},Le=({value:nt=!0,onChange:ye})=>a.createElement(Fe.Z,{checked:!nt,onChange:gt=>{ye(!gt)}}),Ce="\u2581",Xe=({questionTitlePlaceholder:nt,form:ye,scoreByBlank:gt=!1,answerKey:pt})=>{const[wt,ut]=(0,b.useState)(!1),Yt=(vt,Dt)=>{const Ae=Dt.line;let dt=0;for(let ct=0;ct{const un=vt.getRange(Dt.from,Dt.to);let ct=0;if(Dt.text.forEach(et=>{ct+=et.split(Ce).length-1}),Dt.origin!=="setValue"){if(un&&un.indexOf(Ce)!==-1){const et=un.split(Ce).length-1,bn=Yt(vt,Dt.from);if(console.log(`\u5220\u9664${et}\u4E2A\uFF0C \u524D\u9762\u6709${bn}\u4E2A\uFF0C\u65B0\u589E${ct}\u4E2A`),et>1){const ot=Array.from({length:et},(Bt,Ht)=>bn+Ht);dt(ot)}else dt(bn)}else if(ct>0){const et=Yt(vt,Dt.from);console.log(`\u65B0\u589E${ct}\u4E2A\uFF0C\u4E4B\u524D\u6709${et}\u4E2A`),Ae(ct,et)}}},Nt=()=>{const vt=ye.getFieldValue(pt);ye.setFieldsValue({[pt]:vt.map((Dt,Ae)=>Pe(fe({},Dt),{position:Ae+1}))})},Wt=(0,b.useRef)(),Qe=(vt,Dt)=>{for(let Ae=0;Ae{Me.current(vt),Nt()},Gt=Ye.default.useWatch(pt,ye);return a.createElement("div",{className:le.Z.wrap},a.createElement("div",{className:le.Z.questionTitleEditorWrap},a.createElement(Ye.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},a.createElement(Oe.h,{scrollId:"name",watch:!0,height:140,placeholder:nt,showNullButton:!0,onCMBeforeChange:(vt,Dt)=>{ln(vt,Dt,Qe,Et)}}))),a.createElement(Ye.default.List,{name:pt,rules:[{validator(vt,Dt){if(!(Dt!=null&&Dt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Ae of Dt){const{answer_text:dt}=Ae||{};if(dt!=null&&dt.some(un=>(un==null?void 0:un.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(vt,{add:Dt,remove:Ae},{errors:dt})=>(Wt.current=Dt,Me.current=Ae,a.createElement(a.Fragment,null,a.createElement(Ye.default.Item,{label:a.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(vt!=null&&vt.length)&&a.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),vt.map((un,ct)=>{var et=un,{key:bn,name:ot}=et,Bt=Ue(et,["key","name"]),Ht,St;return a.createElement("div",{style:{marginBottom:10},key:bn},a.createElement(Be.Z,{className:"mb20",align:"middle",wrap:!1},a.createElement(Ie.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${le.Z.blankIndex}`},"\u586B\u7A7A\u9879",ct+1),a.createElement(Ye.default.Item,Pe(fe({},Bt),{name:[ot,"model"],noStyle:!0}),a.createElement(ke.ZP.Group,{onChange:()=>{const Tn=ye.getFieldValue(pt);ye.setFieldsValue({[pt]:Tn.map((Mt,Kn)=>Pe(fe({},Mt),{answer_text:ot===Kn?[""]:Mt.answer_text}))})}},a.createElement(ke.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",a.createElement(Ge.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},a.createElement(Ve.Z,null))),a.createElement(ke.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",a.createElement(Ge.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},a.createElement(Ve.Z,null)))))),a.createElement(Be.Z,{style:{marginLeft:20},align:"middle",wrap:!1},a.createElement(Ie.Z,{flex:1},a.createElement(Be.Z,{align:"top",justify:"space-between",wrap:!1},a.createElement(Ie.Z,{flex:1},a.createElement(Ye.default.Item,Pe(fe({},Bt),{name:[ot,"answer_text"],noStyle:!0}),((St=(Ht=ye.getFieldValue(pt))==null?void 0:Ht[ot])==null?void 0:St.model)===1?a.createElement(Re,null):a.createElement(lt,null))),gt&&a.createElement(Ie.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},a.createElement(Ye.default.Item,Pe(fe({},Bt),{name:[ot,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:le.Z.blankInputNumberWrapper}),a.createElement(De.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),a.createElement(Ye.default.Item,Pe(fe({},Bt),{name:[ot,"position"],noStyle:!0}),a.createElement(be.default,{type:"hidden"})))))})))),a.createElement(Be.Z,{align:"middle"},a.createElement(Ye.default.Item,{name:"downcase",valuePropName:"checked"},a.createElement(Fe.Z,null)),a.createElement(Ie.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),a.createElement(Be.Z,{align:"middle"},a.createElement(Ye.default.Item,{name:"no_space",valuePropName:"checked"},a.createElement(Fe.Z,null)),a.createElement(Ie.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Gt==null?void 0:Gt.length)>1&&a.createElement(Be.Z,{align:"middle",className:(Gt==null?void 0:Gt.length)>1?"mb30":`${le.Z.hide}`},a.createElement(Ye.default.Item,{name:"is_ordered"},a.createElement(Le,null)),a.createElement(Ie.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),a.createElement("div",{onClick:()=>ut(!0)},a.createElement(Ye.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},a.createElement(Oe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:wt}))))}},48700:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return ne}});var b=oe(59301),he=oe(95237),Be=oe(43604),Ie=oe(78241),be=oe(44388),Ge=oe(80061),Fe=oe(59301),Ye=Object.defineProperty,ke=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,le=(re,ie,ge)=>ie in re?Ye(re,ie,{enumerable:!0,configurable:!0,writable:!0,value:ge}):re[ie]=ge,E=(re,ie)=>{for(var ge in ie||(ie={}))We.call(ie,ge)&&le(re,ge,ie[ge]);if(Oe)for(var ge of Oe(ie))Ve.call(ie,ge)&&le(re,ge,ie[ge]);return re},a=(re,ie)=>ke(re,De(ie)),x=(re,ie)=>{var ge={};for(var fe in re)We.call(re,fe)&&ie.indexOf(fe)<0&&(ge[fe]=re[fe]);if(re!=null&&Oe)for(var fe of Oe(re))ie.indexOf(fe)<0&&Ve.call(re,fe)&&(ge[fe]=re[fe]);return ge};const y={\u6B63\u786E:"T",\u9519\u8BEF:"F"},z=({value:re,onChange:ie,form:ge})=>{const fe=(re==null?void 0:re.is_answer)===1,Pe=re==null?void 0:re.choice_text,Ue=()=>{const Re=ge.getFieldsValue().choices.map(lt=>({choice_text:lt.choice_text,is_answer:0}));ge.setFieldsValue({choices:Re}),ie(a(E({},re),{is_answer:1}))};return Fe.createElement(he.Z,{className:be.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},Fe.createElement(Be.Z,{onClick:Ue,className:`${be.Z.choiceIndex} ${be.Z.judgementIndex} ${fe?be.Z.activeAnswer:""}`},y[Pe]),Fe.createElement(Be.Z,{flex:1,className:`${be.Z.editorWrap} ml15`},Fe.createElement("div",{className:`${be.Z.inputBorder} ${be.Z.placeholder} ${fe?be.Z.activeJudgementAnswer:""}`},Pe)),Fe.createElement(Be.Z,{flex:"0 0 auto",className:"ml15"},Fe.createElement("div",{onClick:Ue,className:`${be.Z.setAnswerBtn} ${fe?be.Z.activeAnswer:""}`},fe?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},ne=({questionTitlePlaceholder:re,choiceKey:ie,form:ge})=>{const[fe,Pe]=(0,b.useState)(!1);return Fe.createElement("div",{className:be.Z.wrap},Fe.createElement("div",{className:be.Z.questionTitleEditorWrap},Fe.createElement(Ie.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Fe.createElement(Ge.h,{scrollId:"name",watch:!0,height:140,placeholder:re}))),Fe.createElement(Ie.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Fe.createElement(Ie.default.List,{name:"choices",rules:[{validator(Ue,Re){return Re.some(Le=>(Le==null?void 0:Le.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Ue=>Fe.createElement("div",{id:"choices"},Ue.map(Re=>{var lt=Re,{key:Le,name:Ce}=lt,Xe=x(lt,["key","name"]);return Fe.createElement(Ie.default.Item,a(E({},Xe),{key:Le,name:Ce,noStyle:!0}),Fe.createElement(z,{form:ge}))})))),Fe.createElement("div",{onClick:()=>Pe(!0)},Fe.createElement(Ie.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Fe.createElement(Ge.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:fe}))))}},80061:function(_e,xt,oe){"use strict";oe.d(xt,{h:function(){return E},x:function(){return a}});var b=oe(37962),he=oe(44388),Be=oe(28900),Ie=oe(59301),be=Object.defineProperty,Ge=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,Oe=(x,y,z)=>y in x?be(x,y,{enumerable:!0,configurable:!0,writable:!0,value:z}):x[y]=z,We=(x,y)=>{for(var z in y||(y={}))ke.call(y,z)&&Oe(x,z,y[z]);if(Ye)for(var z of Ye(y))De.call(y,z)&&Oe(x,z,y[z]);return x},Ve=(x,y)=>Ge(x,Fe(y)),le=(x,y)=>{var z={};for(var ne in x)ke.call(x,ne)&&y.indexOf(ne)<0&&(z[ne]=x[ne]);if(x!=null&&Ye)for(var ne of Ye(x))y.indexOf(ne)<0&&De.call(x,ne)&&(z[ne]=x[ne]);return z};const E=x=>{var y=x,{value:z,onChange:ne,scrollId:re}=y,ie=le(y,["value","onChange","scrollId"]);return Ie.createElement("div",{id:re||""},Ie.createElement(b.Z,Ve(We({},ie),{defaultValue:z,onChange:(ge,fe)=>{fe!=null&&fe.length?ne(ge,fe):ne(ge)}})))},a=({value:x,onChange:y,placeholder:z,height:ne=140,isEdit:re,miniToolbar:ie,watch:ge=!0})=>re?Ie.createElement(b.Z,{watch:ge,isFocus:!0,height:ne||void 0,placeholder:z,defaultValue:x,onChange:y,miniToolbar:ie}):Ie.createElement("div",{style:{cursor:"pointer"}},x?Ie.createElement(Be.Z,{className:he.Z.inputBorder,value:x}):Ie.createElement("div",{className:`${he.Z.inputBorder} ${he.Z.placeholder} inputBorderError`},z))},88637:function(_e,xt,oe){"use strict";oe.d(xt,{W:function(){return lt}});var b=oe(59301),he=oe(8591),Be=oe(12563),Ie=oe(78241),be=oe(78673),Ge=oe(95237),Fe=oe(43604),Ye=oe(6848),ke=oe(92832),De=oe(5871),Oe=oe(44388),We=oe(80061),Ve=oe(37962),le=oe(61485),E=Object.defineProperty,a=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,re=(Le,Ce,Xe)=>Ce in Le?E(Le,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Le[Ce]=Xe,ie=(Le,Ce)=>{for(var Xe in Ce||(Ce={}))z.call(Ce,Xe)&&re(Le,Xe,Ce[Xe]);if(y)for(var Xe of y(Ce))ne.call(Ce,Xe)&&re(Le,Xe,Ce[Xe]);return Le},ge=(Le,Ce)=>a(Le,x(Ce)),fe=(Le,Ce)=>{var Xe={};for(var nt in Le)z.call(Le,nt)&&Ce.indexOf(nt)<0&&(Xe[nt]=Le[nt]);if(Le!=null&&y)for(var nt of y(Le))Ce.indexOf(nt)<0&&ne.call(Le,nt)&&(Xe[nt]=Le[nt]);return Xe};const Pe=Le=>{var Ce=Le,{value:Xe,onChange:nt}=Ce,ye=fe(Ce,["value","onChange"]);const gt=pt=>{nt([pt])};return b.createElement(Ve.Z,ge(ie({},ye),{defaultValue:Xe==null?void 0:Xe[0],onChange:gt}))},Ue=Le=>{if(!Le)return!1;if(/^s*$/.test(Le)||Le.trim()===""){he.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Ce=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Le==="|"?(he.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Re=({value:Le=[],onClose:Ce})=>b.createElement(Be.default,{closable:!0,onClose:Ce,className:Oe.Z.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Le.join(" \u6216 "))),lt=({questionTitlePlaceholder:Le,form:Ce,showKeywords:Xe,isMustKeyWords:nt=Xe})=>{const[ye,gt]=(0,b.useState)(!1),[pt,wt]=(0,b.useState)(""),ut=Ie.default.useWatch("use_keywords",Ce),Yt=Ie.default.useWatch("question_score",Ce);return b.createElement("div",{className:Oe.Z.wrap},b.createElement("div",{className:Oe.Z.questionTitleEditorWrap},b.createElement(Ie.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},b.createElement(We.h,{scrollId:"name",watch:!0,height:140,placeholder:Le}))),b.createElement(Ie.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},b.createElement(Pe,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Xe&&!nt&&b.createElement(Ie.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},b.createElement(be.Z,{defaultChecked:!0})),Xe&&nt&&b.createElement(Ge.Z,{align:"middle",className:"mb30"},b.createElement(Ie.default.Item,{name:"use_keywords",valuePropName:"checked"},b.createElement(be.Z,null)),b.createElement(Fe.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(Fe.Z,null,b.createElement(Ye.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(le.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(ut||!nt)&&b.createElement(Ie.default.List,{name:"keywords",rules:[{validator(ln,Nt){return nt?Nt!=null&&Nt.length?(Nt==null?void 0:Nt.reduce((Qe,Me)=>Qe+Me.score,0))>parseFloat(Yt)?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()}}]},(ln,{add:Nt,remove:Wt})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${Oe.Z.title} mb10`},nt?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(Ge.Z,{align:"middle",className:"font14 mb30"},b.createElement(Fe.Z,{flex:1},b.createElement(ke.default,{value:pt,onChange:Qe=>{wt(Qe.target.value)},maxLength:50,allowClear:!0,onPressEnter:Qe=>{var Me,Et,Gt,vt;const Dt=`${(Me=Qe.target)==null?void 0:Me.value}`,Ae=(Gt=(Et=Dt==null?void 0:Dt.split("|"))==null?void 0:Et.filter(ct=>!!ct))==null?void 0:Gt.map(ct=>ct==null?void 0:ct.trim()),dt=Ce.getFieldValue("keywords"),un=((vt=dt==null?void 0:dt.map(ct=>ct==null?void 0:ct.keyword))==null?void 0:vt.flat())||[];for(const ct of Ae)if(un.includes(ct)){he.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Ue(Dt)&&(Nt({keyword:Ae,score:1}),wt(""))},className:Oe.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(Fe.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),ln.map(Qe=>{var Me=Qe,{key:Et,name:Gt}=Me,vt=fe(Me,["key","name"]);return b.createElement(Ge.Z,{key:Et,className:"mb20",style:{marginRight:148}},b.createElement(Fe.Z,{flex:1},b.createElement(Ge.Z,{align:"middle",justify:"space-between"},b.createElement(Ie.default.Item,ge(ie({},vt),{name:[Gt,"keyword"]}),b.createElement(Re,{onClose:()=>Wt(Gt)})),nt&&b.createElement(Ie.default.Item,ge(ie({},vt),{name:[Gt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Oe.Z.blankInputNumberWrapper}),b.createElement(De.Z,{className:Oe.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>gt(!0)},b.createElement(Ie.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(We.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ye}))))}},24417:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return be}});var b={text:"text___bQulM",sup:"sup___rX_Y3"},he=oe(78241),Be=oe(59301),be=({text:Ge,name:Fe="question_score"})=>{const Ye=({value:ke})=>Be.createElement("div",{className:b.text},Be.createElement("span",{className:b.sup},"*"),Be.createElement("span",{className:"mr10"},"\u5206\u503C"),Be.createElement("span",null,ke||"--"),Be.createElement("span",{className:"c-grey-999"},Ge));return Be.createElement(he.default.Item,{noStyle:!0,name:Fe},Be.createElement(Ye,null))}},8738:function(_e,xt,oe){"use strict";oe.d(xt,{h:function(){return re}});var b=oe(59301),he=oe(57809),Be=oe(78241),Ie=oe(3113),be=oe(89780),Ge=oe.n(be),Fe=oe(42741),Ye=oe(27494),ke=Object.defineProperty,De=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,E=(ie,ge,fe)=>ge in ie?ke(ie,ge,{enumerable:!0,configurable:!0,writable:!0,value:fe}):ie[ge]=fe,a=(ie,ge)=>{for(var fe in ge||(ge={}))Ve.call(ge,fe)&&E(ie,fe,ge[fe]);if(We)for(var fe of We(ge))le.call(ge,fe)&&E(ie,fe,ge[fe]);return ie},x=(ie,ge)=>De(ie,Oe(ge));const y=he.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},ne={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};xt.Z=({callback:ie,onCancel:ge})=>{const[fe,Pe]=(0,b.useState)("python");function Ue(lt){Pe(ne[lt][1])}function Re(lt){ie(lt)}return b.createElement(Be.default,x(a({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Re,style:{width:500}}),b.createElement(Be.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},b.createElement(he.default,{getPopupContainer:lt=>lt.parentNode,onChange:Ue},Object.keys(ne).map(lt=>b.createElement(y,{key:lt,value:lt},ne[lt][0])))),b.createElement(Be.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},b.createElement(re,{mode:fe})),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Ie.ZP,{type:"ghost",onClick:ge},"\u53D6\u6D88")))};function re({value:ie,onChange:ge,mode:fe,options:Pe={}}){const Ue=(0,b.useRef)(),[Re,lt]=(0,b.useState)();return(0,b.useEffect)(()=>{if(Re){let Le=function(Ce){const Xe=Ce.getValue();ge&&ge(Xe)};return Re.on("change",Le),()=>{Re.off("change",Le)}}},[Re,ge]),(0,b.useEffect)(()=>{Re&&Re.setOption("mode",fe)},[Re,fe]),(0,b.useEffect)(()=>{Re&&(ie!==Re.getValue()||ie==="")&&setTimeout(()=>{Re.setValue(ie||"")},300)},[Re,ie]),(0,b.useEffect)(()=>{if(Ue.current&&!Re){const Le=Ge().fromTextArea(Ue.current,a({mode:fe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Pe));lt(Le)}},[Ue.current,Re]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:Ue}))}},37962:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return An}});var b=oe(59301),he=oe(89780),Be=oe.n(he),Ie=oe(76374),be=oe(42741),Ge=oe(6313),Fe=oe(25717),Ye=oe(99498),ke=oe(25419),De=oe(67549),Oe=oe(28900),We=({value:je="",className:Ke,showTextOnly:He,showLines:Rt,style:dn={}})=>{const cn=(0,b.useMemo)(()=>"",[je]);return b.createElement(b.Fragment,null,b.createElement("div",{dangerouslySetInnerHTML:{__html:cn}}))},Ve=oe(59301),le=Object.defineProperty,E=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ne=(je,Ke,He)=>Ke in je?le(je,Ke,{enumerable:!0,configurable:!0,writable:!0,value:He}):je[Ke]=He,re=(je,Ke)=>{for(var He in Ke||(Ke={}))y.call(Ke,He)&&ne(je,He,Ke[He]);if(x)for(var He of x(Ke))z.call(Ke,He)&&ne(je,He,Ke[He]);return je},ie=(je,Ke)=>E(je,a(Ke));let ge=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function fe({onActionCallback:je,title:Ke,icon:He,actionName:Rt,className:dn="",children:cn}){function qn(){je(Rt)}return Ve.createElement("a",{title:Ke,className:dn,onClick:qn},Ve.createElement("i",{className:`${He}`}),cn)}var Pe=({watch:je,showNullButton:Ke,showNullProgramButton:He,onActionCallback:Rt,fullScreen:dn,insertTemp:cn,hidetoolBar:qn,extraUse:Un})=>{const vn=[...ge,{title:`${je?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${je?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ve.createElement("ul",{className:"markdown-toolbar-container"},!qn&&vn.map((Jn,Ea)=>Ve.createElement("li",{key:Ea},Jn.actionName?Ve.createElement(fe,ie(re({},Jn),{onActionCallback:Rt})):Ve.createElement("span",{className:"v-line"}))),Ke?Ve.createElement("li",null,Ve.createElement(fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Rt},Ve.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,He?Ve.createElement(Ve.Fragment,null,Ve.createElement("li",null,Ve.createElement(fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Rt},Ve.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ve.createElement("li",null,Ve.createElement(fe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Rt},Ve.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,cn&&Ve.createElement("li",null,Ve.createElement(fe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${cn}`,onActionCallback:Rt},Ve.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Un&&Ve.createElement("li",null,Un),Ve.createElement("li",{className:"btn-full-screen"},Ve.createElement(fe,{icon:`${dn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:dn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Rt})))},Ue=oe(23252),Re=oe(78241),lt=oe(92832),Le=oe(3113),Ce=Object.defineProperty,Xe=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,wt=(je,Ke,He)=>Ke in je?Ce(je,Ke,{enumerable:!0,configurable:!0,writable:!0,value:He}):je[Ke]=He,ut=(je,Ke)=>{for(var He in Ke||(Ke={}))gt.call(Ke,He)&&wt(je,He,Ke[He]);if(ye)for(var He of ye(Ke))pt.call(Ke,He)&&wt(je,He,Ke[He]);return je},Yt=(je,Ke)=>Xe(je,nt(Ke));const ln={labelCol:{span:4},wrapperCol:{span:20}};var Nt=({callback:je,onCancel:Ke})=>{function He(Rt){je(Rt)}return b.createElement(Re.default,Yt(ut({},ln),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:He,style:{width:500}}),b.createElement(Re.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},b.createElement(lt.default,null)),b.createElement(Re.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},b.createElement(lt.default,null)),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Le.ZP,{type:"ghost",onClick:Ke},"\u53D6\u6D88")))},Wt=oe(8738),Qe=oe(30315),Me=oe(43418),Et=oe(95237),Gt=oe(94094),vt=oe(59301),Dt=({callback:je,onCancel:Ke})=>{const He=document.createElement("canvas"),Rt=He.getContext("2d");He.width=1e3,He.height=800,Rt.fillStyle="#ffffff",Rt.fillRect(0,0,He.width,He.height);const dn=He.toDataURL("image/png");return vt.createElement(Me.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},vt.createElement(Et.Z,{style:{height:"100vh"}},vt.createElement(Gt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:dn,visible:!0,title:String(Date.now())},onOk:cn=>{je({src:cn.url})},onClose:Ke})))},Ae=oe(12378);function dt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(dt,go.CommandHandler),dt.prototype.canAlignSelection=function(){var je=this.diagram;return!(je===null||je.isReadOnly||je.isModelReadOnly||je.selection.count<2)},dt.prototype.alignLeft=function(){var je=this.diagram;je.startTransaction("aligning left");var Ke=1/0;je.selection.each(function(He){He instanceof go.Link||(Ke=Math.min(He.position.x,Ke))}),je.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(Ke,He.position.y))}),je.commitTransaction("aligning left")},dt.prototype.alignRight=function(){var je=this.diagram;je.startTransaction("aligning right");var Ke=-1/0;je.selection.each(function(He){if(!(He instanceof go.Link)){var Rt=He.actualBounds.x+He.actualBounds.width;Ke=Math.max(Rt,Ke)}}),je.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(Ke-He.actualBounds.width,He.position.y))}),je.commitTransaction("aligning right")},dt.prototype.alignTop=function(){var je=this.diagram;je.startTransaction("alignTop");var Ke=1/0;je.selection.each(function(He){He instanceof go.Link||(Ke=Math.min(He.position.y,Ke))}),je.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(He.position.x,Ke))}),je.commitTransaction("alignTop")},dt.prototype.alignBottom=function(){var je=this.diagram;je.startTransaction("aligning bottom");var Ke=-1/0;je.selection.each(function(He){if(!(He instanceof go.Link)){var Rt=He.actualBounds.y+He.actualBounds.height;Ke=Math.max(Rt,Ke)}}),je.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(He.actualBounds.x,Ke-He.actualBounds.height))}),je.commitTransaction("aligning bottom")},dt.prototype.alignCenterX=function(){var je=this.diagram,Ke=je.selection.first();if(Ke){je.startTransaction("aligning Center X");var He=Ke.actualBounds.x+Ke.actualBounds.width/2;je.selection.each(function(Rt){Rt instanceof go.Link||Rt.move(new go.Point(He-Rt.actualBounds.width/2,Rt.actualBounds.y))}),je.commitTransaction("aligning Center X")}},dt.prototype.alignCenterY=function(){var je=this.diagram,Ke=je.selection.first();if(Ke){je.startTransaction("aligning Center Y");var He=Ke.actualBounds.y+Ke.actualBounds.height/2;je.selection.each(function(Rt){Rt instanceof go.Link||Rt.move(new go.Point(Rt.actualBounds.x,He-Rt.actualBounds.height/2))}),je.commitTransaction("aligning Center Y")}},dt.prototype.alignColumn=function(je){var Ke=this.diagram;Ke.startTransaction("align Column"),je===void 0&&(je=0),je=parseFloat(je);var He=new Array;Ke.selection.each(function(Un){Un instanceof go.Link||He.push(Un)});for(var Rt=0;Rt0){for(var Un=cn.elt(qn-1);Un!==null&&Un.isTreeExpanded&&!Un.isTreeLeaf;){var vn=this._sortTreeChildrenByY(Un);Un=vn.last()}Un!==null&&je.select(Un)}else je.select(dn)}}else if(He.key==="Down")if(Ke.isTreeExpanded&&!Ke.isTreeLeaf){var Rt=this._sortTreeChildrenByY(Ke).first();Rt!==null&&je.select(Rt)}else for(;Ke!==null;){var dn=Ke.findTreeParentNode();if(dn===null)break;var cn=this._sortTreeChildrenByY(dn),qn=cn.indexOf(Ke);if(qncn.y?1:dn.xcn.x?1:0}),Ke},dt.prototype.copyToClipboard=function(je){go.CommandHandler.prototype.copyToClipboard.call(this,je),this._lastPasteOffset.set(this.pasteOffset)},dt.prototype.pasteFromClipboard=function(){var je=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(je,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),je},Object.defineProperty(dt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(je){if(je!=="move"&&je!=="select"&&je!=="scroll"&&je!=="tree"&&je!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+je);this._arrowKeyBehavior=je}}),Object.defineProperty(dt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(je){if(!(je instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+je);this._pasteOffset.set(je)}});var un=dt,ct=oe(64242),et=oe(43604),bn=oe(23789),ot={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Bt=oe(59301),Ht=(je,Ke,He)=>new Promise((Rt,dn)=>{var cn=vn=>{try{Un(He.next(vn))}catch(Jn){dn(Jn)}},qn=vn=>{try{Un(He.throw(vn))}catch(Jn){dn(Jn)}},Un=vn=>vn.done?Rt(vn.value):Promise.resolve(vn.value).then(cn,qn);Un((He=He.apply(je,Ke)).next())});function St({onCancel:je,callback:Ke}){let He=(0,b.useRef)(),Rt=(0,b.useRef)(),dn=(0,b.useRef)(),cn=(0,b.useRef)(!1);const qn=(0,b.useRef)(!1),[Un,vn]=(0,b.useState)(0);function Jn(){const zt=Ae.bx.make,_n={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};He.current=new Ae.S0(Rt.current,{padding:20,grid:zt(Ae.s_,"Grid",zt(Ae.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),zt(Ae.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Jt=>{var Ln=Jt.diagram.commandHandler.addTopLevelParts(Jt.diagram.selection,!0);Ln||Jt.diagram.currentTool.doCancel()},commandHandler:zt(un),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Jt=>{var Ln=Jt.subject;Ln.location=Ln.location.copy().snapToGridPoint(Jt.diagram.grid.gridOrigin,Jt.diagram.grid.gridCellSize),setTimeout(()=>{Jt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Jt=>{var Ln=Jt.subject;setTimeout(()=>{Jt.diagram.commandHandler.editTextBlock()})},LinkRelinked:Jt=>{var Ln=Jt.parameter.part;Ln.invalidateConnectedLinks();var ea=Jt.subject;Jt.diagram.toolManager.linkingTool.isForwards?ea.toNode.invalidateConnectedLinks():ea.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),He.current.nodeTemplate=zt(Ae.NB,"Auto",{locationSpot:Ae.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ae.$u(120,60),minSize:new Ae.$u(40,40),resizable:!0,resizeCellSize:new Ae.$u(10,10),rotatable:!0},new Ae.KX("location","loc",Ae.E9.parse).makeTwoWay(Ae.E9.stringify),new Ae.KX("desiredSize","size",Ae.$u.parse).makeTwoWay(Ae.$u.stringify),zt(Ae.bn,{name:"SHAPE",fill:_n.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ae.z6.AllSides,toSpot:Ae.z6.AllSides},new Ae.KX("figure"),new Ae.KX("fill"),new Ae.KX("stroke","borderColor"),new Ae.KX("strokeWidth","thickness"),new Ae.KX("strokeDashArray","dash")),zt(Ae.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),zt(Ae.al,{margin:1,textAlign:"center",overflow:Ae.al.OverflowEllipsis,editable:!0},new Ae.KX("text").makeTwoWay(),new Ae.KX("stroke","color"))),He.current.nodeTemplate.toolTip=zt("ToolTip",zt(Ae.s_,"Vertical",{maxSize:new Ae.$u(200,NaN)},zt(Ae.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ae.KX("text")),zt(Ae.al,{font:"10pt sans-serif",textAlign:"center"},new Ae.KX("text","details"))));function Je(Jt,Ln){var ea=(yn,Ta)=>{yn.handled=!0,yn.diagram.model.commit(Pa=>{var Va=Ta.part.adornedPart,dr=new Ae.E9().setRectSpot(Va.actualBounds,Jt);dr.subtract(Va.location),dr.scale(2,2),dr.x+=Math.sign(dr.x)*130,dr.y+=Math.sign(dr.y)*130,dr.add(Va.location),dr.snapToGridPoint(yn.diagram.grid.gridOrigin,yn.diagram.grid.gridCellSize);var Er=Pa.copyNodeData(Va.data);Pa.setGroupKeyForNodeData(Er,Pa.getGroupKeyForNodeData(Va.data)),Pa.addNodeData(Er);var Mr={from:Va.key,to:Pa.getKeyForNodeData(Er)};Pa.addLinkData(Mr);var hr=yn.diagram.findNodeForData(Er);hr.location=dr,yn.diagram.select(hr),setTimeout(()=>{yn.diagram.commandHandler.editTextBlock()},20)})};return zt(Ae.bn,{figure:Ln,alignment:Jt,alignmentFocus:Jt.opposite(),width:Jt.equals(Ae.z6.Top)||Jt.equals(Ae.z6.Bottom)?25:18,height:Jt.equals(Ae.z6.Top)||Jt.equals(Ae.z6.Bottom)?18:25,fill:"orange",stroke:_n.white,strokeWidth:4,mouseEnter:(yn,Ta)=>Ta.fill="dodgerblue",mouseLeave:(yn,Ta)=>Ta.fill="orange",isActionable:!0,click:ea,contextClick:ea})}function Ut(Jt){return zt(Ae.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Ln,ea)=>ea.fill="dodgerblue",mouseLeave:(Ln,ea)=>ea.fill="orange",click:(Ln,ea)=>{Ln.diagram.commandHandler.showContextMenu(ea.part.adornedPart)}},Jt||{})}He.current.nodeTemplate.selectionAdornmentTemplate=zt(Ae.uz,"Spot",zt(Ae.Vm,{padding:10}),Je(Ae.z6.Top,"TriangleUp"),Je(Ae.z6.Left,"TriangleLeft"),Je(Ae.z6.Right,"TriangleRight"),Je(Ae.z6.Bottom,"TriangleDown"),Ut({alignment:new Ae.z6(.75,0)}));function Dn(Jt,Ln){return(ea,yn)=>{ea.handled=!0,ea.diagram.model.commit(Ta=>{Ta.set(yn.part.adornedPart.data,Jt,Ln)})}}function tt(Jt,Ln){return Ln||(Ln="color"),zt(Ae.bn,{width:16,height:16,stroke:"lightgray",fill:Jt,margin:1,background:"transparent",mouseEnter:(ea,yn)=>yn.stroke="dodgerblue",mouseLeave:(ea,yn)=>yn.stroke="lightgray",click:Dn(Ln,Jt),contextClick:Dn(Ln,Jt)})}function Xn(){return[zt("ContextMenuButton",zt(Ae.s_,"Horizontal",tt(_n.white,"fill"),tt(_n.beige,"fill"),tt(_n.extralightblue,"fill"),tt(_n.extralightred,"fill"))),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",tt(_n.lightgray,"fill"),tt(_n.lightgreen,"fill"),tt(_n.lightblue,"fill"),tt(_n.lightred,"fill")))]}function Rn(){return[zt("ContextMenuButton",zt(Ae.s_,"Horizontal",tt(_n.black),tt(_n.green),tt(_n.blue),tt(_n.red))),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",tt(_n.white),tt(_n.magenta),tt(_n.purple),tt(_n.orange)))]}function ca(Jt,Ln){return Ln||(Ln="thickness"),zt(Ae.bn,"LineH",{width:16,height:16,strokeWidth:Jt,margin:1,background:"transparent",mouseEnter:(ea,yn)=>yn.background="dodgerblue",mouseLeave:(ea,yn)=>yn.background="transparent",click:Dn(Ln,Jt),contextClick:Dn(Ln,Jt)})}function Vn(Jt,Ln){return Ln||(Ln="dash"),zt(Ae.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Jt,margin:1,background:"transparent",mouseEnter:(ea,yn)=>yn.background="dodgerblue",mouseLeave:(ea,yn)=>yn.background="transparent",click:Dn(Ln,Jt),contextClick:Dn(Ln,Jt)})}function Za(){return[zt("ContextMenuButton",zt(Ae.s_,"Horizontal",ca(1),ca(2),ca(3),ca(4))),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",Vn(null),Vn([2,4]),Vn([4,4])))]}function sa(Jt,Ln){return Ln||(Ln="figure"),zt(Ae.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Jt,margin:1,background:"transparent",mouseEnter:(ea,yn)=>yn.fill="dodgerblue",mouseLeave:(ea,yn)=>yn.fill="lightgray",click:Dn(Ln,Jt),contextClick:Dn(Ln,Jt)})}He.current.nodeTemplate.contextMenu=zt("ContextMenu",zt("ContextMenuButton",zt(Ae.s_,"Horizontal",sa("Rectangle"),sa("RoundedRectangle"),sa("Ellipse"),sa("Diamond"))),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",sa("Parallelogram2"),sa("ManualOperation"),sa("Procedure"),sa("Cylinder1"))),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",sa("Terminator"),sa("CreateRequest"),sa("Document"),sa("TriangleDown"))),Xn(),Rn(),Za()),He.current.groupTemplate=zt(Ae.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ae.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Jt,Ln)=>{var ea=Ln.addMembers(Ln.diagram.selection,!0);ea||Ln.diagram.currentTool.doCancel()},avoidable:!1},new Ae.KX("location","loc",Ae.E9.parse).makeTwoWay(Ae.E9.stringify),zt(Ae.s_,"Auto",{name:"BODY"},zt(Ae.bn,{parameter1:10,fill:_n.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ae.z6.AllSides,toSpot:Ae.z6.AllSides},new Ae.KX("fill"),new Ae.KX("stroke","color"),new Ae.KX("strokeWidth","thickness"),new Ae.KX("strokeDashArray","dash")),zt(Ae.Vm,{background:"transparent",margin:20})),zt(Ae.al,{alignment:Ae.z6.Top,alignmentFocus:Ae.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ae.KX("text"),new Ae.KX("stroke","color"))),He.current.groupTemplate.selectionAdornmentTemplate=zt(Ae.uz,"Spot",zt(Ae.s_,"Auto",zt(Ae.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),zt(Ae.Vm,{margin:1.5})),Ut({alignment:Ae.z6.TopRight,alignmentFocus:Ae.z6.BottomRight})),He.current.groupTemplate.contextMenu=zt("ContextMenu",Xn(),Rn(),Za()),He.current.linkTemplate=zt(Ae.rU,{layerName:"Foreground",routing:Ae.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ae.KX("fromSpot","fromSpot",Ae.z6.parse),new Ae.KX("toSpot","toSpot",Ae.z6.parse),new Ae.KX("fromShortLength","dir",Jt=>Jt>=1?10:0),new Ae.KX("toShortLength","dir",Jt=>Jt>=1?10:0),new Ae.KX("points").makeTwoWay(),zt(Ae.bn,{strokeWidth:2},new Ae.KX("stroke","color"),new Ae.KX("strokeWidth","thickness"),new Ae.KX("strokeDashArray","dash")),zt(Ae.bn,{segmentIndex:0,segmentOffset:new Ae.E9(15,0),segmentOrientation:Ae.rU.OrientAlong,alignmentFocus:Ae.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ae.KX("fill","color"),new Ae.KX("visible","dir",Jt=>Jt===1)),zt(Ae.bn,{segmentIndex:-1,segmentOffset:new Ae.E9(-10,6),segmentOrientation:Ae.rU.OrientPlus90,alignmentFocus:Ae.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ae.KX("fill","color"),new Ae.KX("visible","dir",Jt=>Jt>=1),new Ae.KX("width","thickness",Jt=>7+3*Jt),new Ae.KX("height","thickness",Jt=>7+3*Jt),new Ae.KX("segmentOffset","thickness",Jt=>new Ae.E9(-15,4+1.5*Jt))),zt(Ae.bn,{segmentIndex:0,segmentOffset:new Ae.E9(15,-6),segmentOrientation:Ae.rU.OrientMinus90,alignmentFocus:Ae.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ae.KX("fill","color"),new Ae.KX("visible","dir",Jt=>Jt===2),new Ae.KX("width","thickness",Jt=>7+3*Jt),new Ae.KX("height","thickness",Jt=>7+3*Jt),new Ae.KX("segmentOffset","thickness",Jt=>new Ae.E9(-15,4+1.5*Jt))),zt(Ae.al,{alignmentFocus:new Ae.z6(0,1,-4,0),editable:!0},new Ae.KX("text").makeTwoWay(),new Ae.KX("stroke","color"))),He.current.linkTemplate.selectionAdornmentTemplate=zt(Ae.uz,zt(Ae.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:_a(2)},new Ae.KX("pathPattern","thickness",_a)),Ut({alignmentFocus:new Ae.z6(0,0,-6,-4)}));function _a(Jt){return zt(Ae.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Jt+4).toString()+" H3"})}function $a(Jt){var Ln="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Jt===0?Ln="M0 0 M16 16 M0 8 L16 8":Jt===2&&(Ln="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),zt(Ae.bn,{geometryString:Ln,margin:2,background:"transparent",mouseEnter:(ea,yn)=>yn.background="dodgerblue",mouseLeave:(ea,yn)=>yn.background="transparent",click:Dn("dir",Jt),contextClick:Dn("dir",Jt)})}function gr(Jt){var Ln=(ea,yn)=>{ea.handled=!0,ea.diagram.model.commit(Ta=>{var Pa=yn.part.adornedPart;Ta.set(Pa.data,Jt?"toSpot":"fromSpot",Ae.z6.stringify(Ae.z6.AllSides)),(Jt?Pa.toNode:Pa.fromNode).invalidateConnectedLinks()})};return zt(Ae.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ea,yn)=>yn.background="dodgerblue",mouseLeave:(ea,yn)=>yn.background="transparent",click:Ln,contextClick:Ln})}function kt(Jt,Ln){var ea=0,yn=Ae.z6.RightSide;Jt.equals(Ae.z6.Top)?(ea=270,yn=Ae.z6.TopSide):Jt.equals(Ae.z6.Left)?(ea=180,yn=Ae.z6.LeftSide):Jt.equals(Ae.z6.Bottom)&&(ea=90,yn=Ae.z6.BottomSide),Ln||(ea-=180);var Ta=(Pa,Va)=>{Pa.handled=!0,Pa.diagram.model.commit(dr=>{var Er=Va.part.adornedPart;dr.set(Er.data,Ln?"toSpot":"fromSpot",Ae.z6.stringify(yn)),(Ln?Er.toNode:Er.fromNode).invalidateConnectedLinks()})};return zt(Ae.bn,{alignment:Jt,alignmentFocus:Jt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ea,background:"transparent",mouseEnter:(Pa,Va)=>Va.background="dodgerblue",mouseLeave:(Pa,Va)=>Va.background="transparent",click:Ta,contextClick:Ta})}He.current.linkTemplate.contextMenu=zt("ContextMenu",Rn(),Za(),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",$a(0),$a(1),$a(2))),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",zt(Ae.s_,"Spot",gr(!1),kt(Ae.z6.Top,!1),kt(Ae.z6.Left,!1),kt(Ae.z6.Right,!1),kt(Ae.z6.Bottom,!1)),zt(Ae.s_,"Spot",{margin:new Ae.Zt(0,0,0,2)},gr(!0),kt(Ae.z6.Top,!0),kt(Ae.z6.Left,!0),kt(Ae.z6.Right,!0),kt(Ae.z6.Bottom,!0)))));const La=`{ "class": "GraphLinksModel", +\\end{array}`}]}]}],y=re=>{E.current.setValue(E.current.getValue()+" "+re.value+" ")},z=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ke.createElement(he.Z,{className:Fe.Z.lists,gutter:[10,10]},a.map((re,ie)=>ke.createElement(Be.Z,{flex:"110px",className:Fe.Z.item},ke.createElement("div",null,ke.createElement(Ge.Z,{value:`$$${re.value}$$`}),re.name),ke.createElement("div",{className:Fe.Z.children},re.children.map((ge,fe)=>ke.createElement("div",{key:fe},ke.createElement("h1",null,ge.name),ke.createElement(he.Z,{gutter:[10,10]},ge.data.map((Pe,Ue)=>ke.createElement(Be.Z,{key:Ue,onClick:()=>y(Pe),className:Fe.Z.diamond},ke.createElement(Ge.Z,{value:"`$$"+Pe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ke.createElement(he.Z,{className:Fe.Z.lists,gutter:[10,10]},x.map((re,ie)=>ke.createElement(Be.Z,{flex:"110px",className:Fe.Z.item},ke.createElement("div",null,ke.createElement(Ge.Z,{value:"`$$"+re.value+"$$`"}),re.name),ke.createElement("div",{className:Fe.Z.children},re.children.map((ge,fe)=>ke.createElement("div",{key:fe},ge.name&&ke.createElement("h1",null,ge.name),ke.createElement(he.Z,{gutter:[10,10]},ge.data.map((Pe,Ue)=>ke.createElement(Be.Z,{key:Ue,onClick:()=>y(Pe),className:Fe.Z.diamond},ke.createElement(Ge.Z,{value:"`$$"+Pe.value+"$$`"}))))))))))}],ne=()=>{var re=document.createElement("div");re.innerHTML=E.current.getValue();var ie=re.innerText;return Oe&&Oe(ie),ie};return(0,b.useImperativeHandle)(le,()=>({getData:ne})),ke.createElement("div",{className:Fe.Z.mathWrap},ke.createElement(Ie.default,{defaultActiveKey:"1",items:z}),ke.createElement("math-field",{locale:"zh_cn",className:Fe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:E,style:{width:800,marginTop:30,fontSize:18}},Ve||""),We&&ke.createElement("div",{className:Fe.Z.button},ke.createElement(be.ZP,{size:"large",onClick:ne,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});xt.Z=De},74038:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return We}});var b=oe(59301),he=oe(78241),Be=oe(43418),Ie=oe(92832),be=oe(87169),Ge=oe(23789),Fe={publicQuest:"publicQuest___iYvzo",publicQuestContent:"publicQuestContent___vgbKh",public_tips:"public_tips___UX0Dn",concat:"concat___wOfND"},Ye=oe(76832),ke=oe(59301),De=(Ve,le,E)=>new Promise((a,x)=>{var y=re=>{try{ne(E.next(re))}catch(ie){x(ie)}},z=re=>{try{ne(E.throw(re))}catch(ie){x(ie)}},ne=re=>re.done?a(re.value):Promise.resolve(re.value).then(y,z);ne((E=E.apply(Ve,le)).next())}),We=({type:Ve="subject",open:le,onCancel:E,onOkClick:a,subDisciplineId:x})=>{const[y]=he.default.useForm(),[z,ne]=(0,b.useState)([]),[re,ie]=(0,b.useState)(!1);(0,b.useEffect)(()=>{},[]);const ge=()=>De(void 0,null,function*(){if(Ve){const fe=yield(0,Ge.ZP)("/api/disciplines.json",{method:"get",params:{source:Ve}});ne(fe.disciplines||[])}});return ke.createElement(Be.default,{title:ke.createElement("div",{style:{fontWeight:"bold"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9"),open:le,width:558,centered:!0,className:Fe.publicQuest,onCancel:()=>{E(),y.resetFields()},onOk:()=>{y.validateFields().then(fe=>De(void 0,null,function*(){const Pe=yield(0,Ge.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:fe==null?void 0:fe.name,sub_discipline_id:x}});(Pe==null?void 0:Pe.status)===0&&a({name:fe==null?void 0:fe.name,id:Pe==null?void 0:Pe.tag_discipline_id,public:!1,type:"personal"}),y.resetFields(),E()}))}},ke.createElement("div",{className:Fe.publicQuestContent},ke.createElement("div",{className:Fe.public_tips},ke.createElement(be.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"),ke.createElement(he.default,{labelAlign:"left",form:y,colon:!1},ke.createElement(he.default.Item,{label:"\u77E5\u8BC6\u70B9\u540D\u79F0",name:"name",rules:[{required:!0}]},ke.createElement(Ie.default,{showCount:!0,maxLength:20,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"}))),ke.createElement(Ye.Z,{open:re,onCancel:()=>{ie(!1)}})))}},98524:function(_e,xt,oe){"use strict";oe.d(xt,{Q:function(){return ke},Z:function(){return Oe}});var b=oe(59301),he={flex_box_center:"flex_box_center___VcCAZ",flex_space_between:"flex_space_between___I3jjO",flex_box_vertical_center:"flex_box_vertical_center___Rm_54",flex_box_center_end:"flex_box_center_end___nTsdc",flex_box_column:"flex_box_column___UVpzN",tags:"tags___kRRoe",text:"text___IyyEa",tagWrap:"tagWrap___v63mB",tag:"tag___X7wE6",c:"c___mZMPq",cpp:"cpp___eaTie",java:"java___gL98T",python:"python___eNRkk",edit:"edit___tbVu0"},Be=oe(92310),Ie=oe.n(Be),be=oe(43418),Ge=oe(8591),Fe=oe(24905),Ye=(We,Ve,le)=>new Promise((E,a)=>{var x=ne=>{try{z(le.next(ne))}catch(re){a(re)}},y=ne=>{try{z(le.throw(ne))}catch(re){a(re)}},z=ne=>ne.done?E(ne.value):Promise.resolve(ne.value).then(x,y);z((le=le.apply(We,Ve)).next())});const ke=({title:We="\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00",dataSource:Ve=[],visible:le,setVisible:E,tip:a,onOk:x})=>{const[y,z]=(0,b.useState)([]),[ne,re]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{le&&z(Ve)},[le]),b.createElement(be.default,{centered:!0,open:le,title:We,confirmLoading:ne,width:564,onOk:()=>Ye(void 0,null,function*(){if(!y.length){Ge.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}re(!0),yield x(y),re(!1)}),onCancel:()=>E(!1)},!!a&&b.createElement("div",{className:"c-grey-666 font16 mb10"},a),b.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},b.createElement(Fe.default.Group,{value:y,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:ie=>{z(ie)}})))};var Oe=({title:We="\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00",className:Ve,style:le={},onEdit:E,dataSource:a=[]})=>{const x={C:b.createElement("div",{className:he.c},"C"),"C++":b.createElement("div",{className:he.cpp},"C++"),Java:b.createElement("div",{className:he.java},"Java"),Python:b.createElement("div",{className:he.python},"Python")};return b.createElement("div",{className:Ie()(he.tags,Ve),style:le},!!We&&b.createElement("div",{className:he.text},We),b.createElement("div",{className:he.tagWrap},a==null?void 0:a.map(y=>b.createElement(b.Fragment,{key:y},x[y]))),!!E&&b.createElement("div",{onClick:E,className:`iconfont icon-bianji_Hover ${he.edit}`}))}},94827:function(_e,xt,oe){"use strict";oe.d(xt,{t:function(){return Bn}});var b=oe(59301),he=oe(92832),Be=oe(78241),Ie=oe(43418),be=oe(95237),Ge=oe(43604),Fe=oe(5871),Ye=oe(57809),ke=oe(5112),De=oe(80061),Oe=oe(6075),We=oe(44388),Ve=oe(8591),le=oe(3113),E=oe(71418),a=oe(24334),x={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},y=oe(23789),z=oe(18509),ne=oe(37962),re=oe(56102),ie=oe(78547),ge=oe(59301),fe=Object.defineProperty,Pe=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Ce=(ot,bt,zt)=>bt in ot?fe(ot,bt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):ot[bt]=zt,Xe=(ot,bt)=>{for(var zt in bt||(bt={}))lt.call(bt,zt)&&Ce(ot,zt,bt[zt]);if(Re)for(var zt of Re(bt))Le.call(bt,zt)&&Ce(ot,zt,bt[zt]);return ot},nt=(ot,bt)=>Pe(ot,Ue(bt)),ye=(ot,bt,zt)=>new Promise((St,Rn)=>{var Ot=jn=>{try{xn(zt.next(jn))}catch($t){Rn($t)}},Kn=jn=>{try{xn(zt.throw(jn))}catch($t){Rn($t)}},xn=jn=>jn.done?St(jn.value):Promise.resolve(jn.value).then(Ot,Kn);xn((zt=zt.apply(ot,bt)).next())}),pt=({buttonProps:ot,buttonText:bt,form:zt,hackIdentifier:St="",answerKey:Rn,data:Ot})=>{const[Kn,xn]=(0,b.useState)(!1),[jn,$t]=(0,b.useState)(!1),[ma,Wn]=(0,b.useState)(!1),[ba,un]=(0,b.useState)({}),[mn,En]=(0,b.useState)(""),[Oa,Sa]=(0,b.useState)(""),wa=(0,b.useRef)(St),tn=(0,b.useRef)(""),ht=(0,b.useRef)(!1);(0,b.useEffect)(()=>{ma&&ra()},[ma]),(0,b.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const Sn=()=>new Date().getTime(),Cn=Ot==null?void 0:Ot.code,ya=()=>{var Qn,Ya;let Ma=Cn?Ot==null?void 0:Ot.code:(Qn=zt.getFieldValue("hack_codes"))==null?void 0:Qn.code,Ja=Cn?Ot==null?void 0:Ot.answer_content:zt.getFieldValue(Rn),Br=Cn?Ot==null?void 0:Ot.input:(Ya=zt.getFieldValue("hack_sets"))==null?void 0:Ya.input;Ja==null||Ja.forEach(At=>{const On=At.value||At.answer_text||"";Ma=Ma.replace(/(@▁@|@▁▁@)/,On)}),Sa(Br),En(Ma),un({}),Wn(!0)},ra=()=>ye(void 0,null,function*(){var Qn,Ya,Ma,Ja;const Br=Sn(),At=Cn?Ot==null?void 0:Ot.time_limit:(Qn=zt.getFieldsValue())==null?void 0:Qn.hack.time_limit,On=Cn?(Ya=Ot==null?void 0:Ot.answer_content)==null?void 0:Ya.length:(Ja=(Ma=zt.getFieldsValue())==null?void 0:Ma.standard_answers)==null?void 0:Ja.length;xn(!0),yield(0,z.bM)(tn.current,{test_hack_code:mn,test_input:Oa});function Tn(){return ye(this,null,function*(){const{status:Ln,data:xe}=yield(0,z.rX)(tn.current,"submit"),Ft=Sn()-Br>(At+3)*1e3*On;if(ht.current){if(Ft){Ve.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),xn(!1);return}if(Ln===0){xn(!1),un(nt(Xe({},xe),{showText:!0}));return}setTimeout(Tn,1e3)}})}Tn()}),Ka=()=>ye(void 0,null,function*(){var Qn,Ya,Ma,Ja,Br,At,On;if(!Ot){try{yield zt.validateFields()}catch(ft){(Ma=(Ya=(Qn=ft==null?void 0:ft.errorFields)==null?void 0:Qn[0])==null?void 0:Ya.name)!=null&&Ma.includes("standard_answers")?Ve.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ve.ZP.error(ft.errorFields[0].errors[0]),zt.scrollToField(ft.errorFields[0].name,{behavior:"smooth",block:"center"});return}$t(!0);let Ln="";const xe=zt.getFieldsValue();wa.current?Ln=yield(0,y.ZP)(`/api/problems/${wa.current}.json`,{method:"put",body:nt(Xe({},xe),{hack:nt(Xe({},xe==null?void 0:xe.hack),{sub_discipline_id:(On=(At=xe==null?void 0:xe.hack)==null?void 0:At.sub_discipline_id)==null?void 0:On[1],difficult:xe.difficulty,item_banks_group_id:xe.item_banks_group_id}),hack_codes:nt(Xe({},xe.hack_codes),{code:a.Base64.encode(xe.hack_codes.code)}),update_hack_sets:[Xe({},xe.hack_sets)],is_blank:!0})}):(Ln=yield(0,y.ZP)("/api/problems.json",{method:"post",body:nt(Xe({},xe),{hack:nt(Xe({},xe==null?void 0:xe.hack),{sub_discipline_id:(Br=(Ja=xe==null?void 0:xe.hack)==null?void 0:Ja.sub_discipline_id)==null?void 0:Br[1],difficult:xe.difficulty,item_banks_group_id:xe.item_banks_group_id}),hack_codes:nt(Xe({},xe.hack_codes),{code:a.Base64.encode(xe.hack_codes.code)}),hack_sets:[Xe({},xe.hack_sets)],is_blank:!0})}),wa.current=Ln==null?void 0:Ln.identifier,sessionStorage.projectFill=Ln==null?void 0:Ln.identifier)}const Tn=yield(0,y.ZP)(`/api/problems/${wa.current}/start.json`,{method:"get"});if((Tn==null?void 0:Tn.status)===0){tn.current=Tn==null?void 0:Tn.identifier,ht.current=!0,$t(!1),ya();return}$t(!1)}),oa=Qn=>{const{status:Ya,error_msg:Ma,execute_time:Ja,output:Br,input:At,expected_output:On}=Qn;let Tn=null;switch(Ya){case ie.h.OK:Tn=ge.createElement(ge.Fragment,null,ge.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Ja/1e3,"\u79D2"),ge.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case ie.h.NOMATCH:Tn=ge.createElement(ge.Fragment,null,ge.createElement("div",null,"\u8F93\u5165\uFF1A"),ge.createElement("pre",{style:{fontFamily:"initial"}},At),ge.createElement("div",null,"\u8F93\u51FA\uFF1A"),ge.createElement("pre",{style:{fontFamily:"initial"}},Br&&a.Base64.decode(Br)),ge.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),ge.createElement("pre",{style:{fontFamily:"initial"}},On&&a.Base64.decode(On)));break;case ie.h.EXECUTEFAILURE:Tn=ge.createElement(ge.Fragment,null,ge.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ge.createElement("pre",null,At)),ge.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ge.createElement("pre",{className:"error"},a.Base64.decode(Ma)));break;case ie.h.COMPILEFAILURE:Tn=ge.createElement(ge.Fragment,null,ge.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ge.createElement("pre",null,At)),ge.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ge.createElement("pre",{className:"error"},a.Base64.decode(Ma)));break;case ie.h.PODFAILURE:Tn=ge.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case ie.h.TIMEOUT:Tn=ge.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return ge.createElement(ge.Fragment,null," ",Tn," ")};return ge.createElement("div",null,ge.createElement(le.ZP,nt(Xe({loading:jn},ot),{onClick:Ka}),bt),ge.createElement(Ie.default,{open:ma,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Kn,cancelButtonProps:{style:{display:"none"}},onOk:()=>ra(),onCancel:()=>{ht.current=!1,Wn(!1)}},ge.createElement("div",{className:x.result},ge.createElement("div",{className:x.left},ge.createElement("div",{className:"mb20"},ge.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!Ot&&ge.createElement(re.CopyToClipboard,{text:mn,onCopy:()=>Ve.ZP.success("\u590D\u5236\u6210\u529F")},ge.createElement("span",{style:{float:"right"},className:"current c-light-primary"},ge.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),ge.createElement(ne.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:mn,onChange:Qn=>En(Qn)})),ge.createElement("div",{className:x.right},ge.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),ge.createElement("div",{className:x.box},ge.createElement("div",{className:x.li},ge.createElement(he.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:Oa,onChange:Qn=>Sa(Qn.target.value),bordered:!1,style:{height:180}}))),ge.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),ge.createElement("div",{className:x.box},ge.createElement(E.Z,{spinning:Kn,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},ge.createElement("div",{className:x.li,style:{height:196,overflow:"auto",padding:10}},oa(ba))))))))},wt=oe(87169),ut=oe(59301),Jt=Object.defineProperty,on=Object.defineProperties,It=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Et=(ot,bt,zt)=>bt in ot?Jt(ot,bt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):ot[bt]=zt,kt=(ot,bt)=>{for(var zt in bt||(bt={}))Qe.call(bt,zt)&&Et(ot,zt,bt[zt]);if(Vt)for(var zt of Vt(bt))Me.call(bt,zt)&&Et(ot,zt,bt[zt]);return ot},vt=(ot,bt)=>on(ot,It(bt)),Dt=(ot,bt)=>{var zt={};for(var St in ot)Qe.call(ot,St)&&bt.indexOf(St)<0&&(zt[St]=ot[St]);if(ot!=null&&Vt)for(var St of Vt(ot))bt.indexOf(St)<0&&Me.call(ot,St)&&(zt[St]=ot[St]);return zt};const{TextArea:Ae}=he.default,dt=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],ln=({value:ot,onChange:bt})=>ut.createElement(Switch,{checked:ot,onChange:zt=>{bt(zt)}}),ct="@\u2581@",et="@\u2581\u2581@",Bn=({questionTitlePlaceholder:ot,form:bt,scoreByBlank:zt=!1,hackidentifier:St,answerKey:Rn})=>{const[Ot,Kn]=(0,b.useState)(!1),[xn,jn]=(0,b.useState)(!1),ma=(0,Oe.useParams)().type==="edit",Wn=(tn,ht)=>{const Sn=ht.line;let Cn=0;for(let ra=0;ra{const ya=tn.getRange(ht.from,ht.to);let ra=0;if(ht.text.forEach(Ka=>{ra+=Ka.split(ct).length-1}),ht.text.forEach(Ka=>{ra+=Ka.split(et).length-1}),ht.origin!=="setValue"){if(ya&&(ya.indexOf(ct)!==-1||ya.indexOf(et)!==-1)){const Ka=ya.split(ct).length-1+ya.split(et).length-1,oa=Wn(tn,ht.from);if(console.log(`\u5220\u9664${Ka}\u4E2A\uFF0C \u524D\u9762\u6709${oa}\u4E2A\uFF0C\u65B0\u589E${ra}\u4E2A`),Ka>1){const Qn=Array.from({length:Ka},(Ya,Ma)=>oa+Ma);Cn(Qn)}else Cn(oa)}else if(ra>0){const Ka=Wn(tn,ht.from);console.log(`\u65B0\u589E${ra}\u4E2A\uFF0C\u4E4B\u524D\u6709${Ka}\u4E2A`),Sn(ra,Ka)}}},un=()=>{const tn=bt.getFieldValue(Rn);bt.setFieldsValue({[Rn]:tn==null?void 0:tn.map((ht,Sn)=>vt(kt({},ht),{position:Sn+1}))})},mn=(0,b.useRef)(),En=(tn,ht)=>{for(let Sn=0;Sn{Oa.current(tn),un()},wa=Be.default.useWatch(Rn,bt);return ut.createElement("div",{className:We.Z.wrap},ut.createElement(Be.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},ut.createElement(De.h,{scrollId:"name",watch:!0,height:140})),ut.createElement("div",{className:We.Z.questionTitleEditorWrap},ut.createElement(Be.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},ut.createElement(De.h,{scrollId:"name",watch:!0,height:400,hidetoolBar:!0,showNullProgramButton:!0,onChange:(tn,ht)=>{const Sn=bt.getFieldValue(Rn);console.log("--preAnswerData",Sn,ht),bt.setFieldsValue({[Rn]:Sn==null?void 0:Sn.map((Cn,ya)=>{var ra;return vt(kt({},Cn),{position:ya+1,multi_line:(ra=ht==null?void 0:ht[ya])==null?void 0:ra.multiLine})})})},placeholder:ot,onCMBeforeChange:(tn,ht)=>{ba(tn,ht,En,Sa)}}))),ut.createElement(Be.default.List,{name:Rn,rules:[{validator(tn,ht){if(!(ht!=null&&ht.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Sn of ht){const{answer_text:Cn}=Sn||{};if((Cn==null?void 0:Cn.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(tn,{add:ht,remove:Sn},{errors:Cn})=>(mn.current=ht,Oa.current=Sn,ut.createElement(ut.Fragment,null,ut.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},ut.createElement(Be.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),ut.createElement("div",{onClick:()=>{Ie.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:ut.createElement("div",null,ut.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",ut.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),ut.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},ut.createElement(wt.Z,{style:{marginRight:3,color:"#3061D0"}}),ut.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),tn.map((ya,ra)=>{var Ka=ya,{key:oa,name:Qn}=Ka,Ya=Dt(Ka,["key","name"]),Ma,Ja;return ut.createElement(be.Z,{className:"mb20",key:oa,align:"middle",wrap:!1},ut.createElement(Ge.Z,{flex:"0 0 auto",className:`${We.Z.blankIndex}`},"\u586B\u7A7A\u9879",ra+1),ut.createElement(Ge.Z,{flex:1},ut.createElement(be.Z,{align:"top",justify:"space-between",wrap:!1},ut.createElement(Ge.Z,null,ut.createElement(Be.default.Item,vt(kt({},Ya),{name:[Qn,"answer_text"],noStyle:!0}),(Ma=wa==null?void 0:wa[Qn])!=null&&Ma.multi_line||(Ja=wa==null?void 0:wa[Qn])!=null&&Ja.multiLine?ut.createElement(Ae,{spellCheck:!1,style:{marginLeft:10,width:550}}):ut.createElement(he.default,{style:{marginLeft:10,width:550},className:We.Z.blankInput,size:"large",maxLength:1e3,onBlur:Br=>{}}))),zt&&ut.createElement(Ge.Z,{flex:"224px"},ut.createElement(Be.default.Item,vt(kt({},Ya),{name:[Qn,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),ut.createElement(Fe.Z,{size:"large",className:We.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),ut.createElement("div",{onClick:()=>Kn(!0)},ut.createElement(Be.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ut.createElement(De.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ot}))),ut.createElement(Be.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},ut.createElement(Ye.default,{size:"large"},dt.map(tn=>ut.createElement(Ye.default.Option,{key:tn.title,value:tn.key}," ",tn.title)))),ut.createElement(Be.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},ut.createElement(Be.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},ut.createElement(Fe.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),ut.createElement("span",{className:"ml10 font14"},"\u79D2")),ut.createElement(Be.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},ut.createElement(ke.ZP.Group,{style:{marginTop:-10}},ut.createElement(ke.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),ut.createElement(ke.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),ut.createElement(ke.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),ut.createElement(Be.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),ut.createElement("div",{style:{background:"#F6F7F9",padding:15}},ut.createElement(Be.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},ut.createElement(Ae,{rows:4})),ut.createElement(Be.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},ut.createElement(Ae,{rows:4}))),ut.createElement(pt,{form:bt,answerKey:Rn,hackIdentifier:St,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:ut.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},80815:function(_e,xt,oe){"use strict";oe.d(xt,{u:function(){return ge}});var b=oe(59301),he=oe(95237),Be=oe(43604),Ie=oe(6848),be=oe(78241),Ge=oe(44388),Fe=oe(32134),Ye=oe(12893),ke=oe(80061),De=oe(59301),Oe=Object.defineProperty,We=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,x=(fe,Pe,Ue)=>Pe in fe?Oe(fe,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):fe[Pe]=Ue,y=(fe,Pe)=>{for(var Ue in Pe||(Pe={}))E.call(Pe,Ue)&&x(fe,Ue,Pe[Ue]);if(le)for(var Ue of le(Pe))a.call(Pe,Ue)&&x(fe,Ue,Pe[Ue]);return fe},z=(fe,Pe)=>We(fe,Ve(Pe)),ne=(fe,Pe)=>{var Ue={};for(var Re in fe)E.call(fe,Re)&&Pe.indexOf(Re)<0&&(Ue[Re]=fe[Re]);if(fe!=null&&le)for(var Re of le(fe))Pe.indexOf(Re)<0&&a.call(fe,Re)&&(Ue[Re]=fe[Re]);return Ue};const re=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ie=({value:fe,onChange:Pe,choiceTextKey:Ue,answerKey:Re,index:lt,isEdit:Le,setInputActive:Ce,form:Xe,choiceOptionsPath:nt,allowChangeMode:ye,showAddIcon:gt,addItem:pt,deleteItem:wt})=>{console.log(fe,"value");const ut=(fe==null?void 0:fe[Re])===1,Jt=()=>{const It=Xe.getFieldValue(nt);Xe.setFieldValue(nt,It.map(Vt=>z(y({},Vt),{[Re]:0})))},on=()=>{ut?Pe(z(y({},fe),{[Re]:0})):(ye||Jt(),Pe(z(y({},fe),{[Re]:1})))};return De.createElement(he.Z,{className:Ge.Z.choiceWrap,align:"middle",wrap:!1},De.createElement(Be.Z,{onClick:on,className:`${Ge.Z.choiceIndex} ${ut?Ge.Z.activeAnswer:""}`},re[lt]),De.createElement(Be.Z,{flex:1,className:`${Ge.Z.editorWrap} ml15`,onClick:Ce},De.createElement(ke.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Le,value:fe==null?void 0:fe[Ue],onChange:It=>{Pe(z(y({},fe),{[Ue]:It}))}})),De.createElement(Be.Z,{flex:"0 0 auto",className:"ml15"},De.createElement("div",{onClick:on,className:`${Ge.Z.setAnswerBtn} ${ut?Ge.Z.activeAnswer:""}`},ut?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),De.createElement(Be.Z,{className:Ge.Z.actionWrapper},De.createElement(Ie.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},De.createElement(Fe.Z,{className:Ge.Z.addIcon,onClick:pt,style:{visibility:gt?"visible":"hidden"}})),De.createElement(Ie.Z,{title:"\u5220\u9664"},De.createElement(Ye.Z,{className:Ge.Z.deleteIcon,onClick:wt,style:{visibility:lt>1?"visible":"hidden"}}))))},ge=({questionTitlePlaceholder:fe,titleKey:Pe,choiceKey:Ue,analysisKey:Re,choiceTextKey:lt,answerKey:Le,choiceOptionsPath:Ce,allowChangeMode:Xe=!0,form:nt,showAnalysis:ye=!0})=>{const[gt,pt]=(0,b.useState)(),[wt,ut]=(0,b.useState)(!1);return De.createElement("div",{className:Ge.Z.wrap},De.createElement("div",{className:Ge.Z.questionTitleEditorWrap},De.createElement(be.default.Item,{label:"\u9898\u5E72",name:Pe,labelCol:{span:24},rules:[{required:!0}]},De.createElement(ke.h,{scrollId:Array.isArray(Pe)?Pe.join("_"):`${Pe}`,watch:!0,height:140,placeholder:fe}))),De.createElement(be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),De.createElement(be.default.List,{name:Ue,rules:[{validator(Jt,on){const It=on.some(Qe=>Qe[Le]===1),Vt=on.findIndex(Qe=>{var Me;return((Me=Qe[lt])==null?void 0:Me.length)<=0});return Vt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${re[Vt]}\u9009\u9879\u7684\u5185\u5BB9`)):It?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Jt,{add:on,remove:It})=>De.createElement("div",{id:Array.isArray(Ce)?Ce.join("_"):`${Ce}`},Jt.map((Vt,Qe)=>{var Me=Vt,{key:Et,name:kt}=Me,vt=ne(Me,["key","name"]);const Dt=gt===Et,Ae=()=>{pt(Et)},dt=Qe<7&&Qe===Jt.length-1,ln=()=>on({[lt]:"",[Le]:0}),ct=()=>It(kt);return De.createElement(be.default.Item,z(y({},vt),{key:Et,name:kt,className:Ge.Z.choiceListWrap,rules:[{validator(et,Bn){return Bn!=null&&Bn.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${re[Qe]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),De.createElement(ie,{choiceTextKey:lt,answerKey:Le,index:Qe,isEdit:Dt,setInputActive:Ae,form:nt,choiceOptionsPath:Ce,allowChangeMode:Xe,showAddIcon:dt,addItem:ln,deleteItem:ct}))}),Jt.length<8&&De.createElement("div",{className:`${Ge.Z.addBtn} mb30`,onClick:()=>on({[lt]:"",[Le]:0})},"\u6DFB\u52A0\u9009\u9879"))),ye&&De.createElement("div",{onClick:()=>ut(!0)},De.createElement(be.default.Item,{name:Re,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},De.createElement(ke.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:wt}))))}},41940:function(_e,xt,oe){"use strict";oe.d(xt,{u:function(){return Xe}});var b=oe(59301),he=oe(43418),Be=oe(95237),Ie=oe(43604),be=oe(92832),Ge=oe(6848),Fe=oe(78673),Ye=oe(78241),ke=oe(5112),De=oe(5871),Oe=oe(80061),We=oe(12893),Ve=oe(61485),le=oe(44388),E=oe(10438),a=oe(59301),x=Object.defineProperty,y=Object.defineProperties,z=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,ge=(nt,ye,gt)=>ye in nt?x(nt,ye,{enumerable:!0,configurable:!0,writable:!0,value:gt}):nt[ye]=gt,fe=(nt,ye)=>{for(var gt in ye||(ye={}))re.call(ye,gt)&&ge(nt,gt,ye[gt]);if(ne)for(var gt of ne(ye))ie.call(ye,gt)&&ge(nt,gt,ye[gt]);return nt},Pe=(nt,ye)=>y(nt,z(ye)),Ue=(nt,ye)=>{var gt={};for(var pt in nt)re.call(nt,pt)&&ye.indexOf(pt)<0&&(gt[pt]=nt[pt]);if(nt!=null&&ne)for(var pt of ne(nt))ye.indexOf(pt)<0&&ie.call(nt,pt)&&(gt[pt]=nt[pt]);return gt};const Re=({value:nt,onChange:ye})=>{const gt=wt=>{he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:le.Z.modal,onOk:()=>{const ut=[...nt];ut.splice(wt,1),ye(ut)}})},pt=()=>{const wt=[...nt];wt.push(""),ye(wt)};return a.createElement(Be.Z,{className:"ml20"},a.createElement(Ie.Z,{flex:1},nt==null?void 0:nt.map((wt,ut)=>a.createElement(Be.Z,{key:`${wt}_${ut}`,className:"mb20"},a.createElement(be.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:wt,autoSize:{maxRows:3},maxLength:1e3,onBlur:Jt=>{const on=[...nt],It=Jt.target.value.trim();on[ut]=It,ye(on)}}),a.createElement(Ge.Z,{title:"\u5220\u9664"},a.createElement(We.Z,{className:le.Z.deleteIcon,style:{marginLeft:15,visibility:ut>0?"visible":"hidden"},onClick:()=>gt(ut)}))))),a.createElement(Ie.Z,null,a.createElement("div",{className:`${le.Z.addBtn}`,onClick:()=>{pt()}},"\u65B0\u589E\u7B54\u6848")))},lt=({value:nt,onChange:ye})=>{const gt=wt=>{he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:le.Z.modal,onOk:()=>{const ut=[...nt];ut.splice(wt,1),ye(ut)}})},pt=()=>{const wt=[...nt];wt.push(""),ye(wt)};return a.createElement(Be.Z,{className:"ml20"},a.createElement(Ie.Z,{flex:1},nt==null?void 0:nt.map((wt,ut)=>a.createElement(Be.Z,{key:`${wt}_${ut}`,align:"middle",className:"mb20"},a.createElement(E.Z,{value:wt,style:{flex:1},onChange:Jt=>{const on=[...nt];on[ut]=Jt,ye(on)}}),a.createElement(Ge.Z,{title:"\u5220\u9664"},a.createElement(We.Z,{className:le.Z.deleteIcon,style:{marginLeft:15,visibility:ut>0?"visible":"hidden"},onClick:()=>gt(ut)}))))),a.createElement(Ie.Z,null,a.createElement("div",{className:`${le.Z.addBtn}`,onClick:()=>{pt()}},"\u65B0\u589E\u7B54\u6848")))},Le=({value:nt=!0,onChange:ye})=>a.createElement(Fe.Z,{checked:!nt,onChange:gt=>{ye(!gt)}}),Ce="\u2581",Xe=({questionTitlePlaceholder:nt,form:ye,scoreByBlank:gt=!1,answerKey:pt})=>{const[wt,ut]=(0,b.useState)(!1),Jt=(vt,Dt)=>{const Ae=Dt.line;let dt=0;for(let ct=0;ct{const ln=vt.getRange(Dt.from,Dt.to);let ct=0;if(Dt.text.forEach(et=>{ct+=et.split(Ce).length-1}),Dt.origin!=="setValue"){if(ln&&ln.indexOf(Ce)!==-1){const et=ln.split(Ce).length-1,Bn=Jt(vt,Dt.from);if(console.log(`\u5220\u9664${et}\u4E2A\uFF0C \u524D\u9762\u6709${Bn}\u4E2A\uFF0C\u65B0\u589E${ct}\u4E2A`),et>1){const ot=Array.from({length:et},(bt,zt)=>Bn+zt);dt(ot)}else dt(Bn)}else if(ct>0){const et=Jt(vt,Dt.from);console.log(`\u65B0\u589E${ct}\u4E2A\uFF0C\u4E4B\u524D\u6709${et}\u4E2A`),Ae(ct,et)}}},It=()=>{const vt=ye.getFieldValue(pt);ye.setFieldsValue({[pt]:vt.map((Dt,Ae)=>Pe(fe({},Dt),{position:Ae+1}))})},Vt=(0,b.useRef)(),Qe=(vt,Dt)=>{for(let Ae=0;Ae{Me.current(vt),It()},kt=Ye.default.useWatch(pt,ye);return a.createElement("div",{className:le.Z.wrap},a.createElement("div",{className:le.Z.questionTitleEditorWrap},a.createElement(Ye.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},a.createElement(Oe.h,{scrollId:"name",watch:!0,height:140,placeholder:nt,showNullButton:!0,onCMBeforeChange:(vt,Dt)=>{on(vt,Dt,Qe,Et)}}))),a.createElement(Ye.default.List,{name:pt,rules:[{validator(vt,Dt){if(!(Dt!=null&&Dt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Ae of Dt){const{answer_text:dt}=Ae||{};if(dt!=null&&dt.some(ln=>(ln==null?void 0:ln.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(vt,{add:Dt,remove:Ae},{errors:dt})=>(Vt.current=Dt,Me.current=Ae,a.createElement(a.Fragment,null,a.createElement(Ye.default.Item,{label:a.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(vt!=null&&vt.length)&&a.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),vt.map((ln,ct)=>{var et=ln,{key:Bn,name:ot}=et,bt=Ue(et,["key","name"]),zt,St;return a.createElement("div",{style:{marginBottom:10},key:Bn},a.createElement(Be.Z,{className:"mb20",align:"middle",wrap:!1},a.createElement(Ie.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${le.Z.blankIndex}`},"\u586B\u7A7A\u9879",ct+1),a.createElement(Ye.default.Item,Pe(fe({},bt),{name:[ot,"model"],noStyle:!0}),a.createElement(ke.ZP.Group,{onChange:()=>{const Rn=ye.getFieldValue(pt);ye.setFieldsValue({[pt]:Rn.map((Ot,Kn)=>Pe(fe({},Ot),{answer_text:ot===Kn?[""]:Ot.answer_text}))})}},a.createElement(ke.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",a.createElement(Ge.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},a.createElement(Ve.Z,null))),a.createElement(ke.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",a.createElement(Ge.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},a.createElement(Ve.Z,null)))))),a.createElement(Be.Z,{style:{marginLeft:20},align:"middle",wrap:!1},a.createElement(Ie.Z,{flex:1},a.createElement(Be.Z,{align:"top",justify:"space-between",wrap:!1},a.createElement(Ie.Z,{flex:1},a.createElement(Ye.default.Item,Pe(fe({},bt),{name:[ot,"answer_text"],noStyle:!0}),((St=(zt=ye.getFieldValue(pt))==null?void 0:zt[ot])==null?void 0:St.model)===1?a.createElement(Re,null):a.createElement(lt,null))),gt&&a.createElement(Ie.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},a.createElement(Ye.default.Item,Pe(fe({},bt),{name:[ot,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:le.Z.blankInputNumberWrapper}),a.createElement(De.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),a.createElement(Ye.default.Item,Pe(fe({},bt),{name:[ot,"position"],noStyle:!0}),a.createElement(be.default,{type:"hidden"})))))})))),a.createElement(Be.Z,{align:"middle"},a.createElement(Ye.default.Item,{name:"downcase",valuePropName:"checked"},a.createElement(Fe.Z,null)),a.createElement(Ie.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),a.createElement(Be.Z,{align:"middle"},a.createElement(Ye.default.Item,{name:"no_space",valuePropName:"checked"},a.createElement(Fe.Z,null)),a.createElement(Ie.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(kt==null?void 0:kt.length)>1&&a.createElement(Be.Z,{align:"middle",className:(kt==null?void 0:kt.length)>1?"mb30":`${le.Z.hide}`},a.createElement(Ye.default.Item,{name:"is_ordered"},a.createElement(Le,null)),a.createElement(Ie.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),a.createElement("div",{onClick:()=>ut(!0)},a.createElement(Ye.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},a.createElement(Oe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:wt}))))}},48700:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return ne}});var b=oe(59301),he=oe(95237),Be=oe(43604),Ie=oe(78241),be=oe(44388),Ge=oe(80061),Fe=oe(59301),Ye=Object.defineProperty,ke=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,le=(re,ie,ge)=>ie in re?Ye(re,ie,{enumerable:!0,configurable:!0,writable:!0,value:ge}):re[ie]=ge,E=(re,ie)=>{for(var ge in ie||(ie={}))We.call(ie,ge)&&le(re,ge,ie[ge]);if(Oe)for(var ge of Oe(ie))Ve.call(ie,ge)&&le(re,ge,ie[ge]);return re},a=(re,ie)=>ke(re,De(ie)),x=(re,ie)=>{var ge={};for(var fe in re)We.call(re,fe)&&ie.indexOf(fe)<0&&(ge[fe]=re[fe]);if(re!=null&&Oe)for(var fe of Oe(re))ie.indexOf(fe)<0&&Ve.call(re,fe)&&(ge[fe]=re[fe]);return ge};const y={\u6B63\u786E:"T",\u9519\u8BEF:"F"},z=({value:re,onChange:ie,form:ge})=>{const fe=(re==null?void 0:re.is_answer)===1,Pe=re==null?void 0:re.choice_text,Ue=()=>{const Re=ge.getFieldsValue().choices.map(lt=>({choice_text:lt.choice_text,is_answer:0}));ge.setFieldsValue({choices:Re}),ie(a(E({},re),{is_answer:1}))};return Fe.createElement(he.Z,{className:be.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},Fe.createElement(Be.Z,{onClick:Ue,className:`${be.Z.choiceIndex} ${be.Z.judgementIndex} ${fe?be.Z.activeAnswer:""}`},y[Pe]),Fe.createElement(Be.Z,{flex:1,className:`${be.Z.editorWrap} ml15`},Fe.createElement("div",{className:`${be.Z.inputBorder} ${be.Z.placeholder} ${fe?be.Z.activeJudgementAnswer:""}`},Pe)),Fe.createElement(Be.Z,{flex:"0 0 auto",className:"ml15"},Fe.createElement("div",{onClick:Ue,className:`${be.Z.setAnswerBtn} ${fe?be.Z.activeAnswer:""}`},fe?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},ne=({questionTitlePlaceholder:re,choiceKey:ie,form:ge})=>{const[fe,Pe]=(0,b.useState)(!1);return Fe.createElement("div",{className:be.Z.wrap},Fe.createElement("div",{className:be.Z.questionTitleEditorWrap},Fe.createElement(Ie.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Fe.createElement(Ge.h,{scrollId:"name",watch:!0,height:140,placeholder:re}))),Fe.createElement(Ie.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Fe.createElement(Ie.default.List,{name:"choices",rules:[{validator(Ue,Re){return Re.some(Le=>(Le==null?void 0:Le.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Ue=>Fe.createElement("div",{id:"choices"},Ue.map(Re=>{var lt=Re,{key:Le,name:Ce}=lt,Xe=x(lt,["key","name"]);return Fe.createElement(Ie.default.Item,a(E({},Xe),{key:Le,name:Ce,noStyle:!0}),Fe.createElement(z,{form:ge}))})))),Fe.createElement("div",{onClick:()=>Pe(!0)},Fe.createElement(Ie.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Fe.createElement(Ge.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:fe}))))}},80061:function(_e,xt,oe){"use strict";oe.d(xt,{h:function(){return E},x:function(){return a}});var b=oe(37962),he=oe(44388),Be=oe(28900),Ie=oe(59301),be=Object.defineProperty,Ge=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,Oe=(x,y,z)=>y in x?be(x,y,{enumerable:!0,configurable:!0,writable:!0,value:z}):x[y]=z,We=(x,y)=>{for(var z in y||(y={}))ke.call(y,z)&&Oe(x,z,y[z]);if(Ye)for(var z of Ye(y))De.call(y,z)&&Oe(x,z,y[z]);return x},Ve=(x,y)=>Ge(x,Fe(y)),le=(x,y)=>{var z={};for(var ne in x)ke.call(x,ne)&&y.indexOf(ne)<0&&(z[ne]=x[ne]);if(x!=null&&Ye)for(var ne of Ye(x))y.indexOf(ne)<0&&De.call(x,ne)&&(z[ne]=x[ne]);return z};const E=x=>{var y=x,{value:z,onChange:ne,scrollId:re}=y,ie=le(y,["value","onChange","scrollId"]);return Ie.createElement("div",{id:re||""},Ie.createElement(b.Z,Ve(We({},ie),{defaultValue:z,onChange:(ge,fe)=>{fe!=null&&fe.length?ne(ge,fe):ne(ge)}})))},a=({value:x,onChange:y,placeholder:z,height:ne=140,isEdit:re,miniToolbar:ie,watch:ge=!0})=>re?Ie.createElement(b.Z,{watch:ge,isFocus:!0,height:ne||void 0,placeholder:z,defaultValue:x,onChange:y,miniToolbar:ie}):Ie.createElement("div",{style:{cursor:"pointer"}},x?Ie.createElement(Be.Z,{className:he.Z.inputBorder,value:x}):Ie.createElement("div",{className:`${he.Z.inputBorder} ${he.Z.placeholder} inputBorderError`},z))},88637:function(_e,xt,oe){"use strict";oe.d(xt,{W:function(){return lt}});var b=oe(59301),he=oe(8591),Be=oe(12563),Ie=oe(78241),be=oe(78673),Ge=oe(95237),Fe=oe(43604),Ye=oe(6848),ke=oe(92832),De=oe(5871),Oe=oe(44388),We=oe(80061),Ve=oe(37962),le=oe(61485),E=Object.defineProperty,a=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,re=(Le,Ce,Xe)=>Ce in Le?E(Le,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Le[Ce]=Xe,ie=(Le,Ce)=>{for(var Xe in Ce||(Ce={}))z.call(Ce,Xe)&&re(Le,Xe,Ce[Xe]);if(y)for(var Xe of y(Ce))ne.call(Ce,Xe)&&re(Le,Xe,Ce[Xe]);return Le},ge=(Le,Ce)=>a(Le,x(Ce)),fe=(Le,Ce)=>{var Xe={};for(var nt in Le)z.call(Le,nt)&&Ce.indexOf(nt)<0&&(Xe[nt]=Le[nt]);if(Le!=null&&y)for(var nt of y(Le))Ce.indexOf(nt)<0&&ne.call(Le,nt)&&(Xe[nt]=Le[nt]);return Xe};const Pe=Le=>{var Ce=Le,{value:Xe,onChange:nt}=Ce,ye=fe(Ce,["value","onChange"]);const gt=pt=>{nt([pt])};return b.createElement(Ve.Z,ge(ie({},ye),{defaultValue:Xe==null?void 0:Xe[0],onChange:gt}))},Ue=Le=>{if(!Le)return!1;if(/^s*$/.test(Le)||Le.trim()===""){he.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Ce=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Le==="|"?(he.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Re=({value:Le=[],onClose:Ce})=>b.createElement(Be.default,{closable:!0,onClose:Ce,className:Oe.Z.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Le.join(" \u6216 "))),lt=({questionTitlePlaceholder:Le,form:Ce,showKeywords:Xe,isMustKeyWords:nt=Xe})=>{const[ye,gt]=(0,b.useState)(!1),[pt,wt]=(0,b.useState)(""),ut=Ie.default.useWatch("use_keywords",Ce),Jt=Ie.default.useWatch("question_score",Ce);return b.createElement("div",{className:Oe.Z.wrap},b.createElement("div",{className:Oe.Z.questionTitleEditorWrap},b.createElement(Ie.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},b.createElement(We.h,{scrollId:"name",watch:!0,height:140,placeholder:Le}))),b.createElement(Ie.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},b.createElement(Pe,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Xe&&!nt&&b.createElement(Ie.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},b.createElement(be.Z,{defaultChecked:!0})),Xe&&nt&&b.createElement(Ge.Z,{align:"middle",className:"mb30"},b.createElement(Ie.default.Item,{name:"use_keywords",valuePropName:"checked"},b.createElement(be.Z,null)),b.createElement(Fe.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(Fe.Z,null,b.createElement(Ye.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(le.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(ut||!nt)&&b.createElement(Ie.default.List,{name:"keywords",rules:[{validator(on,It){return nt?It!=null&&It.length?(It==null?void 0:It.reduce((Qe,Me)=>Qe+Me.score,0))>parseFloat(Jt)?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()}}]},(on,{add:It,remove:Vt})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${Oe.Z.title} mb10`},nt?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(Ge.Z,{align:"middle",className:"font14 mb30"},b.createElement(Fe.Z,{flex:1},b.createElement(ke.default,{value:pt,onChange:Qe=>{wt(Qe.target.value)},maxLength:50,allowClear:!0,onPressEnter:Qe=>{var Me,Et,kt,vt;const Dt=`${(Me=Qe.target)==null?void 0:Me.value}`,Ae=(kt=(Et=Dt==null?void 0:Dt.split("|"))==null?void 0:Et.filter(ct=>!!ct))==null?void 0:kt.map(ct=>ct==null?void 0:ct.trim()),dt=Ce.getFieldValue("keywords"),ln=((vt=dt==null?void 0:dt.map(ct=>ct==null?void 0:ct.keyword))==null?void 0:vt.flat())||[];for(const ct of Ae)if(ln.includes(ct)){he.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Ue(Dt)&&(It({keyword:Ae,score:1}),wt(""))},className:Oe.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(Fe.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),on.map(Qe=>{var Me=Qe,{key:Et,name:kt}=Me,vt=fe(Me,["key","name"]);return b.createElement(Ge.Z,{key:Et,className:"mb20",style:{marginRight:148}},b.createElement(Fe.Z,{flex:1},b.createElement(Ge.Z,{align:"middle",justify:"space-between"},b.createElement(Ie.default.Item,ge(ie({},vt),{name:[kt,"keyword"]}),b.createElement(Re,{onClose:()=>Vt(kt)})),nt&&b.createElement(Ie.default.Item,ge(ie({},vt),{name:[kt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Oe.Z.blankInputNumberWrapper}),b.createElement(De.Z,{className:Oe.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>gt(!0)},b.createElement(Ie.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(We.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ye}))))}},24417:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return be}});var b={text:"text___bQulM",sup:"sup___rX_Y3"},he=oe(78241),Be=oe(59301),be=({text:Ge,name:Fe="question_score"})=>{const Ye=({value:ke})=>Be.createElement("div",{className:b.text},Be.createElement("span",{className:b.sup},"*"),Be.createElement("span",{className:"mr10"},"\u5206\u503C"),Be.createElement("span",null,ke||"--"),Be.createElement("span",{className:"c-grey-999"},Ge));return Be.createElement(he.default.Item,{noStyle:!0,name:Fe},Be.createElement(Ye,null))}},8738:function(_e,xt,oe){"use strict";oe.d(xt,{h:function(){return re}});var b=oe(59301),he=oe(57809),Be=oe(78241),Ie=oe(3113),be=oe(89780),Ge=oe.n(be),Fe=oe(42741),Ye=oe(27494),ke=Object.defineProperty,De=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,E=(ie,ge,fe)=>ge in ie?ke(ie,ge,{enumerable:!0,configurable:!0,writable:!0,value:fe}):ie[ge]=fe,a=(ie,ge)=>{for(var fe in ge||(ge={}))Ve.call(ge,fe)&&E(ie,fe,ge[fe]);if(We)for(var fe of We(ge))le.call(ge,fe)&&E(ie,fe,ge[fe]);return ie},x=(ie,ge)=>De(ie,Oe(ge));const y=he.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},ne={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};xt.Z=({callback:ie,onCancel:ge})=>{const[fe,Pe]=(0,b.useState)("python");function Ue(lt){Pe(ne[lt][1])}function Re(lt){ie(lt)}return b.createElement(Be.default,x(a({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Re,style:{width:500}}),b.createElement(Be.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},b.createElement(he.default,{getPopupContainer:lt=>lt.parentNode,onChange:Ue},Object.keys(ne).map(lt=>b.createElement(y,{key:lt,value:lt},ne[lt][0])))),b.createElement(Be.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},b.createElement(re,{mode:fe})),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Ie.ZP,{type:"ghost",onClick:ge},"\u53D6\u6D88")))};function re({value:ie,onChange:ge,mode:fe,options:Pe={}}){const Ue=(0,b.useRef)(),[Re,lt]=(0,b.useState)();return(0,b.useEffect)(()=>{if(Re){let Le=function(Ce){const Xe=Ce.getValue();ge&&ge(Xe)};return Re.on("change",Le),()=>{Re.off("change",Le)}}},[Re,ge]),(0,b.useEffect)(()=>{Re&&Re.setOption("mode",fe)},[Re,fe]),(0,b.useEffect)(()=>{Re&&(ie!==Re.getValue()||ie==="")&&setTimeout(()=>{Re.setValue(ie||"")},300)},[Re,ie]),(0,b.useEffect)(()=>{if(Ue.current&&!Re){const Le=Ge().fromTextArea(Ue.current,a({mode:fe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Pe));lt(Le)}},[Ue.current,Re]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:Ue}))}},37962:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return An}});var b=oe(59301),he=oe(89780),Be=oe.n(he),Ie=oe(76374),be=oe(42741),Ge=oe(6313),Fe=oe(25717),Ye=oe(99498),ke=oe(25419),De=oe(67549),Oe=oe(28900),We=({value:je="",className:Ke,showTextOnly:He,showLines:Mt,style:sn={}})=>{const dn=(0,b.useMemo)(()=>"",[je]);return b.createElement(b.Fragment,null,b.createElement("div",{dangerouslySetInnerHTML:{__html:dn}}))},Ve=oe(59301),le=Object.defineProperty,E=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ne=(je,Ke,He)=>Ke in je?le(je,Ke,{enumerable:!0,configurable:!0,writable:!0,value:He}):je[Ke]=He,re=(je,Ke)=>{for(var He in Ke||(Ke={}))y.call(Ke,He)&&ne(je,He,Ke[He]);if(x)for(var He of x(Ke))z.call(Ke,He)&&ne(je,He,Ke[He]);return je},ie=(je,Ke)=>E(je,a(Ke));let ge=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function fe({onActionCallback:je,title:Ke,icon:He,actionName:Mt,className:sn="",children:dn}){function qn(){je(Mt)}return Ve.createElement("a",{title:Ke,className:sn,onClick:qn},Ve.createElement("i",{className:`${He}`}),dn)}var Pe=({watch:je,showNullButton:Ke,showNullProgramButton:He,onActionCallback:Mt,fullScreen:sn,insertTemp:dn,hidetoolBar:qn,extraUse:Un})=>{const fn=[...ge,{title:`${je?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${je?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ve.createElement("ul",{className:"markdown-toolbar-container"},!qn&&fn.map((Jn,Ea)=>Ve.createElement("li",{key:Ea},Jn.actionName?Ve.createElement(fe,ie(re({},Jn),{onActionCallback:Mt})):Ve.createElement("span",{className:"v-line"}))),Ke?Ve.createElement("li",null,Ve.createElement(fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Mt},Ve.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,He?Ve.createElement(Ve.Fragment,null,Ve.createElement("li",null,Ve.createElement(fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Mt},Ve.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ve.createElement("li",null,Ve.createElement(fe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Mt},Ve.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,dn&&Ve.createElement("li",null,Ve.createElement(fe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${dn}`,onActionCallback:Mt},Ve.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Un&&Ve.createElement("li",null,Un),Ve.createElement("li",{className:"btn-full-screen"},Ve.createElement(fe,{icon:`${sn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:sn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Mt})))},Ue=oe(23252),Re=oe(78241),lt=oe(92832),Le=oe(3113),Ce=Object.defineProperty,Xe=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,wt=(je,Ke,He)=>Ke in je?Ce(je,Ke,{enumerable:!0,configurable:!0,writable:!0,value:He}):je[Ke]=He,ut=(je,Ke)=>{for(var He in Ke||(Ke={}))gt.call(Ke,He)&&wt(je,He,Ke[He]);if(ye)for(var He of ye(Ke))pt.call(Ke,He)&&wt(je,He,Ke[He]);return je},Jt=(je,Ke)=>Xe(je,nt(Ke));const on={labelCol:{span:4},wrapperCol:{span:20}};var It=({callback:je,onCancel:Ke})=>{function He(Mt){je(Mt)}return b.createElement(Re.default,Jt(ut({},on),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:He,style:{width:500}}),b.createElement(Re.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},b.createElement(lt.default,null)),b.createElement(Re.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},b.createElement(lt.default,null)),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Le.ZP,{type:"ghost",onClick:Ke},"\u53D6\u6D88")))},Vt=oe(8738),Qe=oe(30315),Me=oe(43418),Et=oe(95237),kt=oe(94094),vt=oe(59301),Dt=({callback:je,onCancel:Ke})=>{const He=document.createElement("canvas"),Mt=He.getContext("2d");He.width=1e3,He.height=800,Mt.fillStyle="#ffffff",Mt.fillRect(0,0,He.width,He.height);const sn=He.toDataURL("image/png");return vt.createElement(Me.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},vt.createElement(Et.Z,{style:{height:"100vh"}},vt.createElement(kt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:sn,visible:!0,title:String(Date.now())},onOk:dn=>{je({src:dn.url})},onClose:Ke})))},Ae=oe(12378);function dt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(dt,go.CommandHandler),dt.prototype.canAlignSelection=function(){var je=this.diagram;return!(je===null||je.isReadOnly||je.isModelReadOnly||je.selection.count<2)},dt.prototype.alignLeft=function(){var je=this.diagram;je.startTransaction("aligning left");var Ke=1/0;je.selection.each(function(He){He instanceof go.Link||(Ke=Math.min(He.position.x,Ke))}),je.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(Ke,He.position.y))}),je.commitTransaction("aligning left")},dt.prototype.alignRight=function(){var je=this.diagram;je.startTransaction("aligning right");var Ke=-1/0;je.selection.each(function(He){if(!(He instanceof go.Link)){var Mt=He.actualBounds.x+He.actualBounds.width;Ke=Math.max(Mt,Ke)}}),je.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(Ke-He.actualBounds.width,He.position.y))}),je.commitTransaction("aligning right")},dt.prototype.alignTop=function(){var je=this.diagram;je.startTransaction("alignTop");var Ke=1/0;je.selection.each(function(He){He instanceof go.Link||(Ke=Math.min(He.position.y,Ke))}),je.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(He.position.x,Ke))}),je.commitTransaction("alignTop")},dt.prototype.alignBottom=function(){var je=this.diagram;je.startTransaction("aligning bottom");var Ke=-1/0;je.selection.each(function(He){if(!(He instanceof go.Link)){var Mt=He.actualBounds.y+He.actualBounds.height;Ke=Math.max(Mt,Ke)}}),je.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(He.actualBounds.x,Ke-He.actualBounds.height))}),je.commitTransaction("aligning bottom")},dt.prototype.alignCenterX=function(){var je=this.diagram,Ke=je.selection.first();if(Ke){je.startTransaction("aligning Center X");var He=Ke.actualBounds.x+Ke.actualBounds.width/2;je.selection.each(function(Mt){Mt instanceof go.Link||Mt.move(new go.Point(He-Mt.actualBounds.width/2,Mt.actualBounds.y))}),je.commitTransaction("aligning Center X")}},dt.prototype.alignCenterY=function(){var je=this.diagram,Ke=je.selection.first();if(Ke){je.startTransaction("aligning Center Y");var He=Ke.actualBounds.y+Ke.actualBounds.height/2;je.selection.each(function(Mt){Mt instanceof go.Link||Mt.move(new go.Point(Mt.actualBounds.x,He-Mt.actualBounds.height/2))}),je.commitTransaction("aligning Center Y")}},dt.prototype.alignColumn=function(je){var Ke=this.diagram;Ke.startTransaction("align Column"),je===void 0&&(je=0),je=parseFloat(je);var He=new Array;Ke.selection.each(function(Un){Un instanceof go.Link||He.push(Un)});for(var Mt=0;Mt0){for(var Un=dn.elt(qn-1);Un!==null&&Un.isTreeExpanded&&!Un.isTreeLeaf;){var fn=this._sortTreeChildrenByY(Un);Un=fn.last()}Un!==null&&je.select(Un)}else je.select(sn)}}else if(He.key==="Down")if(Ke.isTreeExpanded&&!Ke.isTreeLeaf){var Mt=this._sortTreeChildrenByY(Ke).first();Mt!==null&&je.select(Mt)}else for(;Ke!==null;){var sn=Ke.findTreeParentNode();if(sn===null)break;var dn=this._sortTreeChildrenByY(sn),qn=dn.indexOf(Ke);if(qndn.y?1:sn.xdn.x?1:0}),Ke},dt.prototype.copyToClipboard=function(je){go.CommandHandler.prototype.copyToClipboard.call(this,je),this._lastPasteOffset.set(this.pasteOffset)},dt.prototype.pasteFromClipboard=function(){var je=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(je,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),je},Object.defineProperty(dt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(je){if(je!=="move"&&je!=="select"&&je!=="scroll"&&je!=="tree"&&je!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+je);this._arrowKeyBehavior=je}}),Object.defineProperty(dt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(je){if(!(je instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+je);this._pasteOffset.set(je)}});var ln=dt,ct=oe(64242),et=oe(43604),Bn=oe(23789),ot={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},bt=oe(59301),zt=(je,Ke,He)=>new Promise((Mt,sn)=>{var dn=fn=>{try{Un(He.next(fn))}catch(Jn){sn(Jn)}},qn=fn=>{try{Un(He.throw(fn))}catch(Jn){sn(Jn)}},Un=fn=>fn.done?Mt(fn.value):Promise.resolve(fn.value).then(dn,qn);Un((He=He.apply(je,Ke)).next())});function St({onCancel:je,callback:Ke}){let He=(0,b.useRef)(),Mt=(0,b.useRef)(),sn=(0,b.useRef)(),dn=(0,b.useRef)(!1);const qn=(0,b.useRef)(!1),[Un,fn]=(0,b.useState)(0);function Jn(){const Zt=Ae.bx.make,_n={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};He.current=new Ae.S0(Mt.current,{padding:20,grid:Zt(Ae.s_,"Grid",Zt(Ae.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Zt(Ae.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Xt=>{var Dn=Xt.diagram.commandHandler.addTopLevelParts(Xt.diagram.selection,!0);Dn||Xt.diagram.currentTool.doCancel()},commandHandler:Zt(ln),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Xt=>{var Dn=Xt.subject;Dn.location=Dn.location.copy().snapToGridPoint(Xt.diagram.grid.gridOrigin,Xt.diagram.grid.gridCellSize),setTimeout(()=>{Xt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Xt=>{var Dn=Xt.subject;setTimeout(()=>{Xt.diagram.commandHandler.editTextBlock()})},LinkRelinked:Xt=>{var Dn=Xt.parameter.part;Dn.invalidateConnectedLinks();var ea=Xt.subject;Xt.diagram.toolManager.linkingTool.isForwards?ea.toNode.invalidateConnectedLinks():ea.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),He.current.nodeTemplate=Zt(Ae.NB,"Auto",{locationSpot:Ae.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ae.$u(120,60),minSize:new Ae.$u(40,40),resizable:!0,resizeCellSize:new Ae.$u(10,10),rotatable:!0},new Ae.KX("location","loc",Ae.E9.parse).makeTwoWay(Ae.E9.stringify),new Ae.KX("desiredSize","size",Ae.$u.parse).makeTwoWay(Ae.$u.stringify),Zt(Ae.bn,{name:"SHAPE",fill:_n.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ae.z6.AllSides,toSpot:Ae.z6.AllSides},new Ae.KX("figure"),new Ae.KX("fill"),new Ae.KX("stroke","borderColor"),new Ae.KX("strokeWidth","thickness"),new Ae.KX("strokeDashArray","dash")),Zt(Ae.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Zt(Ae.al,{margin:1,textAlign:"center",overflow:Ae.al.OverflowEllipsis,editable:!0},new Ae.KX("text").makeTwoWay(),new Ae.KX("stroke","color"))),He.current.nodeTemplate.toolTip=Zt("ToolTip",Zt(Ae.s_,"Vertical",{maxSize:new Ae.$u(200,NaN)},Zt(Ae.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ae.KX("text")),Zt(Ae.al,{font:"10pt sans-serif",textAlign:"center"},new Ae.KX("text","details"))));function Je(Xt,Dn){var ea=(yn,Ra)=>{yn.handled=!0,yn.diagram.model.commit(Pa=>{var Va=Ra.part.adornedPart,cr=new Ae.E9().setRectSpot(Va.actualBounds,Xt);cr.subtract(Va.location),cr.scale(2,2),cr.x+=Math.sign(cr.x)*130,cr.y+=Math.sign(cr.y)*130,cr.add(Va.location),cr.snapToGridPoint(yn.diagram.grid.gridOrigin,yn.diagram.grid.gridCellSize);var Ar=Pa.copyNodeData(Va.data);Pa.setGroupKeyForNodeData(Ar,Pa.getGroupKeyForNodeData(Va.data)),Pa.addNodeData(Ar);var Mr={from:Va.key,to:Pa.getKeyForNodeData(Ar)};Pa.addLinkData(Mr);var Pr=yn.diagram.findNodeForData(Ar);Pr.location=cr,yn.diagram.select(Pr),setTimeout(()=>{yn.diagram.commandHandler.editTextBlock()},20)})};return Zt(Ae.bn,{figure:Dn,alignment:Xt,alignmentFocus:Xt.opposite(),width:Xt.equals(Ae.z6.Top)||Xt.equals(Ae.z6.Bottom)?25:18,height:Xt.equals(Ae.z6.Top)||Xt.equals(Ae.z6.Bottom)?18:25,fill:"orange",stroke:_n.white,strokeWidth:4,mouseEnter:(yn,Ra)=>Ra.fill="dodgerblue",mouseLeave:(yn,Ra)=>Ra.fill="orange",isActionable:!0,click:ea,contextClick:ea})}function Kt(Xt){return Zt(Ae.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Dn,ea)=>ea.fill="dodgerblue",mouseLeave:(Dn,ea)=>ea.fill="orange",click:(Dn,ea)=>{Dn.diagram.commandHandler.showContextMenu(ea.part.adornedPart)}},Xt||{})}He.current.nodeTemplate.selectionAdornmentTemplate=Zt(Ae.uz,"Spot",Zt(Ae.Vm,{padding:10}),Je(Ae.z6.Top,"TriangleUp"),Je(Ae.z6.Left,"TriangleLeft"),Je(Ae.z6.Right,"TriangleRight"),Je(Ae.z6.Bottom,"TriangleDown"),Kt({alignment:new Ae.z6(.75,0)}));function wn(Xt,Dn){return(ea,yn)=>{ea.handled=!0,ea.diagram.model.commit(Ra=>{Ra.set(yn.part.adornedPart.data,Xt,Dn)})}}function tt(Xt,Dn){return Dn||(Dn="color"),Zt(Ae.bn,{width:16,height:16,stroke:"lightgray",fill:Xt,margin:1,background:"transparent",mouseEnter:(ea,yn)=>yn.stroke="dodgerblue",mouseLeave:(ea,yn)=>yn.stroke="lightgray",click:wn(Dn,Xt),contextClick:wn(Dn,Xt)})}function Xn(){return[Zt("ContextMenuButton",Zt(Ae.s_,"Horizontal",tt(_n.white,"fill"),tt(_n.beige,"fill"),tt(_n.extralightblue,"fill"),tt(_n.extralightred,"fill"))),Zt("ContextMenuButton",Zt(Ae.s_,"Horizontal",tt(_n.lightgray,"fill"),tt(_n.lightgreen,"fill"),tt(_n.lightblue,"fill"),tt(_n.lightred,"fill")))]}function Mn(){return[Zt("ContextMenuButton",Zt(Ae.s_,"Horizontal",tt(_n.black),tt(_n.green),tt(_n.blue),tt(_n.red))),Zt("ContextMenuButton",Zt(Ae.s_,"Horizontal",tt(_n.white),tt(_n.magenta),tt(_n.purple),tt(_n.orange)))]}function ca(Xt,Dn){return Dn||(Dn="thickness"),Zt(Ae.bn,"LineH",{width:16,height:16,strokeWidth:Xt,margin:1,background:"transparent",mouseEnter:(ea,yn)=>yn.background="dodgerblue",mouseLeave:(ea,yn)=>yn.background="transparent",click:wn(Dn,Xt),contextClick:wn(Dn,Xt)})}function Vn(Xt,Dn){return Dn||(Dn="dash"),Zt(Ae.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Xt,margin:1,background:"transparent",mouseEnter:(ea,yn)=>yn.background="dodgerblue",mouseLeave:(ea,yn)=>yn.background="transparent",click:wn(Dn,Xt),contextClick:wn(Dn,Xt)})}function Za(){return[Zt("ContextMenuButton",Zt(Ae.s_,"Horizontal",ca(1),ca(2),ca(3),ca(4))),Zt("ContextMenuButton",Zt(Ae.s_,"Horizontal",Vn(null),Vn([2,4]),Vn([4,4])))]}function sa(Xt,Dn){return Dn||(Dn="figure"),Zt(Ae.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Xt,margin:1,background:"transparent",mouseEnter:(ea,yn)=>yn.fill="dodgerblue",mouseLeave:(ea,yn)=>yn.fill="lightgray",click:wn(Dn,Xt),contextClick:wn(Dn,Xt)})}He.current.nodeTemplate.contextMenu=Zt("ContextMenu",Zt("ContextMenuButton",Zt(Ae.s_,"Horizontal",sa("Rectangle"),sa("RoundedRectangle"),sa("Ellipse"),sa("Diamond"))),Zt("ContextMenuButton",Zt(Ae.s_,"Horizontal",sa("Parallelogram2"),sa("ManualOperation"),sa("Procedure"),sa("Cylinder1"))),Zt("ContextMenuButton",Zt(Ae.s_,"Horizontal",sa("Terminator"),sa("CreateRequest"),sa("Document"),sa("TriangleDown"))),Xn(),Mn(),Za()),He.current.groupTemplate=Zt(Ae.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ae.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Xt,Dn)=>{var ea=Dn.addMembers(Dn.diagram.selection,!0);ea||Dn.diagram.currentTool.doCancel()},avoidable:!1},new Ae.KX("location","loc",Ae.E9.parse).makeTwoWay(Ae.E9.stringify),Zt(Ae.s_,"Auto",{name:"BODY"},Zt(Ae.bn,{parameter1:10,fill:_n.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ae.z6.AllSides,toSpot:Ae.z6.AllSides},new Ae.KX("fill"),new Ae.KX("stroke","color"),new Ae.KX("strokeWidth","thickness"),new Ae.KX("strokeDashArray","dash")),Zt(Ae.Vm,{background:"transparent",margin:20})),Zt(Ae.al,{alignment:Ae.z6.Top,alignmentFocus:Ae.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ae.KX("text"),new Ae.KX("stroke","color"))),He.current.groupTemplate.selectionAdornmentTemplate=Zt(Ae.uz,"Spot",Zt(Ae.s_,"Auto",Zt(Ae.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Zt(Ae.Vm,{margin:1.5})),Kt({alignment:Ae.z6.TopRight,alignmentFocus:Ae.z6.BottomRight})),He.current.groupTemplate.contextMenu=Zt("ContextMenu",Xn(),Mn(),Za()),He.current.linkTemplate=Zt(Ae.rU,{layerName:"Foreground",routing:Ae.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ae.KX("fromSpot","fromSpot",Ae.z6.parse),new Ae.KX("toSpot","toSpot",Ae.z6.parse),new Ae.KX("fromShortLength","dir",Xt=>Xt>=1?10:0),new Ae.KX("toShortLength","dir",Xt=>Xt>=1?10:0),new Ae.KX("points").makeTwoWay(),Zt(Ae.bn,{strokeWidth:2},new Ae.KX("stroke","color"),new Ae.KX("strokeWidth","thickness"),new Ae.KX("strokeDashArray","dash")),Zt(Ae.bn,{segmentIndex:0,segmentOffset:new Ae.E9(15,0),segmentOrientation:Ae.rU.OrientAlong,alignmentFocus:Ae.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ae.KX("fill","color"),new Ae.KX("visible","dir",Xt=>Xt===1)),Zt(Ae.bn,{segmentIndex:-1,segmentOffset:new Ae.E9(-10,6),segmentOrientation:Ae.rU.OrientPlus90,alignmentFocus:Ae.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ae.KX("fill","color"),new Ae.KX("visible","dir",Xt=>Xt>=1),new Ae.KX("width","thickness",Xt=>7+3*Xt),new Ae.KX("height","thickness",Xt=>7+3*Xt),new Ae.KX("segmentOffset","thickness",Xt=>new Ae.E9(-15,4+1.5*Xt))),Zt(Ae.bn,{segmentIndex:0,segmentOffset:new Ae.E9(15,-6),segmentOrientation:Ae.rU.OrientMinus90,alignmentFocus:Ae.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ae.KX("fill","color"),new Ae.KX("visible","dir",Xt=>Xt===2),new Ae.KX("width","thickness",Xt=>7+3*Xt),new Ae.KX("height","thickness",Xt=>7+3*Xt),new Ae.KX("segmentOffset","thickness",Xt=>new Ae.E9(-15,4+1.5*Xt))),Zt(Ae.al,{alignmentFocus:new Ae.z6(0,1,-4,0),editable:!0},new Ae.KX("text").makeTwoWay(),new Ae.KX("stroke","color"))),He.current.linkTemplate.selectionAdornmentTemplate=Zt(Ae.uz,Zt(Ae.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:er(2)},new Ae.KX("pathPattern","thickness",er)),Kt({alignmentFocus:new Ae.z6(0,0,-6,-4)}));function er(Xt){return Zt(Ae.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Xt+4).toString()+" H3"})}function tr(Xt){var Dn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Xt===0?Dn="M0 0 M16 16 M0 8 L16 8":Xt===2&&(Dn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Zt(Ae.bn,{geometryString:Dn,margin:2,background:"transparent",mouseEnter:(ea,yn)=>yn.background="dodgerblue",mouseLeave:(ea,yn)=>yn.background="transparent",click:wn("dir",Xt),contextClick:wn("dir",Xt)})}function gr(Xt){var Dn=(ea,yn)=>{ea.handled=!0,ea.diagram.model.commit(Ra=>{var Pa=yn.part.adornedPart;Ra.set(Pa.data,Xt?"toSpot":"fromSpot",Ae.z6.stringify(Ae.z6.AllSides)),(Xt?Pa.toNode:Pa.fromNode).invalidateConnectedLinks()})};return Zt(Ae.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ea,yn)=>yn.background="dodgerblue",mouseLeave:(ea,yn)=>yn.background="transparent",click:Dn,contextClick:Dn})}function Tt(Xt,Dn){var ea=0,yn=Ae.z6.RightSide;Xt.equals(Ae.z6.Top)?(ea=270,yn=Ae.z6.TopSide):Xt.equals(Ae.z6.Left)?(ea=180,yn=Ae.z6.LeftSide):Xt.equals(Ae.z6.Bottom)&&(ea=90,yn=Ae.z6.BottomSide),Dn||(ea-=180);var Ra=(Pa,Va)=>{Pa.handled=!0,Pa.diagram.model.commit(cr=>{var Ar=Va.part.adornedPart;cr.set(Ar.data,Dn?"toSpot":"fromSpot",Ae.z6.stringify(yn)),(Dn?Ar.toNode:Ar.fromNode).invalidateConnectedLinks()})};return Zt(Ae.bn,{alignment:Xt,alignmentFocus:Xt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ea,background:"transparent",mouseEnter:(Pa,Va)=>Va.background="dodgerblue",mouseLeave:(Pa,Va)=>Va.background="transparent",click:Ra,contextClick:Ra})}He.current.linkTemplate.contextMenu=Zt("ContextMenu",Mn(),Za(),Zt("ContextMenuButton",Zt(Ae.s_,"Horizontal",tr(0),tr(1),tr(2))),Zt("ContextMenuButton",Zt(Ae.s_,"Horizontal",Zt(Ae.s_,"Spot",gr(!1),Tt(Ae.z6.Top,!1),Tt(Ae.z6.Left,!1),Tt(Ae.z6.Right,!1),Tt(Ae.z6.Bottom,!1)),Zt(Ae.s_,"Spot",{margin:new Ae.Zt(0,0,0,2)},gr(!0),Tt(Ae.z6.Top,!0),Tt(Ae.z6.Left,!0),Tt(Ae.z6.Right,!0),Tt(Ae.z6.Bottom,!0)))));const Da=`{ "class": "GraphLinksModel", "nodeDataArray": [ {"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3}, {"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"}, @@ -252,39 +252,39 @@ ${Kn} {"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 Vt=["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 wa(Jt){return console.log("shapeName:",Jt),Vt.indexOf(Jt)>=0}var pa=new Ae.YI(dn.current,{maxSelectionCount:1,linkTemplate:zt(Ae.rU,{locationSpot:Ae.z6.Center,selectionAdornmentTemplate:zt(Ae.uz,"Link",{locationSpot:Ae.z6.Center},zt(Ae.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),zt(Ae.bn,{toArrow:"Standard",stroke:null}))},{routing:Ae.rU.AvoidsNodes,curve:Ae.rU.JumpOver,corner:5,toShortLength:4},new Ae.KX("points"),zt(Ae.bn,{isPanelMain:!0,strokeWidth:2}),zt(Ae.bn,{toArrow:"Standard",stroke:null})),model:new Ae.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ae.bn.getFigureGenerators().toArray().map(Jt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Jt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return He.current.addDiagramListener("TextEdited",function(Jt){var Ln;const ea=Jt.subject.part;var yn=(Ln=document.activeElement)==null?void 0:Ln.value;typeof yn=="string"&&yn.trim()===""&&He.current.model.commit(function(Ta){Ta.set(ea.data,"text","\u672A\u547D\u540D"),He.current.commandHandler.stopCommand()},"increment")}),pa.nodeTemplate=zt(Ae.NB,"Auto",{locationSpot:Ae.z6.Center},new Ae.KX("location","location",Ae.E9.parse).makeTwoWay(Ae.E9.stringify),zt(Ae.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new Ae.KX("stroke").makeTwoWay(),new Ae.KX("fill").makeTwoWay(),new Ae.KX("figure")),zt(Ae.al,{margin:new Ae.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ae.$u(16,16),maxSize:new Ae.$u(10,NaN),textAlign:"center",editable:!0},new Ae.KX("key").makeTwoWay())),setTimeout(()=>{He.current.grid=zt(Ae.s_,"Grid",zt(Ae.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),zt(Ae.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),He.current.grid.visible=!0,He.current.grid.gridCellStroke="darkgray",He.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=He.current,He.current}const Ea=()=>Ht(this,null,function*(){var zt=He.current.makeImage();const _n=yield(0,bn.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:zt.src}});Ke({src:_n.url})});return(0,b.useEffect)(()=>(setTimeout(()=>{Jn()},500),vn(Un+1),()=>{He.current=null}),[]),Bt.createElement("div",{ref:qn,className:cn.current?`${ot.maxH60} body-overflow-initial`:"body-overflow-initial"},Bt.createElement(Me.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Un,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Bt.createElement(Et.Z,null,Bt.createElement(et.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Bt.createElement(et.Z,{onClick:()=>{var zt,_n,Je=He.current.selection.first();if(cn.current=!cn.current,document.activeElement&&Je){let Ut=(_n=(zt=document.activeElement)==null?void 0:zt.value)==null?void 0:_n.trim();typeof Ut=="string"&&He.current.model.commit(function(Dn){Dn.set(Je.data,"text",Ut||"\u672A\u547D\u540D"),He.current.commandHandler.stopCommand()},"increment")}vn(Un+1)}},Bt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:je},Bt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ot.flowChartWrp},Bt.createElement("div",{style:{display:"flex",height:"100%"}},Bt.createElement("div",{style:{width:"300px",height:"100%"}},Bt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Bt.createElement("div",{style:{height:"calc(100% - 50px)"},className:ot.myPaletteDiv,ref:dn})),Bt.createElement("div",{style:{flex:1,position:"relative"}},Bt.createElement("div",{ref:Rt,style:{height:"80vh"}}))),Bt.createElement("div",{className:"tr"},Bt.createElement(Le.ZP,{size:"large",onClick:Ea,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Tn=St,Mt=oe(5112),Kn=oe(5871);const wn=Mt.ZP.Group,jn={margin:"0 8px"};var $t=({callback:je,onCancel:Ke})=>{function He(Rt){je(Rt)}return b.createElement(Re.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:He},b.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},b.createElement("span",{style:jn},"\u5355\u5143\u683C\u6570\uFF1A"),b.createElement("span",{style:jn},"\u884C\u6570"),b.createElement(Re.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},b.createElement(Kn.Z,null)),b.createElement("span",{style:jn},"\u5217\u6570"),b.createElement(Re.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},b.createElement(Kn.Z,null))),b.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},b.createElement("span",{style:jn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),b.createElement(Re.default.Item,{name:"align"},b.createElement(wn,null,b.createElement(Mt.ZP,{value:"default"},b.createElement("i",{className:"fa fa-align-justify"})),b.createElement(Mt.ZP,{value:"left"},b.createElement("i",{className:"fa fa-align-left"})),b.createElement(Mt.ZP,{value:"center"},b.createElement("i",{className:"fa fa-align-center"})),b.createElement(Mt.ZP,{value:"right"},b.createElement("i",{className:"fa fa-align-right"}))))),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Le.ZP,{type:"ghost",onClick:Ke},"\u53D6\u6D88")))},ma=oe(78673),Wn=oe(13547),Ca=oe.n(Wn),mn=(0,b.forwardRef)(({use3d:je,width:Ke,height:He,callback:Rt,showSaveButton:dn},cn)=>{const qn=(0,b.useRef)(),Un=(0,b.useRef)(),[vn,Jn]=(0,b.useState)(!1),Ea=(0,b.useRef)({id:qn,appName:"graphing",width:Ke||1e3,height:He||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,b.useEffect)(()=>{Un.current=new(Ca())(Ea.current,!0),window.onload=function(){Un.current.inject("applet_container")}},[]);const zt=()=>{var _n=window.ggbApplet.getPNGBase64(1,!0,72);return Rt&&Rt(_n),_n};return(0,b.useEffect)(()=>{Ea.current.appName=vn?"3D":"graphing",Un.current.inject("applet_container")},[vn]),(0,b.useEffect)(()=>{Jn(je)},[je]),(0,b.useImperativeHandle)(cn,()=>({getImgData:zt})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:qn}),b.createElement(Et.Z,{align:"middle"},b.createElement(et.Z,{flex:1},b.createElement(ma.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:vn,onChange:_n=>Jn(_n)})),b.createElement(et.Z,null,b.createElement(Le.ZP,{size:"large",onClick:zt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),En=oe(29386),Ma=oe(1012),Sa=oe(8591);const Da="link",en="upload-image",ht="add-flowchart",hn="draw-image",xn="add-flowchart",ya="code-block",aa="add-table",Ka="------------",ra={default:Ka,left:`:${Ka}`,center:`:${Ka}:`,right:`${Ka}:`};var Qn=oe(34500),Ya=(je,Ke,He)=>new Promise((Rt,dn)=>{var cn=vn=>{try{Un(He.next(vn))}catch(Jn){dn(Jn)}},qn=vn=>{try{Un(He.throw(vn))}catch(Jn){dn(Jn)}},Un=vn=>vn.done?Rt(vn.value):Promise.resolve(vn.value).then(cn,qn);Un((He=He.apply(je,Ke)).next())});function Ra(){}let Ja=0;const Br=1e4,At="\u2581",Mn="@\u2581\u2581@",kn="@\u2581@",In=` +]}`;var Qt=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function xa(Xt){return console.log("shapeName:",Xt),Qt.indexOf(Xt)>=0}var pa=new Ae.YI(sn.current,{maxSelectionCount:1,linkTemplate:Zt(Ae.rU,{locationSpot:Ae.z6.Center,selectionAdornmentTemplate:Zt(Ae.uz,"Link",{locationSpot:Ae.z6.Center},Zt(Ae.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Zt(Ae.bn,{toArrow:"Standard",stroke:null}))},{routing:Ae.rU.AvoidsNodes,curve:Ae.rU.JumpOver,corner:5,toShortLength:4},new Ae.KX("points"),Zt(Ae.bn,{isPanelMain:!0,strokeWidth:2}),Zt(Ae.bn,{toArrow:"Standard",stroke:null})),model:new Ae.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ae.bn.getFigureGenerators().toArray().map(Xt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Xt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return He.current.addDiagramListener("TextEdited",function(Xt){var Dn;const ea=Xt.subject.part;var yn=(Dn=document.activeElement)==null?void 0:Dn.value;typeof yn=="string"&&yn.trim()===""&&He.current.model.commit(function(Ra){Ra.set(ea.data,"text","\u672A\u547D\u540D"),He.current.commandHandler.stopCommand()},"increment")}),pa.nodeTemplate=Zt(Ae.NB,"Auto",{locationSpot:Ae.z6.Center},new Ae.KX("location","location",Ae.E9.parse).makeTwoWay(Ae.E9.stringify),Zt(Ae.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new Ae.KX("stroke").makeTwoWay(),new Ae.KX("fill").makeTwoWay(),new Ae.KX("figure")),Zt(Ae.al,{margin:new Ae.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ae.$u(16,16),maxSize:new Ae.$u(10,NaN),textAlign:"center",editable:!0},new Ae.KX("key").makeTwoWay())),setTimeout(()=>{He.current.grid=Zt(Ae.s_,"Grid",Zt(Ae.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Zt(Ae.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),He.current.grid.visible=!0,He.current.grid.gridCellStroke="darkgray",He.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=He.current,He.current}const Ea=()=>zt(this,null,function*(){var Zt=He.current.makeImage();const _n=yield(0,Bn.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Zt.src}});Ke({src:_n.url})});return(0,b.useEffect)(()=>(setTimeout(()=>{Jn()},500),fn(Un+1),()=>{He.current=null}),[]),bt.createElement("div",{ref:qn,className:dn.current?`${ot.maxH60} body-overflow-initial`:"body-overflow-initial"},bt.createElement(Me.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Un,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:bt.createElement(Et.Z,null,bt.createElement(et.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),bt.createElement(et.Z,{onClick:()=>{var Zt,_n,Je=He.current.selection.first();if(dn.current=!dn.current,document.activeElement&&Je){let Kt=(_n=(Zt=document.activeElement)==null?void 0:Zt.value)==null?void 0:_n.trim();typeof Kt=="string"&&He.current.model.commit(function(wn){wn.set(Je.data,"text",Kt||"\u672A\u547D\u540D"),He.current.commandHandler.stopCommand()},"increment")}fn(Un+1)}},bt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:je},bt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ot.flowChartWrp},bt.createElement("div",{style:{display:"flex",height:"100%"}},bt.createElement("div",{style:{width:"300px",height:"100%"}},bt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),bt.createElement("div",{style:{height:"calc(100% - 50px)"},className:ot.myPaletteDiv,ref:sn})),bt.createElement("div",{style:{flex:1,position:"relative"}},bt.createElement("div",{ref:Mt,style:{height:"80vh"}}))),bt.createElement("div",{className:"tr"},bt.createElement(Le.ZP,{size:"large",onClick:Ea,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Rn=St,Ot=oe(5112),Kn=oe(5871);const xn=Ot.ZP.Group,jn={margin:"0 8px"};var $t=({callback:je,onCancel:Ke})=>{function He(Mt){je(Mt)}return b.createElement(Re.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:He},b.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},b.createElement("span",{style:jn},"\u5355\u5143\u683C\u6570\uFF1A"),b.createElement("span",{style:jn},"\u884C\u6570"),b.createElement(Re.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},b.createElement(Kn.Z,null)),b.createElement("span",{style:jn},"\u5217\u6570"),b.createElement(Re.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},b.createElement(Kn.Z,null))),b.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},b.createElement("span",{style:jn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),b.createElement(Re.default.Item,{name:"align"},b.createElement(xn,null,b.createElement(Ot.ZP,{value:"default"},b.createElement("i",{className:"fa fa-align-justify"})),b.createElement(Ot.ZP,{value:"left"},b.createElement("i",{className:"fa fa-align-left"})),b.createElement(Ot.ZP,{value:"center"},b.createElement("i",{className:"fa fa-align-center"})),b.createElement(Ot.ZP,{value:"right"},b.createElement("i",{className:"fa fa-align-right"}))))),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Le.ZP,{type:"ghost",onClick:Ke},"\u53D6\u6D88")))},ma=oe(78673),Wn=oe(13547),ba=oe.n(Wn),mn=(0,b.forwardRef)(({use3d:je,width:Ke,height:He,callback:Mt,showSaveButton:sn},dn)=>{const qn=(0,b.useRef)(),Un=(0,b.useRef)(),[fn,Jn]=(0,b.useState)(!1),Ea=(0,b.useRef)({id:qn,appName:"graphing",width:Ke||1e3,height:He||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,b.useEffect)(()=>{Un.current=new(ba())(Ea.current,!0),window.onload=function(){Un.current.inject("applet_container")}},[]);const Zt=()=>{var _n=window.ggbApplet.getPNGBase64(1,!0,72);return Mt&&Mt(_n),_n};return(0,b.useEffect)(()=>{Ea.current.appName=fn?"3D":"graphing",Un.current.inject("applet_container")},[fn]),(0,b.useEffect)(()=>{Jn(je)},[je]),(0,b.useImperativeHandle)(dn,()=>({getImgData:Zt})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:qn}),b.createElement(Et.Z,{align:"middle"},b.createElement(et.Z,{flex:1},b.createElement(ma.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:fn,onChange:_n=>Jn(_n)})),b.createElement(et.Z,null,b.createElement(Le.ZP,{size:"large",onClick:Zt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),En=oe(29386),Oa=oe(1012),Sa=oe(8591);const wa="link",tn="upload-image",ht="add-flowchart",Sn="draw-image",Cn="add-flowchart",ya="code-block",ra="add-table",Ka="------------",oa={default:Ka,left:`:${Ka}`,center:`:${Ka}:`,right:`${Ka}:`};var Qn=oe(34500),Ya=(je,Ke,He)=>new Promise((Mt,sn)=>{var dn=fn=>{try{Un(He.next(fn))}catch(Jn){sn(Jn)}},qn=fn=>{try{Un(He.throw(fn))}catch(Jn){sn(Jn)}},Un=fn=>fn.done?Mt(fn.value):Promise.resolve(fn.value).then(dn,qn);Un((He=He.apply(je,Ke)).next())});function Ma(){}let Ja=0;const Br=1e4,At="\u2581",On="@\u2581\u2581@",Tn="@\u2581@",Ln=` **\u6A21\u677F\u6807\u9898** -\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,xe=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ft(je){return/^\d+$/.test(je)?`${je}px`:je}const Qt=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Tt={[Qt+"-B"]:"bold",[Qt+"-I"]:"italic"},yt={[Da]:"\u6DFB\u52A0\u94FE\u63A5",[ya]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[en]:"\u6DFB\u52A0\u56FE\u7247",[hn]:"\u6DFB\u52A0\u753B\u56FE",[ht]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[aa]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var An=({defaultValue:je="",onChange:Ke,width:He="100%",height:Rt=400,miniToolbar:dn=!1,isFocus:cn=!1,watch:qn,insertTemp:Un,mode:vn="markdown",id:Jn="markdown-editor-id",showResizeBar:Ea=!1,noStorage:zt=!1,showNullButton:_n=!1,showNullProgramButton:Je=!1,hidetoolBar:Ut=!1,fullScreen:Dn=!1,onBlur:tt,onCMBeforeChange:Xn,onFullScreen:Rn,className:ca="",disablePaste:Vn=!1,disabled:Za=!1,disabledFill:sa=!1,placeholder:_a="",values:$a="",extraUse:gr})=>{const[kt,La]=(0,b.useState)(null),[Vt,wa]=(0,b.useState)(je),[pa,Jt]=(0,b.useState)(qn),[Ln,ea]=(0,b.useState)(Dn),[yn,Ta]=(0,b.useState)(""),[Pa,Va]=(0,b.useState)(0),[dr,Er]=(0,b.useState)(Rt),[Mr,hr]=(0,b.useState)(!1),Jr=(0,b.useRef)((0,Ma.Z)()),Xa=(0,b.useRef)(!1),qa=(0,b.useRef)(),[vr,fa]=(0,b.useState)(0),[lr,mr]=(0,b.useState)(0),Ga=(0,b.useRef)(),tr=(0,b.useRef)(),mt=(0,b.useRef)(),it=(0,b.useRef)(),Ot=()=>Ya(void 0,null,function*(){var Gn;const on=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Jr.current}});(Gn=on==null?void 0:on.attachments)!=null&&Gn.length&&(console.log("cm:",kt,Ga),on.attachments.map(It=>{It.content_type.indexOf("image")>-1?kt.replaceSelection(`![,](/api/attachments/${It.id}?type=${It.content_type})`):It.content_type.indexOf("video")>-1?kt.replaceSelection(``):It.content_type.indexOf("pdf")>-1?kt.replaceSelection(`${It.name}`):kt.replaceSelection(`[${It.name}](${ENV.API_SERVER}/api/attachments/${It.id}?type=${It.content_type})`)}))});(0,b.useEffect)(()=>{const Gn=window.scrollY||window.pageYOffset;wa($a),kt==null||kt.setValue($a),window.scrollTo(0,Gn)},[$a]),(0,b.useEffect)(()=>{Rn==null||Rn(Ln)},[Ln]),(0,b.useEffect)(()=>{if(Ga.current){let Gn=function(It,de){var $e;if(Vn){de.preventDefault();return}const st=de.clipboardData;if(st){const jt=st.types.toString(),at=st.items;if(jt==="Files"||st.types.indexOf("Files")>-1){if(de.preventDefault(),vn=="stex")return;try{let rn=at[1];(($e=at[0])==null?void 0:$e.kind)==="file"&&(rn=at[0]);const qt=rn.getAsFile(),Kt=qt.name.split(".").pop();(0,Qe.I)(qt,_t=>{var oa,Ha,Wa;_t.id?((oa=qt==null?void 0:qt.type)==null?void 0:oa.indexOf("image"))>-1?on.replaceSelection(``):((Ha=qt==null?void 0:qt.type)==null?void 0:Ha.indexOf("video"))>-1?on.replaceSelection(``):((Wa=qt==null?void 0:qt.type)==null?void 0:Wa.indexOf("pdf"))>-1?on.replaceSelection(`${qt.name}`):xe.includes(Kt)?on.replaceSelection(`${qt.name}`):on.replaceSelection(`[${qt.name}](/api/attachments/${_t.id}?type=${_t.content_type})`):(_t==null?void 0:_t.status)===401&&(Sa.ZP.warning((_t==null?void 0:_t.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(rn){Sa.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const on=Be().fromTextArea(Ga.current,{mode:vn,lineNumbers:!dn,lineWrapping:!0,value:je,autoCloseTags:!Je,autoCloseBrackets:!0});return on.on("keyup",function(It,de){de.keyCode===8&&(It.getValue()==""?on.setOption("placeholder",_a):on.setOption("placeholder",null))}),on.on("keydown",function(It,de){if(de.keyCode===8){var $e=ua(It);$e&&de.preventDefault()}}),cn&&on.focus(),on.on("paste",Gn),on.on("dragleave",function(It,de){tr.current.classList.remove("mouse-hover-md")}),Za&&on.on("beforeChange",function(It,de){(de.origin==="paste"||de.origin==="+input")&&de.cancel()}),La(on),()=>{on.off("paste",Gn)}}},[]);const gn=(0,b.useCallback)(()=>{if(tr.current)try{}catch(Gn){console.log(Gn,"---- to set md editor body height")}},[dr,tr,Ln]);(0,b.useEffect)(()=>{function Gn(){let on=new Ie.Z(It=>{for(let de of It)(de.target.offsetHeight>0||de.target.offsetWidth>0)&&(gn(),kt.setSize("100%","100%"),kt.refresh())});return on.observe(Ga.current.parentElement),on}if(kt){const on=Gn();return()=>{var It,de;(It=Ga.current)!=null&&It.parentElement&&on.unobserve((de=Ga.current)==null?void 0:de.parentElement)}}},[kt,gn]),(0,b.useEffect)(()=>{if(kt){let Gn=[];for(const[on,It]of Object.entries(Tt)){let de={[on]:()=>{Ia(It)}};Gn.push(de),kt.addKeyMap(de)}return qa.current=setInterval(()=>{Xa.current&&Ot()},4e3),()=>{clearInterval(qa.current);for(let on of Gn)kt.removeKeyMap(on)}}},[kt]),(0,b.useEffect)(()=>{Dn!==Ln&&ea(Dn)},[Dn]),(0,Qn.Z)(()=>{if(!zt&&Pa>0){let Gn=new Date().getTime(),on=window.sessionStorage.getItem(Jn);Gn>=Pa+Br&&(!on||on!==Vt)&&(window.sessionStorage.setItem(Jn,Vt),hr(!0))}},Br),(0,b.useEffect)(()=>{Jt(qn)},[kt,qn]),(0,b.useEffect)(()=>{kt&&cn&&kt.focus()},[kt,cn]),(0,b.useEffect)(()=>{if(pa&&kt){let Gn=function(It){let de=It.target;if(it.current){let $e=de.scrollTop/de.scrollHeight;it.current.scrollTop=it.current.scrollHeight*$e}};const on=kt.getScrollerElement();return on.addEventListener("scroll",Gn),()=>{on.removeEventListener("scroll",Gn)}}},[kt,pa]),(0,b.useEffect)(()=>{if(kt&&Xn){let Gn=function(on,It){Xn(on,It)};return kt.on("beforeChange",Gn),()=>{kt.off("beforeChange",Gn)}}},[kt,Xn]),(0,b.useEffect)(()=>{if(kt&&tt){let Gn=function(){tt(kt.getValue())};return kt.on("blur",Gn),()=>{kt.off("blur",Gn)}}},[kt,tt]);function ua(Gn,on){var It=Gn.getDoc(),de=It.getCursor(),$e=It.getLine(de.line),st=$e.charAt(de.ch-1),jt=$e.lastIndexOf("@\u2581@",de.ch),at=$e.lastIndexOf("@\u2581\u2581@",de.ch),rn=jt>at?jt:at,qt=jt>at?3:4;if(Mn.indexOf(st)===-1)return null;if(console.log("change1:",on,Gn,$e,de,rn,jt,at,st),rn>=0&&de.ch-rn<5){var Kt=rn+qt;return It.replaceRange("",{line:de.line,ch:rn},{line:de.line,ch:Kt}),{line:de.line,ch:Kt}}return null}(0,b.useEffect)(()=>{if(kt){let Gn=function(on,It){const de=on.getValue();wa(de),Va(new Date().getTime()),on.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ke&&(Je?Ke(de,pr(de)):Ke(de))};return kt.on("change",Gn),()=>{kt.off("change",Gn)}}},[kt,Ke]),(0,b.useEffect)(()=>{if(kt)if(je==null)kt.setValue(""),wa("");else{const Gn=window.scrollY||window.pageYOffset;je!==kt.getValue()&&(kt.setValue(je),wa(je),kt.setCursor(Za?1:kt.lineCount(),0),window.scrollTo(0,Gn))}},[kt,je]);const Ia=(0,b.useCallback)(Gn=>{const on=kt.getCursor(),It=kt.getSelection();let de=It.split(` -`);switch(Gn){case"bold":return kt.replaceSelection("**"+It+"**"),It===""&&kt.setCursor(on.line,on.ch+2),kt.focus();case"italic":return kt.replaceSelection("*"+It+"*"),It===""&&kt.setCursor(on.line,on.ch+1),kt.focus();case"code":return kt.replaceSelection("`"+It+"`"),It===""&&kt.setCursor(on.line,on.ch+1),kt.focus();case"inline-latex":return Ta("inline-latex"),kt.focus();case"latex":return kt.replaceSelection("```latex\n"+It+"\n```"),kt.setCursor(on.line+1,It.length+1),kt.focus();case"line-break":return kt.replaceSelection(`
-`),kt.focus();case"list-ul":return It===""?kt.replaceSelection("- "+It):kt.replaceSelection(de.map($e=>$e===""?"":`- ${$e}`).join(` -`)),kt.focus();case"list-ol":return It===""?kt.replaceSelection("1. "+It):kt.replaceSelection(de.map(($e,st)=>$e===""?"":`${st+1}. ${$e}`).join(` -`)),kt.focus();case"add-null-ch":return It===""&&kt.setCursor(on.line,on.ch),kt.replaceSelection(At),kt.focus();case"add-signal":return It===""&&kt.setCursor(on.line,on.ch),kt.replaceSelection(kn),kt.focus();case"add-multiple":return It===""&&kt.setCursor(on.line,on.ch),kt.replaceSelection(Mn),kt.focus();case"inster-template-1":return It===""&&kt.setCursor(on.line,on.ch),kt.replaceSelection(In),kt.focus();case"eraser":return kt.setValue(""),kt.focus();case"trigger-watch":return Jt(!pa),kt.focus();case"trigger-full-screen":return ea(!Ln),kt.focus();case Da:Ta(Da);return;case ya:Ta(ya);return;case en:Ta(en);return;case hn:Ta(hn);return;case"maths-latex":Ta("maths-latex");return;case ht:Ta(ht);return;case aa:Ta(aa);return;default:throw new Error}},[kt,pa,Ln]),tn=(0,b.useCallback)((Gn,on)=>{var It,de,$e,st,jt,at;switch(Ta(""),yn){case Da:const{title:oa,link:Ha}=Gn;return kt.replaceSelection(`[${oa}](${Ha})`),kt.focus();case ya:const{language:Wa,content:pn}=Gn;return kt.replaceSelection(["```"+Wa,pn,"```"].join(` -`)),kt.focus();case"maths-latex":for(var rn=atob(Gn),qt=new Uint8Array(rn.length),Kt=0;Kt{Zr.id?kt.replaceSelection(`![,](/api/attachments/${Zr.id}?type=${Zr.content_type})`):(Zr==null?void 0:Zr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":kt.replaceSelection("`$$"+Gn+"$$`");break;case en:case hn:case xn:const{src:Na,alt:xa}=Gn,ja=on,Ir=($e=(de=(It=ja==null?void 0:ja.name)==null?void 0:It.split("."))==null?void 0:de.pop)==null?void 0:$e.call(de);return((st=ja==null?void 0:ja.type)==null?void 0:st.indexOf("image"))>-1||!(ja!=null&&ja.type)?ja.align||ja.width?kt.replaceSelection(`

${xa||

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

${Ca||

`):Tt.replaceSelection(`${Ca||`):((Ht=ja==null?void 0:ja.type)==null?void 0:Ht.indexOf("video"))>-1?Tt.replaceSelection(``):((at=ja==null?void 0:ja.type)==null?void 0:at.indexOf("pdf"))>-1?Tt.replaceSelection(`${ja.name}`):xe.includes(Ir)?Tt.replaceSelection(`${ja.name}`):Tt.replaceSelection(`[${ja.name}](${Ia})`),Tt.focus();case ra:const{row:Qr,col:Rr,align:Wr}=Gn;let jr=` +`;for(let Zr=0;Zr{switch(yn){case Da:return b.createElement(Nt,{callback:tn,onCancel:Aa});case ya:return b.createElement(Wt.Z,{callback:tn,onCancel:Aa});case en:return b.createElement(Qe.Z,{callback:tn,onCancel:Aa});case ht:return b.createElement(Tn,{callback:tn,onCancel:Aa});case aa:return b.createElement($t,{callback:tn,onCancel:Aa});case"maths-latex":return b.createElement(mn,{showSaveButton:!0,callback:tn});case"inline-latex":return b.createElement(En.Z,{showSaveButton:!0,callback:tn});default:return null}},[yn]);function Aa(){Ta("")}(0,b.useEffect)(()=>{if(mt.current){let Gn=function(jt){$e=!0,st=jt.pageY},on=function(){$e=!1},It=function(jt){if($e){let at=jt.pageY-st;at<0&&(at=0),at>300&&(at=300);let rn=Rt+at+"px";Er(rn)}},de=mt.current,$e=!1,st=0;return de.addEventListener("mousedown",Gn),document.addEventListener("mousemove",It),document.addEventListener("mouseup",on),()=>{de.removeEventListener("mousedown",Gn),document.removeEventListener("mousemove",It),document.removeEventListener("mouseup",on)}}},[kt,mt]),(0,b.useEffect)(()=>{Er(Rt)},[Rt]);const nr=ft(He),ka=ft(dr),ga={width:nr,height:ka},Qa=(0,b.useMemo)(()=>{if(Pa){let Gn=new Date(Pa),on=Gn.getHours(),It=Gn.getMinutes(),de=Gn.getSeconds();return on=on<10?"0"+on:on,It=It<10?"0"+It:It,de=de<10?"0"+de:de,`${on}:${It}:${de}`}return 0},[Pa]),pr=Gn=>{const on=[];if(Je){let It=-1;Gn=Gn.replace(/(@▁▁@|@▁@)/g,function(de,$e,st){on.push({multiLine:de!==kn})})}return on};function Gr(){window.sessionStorage.removeItem(Jn),hr(!1),Va(0)}function er(){hr(!1),Va(0),kt.setValue(window.sessionStorage.getItem(Jn))}(0,b.useEffect)(()=>{yt[yn]&&yn!==hn&&yn!==ht&&setTimeout(()=>{const Gn=document.getElementsByClassName("markdown-popup-form")[0],on=window.innerWidth/2-Gn.offsetWidth/2,It=window.innerHeight/2-Gn.offsetHeight/2;fa(on),mr(It)},0)},[yn]);const fr=Gn=>{Gn.preventDefault();const on=Gn.clientX-vr,It=Gn.clientY-lr;document.body.onmousemove=de=>{let $e=de.clientX-on,st=de.clientY-It;const jt=document.getElementsByClassName("markdown-popup-form")[0],at=window.innerWidth-jt.offsetWidth,rn=window.innerHeight-jt.offsetHeight;$e=Math.max(0,Math.min($e,at)),st=Math.max(0,Math.min(st,rn)),Dr(de.clientX,de.clientY,on,It)&&(fa($e),mr(st))},document.body.onmouseup=function(){document.body.onmousemove=null}},Dr=(Gn,on,It,de)=>{const $e=document.body.clientHeight,st=document.body.clientWidth;return Gn<20&&It>Gn||Gn>st-20&&Iton||on>$e-20&&delt in Re?We(Re,lt,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Re[lt]=Le,z=(Re,lt)=>{for(var Le in lt||(lt={}))a.call(lt,Le)&&y(Re,Le,lt[Le]);if(E)for(var Le of E(lt))x.call(lt,Le)&&y(Re,Le,lt[Le]);return Re},ne=(Re,lt)=>Ve(Re,le(lt));const{useForm:re}=b.default,ie={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}};var fe=({callback:Re,onCancel:lt})=>{const[Le]=re();let Ce=(0,ke.useRef)();function Xe(gt){Ce.current.width=Le.getFieldValue("width"),Ce.current.align=Le.getFieldValue("align"),Re(gt,Ce.current)}function nt(gt,pt){if(gt.status===-1){he.ZP.error(gt.message);return}Le.setFieldsValue({src:`/api/attachments/${gt.id}`,type:pt.type})}function ye(gt){let pt=gt.target.files[0];Ce.current=pt,Ue(pt,nt)}return Oe.createElement(b.default,ne(z({form:Le},ge),{className:"upload-image-panel",onFinish:Xe,style:{width:470,overflow:"hidden"}}),Oe.createElement(b.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Oe.createElement("div",{className:"flex-container"},Oe.createElement(b.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Oe.createElement(Be.default,{style:ie})),Oe.createElement(Pe,{onFileChange:ye}))),Oe.createElement(b.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Oe.createElement(Be.default,{style:{width:264}})),Oe.createElement(b.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Oe.createElement(Ie.Z,null,Oe.createElement(b.default.Item,{name:"width",style:{margin:0}},Oe.createElement(be.Z,{style:{width:264}})),Oe.createElement("span",{className:"ml8"},"%"))),Oe.createElement(b.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Oe.createElement(Ge.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Oe.createElement("aside",null,Oe.createElement(b.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Oe.createElement(Fe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Oe.createElement(Fe.ZP,{type:"default",onClick:lt},"\u53D6\u6D88"))))};function Pe({onFileChange:Re}){return Oe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Oe.createElement("input",{type:"file",onChange:Re}))}function Ue(Re,lt){if(!Re)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,De.bg)())throw he.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Le=new FormData;Le.append("editormd-image-file",Re),Le.append("file_param_name","editormd-image-file"),Le.append("byxhr","true");var Ce=new window.XMLHttpRequest;Ce.withCredentials=!0,Ce.addEventListener("load",function(Xe){lt(JSON.parse(Xe.target.responseText),Re)},!1),Ce.addEventListener("error",function(Xe){console.error(Xe)},!1),Ce.open("POST",`${Ye.KI}/api/attachments.json`),Ce.send(Le)}},23252:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Be}});var b=oe(59301),he=oe(4676);class Be extends b.Component{constructor(be){super(be);const Ge=window.document;this.node=Ge.createElement("div"),Ge.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,he.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},50543:function(_e,xt,oe){"use strict";oe.d(xt,{i:function(){return ge},Z:function(){return Pe}});var b={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},he=oe(71418),Be=oe(6848),Ie=oe(93948),be=oe(92310),Ge=oe.n(be),Fe=oe(21331),Ye=oe(41625),ke=oe(35219),De=oe(79005),Oe=oe(20345),We=oe(77882),Ve=oe(31081),le=oe(75309),E=oe(71979),a=oe(47558),x=oe(42922),y=oe(66832),z=oe(96593),ne=oe(19664),re=oe(91833),ie=oe(59301);const ge=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:De,swimg:Oe},{name:"101\u8BA1\u5212",ptimg:We,swimg:Ve},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:le,swimg:E},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:a,swimg:x},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:y,swimg:z},{name:"\u519B\u961F\u4E00\u6D41",ptimg:ne,swimg:re}];var Pe=({className:Ue,dataSource:Re=[],col:lt=4,right:Le,bottom:Ce=23,precision:Xe=0,wrapWidth:nt=1200,trackEventItems:ye,loading:gt,onRemove:pt=()=>{},isCurrent:wt=!0,showAlias:ut=!1,showProgress:Yt=!1})=>{const ln=Math.floor((nt-(lt-1)*Le)/lt),Nt=[{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(Wt=>(window.ENV==="build"&&(Wt.ptimg=`/react/build${Wt.ptimg}`,Wt.swimg=`/react/build${Wt.swimg}`),Wt));return ie.createElement(he.Z,{spinning:gt},ie.createElement("div",{className:Ge()(b.list,Ue)},!!(Re!=null&&Re.length)&&(Re==null?void 0:Re.map((Wt,Qe)=>{var Me,Et,Gt,vt,Dt,Ae;const{name:dt,id:un,identifier:ct,featured:et,school_name:bn,image_url:ot,excellent:Bt,is_plan:Ht}=Wt;return ie.createElement("div",{key:un,className:wt&&Yt?b.wrapisCurrent:b.wrap,style:{width:ln,marginRight:(1+Qe)%lt===0?0:Le+Xe,marginBottom:Ce}},ie.createElement("a",{className:b.li,onClick:St=>{St.preventDefault(),St.stopPropagation(),ye&&(0,Fe.L9)([ye]),(0,Fe.xg)(`/paths/${ct}`)}},ie.createElement("div",{className:b.img},ie.createElement("img",{className:b.cover,src:`${ot}`}),wt&&(0,ke.bg)()&&(Wt==null?void 0:Wt.studying)&&ie.createElement("div",{className:`${b.movebq} user-path-items`,onClick:St=>{St.stopPropagation(),pt(Wt)}},ie.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ie.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Me=Wt==null?void 0:Wt.subject_tags)==null?void 0:Me.map((St,Tn)=>{var Mt,Kn;if(Tn===0){const jn=(Mt=Nt.find($t=>$t.name==St))==null?void 0:Mt.swimg;return ie.createElement("img",{className:b.sign,src:jn,style:{left:"-4px"}})}const wn=(Kn=Nt.find(jn=>jn.name==St))==null?void 0:Kn.ptimg;return ie.createElement("img",{className:b.sign,src:wn,style:{left:`${48+52*(Tn-1)+2*Tn}px`}})}),ie.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Wt==null?void 0:Wt.excellent)&&ie.createElement("div",{className:b.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ie.createElement("div",{className:b.name},ie.createElement(Be.Z,{title:ut&&(Wt!=null&&Wt.excellent_alias_name)?ie.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${dt}`,ie.createElement("br",null),ie.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Wt==null?void 0:Wt.excellent_alias_name}`)):dt},ie.createElement("span",{className:b.e},ut&&(Wt==null?void 0:Wt.excellent_alias_name)||dt))),wt&&Yt&&((Et=Wt==null?void 0:Wt.progress)==null?void 0:Et.all_score)!=0&&ie.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},ie.createElement(Ie.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Gt=Wt==null?void 0:Wt.progress)==null?void 0:Gt.my_score)/((vt=Wt==null?void 0:Wt.progress)==null?void 0:vt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Dt=Wt==null?void 0:Wt.progress)==null?void 0:Dt.my_score,"/",(Ae=Wt==null?void 0:Wt.progress)==null?void 0:Ae.all_score),(!wt||!Yt)&&ie.createElement("div",{className:b.tags},ie.createElement("div",null,ie.createElement(Be.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ie.createElement("span",null,ie.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ie.createElement("span",null,Wt.stages_count))),ie.createElement(Be.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ie.createElement("span",null,ie.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ie.createElement("span",null,Wt.members_count)))))))})),!Re.length&&ie.createElement(Ye.Z,null)))}},14739:function(_e,xt,oe){"use strict";oe.d(xt,{jL:function(){return be},w9:function(){return sn},dN:function(){return Sa},QD:function(){return vn},cQ:function(){return vt.Z},Oz:function(){return jn},op:function(){return He},O5:function(){return Vt},_b:function(){return Ut},t7:function(){return Re},Gi:function(){return ra},YG:function(){return hn},kT:function(){return aa},qp:function(){return x},K3:function(){return ne},vr:function(){return zt},qE:function(){return cn},Je:function(){return Ce},wb:function(){return Qe},lB:function(){return Gt},cq:function(){return At},tp:function(){return ge},Si:function(){return Jt},k8:function(){return tr},Du:function(){return Er}});var b=oe(59301),he={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Be="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIv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/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",be=({dataSource:mt=[],img:it,imgWidth:Ot=346,title:gn,sunTitle:ua,bannerExtraContent:Ia})=>b.createElement("div",{className:he.banner},b.createElement("div",{className:he.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,gn),b.createElement("span",null,ua)),mt.length>0&&b.createElement("div",{className:he.btns},mt.map((tn,Ba)=>b.createElement("div",{key:Ba,onClick:tn.click},tn.name,tn.sign?b.createElement("img",{src:Be,width:39}):null))),Ia),it&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:it,width:Ot}))),Ge={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Fe=oe(92310),Ye=oe.n(Fe),ke=oe(78267),De=Object.defineProperty,Oe=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,le=(mt,it,Ot)=>it in mt?De(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):mt[it]=Ot,E=(mt,it)=>{for(var Ot in it||(it={}))We.call(it,Ot)&&le(mt,Ot,it[Ot]);if(Oe)for(var Ot of Oe(it))Ve.call(it,Ot)&&le(mt,Ot,it[Ot]);return mt},x=({dataSource:mt=[],value:it,onChange:Ot,onTitleChange:gn,className:ua,title:Ia,titleWidth:tn=41,style:Ba={},fontColor:Aa="#6A7283",showCount:nr,classNameActive:ka,styleItem:ga={}})=>{const[Qa,pr]=(0,b.useState)(0),[Gr,er]=(0,b.useState)(!1),fr=(0,b.useRef)(null),Dr=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var Gn;mt.length!==0&&(((Gn=fr==null?void 0:fr.current)==null?void 0:Gn.clientHeight)>97?pr(1):pr(0)),mt.length===0&&pr(0),er(!1)},[mt]),b.createElement("div",{className:Ye()(Ge.row,ua),style:Ba},b.createElement("div",{onClick:(0,ke.throttle)(()=>gn==null?void 0:gn(),2e3),style:{width:tn,marginTop:Gr?12:4},className:`${Ge.title} ${gn?"current":""}`},Ia),b.createElement("div",{className:Gr?`${Ge.tagsWrap} ${Ge.tagsBorderWrap}`:Ge.tagsWrap},b.createElement("div",{className:Ge.bar,ref:Dr,style:Qa>0?{height:Qa===1?97:"auto",overflow:Qa===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:Ge.tag,ref:fr},mt==null?void 0:mt.map(Gn=>b.createElement("span",{onClick:()=>Ot(Gn.id),key:Gn.id,style:E(E({color:Aa},ga),(Gn==null?void 0:Gn.style)||{}),className:it===Gn.id?Ye()(ka||Ge.active,Gn.classNameActive):""},b.createElement("span",{title:Gn.name,className:Ge.name},Gn.name),!!nr&&b.createElement("span",{className:Ge.num},Gn.count))))),!!Qa&&b.createElement(b.Fragment,null,Qa===1?b.createElement("div",{onClick:()=>{var Gn;pr(2),((Gn=fr==null?void 0:fr.current)==null?void 0:Gn.clientHeight)>245?er(!0):er(!1)},className:Ge.action},"\u5C55\u5F00",b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{Dr.current.scrollTop=0,pr(1),er(!1)},className:Ge.action},"\u6536\u8D77",b.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},y={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},ne=({dataSource:mt=[],value:it,onChange:Ot,onTitleChange:gn,className:ua,title:Ia,titleWidth:tn=41,style:Ba={},fontColor:Aa="#6A7283",showCount:nr,expand:ka=!0})=>{const[ga,Qa]=(0,b.useState)(0),[pr,Gr]=(0,b.useState)(!1),er=(0,b.useRef)(null),fr=(0,b.useRef)(null),[Dr,Gn]=(0,b.useState)(ka);return b.createElement("div",{className:Ye()(y.row,ua),style:Ba},b.createElement("div",{className:"flex item-center justify-between"},b.createElement("div",{onClick:(0,ke.throttle)(()=>gn==null?void 0:gn(),2e3),style:{width:tn,marginTop:pr?12:4},className:`${y.title} ${gn?"current":""}`},Ia),b.createElement("i",{className:`iconfont ${Dr?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:Dr?8:10},onClick:()=>Gn(!Dr)})),Dr&&b.createElement("div",{className:pr?`${y.tagsWrap} ${y.tagsBorderWrap}`:y.tagsWrap},b.createElement("div",{className:y.fenge}),b.createElement("div",{className:y.bar,ref:fr},b.createElement("div",{className:y.tag,ref:er},mt==null?void 0:mt.map(on=>b.createElement("span",{onClick:()=>Ot(on.id),key:on.id,style:{color:Aa},className:it===on.id?y.active:""},b.createElement("span",{title:on.name,className:y.name},on.name),!!nr&&b.createElement("span",{className:y.num},on.count)))))))},re={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},ge=({dataSource:mt=[],value:it,onChange:Ot,className:gn,style:ua={}})=>b.createElement("div",{style:ua,className:Ye()(re.tabs,gn)},mt.map(Ia=>b.createElement("span",{onClick:()=>Ot(Ia.id),className:it===Ia.id?re.active:"",key:Ia.id},Ia.name))),fe={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Pe=oe(92832),Re=({dataSource:mt=[],value:it="",onChange:Ot,onInputChange:gn=()=>{},className:ua,style:Ia={},placeholder:tn,allowClear:Ba=!1})=>{var Aa;const[nr,ka]=(0,b.useState)(""),[ga,Qa]=(0,b.useState)("");(0,b.useEffect)(()=>{var er;let fr=it;(er=JSON.stringify(it))!=null&&er.includes("{")&&(ka(it.id),fr=it.value||"");try{Qa(decodeURIComponent(fr||""))}catch(Dr){Qa(decodeURIComponent(fr||""))}},[it]);const pr=()=>{Ot(encodeURIComponent(ga),nr||null)},Gr=er=>{er!==nr&&(ka(er),Ot(encodeURIComponent(ga),er))};return b.createElement("div",{className:Ye()(fe.input,ua),style:Ia},!!mt.length&&b.createElement("div",{className:fe.dropdown},b.createElement("div",{className:fe.text},(Aa=mt.find(er=>er.id===nr))==null?void 0:Aa.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:fe.b1}),b.createElement("b",{className:fe.b2})),b.createElement("div",{className:fe.menu},mt.map((er,fr)=>b.createElement("div",{key:fr,onClick:()=>Gr(er.id)},er.name)))),b.createElement(Pe.default,{onPressEnter:pr,value:ga,onChange:er=>{Qa(er.target.value),gn(encodeURIComponent(er.target.value),nr||null)},bordered:!1,placeholder:tn}),b.createElement("i",{onClick:pr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},lt={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Ce=({value:mt,onChange:it,className:Ot,total:gn,pageSize:ua,style:Ia={}})=>{const tn=mt<2,Ba=mt>=Math.ceil(gn/ua);return gn<=ua?b.createElement(b.Fragment,null):b.createElement("div",{className:Ye()(lt.quickPager,Ot),style:Ia},b.createElement("div",{onClick:()=>{tn||it(mt-1,"prev")},className:tn?lt.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{Ba||it(mt+1,"next")},className:Ba?lt.disabled:""},"\u4E0B\u4E00\u9875"))},Xe={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},nt=oe(71418),ye=oe(6848),gt=oe(13570),pt=oe(41510),wt=oe(21331),ut=oe(96908),Yt=oe(57177),ln=oe(81378),Nt=oe(41625),Qe=({className:mt,dataSource:it=[],col:Ot=4,right:gn,bottom:ua=23,precision:Ia=0,wrapWidth:tn=1200,trackEventItems:Ba,loading:Aa})=>{const nr=Math.floor((tn-(Ot-1)*gn)/Ot);return b.createElement(nt.Z,{spinning:Aa},b.createElement("div",{className:Ye()(Xe.list,mt)},!!it.length&&it.map((ka,ga)=>{const{name:Qa,id:pr,identifier:Gr,power:er,cover_image_id:fr,pic:Dr}=ka;return b.createElement("div",{className:Xe.wrap,key:pr,style:{width:nr,marginRight:(1+ga)%Ot===0?0:gn+Ia,marginBottom:ua}},b.createElement("a",{target:"_blank",href:`/shixuns/${Gr}/challenges`,className:Xe.li,onClick:Gn=>{Gn.preventDefault(),Ba&&(0,wt.L9)([Ba]),er&&(0,wt.xg)(`/shixuns/${Gr}/challenges`)}},b.createElement("div",{className:Xe.img},b.createElement("img",{className:Xe.cover,src:`${Dr}`}),ka.is_jupyter&&b.createElement("img",{className:Xe.sign,src:ut}),ka.is_jupyter_lab&&b.createElement("img",{className:Xe.sign,src:Yt}),ka.is_unity_3d&&b.createElement("img",{className:Xe.sign,src:ln})),b.createElement("div",{className:Xe.name},b.createElement(ye.Z,{title:Qa||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:Xe.e},Qa||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{className:Xe.tags},b.createElement(ye.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),b.createElement("span",null,ka.challenges_count))),!!ka.myshixuns_count&&b.createElement(ye.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),b.createElement("span",null,ka.myshixuns_count))),b.createElement(ye.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},b.createElement("span",null,b.createElement("span",null,ka.level))),b.createElement("div",{className:Xe.rate},b.createElement(gt.Z,{allowHalf:!0,disabled:!0,defaultValue:ka.score_info}),b.createElement("span",null,"\xA0",ka.score_info?`${ka.score_info}\u5206`:"5\u5206")))),!er&&b.createElement("div",{className:Xe.lockWrap},b.createElement("img",{src:`${pt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!it.length&&b.createElement(Nt.Z,null)))},Me={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},Gt=({className:mt,dataSource:it=[],col:Ot=4,right:gn,bottom:ua=23,precision:Ia=0,wrapWidth:tn=1200,wrapClassName:Ba,trackEventItems:Aa,loading:nr})=>{const ka=Math.floor((tn-(Ot-1)*gn)/Ot);return b.createElement(nt.Z,{spinning:nr},b.createElement("div",{className:Ye()(Me.list,mt)},!!it.length&&it.map((ga,Qa)=>{const{name:pr,id:Gr,identifier:er,power:fr,cover_image_id:Dr,pic:Gn}=ga;return b.createElement("div",{className:Ye()(Me.wrap,Ba),key:Gr,style:{width:ka,marginRight:(1+Qa)%Ot===0?0:gn+Ia,marginBottom:ua}},b.createElement("a",{target:"_blank",href:`/shixuns/${er}/challenges`,className:Me.li,onClick:on=>{on.preventDefault(),Aa&&(0,wt.L9)([Aa]),fr&&(0,wt.xg)(`/shixuns/${er}/challenges`)}},b.createElement("img",{src:oe(47621),className:Me.titleBg}),b.createElement("div",{className:Me.name},b.createElement(ye.Z,{title:pr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:Me.e},pr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{style:{padding:"14px",paddingBottom:0}},b.createElement("div",{className:Me.img},b.createElement("img",{className:Me.cover,src:Dr?`${pt.Z.API_SERVER}/api/attachments/${Dr}`:`${pt.Z.IMG_SERVER+Gn}`}),ga.is_jupyter&&b.createElement("div",{className:Me.bq},"Jupyter"),ga.is_jupyter_lab&&b.createElement("div",{className:Me.bq},"JupyterLab"),ga.is_unity_3d&&b.createElement("div",{className:Me.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:Me.text},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:Me.value},ga.myshixuns_count)),b.createElement("div",null,b.createElement("span",{className:Me.text},"\u56F0\u96BE\u7B49\u7EA7"),b.createElement("span",{className:Me.value},ga.level))),b.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:Me.text},"\u5173\u5361\u6570"),b.createElement("span",{className:Me.value},ga.challenges_count)),b.createElement("div",{className:Me.rate},b.createElement(gt.Z,{allowHalf:!0,disabled:!0,defaultValue:ga.score_info}),b.createElement("span",{className:Me.value,style:{color:"#FF9C00"}},"\xA0",ga.score_info?`${ga.score_info}\u5206`:"5\u5206"))))),!fr&&b.createElement("div",{className:Me.lockWrap},b.createElement("img",{src:`${pt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!it.length&&b.createElement(Nt.Z,null)))},vt=oe(50543),Dt={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},Ae=oe(79005),dt=oe(20345),un=oe(77882),ct=oe(31081),et=oe(75309),bn=oe(71979),ot=oe(47558),Bt=oe(42922),Ht=oe(66832),St=oe(96593),Tn=oe(19664),Mt=oe(91833);const Kn=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ae,swimg:dt},{name:"101\u8BA1\u5212",ptimg:un,swimg:ct},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:et,swimg:bn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:ot,swimg:Bt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Ht,swimg:St},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Tn,swimg:Mt}];var jn=({className:mt,dataSource:it=[],col:Ot=4,right:gn,bottom:ua=23,precision:Ia=0,wrapWidth:tn=1200,trackEventItems:Ba,loading:Aa,wrapClassName:nr,imgClassName:ka,isArrow:ga=!1})=>{const Qa=Math.floor((tn-(Ot-1)*gn)/Ot),[pr,Gr]=(0,b.useState)(),[er,fr]=(0,b.useState)(),Dr=on=>Gr(on),Gn=()=>Gr(-1);return b.createElement(nt.Z,{spinning:Aa},b.createElement("div",{className:Ye()(Dt.list,mt)},!!(it!=null&&it.length)&&(it==null?void 0:it.map((on,It)=>{var de;const{name:$e,id:st,identifier:jt,featured:at,school_name:rn,image_url:qt,excellent:Kt,is_plan:_t}=on;return b.createElement("div",{key:st,className:Ye()(Dt.wrap,nr),style:{width:Qa,marginRight:(1+It)%Ot===0?0:gn+Ia,marginBottom:ua}},b.createElement("a",{target:"_blank",href:`/paths/${jt}`,className:Dt.li,onClick:oa=>{oa.preventDefault(),Ba&&(0,wt.L9)([Ba]),(0,wt.xg)(`/paths/${jt}`)}},b.createElement("img",{src:oe(39057),className:Dt.titleBg}),b.createElement("div",{className:Dt.name},b.createElement(ye.Z,{title:$e},b.createElement("span",{className:Dt.e,style:{color:ga&&pr===It?"#145DFF":"#000000"},onMouseEnter:()=>{Dr(It)},onMouseLeave:Gn},$e))),b.createElement("div",{style:{padding:"14px",paddingBottom:0}},b.createElement("div",{className:Ye()(Dt.img,ka)},b.createElement("img",{className:Dt.cover,src:`${pt.Z.IMG_SERVER+qt}`}),(de=on==null?void 0:on.subject_tags)==null?void 0:de.map((oa,Ha)=>{var Wa,pn;if(Ha===0){const xa=(Wa=Kn.find(ja=>ja.name==oa))==null?void 0:Wa.swimg;return b.createElement("img",{className:Dt.sign,src:xa,style:{left:"-4px"}})}const Na=(pn=Kn.find(xa=>xa.name==oa))==null?void 0:pn.ptimg;return b.createElement("img",{className:Dt.sign,src:Na,style:{left:`${48+52*(Ha-1)+2*Ha}px`}})}),b.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(on==null?void 0:on.excellent)&&b.createElement("div",{className:Dt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),b.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:Dt.text},"\u7AE0\u8282\u6570"),b.createElement("span",{className:Dt.value},on.stages_count)),b.createElement("div",null,b.createElement("span",{className:Dt.text},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:Dt.value},on.members_count))))))})),!it.length&&b.createElement(Nt.Z,null)))},$t={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ma="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0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Wq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Wn=oe(59301),sn=({className:mt,dataSource:it=[],col:Ot=4,right:gn,bottom:ua=23,precision:Ia=0,wrapWidth:tn=1200,trackEventItems:Ba,loading:Aa})=>{const nr=Math.floor((tn-(Ot-1)*gn)/Ot);return Wn.createElement(nt.Z,{spinning:Aa},Wn.createElement("div",{className:Ye()($t.list,mt)},!!it.length&&it.map((ka,ga)=>{const{subject_identifier:Qa,id:pr,identifier:Gr,power:er}=ka,fr=ka.is_public!=0&&ka.is_public;return Wn.createElement("div",{className:$t.wrap,key:pr,style:{width:nr,marginRight:(1+ga)%Ot===0?0:gn+Ia,marginBottom:ua}},Wn.createElement("a",{className:$t.li,onClick:Dr=>{Dr.preventDefault(),Ba&&(0,wt.L9)([Ba]),(0,wt.xg)(ka.first_category_url)}},Wn.createElement("div",{className:$t.top},Wn.createElement(ye.Z,{title:ka.name},Wn.createElement("div",{className:$t.name},ka.name)),Wn.createElement("img",{className:$t.img,src:pt.Z.IMG_SERVER+"/images/"+ka.avatar_url}),Wn.createElement("div",{className:$t.text,title:ka.creator},ka.creator),Qa&&Wn.createElement("div",{className:$t.btns},Wn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Wn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),fr&&Wn.createElement("div",{className:$t.sign},"\u516C\u5F00")),Wn.createElement("div",{className:$t.bottom},ka.visits>0&&Wn.createElement(ye.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Wn.createElement("span",null,Wn.createElement("i",{className:"iconfont icon-liulanyan"}),Wn.createElement("span",null,ka.visits))),ka.course_members_count>0&&Wn.createElement(ye.Z,{title:"\u6210\u5458",placement:"bottom"},Wn.createElement("span",null,Wn.createElement("i",{className:"iconfont icon-chengyuan"}),ka.course_members_count)),ka.tasks_count>0&&Wn.createElement(ye.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Wn.createElement("span",null,Wn.createElement("i",{className:"iconfont icon-zuoye"}),ka.tasks_count)),ka.is_end?Wn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Wn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!ka.is_accessible&&Wn.createElement("div",{className:$t.lockWrap},Wn.createElement("img",{src:`${pt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Wn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!it.length&&Wn.createElement(Nt.Z,null)))},mn={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"},En="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAA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XJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Sa=({className:mt,dataSource:it=[],col:Ot=4,right:gn,bottom:ua=23,precision:Ia=0,wrapWidth:tn=1200,wrapClassName:Ba,trackEventItems:Aa,loading:nr})=>{const ka=Math.floor((tn-(Ot-1)*gn)/Ot);return b.createElement(nt.Z,{spinning:nr},b.createElement("div",{className:Ye()(mn.list,mt)},!!it.length&&it.map((ga,Qa)=>{const{subject_identifier:pr,id:Gr,identifier:er,power:fr}=ga,Dr=ga.is_public!=0&&ga.is_public;return b.createElement("div",{className:Ye()(`${mn.wrap} ${ga.is_accessible?"":mn.warpStyle}`,Ba),key:Gr,style:{width:ka,marginRight:(1+Qa)%Ot===0?0:gn+Ia,marginBottom:ua}},b.createElement("a",{className:mn.li,onClick:Gn=>{Gn.preventDefault(),Aa&&(0,wt.L9)([Aa]),(0,wt.xg)(ga.first_category_url)}},b.createElement("div",{className:mn.creator},b.createElement("img",{className:mn.img,src:pt.Z.IMG_SERVER+"/images/"+ga.avatar_url}),b.createElement("div",{className:mn.text,title:ga.creator},ga.creator)),b.createElement("div",{className:mn.top},b.createElement(ye.Z,{title:ga.name},b.createElement("div",{className:mn.name},ga.name)),Dr&&b.createElement("div",{className:mn.sign},"\u516C\u5F00")),b.createElement("div",{className:mn.middle},b.createElement("div",{className:mn.row,style:{marginBottom:6}},b.createElement("div",null,b.createElement("span",{className:mn.text},"\u8BBF\u95EE\u91CF"),b.createElement("span",{className:mn.value},(ga==null?void 0:ga.visits)||0)),b.createElement("div",null,b.createElement("span",{className:mn.text},"\u6210\u5458"),b.createElement("span",{className:mn.value},(ga==null?void 0:ga.course_members_count)||0))),b.createElement("div",{className:mn.row},b.createElement("div",null,b.createElement("span",{className:mn.text,style:{width:42}},"\u4F5C",b.createElement("span",{style:{marginLeft:14}},"\u4E1A")),b.createElement("span",{className:mn.value},(ga==null?void 0:ga.tasks_count)||0)),b.createElement("div",null,b.createElement("span",{className:mn.text},"\u72B6\u6001"),ga.is_end?b.createElement("span",{className:mn.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):b.createElement("span",{className:mn.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),pr&&b.createElement("div",{className:mn.btns},b.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),b.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!ga.is_accessible&&b.createElement("div",{className:mn.lockWrap},b.createElement("img",{src:`${pt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!it.length&&b.createElement(Nt.Z,null)))},Da={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=oe(6075),hn=({dataSource:mt=[],value:it,onChange:Ot,className:gn,style:ua={},tabBarExtraContent:Ia})=>b.createElement("div",{className:Ye()(Da.tabs,gn),style:ua},b.createElement("div",{className:Da.tabsWrap},mt.map((tn,Ba)=>b.createElement("aside",{className:Da.tab,onClick:()=>{Ot(tn.id),tn.link&&en.history.push(tn.link)},key:Ba},b.createElement("div",{className:it===tn.id?Da.active:""},tn.name),(tn==null?void 0:tn.resetCount)==null&&(tn==null?void 0:tn.total)!==void 0&&b.createElement("span",null,"\uFF08",tn==null?void 0:tn.total,"\uFF09"),(tn==null?void 0:tn.resetCount)!==void 0&&(tn==null?void 0:tn.total)!==void 0&&b.createElement(ye.Z,{title:(tn==null?void 0:tn.tip)!=null?tn==null?void 0:tn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},tn==null?void 0:tn.resetCount),"/",b.createElement("span",null,tn==null?void 0:tn.total),"\uFF09"))))),b.createElement("div",{className:Da.tabBar},Ia)),xn={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"},aa=({dataSource:mt=[],value:it,onChange:Ot,className:gn,style:ua={},tabBarExtraContent:Ia})=>b.createElement("div",{className:Ye()(xn.tabs,gn),style:ua},b.createElement("div",{className:xn.tabsWrap},mt.map((tn,Ba)=>b.createElement("aside",{className:xn.tab,onClick:()=>{Ot(tn.id),tn.link&&en.history.push(tn.link)},key:Ba},b.createElement("div",{className:it===tn.id?xn.active:""},tn.name),(tn==null?void 0:tn.resetCount)==null&&(tn==null?void 0:tn.total)!==void 0&&b.createElement("span",null,"\uFF08",tn==null?void 0:tn.total,"\uFF09"),(tn==null?void 0:tn.resetCount)!==void 0&&(tn==null?void 0:tn.total)!==void 0&&b.createElement(ye.Z,{title:(tn==null?void 0:tn.tip)!=null?tn==null?void 0:tn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},tn==null?void 0:tn.resetCount),"/",b.createElement("span",null,tn==null?void 0:tn.total),"\uFF09"))))),b.createElement("div",{className:xn.tabBar},Ia)),ra=({className:mt,style:it={},children:Ot})=>b.createElement("div",{className:Ye()(mt),style:it},Ot),Qn={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Ya=oe(38854),Ra=oe(20834);const Ja=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var At=({sortValue:mt,dropValue:it,className:Ot,onSort:gn,onDrop:ua,dataSource:Ia=Ja})=>{var tn;return b.createElement("div",{className:Ye()(Qn.orderWrap,Ot)},b.createElement(Ya.Z,{dropdownRender:()=>b.createElement(Ra.default,null,Ia.map((Ba,Aa)=>b.createElement(Ra.default.Item,{key:Aa,onClick:()=>ua(Ba.id)},Ba.name)))},b.createElement("span",{className:Qn.orderTextWrap},(tn=Ia.find(Ba=>it===Ba.id))==null?void 0:tn.name)),b.createElement("span",{className:Qn.orderIconWrap},b.createElement("span",{className:Qn.orderAsc},b.createElement("i",{className:mt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Qn.cursorPointer} ${Qn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Qn.cursorPointer}`,onClick:()=>gn(mt==="asc"?"desc":"asc")})),b.createElement("span",{className:Qn.orderDesc},b.createElement("i",{className:mt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Qn.cursorPointer} ${Qn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Qn.cursorPointer}`,onClick:()=>gn(mt==="asc"?"desc":"asc")}))))},Mn={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"},kn=oe(3113),In=oe(95051),xe=Object.defineProperty,ft=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,Tt=(mt,it,Ot)=>it in mt?xe(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):mt[it]=Ot,yt=(mt,it)=>{for(var Ot in it||(it={}))Ft.call(it,Ot)&&Tt(mt,Ot,it[Ot]);if(ft)for(var Ot of ft(it))Qt.call(it,Ot)&&Tt(mt,Ot,it[Ot]);return mt},An=(mt,it)=>{var Ot={};for(var gn in mt)Ft.call(mt,gn)&&it.indexOf(gn)<0&&(Ot[gn]=mt[gn]);if(mt!=null&&ft)for(var gn of ft(mt))it.indexOf(gn)<0&&Qt.call(mt,gn)&&(Ot[gn]=mt[gn]);return Ot},je=(mt,it,Ot)=>new Promise((gn,ua)=>{var Ia=Aa=>{try{Ba(Ot.next(Aa))}catch(nr){ua(nr)}},tn=Aa=>{try{Ba(Ot.throw(Aa))}catch(nr){ua(nr)}},Ba=Aa=>Aa.done?gn(Aa.value):Promise.resolve(Aa.value).then(Ia,tn);Ba((Ot=Ot.apply(mt,it)).next())}),He=mt=>{var it=mt,{className:Ot,style:gn,children:ua,loading:Ia=!1,openLoading:tn,onClick:Ba=()=>{},size:Aa="middle",shape:nr="round",theme:ka}=it,ga=An(it,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[Qa,pr]=(0,b.useState)(!1),Gr=(0,b.useMemo)(()=>{switch(ka){case In.Fy.THEMEONE:return Mn.ThemeOne;case In.Fy.DEFAULT:default:return Mn.btn}},[ka]);return b.createElement(kn.ZP,yt({onClick:(0,ke.throttle)(er=>je(void 0,null,function*(){tn&&pr(!0);try{yield Ba(er)}catch(fr){console.log("error",fr)}tn&&pr(!1)}),2e3,{leading:!0,trailing:!1}),className:Ye()(Gr,Mn[`${Aa}-${nr}`],Ot),style:gn,size:Aa,shape:nr,loading:Qa||Ia},ga),ua)},Rt={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"},cn=({className:mt,style:it,children:Ot=null,onClick:gn,title:ua})=>b.createElement("div",{className:Ye()(Rt.head,mt),style:it},b.createElement("span",{className:"primary-hover",onClick:gn},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:ua},ua),b.createElement("div",{className:Rt.node},Ot)),qn={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"},vn=({confirmShow:mt=!0,confirmTitle:it,confirmClick:Ot,cancelShow:gn=!0,cancelTitle:ua,cancelClick:Ia,className:tn,style:Ba,confirmLoading:Aa=!1})=>b.createElement("div",{className:Ye()(qn.btns,tn),style:Ba},mt&&b.createElement(kn.ZP,{loading:Aa,onClick:Ot,type:"primary",className:qn.confirm},it),gn&&b.createElement(kn.ZP,{onClick:Ia,className:qn.cancel},ua)),Jn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},zt=({className:mt,style:it={},LeftContent:Ot,children:gn,RightContent:ua})=>b.createElement("div",{className:Ye()(Jn.fixedBottom,mt),style:it},b.createElement("div",{className:Jn.wrap},b.createElement("div",{className:Jn.left},Ot),b.createElement("div",{className:Jn.center},gn),b.createElement("div",{className:Jn.right},ua))),_n={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Ut=({className:mt,style:it={},dataSource:Ot=[]})=>b.createElement("div",{className:Ye()(_n.crumbs,mt),style:it},Ot.map((gn,ua)=>uaen.history.push(gn.path)},gn.name):b.createElement("span",null,gn.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:ua,style:{color:"#5F6368"}},gn.name))),Dn=oe(31797),tt=Object.defineProperty,Xn=Object.defineProperties,Rn=Object.getOwnPropertyDescriptors,ca=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,Za=Object.prototype.propertyIsEnumerable,sa=(mt,it,Ot)=>it in mt?tt(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):mt[it]=Ot,_a=(mt,it)=>{for(var Ot in it||(it={}))Vn.call(it,Ot)&&sa(mt,Ot,it[Ot]);if(ca)for(var Ot of ca(it))Za.call(it,Ot)&&sa(mt,Ot,it[Ot]);return mt},$a=(mt,it)=>Xn(mt,Rn(it)),gr=(mt,it)=>{var Ot={};for(var gn in mt)Vn.call(mt,gn)&&it.indexOf(gn)<0&&(Ot[gn]=mt[gn]);if(mt!=null&&ca)for(var gn of ca(mt))it.indexOf(gn)<0&&Za.call(mt,gn)&&(Ot[gn]=mt[gn]);return Ot};const{Countdown:kt}=Dn.default;var Vt=mt=>{var it=mt,{onChange:Ot}=it,gn=gr(it,["onChange"]);const[ua,Ia]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof ua=="number"&&ua>=0&&Ot(ua)},[ua]);const tn=Ba=>{const Aa=Math.floor(Ba/1e3);Ia(Aa)};return b.createElement(kt,$a(_a({},gn),{onChange:tn}))},wa={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},Jt=({DataProps:mt,className:it,style:Ot={}})=>{var gn;return b.createElement("div",{className:Ye()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",wa.ClassRoomItem,it),style:Ot,onClick:()=>{(0,wt.xg)(mt==null?void 0:mt.first_category_url)}},b.createElement("div",{className:"flex flex-col item-center"},b.createElement("img",{src:`${(gn=pt.Z)==null?void 0:gn.IMG_SERVER}/images/${mt==null?void 0:mt.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(mt==null?void 0:mt.subject_identifier)&&b.createElement("div",{className:"mt-40px"},b.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),b.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),b.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},b.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(mt!=null&&mt.is_public)&&b.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),b.createElement("span",{className:Ye()("text-16px font-medium",wa.TitleDom)},mt==null?void 0:mt.name)),b.createElement("div",{className:"c-grey-333 font-medium"},mt==null?void 0:mt.creator),b.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",mt==null?void 0:mt.course_members_count),b.createElement("div",{className:"c-grey-333 flex item-center justify-between"},b.createElement("div",null,"\u4F5C\u4E1A\uFF1A",mt==null?void 0:mt.tasks_count),mt!=null&&mt.is_end?b.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):b.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},Ln=Object.defineProperty,ea=Object.getOwnPropertySymbols,yn=Object.prototype.hasOwnProperty,Ta=Object.prototype.propertyIsEnumerable,Pa=(mt,it,Ot)=>it in mt?Ln(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):mt[it]=Ot,Va=(mt,it)=>{for(var Ot in it||(it={}))yn.call(it,Ot)&&Pa(mt,Ot,it[Ot]);if(ea)for(var Ot of ea(it))Ta.call(it,Ot)&&Pa(mt,Ot,it[Ot]);return mt},Er=({DataProps:mt=[],selectValue:it,onChange:Ot,className:gn,style:ua={},extra:Ia,classNameItem:tn,styleItem:Ba={},barHidden:Aa})=>{const[nr,ka]=(0,b.useState)();return(0,b.useEffect)(()=>{ka(Array.isArray(it)?it:[it])},[it]),b.createElement("div",{className:Ye()("flex px-20px py-10px gap-40px",gn),style:Va({borderBottom:"1px solid #D3F0FF"},ua)},mt==null?void 0:mt.map(ga=>b.createElement("div",{key:ga==null?void 0:ga.id,className:Ye()("flex item-center justify-center current c-grey-333 text-16 relative",tn,ga==null?void 0:ga.className),style:Va(Va({color:nr!=null&&nr.includes(ga==null?void 0:ga.id)?"#1890FF":"",minWidth:88},Ba),(ga==null?void 0:ga.style)||{}),onClick:Qa=>{Ot==null||Ot({domEvent:Qa,item:ga}),ga!=null&&ga.link&&en.history.push(ga==null?void 0:ga.link)}},ga==null?void 0:ga.name,!Aa&&(nr==null?void 0:nr.includes(ga==null?void 0:ga.id))&&b.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),b.createElement("div",{className:"ml-auto"},Ia))},Mr=Object.defineProperty,hr=Object.defineProperties,Jr=Object.getOwnPropertyDescriptors,Xa=Object.getOwnPropertySymbols,qa=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable,fa=(mt,it,Ot)=>it in mt?Mr(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):mt[it]=Ot,lr=(mt,it)=>{for(var Ot in it||(it={}))qa.call(it,Ot)&&fa(mt,Ot,it[Ot]);if(Xa)for(var Ot of Xa(it))vr.call(it,Ot)&&fa(mt,Ot,it[Ot]);return mt},mr=(mt,it)=>hr(mt,Jr(it)),tr=({value:mt,onChange:it,onInputChange:Ot,className:gn,style:ua={},InputProps:Ia})=>{const[tn,Ba]=(0,b.useState)(mt);return b.createElement("div",{className:Ye()("flex item-center rounded-full px-10px py-2px",gn),style:lr({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},ua)},b.createElement(Pe.default,mr(lr({bordered:!1},Ia),{onChange:Aa=>{Ba(Aa.target.value),Ot==null||Ot(encodeURIComponent(Aa.target.value))},onPressEnter:Aa=>{it==null||it({domEvent:Aa,item:{value:tn}})}})),b.createElement("img",{className:"h-22px current",src:oe(25365),height:22,onClick:Aa=>{it==null||it({domEvent:Aa,item:{value:tn}})}}))}},34500:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return he}});var b=oe(59301);function he(Be,Ie){const be=(0,b.useRef)();(0,b.useEffect)(()=>{be.current=Be}),(0,b.useEffect)(()=>{function Ge(){be.current()}if(Ie!==null){let Fe=setInterval(Ge,Ie);return()=>clearInterval(Fe)}},[Ie])}},73256:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return E}});var b=oe(59301),he=oe(8591),Be=oe(43418),Ie=oe(19842),be=oe(54580),Ge=oe(3113),Fe=oe(41510),Ye=oe(21331),ke=oe(23789),De=oe(6075),Oe={customModal:"customModal___bVzUV",content:"content___oKhZq",upload:"upload___nPxEL",infoText:"infoText___gZEJF",okBtn:"okBtn___CVo2A",fileList:"fileList___tauGN",fileName:"fileName___T_8JX",selectitems:"selectitems___imW2Y"},We=oe(59301),Ve=(a,x,y)=>new Promise((z,ne)=>{var re=fe=>{try{ge(y.next(fe))}catch(Pe){ne(Pe)}},ie=fe=>{try{ge(y.throw(fe))}catch(Pe){ne(Pe)}},ge=fe=>fe.done?z(fe.value):Promise.resolve(fe.value).then(re,ie);ge((y=y.apply(a,x)).next())}),E=({visible:a,onOk:x,onCancel:y,sub_discipline_id:z=[]})=>{const[ne,re]=(0,b.useState)([]),[ie,ge]=(0,b.useState)(!1),fe=(0,De.useParams)(),[Pe,Ue]=(0,b.useState)([]),[Re,lt]=(0,b.useState)([]);(0,b.useEffect)(()=>{a?Le():(lt([]),re([]),ge(!1))},[a]);const Le=()=>Ve(void 0,null,function*(){const pt=yield(0,ke.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});Ue(pt.disciplines||[]),lt((z==null?void 0:z.length)>0?z:[])}),Ce=()=>{if((Re==null?void 0:Re.length)===0)return he.ZP.warning("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF01");console.log("subDisciplineId",Re),ge(!0),x(ne,Re[1],()=>{ge(!1)})},Xe=()=>{y()},nt=()=>{const pt=`${Fe.Z.API_SERVER}/api/courses/${fe.coursesId}/exercises/down_template`;(0,Ye.Nd)(null,pt)},ye=pt=>{const wt={name:pt.name,uid:pt.uid,file:pt};return re([wt]),!1},gt=()=>{re([])};return We.createElement(Be.default,{title:"\u5BFC\u5165\u8BD5\u9898",open:a,onOk:Ce,centered:!0,wrapClassName:Oe.customModal,onCancel:Xe,width:663,okText:"\u786E\u8BA4",okButtonProps:{className:Oe.okBtn},cancelText:"\u53D6\u6D88",confirmLoading:ie},We.createElement("div",{className:Oe.content},We.createElement("aside",null,We.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA41"),We.createElement("ul",null,We.createElement("li",null,We.createElement("span",{style:{color:"#5F6367"}},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898"),We.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginLeft:20},onClick:nt},"\u4E0B\u8F7D\u8003\u8BD5\u8BD5\u9898\u6A21\u677F"),We.createElement("i",{className:"iconfont icon-xiazai4 ml10",onClick:nt,style:{fontSize:14,cursor:"pointer",color:"#0152d9"}})),We.createElement("li",{style:{color:"#FA6400"},className:"mt10"},"\u63D0\u793A"),We.createElement("li",{className:Oe.infoText},"1\u3001\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\uFF1B "),We.createElement("li",{className:Oe.infoText},"2\u3001\u4E0D\u652F\u6301\u7EC4\u5408\u9898\u548C\u5B9E\u8BAD\u9898\u5BFC\u5165\uFF1B"),We.createElement("li",{className:Oe.infoText},"3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"),We.createElement("li",{className:Oe.infoText},"4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"))),We.createElement("aside",{style:{marginTop:22}},We.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA42"),We.createElement("ul",{style:{flex:1}},We.createElement("li",{style:{color:"#5F6367"}},"\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF0C\u4E0A\u4F20\u7F16\u8F91\u597D\u7684\u8BD5\u9898\u6587\u6863\uFF0C\u786E\u5B9A\u5BFC\u5165"),a&&We.createElement(We.Fragment,null,We.createElement(Ie.Z,{value:Re,className:Oe.selectitems,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Pe,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(pt,wt)=>{lt(pt||[])}}),We.createElement("br",null),We.createElement(be.default,{action:`${Fe.Z.API_SERVER}/api/attachments.json`,beforeUpload:ye,onRemove:gt,withCredentials:!0,fileList:ne,accept:".xls,.xlsx",showUploadList:!1},We.createElement(Ge.ZP,{className:Oe.upload,type:"primary",icon:We.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6"))),ne.map((pt,wt)=>We.createElement("div",{key:wt,className:Oe.fileList},We.createElement("span",{className:Oe.fileName},pt==null?void 0:pt.name),We.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:16,cursor:"pointer"},onClick:gt})))))))}},78547:function(_e,xt,oe){"use strict";oe.d(xt,{h:function(){return b}});var b=(he=>(he[he.NOMATCH=-1]="NOMATCH",he[he.OK=0]="OK",he[he.TIMEOUT=2]="TIMEOUT",he[he.PODFAILURE=3]="PODFAILURE",he[he.COMPILEFAILURE=4]="COMPILEFAILURE",he[he.EXECUTEFAILURE=5]="EXECUTEFAILURE",he[he.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",he))(b||{})},18509:function(_e,xt,oe){"use strict";oe.d(xt,{H7:function(){return E},MK:function(){return le},MU:function(){return De},X6:function(){return We},bM:function(){return ke},fi:function(){return a},fu:function(){return Ye},n4:function(){return x},rX:function(){return Ve},vl:function(){return y},zO:function(){return Oe}});var b=oe(23789),he=Object.defineProperty,Be=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Ge=(z,ne,re)=>ne in z?he(z,ne,{enumerable:!0,configurable:!0,writable:!0,value:re}):z[ne]=re,Fe=(z,ne)=>{for(var re in ne||(ne={}))Ie.call(ne,re)&&Ge(z,re,ne[re]);if(Be)for(var re of Be(ne))be.call(ne,re)&&Ge(z,re,ne[re]);return z};function Ye(z,ne){return(0,b.U2)(`myproblems/${z}.json`,Fe({hidePopLogin:!0},ne||{}))}function ke(z,ne){return(0,b.v_)(`myproblems/${z}/code_submit.json`,ne)}function De(z,ne){return(0,b.v_)(`myproblems/${z}/code_debug.json`,ne)}function Oe(z,ne){return ne.language&&(ne.language=encodeURIComponent(ne.language)),(0,b.U2)(`myproblems/${z}/submit_records.json`,ne)}function We(z){return(0,b.U2)("myproblems/record_detail.json",{id:z})}function Ve(z,ne){return(0,b.U2)(`myproblems/${z}/result.json`,{mode:ne})}function le(z,ne){return(0,b.v_)(`myproblems/${z}/add_notes.json`,ne)}function E(z,ne){return(0,b.v_)(`myproblems/${z}/restore_initial_code.json`,ne)}function a(z){return(0,b.v_)(`myproblems/${z}/sync_code.json`)}function x(z,ne){return(0,b.v_)(`myproblems/${z}/update_code.json`,ne)}function y(z,ne){return(0,b.v_)(`discusses/${z}/plus.json`,ne)}},3607:function(_e,xt,oe){"use strict";var b=oe(59301),he=oe(6848),Be=oe(92832),Ie=oe(8591),be=oe(49570),Ge=oe(59301),Fe=(ke,De,Oe)=>new Promise((We,Ve)=>{var le=x=>{try{a(Oe.next(x))}catch(y){Ve(y)}},E=x=>{try{a(Oe.throw(x))}catch(y){Ve(y)}},a=x=>x.done?We(x.value):Promise.resolve(x.value).then(le,E);a((Oe=Oe.apply(ke,De)).next())});const Ye=({defaultValue:ke,onFinish:De})=>{const[Oe,We]=(0,b.useState)(!1),[Ve,le]=(0,b.useState)(ke);return(0,b.useEffect)(()=>{le(ke)},[ke]),Ge.createElement("div",null,Oe?Ge.createElement(Be.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:Ve,onChange:E=>{le(E.target.value)},onBlur:()=>Fe(void 0,null,function*(){var E;if(((E=Ve==null?void 0:Ve.replaceAll(" ",""))==null?void 0:E.length)<=0){Ie.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield De(Ve))&&We(!1)}),onPressEnter:()=>Fe(void 0,null,function*(){var E;if(((E=Ve==null?void 0:Ve.replaceAll(" ",""))==null?void 0:E.length)<=0){Ie.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield De(Ve))&&We(!1)})}):Ge.createElement("div",{className:be.Z.title},Ve,Ge.createElement(he.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},Ge.createElement("i",{className:`${be.Z.editIcon} iconfont icon-bianji_Hover`,onClick:()=>We(!0)}))))};xt.Z=Ye},9105:function(_e,xt,oe){"use strict";oe.r(xt),oe.d(xt,{default:function(){return su},useCourseOptions:function(){return fi}});var b=oe(59301),he=oe(6075),Be=oe(78241),Ie=oe(66104),be=oe(8591),Ge=oe(71418),Fe=oe(92832),Ye=oe(19842),ke=oe(24905),De=oe(5112),Oe=oe(5871),We=oe(3113),Ve=oe(49570),le=oe(46606),E=oe(8418),a=oe(48697),x=oe(43418),y=oe(20834),z=oe(38854),ne=oe(6848),re=oe(43428),ie={flex_box_center:"flex_box_center___gi93l",flex_space_between:"flex_space_between___mWMLA",flex_box_vertical_center:"flex_box_vertical_center___rk4nc",flex_box_center_end:"flex_box_center_end___B8XxF",flex_box_column:"flex_box_column___AX3Vm",moreSpan:"moreSpan___hbStq",bg:"bg___Ya739",title:"title___BC46y",bottomdiv:"bottomdiv___uaPr6",spanBtn:"spanBtn___jjgnA",addQuestionBtn:"addQuestionBtn___qOlYW",saveBtn:"saveBtn___ulgem",left:"left___i8aTX",leftAction:"leftAction___sQkuq",Button:"Button___auxWm",iconWrapper:"iconWrapper___h3H1m",up:"up___tLyCX",down:"down___T5_aj",disabled:"disabled___GRBbF",titleleft:"titleleft___xZGbq",more_style:"more_style___nhWCX",qcount:"qcount___ID7OA",score:"score___T7dbm",qtitle:"qtitle___qJBFd",qcountclick:"qcountclick___m_VKG",right:"right___CBabI",edit:"edit___WHuql",delete:"delete___Pa6db",shixun:"shixun___oObBe",scoreByBlankRadio:"scoreByBlankRadio___r4AWn",modalconfirm:"modalconfirm___Ru9B_",scoremodal:"scoremodal___BdW7P",close:"close___blHYk",content:"content___jlm9o",items:"items___i3TrH",bottom:"bottom___zMQZ6",yes:"yes___lOPY6",no:"no___gtzKI",formcenter:"formcenter___fCxkm",radiogroup:"radiogroup___oXWHc",easy:"easy___ANNVD",medium:"medium___ov7N3",hard:"hard___n4afW",formcenterselect:"formcenterselect___lYa4f",selectitems1:"selectitems1___Y2Zy4",selectitems:"selectitems___c9Pt5",morebottom:"morebottom____I_ev",scoreinput:"scoreinput___O8EhL",shake:"shake___QxkjH",titleTooltip:"titleTooltip___CAyYg",exercise_styles:"exercise_styles___u40hG"},ge=oe(21331),fe=oe(23789),Pe=oe(41625),Ue=oe(98524),Re=oe(43141),lt=oe(28900),Le=oe(59301),Ce=Object.defineProperty,Xe=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,wt=(se,Se,Ee)=>Se in se?Ce(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,ut=(se,Se)=>{for(var Ee in Se||(Se={}))gt.call(Se,Ee)&&wt(se,Ee,Se[Ee]);if(ye)for(var Ee of ye(Se))pt.call(Se,Ee)&&wt(se,Ee,Se[Ee]);return se},Yt=(se,Se)=>Xe(se,nt(Se)),ln=(se,Se,Ee)=>new Promise((rt,Cn)=>{var $n=bt=>{try{Fn(Ee.next(bt))}catch(Zt){Cn(Zt)}},ia=bt=>{try{Fn(Ee.throw(bt))}catch(Zt){Cn(Zt)}},Fn=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,ia);Fn((Ee=Ee.apply(se,Se)).next())}),Wt=({Itemid:se,setqitem:Se,qitem:Ee,data:rt,getdata:Cn,bigitem:$n,setBigqitem:ia,isedit:Fn,handleEditing:bt})=>{const[Zt,ba]=(0,b.useState)([]),[Ct,Sn]=(0,b.useState)(!1);(0,b.useEffect)(()=>{rt.length>0&&ba([...rt])},[rt]);const na=(va,Lt)=>ln(void 0,null,function*(){if(Fn){bt();return}if(!va.destination)return;Sn(!0);let fn=yield(0,fe.ZP)(`/api/examination_banks/${se}/examination_banks_item_banks/${Lt==null?void 0:Lt[va.source.index].question_id}/adjust_position.json`,{method:"post",body:{id:se,itemid:Lt==null?void 0:Lt[va.source.index].question_id,position:va.destination.index}});Sn(!1),fn.status===0&&Cn({id:Lt==null?void 0:Lt[va.source.index].question_id})});return Le.createElement("div",null,Le.createElement(Re.Z5,{onDragEnd:va=>na(va,Zt)},Le.createElement(Re.bK,{droppableId:"droppable"},(va,Lt)=>Le.createElement("div",ut({ref:va.innerRef},va.droppableProps),Le.createElement(Ge.Z,{spinning:Ct},Zt.map((fn,Bn)=>Le.createElement(Re._l,{key:Bn,draggableId:Bn.toString(),index:Bn},(an,ar)=>{var nn,la;return Le.createElement("aside",ut(ut({ref:an.innerRef},an.draggableProps),an.dragHandleProps),Le.createElement(ne.Z,{title:Le.createElement(lt.Z,{value:(fn==null?void 0:fn.question_type)===8?(nn=fn==null?void 0:fn.program_attr)==null?void 0:nn.description:fn.question_title}),color:"#fff",placement:"left",overlayClassName:ie.titleTooltip},Le.createElement("div",{onClick:()=>{if(Fn){bt();return}Se(Yt(ut({},fn),{index:Bn+1})),ia($n),(0,ge.Vf)("#question-scroll-id")},className:`${ie.qcount} ${fn.question_id===(Ee==null?void 0:Ee.question_id)?ie.qcountclick:""}`},Le.createElement("span",{className:ie.score},fn==null?void 0:fn.question_score,"\u5206"),Le.createElement("span",{className:ie.qtitle},Bn+1,"\u3001",Le.createElement(lt.Z,{value:(fn==null?void 0:fn.question_type)===8?(la=fn==null?void 0:fn.program_attr)==null?void 0:la.description:fn.question_title,showTextOnly:!0})))))}))),va.placeholder))))},Qe=oe(95237),Me=oe(80815),Et=oe(57809),Gt=oe(78673),vt=oe(61485),Dt=oe(74038),Ae=oe(59301),dt=(se,Se,Ee)=>new Promise((rt,Cn)=>{var $n=bt=>{try{Fn(Ee.next(bt))}catch(Zt){Cn(Zt)}},ia=bt=>{try{Fn(Ee.throw(bt))}catch(Zt){Cn(Zt)}},Fn=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,ia);Fn((Ee=Ee.apply(se,Se)).next())}),ct=({form:se,TagDiscipline:Se,exerciseitem:Ee,qitem:rt,getTagData:Cn})=>{var $n;const[ia,Fn]=(0,b.useState)(!0),[bt,Zt]=(0,b.useState)(!1),[ba,Ct]=(0,b.useState)(""),[Sn,na]=(0,b.useState)([]),[va,Lt]=(0,b.useState)([]),[fn,Bn]=(0,b.useState)(0);(0,b.useEffect)(()=>{ar()},[]);const an=nn=>dt(void 0,null,function*(){const la=yield(0,fe.ZP)("/api/tag_disciplines.json",{method:"get",params:{sub_discipline_id:nn==null?void 0:nn.sub_discipline_id}});Lt(la==null?void 0:la.tag_disciplines)}),ar=()=>dt(void 0,null,function*(){const nn=yield(0,fe.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});na(nn.disciplines||[]),rt!=null&&rt.sub_discipline_id&&an(rt),Bn(rt!=null&&rt.sub_discipline_id?1:0),se.setFieldsValue({difficulty:rt.difficulty||2,repeat_answer:!rt.repeat_answer,sub_discipline_id:rt!=null&&rt.sub_discipline_id?[rt==null?void 0:rt.discipline_id,rt==null?void 0:rt.sub_discipline_id]:[]})});return Ae.createElement("div",null,Ae.createElement("div",{style:{marginTop:30,overflow:"hidden",height:ia?"100%":0}},Ae.createElement(Be.default.Item,{className:ie.formcenter,rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u96BE\u5EA6"}],label:"\u96BE\u5EA6",name:"difficulty"},Ae.createElement(De.ZP.Group,{className:ie.radiogroup},Ae.createElement(De.ZP.Button,{className:ie.easy,value:1},"\u7B80\u5355"),Ae.createElement(De.ZP.Button,{className:ie.medium,value:2},"\u9002\u4E2D"),Ae.createElement(De.ZP.Button,{className:ie.hard,value:3},"\u56F0\u96BE"))),Ae.createElement(Be.default.Item,{name:"sub_discipline_id",label:"\u77E5\u8BC6\u70B9",className:ie.formcenterselect},Ae.createElement(Ye.Z,{className:ie.selectitems1,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Sn,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(nn,la)=>{se.setFieldsValue({sub_discipline_id:nn,tag_discipline_ids:[]}),Bn(nn?nn.length:0),(nn==null?void 0:nn.length)>0&&(an({sub_discipline_id:nn[1]}),nn[1]==(rt==null?void 0:rt.sub_discipline_id)&&se.setFieldValue("tag_discipline_ids",rt.tag_discipline_ids))},onClear:()=>{Lt([]),se.setFieldValue("tag_discipline_ids",[]),Bn(0)}})),Ae.createElement(Be.default.Item,{className:ie.formcenterselect},Ae.createElement("div",{style:{display:"flex",alignItems:"center",paddingLeft:55}},Ae.createElement(Be.default.Item,{name:"tag_discipline_ids"},Ae.createElement(Et.default,{className:ie.selectitems,disabled:fn===0,showSearch:!0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",mode:"multiple",listHeight:200,dropdownStyle:{zIndex:9},allowClear:!0,optionFilterProp:"children",filterOption:(nn,la)=>la.key.indexOf(nn.toLowerCase())>=0},va==null?void 0:va.map(nn=>Ae.createElement(Et.default.Option,{key:nn.name+nn.id,value:nn.id},Ae.createElement("div",{style:{display:"flex",alignItems:"center"}},Ae.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},nn.name),(nn==null?void 0:nn.type)==="personal"&&Ae.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),fn>0&&Ae.createElement("div",{style:{marginLeft:20,marginTop:"-16px",lineHeight:"48px",height:48,fontSize:14}},Ae.createElement("span",null,"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),Ae.createElement("a",{onClick:()=>{Zt(!0)},style:{marginLeft:3,color:"#3061D0"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))),Ae.createElement(Be.default.Item,{className:ie.formcenterselect},Ae.createElement("div",{style:{display:"flex",alignItems:"center"}},Ae.createElement(Be.default.Item,{name:"repeat_answer",valuePropName:"checked"},Ae.createElement(Gt.Z,null)),Ae.createElement("div",{style:{marginLeft:10,marginTop:"-16px",lineHeight:"40px",height:48,color:"#000000"}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898",Ae.createElement(ne.Z,{placement:"right",title:"\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u4F5C\u7B54\u5B8C\u6210\u8BE5\u9898\u5E76\u8FDB\u5165\u4E0B\u4E00\u9898\u4E4B\u540E\uFF0C\u4E0D\u5141\u8BB8\u518D\u4FEE\u6539\u8BE5\u9898\u7B54\u6848"},Ae.createElement(vt.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))))),Ae.createElement(Dt.Z,{open:bt,subDisciplineId:($n=se.getFieldValue("sub_discipline_id"))==null?void 0:$n[1],onCancel:()=>{Zt(!1)},onOkClick:nn=>{Lt(la=>[...la,nn]),se.setFieldValue("tag_discipline_ids",[...se.getFieldValue("tag_discipline_ids"),nn==null?void 0:nn.id])}}))},et=oe(59301),bn=Object.defineProperty,ot=Object.defineProperties,Bt=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,Mt=(se,Se,Ee)=>Se in se?bn(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,Kn=(se,Se)=>{for(var Ee in Se||(Se={}))St.call(Se,Ee)&&Mt(se,Ee,Se[Ee]);if(Ht)for(var Ee of Ht(Se))Tn.call(Se,Ee)&&Mt(se,Ee,Se[Ee]);return se},wn=(se,Se)=>ot(se,Bt(Se)),jn=(se,Se,Ee)=>new Promise((rt,Cn)=>{var $n=bt=>{try{Fn(Ee.next(bt))}catch(Zt){Cn(Zt)}},ia=bt=>{try{Fn(Ee.throw(bt))}catch(Zt){Cn(Zt)}},Fn=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,ia);Fn((Ee=Ee.apply(se,Se)).next())}),ma=({qitem:se,setisedit:Se,TagDiscipline:Ee,exerciseitem:rt,seveeditor:Cn,deleteitem:$n,getTagData:ia,init:Fn,showTip:bt=!1})=>{const[Zt]=Be.default.useForm();(0,b.useEffect)(()=>{var Ct;Zt.setFieldsValue(wn(Kn({},se),{name:se==null?void 0:se.question_title,choices:(Ct=se==null?void 0:se.question_choices)==null?void 0:Ct.map(Sn=>wn(Kn({},Sn),{standard_boolean:Sn!=null&&Sn.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)}))},[se]);const ba=Ct=>{if(!(Ct!=null&&Ct.length))return!1;const Sn=Ct.map(va=>{var Lt;return(Lt=va.choice_text)==null?void 0:Lt.trim().replace(/^\s+|\s+$/g,"")});return new Set(Sn).size!==Sn.length};return et.createElement("div",null,et.createElement(Be.default,{form:Zt,colon:!1,onFinish:Ct=>{var Sn;if(ba(Ct.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 na=wn(Kn({},Ct),{item_type:se==null?void 0:se.question_type,choices:(Sn=Ct==null?void 0:Ct.choices)==null?void 0:Sn.map(va=>wn(Kn({},va),{is_answer:va.standard_boolean}))});Cn(Kn(Kn({},se),na))},onFinishFailed:Ct=>jn(void 0,null,function*(){var Sn,na;be.ZP.error(Ct.errorFields[0].errors[0]),Zt.scrollToField((na=(Sn=Ct==null?void 0:Ct.errorFields)==null?void 0:Sn[0])==null?void 0:na.name,{behavior:"smooth",block:"center"})})},et.createElement("div",{style:{display:"flex",alignItems:"center"}},et.createElement("div",{style:{flex:1}},et.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),et.createElement("span",null,(se==null?void 0:se.question_type)===1?"\u591A\u9009\u9898":"\u5355\u9009\u9898")),!se.isadd&&et.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{$n()}},et.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),et.createElement(We.ZP,{onClick:()=>{var Ct;se.isadd?(Se(!1),Fn()):(Zt.setFieldsValue(wn(Kn({},se),{name:se==null?void 0:se.question_title,choices:(Ct=se==null?void 0:se.question_choices)==null?void 0:Ct.map(Sn=>wn(Kn({},Sn),{standard_boolean:Sn!=null&&Sn.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),et.createElement(ne.Z,{overlayClassName:ie.shake,open:bt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:et.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},et.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},et.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>jn(void 0,null,function*(){Zt.submit()})},"\u4FDD\u5B58"))),et.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},et.createElement(Qe.Z,{align:"middle"},et.createElement(Be.default.Item,{className:ie.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},et.createElement(Oe.Z,{onBlur:Ct=>{Ct.target.value==="0"&&be.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1}))),et.createElement(Me.u,{form:Zt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",titleKey:"name",choiceKey:"choices",analysisKey:"analysis",choiceOptionsPath:"choices",choiceTextKey:"choice_text",answerKey:"standard_boolean"}),et.createElement(ct,{getTagData:ia,qitem:se,exerciseitem:rt,TagDiscipline:Ee,form:Zt}))))},Wn=oe(41940),Ca=oe(24417),sn=oe(59301),mn=Object.defineProperty,En=Object.defineProperties,Ma=Object.getOwnPropertyDescriptors,Sa=Object.getOwnPropertySymbols,Da=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,ht=(se,Se,Ee)=>Se in se?mn(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,hn=(se,Se)=>{for(var Ee in Se||(Se={}))Da.call(Se,Ee)&&ht(se,Ee,Se[Ee]);if(Sa)for(var Ee of Sa(Se))en.call(Se,Ee)&&ht(se,Ee,Se[Ee]);return se},xn=(se,Se)=>En(se,Ma(Se)),ya=(se,Se,Ee)=>new Promise((rt,Cn)=>{var $n=bt=>{try{Fn(Ee.next(bt))}catch(Zt){Cn(Zt)}},ia=bt=>{try{Fn(Ee.throw(bt))}catch(Zt){Cn(Zt)}},Fn=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,ia);Fn((Ee=Ee.apply(se,Se)).next())}),Ka=({qitem:se,TagDiscipline:Se,exerciseitem:Ee,setisedit:rt,seveeditor:Cn,deleteitem:$n,getTagData:ia,init:Fn,showTip:bt=!1})=>{const[Zt]=Be.default.useForm(),ba=Be.default.useWatch("use_blank_score",Zt);return(0,b.useEffect)(()=>{Zt.setFieldsValue(xn(hn({},se),{standard_answers:se.standard_answers||[],name:se.question_title,repeat_answer:!se.repeat_answer}))},[se]),sn.createElement("div",null,sn.createElement(Be.default,{form:Zt,colon:!1,onValuesChange:(Ct,Sn)=>{var na,va,Lt,fn;if(Ct!=null&&Ct.standard_answers||Ct!=null&&Ct.use_blank_score){let Bn=((na=Zt.getFieldValue("standard_answers"))==null?void 0:na.length)>0&&((Lt=(va=Zt.getFieldValue("standard_answers"))==null?void 0:va.map(an=>an.score))==null?void 0:Lt.filter(an=>an));(Bn==null?void 0:Bn.length)>0&&Zt.setFieldsValue({question_score:(Bn==null?void 0:Bn.length)>0&&((fn=Bn.reduce((an,ar)=>an+ar))==null?void 0:fn.toFixed(1))})}},onFinish:Ct=>{var Sn;Cn(xn(hn(hn({},se),Ct),{item_type:se==null?void 0:se.question_type,standard_answers:(Sn=Ct.standard_answers)==null?void 0:Sn.map((na,va)=>xn(hn({},na),{position:na.choice_id||va+1}))}))},onFinishFailed:Ct=>ya(void 0,null,function*(){var Sn,na;Ct.errorFields[0].errors[0]==="\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"&&(0,ge.pE)(),be.ZP.error(Ct.errorFields[0].errors[0]),Zt.scrollToField((na=(Sn=Ct==null?void 0:Ct.errorFields)==null?void 0:Sn[0])==null?void 0:na.name,{behavior:"smooth",block:"center"})})},sn.createElement("div",{style:{display:"flex",alignItems:"center"}},sn.createElement("div",{style:{flex:1}},sn.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),sn.createElement("span",null,"\u586B\u7A7A\u9898")),!se.isadd&&sn.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{$n()}},sn.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}})," \u5220\u9664"),sn.createElement(We.ZP,{onClick:()=>{se.isadd?(rt(!1),Fn()):(Zt.setFieldsValue(xn(hn({},se),{standard_answers:se.standard_answers,name:se.question_title,repeat_answer:!se.repeat_answer})),rt(!1))}},"\u53D6\u6D88"),sn.createElement(ne.Z,{overlayClassName:ie.shake,open:bt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:sn.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},sn.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")},sn.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{Zt.submit()}},"\u4FDD\u5B58"))),sn.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},sn.createElement(Qe.Z,{align:"middle"},ba?sn.createElement(Ca.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}):sn.createElement(Be.default.Item,{key:2,className:ie.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},sn.createElement(Oe.Z,{onBlur:Ct=>{Ct.target.value==="0"&&be.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle",max:100,min:.1})),sn.createElement(Be.default.Item,{name:"use_blank_score",noStyle:!0},sn.createElement(De.ZP.Group,{className:ie.scoreByBlankRadio,optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}]})),sn.createElement(ne.Z,{overlayInnerStyle:{width:460},title:sn.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",sn.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")},sn.createElement("i",{className:"icon-tishixiaowenhao font18 ml20 c-3061d0"}))),sn.createElement(Wn.u,{form:Zt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:ba,answerKey:"standard_answers"}),sn.createElement(ct,{getTagData:ia,qitem:se,exerciseitem:Ee,TagDiscipline:Se,form:Zt}))))},ra=oe(48700),Qn=oe(59301),Ya=Object.defineProperty,Ra=Object.defineProperties,Ja=Object.getOwnPropertyDescriptors,Br=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,kn=(se,Se,Ee)=>Se in se?Ya(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,In=(se,Se)=>{for(var Ee in Se||(Se={}))At.call(Se,Ee)&&kn(se,Ee,Se[Ee]);if(Br)for(var Ee of Br(Se))Mn.call(Se,Ee)&&kn(se,Ee,Se[Ee]);return se},xe=(se,Se)=>Ra(se,Ja(Se)),ft=(se,Se,Ee)=>new Promise((rt,Cn)=>{var $n=bt=>{try{Fn(Ee.next(bt))}catch(Zt){Cn(Zt)}},ia=bt=>{try{Fn(Ee.throw(bt))}catch(Zt){Cn(Zt)}},Fn=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,ia);Fn((Ee=Ee.apply(se,Se)).next())}),Qt=({qitem:se,setisedit:Se,TagDiscipline:Ee,exerciseitem:rt,seveeditor:Cn,deleteitem:$n,getTagData:ia,init:Fn,showTip:bt=!1})=>{const[Zt]=Be.default.useForm();return(0,b.useEffect)(()=>{var ba;Zt.setFieldsValue(xe(In({},se),{name:se.question_title,repeat_answer:!se.repeat_answer,choices:(ba=se==null?void 0:se.question_choices)==null?void 0:ba.map(Ct=>xe(In({},Ct),{is_answer:Ct!=null&&Ct.standard_boolean?1:0}))}))},[se]),Qn.createElement("div",null,Qn.createElement(Be.default,{form:Zt,colon:!1,onFinish:ba=>{Cn(In(In({},se),ba))},onFinishFailed:ba=>ft(void 0,null,function*(){var Ct,Sn;be.ZP.error(ba.errorFields[0].errors[0]),Zt.scrollToField((Sn=(Ct=ba==null?void 0:ba.errorFields)==null?void 0:Ct[0])==null?void 0:Sn.name,{behavior:"smooth",block:"center"})})},Qn.createElement("div",{style:{display:"flex",alignItems:"center"}},Qn.createElement("div",{style:{flex:1}},Qn.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Qn.createElement("span",null,"\u5224\u65AD\u9898")),!(se!=null&&se.isadd)&&Qn.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{$n()}},Qn.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Qn.createElement(We.ZP,{onClick:()=>{var ba;se.isadd?(Se(!1),Fn()):(Zt.setFieldsValue(xe(In({},se),{name:se==null?void 0:se.question_title,choices:(ba=se==null?void 0:se.question_choices)==null?void 0:ba.map(Ct=>xe(In({},Ct),{is_answer:Ct!=null&&Ct.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),Qn.createElement(ne.Z,{overlayClassName:ie.shake,open:bt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Qn.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Qn.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")},Qn.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{Zt.submit()}},"\u4FDD\u5B58"))),Qn.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Qn.createElement(Be.default.Item,{className:ie.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Qn.createElement(Oe.Z,{onBlur:ba=>{ba.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})),Qn.createElement(ra.Z,{form:Zt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",choiceKey:""}),Qn.createElement(ct,{getTagData:ia,qitem:se,exerciseitem:rt,TagDiscipline:Ee,form:Zt}))))},Tt=oe(36381),yt={wrap:"wrap___YewKC",deleteIcon:"deleteIcon___AKmkj",keywordTag:"keywordTag___hMKmU",questionTitleEditorWrap:"questionTitleEditorWrap___SpNyf",choiceWrap:"choiceWrap___lDCnP",choiceIndex:"choiceIndex___dabwf",judgementIndex:"judgementIndex___sausK",setAnswerBtn:"setAnswerBtn___moVcF",activeAnswer:"activeAnswer___Cd32c",activeJudgementAnswer:"activeJudgementAnswer___rbuoo",actionWrapper:"actionWrapper___dZuBC",addIcon:"addIcon___A9GtN",inputBorder:"inputBorder___DeyjY",placeholder:"placeholder___dhOmk",blankWrapper:"blankWrapper___vU8Cg",blankInput:"blankInput___Vzre8",blankInputNumberWrapper:"blankInputNumberWrapper___yLeaN",addBtn:"addBtn___LhI0I",blankIndex:"blankIndex___caKgB",baseInputWrapper:"baseInputWrapper___DhjJY",collapseWrapper:"collapseWrapper___btrfP",panelHeader:"panelHeader___xIZ7O",open:"open___IMQhg",close:"close___FTAU3",hide:"hide___GBtJP",scoreByBlankRadio:"scoreByBlankRadio___HAunQ"},An=oe(12893),je=oe(37962),Ke=Object.defineProperty,He=Object.defineProperties,Rt=Object.getOwnPropertyDescriptors,dn=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable,Un=(se,Se,Ee)=>Se in se?Ke(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,vn=(se,Se)=>{for(var Ee in Se||(Se={}))cn.call(Se,Ee)&&Un(se,Ee,Se[Ee]);if(dn)for(var Ee of dn(Se))qn.call(Se,Ee)&&Un(se,Ee,Se[Ee]);return se},Jn=(se,Se)=>He(se,Rt(Se)),Ea=(se,Se)=>{var Ee={};for(var rt in se)cn.call(se,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=se[rt]);if(se!=null&&dn)for(var rt of dn(se))Se.indexOf(rt)<0&&qn.call(se,rt)&&(Ee[rt]=se[rt]);return Ee};const zt=se=>{var Se=se,{value:Ee,onChange:rt,scrollId:Cn}=Se,$n=Ea(Se,["value","onChange","scrollId"]);return b.createElement("div",{id:Cn||""},b.createElement(je.Z,Jn(vn({},$n),{defaultValue:Ee,onChange:(ia,Fn)=>{console.log("a:",ia,Fn),Fn!=null&&Fn.length?rt(ia,Fn):rt(ia)}})))},_n=({value:se,onChange:Se,placeholder:Ee,height:rt=140,isEdit:Cn})=>Cn?b.createElement(je.Z,{watch:!0,isFocus:!0,height:rt,placeholder:Ee,defaultValue:se,onChange:Se}):b.createElement("div",{style:{cursor:"pointer"}},se?b.createElement(lt.Z,{className:yt.inputBorder,value:se}):b.createElement("div",{className:`${yt.inputBorder} ${yt.placeholder}`},Ee));var Je=oe(43604),Ut=oe(32134),Dn=Object.defineProperty,tt=Object.defineProperties,Xn=Object.getOwnPropertyDescriptors,Rn=Object.getOwnPropertySymbols,ca=Object.prototype.hasOwnProperty,Vn=Object.prototype.propertyIsEnumerable,Za=(se,Se,Ee)=>Se in se?Dn(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,sa=(se,Se)=>{for(var Ee in Se||(Se={}))ca.call(Se,Ee)&&Za(se,Ee,Se[Ee]);if(Rn)for(var Ee of Rn(Se))Vn.call(Se,Ee)&&Za(se,Ee,Se[Ee]);return se},_a=(se,Se)=>tt(se,Xn(Se)),$a=(se,Se)=>{var Ee={};for(var rt in se)ca.call(se,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=se[rt]);if(se!=null&&Rn)for(var rt of Rn(se))Se.indexOf(rt)<0&&Vn.call(se,rt)&&(Ee[rt]=se[rt]);return Ee};const gr=["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"],kt=({value:se,onChange:Se,choiceTextKey:Ee,answerKey:rt,index:Cn,isEdit:$n,setInputActive:ia,form:Fn,choiceOptionsPath:bt,allowChangeMode:Zt,showAddIcon:ba,addItem:Ct,deleteItem:Sn})=>{const na=(se==null?void 0:se[rt])===1,va=()=>{const fn=Fn.getFieldValue(bt);Fn.setFieldValue(bt,fn.map(Bn=>_a(sa({},Bn),{[rt]:0})))},Lt=()=>{na?Se(_a(sa({},se),{[rt]:0})):(Zt||va(),Se(_a(sa({},se),{[rt]:1})))};return b.createElement(Qe.Z,{className:yt.choiceWrap,align:"middle",wrap:!1},b.createElement(Je.Z,{onClick:Lt,className:`${yt.choiceIndex} ${na?yt.activeAnswer:""}`},gr[Cn]),b.createElement(Je.Z,{flex:1,className:`${yt.editorWrap} ml15`,onClick:ia},b.createElement(_n,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:$n,value:se==null?void 0:se[Ee],onChange:fn=>{Se(_a(sa({},se),{[Ee]:fn}))}})),b.createElement(Je.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:Lt,className:`${yt.setAnswerBtn} ${na?yt.activeAnswer:""}`},na?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),b.createElement(Je.Z,{className:yt.actionWrapper},b.createElement(ne.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},b.createElement(Ut.Z,{className:yt.addIcon,onClick:Ct,style:{visibility:ba?"visible":"hidden"}})),b.createElement(ne.Z,{title:"\u5220\u9664"},b.createElement(An.Z,{className:yt.deleteIcon,onClick:Sn,style:{visibility:Cn>1?"visible":"hidden"}}))))},La=({questionTitlePlaceholder:se,titleKey:Se,choiceKey:Ee,analysisKey:rt,choiceTextKey:Cn,answerKey:$n,choiceOptionsPath:ia,allowChangeMode:Fn=!0,form:bt,showAnalysis:Zt=!0})=>{const[ba,Ct]=(0,b.useState)(),[Sn,na]=(0,b.useState)(!1);return b.createElement("div",{className:yt.wrap},b.createElement("div",{className:yt.questionTitleEditorWrap},b.createElement(Be.default.Item,{label:"\u9898\u5E72",name:Se,labelCol:{span:24},rules:[{required:!0}]},b.createElement(zt,{scrollId:Array.isArray(Se)?Se.join("_"):`${Se}`,watch:!0,height:140,placeholder:se}))),b.createElement(Be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),b.createElement(Be.default.List,{name:Ee,rules:[{validator(va,Lt){const fn=Lt.some(an=>an[$n]===1),Bn=Lt.findIndex(an=>{var ar;return((ar=an[Cn])==null?void 0:ar.length)<=0});return Bn!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${gr[Bn]}\u9009\u9879\u7684\u5185\u5BB9`)):fn?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(va,{add:Lt,remove:fn})=>b.createElement("div",{id:Array.isArray(ia)?ia.join("_"):`${ia}`},va.map((Bn,an)=>{var ar=Bn,{key:nn,name:la}=ar,Xt=$a(ar,["key","name"]);const cr=ba===nn,Sr=()=>{Ct(nn)},br=an<7&&an===va.length-1,Ar=()=>Lt({[Cn]:"",[$n]:0}),zn=()=>fn(la);return b.createElement(Be.default.Item,_a(sa({},Xt),{key:nn,name:la,noStyle:!0}),b.createElement(kt,{choiceTextKey:Cn,answerKey:$n,index:an,isEdit:cr,setInputActive:Sr,form:bt,choiceOptionsPath:ia,allowChangeMode:Fn,showAddIcon:br,addItem:Ar,deleteItem:zn}))}),va.length<8&&b.createElement("div",{className:`${yt.addBtn} mb30`,onClick:()=>Lt({[Cn]:"",[$n]:0})},"\u6DFB\u52A0\u9009\u9879"))),Zt&&b.createElement("div",{onClick:()=>na(!0)},b.createElement(Be.default.Item,{name:rt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(_n,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Sn}))))};var Vt=oe(59301),wa=Object.defineProperty,pa=Object.defineProperties,Jt=Object.getOwnPropertyDescriptors,Ln=Object.getOwnPropertySymbols,ea=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,Ta=(se,Se,Ee)=>Se in se?wa(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,Pa=(se,Se)=>{for(var Ee in Se||(Se={}))ea.call(Se,Ee)&&Ta(se,Ee,Se[Ee]);if(Ln)for(var Ee of Ln(Se))yn.call(Se,Ee)&&Ta(se,Ee,Se[Ee]);return se},Va=(se,Se)=>pa(se,Jt(Se)),dr=(se,Se)=>{var Ee={};for(var rt in se)ea.call(se,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=se[rt]);if(se!=null&&Ln)for(var rt of Ln(se))Se.indexOf(rt)<0&&yn.call(se,rt)&&(Ee[rt]=se[rt]);return Ee};const Er=({value:se,onChange:Se})=>{const Ee=Cn=>{x.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:yt.modal,onOk:()=>{const $n=[...se];$n.splice(Cn,1),Se($n)}})},rt=()=>{const Cn=[...se];Cn.push(""),Se(Cn)};return Vt.createElement(Qe.Z,{className:"ml20"},Vt.createElement(Je.Z,{flex:1},se==null?void 0:se.map((Cn,$n)=>Vt.createElement(Qe.Z,{key:`${Cn}_${$n}`,align:"middle",className:"mb20"},Vt.createElement(Fe.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Cn,autoSize:{maxRows:3},maxLength:1e3,onBlur:ia=>{const Fn=[...se],bt=ia.target.value.trim();Fn[$n]=bt,Se(Fn)}}),Vt.createElement(ne.Z,{title:"\u5220\u9664"},Vt.createElement(An.Z,{className:yt.deleteIcon,style:{marginLeft:15,visibility:$n>0?"visible":"hidden"},onClick:()=>Ee($n)}))))),Vt.createElement(Je.Z,null,Vt.createElement("div",{className:`${yt.addBtn}`,onClick:()=>{rt()}},"\u65B0\u589E\u7B54\u6848")))},Mr=({value:se=!0,onChange:Se})=>Vt.createElement(Gt.Z,{checked:!se,onChange:Ee=>{Se(!Ee)}}),hr="\u2581",Jr=({questionTitlePlaceholder:se,form:Se,name:Ee,scoreByBlank:rt,answerKey:Cn,titleKey:$n="name",analysisKey:ia="analysis",isOrdered:Fn="is_ordered"})=>{var bt,Zt;const[ba,Ct]=(0,b.useState)(!1),Sn=(nn,la)=>{const Xt=la.line;let cr=0;for(let br=0;br{const Sr=nn.getRange(la.from,la.to);let br=0;if(la.text.forEach(Ar=>{br+=Ar.split(hr).length-1}),la.origin!=="setValue"){if(Sr&&Sr.indexOf(hr)!==-1){const Ar=Sr.split(hr).length-1,zn=Sn(nn,la.from);if(console.log(`\u5220\u9664${Ar}\u4E2A\uFF0C \u524D\u9762\u6709${zn}\u4E2A\uFF0C\u65B0\u589E${br}\u4E2A`),Ar>1){const ur=Array.from({length:Ar},(zr,Vr)=>zn+Vr);cr(ur)}else cr(zn)}else if(br>0){const Ar=Sn(nn,la.from);console.log(`\u65B0\u589E${br}\u4E2A\uFF0C\u4E4B\u524D\u6709${Ar}\u4E2A`),Xt(br,Ar)}}},va=()=>{const nn=Se.getFieldValue(["sub_item_banks",...Cn]);Se.setFieldValue(["sub_item_banks",...Cn],nn==null?void 0:nn.map((la,Xt)=>Va(Pa({},la),{position:Xt+1})))},Lt=(0,b.useRef)(),fn=(nn,la)=>{for(let Xt=0;Xt{Bn.current(nn),va()},ar=(Zt=(bt=Se.getFieldValue("sub_item_banks"))==null?void 0:bt[Cn==null?void 0:Cn[0]])==null?void 0:Zt[Cn==null?void 0:Cn[1]];return console.log(Se==null?void 0:Se.getFieldValue(["sub_item_banks",...rt])),Vt.createElement("div",{className:yt.wrap},Vt.createElement("div",{className:yt.questionTitleEditorWrap},Vt.createElement(Be.default.Item,{label:"\u9898\u5E72",name:$n,labelCol:{span:24},rules:[{required:!0}]},Vt.createElement(zt,{scrollId:"name",watch:!0,height:140,placeholder:se,showNullButton:!0,onCMBeforeChange:(nn,la)=>{na(nn,la,fn,an)}}))),Vt.createElement(Be.default.List,{name:Cn,rules:[{validator(nn,la){if((la==null?void 0:la.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Xt of la){const{answer_text:cr}=Xt||{};if(cr!=null&&cr.some(Sr=>(Sr==null?void 0:Sr.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(nn,{add:la,remove:Xt},{errors:cr})=>(Lt.current=la,Bn.current=Xt,Vt.createElement(Vt.Fragment,null,Vt.createElement(Be.default.Item,{label:Vt.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(nn!=null&&nn.length)&&Vt.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),nn.map((Sr,br)=>{var Ar=Sr,{key:zn,name:ur}=Ar,zr=dr(Ar,["key","name"]);return Vt.createElement(Qe.Z,{className:"mb20",key:zn,align:"top"},Vt.createElement(Je.Z,{flex:"0 0 auto",className:`${yt.blankIndex} pt5`},"\u586B\u7A7A\u9879",br+1),Vt.createElement(Je.Z,{flex:1},Vt.createElement(Qe.Z,{align:"top",justify:"space-between"},Vt.createElement(Je.Z,{flex:1},Vt.createElement(Be.default.Item,Va(Pa({},zr),{name:[ur,"answer_text"],noStyle:!0}),Vt.createElement(Er,null))),(Se==null?void 0:Se.getFieldValue(["sub_item_banks",...rt]))&&Vt.createElement(Je.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},Vt.createElement(Be.default.Item,Va(Pa({},zr),{name:[ur,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:yt.blankInputNumberWrapper}),Vt.createElement(Oe.Z,{onChange:()=>{var Vr,$r;let yr=Se==null?void 0:Se.getFieldValue(["sub_item_banks",Cn==null?void 0:Cn[0],"standard_answers"]),xr=0;for(let Tr in yr)(Vr=yr[Tr])!=null&&Vr.score&&(xr+=Number(($r=yr[Tr])==null?void 0:$r.score));Se==null||Se.setFieldValue(["sub_item_banks",Cn==null?void 0:Cn[0],"question_score"],xr)},className:yt.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Vt.createElement(Be.default.Item,Va(Pa({},zr),{name:[ur,"position"],noStyle:!0}),Vt.createElement(Fe.default,{type:"hidden"}))))})))),Vt.createElement(Qe.Z,{align:"middle"},Vt.createElement(Be.default.Item,{name:[Ee,"downcase"],valuePropName:"checked"},Vt.createElement(Gt.Z,null)),Vt.createElement(Je.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Vt.createElement(Qe.Z,{align:"middle"},Vt.createElement(Be.default.Item,{name:[Ee,"no_space"],valuePropName:"checked"},Vt.createElement(Gt.Z,null)),Vt.createElement(Je.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(ar==null?void 0:ar.length)>1&&Vt.createElement(Qe.Z,{align:"middle",className:(ar==null?void 0:ar.length)>1?"mb30":`${yt.hide}`},Vt.createElement(Be.default.Item,{name:Fn},Vt.createElement(Mr,null)),Vt.createElement(Je.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Vt.createElement("div",{onClick:()=>Ct(!0)},Vt.createElement(Be.default.Item,{name:ia,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Vt.createElement(_n,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ba}))))};var Xa=Object.defineProperty,qa=Object.defineProperties,vr=Object.getOwnPropertyDescriptors,fa=Object.getOwnPropertySymbols,lr=Object.prototype.hasOwnProperty,mr=Object.prototype.propertyIsEnumerable,Ga=(se,Se,Ee)=>Se in se?Xa(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,tr=(se,Se)=>{for(var Ee in Se||(Se={}))lr.call(Se,Ee)&&Ga(se,Ee,Se[Ee]);if(fa)for(var Ee of fa(Se))mr.call(Se,Ee)&&Ga(se,Ee,Se[Ee]);return se},mt=(se,Se)=>qa(se,vr(Se)),it=(se,Se)=>{var Ee={};for(var rt in se)lr.call(se,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=se[rt]);if(se!=null&&fa)for(var rt of fa(se))Se.indexOf(rt)<0&&mr.call(se,rt)&&(Ee[rt]=se[rt]);return Ee};const Ot={\u6B63\u786E:"T",\u9519\u8BEF:"F"},gn=({value:se,onChange:Se,form:Ee,choiceKey:rt})=>{const Cn=(se==null?void 0:se.is_answer)===1,$n=se==null?void 0:se.choice_text,ia=()=>{var Fn;const bt=(Fn=Ee==null?void 0:Ee.getFieldValue(["sub_item_banks",...rt]))==null?void 0:Fn.map(Zt=>({choice_text:Zt.choice_text,is_answer:0}));Ee==null||Ee.setFieldValue(["sub_item_banks",...rt],bt),Se(mt(tr({},se),{is_answer:1}))};return b.createElement(Qe.Z,{className:yt.choiceWrap,align:"middle",wrap:!1},b.createElement(Je.Z,{onClick:ia,className:`${yt.choiceIndex} ${yt.judgementIndex} ${Cn?yt.activeAnswer:""}`},Ot[$n]),b.createElement(Je.Z,{flex:1,className:`${yt.editorWrap} ml15`},b.createElement("div",{className:`${yt.inputBorder} ${yt.placeholder} ${Cn?yt.activeJudgementAnswer:""}`},$n)),b.createElement(Je.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:ia,className:`${yt.setAnswerBtn} ${Cn?yt.activeAnswer:""}`},Cn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},ua=({questionTitlePlaceholder:se,choiceKey:Se="choices",form:Ee,titleKey:rt="name",analysisKey:Cn="analysis"})=>{const[$n,ia]=(0,b.useState)(!1);return b.createElement("div",{className:yt.wrap},b.createElement("div",{className:yt.questionTitleEditorWrap},b.createElement(Be.default.Item,{label:"\u9898\u5E72",name:rt,labelCol:{span:24},rules:[{required:!0}]},b.createElement(zt,{scrollId:"name",watch:!0,height:140,placeholder:se}))),b.createElement(Be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},b.createElement(Be.default.List,{name:Se,rules:[{validator(Fn,bt){return bt.some(ba=>(ba==null?void 0:ba.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Fn=>b.createElement("div",{id:"choices"},Fn.map(bt=>{var Zt=bt,{key:ba,name:Ct}=Zt,Sn=it(Zt,["key","name"]);return b.createElement(Be.default.Item,mt(tr({},Sn),{key:ba,name:Ct,noStyle:!0}),b.createElement(gn,{form:Ee,choiceKey:Se}))})))),b.createElement("div",{onClick:()=>ia(!0)},b.createElement(Be.default.Item,{name:Cn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(_n,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:$n}))))};var Ia=oe(12563),tn=Object.defineProperty,Ba=Object.defineProperties,Aa=Object.getOwnPropertyDescriptors,nr=Object.getOwnPropertySymbols,ka=Object.prototype.hasOwnProperty,ga=Object.prototype.propertyIsEnumerable,Qa=(se,Se,Ee)=>Se in se?tn(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,pr=(se,Se)=>{for(var Ee in Se||(Se={}))ka.call(Se,Ee)&&Qa(se,Ee,Se[Ee]);if(nr)for(var Ee of nr(Se))ga.call(Se,Ee)&&Qa(se,Ee,Se[Ee]);return se},Gr=(se,Se)=>Ba(se,Aa(Se)),er=(se,Se)=>{var Ee={};for(var rt in se)ka.call(se,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=se[rt]);if(se!=null&&nr)for(var rt of nr(se))Se.indexOf(rt)<0&&ga.call(se,rt)&&(Ee[rt]=se[rt]);return Ee};const fr=se=>{var Se=se,{value:Ee,onChange:rt}=Se,Cn=er(Se,["value","onChange"]);const $n=ia=>{rt([ia])};return b.createElement(je.Z,Gr(pr({},Cn),{defaultValue:Ee==null?void 0:Ee[0],onChange:$n}))},Dr=se=>{if(!se)return!1;if(/^s*$/.test(se)||se.trim()===""){be.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Se=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return se==="|"?(be.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Gn=({value:se=[],onClose:Se})=>b.createElement(Ia.default,{closable:!0,onClose:Se,className:yt.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},se.join(" \u6216 "))),on=({questionTitlePlaceholder:se,form:Se,showKeywords:Ee,isMustKeyWords:rt=Ee,titleKey:Cn="name",analysisKey:$n="analysis",answerTexts:ia="answer_texts",keywords:Fn="keywords",useKeywords:bt="use_keywords",indexs:Zt})=>{var ba,Ct,Sn,na;const[va,Lt]=(0,b.useState)(!1),[fn,Bn]=(0,b.useState)(""),an=(Ct=(ba=Se.getFieldValue("sub_item_banks"))==null?void 0:ba[bt==null?void 0:bt[0]])==null?void 0:Ct[bt==null?void 0:bt[1]],ar=(na=(Sn=Se.getFieldValue("sub_item_banks"))==null?void 0:Sn[bt==null?void 0:bt[0]])==null?void 0:na.question_score;return b.createElement("div",{className:yt.wrap},b.createElement("div",{className:yt.questionTitleEditorWrap},b.createElement(Be.default.Item,{label:"\u9898\u5E72",name:Cn,labelCol:{span:24},rules:[{required:!0}]},b.createElement(zt,{scrollId:"name",watch:!0,height:140,placeholder:se}))),b.createElement(Be.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:ia,labelCol:{span:24}},b.createElement(fr,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Ee&&!rt&&b.createElement(Be.default.Item,{hidden:!0,name:bt,valuePropName:"checked"},b.createElement(Gt.Z,{defaultChecked:!0})),Ee&&rt&&b.createElement(Qe.Z,{align:"middle",className:"mb30"},b.createElement(Be.default.Item,{name:bt,valuePropName:"checked"},b.createElement(Gt.Z,null)),b.createElement(Je.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(Je.Z,null,b.createElement(ne.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(vt.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(an||!rt)&&b.createElement(Be.default.List,{name:Fn,rules:[{validator(nn,la){return rt?la!=null&&la.length?(la==null?void 0:la.reduce((cr,Sr)=>cr+Sr.score,0))>parseFloat(ar)?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()}}]},(nn,{add:la,remove:Xt})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${yt.title} mb10`},rt?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(Qe.Z,{align:"middle",className:"font14 mb30"},b.createElement(Je.Z,{flex:1},b.createElement(Fe.default,{value:fn,onChange:cr=>{Bn(cr.target.value)},maxLength:50,allowClear:!0,onPressEnter:cr=>{var Sr,br,Ar,zn;const ur=`${(Sr=cr.target)==null?void 0:Sr.value}`,zr=(Ar=(br=ur==null?void 0:ur.split("|"))==null?void 0:br.filter(yr=>!!yr))==null?void 0:Ar.map(yr=>yr.trim()),Vr=Se.getFieldValue(["sub_item_banks",...Fn]),$r=((zn=Vr==null?void 0:Vr.map(yr=>yr==null?void 0:yr.keyword))==null?void 0:zn.flat())||[];for(const yr of zr)if($r.includes(yr)){be.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Dr(ur)&&(la({keyword:zr,score:1}),Bn(""))},className:yt.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(Je.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),nn.map(cr=>{var Sr=cr,{key:br,name:Ar}=Sr,zn=er(Sr,["key","name"]);return b.createElement(Qe.Z,{key:br,className:"mb20",style:{marginRight:148}},b.createElement(Je.Z,{flex:1},b.createElement(Qe.Z,{align:"middle",justify:"space-between"},b.createElement(Be.default.Item,Gr(pr({},zn),{name:[Ar,"keyword"]}),b.createElement(Gn,{onClose:()=>Xt(Ar)})),rt&&b.createElement(Be.default.Item,Gr(pr({},zn),{name:[Ar,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:yt.blankInputNumberWrapper}),b.createElement(Oe.Z,{className:yt.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>Lt(!0)},b.createElement(Be.default.Item,{name:$n,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(_n,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:va}))))};var It=oe(59301),de=Object.defineProperty,$e=Object.defineProperties,st=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,qt=(se,Se,Ee)=>Se in se?de(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,Kt=(se,Se)=>{for(var Ee in Se||(Se={}))at.call(Se,Ee)&&qt(se,Ee,Se[Ee]);if(jt)for(var Ee of jt(Se))rn.call(Se,Ee)&&qt(se,Ee,Se[Ee]);return se},_t=(se,Se)=>$e(se,st(Se)),oa=(se,Se)=>{var Ee={};for(var rt in se)at.call(se,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=se[rt]);if(se!=null&&jt)for(var rt of jt(se))Se.indexOf(rt)<0&&rn.call(se,rt)&&(Ee[rt]=se[rt]);return Ee};const{Panel:Ha}=Tt.default,Wa=({questionTitlePlaceholder:se,choiceKey:Se,form:Ee,withScore:rt})=>{const Cn=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}],[$n,ia]=(0,b.useState)(),[Fn,bt]=(0,b.useState)([]),Zt=Ct=>{bt(Ct)},ba=({value:Ct})=>It.createElement("div",{style:{width:150,paddingLeft:11}},Ct);return It.createElement("div",{className:yt.wrap},It.createElement("div",{className:yt.questionTitleEditorWrap},It.createElement(Be.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},It.createElement(zt,{scrollId:"name",watch:!0,height:140,placeholder:se}))),It.createElement(Be.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),It.createElement(Be.default.List,{name:"sub_item_banks",rules:[{validator(Ct,Sn){return Sn?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Ct,{add:Sn,remove:na,move:va})=>{const Lt=Ee.getFieldValue("sub_item_banks");return It.createElement(It.Fragment,null,It.createElement(Tt.default,{className:Ct.length>0?yt.collapseWrapper:"",bordered:!1,activeKey:Fn,onChange:Zt,expandIcon:({isActive:fn})=>It.createElement("i",{className:`iconfont icon-weizhankai ${fn?yt.open:yt.close}`,style:{fontSize:14,transition:"all .2s"}})},Ct.map((fn,Bn)=>{var an=fn,{key:ar,name:nn}=an,la=oa(an,["key","name"]),Xt,cr,Sr,br,Ar,zn,ur,zr,Vr,$r,yr,xr,Tr,rr;return It.createElement(Ha,{className:yt.panel,forceRender:!0,header:It.createElement("div",{className:yt.panelHeader},"\u7B2C",Bn+1,"\u5C0F\u9898",It.createElement("span",null,"\uFF08",((Xt=Lt==null?void 0:Lt[nn])==null?void 0:Xt.question_type)==0?"\u5355\u9009\u9898":((cr=Lt==null?void 0:Lt[nn])==null?void 0:cr.question_type)==1?"\u591A\u9009\u9898":((Sr=Lt==null?void 0:Lt[nn])==null?void 0:Sr.question_type)==3?"\u586B\u7A7A\u9898":((br=Lt==null?void 0:Lt[nn])==null?void 0:br.question_type)==2?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:nn,extra:It.createElement(Qe.Z,{align:"middle",onClick:Nr=>Nr.stopPropagation()},((Ar=Lt==null?void 0:Lt[nn])==null?void 0:Ar.question_type)==3&&It.createElement(It.Fragment,null,It.createElement(De.ZP.Group,{defaultValue:(zn=Lt==null?void 0:Lt[nn])==null?void 0:zn.use_blank_score,className:ie.scoreByBlankRadio,style:{marginRight:20},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:Nr=>{var Or,Ur,eo,mo,fo;if(Ee==null||Ee.setFieldValue(["sub_item_banks",nn,"use_blank_score"],(Or=Nr==null?void 0:Nr.target)==null?void 0:Or.value),(Ur=Nr==null?void 0:Nr.target)!=null&&Ur.value){let Ao=0;for(let So in(eo=Ee==null?void 0:Ee.getFieldValue(["sub_item_banks",nn]))==null?void 0:eo.standard_answers)Ao+=Number((fo=(mo=Ee==null?void 0:Ee.getFieldValue(["sub_item_banks",nn]))==null?void 0:mo.standard_answers[So])==null?void 0:fo.score);Ee==null||Ee.setFieldValue(["sub_item_banks",nn,"question_score"],Ao||"")}ia(new Date)}}),It.createElement(ne.Z,{overlayInnerStyle:{width:460},title:It.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",It.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")},It.createElement("i",{className:"icon-tishixiaowenhao font18 mr25 c-3061d0"}))),rt&&It.createElement(Be.default.Item,_t(Kt({},la),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[nn,"question_score"],className:yt.blankInputNumberWrapper}),((ur=Lt==null?void 0:Lt[nn])==null?void 0:ur.question_type)==3&&((zr=Lt==null?void 0:Lt[nn])!=null&&zr.use_blank_score)?It.createElement(ba,null):It.createElement(Oe.Z,{className:yt.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}})),It.createElement(Qe.Z,{align:"middle",className:"pl40",style:{width:82}},Bn!==0&&It.createElement("div",{onClick:()=>{var Nr;va(Bn,Bn-1);const Or=(Nr=Ee.getFieldValue("sub_item_banks"))==null?void 0:Nr.map((Ur,eo)=>(Ct.map((mo,fo)=>{eo===fo&&(Ur.q_position=Number(mo.name)+1)}),Ur));Ee.setFieldValue("sub_item_banks",Or)}},It.createElement(ne.Z,{title:"\u4E0A\u79FB"},It.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),Bn{var Nr;va(Bn,Bn+1);const Or=(Nr=Ee.getFieldValue("sub_item_banks"))==null?void 0:Nr.map((Ur,eo)=>(Ct.map((mo,fo)=>{eo===fo&&(Ur.q_position=Number(mo.name)+1)}),Ur));Ee.setFieldValue("sub_item_banks",Or)},className:Bn===0?"":"ml10"},It.createElement(ne.Z,{title:"\u4E0B\u79FB"},It.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"})))),It.createElement(ne.Z,{title:"\u5220\u9664"},It.createElement(An.Z,{className:`${yt.deleteIcon} ml40`,onClick:()=>na(nn)})))},It.createElement(Be.default.Item,_t(Kt({},la),{name:nn}),(((Vr=Lt==null?void 0:Lt[nn])==null?void 0:Vr.question_type)==0||(($r=Lt==null?void 0:Lt[nn])==null?void 0:$r.question_type)==1)&&It.createElement(La,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((yr=Lt==null?void 0:Lt[nn])==null?void 0:yr.question_type)==1,form:Ee,choiceKey:[nn,"choices"],titleKey:[nn,"name"],analysisKey:[nn,"analysis"],choiceOptionsPath:["sub_item_banks",nn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((xr=Lt==null?void 0:Lt[nn])==null?void 0:xr.question_type)==3&&It.createElement(Jr,{form:Ee,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",name:nn,scoreByBlank:[nn,"use_blank_score"],titleKey:[nn,"name"],analysisKey:[nn,"analysis"],isOrdered:[nn,"is_ordered"],answerKey:[nn,"standard_answers"],key:$n}),((Tr=Lt==null?void 0:Lt[nn])==null?void 0:Tr.question_type)==2&&It.createElement(ua,{form:Ee,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[nn,"name"],analysisKey:[nn,"analysis"],choiceKey:[nn,"choices"]}),((rr=Lt==null?void 0:Lt[nn])==null?void 0:rr.question_type)==4&&It.createElement(on,{showKeywords:!0,isMustKeyWords:!0,form:Ee,titleKey:[nn,"name"],analysisKey:[nn,"analysis"],answerTexts:[nn,"answer_texts"],useKeywords:[nn,"use_keywords"],keywords:[nn,"keywords"],indexs:nn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9",key:$n})))})),Ct.length<20&&It.createElement(z.Z,{menu:{items:[{label:It.createElement("div",{onClick:()=>{Sn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:0,item_type:"SINGLE"}),bt([Ct==null?void 0:Ct.length,...Fn])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:It.createElement("div",{onClick:()=>{Sn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:1,item_type:"MULTIPLE"}),bt([Ct==null?void 0:Ct.length,...Fn])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:It.createElement("div",{onClick:()=>{Sn({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",question_type:2,item_type:"JUDGMENT"}),bt([Ct==null?void 0:Ct.length,...Fn])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:It.createElement("div",{onClick:()=>{Sn({name:"",analysis:"",is_ordered:!0,standard_answers:[],question_type:3,item_type:"COMPLETION",use_blank_score:!0,downcase:!0,no_space:!0}),bt([Ct==null?void 0:Ct.length,...Fn])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:It.createElement("div",{onClick:()=>{Sn({name:"",answer_texts:[],keywords:[],use_keywords:!1,analysis:"",question_type:4,item_type:"SUBJECTIVE"}),bt([Ct==null?void 0:Ct.length,...Fn])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(fn=>fn.show).map(fn=>({label:fn.label,key:fn.key}))}},It.createElement("div",{className:`${yt.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var pn=oe(59301),Na=Object.defineProperty,xa=Object.defineProperties,ja=Object.getOwnPropertyDescriptors,Ir=Object.getOwnPropertySymbols,Qr=Object.prototype.hasOwnProperty,Rr=Object.prototype.propertyIsEnumerable,Wr=(se,Se,Ee)=>Se in se?Na(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,jr=(se,Se)=>{for(var Ee in Se||(Se={}))Qr.call(Se,Ee)&&Wr(se,Ee,Se[Ee]);if(Ir)for(var Ee of Ir(Se))Rr.call(Se,Ee)&&Wr(se,Ee,Se[Ee]);return se},Zr=(se,Se)=>xa(se,ja(Se)),Co=(se,Se,Ee)=>new Promise((rt,Cn)=>{var $n=bt=>{try{Fn(Ee.next(bt))}catch(Zt){Cn(Zt)}},ia=bt=>{try{Fn(Ee.throw(bt))}catch(Zt){Cn(Zt)}},Fn=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,ia);Fn((Ee=Ee.apply(se,Se)).next())}),ho=({qitem:se,setisedit:Se,TagDiscipline:Ee,exerciseitem:rt,seveeditor:Cn,deleteitem:$n,getTagData:ia,init:Fn,showTip:bt=!1})=>{const[Zt]=Be.default.useForm();(0,b.useEffect)(()=>{var Ct;Zt.setFieldsValue(Zr(jr({},se),{name:se.question_title,sub_item_banks:(Ct=se.sub_exercise_questions)==null?void 0:Ct.map(Sn=>{var na;return Zr(jr({},Sn),{name:Sn.question_title,choices:(na=Sn==null?void 0:Sn.question_choices)==null?void 0:na.map(va=>Zr(jr({},va),{is_answer:va!=null&&va.standard_boolean?1:0}))})}),repeat_answer:!se.repeat_answer}))},[se]);const ba=Ct=>{if(!(Ct!=null&&Ct.length))return!1;const Sn=Ct.map(va=>{var Lt;return(Lt=va.choice_text)==null?void 0:Lt.trim().replace(/^\s+|\s+$/g,"")});return new Set(Sn).size!==Sn.length};return pn.createElement("div",null,pn.createElement(Be.default,{form:Zt,colon:!1,onValuesChange:(Ct,Sn)=>{var na,va,Lt;if(Ct!=null&&Ct.sub_item_banks){let fn=((na=Zt.getFieldValue("sub_item_banks"))==null?void 0:na.length)>0&&((Lt=(va=Zt.getFieldValue("sub_item_banks"))==null?void 0:va.map(Bn=>{var an;if(Bn.question_type==3&&(Bn!=null&&Bn.use_blank_score)){let ar=0;for(let nn in Bn==null?void 0:Bn.standard_answers)ar+=Number((an=Bn==null?void 0:Bn.standard_answers[nn])==null?void 0:an.score);return ar}else return Bn.question_score}))==null?void 0:Lt.filter(Bn=>Bn));(fn==null?void 0:fn.length)>0&&Zt.setFieldsValue({question_score:parseFloat(fn==null?void 0:fn.reduce((Bn,an)=>parseFloat(Bn)+parseFloat(an))).toFixed(1)})}},onFinish:Ct=>{var Sn,na;if((Sn=Ct.sub_item_banks)==null?void 0:Sn.some(Lt=>Lt.question_type===0||Lt.question_type===1?ba(Lt.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}Cn(Zr(jr(jr({},se),Ct),{sub_item_banks:(na=Ct==null?void 0:Ct.sub_item_banks)==null?void 0:na.map(Lt=>(console.log(Lt),Zr(jr({},Lt),{item_type:Lt==null?void 0:Lt.question_type,id:(Lt==null?void 0:Lt.question_id)||""})))}))},onFinishFailed:Ct=>Co(void 0,null,function*(){var Sn,na;be.ZP.error(Ct.errorFields[0].errors[0]),Zt.scrollToField((na=(Sn=Ct==null?void 0:Ct.errorFields)==null?void 0:Sn[0])==null?void 0:na.name,{behavior:"smooth",block:"center"})})},pn.createElement("div",{style:{display:"flex",alignItems:"center"}},pn.createElement("div",{style:{flex:1}},pn.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),pn.createElement("span",null,"\u7EC4\u5408\u9898")),!se.isadd&&pn.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{$n()}},pn.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),pn.createElement(We.ZP,{onClick:()=>{var Ct;se.isadd?(Se(!1),Fn()):(Zt.setFieldsValue(Zr(jr({},se),{name:se==null?void 0:se.question_title,choices:(Ct=se==null?void 0:se.question_choices)==null?void 0:Ct.map(Sn=>Zr(jr({},Sn),{standard_boolean:Sn!=null&&Sn.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),pn.createElement(ne.Z,{overlayClassName:ie.shake,open:bt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:pn.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},pn.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")},pn.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{Zt.submit()}},"\u4FDD\u5B58"))),pn.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},pn.createElement(Ca.Z,{text:"\uFF08\u7EC4\u5408\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5C0F\u9898\u5206\u503C\u4E4B\u548C\uFF09"}),pn.createElement(Wa,{form:Zt,withScore:!0,choiceKey:"",questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7EC4\u5408\u9898\u9898\u5E72\u5185\u5BB9"}),pn.createElement(ct,{getTagData:ia,qitem:se,exerciseitem:rt,TagDiscipline:Ee,form:Zt}))))},Eo=oe(94827),xo=oe(24334),Hr=oe(59301),wo=Object.defineProperty,Ll=Object.defineProperties,Il=Object.getOwnPropertyDescriptors,ci=Object.getOwnPropertySymbols,Vi=Object.prototype.hasOwnProperty,Nl=Object.prototype.propertyIsEnumerable,ro=(se,Se,Ee)=>Se in se?wo(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,Lo=(se,Se)=>{for(var Ee in Se||(Se={}))Vi.call(Se,Ee)&&ro(se,Ee,Se[Ee]);if(ci)for(var Ee of ci(Se))Nl.call(Se,Ee)&&ro(se,Ee,Se[Ee]);return se},Ko=(se,Se)=>Ll(se,Il(Se)),Ol=(se,Se,Ee)=>new Promise((rt,Cn)=>{var $n=bt=>{try{Fn(Ee.next(bt))}catch(Zt){Cn(Zt)}},ia=bt=>{try{Fn(Ee.throw(bt))}catch(Zt){Cn(Zt)}},Fn=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,ia);Fn((Ee=Ee.apply(se,Se)).next())}),ri=({qitem:se,TagDiscipline:Se,exerciseitem:Ee,setisedit:rt,seveeditor:Cn,deleteitem:$n,getTagData:ia,init:Fn,showTip:bt=!1})=>{const[Zt]=Be.default.useForm(),ba=!0;return(0,b.useEffect)(()=>{var Ct,Sn,na;Zt.setFieldsValue(Ko(Lo({},se),{standard_answers:se.standard_answer,difficulty:se.difficulty,item_banks_group_id:se.item_banks_group_id,hack:Ko(Lo({},se),{time_limit:(se==null?void 0:se.time_limit)||3}),hack_codes:{language:(Ct=se==null?void 0:se.program_attr)==null?void 0:Ct.language,code:xo.Base64.decode(((Sn=se==null?void 0:se.program_attr)==null?void 0:Sn.code)||"")},hack_sets:Lo({},(na=se==null?void 0:se.hack_sets)==null?void 0:na[0]),repeat_answer:!se.repeat_answer}))},[se]),Hr.createElement("div",null,Hr.createElement(Be.default,{form:Zt,colon:!1,onValuesChange:(Ct,Sn)=>{var na,va,Lt,fn;if(Ct!=null&&Ct.standard_answers){let Bn=((na=Zt.getFieldValue("standard_answers"))==null?void 0:na.length)>0&&((Lt=(va=Zt.getFieldValue("standard_answers"))==null?void 0:va.map(an=>an.score))==null?void 0:Lt.filter(an=>an));(Bn==null?void 0:Bn.length)>0&&Zt.setFieldsValue({question_score:(Bn==null?void 0:Bn.length)>0&&((fn=Bn.reduce((an,ar)=>an+ar))==null?void 0:fn.toFixed(1))})}},onFinish:Ct=>{var Sn;Cn(Ko(Lo(Lo({},se),Ct),{item_type:se==null?void 0:se.question_type,standard_answers:(Sn=Ct.standard_answers)==null?void 0:Sn.map((na,va)=>Ko(Lo({},na),{position:va+1})),standard_answer:void 0}))},onFinishFailed:Ct=>Ol(void 0,null,function*(){var Sn,na;be.ZP.error(Ct.errorFields[0].errors[0]),Zt.scrollToField((na=(Sn=Ct==null?void 0:Ct.errorFields)==null?void 0:Sn[0])==null?void 0:na.name,{behavior:"smooth",block:"center"})})},Hr.createElement("div",{style:{display:"flex",alignItems:"center"}},Hr.createElement("div",{style:{flex:1}},Hr.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Hr.createElement("span",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898")),!se.isadd&&Hr.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{$n()}},Hr.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}})," \u5220\u9664"),Hr.createElement(We.ZP,{onClick:()=>{var Ct,Sn,na;se.isadd?(rt(!1),Fn()):(Zt.setFieldsValue(Ko(Lo({},se),{standard_answers:se.standard_answer,difficulty:se.difficult,item_banks_group_id:se.item_banks_group_id,hack:Lo({},se),hack_codes:{language:(Ct=se==null?void 0:se.program_attr)==null?void 0:Ct.language,code:xo.Base64.decode((Sn=se==null?void 0:se.program_attr)==null?void 0:Sn.code)},hack_sets:Lo({},(na=se==null?void 0:se.hack_sets)==null?void 0:na[0]),repeat_answer:!se.repeat_answer})),rt(!1))}},"\u53D6\u6D88"),Hr.createElement(ne.Z,{overlayClassName:ie.shake,open:bt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Hr.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Hr.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")},Hr.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{Zt.submit()}},"\u4FDD\u5B58"))),Hr.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Hr.createElement(Ca.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}),Hr.createElement(Eo.t,{form:Zt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7A0B\u5E8F\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:ba,hackidentifier:se==null?void 0:se.hack_identifier,answerKey:"standard_answers"}),Hr.createElement(ct,{getTagData:ia,qitem:se,exerciseitem:Ee,TagDiscipline:Se,form:Zt}))))},Ml=oe(81327),Qi=oe(14739),za=oe(59301),Rl=Object.defineProperty,Tl=Object.defineProperties,kl=Object.getOwnPropertyDescriptors,so=Object.getOwnPropertySymbols,Gl=Object.prototype.hasOwnProperty,jl=Object.prototype.propertyIsEnumerable,Oo=(se,Se,Ee)=>Se in se?Rl(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,no=(se,Se)=>{for(var Ee in Se||(Se={}))Gl.call(Se,Ee)&&Oo(se,Ee,Se[Ee]);if(so)for(var Ee of so(Se))jl.call(Se,Ee)&&Oo(se,Ee,Se[Ee]);return se},po=(se,Se)=>Tl(se,kl(Se)),Ui=(se,Se,Ee)=>new Promise((rt,Cn)=>{var $n=bt=>{try{Fn(Ee.next(bt))}catch(Zt){Cn(Zt)}},ia=bt=>{try{Fn(Ee.throw(bt))}catch(Zt){Cn(Zt)}},Fn=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,ia);Fn((Ee=Ee.apply(se,Se)).next())}),Ki=({qitem:se,setqitem:Se,setisedit:Ee,TagDiscipline:rt,exerciseitem:Cn,seveeditor:$n,deleteitem:ia,showTip:Fn=!1})=>{var bt,Zt;const[ba]=Be.default.useForm();(0,b.useEffect)(()=>{var Lt,fn;ba.setFieldsValue(po(no({},se),{name:se==null?void 0:se.question_title,choices:(Lt=se==null?void 0:se.question_choices)==null?void 0:Lt.map(Bn=>po(no({},Bn),{standard_boolean:Bn!=null&&Bn.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)})),se.shixun=(fn=se==null?void 0:se.shixun)==null?void 0:fn.map(Bn=>po(no({},Bn),{defaultscore:Bn.challenge_score}))},[]);const Ct=(Lt,fn,Bn)=>{const an=JSON.parse(JSON.stringify((se==null?void 0:se.shixun)||[]));an[Bn][Lt]=fn,Se(po(no({},se),{shixun:an}))},Sn=(Lt,fn,Bn,an)=>{const ar=JSON.parse(JSON.stringify((se==null?void 0:se.shixun)||[]));ar[Bn].challenge_step_penalties[an][Lt]=fn,Se(po(no({},se),{shixun:ar}))},na=Lt=>{var fn;const Bn=JSON.parse(JSON.stringify((se==null?void 0:se.shixun)||[]));(fn=Bn[Lt])!=null&&fn.challenge_step_penalties&&Bn[Lt].challenge_step_penalties.push({id:null,score:null,start_time:null,end_time:null}),Se(po(no({},se),{shixun:Bn}))},va=(Lt,fn)=>{var Bn;const an=JSON.parse(JSON.stringify((se==null?void 0:se.shixun)||[]));an[Lt].challenge_step_penalties,(Bn=an[Lt])!=null&&Bn.challenge_step_penalties&&an[Lt].challenge_step_penalties.splice(fn,1),Se(po(no({},se),{shixun:an}))};return za.createElement("div",null,za.createElement(Be.default,{form:ba,colon:!1,onFinish:Lt=>{var fn,Bn;let an=po(no({},Lt),{question_scores:(fn=se==null?void 0:se.shixun)==null?void 0:fn.map(ar=>ar.challenge_score),item_type:se==null?void 0:se.question_type,choices:(Bn=Lt==null?void 0:Lt.choices)==null?void 0:Bn.map(ar=>po(no({},ar),{is_answer:ar.standard_boolean}))});$n(no(no({},se),an))},onFinishFailed:Lt=>Ui(void 0,null,function*(){var fn,Bn;be.ZP.error(Lt.errorFields[0].errors[0]),ba.scrollToField((Bn=(fn=Lt==null?void 0:Lt.errorFields)==null?void 0:fn[0])==null?void 0:Bn.name,{behavior:"smooth",block:"center"})})},za.createElement("div",{style:{display:"flex",alignItems:"center"}},za.createElement("div",{style:{flex:1}},za.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),za.createElement("span",null,"\u5B9E\u8BAD\u9898")),za.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{ia()}},za.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),za.createElement(We.ZP,{onClick:()=>{var Lt,fn;ba.setFieldsValue(po(no({},se),{name:se==null?void 0:se.question_title,choices:(Lt=se==null?void 0:se.question_choices)==null?void 0:Lt.map(Bn=>po(no({},Bn),{standard_boolean:Bn!=null&&Bn.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)})),se.shixun=(fn=se==null?void 0:se.shixun)==null?void 0:fn.map(Bn=>po(no({},Bn),{challenge_score:Bn.defaultscore})),Se(no({},se)),Ee(!1)}},"\u53D6\u6D88"),za.createElement(ne.Z,{overlayClassName:ie.shake,open:Fn,placement:"bottom",color:"rgba(244,156,14,0.19)",title:za.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},za.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")},za.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>Ui(void 0,null,function*(){var Lt,fn,Bn,an;if(((fn=(Lt=se==null?void 0:se.shixun)==null?void 0:Lt.map)==null?void 0:fn.call(Lt,la=>la.challenge_score).filter(la=>la).length)<((Bn=se==null?void 0:se.shixun)==null?void 0:Bn.length)){be.ZP.info("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A");return}console.log(se,"qitem");const ar=parseFloat(ba.getFieldValue("question_score")),nn=parseFloat((an=se==null?void 0:se.shixun)==null?void 0:an.map(la=>la.challenge_score).reduce((la,Xt)=>parseFloat(la||0)+parseFloat(Xt||0)));if((se==null?void 0:se.shixun_mode)===2&&ar!==nn){be.ZP.info("\u8003\u70B9\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BD5\u9898\u5206\u503C");return}ba.submit()})},"\u4FDD\u5B58"))),za.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},(se==null?void 0:se.shixun_mode)===0?za.createElement(Ca.Z,{text:"\uFF08\u5B9E\u8BAD\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5173\u5361\u5206\u503C\u4E4B\u548C\uFF09"}):za.createElement(Be.default.Item,{className:ie.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},za.createElement(Oe.Z,{disabled:!!((bt=se==null?void 0:se.shixun)!=null&&bt.some(Lt=>Lt.challenge_test_set_score_rule==2)),onChange:Lt=>{var fn;(se==null?void 0:se.shixun_mode)===1&&((fn=se==null?void 0:se.shixun)==null?void 0:fn.length)===1&&(se.shixun[0].challenge_score=Lt,Se(no({},se)))},onBlur:Lt=>{const fn=Number(Lt.target.value);fn<1&&be.ZP.error("\u5206\u6570\u4E0D\u80FD\u5C0F\u4E8E1"),fn>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})),za.createElement(Be.default.Item,{label:"\u9898\u5E72",name:"question_title",labelCol:{span:24},rules:[{required:!0}]},za.createElement(je.Z,{watch:!0,height:140,placeholder:"",defaultValue:se.question_title})),za.createElement(Qe.Z,{style:{marginBottom:15},align:"middle",justify:"space-between"},za.createElement("div",null,za.createElement("span",{style:{color:"red"}},"*"),(se==null?void 0:se.shixun_mode)===2?"\u8003\u70B9":"\u5173\u5361","\u540D\u79F0"),za.createElement("a",{href:`/shixuns/${se==null?void 0:se.shixun_identifier}/challenges?exercise=true`,target:"_blank"},za.createElement("i",{onClick:()=>{},className:"iconfont icon-shixunkecheng font14 mr5"}),"\u5B9E\u8BAD\u8BE6\u60C5")),(Zt=se==null?void 0:se.shixun)==null?void 0:Zt.map((Lt,fn)=>{var Bn,an,ar;return za.createElement(b.Fragment,{key:Lt.challenge_id},za.createElement("div",{style:{display:"flex",marginBottom:20}},za.createElement("div",{style:{flex:1}},fn+1,"\u3001",Lt.challenge_name),za.createElement("div",null,za.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C",za.createElement(Oe.Z,{disabled:!!((Bn=se==null?void 0:se.shixun)!=null&&Bn.some(nn=>nn.challenge_test_set_score_rule==2)),precision:1,value:Lt==null?void 0:Lt.challenge_score,onChange:nn=>{const la=JSON.parse(JSON.stringify((se==null?void 0:se.shixun)||[]));la[fn].challenge_score=nn;const Xt=la.every(Sr=>!Sr.challenge_score),cr=parseFloat(la==null?void 0:la.map(Sr=>Sr.challenge_score).reduce((Sr,br)=>parseFloat(Sr||0)+parseFloat(br||0)));(se==null?void 0:se.shixun_mode)!==2&&ba.setFieldsValue({question_score:Xt?"":cr.toFixed(1)}),Se(po(no({},se),{shixun:la}))},max:200,min:1,style:{marginLeft:10,width:150},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle"}))),[1,2].includes(se==null?void 0:se.shixun_mode)&&za.createElement("div",{className:"mb20"},za.createElement(Ml.Z,null,za.createElement(Gt.Z,{checked:Lt==null?void 0:Lt.is_time_limit,onChange:nn=>Ct("is_time_limit",nn,fn)}),za.createElement("span",{className:"c-grey-333"},"\u5F00\u542F\u5B8C\u6210\u65F6\u95F4\u9650\u5236\uFF0C\u5E76\u8BBE\u7F6E\u5F97\u5206\u89C4\u5219")),[1].includes(se==null?void 0:se.shixun_mode)&&(Lt==null?void 0:Lt.is_time_limit)&&za.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:10}},za.createElement("div",null,"\u9650\u5236\u5B8C\u6210\u65F6\u95F4"),za.createElement(Oe.Z,{suffix:"\u79D2",value:Lt==null?void 0:Lt.time_limit,onChange:nn=>Ct("time_limit",nn,fn),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),za.createElement("div",null,"\uFF0C\u6BCF\u8D85\u8FC7"),za.createElement(Oe.Z,{suffix:"\u79D2",value:Lt==null?void 0:Lt.timeout_second,onChange:nn=>Ct("timeout_second",nn,fn),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),za.createElement("div",null,"\uFF0C\u6263\u9664"),za.createElement(Oe.Z,{suffix:"\u5206",value:Lt==null?void 0:Lt.deduct_point,onChange:nn=>Ct("deduct_point",nn,fn),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),za.createElement("div",null,"\uFF0C\u76F4\u81F3\u6263\u5B8C\u8BE5\u9898\u5206\u503C")),[2].includes(se==null?void 0:se.shixun_mode)&&(Lt==null?void 0:Lt.is_time_limit)&&za.createElement(za.Fragment,null,za.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:10}},za.createElement("div",null,"\u9650\u5236\u5B8C\u6210\u65F6\u95F4"),za.createElement(Oe.Z,{suffix:"\u79D2",value:Lt==null?void 0:Lt.time_limit,onChange:nn=>Ct("time_limit",nn,fn),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),za.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")),!!((an=Lt==null?void 0:Lt.challenge_step_penalties)!=null&&an.length)&&za.createElement("div",{className:"mt20 p20",style:{backgroundColor:"#F6F7F9",display:"flex",flexDirection:"column",gap:20}},(ar=Lt==null?void 0:Lt.challenge_step_penalties)==null?void 0:ar.map((nn,la)=>za.createElement(Qe.Z,{key:la,align:"middle"},za.createElement("div",null,"\u5B8C\u6210\u65F6\u95F4"),za.createElement(Oe.Z,{suffix:"\u79D2",value:nn==null?void 0:nn.start_time,onChange:Xt=>Sn("start_time",Xt,fn,la),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),za.createElement("div",null,"-"),za.createElement(Oe.Z,{suffix:"\u79D2",value:nn==null?void 0:nn.end_time,onChange:Xt=>Sn("end_time",Xt,fn,la),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),za.createElement("div",null,"\uFF0C\u6263\u9664"),za.createElement(Oe.Z,{suffix:"\u5206",value:nn==null?void 0:nn.score,onChange:Xt=>Sn("score",Xt,fn,la),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),za.createElement("i",{className:"iconfont icon-shanchu15 c-red current ml20",onClick:()=>va(fn,la)})))),za.createElement(Qi.op,{onClick:()=>na(fn),className:"mt20",shape:"default"},"\u6DFB\u52A0\u5F97\u5206\u89C4\u5219"))))}))))},ta={flex_box_center:"flex_box_center___ljmk3",flex_space_between:"flex_space_between___Fy45C",flex_box_vertical_center:"flex_box_vertical_center___SoC1C",flex_box_center_end:"flex_box_center_end___MumBX",flex_box_column:"flex_box_column___cutpt",warp:"warp___w1JUC",indexTag:"indexTag___LPncW",normalWrap:"normalWrap___pEIzs",redio:"redio___I6tXM",redioitem:"redioitem___cS4Gp",redioitemyes:"redioitemyes___JBDmk",title:"title___XAohQ",titleyes:"titleyes____bNQk",yestag:"yestag___zQnb1",checkbox:"checkbox___MHadU",checkboxitem:"checkboxitem___KX7mB",checkboxitemyes:"checkboxitemyes___MpOWf",bottom:"bottom___FkHfO",bottomitem:"bottomitem___AS0Qp",left:"left___U23z1",right:"right___yJVEk",completion:"completion___Bu5G6",content:"content___LySPW",items:"items___ETMq9",simple:"simple___XX5t0",shixunWrapper:"shixunWrapper___w6oIG",shixun:"shixun___ePWKn",score:"score___nGh9k",qtitle:"qtitle___DAMW1",program:"program___Mm1qL",combination:"combination___Sw7S6",qtype:"qtype___Xdl60",divname:"divname___AZYhO"},Yi=oe(1710),Hl=oe(10438),Nn=oe(59301);const gi=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"],zl=[{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 Fi=({qitem:se,newExercisePaper:Se})=>{var Ee,rt,Cn,$n,ia,Fn,bt,Zt,ba,Ct,Sn,na,va,Lt,fn,Bn,an,ar,nn,la,Xt,cr,Sr,br,Ar;return Nn.createElement("div",{className:ta.warp},((se==null?void 0:se.question_type)===0||(se==null?void 0:se.question_type)===2)&&Nn.createElement("div",{className:ta.normalWrap},(Ee=se==null?void 0:se.question_choices)==null?void 0:Ee.map((zn,ur)=>Nn.createElement("div",{className:ta.redio,key:ur},!(zn!=null&&zn.standard_boolean)&&Nn.createElement("span",{className:ta.redioitem}),(zn==null?void 0:zn.standard_boolean)&&Nn.createElement("i",{className:`${ta.redioitemyes} icon-duigou1`}),Nn.createElement("span",{className:`${zn!=null&&zn.standard_boolean?ta.titleyes:ta.title} ${ta.indexTag}`},(se==null?void 0:se.question_type)===0?gi[ur]:""),Nn.createElement(lt.Z,{className:zn!=null&&zn.standard_boolean?ta.titleyes:ta.title,value:zn==null?void 0:zn.choice_text}),(zn==null?void 0:zn.standard_boolean)&&Nn.createElement("div",{className:ta.yestag},"\u6B63\u786E\u7B54\u6848")))),(se==null?void 0:se.question_type)===1&&Nn.createElement("div",{className:ta.normalWrap},(rt=se==null?void 0:se.question_choices)==null?void 0:rt.map((zn,ur)=>Nn.createElement("div",{className:ta.checkbox,key:ur},!(zn!=null&&zn.standard_boolean)&&Nn.createElement("span",{className:ta.checkboxitem}),(zn==null?void 0:zn.standard_boolean)&&Nn.createElement("i",{className:`${ta.checkboxitemyes} icon-duigou1`}),Nn.createElement("span",{className:`${zn!=null&&zn.standard_boolean?ta.titleyes:ta.title} ${ta.indexTag}`},gi[ur]),Nn.createElement(lt.Z,{className:zn!=null&&zn.standard_boolean?ta.titleyes:ta.title,value:zn==null?void 0:zn.choice_text}),(zn==null?void 0:zn.standard_boolean)&&Nn.createElement("div",{className:ta.yestag},"\u6B63\u786E\u7B54\u6848")))),(se==null?void 0:se.question_type)===3&&Nn.createElement("div",{className:ta.completion},(Cn=se==null?void 0:se.standard_answers)==null?void 0:Cn.map((zn,ur)=>{var zr;return Nn.createElement(Qe.Z,{align:"top"},Nn.createElement("span",{className:ta.title},"\u586B\u7A7A\u9879",ur+1),Nn.createElement("div",{className:ta.content},(zr=zn.answer_text)==null?void 0:zr.map((Vr,$r)=>Nn.createElement("div",{key:$r,className:ta.items,style:(zn==null?void 0:zn.model)===2?{border:0,padding:0}:{}},(zn==null?void 0:zn.model)===1?Nn.createElement("pre",{className:"mb0"},Vr):Nn.createElement(Hl.Z,{value:Vr,disabled:!0})))))})),(se==null?void 0:se.question_type)===4&&Nn.createElement("div",{className:ta.simple},Nn.createElement("div",{className:ta.title},"\u53C2\u8003\u7B54\u6848"),Nn.createElement("div",{className:"mt10",style:{fontSize:"16px"}},($n=se==null?void 0:se.answer_texts)!=null&&$n[0]?Nn.createElement(lt.Z,{className:ta.content,value:(ia=se==null?void 0:se.answer_texts)==null?void 0:ia[0]}):Nn.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),Nn.createElement("div",{className:"mt20 "},Nn.createElement("span",{className:ta.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),Nn.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},se!=null&&se.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))),(se==null?void 0:se.question_type)===5&&Nn.createElement("div",{className:ta.shixunWrapper},(Fn=se==null?void 0:se.shixun)==null?void 0:Fn.map((zn,ur)=>{var zr,Vr;return Nn.createElement("div",null,Nn.createElement("div",{key:ur,className:`${ta.shixun} mb30`},Nn.createElement("span",{style:{flexShrink:0},className:ta.score},"\uFF08",zn==null?void 0:zn.challenge_score,"\u5206\uFF09"),Nn.createElement(ne.Z,{title:`${(se==null?void 0:se.index)+"."+(ur+1)}\u3001${zn==null?void 0:zn.challenge_name}`},Nn.createElement("span",{style:{width:"fit-content",marginRight:"auto"},className:ta.qtitle},(se==null?void 0:se.index)+"."+(ur+1),"\u3001",zn==null?void 0:zn.challenge_name)),(zn==null?void 0:zn.is_time_limit)&&Nn.createElement("span",{className:"pl10",style:{color:"#FF6800",flexShrink:0}},"\u5DF2\u5F00\u542F\u5B8C\u6210\u65F6\u95F4\u9650\u5236")),((Vr=(zr=Se==null?void 0:Se.editData)==null?void 0:zr.exercise)==null?void 0:Vr.show_challenge_task_pass)&&Nn.createElement(lt.Z,{className:ta.content,value:(zn==null?void 0:zn.challenge_task_pass)||"\u6682\u65E0\u5173\u5361\u63CF\u8FF0"}))})),(se==null?void 0:se.question_type)===6&&Nn.createElement("div",{className:ta.program,style:{border:!((Zt=(bt=Se==null?void 0:Se.editData)==null?void 0:bt.exercise)!=null&&Zt.show_hack_sets)&&!((Ct=(ba=Se==null?void 0:Se.editData)==null?void 0:ba.exercise)!=null&&Ct.show_hack_description)&&"none"}},((na=(Sn=Se==null?void 0:Se.editData)==null?void 0:Sn.exercise)==null?void 0:na.show_hack_sets)&&Nn.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},Nn.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},Nn.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),Nn.createElement(Yi.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(zn,ur,zr)=>zr+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(zn,ur,zr)=>Nn.createElement(ne.Z,{title:Nn.createElement("pre",null,zn)},Nn.createElement("div",{className:ta.divname},zn))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(zn,ur,zr)=>Nn.createElement(ne.Z,{title:Nn.createElement("pre",null,zn)}," ",Nn.createElement("div",{className:ta.divname},zn))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:(va=se==null?void 0:se.program_attr)==null?void 0:va.hack_sets})),((fn=(Lt=Se==null?void 0:Se.editData)==null?void 0:Lt.exercise)==null?void 0:fn.show_hack_description)&&Nn.createElement("div",null,Nn.createElement(lt.Z,{className:ta.content,value:(se==null?void 0:se.description)||"- -"}))),(se==null?void 0:se.question_type)===7&&((Bn=se==null?void 0:se.sub_exercise_questions)==null?void 0:Bn.map((zn,ur)=>{var zr,Vr,$r,yr,xr,Tr;return Nn.createElement("div",{key:ur},Nn.createElement("div",{className:ta.combination},Nn.createElement("span",{className:ta.score},zn==null?void 0:zn.question_score,"\u5206"),Nn.createElement("span",{className:ta.qtype},(zr=zl.find(rr=>rr.type==zn.question_type))==null?void 0:zr.name),Nn.createElement("span",{className:ta.qtitle},Nn.createElement(lt.Z,{value:`${ur+1}\u3001${zn==null?void 0:zn.question_title}`}))),(zn.question_type===0||zn.question_type===2)&&Nn.createElement("div",{className:ta.warp,style:{padding:"20px 58px 0 58px"}},Nn.createElement("div",null,(Vr=zn==null?void 0:zn.question_choices)==null?void 0:Vr.map((rr,Nr)=>Nn.createElement("div",{className:ta.redio,key:Nr},!(rr!=null&&rr.standard_boolean)&&Nn.createElement("span",{className:ta.redioitem}),(rr==null?void 0:rr.standard_boolean)&&Nn.createElement("i",{className:`${ta.redioitemyes} icon-duigou1`}),Nn.createElement("span",{className:`${rr!=null&&rr.standard_boolean?ta.titleyes:ta.title} ${ta.indexTag}`},gi[Nr]),Nn.createElement(lt.Z,{className:rr!=null&&rr.standard_boolean?ta.titleyes:ta.title,value:rr==null?void 0:rr.choice_text}),(rr==null?void 0:rr.standard_boolean)&&Nn.createElement("div",{className:ta.yestag},"\u6B63\u786E\u7B54\u6848"))))),zn.question_type===1&&Nn.createElement("div",{className:ta.normalWrap},($r=zn==null?void 0:zn.question_choices)==null?void 0:$r.map((rr,Nr)=>Nn.createElement("div",{className:ta.checkbox,key:Nr},!(rr!=null&&rr.standard_boolean)&&Nn.createElement("span",{className:ta.checkboxitem}),(rr==null?void 0:rr.standard_boolean)&&Nn.createElement("i",{className:`${ta.checkboxitemyes} icon-duigou1`}),Nn.createElement("span",{className:`${rr!=null&&rr.standard_boolean?ta.titleyes:ta.title} ${ta.indexTag}`},gi[Nr]),Nn.createElement(lt.Z,{className:rr!=null&&rr.standard_boolean?ta.titleyes:ta.title,value:rr==null?void 0:rr.choice_text}),(rr==null?void 0:rr.standard_boolean)&&Nn.createElement("div",{className:ta.yestag},"\u6B63\u786E\u7B54\u6848")))),zn.question_type===3&&Nn.createElement("div",{className:ta.completion},(yr=zn==null?void 0:zn.standard_answers)==null?void 0:yr.map((rr,Nr)=>{var Or;return Nn.createElement(Qe.Z,{align:"top"},Nn.createElement("span",{className:ta.title},"\u586B\u7A7A\u9879",Nr+1),Nn.createElement("div",{className:ta.content},(Or=rr.answer_text)==null?void 0:Or.map((Ur,eo)=>Nn.createElement("div",{key:eo,className:ta.items},Nn.createElement("pre",{className:"mb0"},Ur)))))})),zn.question_type===4&&Nn.createElement("div",{className:ta.simple},Nn.createElement("div",{className:ta.title},"\u53C2\u8003\u7B54\u6848"),Nn.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(xr=zn==null?void 0:zn.answer_texts)!=null&&xr[0]?Nn.createElement(lt.Z,{className:ta.content,value:(Tr=zn==null?void 0:zn.answer_texts)==null?void 0:Tr[0]}):Nn.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),Nn.createElement("div",{className:"mt20 "},Nn.createElement("span",{className:ta.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),Nn.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},zn!=null&&zn.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))))})),(se==null?void 0:se.question_type)===8&&Nn.createElement("div",null,Nn.createElement(lt.Z,{disabledFill:!0,className:ta.content,showProgramFill:!0,value:xo.Base64.decode(((an=se==null?void 0:se.program_attr)==null?void 0:an.code)||"")})),((se==null?void 0:se.question_type)<=4||[6,8].includes(se==null?void 0:se.question_type))&&Nn.createElement("div",{className:ta.bottom},Nn.createElement("div",{className:`${ta.bottomitem} mb30`},Nn.createElement("span",{className:ta.left},"\u89E3\u6790"),Nn.createElement("span",{className:ta.right},se!=null&&se.analysis?Nn.createElement(lt.Z,{value:se==null?void 0:se.analysis}):Nn.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),Nn.createElement("div",{className:`${ta.bottomitem} mb30`},Nn.createElement("span",{className:ta.left},"\u96BE\u5EA6"),Nn.createElement("span",{className:ta.right},(se==null?void 0:se.difficulty)===1?"\u7B80\u5355":(se==null?void 0:se.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),Nn.createElement("div",{className:ta.bottomitem},Nn.createElement("span",{className:ta.left},"\u77E5\u8BC6\u70B9"),Nn.createElement(ne.Z,{title:((ar=se==null?void 0:se.tag_discipline_names)==null?void 0:ar.length)<=0||((nn=se==null?void 0:se.tag_discipline_names)==null?void 0:nn.length)==1&&["-"].includes(se==null?void 0:se.tag_discipline_names[0])?"\u6682\u672A\u8BBE\u7F6E~":(Xt=(la=se==null?void 0:se.tag_discipline_names)==null?void 0:la.join("\uFF1B"))==null?void 0:Xt.toString()},Nn.createElement("span",{className:ta.right},((cr=se==null?void 0:se.tag_discipline_names)==null?void 0:cr.length)<=0?Nn.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):((Sr=se==null?void 0:se.tag_discipline_names)==null?void 0:Sr.length)==1&&["-"].includes(se==null?void 0:se.tag_discipline_names[0])?Nn.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):(Ar=(br=se==null?void 0:se.tag_discipline_names)==null?void 0:br.join("\uFF1B"))==null?void 0:Ar.toString())))))},Wl=oe(73256),Vl=oe(88637),Yr=oe(59301),Ql=Object.defineProperty,Ji=Object.defineProperties,Xi=Object.getOwnPropertyDescriptors,Bi=Object.getOwnPropertySymbols,Ul=Object.prototype.hasOwnProperty,qi=Object.prototype.propertyIsEnumerable,_i=(se,Se,Ee)=>Se in se?Ql(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,Mo=(se,Se)=>{for(var Ee in Se||(Se={}))Ul.call(Se,Ee)&&_i(se,Ee,Se[Ee]);if(Bi)for(var Ee of Bi(Se))qi.call(Se,Ee)&&_i(se,Ee,Se[Ee]);return se},Yo=(se,Se)=>Ji(se,Xi(Se)),Kl=(se,Se,Ee)=>new Promise((rt,Cn)=>{var $n=bt=>{try{Fn(Ee.next(bt))}catch(Zt){Cn(Zt)}},ia=bt=>{try{Fn(Ee.throw(bt))}catch(Zt){Cn(Zt)}},Fn=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,ia);Fn((Ee=Ee.apply(se,Se)).next())}),Yl=({qitem:se,setisedit:Se,TagDiscipline:Ee,exerciseitem:rt,seveeditor:Cn,deleteitem:$n,getTagData:ia,init:Fn,showTip:bt=!1})=>{const[Zt]=Be.default.useForm();return(0,b.useEffect)(()=>{Zt.setFieldsValue(Yo(Mo({},se),{name:se.question_title,answer_texts:se.answer_texts,repeat_answer:!se.repeat_answer}))},[se]),Yr.createElement("div",null,Yr.createElement(Be.default,{form:Zt,colon:!1,onFinish:ba=>{Cn(Mo(Mo({},se),ba))},onFinishFailed:ba=>Kl(void 0,null,function*(){var Ct,Sn;be.ZP.error(ba.errorFields[0].errors[0]),Zt.scrollToField((Sn=(Ct=ba==null?void 0:ba.errorFields)==null?void 0:Ct[0])==null?void 0:Sn.name,{behavior:"smooth",block:"center"})})},Yr.createElement("div",{style:{display:"flex",alignItems:"center"}},Yr.createElement("div",{style:{flex:1}},Yr.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Yr.createElement("span",null,"\u7B80\u7B54\u9898")),!(se!=null&&se.isadd)&&Yr.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{$n()}},Yr.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Yr.createElement(We.ZP,{onClick:()=>{se.isadd?(Se(!1),Fn()):(Zt.setFieldsValue(Yo(Mo({},se),{name:se==null?void 0:se.question_title,answer_texts:se.answer_texts||[],repeat_answer:!(se!=null&&se.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),Yr.createElement(ne.Z,{overlayClassName:ie.shake,open:bt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Yr.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Yr.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")},Yr.createElement(We.ZP,{type:"primary",className:"ml20",onClick:()=>{Zt.submit()}},"\u4FDD\u5B58"))),Yr.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Yr.createElement(Be.default.Item,{className:ie.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Yr.createElement(Oe.Z,{onBlur:ba=>{ba.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})),Yr.createElement(Vl.W,{form:Zt,showKeywords:!0,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"}),Yr.createElement(ct,{getTagData:ia,qitem:se,exerciseitem:rt,TagDiscipline:Ee,form:Zt}))))},Xr=oe(59301),bi=(se,Se,Ee)=>new Promise((rt,Cn)=>{var $n=bt=>{try{Fn(Ee.next(bt))}catch(Zt){Cn(Zt)}},ia=bt=>{try{Fn(Ee.throw(bt))}catch(Zt){Cn(Zt)}},Fn=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,ia);Fn((Ee=Ee.apply(se,Se)).next())}),Ci=({setScoreShow:se,ScoreShow:Se,exerciseitem:Ee,getdata:rt})=>{var Cn,$n,ia;const[Fn,bt]=(0,b.useState)(!1);function Zt(){return bi(this,null,function*(){var Ct,Sn,na;let va=(Sn=(Ct=Ee==null?void 0:Ee.exercise_question_types)==null?void 0:Ct.filter(fn=>fn.Singlequestion))==null?void 0:Sn.map(fn=>({question_type:fn.question_type,score:fn.Singlequestion})),Lt=yield(0,fe.ZP)(`/api/examination_banks/${(na=Ee==null?void 0:Ee.exercise)==null?void 0:na.id}/batch_set_score.json`,{method:"POST",body:{question_arr:va}});(Lt==null?void 0:Lt.status)===0&&rt()})}const ba=Ct=>{if((Ct==null?void 0:Ct.name)!="\u5B9E\u8BAD\u9898")return!1;const Sn=Ct.items;for(const na of Sn)for(const va of na.shixun)if(va.challenge_test_set_score_rule==2)return!0;return!1};return Xr.createElement("div",null,Se&&Xr.createElement(x.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:Se,width:640,centered:!0,zIndex:10,className:ie.scoremodal,onCancel:()=>{se(!1)},onOk:()=>{var Ct,Sn,na;if(Ee!=null&&Ee.use_blank_score&&((na=(Sn=(Ct=Ee==null?void 0:Ee.exercise_question_types)==null?void 0:Ct.filter(va=>va.name==="\u586B\u7A7A\u9898"))==null?void 0:Sn[0])!=null&&na.Singlequestion)){bt(!0);return}Zt(),se(!1)}},Xr.createElement("div",{className:"c-black"},"\u603B\u5206",Xr.createElement("span",{className:"ml10 c-light-primary"},(Ee==null?void 0:Ee.exercise_question_types.length)>0&&((Cn=Ee==null?void 0:Ee.exercise_types)==null?void 0:Cn.q_scores))),Xr.createElement("div",{className:ie.content},Xr.createElement("span",null,"\u9898\u578B\u540D\u79F0"),Xr.createElement("span",null,"\u5C0F\u9898\u603B\u6570"),Xr.createElement("span",null,"\u9898\u578B\u603B\u5206"),Xr.createElement("span",null,"\u64CD\u4F5C")),(ia=($n=Ee==null?void 0:Ee.exercise_question_types)==null?void 0:$n.filter(Ct=>Ct.name!=="\u7EC4\u5408\u9898"))==null?void 0:ia.map((Ct,Sn)=>{var na;return Xr.createElement("div",{key:Sn,className:ie.items},Xr.createElement("span",null,Ct==null?void 0:Ct.name),Xr.createElement("span",null,(na=Ct==null?void 0:Ct.items)==null?void 0:na.length),Xr.createElement("span",null,Ct==null?void 0:Ct.score),Xr.createElement("span",null,"\u6BCF\u9898",Xr.createElement(Oe.Z,{disabled:ba(Ct),min:.1,precision:1,max:100,onChange:va=>{Ct.Singlequestion=va},defaultValue:Ct.Singlequestion,style:{width:90,height:38,margin:"0px 10px",display:"flex",alignItems:"center"}}),"\u5206"))})),Xr.createElement(x.default,{title:!1,footer:!1,centered:!0,open:Fn,zIndex:20,width:640,closable:!1,className:ie.scoremodal},Xr.createElement("div",{style:{marginTop:40}},"\u586B\u7A7A\u9898\u4E2D\u5B58\u5728",Xr.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"),Xr.createElement("div",{className:ie.bottom},Xr.createElement(We.ZP,{className:ie.no,onClick:()=>{bt(!1)}},"\u53D6\u6D88"),Xr.createElement(We.ZP,{className:ie.yes,onClick:()=>{Zt(),bt(!1),se(!1)}},"\u786E\u8BA4"))))},el=oe(62560),Jl=oe(99530),Xl=oe(78267),ql=oe(5290),tl=oe(30561),_l=oe(70659),Hn=oe(59301),$l=Object.defineProperty,eu=Object.defineProperties,tu=Object.getOwnPropertyDescriptors,xi=Object.getOwnPropertySymbols,nu=Object.prototype.hasOwnProperty,au=Object.prototype.propertyIsEnumerable,nl=(se,Se,Ee)=>Se in se?$l(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,co=(se,Se)=>{for(var Ee in Se||(Se={}))nu.call(Se,Ee)&&nl(se,Ee,Se[Ee]);if(xi)for(var Ee of xi(Se))au.call(Se,Ee)&&nl(se,Ee,Se[Ee]);return se},Io=(se,Se)=>eu(se,tu(Se)),Kr=(se,Se,Ee)=>new Promise((rt,Cn)=>{var $n=bt=>{try{Fn(Ee.next(bt))}catch(Zt){Cn(Zt)}},ia=bt=>{try{Fn(Ee.throw(bt))}catch(Zt){Cn(Zt)}},Fn=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,ia);Fn((Ee=Ee.apply(se,Se)).next())});const Ro=[{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"}],ru=({user:se,dispatch:Se,itemid:Ee,newExercisePaper:rt,setisedits:Cn})=>{var $n,ia,Fn,bt,Zt,ba,Ct,Sn,na,va,Lt,fn,Bn;const[an,ar]=(0,b.useState)(),[nn,la]=(0,b.useState)(!1),[Xt,cr]=(0,b.useState)(),[Sr,br]=(0,b.useState)(),Ar=(0,b.useRef)(),zn=(0,b.useRef)(),[ur,zr]=(0,b.useState)(),[Vr,$r]=(0,b.useState)(!1),[yr,xr]=(0,b.useState)(!1),[Tr,rr]=(0,b.useState)(),[Nr,Or]=(0,b.useState)(!1),[Ur,eo]=(0,b.useState)(!1),[mo,fo]=(0,b.useState)(!1),[Ao,So]=(0,b.useState)(!1),[yo,ii]=(0,b.useState)(!1),[Ii,vi]=(0,b.useState)(!1),[Ru,du]=(0,b.useState)(!1),[il,ll]=(0,b.useState)(!1),[qo]=Be.default.useForm(),[ul,pi]=(0,b.useState)(!1),cu=(0,b.useRef)(null),[to]=(0,he.useSearchParams)(),[hi,_o]=(0,b.useState)(!1),Ni=to.get("isIntelligentAssistant"),[Fo,Oi]=(0,b.useState)(!1);(0,b.useEffect)(()=>{oo(),Se({type:"globalSetting/footerToggle",payload:!1})},[]),(0,b.useEffect)(()=>{Cn(yr)},[yr]),(0,b.useEffect)(()=>{Xt!=null&&Xt.question_id&&(br(Xt==null?void 0:Xt.question_score),zn.current=Xt==null?void 0:Xt.question_id)},[Xt]);const Do=Pn=>Kr(void 0,null,function*(){let ha=yield Se({type:"newExercisePaper/getTagDiscipline",payload:{sub_discipline_id:Pn}});rr(ha)});function oo(){return Kr(this,null,function*(){var Pn,ha,or,Pr,wr,kr;$r(!0),la(!0);const Lr=yield Se({type:"newExercisePaper/editExercise",payload:{id:Ee}});$r(!1),la(!1),ar(Lr),(Pn=Lr==null?void 0:Lr.exercise)!=null&&Pn.sub_discipline_id&&Do((ha=Lr==null?void 0:Lr.exercise)==null?void 0:ha.sub_discipline_id),cr(Io(co({},(wr=(Pr=(or=Lr==null?void 0:Lr.exercise_question_types)==null?void 0:or[0])==null?void 0:Pr.items)==null?void 0:wr[0]),{index:1})),zr(Io(co({},(kr=Lr==null?void 0:Lr.exercise_question_types)==null?void 0:kr[0]),{indexs:1}))})}function Vo(Pn,ha=!0){return Kr(this,null,function*(){var or,Pr,wr,kr;ha&&($r(!0),la(!0));const Lr=yield Se({type:"newExercisePaper/editExercise",payload:{id:Ee}});ar(Lr);let vo=[];(or=Lr==null?void 0:Lr.exercise_question_types)==null||or.map(ao=>{var Uo;(Uo=ao==null?void 0:ao.items)==null||Uo.map((Si,Pi)=>{vo.push(Io(co({},Si),{index:Pi+1}))})});let Go=(Pr=vo.filter(ao=>ao.question_id===(Pn==null?void 0:Pn.id)))==null?void 0:Pr[0],ti=(kr=((wr=Lr==null?void 0:Lr.exercise_question_types)==null?void 0:wr.map((ao,Uo)=>{if((Go==null?void 0:Go.question_type)===(ao==null?void 0:ao.question_type))return Io(co({},ao),{indexs:Uo+1})})).filter(ao=>ao))==null?void 0:kr[0];zr(co({},ti)),cr(co({},Go)),br(Go==null?void 0:Go.question_score),$r(!1),la(!1)})}function Qo(Pn){return Kr(this,null,function*(){var ha;let or=Io(co({},Pn),{difficulty:(Pn==null?void 0:Pn.difficulty)||2,item_type:Pn.question_type,sub_discipline_id:((ha=Pn==null?void 0:Pn.sub_discipline_id)==null?void 0:ha[1])||"",tag_discipline_ids:[],repeat_answer:!Pn.repeat_answer}),Pr={};Pn.question_type===8&&(Pr=Io(co({},Pn),{hack:Io(co({},Pn==null?void 0:Pn.hack),{difficult:Pn.difficulty}),hack_codes:Io(co({},Pn.hack_codes),{code:xo.Base64.encode(Pn.hack_codes.code)}),hack_sets:[co({},Pn.hack_sets)],is_blank:!0})),Pn.tag_discipline_ids&&(or.tag_discipline_ids=Array.isArray(Pn.tag_discipline_ids)?Pn.tag_discipline_ids:[Pn.tag_discipline_ids],Pr.tag_discipline_ids=Array.isArray(Pn.tag_discipline_ids)?Pn.tag_discipline_ids:[Pn.tag_discipline_ids]),sessionStorage.projectFill&&(Pr.hack_identifier=sessionStorage.projectFill);let wr=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/examination_banks_item_banks/create_item_bank.json`,{method:"post",body:Pn.question_type===8?Pr:or});(wr==null?void 0:wr.status)===0&&(xr(!1),Vo(wr)),(0,ge.Vf)("#question-scroll-id")})}function gu(Pn){return Kr(this,null,function*(){la(!0);let ha=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/sort_question_type.json`,{method:"post",body:{question_type:Pn}});la(!1),(ha==null?void 0:ha.status)===0&&oo()})}const mu=(Pn,ha,or)=>Kr(void 0,null,function*(){var Pr;if(Pn.length===0){be.ZP.warning("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),or();return}const wr=yield(0,le.Hb)(Ee,(Pr=Pn[0])==null?void 0:Pr.file,ha);wr.status===0&&(be.ZP.success(`\u6210\u529F\u5BFC\u5165${wr==null?void 0:wr.success}\u6761`),Or(!1),oo()),or()}),fu=(Pn,ha)=>Kr(void 0,null,function*(){an.exercise_types.q_scores=Number(an.exercise_types.q_scores)+Number(Pn)-Number(ha==null?void 0:ha.question_score);const or=yield(0,le.kF)({score:(0,Xl.round)(Pn,1),question_id:ha==null?void 0:ha.question_id});if((or==null?void 0:or.status)===0){be.ZP.success("\u4FEE\u6539\u6210\u529F"),Vo({id:zn.current},!1);return}(or==null?void 0:or.status)===-1&&br(ha==null?void 0:ha.question_score)});function ko(){return Kr(this,null,function*(){x.default.confirm({title:"\u63D0\u793A",content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",okText:"\u786E\u5B9A",centered:!0,className:ie.modalconfirm,onOk:()=>Kr(this,null,function*(){if(Xt.question_id){let Pn=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/examination_banks_item_banks/${Xt.question_id}.json`,{method:"delete"});(Pn==null?void 0:Pn.status)===0&&(oo(),xr(!1))}else cr({}),xr(!1),oo()}),cancelText:"\u53D6\u6D88"})})}const $o=Pn=>Kr(void 0,null,function*(){return yield(0,fe.ZP)(`/api/examination_banks/${Ee}/examination_banks_item_banks.json`,{method:"post",body:co({},Pn)})}),{overflow:ei,handleMouseEnter:Mi,handleMouseLeave:vu}=(0,Jl.I)(),Ri=Pn=>Kr(void 0,null,function*(){var ha,or;la(!0);let Pr=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/sort_question_type.json`,{method:"post",body:{question_type:Pn}});if(la(!1),(Pr==null?void 0:Pr.status)===0){const wr=yield Se({type:"newExercisePaper/editExercise",payload:{id:Ee}});ar(wr),(ha=wr==null?void 0:wr.exercise)!=null&&ha.sub_discipline_id&&Do((or=wr==null?void 0:wr.exercise)==null?void 0:or.sub_discipline_id)}}),Bo=()=>yr?(Oi(!0),!0):!1;(0,b.useEffect)(()=>{if(Fo){const Pn=setTimeout(()=>{Oi(!1)},2e3);return()=>clearTimeout(Pn)}},[Fo]);const li=(Pn,ha)=>Hn.createElement(y.default,null,Hn.createElement(y.default.Item,{key:"0",onClick:()=>sl(Pn==null?void 0:Pn.question_type)},Hn.createElement("span",{className:ie.moreSpan},"\u65B0\u589E")),Hn.createElement(y.default.Item,{key:"1",disabled:ha===0,onClick:()=>Kr(void 0,null,function*(){if(ha===0||Bo())return;let or=(0,ge.rz)(an==null?void 0:an.exercise_question_types,ha,ha-1);yield Ri(or.map(Pr=>Pr.name))})},Hn.createElement("span",{className:ie.moreSpan},"\u4E0A\u79FB")),Hn.createElement(y.default.Item,{key:"2",disabled:ha===(an==null?void 0:an.exercise_question_types.length)-1,onClick:()=>Kr(void 0,null,function*(){if(ha===(an==null?void 0:an.exercise_question_types.length)-1||Bo())return;let or=(0,ge.rz)(an==null?void 0:an.exercise_question_types,ha,ha+1);yield Ri(or.map(Pr=>Pr.name))})},Hn.createElement("span",{className:ie.moreSpan},"\u4E0B\u79FB")),Hn.createElement(y.default.Item,{key:"3",onClick:()=>{var or;qo.setFieldsValue({name:Pn.name,item_type_en:(or=Ro.find(Pr=>Pr.id==Pn.question_type))==null?void 0:or.nameType}),pi(!0)}},Hn.createElement("span",{className:ie.moreSpan},"\u91CD\u547D\u540D"))),sl=Pn=>{var ha,or,Pr,wr,kr,Lr,vo,Go,Ti,ti,ao,Uo,Si,Pi,ki,dl,cl,Ei,gl,ml,ui,fl,vl,Gi,pl,hl,hu,Sl;if(!Bo()){if(Pn===5){So(!0),ii(!0);return}if(Pn===6){if(to.get("pageType")=="course")to.get("updateType")=="course"?he.history.push(`/problems/newcreate?express_id=${(ha=an==null?void 0:an.exercise)==null?void 0:ha.id}&callback_url=/paperlibrary/add/${(or=an==null?void 0:an.exercise)==null?void 0:or.id}?type=2&pageType=course&updateType=course&courseId=${to.get("courseId")}&stageId=${to.get("stageId")}`):he.history.push(`/problems/newcreate?express_id=${(Pr=an==null?void 0:an.exercise)==null?void 0:Pr.id}&callback_url=/paperlibrary/add/${(wr=an==null?void 0:an.exercise)==null?void 0:wr.id}?type=2&pageType=course&courseId=${to.get("courseId")}&stageId=${to.get("stageId")}`);else{let Tu=(Lr=(kr=rt==null?void 0:rt.editData)==null?void 0:kr.exercise)!=null&&Lr.set_question_sub_discipline?`/problems/newcreate?express_id=${(vo=an==null?void 0:an.exercise)==null?void 0:vo.id}&callback_url=${window.location.pathname+window.location.search}&discipline_id=${(Ti=(Go=rt==null?void 0:rt.editData)==null?void 0:Go.exercise)==null?void 0:Ti.discipline_id}&sub_discipline_id=${(ao=(ti=rt==null?void 0:rt.editData)==null?void 0:ti.exercise)==null?void 0:ao.sub_discipline_id}`:`/problems/newcreate?express_id=${(Uo=an==null?void 0:an.exercise)==null?void 0:Uo.id}&callback_url=${window.location.pathname+window.location.search}`;he.history.push(Tu)}return}xr(!0),cr(Pn===2?{question_type:Pn,isadd:!0,repeat_answer:!0,choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],question_choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],difficulty:2,standard_answers:[],question_score:"",tag_discipline_ids:[],question_title:"",discipline_id:(Pi=(Si=rt==null?void 0:rt.editData)==null?void 0:Si.exercise)!=null&&Pi.set_question_sub_discipline?(dl=(ki=rt==null?void 0:rt.editData)==null?void 0:ki.exercise)==null?void 0:dl.discipline_id:0,sub_discipline_id:(Ei=(cl=rt==null?void 0:rt.editData)==null?void 0:cl.exercise)!=null&&Ei.set_question_sub_discipline?(ml=(gl=rt==null?void 0:rt.editData)==null?void 0:gl.exercise)==null?void 0:ml.sub_discipline_id:0,analysis:""}:{question_type:Pn,question_choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),standard_answers:[],repeat_answer:!0,difficulty:2,isadd:!0,tag_discipline_ids:[],question_score:"",analysis:"",sub_item_banks:[],question_title:"",is_ordered:!0,use_keywords:!1,use_blank_score:!0,keywords:[],allow_student_debug:!1,submit_rule:1,downcase:!0,no_space:!0,discipline_id:(fl=(ui=rt==null?void 0:rt.editData)==null?void 0:ui.exercise)!=null&&fl.set_question_sub_discipline?(Gi=(vl=rt==null?void 0:rt.editData)==null?void 0:vl.exercise)==null?void 0:Gi.discipline_id:0,sub_discipline_id:(hl=(pl=rt==null?void 0:rt.editData)==null?void 0:pl.exercise)!=null&&hl.set_question_sub_discipline?(Sl=(hu=rt==null?void 0:rt.editData)==null?void 0:hu.exercise)==null?void 0:Sl.sub_discipline_id:0})}},pu=[{key:1,label:"\u6279\u91CF\u5BFC\u5165",onClick:()=>{Bo()||Or(!0)}},{key:2,label:Hn.createElement("div",null,Hn.createElement("img",{width:26,style:{position:"absolute",top:-2},src:tl.$}),Hn.createElement("span",null,"\u667A\u80FD\u5BFC\u5165")),onClick:()=>{Bo()||eo(!0)}}];return Hn.createElement("div",null,Hn.createElement(Ge.Z,{spinning:Vr},Hn.createElement("div",{className:ie.bg},Hn.createElement("div",{style:{textAlign:"center"}},(($n=an==null?void 0:an.exercise_types)==null?void 0:$n.q_counts)===0&&!yr&&Hn.createElement(Pe.Z,{styles:{marginTop:180},customText:Hn.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",Hn.createElement("span",{className:"c-light-primary"},"\u5E95\u90E8\u64CD\u4F5C\u680F"),"\u8FDB\u884C\u6DFB\u52A0~")}),(((ia=an==null?void 0:an.exercise_types)==null?void 0:ia.q_counts)>0||yr)&&Hn.createElement("div",{style:{marginTop:20,borderTop:"1px solid #DCDCDC",display:"block",alignItems:"stretch"}},Hn.createElement("div",{style:{backgroundColor:"#F6F7F9",display:"inline-block",position:"sticky",top:0}},Hn.createElement("div",{className:ie.left},Hn.createElement("div",{className:ie.leftAction},Hn.createElement(We.ZP,{onClick:()=>{Bo()||fo(!0)},className:ie.Button},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C")),Hn.createElement("div",{className:ie.scrollWrapper,style:{overflow:ei},onMouseEnter:Mi,onMouseLeave:vu},(Fn=an==null?void 0:an.exercise_question_types)==null?void 0:Fn.map((Pn,ha)=>Hn.createElement("div",{key:ha,className:"mb30"},Hn.createElement("div",{className:ie.title},Hn.createElement("div",{className:ie.titleleft},Hn.createElement("span",{style:{color:"#000000",fontWeight:400,fontSize:12}}," ",(0,ge.EM)(ha+1),"\u3001\u3010",Pn.name,"\u3011"),Hn.createElement("span",{style:{color:"#464F66",fontSize:12}},"\uFF08",Pn.count,"\u5C0F\u9898\uFF0C\u5171",Pn.score,"\u5206\uFF09")),Hn.createElement(z.Z,{dropdownRender:()=>li(Pn,ha),placement:"bottomLeft"},Hn.createElement("div",{className:ie.more_style},Hn.createElement("i",{className:"iconfont icon-sandian font12"})))),Hn.createElement(Wt,{handleEditing:()=>{Oi(!0)},isedit:yr,setBigqitem:zr,bigitem:Io(co({},Pn),{indexs:ha+1}),setqitem:or=>Kr(void 0,null,function*(){var Pr;(Pr=Ar.current)==null||Pr.blur(),cr(or)}),qitem:Xt,Itemid:Ee,getdata:Vo,data:Pn.items})))))),Hn.createElement("div",{id:"question-scroll-id",style:{overflow:yr?"hidden":"auto"},className:ie.right,ref:cu},!(Xt!=null&&Xt.isadd)&&Hn.createElement("div",{className:ie.title},!yr&&Hn.createElement("div",{style:{flex:1}},Hn.createElement("span",{style:{color:"#000000",fontWeight:600,fontSize:16}}," ",(ur==null?void 0:ur.indexs)&&(0,ge.EM)(ur==null?void 0:ur.indexs),"\u3001\u3010",ur==null?void 0:ur.name,"\u3011"),Hn.createElement(ne.Z,{title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0"},Hn.createElement("i",{className:`${ie.edit} iconfont icon-bianji_Hover mr5 ml5 font18`,onClick:()=>{var Pn;qo.setFieldsValue({name:ur.name,item_type_en:(Pn=Ro.find(ha=>ha.id==ur.question_type))==null?void 0:Pn.nameType}),pi(!0)}})),Hn.createElement("span",{style:{color:"#464F66",fontSize:16,fontWeight:400}},"\uFF08",ur==null?void 0:ur.count,"\u5C0F\u9898\uFF0C\u5171",ur==null?void 0:ur.score,"\u5206\uFF09"),(Xt==null?void 0:Xt.question_type)===6&&Hn.createElement("span",{onClick:()=>_o(2),className:"current c-light-primary font14 bold-400"},"\u6279\u91CF\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00"),(Xt==null?void 0:Xt.question_type)===5&&Hn.createElement(ke.default,{defaultChecked:(Zt=(bt=rt==null?void 0:rt.editData)==null?void 0:bt.exercise)==null?void 0:Zt.show_challenge_task_pass,onChange:Pn=>Kr(void 0,null,function*(){let ha=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/update_show_columns.json`,{method:"post",body:{show_challenge_task_pass:Pn.target.checked}});(ha==null?void 0:ha.status)===0&&(be.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Vo({id:zn.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u9898\u76EE\u63CF\u8FF0"),(Xt==null?void 0:Xt.question_type)===6&&Hn.createElement("span",{style:{marginLeft:20},onClick:()=>{var Pn,ha,or,Pr;x.default.confirm({title:"\u7F16\u7A0B\u9898\u8BBE\u7F6E",icon:null,centered:!0,closable:!0,footer:null,content:Hn.createElement("div",null,(Xt==null?void 0:Xt.question_type)===6&&Hn.createElement(ke.default,{defaultChecked:(ha=(Pn=rt==null?void 0:rt.editData)==null?void 0:Pn.exercise)==null?void 0:ha.show_hack_sets,onChange:wr=>Kr(void 0,null,function*(){let kr=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/update_show_columns.json`,{method:"post",body:{show_hack_sets:wr.target.checked}});(kr==null?void 0:kr.status)===0&&(be.ZP.info("\u8BBE\u7F6E\u6210\u529F"),x.default.destroyAll(),Vo({id:zn.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u6D4B\u8BD5\u7528\u4F8B"),Hn.createElement("br",null),(Xt==null?void 0:Xt.question_type)===6&&Hn.createElement(ke.default,{defaultChecked:(Pr=(or=rt==null?void 0:rt.editData)==null?void 0:or.exercise)==null?void 0:Pr.show_hack_description,onChange:wr=>Kr(void 0,null,function*(){let kr=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/update_show_columns.json`,{method:"post",body:{show_hack_description:wr.target.checked}});(kr==null?void 0:kr.status)===0&&(be.ZP.info("\u8BBE\u7F6E\u6210\u529F"),x.default.destroyAll(),Vo({id:zn.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")),Hn.createElement("div",{style:{display:"flex",alignItems:"center"}},(Xt==null?void 0:Xt.question_type)===5&&!yr&&Hn.createElement("a",{className:ie.shixun,href:`/shixuns/${Xt==null?void 0:Xt.shixun_identifier}/challenges?exercise=true`,target:"_blank"},Hn.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u8BD5\u9898\u8BE6\u60C5"),!yr&&[0,1,2,4,6].includes(Xt==null?void 0:Xt.question_type)&&Hn.createElement(Be.default.Item,{label:"\u5206\u503C",style:{margin:"0 20px"},required:!0},Hn.createElement(Oe.Z,{precision:1,ref:Ar,onChange:Pn=>br(Pn),value:Sr,onBlur:Pn=>{fu(Pn.target.value,Xt)}})),!yr&&Hn.createElement(ne.Z,{title:"\u5220\u9664"},Hn.createElement("span",{onClick:()=>{ko()},style:{marginRight:20},className:`${ie.delete} mr5 `},"\u5220\u9664")),!yr&&Hn.createElement(ne.Z,{title:"\u7F16\u8F91\u8BD5\u9898"},Hn.createElement("span",{onClick:()=>{var Pn,ha,or;(Xt==null?void 0:Xt.question_type)===6?to.get("pageType")=="course"?to.get("updateType")=="course"?he.history.push(`/problems/newedit/${Xt==null?void 0:Xt.hack_identifier}?type=exercises&express_id=${(Pn=an==null?void 0:an.exercise)==null?void 0:Pn.id}&question_id=${Xt==null?void 0:Xt.question_id}&score=${Xt==null?void 0:Xt.question_score}&exercise=true&callback_url=${location.pathname}?type=2&pageType=course&updateType=course&courseId=${to.get("courseId")}&stageId=${to.get("stageId")}`):he.history.push(`/problems/newedit/${Xt==null?void 0:Xt.hack_identifier}?type=exercises&express_id=${(ha=an==null?void 0:an.exercise)==null?void 0:ha.id}&question_id=${Xt==null?void 0:Xt.question_id}&score=${Xt==null?void 0:Xt.question_score}&exercise=true&callback_url=${location.pathname}?type=2&pageType=course&courseId=${to.get("courseId")}&stageId=${to.get("stageId")}`):he.history.push(`/problems/newedit/${Xt==null?void 0:Xt.hack_identifier}?type=exercises&express_id=${(or=an==null?void 0:an.exercise)==null?void 0:or.id}&question_id=${Xt==null?void 0:Xt.question_id}&score=${Xt==null?void 0:Xt.question_score}&exercise=true&callback_url=${window.location.pathname+window.location.search}`):xr(!0)},className:`${ie.edit} mr5 `},"\u7F16\u8F91")))),!yr&&Hn.createElement("div",null,Hn.createElement("div",{className:ie.qcount},Hn.createElement("span",{className:ie.score},Xt==null?void 0:Xt.question_score,"\u5206"),Hn.createElement(lt.Z,{className:ie.qtitle,value:(Xt==null?void 0:Xt.index)+`\u3001${(Xt==null?void 0:Xt.question_type)==8?(ba=Xt==null?void 0:Xt.program_attr)==null?void 0:ba.description:Xt==null?void 0:Xt.question_title}`}),(Xt==null?void 0:Xt.high_resources_consume)&&Hn.createElement(_l.Z,{type:"shixun",style:{marginLeft:10}})),(Xt==null?void 0:Xt.question_type)===6&&Hn.createElement(Ue.Z,{onEdit:()=>_o(1),className:"mt10",dataSource:(Xt==null?void 0:Xt.languages)||[]}),Hn.createElement(Fi,{newExercisePaper:rt,TagDiscipline:Tr,qitem:Xt})),yr&&Hn.createElement("div",null,(Xt==null?void 0:Xt.question_type)<=1&&Hn.createElement(ma,{getTagData:Do,deleteitem:ko,seveeditor:Qo,exerciseitem:an,TagDiscipline:Tr,setisedit:xr,qitem:Xt,init:oo,showTip:Fo}),(Xt==null?void 0:Xt.question_type)===5&&Hn.createElement(Ki,{setqitem:cr,deleteitem:ko,seveeditor:Qo,exerciseitem:an,TagDiscipline:Tr,setisedit:xr,qitem:Xt,showTip:Fo}),(Xt==null?void 0:Xt.question_type)===3&&Hn.createElement(Ka,{getTagData:Do,deleteitem:ko,seveeditor:Qo,exerciseitem:an,TagDiscipline:Tr,setisedit:xr,qitem:Xt,init:oo,showTip:Fo}),(Xt==null?void 0:Xt.question_type)===2&&Hn.createElement(Qt,{getTagData:Do,deleteitem:ko,seveeditor:Qo,exerciseitem:an,TagDiscipline:Tr,setisedit:xr,qitem:Xt,init:oo,showTip:Fo}),(Xt==null?void 0:Xt.question_type)===4&&Hn.createElement(Yl,{getTagData:Do,deleteitem:ko,seveeditor:Qo,exerciseitem:an,TagDiscipline:Tr,setisedit:xr,qitem:Xt,init:oo,showTip:Fo}),(Xt==null?void 0:Xt.question_type)===7&&Hn.createElement(ho,{getTagData:Do,deleteitem:ko,seveeditor:Qo,exerciseitem:an,TagDiscipline:Tr,setisedit:xr,qitem:Xt,init:oo,showTip:Fo}),(Xt==null?void 0:Xt.question_type)===8&&Hn.createElement(ri,{getTagData:Do,deleteitem:ko,seveeditor:Qo,exerciseitem:an,TagDiscipline:Tr,setisedit:xr,qitem:Xt,init:oo,showTip:Fo}))))))),Hn.createElement("div",{className:ie.bottomdiv},Hn.createElement("div",{style:{width:1200,margin:"0px auto",display:"flex",justifyContent:"space-between",alignItems:"center"}},Hn.createElement("span",{className:ie.spanBtn,onClick:()=>{Bo()||(So(!0),ii(!0))}},"\u9898\u5E93\u9009\u9898"),Hn.createElement(z.Z,{menu:{items:pu}},Hn.createElement("span",{className:ie.spanBtn},"\u5BFC\u5165\u8BD5\u9898")),Hn.createElement("span",{className:ie.spanBtn,onClick:()=>Kr(void 0,null,function*(){var Pn;if(Bo())return;const ha=yield(0,le.JP)(Ee);ha.status===0&&window.open(`/classrooms/coursesId/exercise/${ha.exercise_id}/${(Pn=se.userInfo)==null?void 0:Pn.login}/initate_answer`)})},"\u6A21\u62DF\u8003\u8BD5"),Hn.createElement("span",{className:ie.spanBtn,onClick:()=>{if(!Bo()){if(Ni){window.open(`/paperlibrary/see/${Ee}?isIntelligentAssistant=true`);return}window.open(`/paperlibrary/see/${Ee}`)}}},"\u8BD5\u5377\u9884\u89C8"),Ro==null?void 0:Ro.map((Pn,ha)=>Hn.createElement(We.ZP,{key:ha,className:ie.addQuestionBtn,type:"primary",onClick:()=>{sl(Pn.id)}},Pn.name)),Hn.createElement(We.ZP,{className:ie.saveBtn,loading:il,onClick:()=>Kr(void 0,null,function*(){var Pn,ha;const or=Number(an.exercise_types.q_scores);[100,120,150].includes(or)||(yield new Promise((Lr,vo)=>{x.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Hn.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",Hn.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},or),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>Kr(void 0,null,function*(){Lr("")}),onCancel:()=>{vo()}})}));const Pr=()=>Kr(void 0,null,function*(){if(to.get("pageType")=="course")if(to.get("updateType")=="course")be.ZP.info("\u7F16\u8F91\u6210\u529F"),he.history.replace(`/paths/${to.get("courseId")}`);else{if(Bo())return;(0,ql._C)({id:to.get("stageId"),subject_id:to.get("courseId"),homework_type:"exercise",examination_bank_ids:[Ee]}).then(Lr=>{(Lr==null?void 0:Lr.status)==0&&(be.ZP.info("\u521B\u5EFA\u6210\u529F"),he.history.replace(`/paths/${to.get("courseId")}`))})}else{if(Bo())return;if(Ni){ll(!0);const Lr=yield(0,fe.ZP)("/api/intelligent_imports/save_recognize_papers.json",{method:"post",body:{examination_bank_id:Ee}});if(ll(!1),(Lr==null?void 0:Lr.status)!==0)return}be.ZP.info("\u4FDD\u5B58\u6210\u529F"),he.history.push("/paperlibrary?defaultActiveKey=0")}});let wr=(ha=(Pn=an==null?void 0:an.exercise_question_types)==null?void 0:Pn.filter(Lr=>Lr.question_type===5)[0])==null?void 0:ha.items,kr=0;wr==null||wr.map(Lr=>{Lr.high_resources_consume&&(kr=kr+1)}),console.log(kr),kr>0?Se({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u63D0\u793A",count:kr,fn:()=>{Pr()}}}):Pr()})},Hn.createElement("i",{className:"iconfont icon-baocun1",style:{fontSize:15,marginRight:5}}),"\u4FDD\u5B58\u8BD5\u5377"))),Hn.createElement(Ci,{setScoreShow:fo,ScoreShow:mo,exerciseitem:an,getdata:oo}),Ao&&Hn.createElement(el.Z,{setScoreShow:So,isshixuns:yo,ScoreShow:Ao,SpecificDifficulty:(Ct=an==null?void 0:an.exercise)==null?void 0:Ct.difficulty,isloadings:Ii,onOk:(Pn,ha,or,Pr)=>Kr(void 0,null,function*(){vi(!0);let kr=yield $o({exam_id:Ee,item_bank_ids:Pn,shixun_ids:ha});vi(!1),(kr==null?void 0:kr.status)===0&&x.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u65B0\u52FE\u9009\u7684\u8BD5\u9898\u5DF2\u7ECF\u6DFB\u52A0\u5230\u8BD5\u5377\uFF0C\u5982\u679C\u9700\u8981\u7EE7\u7EED\u6DFB\u52A0\u65B0\u8BD5\u9898\u8BF7\u70B9\u51FB\u201C\u7EE7\u7EED\u9009\u9898\u201D\uFF0C\u5C06\u56DE\u5230\u60A8\u4E0A\u6B21\u64CD\u4F5C\u7684\u9009\u9898\u9875\u9762",okText:"\u7EE7\u7EED\u9009\u9898",cancelText:"\u8FD4\u56DE\u8BD5\u5377",onOk:()=>{oo()},onCancel:()=>{So(!1),oo()}})})}),Hn.createElement(Wl.Z,{sub_discipline_id:(Sn=an==null?void 0:an.exercise)!=null&&Sn.sub_discipline_id?[(na=an==null?void 0:an.exercise)==null?void 0:na.discipline_id,(va=an==null?void 0:an.exercise)==null?void 0:va.sub_discipline_id]:[],visible:Nr,onCancel:()=>Or(!1),onOk:mu}),Hn.createElement(x.default,{centered:!0,title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0",open:ul,width:500,onOk:()=>qo.submit(),onCancel:()=>pi(!1)},Hn.createElement(Be.default,{form:qo,initialValues:{},onFinish:Pn=>Kr(void 0,null,function*(){(yield(0,le.RK)(co({id:Ee},Pn))).status==0&&(be.ZP.success("\u4FEE\u6539\u6210\u529F"),oo(),pi(!1))})},Hn.createElement(Be.default.Item,{style:{marginBottom:0},name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9898\u578B\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"},{validator(Pn,ha){var or,Pr,wr,kr;const Lr=(or=Ro==null?void 0:Ro.find(vo=>vo.nameType==qo.getFieldValue("item_type_en")))==null?void 0:or.id;return(kr=(wr=(Pr=an==null?void 0:an.exercise_question_types)==null?void 0:Pr.filter(vo=>vo.question_type!=Lr))==null?void 0:wr.map(vo=>vo==null?void 0:vo.name))!=null&&kr.includes(ha)?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()}}]},Hn.createElement(Fe.default,{size:"large",maxLength:10,showCount:!0})),Hn.createElement(Be.default.Item,{hidden:!0,name:"item_type_en"},Hn.createElement(Fe.default,{size:"large"})))),Hn.createElement(re.Z,{placement:"bottom",height:"100%",destroyOnClose:!0,closable:!1,className:"body-overflow-hidden",open:Ur},Hn.createElement("div",{style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},"\u667A\u80FD\u5BFC\u5165"),Hn.createElement(tl.Z,{stickyTop:-24,subDisciplineId:(Lt=an==null?void 0:an.exercise)!=null&&Lt.sub_discipline_id?[(fn=an==null?void 0:an.exercise)==null?void 0:fn.discipline_id,(Bn=an==null?void 0:an.exercise)==null?void 0:Bn.sub_discipline_id]:[],onCancel:()=>eo(!1),mode:2,gather:{exam_id:Ee},onSuccess:()=>{eo(!1),oo()}}),Hn.createElement("div",{style:{height:70}})),Hn.createElement(Ue.Q,{visible:!!hi,setVisible:_o,tip:hi===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:hi===1?Xt==null?void 0:Xt.languages:[],onOk:Pn=>Kr(void 0,null,function*(){const ha={languages:Pn};hi===1?ha.hack_id=Xt==null?void 0:Xt.hack_id:ha.exam_id=Ee,(yield(0,fe.ZP)("/api/problems/update_languages.json",{method:"post",body:ha})).status===0&&(be.ZP.success("\u4FEE\u6539\u6210\u529F"),Vo({id:zn.current}),_o(!1))})}))};var wi=(0,he.connect)(({user:se,newExercisePaper:Se,dispatch:Ee})=>({user:se,newExercisePaper:Se,dispatch:Ee}))(ru),Di=oe(60636),ou=oe(3607),al=oe(76832),Ua=oe(59301),iu=Object.defineProperty,lu=Object.defineProperties,uu=Object.getOwnPropertyDescriptors,mi=Object.getOwnPropertySymbols,oi=Object.prototype.hasOwnProperty,Li=Object.prototype.propertyIsEnumerable,To=(se,Se,Ee)=>Se in se?iu(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,Jo=(se,Se)=>{for(var Ee in Se||(Se={}))oi.call(Se,Ee)&&To(se,Ee,Se[Ee]);if(mi)for(var Ee of mi(Se))Li.call(Se,Ee)&&To(se,Ee,Se[Ee]);return se},rl=(se,Se)=>lu(se,uu(Se)),Xo=(se,Se,Ee)=>new Promise((rt,Cn)=>{var $n=bt=>{try{Fn(Ee.next(bt))}catch(Zt){Cn(Zt)}},ia=bt=>{try{Fn(Ee.throw(bt))}catch(Zt){Cn(Zt)}},Fn=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,ia);Fn((Ee=Ee.apply(se,Se)).next())});const fi=()=>{const[se,Se]=(0,b.useState)([]);return(0,b.useEffect)(()=>{Xo(void 0,null,function*(){const rt=yield(0,le.d1)({source:"new_question"});rt!=null&&rt.disciplines&&Se((0,E.L)(rt==null?void 0:rt.disciplines))})},[]),se},ol=({user:se,newExercisePaper:Se,dispatch:Ee})=>{var rt,Cn,$n,ia,Fn,bt,Zt,ba,Ct,Sn,na,va;const Lt=(0,he.useParams)(),fn=fi(),[Bn]=Be.default.useForm(),[an,ar]=(0,b.useState)(),[nn,la]=(0,b.useState)(!1),[Xt,cr]=(0,b.useState)(1),[Sr,br]=(0,b.useState)(""),[Ar]=(0,he.useSearchParams)(),[zn,ur]=(0,b.useState)(!1),[zr,Vr]=(0,b.useState)(!1),[$r,yr]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{Ar.get("type")==="2"&&(br(Lt.id),cr(2))},[Ar.get("type")]),(0,b.useEffect)(()=>{if(Lt.id){if(!fn.length)return;Xo(void 0,null,function*(){var Tr,rr,Nr;la(!0);const Or=yield(0,le.Di)({id:Lt.id});la(!1);const Ur=(Tr=Or==null?void 0:Or.exercise)==null?void 0:Tr.sub_discipline_id;let eo=[];for(const Ao of fn)for(const So of Ao.children)So.value===Ur&&(eo=[Ao.value,So.value]);const mo=(rr=Or==null?void 0:Or.exercise)==null?void 0:rr.time,fo=rl(Jo({},Or.exercise),{sub_discipline_id:eo,time:mo===-1?null:mo});ar(fo),yr((Nr=Or.exercise)==null?void 0:Nr.set_question_sub_discipline)})}else ar({time:60,difficulty:2});Ee({type:"globalSetting/footerToggle",payload:!1})},[fn]),Ua.createElement("div",{style:{background:"#ffffff",marginTop:-8,padding:8,minHeight:"100vh",paddingBottom:64}},Ua.createElement("section",{className:"edu-container"},Ua.createElement("section",{className:"animated fadeIn"},Ua.createElement("aside",{style:{marginTop:15}},Ua.createElement(Ie.Z,{separator:">"},Ua.createElement(Ie.Z.Item,null,Ua.createElement(he.Link,{to:"/paperlibrary"},"\u8BD5\u5377\u5E93")),Ua.createElement(Ie.Z.Item,null,"\u4EBA\u5DE5\u7EC4\u5377")))),Ua.createElement("div",{className:"bg-white"},Ua.createElement("div",{style:{display:"flex",justifyContent:"center",paddingTop:20,alignItems:"center"}},Ua.createElement("div",{onClick:()=>{if(zn){be.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002");return}cr(1)},className:Xt===1?Ve.Z.selectdiv:Ve.Z.divitem},Ua.createElement(Di.Z,{number:1,active:Xt===1,className:"mr10"}),Ua.createElement("span",null,"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F")),Ua.createElement("div",{style:{width:188,border:"1px dotted #9096A3",margin:"0px 30px",height:1}}),Ua.createElement("div",{onClick:()=>{if(!Lt.id&&!Sr){be.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u57FA\u7840\u4FE1\u606F\u518D\u65B0\u5EFA\u8BD5\u9898");return}cr(2),!Sr&&br(Lt.id)},className:Xt!==1?Ve.Z.selectdiv:Ve.Z.divitem},Ua.createElement(Di.Z,{number:2,active:Xt!==1,className:"mr10"}),Ua.createElement("span",null,"\u7F16\u8F91\u8BD5\u9898"))),Xt===2&&Ua.createElement("div",{className:"tc"},Ua.createElement(ou.Z,{defaultValue:(Cn=(rt=Se==null?void 0:Se.editData)==null?void 0:rt.exercise)==null?void 0:Cn.exercise_name,onFinish:xr=>Xo(void 0,null,function*(){var Tr,rr,Nr,Or,Ur,eo,mo,fo,Ao,So,yo,ii;return xr.trim()===((rr=(Tr=Se==null?void 0:Se.editData)==null?void 0:Tr.exercise)==null?void 0:rr.exercise_name)?!0:(yield(0,le.w0)({id:`${(Or=(Nr=Se==null?void 0:Se.editData)==null?void 0:Nr.exercise)==null?void 0:Or.id}`,sub_discipline_id:(eo=(Ur=Se==null?void 0:Se.editData)==null?void 0:Ur.exercise)==null?void 0:eo.sub_discipline_id,time:`${(fo=(mo=Se==null?void 0:Se.editData)==null?void 0:mo.exercise)==null?void 0:fo.time}`,exercise_name:xr,exercise_description:(So=(Ao=Se==null?void 0:Se.editData)==null?void 0:Ao.exercise)==null?void 0:So.exercise_description,difficulty:(ii=(yo=Se==null?void 0:Se.editData)==null?void 0:yo.exercise)==null?void 0:ii.difficulty})).status===0?(Bn.setFieldValue("exercise_name",xr),Ee({type:"newExercisePaper/modifyTitle",payload:xr}),!0):!1})}),Ua.createElement("div",{style:{fontSize:14}},Ua.createElement("span",{style:{color:"#5F6368"}},"\u7B54\u9898\u65F6\u957F",Ua.createElement("span",{style:{color:"#000000",marginLeft:8}},(ia=($n=Se==null?void 0:Se.editData)==null?void 0:$n.exercise)==null?void 0:ia.time)),Ua.createElement("span",{style:{margin:"0px 30px",color:"#5F6368"}},"\u96BE\u5EA6",Ua.createElement("span",{style:{color:"#000000",marginLeft:8}},((bt=(Fn=Se==null?void 0:Se.editData)==null?void 0:Fn.exercise)==null?void 0:bt.difficulty)===1?"\u7B80\u5355":((ba=(Zt=Se==null?void 0:Se.editData)==null?void 0:Zt.exercise)==null?void 0:ba.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),Ua.createElement("span",{style:{marginRight:30,color:"#5F6368"}},"\u8BD5\u9898\u603B\u6570",Ua.createElement("span",{style:{color:"#000000",marginLeft:8}},((Sn=(Ct=Se==null?void 0:Se.editData)==null?void 0:Ct.exercise_types)==null?void 0:Sn.q_counts)||0)),Ua.createElement("span",{style:{color:"#5F6368"}},"\u603B\u5206",Ua.createElement("span",{style:{color:"#000000",marginLeft:8}},(va=(na=Se==null?void 0:Se.editData)==null?void 0:na.exercise_types)==null?void 0:va.q_scores))))),Xt===1&&Ua.createElement(Ge.Z,{spinning:nn,size:"middle",style:{position:"fixed",maxHeight:"100vh"},className:"mt30"},Ua.createElement("section",{className:[Ve.Z.bg,"mt20"].join(" "),style:{padding:"30px 120px 300px 120px"}},an&&Ua.createElement(Be.default,{layout:"horizontal",form:Bn,colon:!1,labelCol:{span:4},wrapperCol:{span:20},className:Ve.Z.formWrap,initialValues:an},Ua.createElement(Be.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u540D\u79F0",className:Ve.Z.baseLineHeight,rules:[{required:!0,validator:(xr,Tr)=>{var rr;return((rr=Tr==null?void 0:Tr.replaceAll(" ",""))==null?void 0:rr.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},Ua.createElement(Fe.default,{maxLength:60,className:Ve.Z.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),Ua.createElement(Be.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"sub_discipline_id",className:Ve.Z.baseLineHeight},Ua.createElement(Ye.Z,{className:Ve.Z.baseFormItem,allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:fn,popupClassName:Ve.Z.cascaderPopup,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14}})),Ua.createElement("div",{className:Ve.Z.concat},Ua.createElement("div",null,Ua.createElement(ke.default,{checked:$r,onChange:xr=>{yr(xr.target.checked)},style:{color:"#000"}},"\u8BBE\u7F6E\u8BE5\u65B9\u5411&\u8BFE\u7A0B\u4E3A\u8BD5\u9898\u6A21\u7248\uFF08\u521B\u5EFA\u65B0\u8BD5\u9898\u81EA\u52A8\u4F7F\u7528\u8BE5\u65B9\u5411&\u8BFE\u7A0B\uFF09")),Ua.createElement("div",null,"\u6CA1\u6709\u5408\u9002\u7684\u65B9\u5411&\u8BFE\u7A0B\uFF1F",Ua.createElement("a",{onClick:()=>Vr(!0)},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"))),Ua.createElement(Be.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:Ve.Z.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},Ua.createElement(De.ZP.Group,{className:Ve.Z.radiogroup},Ua.createElement(De.ZP.Button,{className:Ve.Z.easy,value:1},"\u7B80\u5355"),Ua.createElement(De.ZP.Button,{className:Ve.Z.medium,value:2},"\u9002\u4E2D"),Ua.createElement(De.ZP.Button,{className:Ve.Z.hard,value:3},"\u56F0\u96BE"))),Ua.createElement(Be.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:Ve.Z.baseLineHeight},Ua.createElement("div",{style:{display:"flex",width:"100%"}},Ua.createElement(Be.default.Item,{name:"time",noStyle:!0},Ua.createElement(Oe.Z,{min:1,className:Ve.Z.baseFormItem,max:9999,style:{width:220},maxLength:60,placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),Ua.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),Ua.createElement(Be.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exercise_description"},Ua.createElement(Fe.default.TextArea,{rows:6,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"})))),Ua.createElement("div",{className:Ve.Z.bottmodiv},Ua.createElement(We.ZP,{className:`${Ve.Z.cancelBtn} mr5`,type:"primary",onClick:()=>{Ar.get("pageType")=="course"?he.history.push(`/paths/${Ar.get("courseId")}`):he.history.push("/paperlibrary")}},"\u53D6\u6D88"),Ua.createElement(a.Z,{className:`${Ve.Z.confirmBtn} ml15`,type:"primary",onClick:()=>Xo(void 0,null,function*(){var xr,Tr,rr,Nr;yield Bn.validateFields();const Or=Bn.getFieldsValue();if(Or.sub_discipline_id=((xr=Or.sub_discipline_id)==null?void 0:xr.length)>0?Or.sub_discipline_id[1]:"",Or.set_question_sub_discipline=$r,Lt.id){(yield(0,le.w0)(Jo({id:Lt.id},Or))).status===0&&(br(Lt.id),cr(2),he.history.replace(`/paperlibrary/add/${Lt.id}?type=2`));return}const Ur=yield(0,le.un)(Or);Ur.status===0&&(br((Tr=Ur==null?void 0:Ur.data)==null?void 0:Tr.exam_id),cr(2),Ar.get("pageType")=="course"?he.history.replace(`/paperlibrary/add/${(rr=Ur==null?void 0:Ur.data)==null?void 0:rr.exam_id}?type=2&pageType=course&courseId=${Ar.get("courseId")}&stageId=${Ar.get("stageId")}`):he.history.replace(`/paperlibrary/add/${(Nr=Ur==null?void 0:Ur.data)==null?void 0:Nr.exam_id}?type=2`))})},"\u4E0B\u4E00\u6B65"))),Xt===2&&Ua.createElement("div",null,Ua.createElement(wi,{setisedits:ur,itemid:Sr}))),Ua.createElement(al.Z,{open:zr,onCancel:()=>{Vr(!1)}}))};var su=(0,he.connect)(({user:se,newExercisePaper:Se,dispatch:Ee})=>({user:se,newExercisePaper:Se,dispatch:Ee}))(ol)},62560:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Qe}});var b=oe(59301),he=oe(78241),Be=oe(8591),Ie=oe(43418),be=oe(99313),Ge=oe(57809),Fe=oe(19842),Ye=oe(98228),ke=oe(92832),De=oe(1710),Oe=oe(6848),We=oe(58421),Ve=oe(3113),le=oe(23789),E={flex_box_center:"flex_box_center___kuaVT",flex_space_between:"flex_space_between___exKHH",flex_box_vertical_center:"flex_box_vertical_center___BzvkN",flex_box_center_end:"flex_box_center_end___Ss2DJ",flex_box_column:"flex_box_column___p1LEr",scoremodal:"scoremodal___upTFR",selectWrapper:"selectWrapper___HH3RX",selectWrappers:"selectWrappers___fUWwr",allqingchu:"allqingchu___BFF1D",title:"title___hFasb",score:"score___DXG3o",close:"close___kEIiB",content:"content___Mco8L",items:"items___j98jk",bottom:"bottom___A1n1C",yes:"yes___P1zzb",no:"no___xZqXd",titlecount:"titlecount___fqA9P",add:"add___MqV0R",search:"search___NREgv",searchIcon:"searchIcon___qny3A",tabWrap:"tabWrap___dR18c",previewModal:"previewModal___uSiGS",q_title:"q_title___a9NY9"},a=oe(8418),x={flex_box_center:"flex_box_center___nnwwA",flex_space_between:"flex_space_between___cRir9",flex_box_vertical_center:"flex_box_vertical_center___FqTZ8",flex_box_center_end:"flex_box_center_end___WU5_v",flex_box_column:"flex_box_column___QZFa1",warp:"warp___aLZwN",shixunbutton:"shixunbutton___Eoa1i",redio:"redio___LJ4js",redioitem:"redioitem___YicCC",redioitemyes:"redioitemyes___lX4Nr",title:"title___pi1jH",titleyes:"titleyes___jiEh7",yestag:"yestag___DLWoP",qcount:"qcount___U9kkL",score:"score___vLK4B",qtitle:"qtitle___kyg0t",checkbox:"checkbox___vjiBw",checkboxitem:"checkboxitem___HW3CP",checkboxitemyes:"checkboxitemyes___kpjek",bottom:"bottom___uG8Zq",bottomitem:"bottomitem___TnJQQ",left:"left___M8WXX",right:"right____dkCI",completion:"completion___H6RmA",content:"content___a2hGC",items:"items___D8mLd",simple:"simple___fQ0OS",shixun:"shixun___nB6Jk",combination:"combination___YrOdz",program:"program___lG0JA"},y=oe(28900),z=oe(21331),ne=oe(24334);const re=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var ge=({qitem:Me})=>{var Et,Gt,vt,Dt,Ae,dt,un,ct,et,bn;return b.createElement("div",{className:x.warp},b.createElement("div",{className:x.mainPart},b.createElement("div",{className:x.qcount},(Me==null?void 0:Me.question_type)===8&&b.createElement(y.Z,{className:x.content,showProgramFill:!0,value:(Et=Me==null?void 0:Me.program_attr)==null?void 0:Et.description}),(Me==null?void 0:Me.question_type)!=8&&b.createElement(y.Z,{className:x.qtitle,value:(Me==null?void 0:Me.name)||(Me==null?void 0:Me.title)})),((Me==null?void 0:Me.question_type)===0||(Me==null?void 0:Me.question_type)===2)&&b.createElement("div",null,(Gt=Me==null?void 0:Me.choices)==null?void 0:Gt.map((ot,Bt)=>b.createElement("div",{className:x.redio},!(ot!=null&&ot.is_answer)&&b.createElement("span",{className:x.redioitem}),(ot==null?void 0:ot.is_answer)&&b.createElement("i",{className:`${x.redioitemyes} icon-duigou1`}),b.createElement(y.Z,{className:ot!=null&&ot.is_answer?x.titleyes:x.title,value:re[Bt]+(ot==null?void 0:ot.choice_text)}),(ot==null?void 0:ot.is_answer)&&b.createElement("div",{className:x.yestag},"\u6B63\u786E\u7B54\u6848")))),(Me==null?void 0:Me.question_type)===1&&b.createElement("div",null,(vt=Me==null?void 0:Me.choices)==null?void 0:vt.map((ot,Bt)=>b.createElement("div",{className:x.checkbox},!(ot!=null&&ot.is_answer)&&b.createElement("span",{className:x.checkboxitem}),(ot==null?void 0:ot.is_answer)&&b.createElement("i",{className:`${x.checkboxitemyes} icon-duigou1`}),b.createElement(y.Z,{className:ot!=null&&ot.is_answer?x.titleyes:x.title,value:re[Bt]+(ot==null?void 0:ot.choice_text)}),(ot==null?void 0:ot.is_answer)&&b.createElement("div",{className:x.yestag},"\u6B63\u786E\u7B54\u6848")))),(Me==null?void 0:Me.question_type)===3&&b.createElement("div",{className:x.completion},(Dt=Me==null?void 0:Me.standard_answer)==null?void 0:Dt.map((ot,Bt)=>{var Ht;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:x.title},"\u586B\u7A7A\u9879",Bt+1),b.createElement("div",{className:x.content},(Ht=ot==null?void 0:ot.answer_text)==null?void 0:Ht.map((St,Tn)=>b.createElement("div",{className:x.items},St))))})),(Me==null?void 0:Me.question_type)===4&&b.createElement("div",{className:x.simple},b.createElement("div",{className:x.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Ae=Me==null?void 0:Me.answer_texts)!=null&&Ae[0]?b.createElement(y.Z,{className:x.content,value:(dt=Me==null?void 0:Me.answer_texts)==null?void 0:dt[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(Me==null?void 0:Me.question_type)===5&&((un=Me==null?void 0:Me.challenge_names)==null?void 0:un.map((ot,Bt)=>b.createElement("div",{className:x.shixun},b.createElement("span",{className:x.qtitle},b.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,z.EM)(Bt+1),"\u9898"),ot)))),(Me==null?void 0:Me.question_type)===6&&b.createElement("div",{className:x.program},b.createElement(y.Z,{className:x.content,value:((ct=Me==null?void 0:Me.program_attr)==null?void 0:ct.description)||"- -"})),(Me==null?void 0:Me.question_type)===7&&((et=Me==null?void 0:Me.sub_item_banks)==null?void 0:et.map((ot,Bt)=>{var Ht,St,Tn,Mt,Kn;return b.createElement("div",null,b.createElement("div",{className:x.combination},b.createElement("span",{className:x.qtitle},ot==null?void 0:ot.name)),b.createElement("div",{className:x.warp,style:{padding:"0px",paddingTop:20}},b.createElement("div",null,((ot==null?void 0:ot.item_type)=="SINGLE"||(ot==null?void 0:ot.item_type)=="JUDGMENT")&&((Ht=ot==null?void 0:ot.choices)==null?void 0:Ht.map((wn,jn)=>b.createElement("div",{className:x.redio},!(wn!=null&&wn.is_answer)&&b.createElement("span",{className:x.redioitem}),(wn==null?void 0:wn.is_answer)&&b.createElement("i",{className:`${x.redioitemyes} icon-duigou1`}),b.createElement(y.Z,{className:wn!=null&&wn.is_answer?x.titleyes:x.title,value:re[jn]+(wn==null?void 0:wn.choice_text)}),(wn==null?void 0:wn.is_answer)&&b.createElement("div",{className:x.yestag},"\u6B63\u786E\u7B54\u6848")))),(ot==null?void 0:ot.item_type)=="MULTIPLE"&&((St=ot==null?void 0:ot.choices)==null?void 0:St.map((wn,jn)=>b.createElement("div",{className:x.checkbox},!(wn!=null&&wn.is_answer)&&b.createElement("span",{className:x.checkboxitem}),(wn==null?void 0:wn.is_answer)&&b.createElement("i",{className:`${x.checkboxitemyes} icon-duigou1`}),b.createElement(y.Z,{className:wn!=null&&wn.is_answer?x.titleyes:x.title,value:re[jn]+(wn==null?void 0:wn.choice_text)}),(wn==null?void 0:wn.is_answer)&&b.createElement("div",{className:x.yestag},"\u6B63\u786E\u7B54\u6848")))),(ot==null?void 0:ot.item_type)=="COMPLETION"&&b.createElement("div",{className:x.completion},(Tn=ot==null?void 0:ot.standard_answer)==null?void 0:Tn.map((wn,jn)=>{var $t;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:x.title},"\u586B\u7A7A\u9879",jn+1),b.createElement("div",{className:x.content},($t=wn==null?void 0:wn.answer_text)==null?void 0:$t.map((ma,Wn)=>b.createElement("div",{className:x.items},ma))))})),(ot==null?void 0:ot.item_type)=="SUBJECTIVE"&&b.createElement("div",{className:x.simple},b.createElement("div",{className:x.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Mt=ot==null?void 0:ot.answer_texts)!=null&&Mt[0]?b.createElement(y.Z,{className:x.content,value:(Kn=ot==null?void 0:ot.answer_texts)==null?void 0:Kn[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(Me==null?void 0:Me.question_type)===8&&b.createElement("div",null,b.createElement(y.Z,{disabledFill:!0,className:x.content,showProgramFill:!0,value:ne.Base64.decode(((bn=Me==null?void 0:Me.program_attr)==null?void 0:bn.code)||"")})),(Me==null?void 0:Me.question_type)===5&&b.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},b.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),b.createElement("span",{style:{color:"#000000"}},(Me==null?void 0:Me.author_name)||"- -")),b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),b.createElement("span",{style:{color:"#000000"}},(Me==null?void 0:Me.author_school_name)||"- -")),b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{style:{color:"#000000"}},(Me==null?void 0:Me.study_count)||"0"))),b.createElement("a",{className:x.shixunbutton,href:`/shixuns/${Me==null?void 0:Me.identifier}/challenges?exercise=true`,target:"_blank"},b.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((Me==null?void 0:Me.question_type)<=4||[6,8].includes(Me==null?void 0:Me.question_type))&&b.createElement("div",{className:x.bottom},b.createElement("div",{className:x.bottomitem},b.createElement("span",{className:x.left},"\u89E3\u6790"),b.createElement("span",{className:x.right},Me!=null&&Me.analysis?b.createElement(y.Z,{value:Me==null?void 0:Me.analysis}):b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),b.createElement("div",{className:x.bottomitem},b.createElement("span",{className:x.left},"\u96BE\u5EA6"),b.createElement("span",{className:x.right},(Me==null?void 0:Me.difficulty)===1?"\u7B80\u5355":(Me==null?void 0:Me.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),b.createElement("div",{className:x.bottomitem},b.createElement("span",{className:x.left},"\u77E5\u8BC6\u70B9"),b.createElement("span",{className:x.right},Me!=null&&Me.tag_discipline?Me==null?void 0:Me.tag_discipline:b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},fe=oe(95006),Pe=oe(42128),Ue=oe(6075),Re=oe(61485),lt=oe(70659),Le=oe(93758),Ce=oe(59301),Xe=Object.defineProperty,nt=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,ut=(Me,Et,Gt)=>Et in Me?Xe(Me,Et,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Me[Et]=Gt,Yt=(Me,Et)=>{for(var Gt in Et||(Et={}))pt.call(Et,Gt)&&ut(Me,Gt,Et[Gt]);if(gt)for(var Gt of gt(Et))wt.call(Et,Gt)&&ut(Me,Gt,Et[Gt]);return Me},ln=(Me,Et)=>nt(Me,ye(Et)),Nt=(Me,Et,Gt)=>new Promise((vt,Dt)=>{var Ae=ct=>{try{un(Gt.next(ct))}catch(et){Dt(et)}},dt=ct=>{try{un(Gt.throw(ct))}catch(et){Dt(et)}},un=ct=>ct.done?vt(ct.value):Promise.resolve(ct.value).then(Ae,dt);un((Gt=Gt.apply(Me,Et)).next())});const Wt=({setScoreShow:Me,ScoreShow:Et,onOk:Gt,isshixuns:vt=!0,isloadings:Dt,dispatch:Ae,isIntelligentAssistant:dt=!1,newExercisePaper:un,shixunsDetail:ct,SpecificDifficulty:et})=>{var bn,ot,Bt,Ht;let[St,Tn]=(0,b.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,bigmodel:dt,group_id:[]}),[Mt,Kn]=(0,b.useState)([]),[wn,jn]=(0,b.useState)([]),[$t,ma]=(0,b.useState)([]),[Wn,Ca]=(0,b.useState)([]);const[sn,mn]=(0,b.useState)(!1),[En]=he.default.useForm(),[Ma,Sa]=(0,b.useState)(),[Da,en]=(0,b.useState)(!1);let[ht,hn]=(0,b.useState)(vt);const[xn,ya]=(0,b.useState)([]),[aa,Ka]=(0,b.useState)(0),[ra,Qn]=(0,b.useState)(!0),[Ya,Ra]=(0,b.useState)([]),[Ja,Br]=(0,b.useState)([]),At=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}];let[Mn,kn]=(0,b.useState)([]),[In,xe]=(0,b.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:"",per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const ft=(0,b.useRef)(new Set),Ft=(0,b.useRef)(new Set),Qt=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Tt=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],yt=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[An,je]=(0,b.useState)(!1),Ke=()=>{En.resetFields(),ht=!1,hn(!1),je(!1),En.submit()};(0,b.useEffect)(()=>{var Je,Ut,Dn,tt,Xn,Rn,ca,Vn,Za,sa;(((Dn=(Ut=(Je=un==null?void 0:un.editData)==null?void 0:Je.exercise)==null?void 0:Ut.exist_item_bank_ids)==null?void 0:Dn.length)>0||((Rn=(Xn=(tt=un==null?void 0:un.editData)==null?void 0:tt.exercise)==null?void 0:Xn.exist_item_bank_shixun_ids)==null?void 0:Rn.length)>0)&&Br([...(Vn=(ca=un==null?void 0:un.editData)==null?void 0:ca.exercise)==null?void 0:Vn.exist_item_bank_ids,...(sa=(Za=un==null?void 0:un.editData)==null?void 0:Za.exercise)==null?void 0:sa.exist_item_bank_shixun_ids])},[(ot=(bn=un==null?void 0:un.editData)==null?void 0:bn.exercise)==null?void 0:ot.exist_item_bank_ids]),(0,b.useEffect)(()=>{Et&&(En.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),ra&&ht&&(En.setFieldsValue({item_type:"SHIXUN"}),St.item_type="SHIXUN",et&&(En.setFieldsValue({diff:et}),St.diff=et),Tn(Yt({},St)),Qn(!1)),He(St),Rt(),cn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),dn())},[Et]),(0,b.useEffect)(()=>{aa>0&&setTimeout(()=>{Ka(0)},2e3)},[aa]);function He(Je){return Nt(this,null,function*(){var Ut,Dn,tt;if(mn(!0),Tn(Yt({},Je)),($t==null?void 0:$t.length)<=0&&Je.type==="5"){Ca([]),mn(!1);return}console.log("----",$t,xn);let Xn=Je.type==="5"?$t==null?void 0:$t.filter(Vn=>!xn.includes(Vn)):null,Rn=Je.type==="5"?$t==null?void 0:$t.filter(Vn=>xn.includes(Vn)):null;Je.group_id=((Ut=Je.group_id)==null?void 0:Ut.map(Vn=>Vn==null?void 0:Vn.value))||null;let ca=yield(0,le.ZP)("/api/item_banks.json",{method:"get",params:ln(Yt({},Je),{discipline_id:((Dn=Je==null?void 0:Je.courseid)==null?void 0:Dn[0])||null,sub_discipline_id:((tt=Je==null?void 0:Je.courseid)==null?void 0:tt[1])||null,ids:Xn,shixun_ids:Rn,include_shixuns:!dt,keyword:Je.keyword?encodeURIComponent(Je.keyword):Je.keyword,type:Je.type==="5"?null:Je.type,clazz:Je.type==="3"?"ItemBanksGroup":null})});Ca(ca),mn(!1)})}function Rt(){return Nt(this,null,function*(){let Je=yield(0,le.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:St.type==="5"?null:St.type,clazz:"ItemBanksGroup"}});Kn((0,a.L)(Je==null?void 0:Je.disciplines))})}function dn(){return Nt(this,null,function*(){let Je=yield(0,le.ZP)("/api/users/vrs_subject_names.json",{method:"Get"});(Je==null?void 0:Je.status)==0&&kn(Je==null?void 0:Je.names)})}function cn(Je){return Nt(this,null,function*(){var Ut;let Dn=yield(0,le.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Je}),tt=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Ut=Dn==null?void 0:Dn.data)==null?void 0:Ut.map(Xn=>({title:Xn.name,id:Xn.id,pid:Xn.id,value:Xn.id,key:Xn.id,isLeaf:!Xn.have_child}))}];Ra(tt)})}function qn(Je){return Nt(this,null,function*(){var Ut,Dn,tt,Xn;mn(!0);let Rn=(Ut=Je.list)==null?void 0:Ut.filter(Za=>!xn.includes(Za)),ca=(Dn=Je.list)==null?void 0:Dn.filter(Za=>xn.includes(Za));if(Rn.length===0&&ca.length===0){mn(!1),Ca([]);return}let Vn=yield(0,le.ZP)("/api/item_banks.json",{method:"get",params:ln(Yt({},Je),{discipline_id:((tt=Je==null?void 0:Je.courseid)==null?void 0:tt[0])||null,sub_discipline_id:((Xn=Je==null?void 0:Je.courseid)==null?void 0:Xn[1])||null,ids:Rn,shixun_ids:ca,type:Je.type==="5"?null:Je.type,clazz:Je.type==="3"?"ItemBanksGroup":null})});mn(!1),Ca(Vn)})}const Un=Je=>Nt(void 0,null,function*(){const Ut=yield Ae({type:"shixunsDetail/release",payload:{id:Je}});let Dn=Ut==null?void 0:Ut.tag_position,tt=(Ut==null?void 0:Ut.evaluation_set_position)||[],Xn=Ut.status;return Xn===0?(Be.ZP.success("\u53D1\u5E03\u6210\u529F"),He(St),!0):(Xn===2?Be.ZP.error(`\u7B2C${tt.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):Xn===3?Be.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${Dn.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)}),vn=Je=>(Je==null?void 0:Je.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",Jn=(Je,Ut,Dn)=>Je.map(tt=>tt.key===Ut?Yt(Yt({},tt),Dn):tt.children?ln(Yt({},tt),{children:Jn(tt.children,Ut,Dn)}):tt),Ea=Je=>Nt(void 0,null,function*(){const{key:Ut}=Je;let Dn=St.type;const tt=yield(0,Le.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Ut),type:Dn}),{data:Xn,total_count:Rn}=tt||{};Rn>0&&Ra(ca=>Jn(ca,Ut,{children:Xn.map(Vn=>({title:Vn.name,id:Vn.id,pid:Vn.id,value:Vn.id,key:Vn.id,isLeaf:!Vn.have_child}))}))});function zt(Je){console.log("----",St),Je==="1"&&(In.gg=Yt({},St)),Je==="2"&&(In.scj=Yt({},St)),Je==="3"&&(In.ttgx=Yt({},St)),Je==="0"&&(In.wcjd=Yt({},St)),Je==="5"&&(In.yx=Yt({},St)),xe(Yt({},In))}function _n(){St.type==="1"&&(St=In.gg),St.type==="2"&&(St=In.scj),St.type==="3"&&(St=In.ttgx),St.type==="0"&&(St=In.wcjd),St.type==="5"&&(St=In.yx),(St==null?void 0:St.item_type)==="SHIXUN"?(ht=!0,hn(!0)):(ht=!1,hn(!1)),En.setFieldsValue(Yt({},St)),Tn(Yt({},St)),He(Yt({},St))}return Ce.createElement("div",null,Ce.createElement(Ie.default,{title:!1,footer:!1,open:Et,width:1360,centered:!0,className:E.scoremodal,onCancel:()=>{Me(!1)}},Ce.createElement("div",{style:{display:"flex",alignItems:"center"}},Ce.createElement("div",{className:E.title},dt?"\u4EE5\u9898\u6362\u9898":"\u9898\u5E93\u9009\u9898")),dt&&Ce.createElement("div",{style:{padding:10,background:"#F6F7F9",borderRadius:4,marginTop:14}},"\u6839\u636E\u73B0\u6709\u8BD5\u9898\u7684\u9898\u578B\u3001\u65B9\u5411\u3001\u77E5\u8BC6\u70B9\u3001\u96BE\u6613\u5EA6\uFF0C\u5FEB\u901F\u751F\u6210\u65B0\u7684\u8BD5\u9898\uFF0C\u589E\u52A0\u8BD5\u9898\u7684\u4E30\u5BCC\u5EA6"),Ce.createElement(be.default,{className:E.tabWrap,activeKey:St.type,onChange:Je=>{Je==="3"?(St.show_all_share=!0,cn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):St.show_all_share=null,Je==="0"&&cn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),zt(St.type),St.type=Je,(St==null?void 0:St.item_type)==="SHIXUN"&&St.type!=="5"&&(ht=!0,hn(!0)),je(!1),St.type==="5"&&(ht=!1,hn(!1)),_n(),Rt()},items:[{label:"\u516C\u5171",key:"1"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u6536\u85CF\u5939",key:"2"},{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:Ce.createElement("div",null,"\u5DF2\u9009",$t.length>0&&Ce.createElement("span",{className:E.titlecount},$t.length),aa>0&&Ce.createElement("span",{className:E.add},"+",aa)),key:"5"}]}),Ce.createElement(he.default,{layout:"inline",form:En,onValuesChange:(Je,Ut)=>{const Dn=Object.values(Ut).some(Xn=>Xn!==null&&Xn!==""&&Xn!==void 0),tt=Ut.keyword==="";if(je(Dn||!tt),St.page=1,(Ut==null?void 0:Ut.item_type)==="SHIXUN"){if(St.type==="5"?(et&&(Je==null?void 0:Je.item_type)==="SHIXUN"&&En.setFieldsValue({difficulty:et}),hn(!1)):(et&&(Je==null?void 0:Je.item_type)==="SHIXUN"&&En.setFieldsValue({diff:et}),hn(!0)),Je.keyword||Je.keyword==="")return;setTimeout(()=>{En.submit()},0)}else{if(Je!=null&&Je.courseid&&En.setFieldsValue({tag_discipline_id:""}),hn(!1),Je.keyword||Je.keyword==="")return;En.submit()}},onFinish:Je=>{var Ut;St.type==="3"&&(!Je.group_id||((Ut=Je==null?void 0:Je.group_id)==null?void 0:Ut.length)===0)?St.show_all_share=!0:St.show_all_share=null,Tn(Yt(Yt({},St),Je)),He(Yt(Yt({},St),Je))}},Ce.createElement(he.default.Item,{name:"item_type"},Ce.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u9898\u578B",style:{width:110},size:"middle"},(dt?At.slice(0,6):At).map(Je=>Ce.createElement(Ge.default.Option,{key:Je.value},Je.name)))),Ce.createElement(he.default.Item,{name:"courseid"},Ce.createElement(Fe.Z,{className:E.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:Mt})),!ht&&Ce.createElement(he.default.Item,{name:"tag_discipline_id"},Ce.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(Bt=Wn==null?void 0:Wn.tag_disciplines)==null?void 0:Bt.map(Je=>Ce.createElement(Ge.default.Option,{key:Je.id},Je.name)))),ht&&Ce.createElement(he.default.Item,{name:"vrs_name"},Ce.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u79D1\u76EE",style:{width:118},size:"middle",allowClear:!0},(Ht=[{id:"",name:"\u5168\u90E8"},...(Mn==null?void 0:Mn.map(Je=>({id:Je,name:Je})))||[]])==null?void 0:Ht.map(Je=>Ce.createElement(Ge.default.Option,{key:Je.id},Je.name)))),Ce.createElement(he.default.Item,{name:ht?"diff":"difficulty"},Ce.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},!ht&&Qt.map(Je=>Ce.createElement(Ge.default.Option,{value:Je.value,key:Je.value},Je.name)),ht&&Tt.map(Je=>Ce.createElement(Ge.default.Option,{value:Je.value,key:Je.value},Je.name)))),ht&&Ce.createElement(he.default.Item,{name:"shixun_publish_status"},Ce.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},yt.map(Je=>Ce.createElement(Ge.default.Option,{key:Je.value},Je.name)))),(St.type==="3"||St.type==="0")&&!ht&&Ce.createElement(he.default.Item,{name:"group_id"},Ce.createElement(Ye.default,{treeDataSimpleMode:!0,style:{width:118},className:E.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Je,Ut)=>Ut.title.toUpperCase().indexOf(Je.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:Ea,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:Ya})),An&&Ce.createElement("span",{className:E.allqingchu,onClick:Ke},Ce.createElement("i",{className:"iconfont icon-guanbi4"}),Ce.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Ce.createElement(he.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Ce.createElement(ke.default.Search,{className:E.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Ce.createElement("i",{className:`iconfont icon-sousuo9 font14 ${E.searchIcon}`,onClick:()=>En.submit()}),onSearch:Je=>{En.submit()}}))),Ce.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Ce.createElement("div",{onClick:()=>{St.updated_at==="asc"?St.updated_at="desc":St.updated_at="asc",Tn(ln(Yt({},St),{page:1})),He(ln(Yt({},St),{page:1}))}}," ",St.updated_at?Ce.createElement("img",{src:St.updated_at==="asc"?fe.Z:Pe.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ce.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Ce.createElement("div",{onClick:()=>{St.quotes==="asc"?St.quotes="desc":St.quotes="asc",Tn(ln(Yt({},St),{page:1})),He(ln(Yt({},St),{page:1}))},style:{marginLeft:20}}," ",St.quotes?Ce.createElement("img",{src:St.quotes==="asc"?fe.Z:Pe.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ce.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Ce.createElement(De.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(Wn==null?void 0:Wn.items)||(Wn==null?void 0:Wn.shixun_list),pagination:!1,loading:sn,rowKey:Je=>Je.id,rowSelection:{type:dt?"radio":"checkbox",selectedRowKeys:wn,getCheckboxProps:Je=>({disabled:Je.shixun_tag_num===1||(Ja==null?void 0:Ja.find(Ut=>Je.id===Ut))}),onSelect(Je,Ut,Dn){if(dt){jn([Je.id]),Ft.current=new Set([Je.id]),Ka(1),ma([Je.id]);return}if(Ut)(ht||Je!=null&&Je.challenge_names)&&ya([...xn,Je.id]),jn([...wn,Je.id]),Je.identifier?ft.current.add(Je.id):Ft.current.add(Je.id),Ka(1),ma([...$t,Je.id]);else{Je.identifier?ft.current.delete(Je.id):Ft.current.delete(Je.id);let tt=$t.filter(Xn=>Xn!==Je.id);if(jn(tt),ma(tt),ht||Je!=null&&Je.challenge_names){let Xn=xn.filter(Rn=>Rn!==Je.id);ya([...Xn])}if(St.type==="5"){qn(ln(Yt({},St),{list:[...tt]}));return}}},onSelectAll(Je,Ut,Dn){var tt,Xn;if(Je){const Rn=Dn.map(Vn=>Vn.id),ca=(Xn=Dn==null?void 0:Dn.filter(Vn=>Vn==null?void 0:Vn.challenge_names))==null?void 0:Xn.map(Vn=>Vn.id);ya([...xn,...ca]),jn([...wn,...Rn]),ma([...$t,...Rn]);for(const Vn of Dn)Vn.identifier?ft.current.add(Vn.id):Ft.current.add(Vn.id)}else{const Rn=Dn.map(sa=>sa.id),ca=wn.filter(sa=>!Rn.some(_a=>_a===sa)),Vn=(tt=Dn==null?void 0:Dn.filter(sa=>sa==null?void 0:sa.challenge_names))==null?void 0:tt.map(sa=>sa.id);jn([...ca]),ma([...ca]);let Za=xn.filter(sa=>!Vn.some(_a=>_a===sa.id));ya([...Za]),St.type==="5"&&qn(ln(Yt({},St),{list:[...ca]}));for(const sa of Rn)sa.identifier?ft.current.delete(sa):Ft.current.delete(sa)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(Je,Ut,Dn)=>{var tt,Xn;return Ce.createElement(Oe.Z,{title:vn(Ut)},Ce.createElement("div",null,ht||Ut!=null&&Ut.challenge_names?"\u5B9E\u8BAD\u9898":(Xn=(tt=At==null?void 0:At.filter(Rn=>Rn.value===Je))==null?void 0:tt[0])==null?void 0:Xn.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:ht?"30%":"60%",key:"name",render:(Je,Ut,Dn)=>{var tt;return Ce.createElement("div",{style:{display:"flex",alignItems:"center"}},Ce.createElement(Oe.Z,{title:vn(Ut)},Ce.createElement("div",{className:Ut!=null&&Ut.high_resources_consume?E.q_title:""},Ce.createElement(y.Z,{key:1,showLines:1,showTextOnly:!0,value:ht||Ut!=null&&Ut.challenge_names?Ut!=null&&Ut.title||Je===null?"--":Je:(Ut==null?void 0:Ut.item_type)=="BPROGRAM"?(tt=Ut==null?void 0:Ut.program_attr)==null?void 0:tt.description:Je}))),(Ut==null?void 0:Ut.high_resources_consume)&&Ce.createElement(lt.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!ht,render:(Je,Ut,Dn)=>{var tt;return Ce.createElement(Oe.Z,{title:vn(Ut)},Ce.createElement("span",null,Je?(tt=Je==null?void 0:Je.split("\u3001"))==null?void 0:tt[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!ht,render:(Je,Ut,Dn)=>Ce.createElement(Oe.Z,{title:vn(Ut)},Ce.createElement("span",null,Je||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(Je,Ut,Dn)=>{var tt,Xn,Rn,ca;return Ce.createElement(Oe.Z,{title:vn(Ut)},Ce.createElement("div",null,ht||Ut!=null&&Ut.challenge_names?(Ut==null?void 0:Ut.level)||((Xn=(tt=Qt==null?void 0:Qt.filter(Vn=>Vn.value===Je))==null?void 0:tt[0])==null?void 0:Xn.name):(ca=(Rn=Qt==null?void 0:Qt.filter(Vn=>Vn.value===Je))==null?void 0:Rn[0])==null?void 0:ca.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!ht,render:(Je,Ut,Dn)=>Ce.createElement(Oe.Z,{title:vn(Ut)},Ce.createElement("div",null,Je||"- -"))},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!ht,render:(Je,Ut,Dn)=>Ce.createElement("span",null,Je||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(Je,Ut,Dn)=>Ce.createElement(Oe.Z,{title:vn(Ut)},Ce.createElement("div",null,ht||Ut!=null&&Ut.challenge_names?(Ut==null?void 0:Ut.study_count)||(Ut==null?void 0:Ut.stu_num):Je))},{title:Ce.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Ce.createElement(Oe.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Ce.createElement(Re.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!ht,render:(Je,Ut,Dn)=>Ce.createElement(Oe.Z,{title:vn(Ut)},Ce.createElement("div",null,Je||"- -"))},{title:Ce.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Ce.createElement(Oe.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Ce.createElement(Re.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!ht,render:(Je,Ut,Dn)=>Ce.createElement("span",null,Je||"- -")},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(Je,Ut,Dn)=>Ce.createElement(Oe.Z,{title:vn(Ut)},Ce.createElement("div",{style:{flex:1,textAlign:"start"}},Ce.createElement("a",{onClick:()=>{var tt,Xn;Sa(ln(Yt({},Ut),{question_type:ht||Ut!=null&&Ut.challenge_names?5:(Xn=(tt=At==null?void 0:At.filter(Rn=>Rn.value===(Ut==null?void 0:Ut.item_type)))==null?void 0:tt[0])==null?void 0:Xn.question_type})),en(!0)}},"\u67E5\u770B"),(Ut==null?void 0:Ut.shixun_tag_num)===1&&Ce.createElement("a",{style:{marginLeft:10},onClick:()=>{Ie.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Ce.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Ce.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Ut==null?void 0:Ut.identifier}/challenges`)}},(Ut==null?void 0:Ut.shixun_name)||"--"),"\uFF1F"),onOk:()=>Nt(void 0,null,function*(){if(!Un(Ut==null?void 0:Ut.identifier))return new Promise((tt,Xn)=>{Xn()})})})}},"\u53D1\u5E03")))}].filter(Je=>!Je.hidden)}),Ce.createElement(We.Z,{current:St.page,total:(Wn==null?void 0:Wn.items_count)||(Wn==null?void 0:Wn.shixuns_count),style:{marginBottom:20},defaultPageSize:St.per_page,showTotal:Je=>Ce.createElement("span",null,"\u5171\xA0",Ce.createElement("span",{style:{color:"#165DFF"}},Je),"\xA0\u6761\u6570\u636E"),pageSize:St.per_page,onChange:(Je,Ut)=>{St.page=Je,St.per_page=Ut,Tn(Yt({},St)),He(Yt({},St))}}),Ce.createElement("div",{className:E.bottom},Ce.createElement(Ve.ZP,{className:E.no,onClick:()=>{Me(!1)}},"\u53D6\u6D88"),Ce.createElement(Ve.ZP,{loading:Dt,style:{width:Dt&&75},className:E.yes,onClick:()=>Nt(void 0,null,function*(){if(($t==null?void 0:$t.length)<=0){Be.ZP.info(dt?"\u8BF7\u9009\u62E9\u4E00\u9053\u8BD5\u9898":"\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}Gt([...Ft.current],[...ft.current],!0,$t==null?void 0:$t.length)})},dt?"\u5F00\u59CB\u6362\u9898":"\u786E\u8BA4"))),Ce.createElement(Ie.default,{open:Da,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:E.previewModal,width:1e3,centered:!0,onCancel:()=>{en(!1)},onOk:()=>{en(!1)}},Ce.createElement(ge,{qitem:Ma})))};var Qe=(0,Ue.connect)(({shixunsDetail:Me,newExercisePaper:Et})=>({shixunsDetail:Me,newExercisePaper:Et}))(Wt)},76832:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return De}});var b=oe(43418),he={ul:"ul___TdfYY"},Be=oe(32637),Ie=oe(59301),be=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,Ye=(Oe,We)=>{var Ve={};for(var le in Oe)Ge.call(Oe,le)&&We.indexOf(le)<0&&(Ve[le]=Oe[le]);if(Oe!=null&&be)for(var le of be(Oe))We.indexOf(le)<0&&Fe.call(Oe,le)&&(Ve[le]=Oe[le]);return Ve},De=Oe=>{var We=Oe,{open:Ve,onCancel:le}=We,E=Ye(We,["open","onCancel"]);return Ie.createElement(b.default,{centered:!0,open:Ve,title:Ie.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:le,footer:null},Ie.createElement("div",null,Ie.createElement("div",{className:"tc"},Ie.createElement("img",{className:"mt10",src:Be,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),Ie.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),Ie.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),Ie.createElement("div",{style:{color:"#333"},className:"pt30 font14"},Ie.createElement("ul",{className:he.ul},Ie.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),Ie.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),Ie.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},99530:function(_e,xt,oe){"use strict";oe.d(xt,{I:function(){return he}});var b=oe(59301);const he=()=>{const[Be,Ie]=(0,b.useState)("hidden");return{overflow:Be,handleMouseEnter:()=>Ie("auto"),handleMouseLeave:()=>Ie("hidden")}}},77578:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return b}});const b=he=>he?typeof he=="function"?he():he:null},66104:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return nt}});var b=oe(92310),he=oe.n(b),Be=oe(11592),Ie=oe(26112),be=oe(59301),Ge=oe(92343),Fe=oe(36355),Ye=oe(84105),ke=oe(91857);const De=ye=>{let{children:gt}=ye;const{getPrefixCls:pt}=be.useContext(Fe.E_),wt=pt("breadcrumb");return be.createElement("li",{className:`${wt}-separator`,"aria-hidden":"true"},gt===""?gt:gt||"/")};De.__ANT_BREADCRUMB_SEPARATOR=!0;var Oe=De,We=function(ye,gt){var pt={};for(var wt in ye)Object.prototype.hasOwnProperty.call(ye,wt)&>.indexOf(wt)<0&&(pt[wt]=ye[wt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,wt=Object.getOwnPropertySymbols(ye);utgt[ut]||wt)}function le(ye,gt,pt,wt){if(pt==null)return null;const{className:ut,onClick:Yt}=gt,ln=We(gt,["className","onClick"]),Nt=Object.assign(Object.assign({},(0,Ie.Z)(ln,{data:!0,aria:!0})),{onClick:Yt});return wt!==void 0?be.createElement("a",Object.assign({},Nt,{className:he()(`${ye}-link`,ut),href:wt}),pt):be.createElement("span",Object.assign({},Nt,{className:he()(`${ye}-link`,ut)}),pt)}function E(ye,gt){return(wt,ut,Yt,ln,Nt)=>{if(gt)return gt(wt,ut,Yt,ln);const Wt=Ve(wt,ut);return le(ye,wt,Wt,Nt)}}var a=function(ye,gt){var pt={};for(var wt in ye)Object.prototype.hasOwnProperty.call(ye,wt)&>.indexOf(wt)<0&&(pt[wt]=ye[wt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,wt=Object.getOwnPropertySymbols(ye);ut{const{prefixCls:gt,separator:pt="/",children:wt,menu:ut,overlay:Yt,dropdownProps:ln,href:Nt}=ye,Qe=(Me=>{if(ut||Yt){const Et=Object.assign({},ln);if(ut){const Gt=ut||{},{items:vt}=Gt,Dt=a(Gt,["items"]);Et.menu=Object.assign(Object.assign({},Dt),{items:vt==null?void 0:vt.map((Ae,dt)=>{var{key:un,title:ct,label:et,path:bn}=Ae,ot=a(Ae,["key","title","label","path"]);let Bt=et!=null?et:ct;return bn&&(Bt=be.createElement("a",{href:`${Nt}${bn}`},Bt)),Object.assign(Object.assign({},ot),{key:un!=null?un:dt,label:Bt})})})}else Yt&&(Et.overlay=Yt);return be.createElement(ke.Z,Object.assign({placement:"bottom"},Et),be.createElement("span",{className:`${gt}-overlay-link`},Me,be.createElement(Ye.Z,null)))}return Me})(wt);return Qe!=null?be.createElement(be.Fragment,null,be.createElement("li",null,Qe),pt&&be.createElement(Oe,null,pt)):null},y=ye=>{const{prefixCls:gt,children:pt,href:wt}=ye,ut=a(ye,["prefixCls","children","href"]),{getPrefixCls:Yt}=be.useContext(Fe.E_),ln=Yt("breadcrumb",gt);return be.createElement(x,Object.assign({},ut,{prefixCls:ln}),le(ln,ut,pt,wt))};y.__ANT_BREADCRUMB_ITEM=!0;var z=y,ne=oe(17313),re=oe(83116),ie=oe(37613);const ge=ye=>{const{componentCls:gt,iconCls:pt}=ye;return{[gt]:Object.assign(Object.assign({},(0,ne.Wf)(ye)),{color:ye.itemColor,fontSize:ye.fontSize,[pt]:{fontSize:ye.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:ye.linkColor,transition:`color ${ye.motionDurationMid}`,padding:`0 ${ye.paddingXXS}px`,borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",marginInline:-ye.marginXXS,"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover}},(0,ne.Qy)(ye)),"li:last-child":{color:ye.lastItemColor},[`${gt}-separator`]:{marginInline:ye.separatorMargin,color:ye.separatorColor},[`${gt}-link`]:{[` +`}return Tt.replaceSelection(jr+` +`),Tt.focus();default:throw new Error}},[Tt,yn]),Ba=(0,b.useMemo)(()=>{switch(yn){case wa:return b.createElement(It,{callback:nn,onCancel:Aa});case ya:return b.createElement(Vt.Z,{callback:nn,onCancel:Aa});case tn:return b.createElement(Qe.Z,{callback:nn,onCancel:Aa});case ht:return b.createElement(Rn,{callback:nn,onCancel:Aa});case ra:return b.createElement($t,{callback:nn,onCancel:Aa});case"maths-latex":return b.createElement(mn,{showSaveButton:!0,callback:nn});case"inline-latex":return b.createElement(En.Z,{showSaveButton:!0,callback:nn});default:return null}},[yn]);function Aa(){Ra("")}(0,b.useEffect)(()=>{if(mt.current){let Gn=function(Ht){$e=!0,st=Ht.pageY},rn=function(){$e=!1},Lt=function(Ht){if($e){let at=Ht.pageY-st;at<0&&(at=0),at>300&&(at=300);let an=Mt+at+"px";Ar(an)}},de=mt.current,$e=!1,st=0;return de.addEventListener("mousedown",Gn),document.addEventListener("mousemove",Lt),document.addEventListener("mouseup",rn),()=>{de.removeEventListener("mousedown",Gn),document.removeEventListener("mousemove",Lt),document.removeEventListener("mouseup",rn)}}},[Tt,mt]),(0,b.useEffect)(()=>{Ar(Mt)},[Mt]);const rr=ft(He),Ta=ft(cr),ga={width:rr,height:Ta},Qa=(0,b.useMemo)(()=>{if(Pa){let Gn=new Date(Pa),rn=Gn.getHours(),Lt=Gn.getMinutes(),de=Gn.getSeconds();return rn=rn<10?"0"+rn:rn,Lt=Lt<10?"0"+Lt:Lt,de=de<10?"0"+de:de,`${rn}:${Lt}:${de}`}return 0},[Pa]),hr=Gn=>{const rn=[];if(Je){let Lt=-1;Gn=Gn.replace(/(@▁▁@|@▁@)/g,function(de,$e,st){rn.push({multiLine:de!==Tn})})}return rn};function Gr(){window.sessionStorage.removeItem(Jn),Pr(!1),Va(0)}function nr(){Pr(!1),Va(0),Tt.setValue(window.sessionStorage.getItem(Jn))}(0,b.useEffect)(()=>{yt[yn]&&yn!==Sn&&yn!==ht&&setTimeout(()=>{const Gn=document.getElementsByClassName("markdown-popup-form")[0],rn=window.innerWidth/2-Gn.offsetWidth/2,Lt=window.innerHeight/2-Gn.offsetHeight/2;fa(rn),mr(Lt)},0)},[yn]);const fr=Gn=>{Gn.preventDefault();const rn=Gn.clientX-pr,Lt=Gn.clientY-ur;document.body.onmousemove=de=>{let $e=de.clientX-rn,st=de.clientY-Lt;const Ht=document.getElementsByClassName("markdown-popup-form")[0],at=window.innerWidth-Ht.offsetWidth,an=window.innerHeight-Ht.offsetHeight;$e=Math.max(0,Math.min($e,at)),st=Math.max(0,Math.min(st,an)),Dr(de.clientX,de.clientY,rn,Lt)&&(fa($e),mr(st))},document.body.onmouseup=function(){document.body.onmousemove=null}},Dr=(Gn,rn,Lt,de)=>{const $e=document.body.clientHeight,st=document.body.clientWidth;return Gn<20&&Lt>Gn||Gn>st-20&&Ltrn||rn>$e-20&&delt in Re?We(Re,lt,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Re[lt]=Le,z=(Re,lt)=>{for(var Le in lt||(lt={}))a.call(lt,Le)&&y(Re,Le,lt[Le]);if(E)for(var Le of E(lt))x.call(lt,Le)&&y(Re,Le,lt[Le]);return Re},ne=(Re,lt)=>Ve(Re,le(lt));const{useForm:re}=b.default,ie={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}};var fe=({callback:Re,onCancel:lt})=>{const[Le]=re();let Ce=(0,ke.useRef)();function Xe(gt){Ce.current.width=Le.getFieldValue("width"),Ce.current.align=Le.getFieldValue("align"),Re(gt,Ce.current)}function nt(gt,pt){if(gt.status===-1){he.ZP.error(gt.message);return}Le.setFieldsValue({src:`/api/attachments/${gt.id}`,type:pt.type})}function ye(gt){let pt=gt.target.files[0];Ce.current=pt,Ue(pt,nt)}return Oe.createElement(b.default,ne(z({form:Le},ge),{className:"upload-image-panel",onFinish:Xe,style:{width:470,overflow:"hidden"}}),Oe.createElement(b.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Oe.createElement("div",{className:"flex-container"},Oe.createElement(b.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Oe.createElement(Be.default,{style:ie})),Oe.createElement(Pe,{onFileChange:ye}))),Oe.createElement(b.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Oe.createElement(Be.default,{style:{width:264}})),Oe.createElement(b.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Oe.createElement(Ie.Z,null,Oe.createElement(b.default.Item,{name:"width",style:{margin:0}},Oe.createElement(be.Z,{style:{width:264}})),Oe.createElement("span",{className:"ml8"},"%"))),Oe.createElement(b.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Oe.createElement(Ge.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Oe.createElement("aside",null,Oe.createElement(b.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Oe.createElement(Fe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Oe.createElement(Fe.ZP,{type:"default",onClick:lt},"\u53D6\u6D88"))))};function Pe({onFileChange:Re}){return Oe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Oe.createElement("input",{type:"file",onChange:Re}))}function Ue(Re,lt){if(!Re)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,De.bg)())throw he.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Le=new FormData;Le.append("editormd-image-file",Re),Le.append("file_param_name","editormd-image-file"),Le.append("byxhr","true");var Ce=new window.XMLHttpRequest;Ce.withCredentials=!0,Ce.addEventListener("load",function(Xe){lt(JSON.parse(Xe.target.responseText),Re)},!1),Ce.addEventListener("error",function(Xe){console.error(Xe)},!1),Ce.open("POST",`${Ye.KI}/api/attachments.json`),Ce.send(Le)}},23252:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Be}});var b=oe(59301),he=oe(4676);class Be extends b.Component{constructor(be){super(be);const Ge=window.document;this.node=Ge.createElement("div"),Ge.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,he.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},50543:function(_e,xt,oe){"use strict";oe.d(xt,{i:function(){return ge},Z:function(){return Pe}});var b={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},he=oe(71418),Be=oe(6848),Ie=oe(93948),be=oe(92310),Ge=oe.n(be),Fe=oe(21331),Ye=oe(41625),ke=oe(35219),De=oe(79005),Oe=oe(20345),We=oe(77882),Ve=oe(31081),le=oe(75309),E=oe(71979),a=oe(47558),x=oe(42922),y=oe(66832),z=oe(96593),ne=oe(19664),re=oe(91833),ie=oe(59301);const ge=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:De,swimg:Oe},{name:"101\u8BA1\u5212",ptimg:We,swimg:Ve},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:le,swimg:E},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:a,swimg:x},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:y,swimg:z},{name:"\u519B\u961F\u4E00\u6D41",ptimg:ne,swimg:re}];var Pe=({className:Ue,dataSource:Re=[],col:lt=4,right:Le,bottom:Ce=23,precision:Xe=0,wrapWidth:nt=1200,trackEventItems:ye,loading:gt,onRemove:pt=()=>{},isCurrent:wt=!0,showAlias:ut=!1,showProgress:Jt=!1})=>{const on=Math.floor((nt-(lt-1)*Le)/lt),It=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(Vt=>(window.ENV==="build"&&(Vt.ptimg=`/react/build${Vt.ptimg}`,Vt.swimg=`/react/build${Vt.swimg}`),Vt));return ie.createElement(he.Z,{spinning:gt},ie.createElement("div",{className:Ge()(b.list,Ue)},!!(Re!=null&&Re.length)&&(Re==null?void 0:Re.map((Vt,Qe)=>{var Me,Et,kt,vt,Dt,Ae;const{name:dt,id:ln,identifier:ct,featured:et,school_name:Bn,image_url:ot,excellent:bt,is_plan:zt}=Vt;return ie.createElement("div",{key:ln,className:wt&&Jt?b.wrapisCurrent:b.wrap,style:{width:on,marginRight:(1+Qe)%lt===0?0:Le+Xe,marginBottom:Ce}},ie.createElement("a",{className:b.li,onClick:St=>{St.preventDefault(),St.stopPropagation(),ye&&(0,Fe.L9)([ye]),(0,Fe.xg)(`/paths/${ct}`)}},ie.createElement("div",{className:b.img},ie.createElement("img",{className:b.cover,src:`${ot}`}),wt&&(0,ke.bg)()&&(Vt==null?void 0:Vt.studying)&&ie.createElement("div",{className:`${b.movebq} user-path-items`,onClick:St=>{St.stopPropagation(),pt(Vt)}},ie.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ie.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Me=Vt==null?void 0:Vt.subject_tags)==null?void 0:Me.map((St,Rn)=>{var Ot,Kn;if(Rn===0){const jn=(Ot=It.find($t=>$t.name==St))==null?void 0:Ot.swimg;return ie.createElement("img",{className:b.sign,src:jn,style:{left:"-4px"}})}const xn=(Kn=It.find(jn=>jn.name==St))==null?void 0:Kn.ptimg;return ie.createElement("img",{className:b.sign,src:xn,style:{left:`${48+52*(Rn-1)+2*Rn}px`}})}),ie.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Vt==null?void 0:Vt.excellent)&&ie.createElement("div",{className:b.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ie.createElement("div",{className:b.name},ie.createElement(Be.Z,{title:ut&&(Vt!=null&&Vt.excellent_alias_name)?ie.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${dt}`,ie.createElement("br",null),ie.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Vt==null?void 0:Vt.excellent_alias_name}`)):dt},ie.createElement("span",{className:b.e},ut&&(Vt==null?void 0:Vt.excellent_alias_name)||dt))),wt&&Jt&&((Et=Vt==null?void 0:Vt.progress)==null?void 0:Et.all_score)!=0&&ie.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},ie.createElement(Ie.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((kt=Vt==null?void 0:Vt.progress)==null?void 0:kt.my_score)/((vt=Vt==null?void 0:Vt.progress)==null?void 0:vt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Dt=Vt==null?void 0:Vt.progress)==null?void 0:Dt.my_score,"/",(Ae=Vt==null?void 0:Vt.progress)==null?void 0:Ae.all_score),(!wt||!Jt)&&ie.createElement("div",{className:b.tags},ie.createElement("div",null,ie.createElement(Be.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ie.createElement("span",null,ie.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ie.createElement("span",null,Vt.stages_count))),ie.createElement(Be.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ie.createElement("span",null,ie.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ie.createElement("span",null,Vt.members_count)))))))})),!Re.length&&ie.createElement(Ye.Z,null)))}},14739:function(_e,xt,oe){"use strict";oe.d(xt,{jL:function(){return be},w9:function(){return un},dN:function(){return Sa},QD:function(){return fn},cQ:function(){return vt.Z},Oz:function(){return jn},op:function(){return He},O5:function(){return Qt},_b:function(){return Kt},t7:function(){return Re},Gi:function(){return oa},YG:function(){return Sn},kT:function(){return ra},qp:function(){return x},K3:function(){return ne},vr:function(){return Zt},qE:function(){return dn},Je:function(){return Ce},wb:function(){return Qe},lB:function(){return kt},cq:function(){return At},tp:function(){return ge},Si:function(){return Xt},k8:function(){return ar},Du:function(){return Ar}});var b=oe(59301),he={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Be="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7g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2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",be=({dataSource:mt=[],img:it,imgWidth:Nt=346,title:cn,sunTitle:ua,bannerExtraContent:La})=>b.createElement("div",{className:he.banner},b.createElement("div",{className:he.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,cn),b.createElement("span",null,ua)),mt.length>0&&b.createElement("div",{className:he.btns},mt.map((nn,Ba)=>b.createElement("div",{key:Ba,onClick:nn.click},nn.name,nn.sign?b.createElement("img",{src:Be,width:39}):null))),La),it&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:it,width:Nt}))),Ge={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Fe=oe(92310),Ye=oe.n(Fe),ke=oe(78267),De=Object.defineProperty,Oe=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,le=(mt,it,Nt)=>it in mt?De(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):mt[it]=Nt,E=(mt,it)=>{for(var Nt in it||(it={}))We.call(it,Nt)&&le(mt,Nt,it[Nt]);if(Oe)for(var Nt of Oe(it))Ve.call(it,Nt)&&le(mt,Nt,it[Nt]);return mt},x=({dataSource:mt=[],value:it,onChange:Nt,onTitleChange:cn,className:ua,title:La,titleWidth:nn=41,style:Ba={},fontColor:Aa="#6A7283",showCount:rr,classNameActive:Ta,styleItem:ga={}})=>{const[Qa,hr]=(0,b.useState)(0),[Gr,nr]=(0,b.useState)(!1),fr=(0,b.useRef)(null),Dr=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var Gn;mt.length!==0&&(((Gn=fr==null?void 0:fr.current)==null?void 0:Gn.clientHeight)>97?hr(1):hr(0)),mt.length===0&&hr(0),nr(!1)},[mt]),b.createElement("div",{className:Ye()(Ge.row,ua),style:Ba},b.createElement("div",{onClick:(0,ke.throttle)(()=>cn==null?void 0:cn(),2e3),style:{width:nn,marginTop:Gr?12:4},className:`${Ge.title} ${cn?"current":""}`},La),b.createElement("div",{className:Gr?`${Ge.tagsWrap} ${Ge.tagsBorderWrap}`:Ge.tagsWrap},b.createElement("div",{className:Ge.bar,ref:Dr,style:Qa>0?{height:Qa===1?97:"auto",overflow:Qa===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:Ge.tag,ref:fr},mt==null?void 0:mt.map(Gn=>b.createElement("span",{onClick:()=>Nt(Gn.id),key:Gn.id,style:E(E({color:Aa},ga),(Gn==null?void 0:Gn.style)||{}),className:it===Gn.id?Ye()(Ta||Ge.active,Gn.classNameActive):""},b.createElement("span",{title:Gn.name,className:Ge.name},Gn.name),!!rr&&b.createElement("span",{className:Ge.num},Gn.count))))),!!Qa&&b.createElement(b.Fragment,null,Qa===1?b.createElement("div",{onClick:()=>{var Gn;hr(2),((Gn=fr==null?void 0:fr.current)==null?void 0:Gn.clientHeight)>245?nr(!0):nr(!1)},className:Ge.action},"\u5C55\u5F00",b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{Dr.current.scrollTop=0,hr(1),nr(!1)},className:Ge.action},"\u6536\u8D77",b.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},y={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},ne=({dataSource:mt=[],value:it,onChange:Nt,onTitleChange:cn,className:ua,title:La,titleWidth:nn=41,style:Ba={},fontColor:Aa="#6A7283",showCount:rr,expand:Ta=!0})=>{const[ga,Qa]=(0,b.useState)(0),[hr,Gr]=(0,b.useState)(!1),nr=(0,b.useRef)(null),fr=(0,b.useRef)(null),[Dr,Gn]=(0,b.useState)(Ta);return b.createElement("div",{className:Ye()(y.row,ua),style:Ba},b.createElement("div",{className:"flex item-center justify-between"},b.createElement("div",{onClick:(0,ke.throttle)(()=>cn==null?void 0:cn(),2e3),style:{width:nn,marginTop:hr?12:4},className:`${y.title} ${cn?"current":""}`},La),b.createElement("i",{className:`iconfont ${Dr?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:Dr?8:10},onClick:()=>Gn(!Dr)})),Dr&&b.createElement("div",{className:hr?`${y.tagsWrap} ${y.tagsBorderWrap}`:y.tagsWrap},b.createElement("div",{className:y.fenge}),b.createElement("div",{className:y.bar,ref:fr},b.createElement("div",{className:y.tag,ref:nr},mt==null?void 0:mt.map(rn=>b.createElement("span",{onClick:()=>Nt(rn.id),key:rn.id,style:{color:Aa},className:it===rn.id?y.active:""},b.createElement("span",{title:rn.name,className:y.name},rn.name),!!rr&&b.createElement("span",{className:y.num},rn.count)))))))},re={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},ge=({dataSource:mt=[],value:it,onChange:Nt,className:cn,style:ua={}})=>b.createElement("div",{style:ua,className:Ye()(re.tabs,cn)},mt.map(La=>b.createElement("span",{onClick:()=>Nt(La.id),className:it===La.id?re.active:"",key:La.id},La.name))),fe={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Pe=oe(92832),Re=({dataSource:mt=[],value:it="",onChange:Nt,onInputChange:cn=()=>{},className:ua,style:La={},placeholder:nn,allowClear:Ba=!1})=>{var Aa;const[rr,Ta]=(0,b.useState)(""),[ga,Qa]=(0,b.useState)("");(0,b.useEffect)(()=>{var nr;let fr=it;(nr=JSON.stringify(it))!=null&&nr.includes("{")&&(Ta(it.id),fr=it.value||"");try{Qa(decodeURIComponent(fr||""))}catch(Dr){Qa(decodeURIComponent(fr||""))}},[it]);const hr=()=>{Nt(encodeURIComponent(ga),rr||null)},Gr=nr=>{nr!==rr&&(Ta(nr),Nt(encodeURIComponent(ga),nr))};return b.createElement("div",{className:Ye()(fe.input,ua),style:La},!!mt.length&&b.createElement("div",{className:fe.dropdown},b.createElement("div",{className:fe.text},(Aa=mt.find(nr=>nr.id===rr))==null?void 0:Aa.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:fe.b1}),b.createElement("b",{className:fe.b2})),b.createElement("div",{className:fe.menu},mt.map((nr,fr)=>b.createElement("div",{key:fr,onClick:()=>Gr(nr.id)},nr.name)))),b.createElement(Pe.default,{onPressEnter:hr,value:ga,onChange:nr=>{Qa(nr.target.value),cn(encodeURIComponent(nr.target.value),rr||null)},bordered:!1,placeholder:nn}),b.createElement("i",{onClick:hr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},lt={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Ce=({value:mt,onChange:it,className:Nt,total:cn,pageSize:ua,style:La={}})=>{const nn=mt<2,Ba=mt>=Math.ceil(cn/ua);return cn<=ua?b.createElement(b.Fragment,null):b.createElement("div",{className:Ye()(lt.quickPager,Nt),style:La},b.createElement("div",{onClick:()=>{nn||it(mt-1,"prev")},className:nn?lt.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{Ba||it(mt+1,"next")},className:Ba?lt.disabled:""},"\u4E0B\u4E00\u9875"))},Xe={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},nt=oe(71418),ye=oe(6848),gt=oe(13570),pt=oe(41510),wt=oe(21331),ut=oe(96908),Jt=oe(57177),on=oe(81378),It=oe(41625),Qe=({className:mt,dataSource:it=[],col:Nt=4,right:cn,bottom:ua=23,precision:La=0,wrapWidth:nn=1200,trackEventItems:Ba,loading:Aa})=>{const rr=Math.floor((nn-(Nt-1)*cn)/Nt);return b.createElement(nt.Z,{spinning:Aa},b.createElement("div",{className:Ye()(Xe.list,mt)},!!it.length&&it.map((Ta,ga)=>{const{name:Qa,id:hr,identifier:Gr,power:nr,cover_image_id:fr,pic:Dr}=Ta;return b.createElement("div",{className:Xe.wrap,key:hr,style:{width:rr,marginRight:(1+ga)%Nt===0?0:cn+La,marginBottom:ua}},b.createElement("a",{target:"_blank",href:`/shixuns/${Gr}/challenges`,className:Xe.li,onClick:Gn=>{Gn.preventDefault(),Ba&&(0,wt.L9)([Ba]),nr&&(0,wt.xg)(`/shixuns/${Gr}/challenges`)}},b.createElement("div",{className:Xe.img},b.createElement("img",{className:Xe.cover,src:`${Dr}`}),Ta.is_jupyter&&b.createElement("img",{className:Xe.sign,src:ut}),Ta.is_jupyter_lab&&b.createElement("img",{className:Xe.sign,src:Jt}),Ta.is_unity_3d&&b.createElement("img",{className:Xe.sign,src:on})),b.createElement("div",{className:Xe.name},b.createElement(ye.Z,{title:Qa||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:Xe.e},Qa||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{className:Xe.tags},b.createElement(ye.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),b.createElement("span",null,Ta.challenges_count))),!!Ta.myshixuns_count&&b.createElement(ye.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),b.createElement("span",null,Ta.myshixuns_count))),b.createElement(ye.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},b.createElement("span",null,b.createElement("span",null,Ta.level))),b.createElement("div",{className:Xe.rate},b.createElement(gt.Z,{allowHalf:!0,disabled:!0,defaultValue:Ta.score_info}),b.createElement("span",null,"\xA0",Ta.score_info?`${Ta.score_info}\u5206`:"5\u5206")))),!nr&&b.createElement("div",{className:Xe.lockWrap},b.createElement("img",{src:`${pt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!it.length&&b.createElement(It.Z,null)))},Me={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"},kt=({className:mt,dataSource:it=[],col:Nt=4,right:cn,bottom:ua=23,precision:La=0,wrapWidth:nn=1200,wrapClassName:Ba,trackEventItems:Aa,loading:rr})=>{const Ta=Math.floor((nn-(Nt-1)*cn)/Nt);return b.createElement(nt.Z,{spinning:rr},b.createElement("div",{className:Ye()(Me.list,mt)},!!it.length&&it.map((ga,Qa)=>{const{name:hr,id:Gr,identifier:nr,power:fr,cover_image_id:Dr,pic:Gn}=ga;return b.createElement("div",{className:Ye()(Me.wrap,Ba),key:Gr,style:{width:Ta,marginRight:(1+Qa)%Nt===0?0:cn+La,marginBottom:ua}},b.createElement("a",{target:"_blank",href:`/shixuns/${nr}/challenges`,className:Me.li,onClick:rn=>{rn.preventDefault(),Aa&&(0,wt.L9)([Aa]),fr&&(0,wt.xg)(`/shixuns/${nr}/challenges`)}},b.createElement("img",{src:oe(47621),className:Me.titleBg}),b.createElement("div",{className:Me.name},b.createElement(ye.Z,{title:hr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:Me.e},hr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{style:{padding:"14px",paddingBottom:0}},b.createElement("div",{className:Me.img},b.createElement("img",{className:Me.cover,src:Dr?`${pt.Z.API_SERVER}/api/attachments/${Dr}`:`${pt.Z.IMG_SERVER+Gn}`}),ga.is_jupyter&&b.createElement("div",{className:Me.bq},"Jupyter"),ga.is_jupyter_lab&&b.createElement("div",{className:Me.bq},"JupyterLab"),ga.is_unity_3d&&b.createElement("div",{className:Me.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:Me.text},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:Me.value},ga.myshixuns_count)),b.createElement("div",null,b.createElement("span",{className:Me.text},"\u56F0\u96BE\u7B49\u7EA7"),b.createElement("span",{className:Me.value},ga.level))),b.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:Me.text},"\u5173\u5361\u6570"),b.createElement("span",{className:Me.value},ga.challenges_count)),b.createElement("div",{className:Me.rate},b.createElement(gt.Z,{allowHalf:!0,disabled:!0,defaultValue:ga.score_info}),b.createElement("span",{className:Me.value,style:{color:"#FF9C00"}},"\xA0",ga.score_info?`${ga.score_info}\u5206`:"5\u5206"))))),!fr&&b.createElement("div",{className:Me.lockWrap},b.createElement("img",{src:`${pt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!it.length&&b.createElement(It.Z,null)))},vt=oe(50543),Dt={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},Ae=oe(79005),dt=oe(20345),ln=oe(77882),ct=oe(31081),et=oe(75309),Bn=oe(71979),ot=oe(47558),bt=oe(42922),zt=oe(66832),St=oe(96593),Rn=oe(19664),Ot=oe(91833);const Kn=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ae,swimg:dt},{name:"101\u8BA1\u5212",ptimg:ln,swimg:ct},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:et,swimg:Bn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:ot,swimg:bt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:zt,swimg:St},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Rn,swimg:Ot}];var jn=({className:mt,dataSource:it=[],col:Nt=4,right:cn,bottom:ua=23,precision:La=0,wrapWidth:nn=1200,trackEventItems:Ba,loading:Aa,wrapClassName:rr,imgClassName:Ta,isArrow:ga=!1})=>{const Qa=Math.floor((nn-(Nt-1)*cn)/Nt),[hr,Gr]=(0,b.useState)(),[nr,fr]=(0,b.useState)(),Dr=rn=>Gr(rn),Gn=()=>Gr(-1);return b.createElement(nt.Z,{spinning:Aa},b.createElement("div",{className:Ye()(Dt.list,mt)},!!(it!=null&&it.length)&&(it==null?void 0:it.map((rn,Lt)=>{var de;const{name:$e,id:st,identifier:Ht,featured:at,school_name:an,image_url:qt,excellent:Yt,is_plan:_t}=rn;return b.createElement("div",{key:st,className:Ye()(Dt.wrap,rr),style:{width:Qa,marginRight:(1+Lt)%Nt===0?0:cn+La,marginBottom:ua}},b.createElement("a",{target:"_blank",href:`/paths/${Ht}`,className:Dt.li,onClick:ia=>{ia.preventDefault(),Ba&&(0,wt.L9)([Ba]),(0,wt.xg)(`/paths/${Ht}`)}},b.createElement("img",{src:oe(39057),className:Dt.titleBg}),b.createElement("div",{className:Dt.name},b.createElement(ye.Z,{title:$e},b.createElement("span",{className:Dt.e,style:{color:ga&&hr===Lt?"#145DFF":"#000000"},onMouseEnter:()=>{Dr(Lt)},onMouseLeave:Gn},$e))),b.createElement("div",{style:{padding:"14px",paddingBottom:0}},b.createElement("div",{className:Ye()(Dt.img,Ta)},b.createElement("img",{className:Dt.cover,src:`${pt.Z.IMG_SERVER+qt}`}),(de=rn==null?void 0:rn.subject_tags)==null?void 0:de.map((ia,za)=>{var Wa,pn;if(za===0){const Ca=(Wa=Kn.find(ja=>ja.name==ia))==null?void 0:Wa.swimg;return b.createElement("img",{className:Dt.sign,src:Ca,style:{left:"-4px"}})}const Ia=(pn=Kn.find(Ca=>Ca.name==ia))==null?void 0:pn.ptimg;return b.createElement("img",{className:Dt.sign,src:Ia,style:{left:`${48+52*(za-1)+2*za}px`}})}),b.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(rn==null?void 0:rn.excellent)&&b.createElement("div",{className:Dt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),b.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:Dt.text},"\u7AE0\u8282\u6570"),b.createElement("span",{className:Dt.value},rn.stages_count)),b.createElement("div",null,b.createElement("span",{className:Dt.text},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:Dt.value},rn.members_count))))))})),!it.length&&b.createElement(It.Z,null)))},$t={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ma="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7N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mbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Wn=oe(59301),un=({className:mt,dataSource:it=[],col:Nt=4,right:cn,bottom:ua=23,precision:La=0,wrapWidth:nn=1200,trackEventItems:Ba,loading:Aa})=>{const rr=Math.floor((nn-(Nt-1)*cn)/Nt);return Wn.createElement(nt.Z,{spinning:Aa},Wn.createElement("div",{className:Ye()($t.list,mt)},!!it.length&&it.map((Ta,ga)=>{const{subject_identifier:Qa,id:hr,identifier:Gr,power:nr}=Ta,fr=Ta.is_public!=0&&Ta.is_public;return Wn.createElement("div",{className:$t.wrap,key:hr,style:{width:rr,marginRight:(1+ga)%Nt===0?0:cn+La,marginBottom:ua}},Wn.createElement("a",{className:$t.li,onClick:Dr=>{Dr.preventDefault(),Ba&&(0,wt.L9)([Ba]),(0,wt.xg)(Ta.first_category_url)}},Wn.createElement("div",{className:$t.top},Wn.createElement(ye.Z,{title:Ta.name},Wn.createElement("div",{className:$t.name},Ta.name)),Wn.createElement("img",{className:$t.img,src:pt.Z.IMG_SERVER+"/images/"+Ta.avatar_url}),Wn.createElement("div",{className:$t.text,title:Ta.creator},Ta.creator),Qa&&Wn.createElement("div",{className:$t.btns},Wn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Wn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),fr&&Wn.createElement("div",{className:$t.sign},"\u516C\u5F00")),Wn.createElement("div",{className:$t.bottom},Ta.visits>0&&Wn.createElement(ye.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Wn.createElement("span",null,Wn.createElement("i",{className:"iconfont icon-liulanyan"}),Wn.createElement("span",null,Ta.visits))),Ta.course_members_count>0&&Wn.createElement(ye.Z,{title:"\u6210\u5458",placement:"bottom"},Wn.createElement("span",null,Wn.createElement("i",{className:"iconfont icon-chengyuan"}),Ta.course_members_count)),Ta.tasks_count>0&&Wn.createElement(ye.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Wn.createElement("span",null,Wn.createElement("i",{className:"iconfont icon-zuoye"}),Ta.tasks_count)),Ta.is_end?Wn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Wn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Ta.is_accessible&&Wn.createElement("div",{className:$t.lockWrap},Wn.createElement("img",{src:`${pt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Wn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!it.length&&Wn.createElement(It.Z,null)))},mn={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"},En="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9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ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Sa=({className:mt,dataSource:it=[],col:Nt=4,right:cn,bottom:ua=23,precision:La=0,wrapWidth:nn=1200,wrapClassName:Ba,trackEventItems:Aa,loading:rr})=>{const Ta=Math.floor((nn-(Nt-1)*cn)/Nt);return b.createElement(nt.Z,{spinning:rr},b.createElement("div",{className:Ye()(mn.list,mt)},!!it.length&&it.map((ga,Qa)=>{const{subject_identifier:hr,id:Gr,identifier:nr,power:fr}=ga,Dr=ga.is_public!=0&&ga.is_public;return b.createElement("div",{className:Ye()(`${mn.wrap} ${ga.is_accessible?"":mn.warpStyle}`,Ba),key:Gr,style:{width:Ta,marginRight:(1+Qa)%Nt===0?0:cn+La,marginBottom:ua}},b.createElement("a",{className:mn.li,onClick:Gn=>{Gn.preventDefault(),Aa&&(0,wt.L9)([Aa]),(0,wt.xg)(ga.first_category_url)}},b.createElement("div",{className:mn.creator},b.createElement("img",{className:mn.img,src:pt.Z.IMG_SERVER+"/images/"+ga.avatar_url}),b.createElement("div",{className:mn.text,title:ga.creator},ga.creator)),b.createElement("div",{className:mn.top},b.createElement(ye.Z,{title:ga.name},b.createElement("div",{className:mn.name},ga.name)),Dr&&b.createElement("div",{className:mn.sign},"\u516C\u5F00")),b.createElement("div",{className:mn.middle},b.createElement("div",{className:mn.row,style:{marginBottom:6}},b.createElement("div",null,b.createElement("span",{className:mn.text},"\u8BBF\u95EE\u91CF"),b.createElement("span",{className:mn.value},(ga==null?void 0:ga.visits)||0)),b.createElement("div",null,b.createElement("span",{className:mn.text},"\u6210\u5458"),b.createElement("span",{className:mn.value},(ga==null?void 0:ga.course_members_count)||0))),b.createElement("div",{className:mn.row},b.createElement("div",null,b.createElement("span",{className:mn.text,style:{width:42}},"\u4F5C",b.createElement("span",{style:{marginLeft:14}},"\u4E1A")),b.createElement("span",{className:mn.value},(ga==null?void 0:ga.tasks_count)||0)),b.createElement("div",null,b.createElement("span",{className:mn.text},"\u72B6\u6001"),ga.is_end?b.createElement("span",{className:mn.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):b.createElement("span",{className:mn.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),hr&&b.createElement("div",{className:mn.btns},b.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),b.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!ga.is_accessible&&b.createElement("div",{className:mn.lockWrap},b.createElement("img",{src:`${pt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!it.length&&b.createElement(It.Z,null)))},wa={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},tn=oe(6075),Sn=({dataSource:mt=[],value:it,onChange:Nt,className:cn,style:ua={},tabBarExtraContent:La})=>b.createElement("div",{className:Ye()(wa.tabs,cn),style:ua},b.createElement("div",{className:wa.tabsWrap},mt.map((nn,Ba)=>b.createElement("aside",{className:wa.tab,onClick:()=>{Nt(nn.id),nn.link&&tn.history.push(nn.link)},key:Ba},b.createElement("div",{className:it===nn.id?wa.active:""},nn.name),(nn==null?void 0:nn.resetCount)==null&&(nn==null?void 0:nn.total)!==void 0&&b.createElement("span",null,"\uFF08",nn==null?void 0:nn.total,"\uFF09"),(nn==null?void 0:nn.resetCount)!==void 0&&(nn==null?void 0:nn.total)!==void 0&&b.createElement(ye.Z,{title:(nn==null?void 0:nn.tip)!=null?nn==null?void 0:nn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},nn==null?void 0:nn.resetCount),"/",b.createElement("span",null,nn==null?void 0:nn.total),"\uFF09"))))),b.createElement("div",{className:wa.tabBar},La)),Cn={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"},ra=({dataSource:mt=[],value:it,onChange:Nt,className:cn,style:ua={},tabBarExtraContent:La})=>b.createElement("div",{className:Ye()(Cn.tabs,cn),style:ua},b.createElement("div",{className:Cn.tabsWrap},mt.map((nn,Ba)=>b.createElement("aside",{className:Cn.tab,onClick:()=>{Nt(nn.id),nn.link&&tn.history.push(nn.link)},key:Ba},b.createElement("div",{className:it===nn.id?Cn.active:""},nn.name),(nn==null?void 0:nn.resetCount)==null&&(nn==null?void 0:nn.total)!==void 0&&b.createElement("span",null,"\uFF08",nn==null?void 0:nn.total,"\uFF09"),(nn==null?void 0:nn.resetCount)!==void 0&&(nn==null?void 0:nn.total)!==void 0&&b.createElement(ye.Z,{title:(nn==null?void 0:nn.tip)!=null?nn==null?void 0:nn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},nn==null?void 0:nn.resetCount),"/",b.createElement("span",null,nn==null?void 0:nn.total),"\uFF09"))))),b.createElement("div",{className:Cn.tabBar},La)),oa=({className:mt,style:it={},children:Nt})=>b.createElement("div",{className:Ye()(mt),style:it},Nt),Qn={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Ya=oe(38854),Ma=oe(20834);const Ja=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var At=({sortValue:mt,dropValue:it,className:Nt,onSort:cn,onDrop:ua,dataSource:La=Ja})=>{var nn;return b.createElement("div",{className:Ye()(Qn.orderWrap,Nt)},b.createElement(Ya.Z,{dropdownRender:()=>b.createElement(Ma.default,null,La.map((Ba,Aa)=>b.createElement(Ma.default.Item,{key:Aa,onClick:()=>ua(Ba.id)},Ba.name)))},b.createElement("span",{className:Qn.orderTextWrap},(nn=La.find(Ba=>it===Ba.id))==null?void 0:nn.name)),b.createElement("span",{className:Qn.orderIconWrap},b.createElement("span",{className:Qn.orderAsc},b.createElement("i",{className:mt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Qn.cursorPointer} ${Qn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Qn.cursorPointer}`,onClick:()=>cn(mt==="asc"?"desc":"asc")})),b.createElement("span",{className:Qn.orderDesc},b.createElement("i",{className:mt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Qn.cursorPointer} ${Qn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Qn.cursorPointer}`,onClick:()=>cn(mt==="asc"?"desc":"asc")}))))},On={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"},Tn=oe(3113),Ln=oe(95051),xe=Object.defineProperty,ft=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,Rt=(mt,it,Nt)=>it in mt?xe(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):mt[it]=Nt,yt=(mt,it)=>{for(var Nt in it||(it={}))Ft.call(it,Nt)&&Rt(mt,Nt,it[Nt]);if(ft)for(var Nt of ft(it))Ut.call(it,Nt)&&Rt(mt,Nt,it[Nt]);return mt},An=(mt,it)=>{var Nt={};for(var cn in mt)Ft.call(mt,cn)&&it.indexOf(cn)<0&&(Nt[cn]=mt[cn]);if(mt!=null&&ft)for(var cn of ft(mt))it.indexOf(cn)<0&&Ut.call(mt,cn)&&(Nt[cn]=mt[cn]);return Nt},je=(mt,it,Nt)=>new Promise((cn,ua)=>{var La=Aa=>{try{Ba(Nt.next(Aa))}catch(rr){ua(rr)}},nn=Aa=>{try{Ba(Nt.throw(Aa))}catch(rr){ua(rr)}},Ba=Aa=>Aa.done?cn(Aa.value):Promise.resolve(Aa.value).then(La,nn);Ba((Nt=Nt.apply(mt,it)).next())}),He=mt=>{var it=mt,{className:Nt,style:cn,children:ua,loading:La=!1,openLoading:nn,onClick:Ba=()=>{},size:Aa="middle",shape:rr="round",theme:Ta}=it,ga=An(it,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[Qa,hr]=(0,b.useState)(!1),Gr=(0,b.useMemo)(()=>{switch(Ta){case Ln.Fy.THEMEONE:return On.ThemeOne;case Ln.Fy.DEFAULT:default:return On.btn}},[Ta]);return b.createElement(Tn.ZP,yt({onClick:(0,ke.throttle)(nr=>je(void 0,null,function*(){nn&&hr(!0);try{yield Ba(nr)}catch(fr){console.log("error",fr)}nn&&hr(!1)}),2e3,{leading:!0,trailing:!1}),className:Ye()(Gr,On[`${Aa}-${rr}`],Nt),style:cn,size:Aa,shape:rr,loading:Qa||La},ga),ua)},Mt={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},dn=({className:mt,style:it,children:Nt=null,onClick:cn,title:ua})=>b.createElement("div",{className:Ye()(Mt.head,mt),style:it},b.createElement("span",{className:"primary-hover",onClick:cn},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:ua},ua),b.createElement("div",{className:Mt.node},Nt)),qn={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"},fn=({confirmShow:mt=!0,confirmTitle:it,confirmClick:Nt,cancelShow:cn=!0,cancelTitle:ua,cancelClick:La,className:nn,style:Ba,confirmLoading:Aa=!1})=>b.createElement("div",{className:Ye()(qn.btns,nn),style:Ba},mt&&b.createElement(Tn.ZP,{loading:Aa,onClick:Nt,type:"primary",className:qn.confirm},it),cn&&b.createElement(Tn.ZP,{onClick:La,className:qn.cancel},ua)),Jn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Zt=({className:mt,style:it={},LeftContent:Nt,children:cn,RightContent:ua})=>b.createElement("div",{className:Ye()(Jn.fixedBottom,mt),style:it},b.createElement("div",{className:Jn.wrap},b.createElement("div",{className:Jn.left},Nt),b.createElement("div",{className:Jn.center},cn),b.createElement("div",{className:Jn.right},ua))),_n={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Kt=({className:mt,style:it={},dataSource:Nt=[]})=>b.createElement("div",{className:Ye()(_n.crumbs,mt),style:it},Nt.map((cn,ua)=>uatn.history.push(cn.path)},cn.name):b.createElement("span",null,cn.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:ua,style:{color:"#5F6368"}},cn.name))),wn=oe(31797),tt=Object.defineProperty,Xn=Object.defineProperties,Mn=Object.getOwnPropertyDescriptors,ca=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,Za=Object.prototype.propertyIsEnumerable,sa=(mt,it,Nt)=>it in mt?tt(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):mt[it]=Nt,er=(mt,it)=>{for(var Nt in it||(it={}))Vn.call(it,Nt)&&sa(mt,Nt,it[Nt]);if(ca)for(var Nt of ca(it))Za.call(it,Nt)&&sa(mt,Nt,it[Nt]);return mt},tr=(mt,it)=>Xn(mt,Mn(it)),gr=(mt,it)=>{var Nt={};for(var cn in mt)Vn.call(mt,cn)&&it.indexOf(cn)<0&&(Nt[cn]=mt[cn]);if(mt!=null&&ca)for(var cn of ca(mt))it.indexOf(cn)<0&&Za.call(mt,cn)&&(Nt[cn]=mt[cn]);return Nt};const{Countdown:Tt}=wn.default;var Qt=mt=>{var it=mt,{onChange:Nt}=it,cn=gr(it,["onChange"]);const[ua,La]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof ua=="number"&&ua>=0&&Nt(ua)},[ua]);const nn=Ba=>{const Aa=Math.floor(Ba/1e3);La(Aa)};return b.createElement(Tt,tr(er({},cn),{onChange:nn}))},xa={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},Xt=({DataProps:mt,className:it,style:Nt={}})=>{var cn;return b.createElement("div",{className:Ye()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",xa.ClassRoomItem,it),style:Nt,onClick:()=>{(0,wt.xg)(mt==null?void 0:mt.first_category_url)}},b.createElement("div",{className:"flex flex-col item-center"},b.createElement("img",{src:`${(cn=pt.Z)==null?void 0:cn.IMG_SERVER}/images/${mt==null?void 0:mt.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(mt==null?void 0:mt.subject_identifier)&&b.createElement("div",{className:"mt-40px"},b.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),b.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),b.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},b.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(mt!=null&&mt.is_public)&&b.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),b.createElement("span",{className:Ye()("text-16px font-medium",xa.TitleDom)},mt==null?void 0:mt.name)),b.createElement("div",{className:"c-grey-333 font-medium"},mt==null?void 0:mt.creator),b.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",mt==null?void 0:mt.course_members_count),b.createElement("div",{className:"c-grey-333 flex item-center justify-between"},b.createElement("div",null,"\u4F5C\u4E1A\uFF1A",mt==null?void 0:mt.tasks_count),mt!=null&&mt.is_end?b.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):b.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},Dn=Object.defineProperty,ea=Object.getOwnPropertySymbols,yn=Object.prototype.hasOwnProperty,Ra=Object.prototype.propertyIsEnumerable,Pa=(mt,it,Nt)=>it in mt?Dn(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):mt[it]=Nt,Va=(mt,it)=>{for(var Nt in it||(it={}))yn.call(it,Nt)&&Pa(mt,Nt,it[Nt]);if(ea)for(var Nt of ea(it))Ra.call(it,Nt)&&Pa(mt,Nt,it[Nt]);return mt},Ar=({DataProps:mt=[],selectValue:it,onChange:Nt,className:cn,style:ua={},extra:La,classNameItem:nn,styleItem:Ba={},barHidden:Aa})=>{const[rr,Ta]=(0,b.useState)();return(0,b.useEffect)(()=>{Ta(Array.isArray(it)?it:[it])},[it]),b.createElement("div",{className:Ye()("flex px-20px py-10px gap-40px",cn),style:Va({borderBottom:"1px solid #D3F0FF"},ua)},mt==null?void 0:mt.map(ga=>b.createElement("div",{key:ga==null?void 0:ga.id,className:Ye()("flex item-center justify-center current c-grey-333 text-16 relative",nn,ga==null?void 0:ga.className),style:Va(Va({color:rr!=null&&rr.includes(ga==null?void 0:ga.id)?"#1890FF":"",minWidth:88},Ba),(ga==null?void 0:ga.style)||{}),onClick:Qa=>{Nt==null||Nt({domEvent:Qa,item:ga}),ga!=null&&ga.link&&tn.history.push(ga==null?void 0:ga.link)}},ga==null?void 0:ga.name,!Aa&&(rr==null?void 0:rr.includes(ga==null?void 0:ga.id))&&b.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),b.createElement("div",{className:"ml-auto"},La))},Mr=Object.defineProperty,Pr=Object.defineProperties,Jr=Object.getOwnPropertyDescriptors,Xa=Object.getOwnPropertySymbols,qa=Object.prototype.hasOwnProperty,pr=Object.prototype.propertyIsEnumerable,fa=(mt,it,Nt)=>it in mt?Mr(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):mt[it]=Nt,ur=(mt,it)=>{for(var Nt in it||(it={}))qa.call(it,Nt)&&fa(mt,Nt,it[Nt]);if(Xa)for(var Nt of Xa(it))pr.call(it,Nt)&&fa(mt,Nt,it[Nt]);return mt},mr=(mt,it)=>Pr(mt,Jr(it)),ar=({value:mt,onChange:it,onInputChange:Nt,className:cn,style:ua={},InputProps:La})=>{const[nn,Ba]=(0,b.useState)(mt);return b.createElement("div",{className:Ye()("flex item-center rounded-full px-10px py-2px",cn),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)"},ua)},b.createElement(Pe.default,mr(ur({bordered:!1},La),{onChange:Aa=>{Ba(Aa.target.value),Nt==null||Nt(encodeURIComponent(Aa.target.value))},onPressEnter:Aa=>{it==null||it({domEvent:Aa,item:{value:nn}})}})),b.createElement("img",{className:"h-22px current",src:oe(25365),height:22,onClick:Aa=>{it==null||it({domEvent:Aa,item:{value:nn}})}}))}},34500:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return he}});var b=oe(59301);function he(Be,Ie){const be=(0,b.useRef)();(0,b.useEffect)(()=>{be.current=Be}),(0,b.useEffect)(()=>{function Ge(){be.current()}if(Ie!==null){let Fe=setInterval(Ge,Ie);return()=>clearInterval(Fe)}},[Ie])}},73256:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return E}});var b=oe(59301),he=oe(8591),Be=oe(43418),Ie=oe(19842),be=oe(54580),Ge=oe(3113),Fe=oe(41510),Ye=oe(21331),ke=oe(23789),De=oe(6075),Oe={customModal:"customModal___bVzUV",content:"content___oKhZq",upload:"upload___nPxEL",infoText:"infoText___gZEJF",okBtn:"okBtn___CVo2A",fileList:"fileList___tauGN",fileName:"fileName___T_8JX",selectitems:"selectitems___imW2Y"},We=oe(59301),Ve=(a,x,y)=>new Promise((z,ne)=>{var re=fe=>{try{ge(y.next(fe))}catch(Pe){ne(Pe)}},ie=fe=>{try{ge(y.throw(fe))}catch(Pe){ne(Pe)}},ge=fe=>fe.done?z(fe.value):Promise.resolve(fe.value).then(re,ie);ge((y=y.apply(a,x)).next())}),E=({visible:a,onOk:x,onCancel:y,sub_discipline_id:z=[]})=>{const[ne,re]=(0,b.useState)([]),[ie,ge]=(0,b.useState)(!1),fe=(0,De.useParams)(),[Pe,Ue]=(0,b.useState)([]),[Re,lt]=(0,b.useState)([]);(0,b.useEffect)(()=>{a?Le():(lt([]),re([]),ge(!1))},[a]);const Le=()=>Ve(void 0,null,function*(){const pt=yield(0,ke.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});Ue(pt.disciplines||[]),lt((z==null?void 0:z.length)>0?z:[])}),Ce=()=>{if((Re==null?void 0:Re.length)===0)return he.ZP.warning("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF01");console.log("subDisciplineId",Re),ge(!0),x(ne,Re[1],()=>{ge(!1)})},Xe=()=>{y()},nt=()=>{const pt=`${Fe.Z.API_SERVER}/api/courses/${fe.coursesId}/exercises/down_template`;(0,Ye.Nd)(null,pt)},ye=pt=>{const wt={name:pt.name,uid:pt.uid,file:pt};return re([wt]),!1},gt=()=>{re([])};return We.createElement(Be.default,{title:"\u5BFC\u5165\u8BD5\u9898",open:a,onOk:Ce,centered:!0,wrapClassName:Oe.customModal,onCancel:Xe,width:663,okText:"\u786E\u8BA4",okButtonProps:{className:Oe.okBtn},cancelText:"\u53D6\u6D88",confirmLoading:ie},We.createElement("div",{className:Oe.content},We.createElement("aside",null,We.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA41"),We.createElement("ul",null,We.createElement("li",null,We.createElement("span",{style:{color:"#5F6367"}},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898"),We.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginLeft:20},onClick:nt},"\u4E0B\u8F7D\u8003\u8BD5\u8BD5\u9898\u6A21\u677F"),We.createElement("i",{className:"iconfont icon-xiazai4 ml10",onClick:nt,style:{fontSize:14,cursor:"pointer",color:"#0152d9"}})),We.createElement("li",{style:{color:"#FA6400"},className:"mt10"},"\u63D0\u793A"),We.createElement("li",{className:Oe.infoText},"1\u3001\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\uFF1B "),We.createElement("li",{className:Oe.infoText},"2\u3001\u4E0D\u652F\u6301\u7EC4\u5408\u9898\u548C\u5B9E\u8BAD\u9898\u5BFC\u5165\uFF1B"),We.createElement("li",{className:Oe.infoText},"3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"),We.createElement("li",{className:Oe.infoText},"4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"))),We.createElement("aside",{style:{marginTop:22}},We.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA42"),We.createElement("ul",{style:{flex:1}},We.createElement("li",{style:{color:"#5F6367"}},"\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF0C\u4E0A\u4F20\u7F16\u8F91\u597D\u7684\u8BD5\u9898\u6587\u6863\uFF0C\u786E\u5B9A\u5BFC\u5165"),a&&We.createElement(We.Fragment,null,We.createElement(Ie.Z,{value:Re,className:Oe.selectitems,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Pe,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(pt,wt)=>{lt(pt||[])}}),We.createElement("br",null),We.createElement(be.default,{action:`${Fe.Z.API_SERVER}/api/attachments.json`,beforeUpload:ye,onRemove:gt,withCredentials:!0,fileList:ne,accept:".xls,.xlsx",showUploadList:!1},We.createElement(Ge.ZP,{className:Oe.upload,type:"primary",icon:We.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6"))),ne.map((pt,wt)=>We.createElement("div",{key:wt,className:Oe.fileList},We.createElement("span",{className:Oe.fileName},pt==null?void 0:pt.name),We.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:16,cursor:"pointer"},onClick:gt})))))))}},78547:function(_e,xt,oe){"use strict";oe.d(xt,{h:function(){return b}});var b=(he=>(he[he.NOMATCH=-1]="NOMATCH",he[he.OK=0]="OK",he[he.TIMEOUT=2]="TIMEOUT",he[he.PODFAILURE=3]="PODFAILURE",he[he.COMPILEFAILURE=4]="COMPILEFAILURE",he[he.EXECUTEFAILURE=5]="EXECUTEFAILURE",he[he.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",he))(b||{})},18509:function(_e,xt,oe){"use strict";oe.d(xt,{H7:function(){return E},MK:function(){return le},MU:function(){return De},X6:function(){return We},bM:function(){return ke},fi:function(){return a},fu:function(){return Ye},n4:function(){return x},rX:function(){return Ve},vl:function(){return y},zO:function(){return Oe}});var b=oe(23789),he=Object.defineProperty,Be=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Ge=(z,ne,re)=>ne in z?he(z,ne,{enumerable:!0,configurable:!0,writable:!0,value:re}):z[ne]=re,Fe=(z,ne)=>{for(var re in ne||(ne={}))Ie.call(ne,re)&&Ge(z,re,ne[re]);if(Be)for(var re of Be(ne))be.call(ne,re)&&Ge(z,re,ne[re]);return z};function Ye(z,ne){return(0,b.U2)(`myproblems/${z}.json`,Fe({hidePopLogin:!0},ne||{}))}function ke(z,ne){return(0,b.v_)(`myproblems/${z}/code_submit.json`,ne)}function De(z,ne){return(0,b.v_)(`myproblems/${z}/code_debug.json`,ne)}function Oe(z,ne){return ne.language&&(ne.language=encodeURIComponent(ne.language)),(0,b.U2)(`myproblems/${z}/submit_records.json`,ne)}function We(z){return(0,b.U2)("myproblems/record_detail.json",{id:z})}function Ve(z,ne){return(0,b.U2)(`myproblems/${z}/result.json`,{mode:ne})}function le(z,ne){return(0,b.v_)(`myproblems/${z}/add_notes.json`,ne)}function E(z,ne){return(0,b.v_)(`myproblems/${z}/restore_initial_code.json`,ne)}function a(z){return(0,b.v_)(`myproblems/${z}/sync_code.json`)}function x(z,ne){return(0,b.v_)(`myproblems/${z}/update_code.json`,ne)}function y(z,ne){return(0,b.v_)(`discusses/${z}/plus.json`,ne)}},3607:function(_e,xt,oe){"use strict";var b=oe(59301),he=oe(6848),Be=oe(92832),Ie=oe(8591),be=oe(49570),Ge=oe(59301),Fe=(ke,De,Oe)=>new Promise((We,Ve)=>{var le=x=>{try{a(Oe.next(x))}catch(y){Ve(y)}},E=x=>{try{a(Oe.throw(x))}catch(y){Ve(y)}},a=x=>x.done?We(x.value):Promise.resolve(x.value).then(le,E);a((Oe=Oe.apply(ke,De)).next())});const Ye=({defaultValue:ke,onFinish:De})=>{const[Oe,We]=(0,b.useState)(!1),[Ve,le]=(0,b.useState)(ke);return(0,b.useEffect)(()=>{le(ke)},[ke]),Ge.createElement("div",null,Oe?Ge.createElement(Be.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:Ve,onChange:E=>{le(E.target.value)},onBlur:()=>Fe(void 0,null,function*(){var E;if(((E=Ve==null?void 0:Ve.replaceAll(" ",""))==null?void 0:E.length)<=0){Ie.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield De(Ve))&&We(!1)}),onPressEnter:()=>Fe(void 0,null,function*(){var E;if(((E=Ve==null?void 0:Ve.replaceAll(" ",""))==null?void 0:E.length)<=0){Ie.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield De(Ve))&&We(!1)})}):Ge.createElement("div",{className:be.Z.title},Ve,Ge.createElement(he.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},Ge.createElement("i",{className:`${be.Z.editIcon} iconfont icon-bianji_Hover`,onClick:()=>We(!0)}))))};xt.Z=Ye},9105:function(_e,xt,oe){"use strict";oe.r(xt),oe.d(xt,{default:function(){return su},useCourseOptions:function(){return fi}});var b=oe(59301),he=oe(6075),Be=oe(78241),Ie=oe(66104),be=oe(8591),Ge=oe(71418),Fe=oe(92832),Ye=oe(19842),ke=oe(24905),De=oe(5112),Oe=oe(5871),We=oe(3113),Ve=oe(49570),le=oe(46606),E=oe(8418),a=oe(48697),x=oe(43418),y=oe(20834),z=oe(38854),ne=oe(6848),re=oe(43428),ie={flex_box_center:"flex_box_center___gi93l",flex_space_between:"flex_space_between___mWMLA",flex_box_vertical_center:"flex_box_vertical_center___rk4nc",flex_box_center_end:"flex_box_center_end___B8XxF",flex_box_column:"flex_box_column___AX3Vm",moreSpan:"moreSpan___hbStq",bg:"bg___Ya739",title:"title___BC46y",bottomdiv:"bottomdiv___uaPr6",spanBtn:"spanBtn___jjgnA",addQuestionBtn:"addQuestionBtn___qOlYW",saveBtn:"saveBtn___ulgem",left:"left___i8aTX",leftAction:"leftAction___sQkuq",Button:"Button___auxWm",iconWrapper:"iconWrapper___h3H1m",up:"up___tLyCX",down:"down___T5_aj",disabled:"disabled___GRBbF",titleleft:"titleleft___xZGbq",more_style:"more_style___nhWCX",qcount:"qcount___ID7OA",score:"score___T7dbm",qtitle:"qtitle___qJBFd",qcountclick:"qcountclick___m_VKG",right:"right___CBabI",edit:"edit___WHuql",delete:"delete___Pa6db",shixun:"shixun___oObBe",scoreByBlankRadio:"scoreByBlankRadio___r4AWn",modalconfirm:"modalconfirm___Ru9B_",scoremodal:"scoremodal___BdW7P",close:"close___blHYk",content:"content___jlm9o",items:"items___i3TrH",bottom:"bottom___zMQZ6",yes:"yes___lOPY6",no:"no___gtzKI",formcenter:"formcenter___fCxkm",radiogroup:"radiogroup___oXWHc",easy:"easy___ANNVD",medium:"medium___ov7N3",hard:"hard___n4afW",formcenterselect:"formcenterselect___lYa4f",selectitems1:"selectitems1___Y2Zy4",selectitems:"selectitems___c9Pt5",morebottom:"morebottom____I_ev",scoreinput:"scoreinput___O8EhL",shake:"shake___QxkjH",titleTooltip:"titleTooltip___CAyYg",exercise_styles:"exercise_styles___u40hG"},ge=oe(21331),fe=oe(23789),Pe=oe(41625),Ue=oe(98524),Re=oe(43141),lt=oe(28900),Le=oe(59301),Ce=Object.defineProperty,Xe=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,wt=(se,Se,Ee)=>Se in se?Ce(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,ut=(se,Se)=>{for(var Ee in Se||(Se={}))gt.call(Se,Ee)&&wt(se,Ee,Se[Ee]);if(ye)for(var Ee of ye(Se))pt.call(Se,Ee)&&wt(se,Ee,Se[Ee]);return se},Jt=(se,Se)=>Xe(se,nt(Se)),on=(se,Se,Ee)=>new Promise((rt,bn)=>{var $n=Ct=>{try{Fn(Ee.next(Ct))}catch(Wt){bn(Wt)}},la=Ct=>{try{Fn(Ee.throw(Ct))}catch(Wt){bn(Wt)}},Fn=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then($n,la);Fn((Ee=Ee.apply(se,Se)).next())}),Vt=({Itemid:se,setqitem:Se,qitem:Ee,data:rt,getdata:bn,bigitem:$n,setBigqitem:la,isedit:Fn,handleEditing:Ct})=>{const[Wt,ka]=(0,b.useState)([]),[Bt,hn]=(0,b.useState)(!1);(0,b.useEffect)(()=>{rt.length>0&&ka([...rt])},[rt]);const ta=(va,kn)=>on(void 0,null,function*(){if(Fn){Ct();return}if(!va.destination)return;hn(!0);let en=yield(0,fe.ZP)(`/api/examination_banks/${se}/examination_banks_item_banks/${kn==null?void 0:kn[va.source.index].question_id}/adjust_position.json`,{method:"post",body:{id:se,itemid:kn==null?void 0:kn[va.source.index].question_id,position:va.destination.index}});hn(!1),en.status===0&&bn({id:kn==null?void 0:kn[va.source.index].question_id})});return Le.createElement("div",null,Le.createElement(Re.Z5,{onDragEnd:va=>ta(va,Wt)},Le.createElement(Re.bK,{droppableId:"droppable"},(va,kn)=>Le.createElement("div",ut({ref:va.innerRef},va.droppableProps),Le.createElement(Ge.Z,{spinning:Bt},Wt.map((en,vn)=>Le.createElement(Re._l,{key:vn,draggableId:vn.toString(),index:vn},(Gt,_a)=>{var gn,na;return Le.createElement("aside",ut(ut({ref:Gt.innerRef},Gt.draggableProps),Gt.dragHandleProps),Le.createElement(ne.Z,{title:Le.createElement(lt.Z,{value:(en==null?void 0:en.question_type)===8?(gn=en==null?void 0:en.program_attr)==null?void 0:gn.description:en.question_title}),color:"#fff",placement:"left",overlayClassName:ie.titleTooltip},Le.createElement("div",{onClick:()=>{if(Fn){Ct();return}Se(Jt(ut({},en),{index:vn+1})),la($n),(0,ge.Vf)("#question-scroll-id")},className:`${ie.qcount} ${en.question_id===(Ee==null?void 0:Ee.question_id)?ie.qcountclick:""}`},Le.createElement("span",{className:ie.score},en==null?void 0:en.question_score,"\u5206"),Le.createElement("span",{className:ie.qtitle},vn+1,"\u3001",Le.createElement(lt.Z,{value:(en==null?void 0:en.question_type)===8?(na=en==null?void 0:en.program_attr)==null?void 0:na.description:en.question_title,showTextOnly:!0})))))}))),va.placeholder))))},Qe=oe(95237),Me=oe(80815),Et=oe(57809),kt=oe(78673),vt=oe(61485),Dt=oe(74038),Ae=oe(59301),dt=(se,Se,Ee)=>new Promise((rt,bn)=>{var $n=Ct=>{try{Fn(Ee.next(Ct))}catch(Wt){bn(Wt)}},la=Ct=>{try{Fn(Ee.throw(Ct))}catch(Wt){bn(Wt)}},Fn=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then($n,la);Fn((Ee=Ee.apply(se,Se)).next())}),ct=({form:se,TagDiscipline:Se,exerciseitem:Ee,qitem:rt,getTagData:bn})=>{var $n;const[la,Fn]=(0,b.useState)(!0),[Ct,Wt]=(0,b.useState)(!1),[ka,Bt]=(0,b.useState)(""),[hn,ta]=(0,b.useState)([]),[va,kn]=(0,b.useState)([]),[en,vn]=(0,b.useState)(0);(0,b.useEffect)(()=>{_a()},[]);const Gt=gn=>dt(void 0,null,function*(){const na=yield(0,fe.ZP)("/api/tag_disciplines.json",{method:"get",params:{sub_discipline_id:gn==null?void 0:gn.sub_discipline_id}});kn(na==null?void 0:na.tag_disciplines)}),_a=()=>dt(void 0,null,function*(){const gn=yield(0,fe.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});ta(gn.disciplines||[]),rt!=null&&rt.sub_discipline_id&&Gt(rt),vn(rt!=null&&rt.sub_discipline_id?1:0),se.setFieldsValue({difficulty:rt.difficulty||2,repeat_answer:!rt.repeat_answer,sub_discipline_id:rt!=null&&rt.sub_discipline_id?[rt==null?void 0:rt.discipline_id,rt==null?void 0:rt.sub_discipline_id]:[]})});return Ae.createElement("div",null,Ae.createElement("div",{style:{marginTop:30,overflow:"hidden",height:la?"100%":0}},Ae.createElement(Be.default.Item,{className:ie.formcenter,rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u96BE\u5EA6"}],label:"\u96BE\u5EA6",name:"difficulty"},Ae.createElement(De.ZP.Group,{className:ie.radiogroup},Ae.createElement(De.ZP.Button,{className:ie.easy,value:1},"\u7B80\u5355"),Ae.createElement(De.ZP.Button,{className:ie.medium,value:2},"\u9002\u4E2D"),Ae.createElement(De.ZP.Button,{className:ie.hard,value:3},"\u56F0\u96BE"))),Ae.createElement(Be.default.Item,{name:"sub_discipline_id",label:"\u77E5\u8BC6\u70B9",className:ie.formcenterselect},Ae.createElement(Ye.Z,{className:ie.selectitems1,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:hn,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(gn,na)=>{se.setFieldsValue({sub_discipline_id:gn,tag_discipline_ids:[]}),vn(gn?gn.length:0),(gn==null?void 0:gn.length)>0&&(Gt({sub_discipline_id:gn[1]}),gn[1]==(rt==null?void 0:rt.sub_discipline_id)&&se.setFieldValue("tag_discipline_ids",rt.tag_discipline_ids))},onClear:()=>{kn([]),se.setFieldValue("tag_discipline_ids",[]),vn(0)}})),Ae.createElement(Be.default.Item,{className:ie.formcenterselect},Ae.createElement("div",{style:{display:"flex",alignItems:"center",paddingLeft:55}},Ae.createElement(Be.default.Item,{name:"tag_discipline_ids"},Ae.createElement(Et.default,{className:ie.selectitems,disabled:en===0,showSearch:!0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",mode:"multiple",listHeight:200,dropdownStyle:{zIndex:9},allowClear:!0,optionFilterProp:"children",filterOption:(gn,na)=>na.key.indexOf(gn.toLowerCase())>=0},va==null?void 0:va.map(gn=>Ae.createElement(Et.default.Option,{key:gn.name+gn.id,value:gn.id},Ae.createElement("div",{style:{display:"flex",alignItems:"center"}},Ae.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},gn.name),(gn==null?void 0:gn.type)==="personal"&&Ae.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),en>0&&Ae.createElement("div",{style:{marginLeft:20,marginTop:"-16px",lineHeight:"48px",height:48,fontSize:14}},Ae.createElement("span",null,"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),Ae.createElement("a",{onClick:()=>{Wt(!0)},style:{marginLeft:3,color:"#3061D0"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))),Ae.createElement(Be.default.Item,{className:ie.formcenterselect},Ae.createElement("div",{style:{display:"flex",alignItems:"center"}},Ae.createElement(Be.default.Item,{name:"repeat_answer",valuePropName:"checked"},Ae.createElement(kt.Z,null)),Ae.createElement("div",{style:{marginLeft:10,marginTop:"-16px",lineHeight:"40px",height:48,color:"#000000"}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898",Ae.createElement(ne.Z,{placement:"right",title:"\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u4F5C\u7B54\u5B8C\u6210\u8BE5\u9898\u5E76\u8FDB\u5165\u4E0B\u4E00\u9898\u4E4B\u540E\uFF0C\u4E0D\u5141\u8BB8\u518D\u4FEE\u6539\u8BE5\u9898\u7B54\u6848"},Ae.createElement(vt.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))))),Ae.createElement(Dt.Z,{open:Ct,subDisciplineId:($n=se.getFieldValue("sub_discipline_id"))==null?void 0:$n[1],onCancel:()=>{Wt(!1)},onOkClick:gn=>{kn(na=>[...na,gn]),se.setFieldValue("tag_discipline_ids",[...se.getFieldValue("tag_discipline_ids"),gn==null?void 0:gn.id])}}))},et=oe(59301),Bn=Object.defineProperty,ot=Object.defineProperties,bt=Object.getOwnPropertyDescriptors,zt=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,Ot=(se,Se,Ee)=>Se in se?Bn(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,Kn=(se,Se)=>{for(var Ee in Se||(Se={}))St.call(Se,Ee)&&Ot(se,Ee,Se[Ee]);if(zt)for(var Ee of zt(Se))Rn.call(Se,Ee)&&Ot(se,Ee,Se[Ee]);return se},xn=(se,Se)=>ot(se,bt(Se)),jn=(se,Se,Ee)=>new Promise((rt,bn)=>{var $n=Ct=>{try{Fn(Ee.next(Ct))}catch(Wt){bn(Wt)}},la=Ct=>{try{Fn(Ee.throw(Ct))}catch(Wt){bn(Wt)}},Fn=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then($n,la);Fn((Ee=Ee.apply(se,Se)).next())}),ma=({qitem:se,setisedit:Se,TagDiscipline:Ee,exerciseitem:rt,seveeditor:bn,deleteitem:$n,getTagData:la,init:Fn,showTip:Ct=!1})=>{const[Wt]=Be.default.useForm();(0,b.useEffect)(()=>{var Bt;Wt.setFieldsValue(xn(Kn({},se),{name:se==null?void 0:se.question_title,choices:(Bt=se==null?void 0:se.question_choices)==null?void 0:Bt.map(hn=>xn(Kn({},hn),{standard_boolean:hn!=null&&hn.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)}))},[se]);const ka=Bt=>{if(!(Bt!=null&&Bt.length))return!1;const hn=Bt.map(va=>{var kn;return(kn=va.choice_text)==null?void 0:kn.trim().replace(/^\s+|\s+$/g,"")});return new Set(hn).size!==hn.length};return et.createElement("div",null,et.createElement(Be.default,{form:Wt,colon:!1,onFinish:Bt=>{var hn;if(ka(Bt.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 ta=xn(Kn({},Bt),{item_type:se==null?void 0:se.question_type,choices:(hn=Bt==null?void 0:Bt.choices)==null?void 0:hn.map(va=>xn(Kn({},va),{is_answer:va.standard_boolean}))});bn(Kn(Kn({},se),ta))},onFinishFailed:Bt=>jn(void 0,null,function*(){var hn,ta;be.ZP.error(Bt.errorFields[0].errors[0]),Wt.scrollToField((ta=(hn=Bt==null?void 0:Bt.errorFields)==null?void 0:hn[0])==null?void 0:ta.name,{behavior:"smooth",block:"center"})})},et.createElement("div",{style:{display:"flex",alignItems:"center"}},et.createElement("div",{style:{flex:1}},et.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),et.createElement("span",null,(se==null?void 0:se.question_type)===1?"\u591A\u9009\u9898":"\u5355\u9009\u9898")),!se.isadd&&et.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{$n()}},et.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),et.createElement(We.ZP,{onClick:()=>{var Bt;se.isadd?(Se(!1),Fn()):(Wt.setFieldsValue(xn(Kn({},se),{name:se==null?void 0:se.question_title,choices:(Bt=se==null?void 0:se.question_choices)==null?void 0:Bt.map(hn=>xn(Kn({},hn),{standard_boolean:hn!=null&&hn.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),et.createElement(ne.Z,{overlayClassName:ie.shake,open:Ct,placement:"bottom",color:"rgba(244,156,14,0.19)",title:et.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},et.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},et.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>jn(void 0,null,function*(){Wt.submit()})},"\u4FDD\u5B58"))),et.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},et.createElement(Qe.Z,{align:"middle"},et.createElement(Be.default.Item,{className:ie.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},et.createElement(Oe.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}))),et.createElement(Me.u,{form:Wt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",titleKey:"name",choiceKey:"choices",analysisKey:"analysis",choiceOptionsPath:"choices",choiceTextKey:"choice_text",answerKey:"standard_boolean"}),et.createElement(ct,{getTagData:la,qitem:se,exerciseitem:rt,TagDiscipline:Ee,form:Wt}))))},Wn=oe(41940),ba=oe(24417),un=oe(59301),mn=Object.defineProperty,En=Object.defineProperties,Oa=Object.getOwnPropertyDescriptors,Sa=Object.getOwnPropertySymbols,wa=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,ht=(se,Se,Ee)=>Se in se?mn(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,Sn=(se,Se)=>{for(var Ee in Se||(Se={}))wa.call(Se,Ee)&&ht(se,Ee,Se[Ee]);if(Sa)for(var Ee of Sa(Se))tn.call(Se,Ee)&&ht(se,Ee,Se[Ee]);return se},Cn=(se,Se)=>En(se,Oa(Se)),ya=(se,Se,Ee)=>new Promise((rt,bn)=>{var $n=Ct=>{try{Fn(Ee.next(Ct))}catch(Wt){bn(Wt)}},la=Ct=>{try{Fn(Ee.throw(Ct))}catch(Wt){bn(Wt)}},Fn=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then($n,la);Fn((Ee=Ee.apply(se,Se)).next())}),Ka=({qitem:se,TagDiscipline:Se,exerciseitem:Ee,setisedit:rt,seveeditor:bn,deleteitem:$n,getTagData:la,init:Fn,showTip:Ct=!1})=>{const[Wt]=Be.default.useForm(),ka=Be.default.useWatch("use_blank_score",Wt);return(0,b.useEffect)(()=>{Wt.setFieldsValue(Cn(Sn({},se),{standard_answers:se.standard_answers||[],name:se.question_title,repeat_answer:!se.repeat_answer}))},[se]),un.createElement("div",null,un.createElement(Be.default,{form:Wt,colon:!1,onValuesChange:(Bt,hn)=>{var ta,va,kn,en;if(Bt!=null&&Bt.standard_answers||Bt!=null&&Bt.use_blank_score){let vn=((ta=Wt.getFieldValue("standard_answers"))==null?void 0:ta.length)>0&&((kn=(va=Wt.getFieldValue("standard_answers"))==null?void 0:va.map(Gt=>Gt.score))==null?void 0:kn.filter(Gt=>Gt));(vn==null?void 0:vn.length)>0&&Wt.setFieldsValue({question_score:(vn==null?void 0:vn.length)>0&&((en=vn.reduce((Gt,_a)=>Gt+_a))==null?void 0:en.toFixed(1))})}},onFinish:Bt=>{var hn;bn(Cn(Sn(Sn({},se),Bt),{item_type:se==null?void 0:se.question_type,standard_answers:(hn=Bt.standard_answers)==null?void 0:hn.map((ta,va)=>Cn(Sn({},ta),{position:ta.choice_id||va+1}))}))},onFinishFailed:Bt=>ya(void 0,null,function*(){var hn,ta;Bt.errorFields[0].errors[0]==="\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"&&(0,ge.pE)(),be.ZP.error(Bt.errorFields[0].errors[0]),Wt.scrollToField((ta=(hn=Bt==null?void 0:Bt.errorFields)==null?void 0:hn[0])==null?void 0:ta.name,{behavior:"smooth",block:"center"})})},un.createElement("div",{style:{display:"flex",alignItems:"center"}},un.createElement("div",{style:{flex:1}},un.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),un.createElement("span",null,"\u586B\u7A7A\u9898")),!se.isadd&&un.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{$n()}},un.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}})," \u5220\u9664"),un.createElement(We.ZP,{onClick:()=>{se.isadd?(rt(!1),Fn()):(Wt.setFieldsValue(Cn(Sn({},se),{standard_answers:se.standard_answers,name:se.question_title,repeat_answer:!se.repeat_answer})),rt(!1))}},"\u53D6\u6D88"),un.createElement(ne.Z,{overlayClassName:ie.shake,open:Ct,placement:"bottom",color:"rgba(244,156,14,0.19)",title:un.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},un.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")},un.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{Wt.submit()}},"\u4FDD\u5B58"))),un.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},un.createElement(Qe.Z,{align:"middle"},ka?un.createElement(ba.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}):un.createElement(Be.default.Item,{key:2,className:ie.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},un.createElement(Oe.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",size:"middle",max:100,min:.1})),un.createElement(Be.default.Item,{name:"use_blank_score",noStyle:!0},un.createElement(De.ZP.Group,{className:ie.scoreByBlankRadio,optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}]})),un.createElement(ne.Z,{overlayInnerStyle:{width:460},title:un.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",un.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")},un.createElement("i",{className:"icon-tishixiaowenhao font18 ml20 c-3061d0"}))),un.createElement(Wn.u,{form:Wt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:ka,answerKey:"standard_answers"}),un.createElement(ct,{getTagData:la,qitem:se,exerciseitem:Ee,TagDiscipline:Se,form:Wt}))))},oa=oe(48700),Qn=oe(59301),Ya=Object.defineProperty,Ma=Object.defineProperties,Ja=Object.getOwnPropertyDescriptors,Br=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable,Tn=(se,Se,Ee)=>Se in se?Ya(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,Ln=(se,Se)=>{for(var Ee in Se||(Se={}))At.call(Se,Ee)&&Tn(se,Ee,Se[Ee]);if(Br)for(var Ee of Br(Se))On.call(Se,Ee)&&Tn(se,Ee,Se[Ee]);return se},xe=(se,Se)=>Ma(se,Ja(Se)),ft=(se,Se,Ee)=>new Promise((rt,bn)=>{var $n=Ct=>{try{Fn(Ee.next(Ct))}catch(Wt){bn(Wt)}},la=Ct=>{try{Fn(Ee.throw(Ct))}catch(Wt){bn(Wt)}},Fn=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then($n,la);Fn((Ee=Ee.apply(se,Se)).next())}),Ut=({qitem:se,setisedit:Se,TagDiscipline:Ee,exerciseitem:rt,seveeditor:bn,deleteitem:$n,getTagData:la,init:Fn,showTip:Ct=!1})=>{const[Wt]=Be.default.useForm();return(0,b.useEffect)(()=>{var ka;Wt.setFieldsValue(xe(Ln({},se),{name:se.question_title,repeat_answer:!se.repeat_answer,choices:(ka=se==null?void 0:se.question_choices)==null?void 0:ka.map(Bt=>xe(Ln({},Bt),{is_answer:Bt!=null&&Bt.standard_boolean?1:0}))}))},[se]),Qn.createElement("div",null,Qn.createElement(Be.default,{form:Wt,colon:!1,onFinish:ka=>{bn(Ln(Ln({},se),ka))},onFinishFailed:ka=>ft(void 0,null,function*(){var Bt,hn;be.ZP.error(ka.errorFields[0].errors[0]),Wt.scrollToField((hn=(Bt=ka==null?void 0:ka.errorFields)==null?void 0:Bt[0])==null?void 0:hn.name,{behavior:"smooth",block:"center"})})},Qn.createElement("div",{style:{display:"flex",alignItems:"center"}},Qn.createElement("div",{style:{flex:1}},Qn.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Qn.createElement("span",null,"\u5224\u65AD\u9898")),!(se!=null&&se.isadd)&&Qn.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{$n()}},Qn.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Qn.createElement(We.ZP,{onClick:()=>{var ka;se.isadd?(Se(!1),Fn()):(Wt.setFieldsValue(xe(Ln({},se),{name:se==null?void 0:se.question_title,choices:(ka=se==null?void 0:se.question_choices)==null?void 0:ka.map(Bt=>xe(Ln({},Bt),{is_answer:Bt!=null&&Bt.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),Qn.createElement(ne.Z,{overlayClassName:ie.shake,open:Ct,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Qn.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Qn.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")},Qn.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{Wt.submit()}},"\u4FDD\u5B58"))),Qn.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Qn.createElement(Be.default.Item,{className:ie.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Qn.createElement(Oe.Z,{onBlur:ka=>{ka.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})),Qn.createElement(oa.Z,{form:Wt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",choiceKey:""}),Qn.createElement(ct,{getTagData:la,qitem:se,exerciseitem:rt,TagDiscipline:Ee,form:Wt}))))},Rt=oe(36381),yt={wrap:"wrap___YewKC",deleteIcon:"deleteIcon___AKmkj",keywordTag:"keywordTag___hMKmU",questionTitleEditorWrap:"questionTitleEditorWrap___SpNyf",choiceWrap:"choiceWrap___lDCnP",choiceIndex:"choiceIndex___dabwf",judgementIndex:"judgementIndex___sausK",setAnswerBtn:"setAnswerBtn___moVcF",activeAnswer:"activeAnswer___Cd32c",activeJudgementAnswer:"activeJudgementAnswer___rbuoo",actionWrapper:"actionWrapper___dZuBC",addIcon:"addIcon___A9GtN",inputBorder:"inputBorder___DeyjY",placeholder:"placeholder___dhOmk",blankWrapper:"blankWrapper___vU8Cg",blankInput:"blankInput___Vzre8",blankInputNumberWrapper:"blankInputNumberWrapper___yLeaN",addBtn:"addBtn___LhI0I",blankIndex:"blankIndex___caKgB",baseInputWrapper:"baseInputWrapper___DhjJY",collapseWrapper:"collapseWrapper___btrfP",panelHeader:"panelHeader___xIZ7O",open:"open___IMQhg",close:"close___FTAU3",hide:"hide___GBtJP",scoreByBlankRadio:"scoreByBlankRadio___HAunQ"},An=oe(12893),je=oe(37962),Ke=Object.defineProperty,He=Object.defineProperties,Mt=Object.getOwnPropertyDescriptors,sn=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable,Un=(se,Se,Ee)=>Se in se?Ke(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,fn=(se,Se)=>{for(var Ee in Se||(Se={}))dn.call(Se,Ee)&&Un(se,Ee,Se[Ee]);if(sn)for(var Ee of sn(Se))qn.call(Se,Ee)&&Un(se,Ee,Se[Ee]);return se},Jn=(se,Se)=>He(se,Mt(Se)),Ea=(se,Se)=>{var Ee={};for(var rt in se)dn.call(se,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=se[rt]);if(se!=null&&sn)for(var rt of sn(se))Se.indexOf(rt)<0&&qn.call(se,rt)&&(Ee[rt]=se[rt]);return Ee};const Zt=se=>{var Se=se,{value:Ee,onChange:rt,scrollId:bn}=Se,$n=Ea(Se,["value","onChange","scrollId"]);return b.createElement("div",{id:bn||""},b.createElement(je.Z,Jn(fn({},$n),{defaultValue:Ee,onChange:(la,Fn)=>{console.log("a:",la,Fn),Fn!=null&&Fn.length?rt(la,Fn):rt(la)}})))},_n=({value:se,onChange:Se,placeholder:Ee,height:rt=140,isEdit:bn})=>bn?b.createElement(je.Z,{watch:!0,isFocus:!0,height:rt,placeholder:Ee,defaultValue:se,onChange:Se}):b.createElement("div",{style:{cursor:"pointer"}},se?b.createElement(lt.Z,{className:yt.inputBorder,value:se}):b.createElement("div",{className:`${yt.inputBorder} ${yt.placeholder}`},Ee));var Je=oe(43604),Kt=oe(32134),wn=Object.defineProperty,tt=Object.defineProperties,Xn=Object.getOwnPropertyDescriptors,Mn=Object.getOwnPropertySymbols,ca=Object.prototype.hasOwnProperty,Vn=Object.prototype.propertyIsEnumerable,Za=(se,Se,Ee)=>Se in se?wn(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,sa=(se,Se)=>{for(var Ee in Se||(Se={}))ca.call(Se,Ee)&&Za(se,Ee,Se[Ee]);if(Mn)for(var Ee of Mn(Se))Vn.call(Se,Ee)&&Za(se,Ee,Se[Ee]);return se},er=(se,Se)=>tt(se,Xn(Se)),tr=(se,Se)=>{var Ee={};for(var rt in se)ca.call(se,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=se[rt]);if(se!=null&&Mn)for(var rt of Mn(se))Se.indexOf(rt)<0&&Vn.call(se,rt)&&(Ee[rt]=se[rt]);return Ee};const gr=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Tt=({value:se,onChange:Se,choiceTextKey:Ee,answerKey:rt,index:bn,isEdit:$n,setInputActive:la,form:Fn,choiceOptionsPath:Ct,allowChangeMode:Wt,showAddIcon:ka,addItem:Bt,deleteItem:hn})=>{const ta=(se==null?void 0:se[rt])===1,va=()=>{const en=Fn.getFieldValue(Ct);Fn.setFieldValue(Ct,en.map(vn=>er(sa({},vn),{[rt]:0})))},kn=()=>{ta?Se(er(sa({},se),{[rt]:0})):(Wt||va(),Se(er(sa({},se),{[rt]:1})))};return b.createElement(Qe.Z,{className:yt.choiceWrap,align:"middle",wrap:!1},b.createElement(Je.Z,{onClick:kn,className:`${yt.choiceIndex} ${ta?yt.activeAnswer:""}`},gr[bn]),b.createElement(Je.Z,{flex:1,className:`${yt.editorWrap} ml15`,onClick:la},b.createElement(_n,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:$n,value:se==null?void 0:se[Ee],onChange:en=>{Se(er(sa({},se),{[Ee]:en}))}})),b.createElement(Je.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:kn,className:`${yt.setAnswerBtn} ${ta?yt.activeAnswer:""}`},ta?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),b.createElement(Je.Z,{className:yt.actionWrapper},b.createElement(ne.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},b.createElement(Kt.Z,{className:yt.addIcon,onClick:Bt,style:{visibility:ka?"visible":"hidden"}})),b.createElement(ne.Z,{title:"\u5220\u9664"},b.createElement(An.Z,{className:yt.deleteIcon,onClick:hn,style:{visibility:bn>1?"visible":"hidden"}}))))},Da=({questionTitlePlaceholder:se,titleKey:Se,choiceKey:Ee,analysisKey:rt,choiceTextKey:bn,answerKey:$n,choiceOptionsPath:la,allowChangeMode:Fn=!0,form:Ct,showAnalysis:Wt=!0})=>{const[ka,Bt]=(0,b.useState)(),[hn,ta]=(0,b.useState)(!1);return b.createElement("div",{className:yt.wrap},b.createElement("div",{className:yt.questionTitleEditorWrap},b.createElement(Be.default.Item,{label:"\u9898\u5E72",name:Se,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Zt,{scrollId:Array.isArray(Se)?Se.join("_"):`${Se}`,watch:!0,height:140,placeholder:se}))),b.createElement(Be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),b.createElement(Be.default.List,{name:Ee,rules:[{validator(va,kn){const en=kn.some(Gt=>Gt[$n]===1),vn=kn.findIndex(Gt=>{var _a;return((_a=Gt[bn])==null?void 0:_a.length)<=0});return vn!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${gr[vn]}\u9009\u9879\u7684\u5185\u5BB9`)):en?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(va,{add:kn,remove:en})=>b.createElement("div",{id:Array.isArray(la)?la.join("_"):`${la}`},va.map((vn,Gt)=>{var _a=vn,{key:gn,name:na}=_a,jt=tr(_a,["key","name"]);const $a=ka===gn,Cr=()=>{Bt(gn)},vr=Gt<7&&Gt===va.length-1,Sr=()=>kn({[bn]:"",[$n]:0}),zn=()=>en(na);return b.createElement(Be.default.Item,er(sa({},jt),{key:gn,name:na,noStyle:!0}),b.createElement(Tt,{choiceTextKey:bn,answerKey:$n,index:Gt,isEdit:$a,setInputActive:Cr,form:Ct,choiceOptionsPath:la,allowChangeMode:Fn,showAddIcon:vr,addItem:Sr,deleteItem:zn}))}),va.length<8&&b.createElement("div",{className:`${yt.addBtn} mb30`,onClick:()=>kn({[bn]:"",[$n]:0})},"\u6DFB\u52A0\u9009\u9879"))),Wt&&b.createElement("div",{onClick:()=>ta(!0)},b.createElement(Be.default.Item,{name:rt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(_n,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:hn}))))};var Qt=oe(59301),xa=Object.defineProperty,pa=Object.defineProperties,Xt=Object.getOwnPropertyDescriptors,Dn=Object.getOwnPropertySymbols,ea=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,Ra=(se,Se,Ee)=>Se in se?xa(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,Pa=(se,Se)=>{for(var Ee in Se||(Se={}))ea.call(Se,Ee)&&Ra(se,Ee,Se[Ee]);if(Dn)for(var Ee of Dn(Se))yn.call(Se,Ee)&&Ra(se,Ee,Se[Ee]);return se},Va=(se,Se)=>pa(se,Xt(Se)),cr=(se,Se)=>{var Ee={};for(var rt in se)ea.call(se,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=se[rt]);if(se!=null&&Dn)for(var rt of Dn(se))Se.indexOf(rt)<0&&yn.call(se,rt)&&(Ee[rt]=se[rt]);return Ee};const Ar=({value:se,onChange:Se})=>{const Ee=bn=>{x.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:yt.modal,onOk:()=>{const $n=[...se];$n.splice(bn,1),Se($n)}})},rt=()=>{const bn=[...se];bn.push(""),Se(bn)};return Qt.createElement(Qe.Z,{className:"ml20"},Qt.createElement(Je.Z,{flex:1},se==null?void 0:se.map((bn,$n)=>Qt.createElement(Qe.Z,{key:`${bn}_${$n}`,align:"middle",className:"mb20"},Qt.createElement(Fe.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:bn,autoSize:{maxRows:3},maxLength:1e3,onBlur:la=>{const Fn=[...se],Ct=la.target.value.trim();Fn[$n]=Ct,Se(Fn)}}),Qt.createElement(ne.Z,{title:"\u5220\u9664"},Qt.createElement(An.Z,{className:yt.deleteIcon,style:{marginLeft:15,visibility:$n>0?"visible":"hidden"},onClick:()=>Ee($n)}))))),Qt.createElement(Je.Z,null,Qt.createElement("div",{className:`${yt.addBtn}`,onClick:()=>{rt()}},"\u65B0\u589E\u7B54\u6848")))},Mr=({value:se=!0,onChange:Se})=>Qt.createElement(kt.Z,{checked:!se,onChange:Ee=>{Se(!Ee)}}),Pr="\u2581",Jr=({questionTitlePlaceholder:se,form:Se,name:Ee,scoreByBlank:rt,answerKey:bn,titleKey:$n="name",analysisKey:la="analysis",isOrdered:Fn="is_ordered"})=>{var Ct,Wt;const[ka,Bt]=(0,b.useState)(!1),hn=(gn,na)=>{const jt=na.line;let $a=0;for(let vr=0;vr{const Cr=gn.getRange(na.from,na.to);let vr=0;if(na.text.forEach(Sr=>{vr+=Sr.split(Pr).length-1}),na.origin!=="setValue"){if(Cr&&Cr.indexOf(Pr)!==-1){const Sr=Cr.split(Pr).length-1,zn=hn(gn,na.from);if(console.log(`\u5220\u9664${Sr}\u4E2A\uFF0C \u524D\u9762\u6709${zn}\u4E2A\uFF0C\u65B0\u589E${vr}\u4E2A`),Sr>1){const sr=Array.from({length:Sr},(zr,Vr)=>zn+Vr);$a(sr)}else $a(zn)}else if(vr>0){const Sr=hn(gn,na.from);console.log(`\u65B0\u589E${vr}\u4E2A\uFF0C\u4E4B\u524D\u6709${Sr}\u4E2A`),jt(vr,Sr)}}},va=()=>{const gn=Se.getFieldValue(["sub_item_banks",...bn]);Se.setFieldValue(["sub_item_banks",...bn],gn==null?void 0:gn.map((na,jt)=>Va(Pa({},na),{position:jt+1})))},kn=(0,b.useRef)(),en=(gn,na)=>{for(let jt=0;jt{vn.current(gn),va()},_a=(Wt=(Ct=Se.getFieldValue("sub_item_banks"))==null?void 0:Ct[bn==null?void 0:bn[0]])==null?void 0:Wt[bn==null?void 0:bn[1]];return console.log(Se==null?void 0:Se.getFieldValue(["sub_item_banks",...rt])),Qt.createElement("div",{className:yt.wrap},Qt.createElement("div",{className:yt.questionTitleEditorWrap},Qt.createElement(Be.default.Item,{label:"\u9898\u5E72",name:$n,labelCol:{span:24},rules:[{required:!0}]},Qt.createElement(Zt,{scrollId:"name",watch:!0,height:140,placeholder:se,showNullButton:!0,onCMBeforeChange:(gn,na)=>{ta(gn,na,en,Gt)}}))),Qt.createElement(Be.default.List,{name:bn,rules:[{validator(gn,na){if((na==null?void 0:na.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const jt of na){const{answer_text:$a}=jt||{};if($a!=null&&$a.some(Cr=>(Cr==null?void 0:Cr.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(gn,{add:na,remove:jt},{errors:$a})=>(kn.current=na,vn.current=jt,Qt.createElement(Qt.Fragment,null,Qt.createElement(Be.default.Item,{label:Qt.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(gn!=null&&gn.length)&&Qt.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),gn.map((Cr,vr)=>{var Sr=Cr,{key:zn,name:sr}=Sr,zr=cr(Sr,["key","name"]);return Qt.createElement(Qe.Z,{className:"mb20",key:zn,align:"top"},Qt.createElement(Je.Z,{flex:"0 0 auto",className:`${yt.blankIndex} pt5`},"\u586B\u7A7A\u9879",vr+1),Qt.createElement(Je.Z,{flex:1},Qt.createElement(Qe.Z,{align:"top",justify:"space-between"},Qt.createElement(Je.Z,{flex:1},Qt.createElement(Be.default.Item,Va(Pa({},zr),{name:[sr,"answer_text"],noStyle:!0}),Qt.createElement(Ar,null))),(Se==null?void 0:Se.getFieldValue(["sub_item_banks",...rt]))&&Qt.createElement(Je.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},Qt.createElement(Be.default.Item,Va(Pa({},zr),{name:[sr,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:yt.blankInputNumberWrapper}),Qt.createElement(Oe.Z,{onChange:()=>{var Vr,$r;let yr=Se==null?void 0:Se.getFieldValue(["sub_item_banks",bn==null?void 0:bn[0],"standard_answers"]),xr=0;for(let Tr in yr)(Vr=yr[Tr])!=null&&Vr.score&&(xr+=Number(($r=yr[Tr])==null?void 0:$r.score));Se==null||Se.setFieldValue(["sub_item_banks",bn==null?void 0:bn[0],"question_score"],xr)},className:yt.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Qt.createElement(Be.default.Item,Va(Pa({},zr),{name:[sr,"position"],noStyle:!0}),Qt.createElement(Fe.default,{type:"hidden"}))))})))),Qt.createElement(Qe.Z,{align:"middle"},Qt.createElement(Be.default.Item,{name:[Ee,"downcase"],valuePropName:"checked"},Qt.createElement(kt.Z,null)),Qt.createElement(Je.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Qt.createElement(Qe.Z,{align:"middle"},Qt.createElement(Be.default.Item,{name:[Ee,"no_space"],valuePropName:"checked"},Qt.createElement(kt.Z,null)),Qt.createElement(Je.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(_a==null?void 0:_a.length)>1&&Qt.createElement(Qe.Z,{align:"middle",className:(_a==null?void 0:_a.length)>1?"mb30":`${yt.hide}`},Qt.createElement(Be.default.Item,{name:Fn},Qt.createElement(Mr,null)),Qt.createElement(Je.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Qt.createElement("div",{onClick:()=>Bt(!0)},Qt.createElement(Be.default.Item,{name:la,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Qt.createElement(_n,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ka}))))};var Xa=Object.defineProperty,qa=Object.defineProperties,pr=Object.getOwnPropertyDescriptors,fa=Object.getOwnPropertySymbols,ur=Object.prototype.hasOwnProperty,mr=Object.prototype.propertyIsEnumerable,Ga=(se,Se,Ee)=>Se in se?Xa(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,ar=(se,Se)=>{for(var Ee in Se||(Se={}))ur.call(Se,Ee)&&Ga(se,Ee,Se[Ee]);if(fa)for(var Ee of fa(Se))mr.call(Se,Ee)&&Ga(se,Ee,Se[Ee]);return se},mt=(se,Se)=>qa(se,pr(Se)),it=(se,Se)=>{var Ee={};for(var rt in se)ur.call(se,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=se[rt]);if(se!=null&&fa)for(var rt of fa(se))Se.indexOf(rt)<0&&mr.call(se,rt)&&(Ee[rt]=se[rt]);return Ee};const Nt={\u6B63\u786E:"T",\u9519\u8BEF:"F"},cn=({value:se,onChange:Se,form:Ee,choiceKey:rt})=>{const bn=(se==null?void 0:se.is_answer)===1,$n=se==null?void 0:se.choice_text,la=()=>{var Fn;const Ct=(Fn=Ee==null?void 0:Ee.getFieldValue(["sub_item_banks",...rt]))==null?void 0:Fn.map(Wt=>({choice_text:Wt.choice_text,is_answer:0}));Ee==null||Ee.setFieldValue(["sub_item_banks",...rt],Ct),Se(mt(ar({},se),{is_answer:1}))};return b.createElement(Qe.Z,{className:yt.choiceWrap,align:"middle",wrap:!1},b.createElement(Je.Z,{onClick:la,className:`${yt.choiceIndex} ${yt.judgementIndex} ${bn?yt.activeAnswer:""}`},Nt[$n]),b.createElement(Je.Z,{flex:1,className:`${yt.editorWrap} ml15`},b.createElement("div",{className:`${yt.inputBorder} ${yt.placeholder} ${bn?yt.activeJudgementAnswer:""}`},$n)),b.createElement(Je.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:la,className:`${yt.setAnswerBtn} ${bn?yt.activeAnswer:""}`},bn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},ua=({questionTitlePlaceholder:se,choiceKey:Se="choices",form:Ee,titleKey:rt="name",analysisKey:bn="analysis"})=>{const[$n,la]=(0,b.useState)(!1);return b.createElement("div",{className:yt.wrap},b.createElement("div",{className:yt.questionTitleEditorWrap},b.createElement(Be.default.Item,{label:"\u9898\u5E72",name:rt,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Zt,{scrollId:"name",watch:!0,height:140,placeholder:se}))),b.createElement(Be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},b.createElement(Be.default.List,{name:Se,rules:[{validator(Fn,Ct){return Ct.some(ka=>(ka==null?void 0:ka.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Fn=>b.createElement("div",{id:"choices"},Fn.map(Ct=>{var Wt=Ct,{key:ka,name:Bt}=Wt,hn=it(Wt,["key","name"]);return b.createElement(Be.default.Item,mt(ar({},hn),{key:ka,name:Bt,noStyle:!0}),b.createElement(cn,{form:Ee,choiceKey:Se}))})))),b.createElement("div",{onClick:()=>la(!0)},b.createElement(Be.default.Item,{name:bn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(_n,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:$n}))))};var La=oe(12563),nn=Object.defineProperty,Ba=Object.defineProperties,Aa=Object.getOwnPropertyDescriptors,rr=Object.getOwnPropertySymbols,Ta=Object.prototype.hasOwnProperty,ga=Object.prototype.propertyIsEnumerable,Qa=(se,Se,Ee)=>Se in se?nn(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,hr=(se,Se)=>{for(var Ee in Se||(Se={}))Ta.call(Se,Ee)&&Qa(se,Ee,Se[Ee]);if(rr)for(var Ee of rr(Se))ga.call(Se,Ee)&&Qa(se,Ee,Se[Ee]);return se},Gr=(se,Se)=>Ba(se,Aa(Se)),nr=(se,Se)=>{var Ee={};for(var rt in se)Ta.call(se,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=se[rt]);if(se!=null&&rr)for(var rt of rr(se))Se.indexOf(rt)<0&&ga.call(se,rt)&&(Ee[rt]=se[rt]);return Ee};const fr=se=>{var Se=se,{value:Ee,onChange:rt}=Se,bn=nr(Se,["value","onChange"]);const $n=la=>{rt([la])};return b.createElement(je.Z,Gr(hr({},bn),{defaultValue:Ee==null?void 0:Ee[0],onChange:$n}))},Dr=se=>{if(!se)return!1;if(/^s*$/.test(se)||se.trim()===""){be.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Se=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return se==="|"?(be.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Gn=({value:se=[],onClose:Se})=>b.createElement(La.default,{closable:!0,onClose:Se,className:yt.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},se.join(" \u6216 "))),rn=({questionTitlePlaceholder:se,form:Se,showKeywords:Ee,isMustKeyWords:rt=Ee,titleKey:bn="name",analysisKey:$n="analysis",answerTexts:la="answer_texts",keywords:Fn="keywords",useKeywords:Ct="use_keywords",indexs:Wt})=>{var ka,Bt,hn,ta;const[va,kn]=(0,b.useState)(!1),[en,vn]=(0,b.useState)(""),Gt=(Bt=(ka=Se.getFieldValue("sub_item_banks"))==null?void 0:ka[Ct==null?void 0:Ct[0]])==null?void 0:Bt[Ct==null?void 0:Ct[1]],_a=(ta=(hn=Se.getFieldValue("sub_item_banks"))==null?void 0:hn[Ct==null?void 0:Ct[0]])==null?void 0:ta.question_score;return b.createElement("div",{className:yt.wrap},b.createElement("div",{className:yt.questionTitleEditorWrap},b.createElement(Be.default.Item,{label:"\u9898\u5E72",name:bn,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Zt,{scrollId:"name",watch:!0,height:140,placeholder:se}))),b.createElement(Be.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:la,labelCol:{span:24}},b.createElement(fr,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Ee&&!rt&&b.createElement(Be.default.Item,{hidden:!0,name:Ct,valuePropName:"checked"},b.createElement(kt.Z,{defaultChecked:!0})),Ee&&rt&&b.createElement(Qe.Z,{align:"middle",className:"mb30"},b.createElement(Be.default.Item,{name:Ct,valuePropName:"checked"},b.createElement(kt.Z,null)),b.createElement(Je.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(Je.Z,null,b.createElement(ne.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(vt.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Gt||!rt)&&b.createElement(Be.default.List,{name:Fn,rules:[{validator(gn,na){return rt?na!=null&&na.length?(na==null?void 0:na.reduce(($a,Cr)=>$a+Cr.score,0))>parseFloat(_a)?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()}}]},(gn,{add:na,remove:jt})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${yt.title} mb10`},rt?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(Qe.Z,{align:"middle",className:"font14 mb30"},b.createElement(Je.Z,{flex:1},b.createElement(Fe.default,{value:en,onChange:$a=>{vn($a.target.value)},maxLength:50,allowClear:!0,onPressEnter:$a=>{var Cr,vr,Sr,zn;const sr=`${(Cr=$a.target)==null?void 0:Cr.value}`,zr=(Sr=(vr=sr==null?void 0:sr.split("|"))==null?void 0:vr.filter(yr=>!!yr))==null?void 0:Sr.map(yr=>yr.trim()),Vr=Se.getFieldValue(["sub_item_banks",...Fn]),$r=((zn=Vr==null?void 0:Vr.map(yr=>yr==null?void 0:yr.keyword))==null?void 0:zn.flat())||[];for(const yr of zr)if($r.includes(yr)){be.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Dr(sr)&&(na({keyword:zr,score:1}),vn(""))},className:yt.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(Je.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),gn.map($a=>{var Cr=$a,{key:vr,name:Sr}=Cr,zn=nr(Cr,["key","name"]);return b.createElement(Qe.Z,{key:vr,className:"mb20",style:{marginRight:148}},b.createElement(Je.Z,{flex:1},b.createElement(Qe.Z,{align:"middle",justify:"space-between"},b.createElement(Be.default.Item,Gr(hr({},zn),{name:[Sr,"keyword"]}),b.createElement(Gn,{onClose:()=>jt(Sr)})),rt&&b.createElement(Be.default.Item,Gr(hr({},zn),{name:[Sr,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:yt.blankInputNumberWrapper}),b.createElement(Oe.Z,{className:yt.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>kn(!0)},b.createElement(Be.default.Item,{name:$n,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(_n,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:va}))))};var Lt=oe(59301),de=Object.defineProperty,$e=Object.defineProperties,st=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable,qt=(se,Se,Ee)=>Se in se?de(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,Yt=(se,Se)=>{for(var Ee in Se||(Se={}))at.call(Se,Ee)&&qt(se,Ee,Se[Ee]);if(Ht)for(var Ee of Ht(Se))an.call(Se,Ee)&&qt(se,Ee,Se[Ee]);return se},_t=(se,Se)=>$e(se,st(Se)),ia=(se,Se)=>{var Ee={};for(var rt in se)at.call(se,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=se[rt]);if(se!=null&&Ht)for(var rt of Ht(se))Se.indexOf(rt)<0&&an.call(se,rt)&&(Ee[rt]=se[rt]);return Ee};const{Panel:za}=Rt.default,Wa=({questionTitlePlaceholder:se,choiceKey:Se,form:Ee,withScore:rt})=>{const bn=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}],[$n,la]=(0,b.useState)(),[Fn,Ct]=(0,b.useState)([]),Wt=Bt=>{Ct(Bt)},ka=({value:Bt})=>Lt.createElement("div",{style:{width:150,paddingLeft:11}},Bt);return Lt.createElement("div",{className:yt.wrap},Lt.createElement("div",{className:yt.questionTitleEditorWrap},Lt.createElement(Be.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Lt.createElement(Zt,{scrollId:"name",watch:!0,height:140,placeholder:se}))),Lt.createElement(Be.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),Lt.createElement(Be.default.List,{name:"sub_item_banks",rules:[{validator(Bt,hn){return hn?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Bt,{add:hn,remove:ta,move:va})=>{const kn=Ee.getFieldValue("sub_item_banks");return Lt.createElement(Lt.Fragment,null,Lt.createElement(Rt.default,{className:Bt.length>0?yt.collapseWrapper:"",bordered:!1,activeKey:Fn,onChange:Wt,expandIcon:({isActive:en})=>Lt.createElement("i",{className:`iconfont icon-weizhankai ${en?yt.open:yt.close}`,style:{fontSize:14,transition:"all .2s"}})},Bt.map((en,vn)=>{var Gt=en,{key:_a,name:gn}=Gt,na=ia(Gt,["key","name"]),jt,$a,Cr,vr,Sr,zn,sr,zr,Vr,$r,yr,xr,Tr,or;return Lt.createElement(za,{className:yt.panel,forceRender:!0,header:Lt.createElement("div",{className:yt.panelHeader},"\u7B2C",vn+1,"\u5C0F\u9898",Lt.createElement("span",null,"\uFF08",((jt=kn==null?void 0:kn[gn])==null?void 0:jt.question_type)==0?"\u5355\u9009\u9898":(($a=kn==null?void 0:kn[gn])==null?void 0:$a.question_type)==1?"\u591A\u9009\u9898":((Cr=kn==null?void 0:kn[gn])==null?void 0:Cr.question_type)==3?"\u586B\u7A7A\u9898":((vr=kn==null?void 0:kn[gn])==null?void 0:vr.question_type)==2?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:gn,extra:Lt.createElement(Qe.Z,{align:"middle",onClick:Nr=>Nr.stopPropagation()},((Sr=kn==null?void 0:kn[gn])==null?void 0:Sr.question_type)==3&&Lt.createElement(Lt.Fragment,null,Lt.createElement(De.ZP.Group,{defaultValue:(zn=kn==null?void 0:kn[gn])==null?void 0:zn.use_blank_score,className:ie.scoreByBlankRadio,style:{marginRight:20},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:Nr=>{var Or,Ur,eo,mo,fo;if(Ee==null||Ee.setFieldValue(["sub_item_banks",gn,"use_blank_score"],(Or=Nr==null?void 0:Nr.target)==null?void 0:Or.value),(Ur=Nr==null?void 0:Nr.target)!=null&&Ur.value){let Ao=0;for(let So in(eo=Ee==null?void 0:Ee.getFieldValue(["sub_item_banks",gn]))==null?void 0:eo.standard_answers)Ao+=Number((fo=(mo=Ee==null?void 0:Ee.getFieldValue(["sub_item_banks",gn]))==null?void 0:mo.standard_answers[So])==null?void 0:fo.score);Ee==null||Ee.setFieldValue(["sub_item_banks",gn,"question_score"],Ao||"")}la(new Date)}}),Lt.createElement(ne.Z,{overlayInnerStyle:{width:460},title:Lt.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",Lt.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u9700\u8981\u8BBE\u7F6E\u6574\u4E2A\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},Lt.createElement("i",{className:"icon-tishixiaowenhao font18 mr25 c-3061d0"}))),rt&&Lt.createElement(Be.default.Item,_t(Yt({},na),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[gn,"question_score"],className:yt.blankInputNumberWrapper}),((sr=kn==null?void 0:kn[gn])==null?void 0:sr.question_type)==3&&((zr=kn==null?void 0:kn[gn])!=null&&zr.use_blank_score)?Lt.createElement(ka,null):Lt.createElement(Oe.Z,{className:yt.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}})),Lt.createElement(Qe.Z,{align:"middle",className:"pl40",style:{width:82}},vn!==0&&Lt.createElement("div",{onClick:()=>{var Nr;va(vn,vn-1);const Or=(Nr=Ee.getFieldValue("sub_item_banks"))==null?void 0:Nr.map((Ur,eo)=>(Bt.map((mo,fo)=>{eo===fo&&(Ur.q_position=Number(mo.name)+1)}),Ur));Ee.setFieldValue("sub_item_banks",Or)}},Lt.createElement(ne.Z,{title:"\u4E0A\u79FB"},Lt.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),vn{var Nr;va(vn,vn+1);const Or=(Nr=Ee.getFieldValue("sub_item_banks"))==null?void 0:Nr.map((Ur,eo)=>(Bt.map((mo,fo)=>{eo===fo&&(Ur.q_position=Number(mo.name)+1)}),Ur));Ee.setFieldValue("sub_item_banks",Or)},className:vn===0?"":"ml10"},Lt.createElement(ne.Z,{title:"\u4E0B\u79FB"},Lt.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"})))),Lt.createElement(ne.Z,{title:"\u5220\u9664"},Lt.createElement(An.Z,{className:`${yt.deleteIcon} ml40`,onClick:()=>ta(gn)})))},Lt.createElement(Be.default.Item,_t(Yt({},na),{name:gn}),(((Vr=kn==null?void 0:kn[gn])==null?void 0:Vr.question_type)==0||(($r=kn==null?void 0:kn[gn])==null?void 0:$r.question_type)==1)&&Lt.createElement(Da,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((yr=kn==null?void 0:kn[gn])==null?void 0:yr.question_type)==1,form:Ee,choiceKey:[gn,"choices"],titleKey:[gn,"name"],analysisKey:[gn,"analysis"],choiceOptionsPath:["sub_item_banks",gn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((xr=kn==null?void 0:kn[gn])==null?void 0:xr.question_type)==3&&Lt.createElement(Jr,{form:Ee,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",name:gn,scoreByBlank:[gn,"use_blank_score"],titleKey:[gn,"name"],analysisKey:[gn,"analysis"],isOrdered:[gn,"is_ordered"],answerKey:[gn,"standard_answers"],key:$n}),((Tr=kn==null?void 0:kn[gn])==null?void 0:Tr.question_type)==2&&Lt.createElement(ua,{form:Ee,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[gn,"name"],analysisKey:[gn,"analysis"],choiceKey:[gn,"choices"]}),((or=kn==null?void 0:kn[gn])==null?void 0:or.question_type)==4&&Lt.createElement(rn,{showKeywords:!0,isMustKeyWords:!0,form:Ee,titleKey:[gn,"name"],analysisKey:[gn,"analysis"],answerTexts:[gn,"answer_texts"],useKeywords:[gn,"use_keywords"],keywords:[gn,"keywords"],indexs:gn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9",key:$n})))})),Bt.length<20&&Lt.createElement(z.Z,{menu:{items:[{label:Lt.createElement("div",{onClick:()=>{hn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:0,item_type:"SINGLE"}),Ct([Bt==null?void 0:Bt.length,...Fn])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:Lt.createElement("div",{onClick:()=>{hn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:1,item_type:"MULTIPLE"}),Ct([Bt==null?void 0:Bt.length,...Fn])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:Lt.createElement("div",{onClick:()=>{hn({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",question_type:2,item_type:"JUDGMENT"}),Ct([Bt==null?void 0:Bt.length,...Fn])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:Lt.createElement("div",{onClick:()=>{hn({name:"",analysis:"",is_ordered:!0,standard_answers:[],question_type:3,item_type:"COMPLETION",use_blank_score:!0,downcase:!0,no_space:!0}),Ct([Bt==null?void 0:Bt.length,...Fn])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:Lt.createElement("div",{onClick:()=>{hn({name:"",answer_texts:[],keywords:[],use_keywords:!1,analysis:"",question_type:4,item_type:"SUBJECTIVE"}),Ct([Bt==null?void 0:Bt.length,...Fn])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(en=>en.show).map(en=>({label:en.label,key:en.key}))}},Lt.createElement("div",{className:`${yt.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var pn=oe(59301),Ia=Object.defineProperty,Ca=Object.defineProperties,ja=Object.getOwnPropertyDescriptors,Ir=Object.getOwnPropertySymbols,Qr=Object.prototype.hasOwnProperty,Rr=Object.prototype.propertyIsEnumerable,Wr=(se,Se,Ee)=>Se in se?Ia(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,jr=(se,Se)=>{for(var Ee in Se||(Se={}))Qr.call(Se,Ee)&&Wr(se,Ee,Se[Ee]);if(Ir)for(var Ee of Ir(Se))Rr.call(Se,Ee)&&Wr(se,Ee,Se[Ee]);return se},Zr=(se,Se)=>Ca(se,ja(Se)),Co=(se,Se,Ee)=>new Promise((rt,bn)=>{var $n=Ct=>{try{Fn(Ee.next(Ct))}catch(Wt){bn(Wt)}},la=Ct=>{try{Fn(Ee.throw(Ct))}catch(Wt){bn(Wt)}},Fn=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then($n,la);Fn((Ee=Ee.apply(se,Se)).next())}),ho=({qitem:se,setisedit:Se,TagDiscipline:Ee,exerciseitem:rt,seveeditor:bn,deleteitem:$n,getTagData:la,init:Fn,showTip:Ct=!1})=>{const[Wt]=Be.default.useForm();(0,b.useEffect)(()=>{var Bt;Wt.setFieldsValue(Zr(jr({},se),{name:se.question_title,sub_item_banks:(Bt=se.sub_exercise_questions)==null?void 0:Bt.map(hn=>{var ta;return Zr(jr({},hn),{name:hn.question_title,choices:(ta=hn==null?void 0:hn.question_choices)==null?void 0:ta.map(va=>Zr(jr({},va),{is_answer:va!=null&&va.standard_boolean?1:0}))})}),repeat_answer:!se.repeat_answer}))},[se]);const ka=Bt=>{if(!(Bt!=null&&Bt.length))return!1;const hn=Bt.map(va=>{var kn;return(kn=va.choice_text)==null?void 0:kn.trim().replace(/^\s+|\s+$/g,"")});return new Set(hn).size!==hn.length};return pn.createElement("div",null,pn.createElement(Be.default,{form:Wt,colon:!1,onValuesChange:(Bt,hn)=>{var ta,va,kn;if(Bt!=null&&Bt.sub_item_banks){let en=((ta=Wt.getFieldValue("sub_item_banks"))==null?void 0:ta.length)>0&&((kn=(va=Wt.getFieldValue("sub_item_banks"))==null?void 0:va.map(vn=>{var Gt;if(vn.question_type==3&&(vn!=null&&vn.use_blank_score)){let _a=0;for(let gn in vn==null?void 0:vn.standard_answers)_a+=Number((Gt=vn==null?void 0:vn.standard_answers[gn])==null?void 0:Gt.score);return _a}else return vn.question_score}))==null?void 0:kn.filter(vn=>vn));(en==null?void 0:en.length)>0&&Wt.setFieldsValue({question_score:parseFloat(en==null?void 0:en.reduce((vn,Gt)=>parseFloat(vn)+parseFloat(Gt))).toFixed(1)})}},onFinish:Bt=>{var hn,ta;if((hn=Bt.sub_item_banks)==null?void 0:hn.some(kn=>kn.question_type===0||kn.question_type===1?ka(kn.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}bn(Zr(jr(jr({},se),Bt),{sub_item_banks:(ta=Bt==null?void 0:Bt.sub_item_banks)==null?void 0:ta.map(kn=>(console.log(kn),Zr(jr({},kn),{item_type:kn==null?void 0:kn.question_type,id:(kn==null?void 0:kn.question_id)||""})))}))},onFinishFailed:Bt=>Co(void 0,null,function*(){var hn,ta;be.ZP.error(Bt.errorFields[0].errors[0]),Wt.scrollToField((ta=(hn=Bt==null?void 0:Bt.errorFields)==null?void 0:hn[0])==null?void 0:ta.name,{behavior:"smooth",block:"center"})})},pn.createElement("div",{style:{display:"flex",alignItems:"center"}},pn.createElement("div",{style:{flex:1}},pn.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),pn.createElement("span",null,"\u7EC4\u5408\u9898")),!se.isadd&&pn.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{$n()}},pn.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),pn.createElement(We.ZP,{onClick:()=>{var Bt;se.isadd?(Se(!1),Fn()):(Wt.setFieldsValue(Zr(jr({},se),{name:se==null?void 0:se.question_title,choices:(Bt=se==null?void 0:se.question_choices)==null?void 0:Bt.map(hn=>Zr(jr({},hn),{standard_boolean:hn!=null&&hn.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),pn.createElement(ne.Z,{overlayClassName:ie.shake,open:Ct,placement:"bottom",color:"rgba(244,156,14,0.19)",title:pn.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},pn.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")},pn.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{Wt.submit()}},"\u4FDD\u5B58"))),pn.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},pn.createElement(ba.Z,{text:"\uFF08\u7EC4\u5408\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5C0F\u9898\u5206\u503C\u4E4B\u548C\uFF09"}),pn.createElement(Wa,{form:Wt,withScore:!0,choiceKey:"",questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7EC4\u5408\u9898\u9898\u5E72\u5185\u5BB9"}),pn.createElement(ct,{getTagData:la,qitem:se,exerciseitem:rt,TagDiscipline:Ee,form:Wt}))))},Eo=oe(94827),xo=oe(24334),Hr=oe(59301),wo=Object.defineProperty,Ll=Object.defineProperties,Il=Object.getOwnPropertyDescriptors,ci=Object.getOwnPropertySymbols,Vi=Object.prototype.hasOwnProperty,Nl=Object.prototype.propertyIsEnumerable,ro=(se,Se,Ee)=>Se in se?wo(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,Lo=(se,Se)=>{for(var Ee in Se||(Se={}))Vi.call(Se,Ee)&&ro(se,Ee,Se[Ee]);if(ci)for(var Ee of ci(Se))Nl.call(Se,Ee)&&ro(se,Ee,Se[Ee]);return se},Ko=(se,Se)=>Ll(se,Il(Se)),Ol=(se,Se,Ee)=>new Promise((rt,bn)=>{var $n=Ct=>{try{Fn(Ee.next(Ct))}catch(Wt){bn(Wt)}},la=Ct=>{try{Fn(Ee.throw(Ct))}catch(Wt){bn(Wt)}},Fn=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then($n,la);Fn((Ee=Ee.apply(se,Se)).next())}),ri=({qitem:se,TagDiscipline:Se,exerciseitem:Ee,setisedit:rt,seveeditor:bn,deleteitem:$n,getTagData:la,init:Fn,showTip:Ct=!1})=>{const[Wt]=Be.default.useForm(),ka=!0;return(0,b.useEffect)(()=>{var Bt,hn,ta;Wt.setFieldsValue(Ko(Lo({},se),{standard_answers:se.standard_answer,difficulty:se.difficulty,item_banks_group_id:se.item_banks_group_id,hack:Ko(Lo({},se),{time_limit:(se==null?void 0:se.time_limit)||3}),hack_codes:{language:(Bt=se==null?void 0:se.program_attr)==null?void 0:Bt.language,code:xo.Base64.decode(((hn=se==null?void 0:se.program_attr)==null?void 0:hn.code)||"")},hack_sets:Lo({},(ta=se==null?void 0:se.hack_sets)==null?void 0:ta[0]),repeat_answer:!se.repeat_answer}))},[se]),Hr.createElement("div",null,Hr.createElement(Be.default,{form:Wt,colon:!1,onValuesChange:(Bt,hn)=>{var ta,va,kn,en;if(Bt!=null&&Bt.standard_answers){let vn=((ta=Wt.getFieldValue("standard_answers"))==null?void 0:ta.length)>0&&((kn=(va=Wt.getFieldValue("standard_answers"))==null?void 0:va.map(Gt=>Gt.score))==null?void 0:kn.filter(Gt=>Gt));(vn==null?void 0:vn.length)>0&&Wt.setFieldsValue({question_score:(vn==null?void 0:vn.length)>0&&((en=vn.reduce((Gt,_a)=>Gt+_a))==null?void 0:en.toFixed(1))})}},onFinish:Bt=>{var hn;bn(Ko(Lo(Lo({},se),Bt),{item_type:se==null?void 0:se.question_type,standard_answers:(hn=Bt.standard_answers)==null?void 0:hn.map((ta,va)=>Ko(Lo({},ta),{position:va+1})),standard_answer:void 0}))},onFinishFailed:Bt=>Ol(void 0,null,function*(){var hn,ta;be.ZP.error(Bt.errorFields[0].errors[0]),Wt.scrollToField((ta=(hn=Bt==null?void 0:Bt.errorFields)==null?void 0:hn[0])==null?void 0:ta.name,{behavior:"smooth",block:"center"})})},Hr.createElement("div",{style:{display:"flex",alignItems:"center"}},Hr.createElement("div",{style:{flex:1}},Hr.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Hr.createElement("span",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898")),!se.isadd&&Hr.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{$n()}},Hr.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}})," \u5220\u9664"),Hr.createElement(We.ZP,{onClick:()=>{var Bt,hn,ta;se.isadd?(rt(!1),Fn()):(Wt.setFieldsValue(Ko(Lo({},se),{standard_answers:se.standard_answer,difficulty:se.difficult,item_banks_group_id:se.item_banks_group_id,hack:Lo({},se),hack_codes:{language:(Bt=se==null?void 0:se.program_attr)==null?void 0:Bt.language,code:xo.Base64.decode((hn=se==null?void 0:se.program_attr)==null?void 0:hn.code)},hack_sets:Lo({},(ta=se==null?void 0:se.hack_sets)==null?void 0:ta[0]),repeat_answer:!se.repeat_answer})),rt(!1))}},"\u53D6\u6D88"),Hr.createElement(ne.Z,{overlayClassName:ie.shake,open:Ct,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Hr.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Hr.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")},Hr.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{Wt.submit()}},"\u4FDD\u5B58"))),Hr.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Hr.createElement(ba.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}),Hr.createElement(Eo.t,{form:Wt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7A0B\u5E8F\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:ka,hackidentifier:se==null?void 0:se.hack_identifier,answerKey:"standard_answers"}),Hr.createElement(ct,{getTagData:la,qitem:se,exerciseitem:Ee,TagDiscipline:Se,form:Wt}))))},Ml=oe(81327),Qi=oe(14739),Ha=oe(59301),Rl=Object.defineProperty,Tl=Object.defineProperties,kl=Object.getOwnPropertyDescriptors,so=Object.getOwnPropertySymbols,Gl=Object.prototype.hasOwnProperty,jl=Object.prototype.propertyIsEnumerable,Oo=(se,Se,Ee)=>Se in se?Rl(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,no=(se,Se)=>{for(var Ee in Se||(Se={}))Gl.call(Se,Ee)&&Oo(se,Ee,Se[Ee]);if(so)for(var Ee of so(Se))jl.call(Se,Ee)&&Oo(se,Ee,Se[Ee]);return se},po=(se,Se)=>Tl(se,kl(Se)),Ui=(se,Se,Ee)=>new Promise((rt,bn)=>{var $n=Ct=>{try{Fn(Ee.next(Ct))}catch(Wt){bn(Wt)}},la=Ct=>{try{Fn(Ee.throw(Ct))}catch(Wt){bn(Wt)}},Fn=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then($n,la);Fn((Ee=Ee.apply(se,Se)).next())}),Ki=({qitem:se,setqitem:Se,setisedit:Ee,TagDiscipline:rt,exerciseitem:bn,seveeditor:$n,deleteitem:la,showTip:Fn=!1})=>{var Ct,Wt,ka;const[Bt]=Be.default.useForm();(0,b.useEffect)(()=>{var en,vn;Bt.setFieldsValue(po(no({},se),{name:se==null?void 0:se.question_title,choices:(en=se==null?void 0:se.question_choices)==null?void 0:en.map(Gt=>po(no({},Gt),{standard_boolean:Gt!=null&&Gt.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)})),se.shixun=(vn=se==null?void 0:se.shixun)==null?void 0:vn.map(Gt=>po(no({},Gt),{defaultscore:Gt.challenge_score}))},[]);const hn=(en,vn,Gt)=>{const _a=JSON.parse(JSON.stringify((se==null?void 0:se.shixun)||[]));_a[Gt][en]=vn,Se(po(no({},se),{shixun:_a}))},ta=(en,vn,Gt,_a)=>{const gn=JSON.parse(JSON.stringify((se==null?void 0:se.shixun)||[]));gn[Gt].challenge_step_penalties[_a][en]=vn,Se(po(no({},se),{shixun:gn}))},va=en=>{var vn;const Gt=JSON.parse(JSON.stringify((se==null?void 0:se.shixun)||[]));(vn=Gt[en])!=null&&vn.challenge_step_penalties&&Gt[en].challenge_step_penalties.push({id:null,score:null,start_time:null,end_time:null}),Se(po(no({},se),{shixun:Gt}))},kn=(en,vn)=>{var Gt;const _a=JSON.parse(JSON.stringify((se==null?void 0:se.shixun)||[]));_a[en].challenge_step_penalties,(Gt=_a[en])!=null&&Gt.challenge_step_penalties&&_a[en].challenge_step_penalties.splice(vn,1),Se(po(no({},se),{shixun:_a}))};return Ha.createElement("div",null,Ha.createElement(Be.default,{form:Bt,colon:!1,onFinish:en=>{var vn,Gt;let _a=po(no({},en),{question_scores:(vn=se==null?void 0:se.shixun)==null?void 0:vn.map(gn=>gn.challenge_score),item_type:se==null?void 0:se.question_type,choices:(Gt=en==null?void 0:en.choices)==null?void 0:Gt.map(gn=>po(no({},gn),{is_answer:gn.standard_boolean}))});$n(no(no({},se),_a))},onFinishFailed:en=>Ui(void 0,null,function*(){var vn,Gt;be.ZP.error(en.errorFields[0].errors[0]),Bt.scrollToField((Gt=(vn=en==null?void 0:en.errorFields)==null?void 0:vn[0])==null?void 0:Gt.name,{behavior:"smooth",block:"center"})})},Ha.createElement("div",{style:{display:"flex",alignItems:"center"}},Ha.createElement("div",{style:{flex:1}},Ha.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Ha.createElement("span",null,"\u5B9E\u8BAD\u9898")),Ha.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{la()}},Ha.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Ha.createElement(We.ZP,{onClick:()=>{var en,vn;Bt.setFieldsValue(po(no({},se),{name:se==null?void 0:se.question_title,choices:(en=se==null?void 0:se.question_choices)==null?void 0:en.map(Gt=>po(no({},Gt),{standard_boolean:Gt!=null&&Gt.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)})),se.shixun=(vn=se==null?void 0:se.shixun)==null?void 0:vn.map(Gt=>po(no({},Gt),{challenge_score:Gt.defaultscore})),Se(no({},se)),Ee(!1)}},"\u53D6\u6D88"),Ha.createElement(ne.Z,{overlayClassName:ie.shake,open:Fn,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Ha.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Ha.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")},Ha.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>Ui(void 0,null,function*(){var en,vn,Gt,_a;if(((vn=(en=se==null?void 0:se.shixun)==null?void 0:en.map)==null?void 0:vn.call(en,jt=>jt.challenge_score).filter(jt=>jt).length)<((Gt=se==null?void 0:se.shixun)==null?void 0:Gt.length)){be.ZP.info("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A");return}console.log(se,"qitem");const gn=parseFloat(Bt.getFieldValue("question_score")),na=parseFloat((_a=se==null?void 0:se.shixun)==null?void 0:_a.map(jt=>jt.challenge_score).reduce((jt,$a)=>parseFloat(jt||0)+parseFloat($a||0)));if((se==null?void 0:se.shixun_mode)===2&&gn!==na){be.ZP.info("\u8003\u70B9\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BD5\u9898\u5206\u503C");return}Bt.submit()})},"\u4FDD\u5B58"))),Ha.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},(se==null?void 0:se.shixun_mode)===0?Ha.createElement(ba.Z,{text:"\uFF08\u5B9E\u8BAD\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5173\u5361\u5206\u503C\u4E4B\u548C\uFF09"}):Ha.createElement(Be.default.Item,{className:ie.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Ha.createElement(Oe.Z,{disabled:!!((Ct=se==null?void 0:se.shixun)!=null&&Ct.some(en=>en.challenge_test_set_score_rule==2)),onChange:en=>{var vn;(se==null?void 0:se.shixun_mode)===1&&((vn=se==null?void 0:se.shixun)==null?void 0:vn.length)===1&&(se.shixun[0].challenge_score=en,Se(no({},se)))},onBlur:en=>{const vn=Number(en.target.value);vn<1&&be.ZP.error("\u5206\u6570\u4E0D\u80FD\u5C0F\u4E8E1"),vn>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}),((Wt=se==null?void 0:se.shixun)==null?void 0:Wt.some(en=>en.challenge_test_set_score_rule==2))&&Ha.createElement("span",{style:{marginLeft:"20px",color:"#e99237"}},"\u91C7\u96C6\u70B9\u5F97\u5206\u89C4\u8303\u4E3A\u201C\u81EA\u5B9A\u4E49\u5F97\u5206\u201D\uFF0C\u603B\u5206\u503C\u7B49\u4E8E\u5404\u91C7\u96C6\u70B9\u5206\u503C\u4E4B\u548C")),Ha.createElement(Be.default.Item,{label:"\u9898\u5E72",name:"question_title",labelCol:{span:24},rules:[{required:!0}]},Ha.createElement(je.Z,{watch:!0,height:140,placeholder:"",defaultValue:se.question_title})),Ha.createElement(Qe.Z,{style:{marginBottom:15},align:"middle",justify:"space-between"},Ha.createElement("div",null,Ha.createElement("span",{style:{color:"red"}},"*"),(se==null?void 0:se.shixun_mode)===2?"\u8003\u70B9":"\u5173\u5361","\u540D\u79F0"),Ha.createElement("a",{href:`/shixuns/${se==null?void 0:se.shixun_identifier}/challenges?exercise=true`,target:"_blank"},Ha.createElement("i",{onClick:()=>{},className:"iconfont icon-shixunkecheng font14 mr5"}),"\u5B9E\u8BAD\u8BE6\u60C5")),(ka=se==null?void 0:se.shixun)==null?void 0:ka.map((en,vn)=>{var Gt,_a,gn;return Ha.createElement(b.Fragment,{key:en.challenge_id},Ha.createElement("div",{style:{display:"flex",marginBottom:20}},Ha.createElement("div",{style:{flex:1}},vn+1,"\u3001",en.challenge_name),Ha.createElement("div",null,Ha.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C",Ha.createElement(Oe.Z,{disabled:!!((Gt=se==null?void 0:se.shixun)!=null&&Gt.some(na=>na.challenge_test_set_score_rule==2)),precision:1,value:en==null?void 0:en.challenge_score,onChange:na=>{const jt=JSON.parse(JSON.stringify((se==null?void 0:se.shixun)||[]));jt[vn].challenge_score=na;const $a=jt.every(vr=>!vr.challenge_score),Cr=parseFloat(jt==null?void 0:jt.map(vr=>vr.challenge_score).reduce((vr,Sr)=>parseFloat(vr||0)+parseFloat(Sr||0)));(se==null?void 0:se.shixun_mode)!==2&&Bt.setFieldsValue({question_score:$a?"":Cr.toFixed(1)}),Se(po(no({},se),{shixun:jt}))},max:200,min:1,style:{marginLeft:10,width:150},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle"}))),[1,2].includes(se==null?void 0:se.shixun_mode)&&Ha.createElement("div",{className:"mb20"},Ha.createElement(Ml.Z,null,Ha.createElement(kt.Z,{checked:en==null?void 0:en.is_time_limit,onChange:na=>hn("is_time_limit",na,vn)}),Ha.createElement("span",{className:"c-grey-333"},"\u5F00\u542F\u5B8C\u6210\u65F6\u95F4\u9650\u5236\uFF0C\u5E76\u8BBE\u7F6E\u5F97\u5206\u89C4\u5219")),[1].includes(se==null?void 0:se.shixun_mode)&&(en==null?void 0:en.is_time_limit)&&Ha.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:10}},Ha.createElement("div",null,"\u9650\u5236\u5B8C\u6210\u65F6\u95F4"),Ha.createElement(Oe.Z,{suffix:"\u79D2",value:en==null?void 0:en.time_limit,onChange:na=>hn("time_limit",na,vn),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),Ha.createElement("div",null,"\uFF0C\u6BCF\u8D85\u8FC7"),Ha.createElement(Oe.Z,{suffix:"\u79D2",value:en==null?void 0:en.timeout_second,onChange:na=>hn("timeout_second",na,vn),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),Ha.createElement("div",null,"\uFF0C\u6263\u9664"),Ha.createElement(Oe.Z,{suffix:"\u5206",value:en==null?void 0:en.deduct_point,onChange:na=>hn("deduct_point",na,vn),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),Ha.createElement("div",null,"\uFF0C\u76F4\u81F3\u6263\u5B8C\u8BE5\u9898\u5206\u503C")),[2].includes(se==null?void 0:se.shixun_mode)&&(en==null?void 0:en.is_time_limit)&&Ha.createElement(Ha.Fragment,null,Ha.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:10}},Ha.createElement("div",null,"\u9650\u5236\u5B8C\u6210\u65F6\u95F4"),Ha.createElement(Oe.Z,{suffix:"\u79D2",value:en==null?void 0:en.time_limit,onChange:na=>hn("time_limit",na,vn),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),Ha.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")),!!((_a=en==null?void 0:en.challenge_step_penalties)!=null&&_a.length)&&Ha.createElement("div",{className:"mt20 p20",style:{backgroundColor:"#F6F7F9",display:"flex",flexDirection:"column",gap:20}},(gn=en==null?void 0:en.challenge_step_penalties)==null?void 0:gn.map((na,jt)=>Ha.createElement(Qe.Z,{key:jt,align:"middle"},Ha.createElement("div",null,"\u5B8C\u6210\u65F6\u95F4"),Ha.createElement(Oe.Z,{suffix:"\u79D2",value:na==null?void 0:na.start_time,onChange:$a=>ta("start_time",$a,vn,jt),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),Ha.createElement("div",null,"-"),Ha.createElement(Oe.Z,{suffix:"\u79D2",value:na==null?void 0:na.end_time,onChange:$a=>ta("end_time",$a,vn,jt),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),Ha.createElement("div",null,"\uFF0C\u6263\u9664"),Ha.createElement(Oe.Z,{suffix:"\u5206",value:na==null?void 0:na.score,onChange:$a=>ta("score",$a,vn,jt),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),Ha.createElement("i",{className:"iconfont icon-shanchu15 c-red current ml20",onClick:()=>kn(vn,jt)})))),Ha.createElement(Qi.op,{onClick:()=>va(vn),className:"mt20",shape:"default"},"\u6DFB\u52A0\u5F97\u5206\u89C4\u5219"))))}))))},aa={flex_box_center:"flex_box_center___ljmk3",flex_space_between:"flex_space_between___Fy45C",flex_box_vertical_center:"flex_box_vertical_center___SoC1C",flex_box_center_end:"flex_box_center_end___MumBX",flex_box_column:"flex_box_column___cutpt",warp:"warp___w1JUC",indexTag:"indexTag___LPncW",normalWrap:"normalWrap___pEIzs",redio:"redio___I6tXM",redioitem:"redioitem___cS4Gp",redioitemyes:"redioitemyes___JBDmk",title:"title___XAohQ",titleyes:"titleyes____bNQk",yestag:"yestag___zQnb1",checkbox:"checkbox___MHadU",checkboxitem:"checkboxitem___KX7mB",checkboxitemyes:"checkboxitemyes___MpOWf",bottom:"bottom___FkHfO",bottomitem:"bottomitem___AS0Qp",left:"left___U23z1",right:"right___yJVEk",completion:"completion___Bu5G6",content:"content___LySPW",items:"items___ETMq9",simple:"simple___XX5t0",shixunWrapper:"shixunWrapper___w6oIG",shixun:"shixun___ePWKn",score:"score___nGh9k",qtitle:"qtitle___DAMW1",program:"program___Mm1qL",combination:"combination___Sw7S6",qtype:"qtype___Xdl60",divname:"divname___AZYhO"},Yi=oe(1710),Hl=oe(10438),In=oe(59301);const gi=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"],zl=[{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 Fi=({qitem:se,newExercisePaper:Se})=>{var Ee,rt,bn,$n,la,Fn,Ct,Wt,ka,Bt,hn,ta,va,kn,en,vn,Gt,_a,gn,na,jt,$a,Cr,vr,Sr;return In.createElement("div",{className:aa.warp},((se==null?void 0:se.question_type)===0||(se==null?void 0:se.question_type)===2)&&In.createElement("div",{className:aa.normalWrap},(Ee=se==null?void 0:se.question_choices)==null?void 0:Ee.map((zn,sr)=>In.createElement("div",{className:aa.redio,key:sr},!(zn!=null&&zn.standard_boolean)&&In.createElement("span",{className:aa.redioitem}),(zn==null?void 0:zn.standard_boolean)&&In.createElement("i",{className:`${aa.redioitemyes} icon-duigou1`}),In.createElement("span",{className:`${zn!=null&&zn.standard_boolean?aa.titleyes:aa.title} ${aa.indexTag}`},(se==null?void 0:se.question_type)===0?gi[sr]:""),In.createElement(lt.Z,{className:zn!=null&&zn.standard_boolean?aa.titleyes:aa.title,value:zn==null?void 0:zn.choice_text}),(zn==null?void 0:zn.standard_boolean)&&In.createElement("div",{className:aa.yestag},"\u6B63\u786E\u7B54\u6848")))),(se==null?void 0:se.question_type)===1&&In.createElement("div",{className:aa.normalWrap},(rt=se==null?void 0:se.question_choices)==null?void 0:rt.map((zn,sr)=>In.createElement("div",{className:aa.checkbox,key:sr},!(zn!=null&&zn.standard_boolean)&&In.createElement("span",{className:aa.checkboxitem}),(zn==null?void 0:zn.standard_boolean)&&In.createElement("i",{className:`${aa.checkboxitemyes} icon-duigou1`}),In.createElement("span",{className:`${zn!=null&&zn.standard_boolean?aa.titleyes:aa.title} ${aa.indexTag}`},gi[sr]),In.createElement(lt.Z,{className:zn!=null&&zn.standard_boolean?aa.titleyes:aa.title,value:zn==null?void 0:zn.choice_text}),(zn==null?void 0:zn.standard_boolean)&&In.createElement("div",{className:aa.yestag},"\u6B63\u786E\u7B54\u6848")))),(se==null?void 0:se.question_type)===3&&In.createElement("div",{className:aa.completion},(bn=se==null?void 0:se.standard_answers)==null?void 0:bn.map((zn,sr)=>{var zr;return In.createElement(Qe.Z,{align:"top"},In.createElement("span",{className:aa.title},"\u586B\u7A7A\u9879",sr+1),In.createElement("div",{className:aa.content},(zr=zn.answer_text)==null?void 0:zr.map((Vr,$r)=>In.createElement("div",{key:$r,className:aa.items,style:(zn==null?void 0:zn.model)===2?{border:0,padding:0}:{}},(zn==null?void 0:zn.model)===1?In.createElement("pre",{className:"mb0"},Vr):In.createElement(Hl.Z,{value:Vr,disabled:!0})))))})),(se==null?void 0:se.question_type)===4&&In.createElement("div",{className:aa.simple},In.createElement("div",{className:aa.title},"\u53C2\u8003\u7B54\u6848"),In.createElement("div",{className:"mt10",style:{fontSize:"16px"}},($n=se==null?void 0:se.answer_texts)!=null&&$n[0]?In.createElement(lt.Z,{className:aa.content,value:(la=se==null?void 0:se.answer_texts)==null?void 0:la[0]}):In.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),In.createElement("div",{className:"mt20 "},In.createElement("span",{className:aa.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),In.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},se!=null&&se.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))),(se==null?void 0:se.question_type)===5&&In.createElement("div",{className:aa.shixunWrapper},(Fn=se==null?void 0:se.shixun)==null?void 0:Fn.map((zn,sr)=>{var zr,Vr;return In.createElement("div",null,In.createElement("div",{key:sr,className:`${aa.shixun} mb30`},In.createElement("span",{style:{flexShrink:0},className:aa.score},"\uFF08",zn==null?void 0:zn.challenge_score,"\u5206\uFF09"),In.createElement(ne.Z,{title:`${(se==null?void 0:se.index)+"."+(sr+1)}\u3001${zn==null?void 0:zn.challenge_name}`},In.createElement("span",{style:{width:"fit-content",marginRight:"auto"},className:aa.qtitle},(se==null?void 0:se.index)+"."+(sr+1),"\u3001",zn==null?void 0:zn.challenge_name)),(zn==null?void 0:zn.is_time_limit)&&In.createElement("span",{className:"pl10",style:{color:"#FF6800",flexShrink:0}},"\u5DF2\u5F00\u542F\u5B8C\u6210\u65F6\u95F4\u9650\u5236")),((Vr=(zr=Se==null?void 0:Se.editData)==null?void 0:zr.exercise)==null?void 0:Vr.show_challenge_task_pass)&&In.createElement(lt.Z,{className:aa.content,value:(zn==null?void 0:zn.challenge_task_pass)||"\u6682\u65E0\u5173\u5361\u63CF\u8FF0"}))})),(se==null?void 0:se.question_type)===6&&In.createElement("div",{className:aa.program,style:{border:!((Wt=(Ct=Se==null?void 0:Se.editData)==null?void 0:Ct.exercise)!=null&&Wt.show_hack_sets)&&!((Bt=(ka=Se==null?void 0:Se.editData)==null?void 0:ka.exercise)!=null&&Bt.show_hack_description)&&"none"}},((ta=(hn=Se==null?void 0:Se.editData)==null?void 0:hn.exercise)==null?void 0:ta.show_hack_sets)&&In.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},In.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},In.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),In.createElement(Yi.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(zn,sr,zr)=>zr+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(zn,sr,zr)=>In.createElement(ne.Z,{title:In.createElement("pre",null,zn)},In.createElement("div",{className:aa.divname},zn))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(zn,sr,zr)=>In.createElement(ne.Z,{title:In.createElement("pre",null,zn)}," ",In.createElement("div",{className:aa.divname},zn))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:(va=se==null?void 0:se.program_attr)==null?void 0:va.hack_sets})),((en=(kn=Se==null?void 0:Se.editData)==null?void 0:kn.exercise)==null?void 0:en.show_hack_description)&&In.createElement("div",null,In.createElement(lt.Z,{className:aa.content,value:(se==null?void 0:se.description)||"- -"}))),(se==null?void 0:se.question_type)===7&&((vn=se==null?void 0:se.sub_exercise_questions)==null?void 0:vn.map((zn,sr)=>{var zr,Vr,$r,yr,xr,Tr;return In.createElement("div",{key:sr},In.createElement("div",{className:aa.combination},In.createElement("span",{className:aa.score},zn==null?void 0:zn.question_score,"\u5206"),In.createElement("span",{className:aa.qtype},(zr=zl.find(or=>or.type==zn.question_type))==null?void 0:zr.name),In.createElement("span",{className:aa.qtitle},In.createElement(lt.Z,{value:`${sr+1}\u3001${zn==null?void 0:zn.question_title}`}))),(zn.question_type===0||zn.question_type===2)&&In.createElement("div",{className:aa.warp,style:{padding:"20px 58px 0 58px"}},In.createElement("div",null,(Vr=zn==null?void 0:zn.question_choices)==null?void 0:Vr.map((or,Nr)=>In.createElement("div",{className:aa.redio,key:Nr},!(or!=null&&or.standard_boolean)&&In.createElement("span",{className:aa.redioitem}),(or==null?void 0:or.standard_boolean)&&In.createElement("i",{className:`${aa.redioitemyes} icon-duigou1`}),In.createElement("span",{className:`${or!=null&&or.standard_boolean?aa.titleyes:aa.title} ${aa.indexTag}`},gi[Nr]),In.createElement(lt.Z,{className:or!=null&&or.standard_boolean?aa.titleyes:aa.title,value:or==null?void 0:or.choice_text}),(or==null?void 0:or.standard_boolean)&&In.createElement("div",{className:aa.yestag},"\u6B63\u786E\u7B54\u6848"))))),zn.question_type===1&&In.createElement("div",{className:aa.normalWrap},($r=zn==null?void 0:zn.question_choices)==null?void 0:$r.map((or,Nr)=>In.createElement("div",{className:aa.checkbox,key:Nr},!(or!=null&&or.standard_boolean)&&In.createElement("span",{className:aa.checkboxitem}),(or==null?void 0:or.standard_boolean)&&In.createElement("i",{className:`${aa.checkboxitemyes} icon-duigou1`}),In.createElement("span",{className:`${or!=null&&or.standard_boolean?aa.titleyes:aa.title} ${aa.indexTag}`},gi[Nr]),In.createElement(lt.Z,{className:or!=null&&or.standard_boolean?aa.titleyes:aa.title,value:or==null?void 0:or.choice_text}),(or==null?void 0:or.standard_boolean)&&In.createElement("div",{className:aa.yestag},"\u6B63\u786E\u7B54\u6848")))),zn.question_type===3&&In.createElement("div",{className:aa.completion},(yr=zn==null?void 0:zn.standard_answers)==null?void 0:yr.map((or,Nr)=>{var Or;return In.createElement(Qe.Z,{align:"top"},In.createElement("span",{className:aa.title},"\u586B\u7A7A\u9879",Nr+1),In.createElement("div",{className:aa.content},(Or=or.answer_text)==null?void 0:Or.map((Ur,eo)=>In.createElement("div",{key:eo,className:aa.items},In.createElement("pre",{className:"mb0"},Ur)))))})),zn.question_type===4&&In.createElement("div",{className:aa.simple},In.createElement("div",{className:aa.title},"\u53C2\u8003\u7B54\u6848"),In.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(xr=zn==null?void 0:zn.answer_texts)!=null&&xr[0]?In.createElement(lt.Z,{className:aa.content,value:(Tr=zn==null?void 0:zn.answer_texts)==null?void 0:Tr[0]}):In.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),In.createElement("div",{className:"mt20 "},In.createElement("span",{className:aa.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),In.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},zn!=null&&zn.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))))})),(se==null?void 0:se.question_type)===8&&In.createElement("div",null,In.createElement(lt.Z,{disabledFill:!0,className:aa.content,showProgramFill:!0,value:xo.Base64.decode(((Gt=se==null?void 0:se.program_attr)==null?void 0:Gt.code)||"")})),((se==null?void 0:se.question_type)<=4||[6,8].includes(se==null?void 0:se.question_type))&&In.createElement("div",{className:aa.bottom},In.createElement("div",{className:`${aa.bottomitem} mb30`},In.createElement("span",{className:aa.left},"\u89E3\u6790"),In.createElement("span",{className:aa.right},se!=null&&se.analysis?In.createElement(lt.Z,{value:se==null?void 0:se.analysis}):In.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),In.createElement("div",{className:`${aa.bottomitem} mb30`},In.createElement("span",{className:aa.left},"\u96BE\u5EA6"),In.createElement("span",{className:aa.right},(se==null?void 0:se.difficulty)===1?"\u7B80\u5355":(se==null?void 0:se.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),In.createElement("div",{className:aa.bottomitem},In.createElement("span",{className:aa.left},"\u77E5\u8BC6\u70B9"),In.createElement(ne.Z,{title:((_a=se==null?void 0:se.tag_discipline_names)==null?void 0:_a.length)<=0||((gn=se==null?void 0:se.tag_discipline_names)==null?void 0:gn.length)==1&&["-"].includes(se==null?void 0:se.tag_discipline_names[0])?"\u6682\u672A\u8BBE\u7F6E~":(jt=(na=se==null?void 0:se.tag_discipline_names)==null?void 0:na.join("\uFF1B"))==null?void 0:jt.toString()},In.createElement("span",{className:aa.right},(($a=se==null?void 0:se.tag_discipline_names)==null?void 0:$a.length)<=0?In.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):((Cr=se==null?void 0:se.tag_discipline_names)==null?void 0:Cr.length)==1&&["-"].includes(se==null?void 0:se.tag_discipline_names[0])?In.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):(Sr=(vr=se==null?void 0:se.tag_discipline_names)==null?void 0:vr.join("\uFF1B"))==null?void 0:Sr.toString())))))},Wl=oe(73256),Vl=oe(88637),Yr=oe(59301),Ql=Object.defineProperty,Ji=Object.defineProperties,Xi=Object.getOwnPropertyDescriptors,Bi=Object.getOwnPropertySymbols,Ul=Object.prototype.hasOwnProperty,qi=Object.prototype.propertyIsEnumerable,_i=(se,Se,Ee)=>Se in se?Ql(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,Mo=(se,Se)=>{for(var Ee in Se||(Se={}))Ul.call(Se,Ee)&&_i(se,Ee,Se[Ee]);if(Bi)for(var Ee of Bi(Se))qi.call(Se,Ee)&&_i(se,Ee,Se[Ee]);return se},Yo=(se,Se)=>Ji(se,Xi(Se)),Kl=(se,Se,Ee)=>new Promise((rt,bn)=>{var $n=Ct=>{try{Fn(Ee.next(Ct))}catch(Wt){bn(Wt)}},la=Ct=>{try{Fn(Ee.throw(Ct))}catch(Wt){bn(Wt)}},Fn=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then($n,la);Fn((Ee=Ee.apply(se,Se)).next())}),Yl=({qitem:se,setisedit:Se,TagDiscipline:Ee,exerciseitem:rt,seveeditor:bn,deleteitem:$n,getTagData:la,init:Fn,showTip:Ct=!1})=>{const[Wt]=Be.default.useForm();return(0,b.useEffect)(()=>{Wt.setFieldsValue(Yo(Mo({},se),{name:se.question_title,answer_texts:se.answer_texts,repeat_answer:!se.repeat_answer}))},[se]),Yr.createElement("div",null,Yr.createElement(Be.default,{form:Wt,colon:!1,onFinish:ka=>{bn(Mo(Mo({},se),ka))},onFinishFailed:ka=>Kl(void 0,null,function*(){var Bt,hn;be.ZP.error(ka.errorFields[0].errors[0]),Wt.scrollToField((hn=(Bt=ka==null?void 0:ka.errorFields)==null?void 0:Bt[0])==null?void 0:hn.name,{behavior:"smooth",block:"center"})})},Yr.createElement("div",{style:{display:"flex",alignItems:"center"}},Yr.createElement("div",{style:{flex:1}},Yr.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Yr.createElement("span",null,"\u7B80\u7B54\u9898")),!(se!=null&&se.isadd)&&Yr.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{$n()}},Yr.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Yr.createElement(We.ZP,{onClick:()=>{se.isadd?(Se(!1),Fn()):(Wt.setFieldsValue(Yo(Mo({},se),{name:se==null?void 0:se.question_title,answer_texts:se.answer_texts||[],repeat_answer:!(se!=null&&se.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),Yr.createElement(ne.Z,{overlayClassName:ie.shake,open:Ct,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Yr.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Yr.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")},Yr.createElement(We.ZP,{type:"primary",className:"ml20",onClick:()=>{Wt.submit()}},"\u4FDD\u5B58"))),Yr.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Yr.createElement(Be.default.Item,{className:ie.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Yr.createElement(Oe.Z,{onBlur:ka=>{ka.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})),Yr.createElement(Vl.W,{form:Wt,showKeywords:!0,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"}),Yr.createElement(ct,{getTagData:la,qitem:se,exerciseitem:rt,TagDiscipline:Ee,form:Wt}))))},Xr=oe(59301),bi=(se,Se,Ee)=>new Promise((rt,bn)=>{var $n=Ct=>{try{Fn(Ee.next(Ct))}catch(Wt){bn(Wt)}},la=Ct=>{try{Fn(Ee.throw(Ct))}catch(Wt){bn(Wt)}},Fn=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then($n,la);Fn((Ee=Ee.apply(se,Se)).next())}),Ci=({setScoreShow:se,ScoreShow:Se,exerciseitem:Ee,getdata:rt})=>{var bn,$n,la;const[Fn,Ct]=(0,b.useState)(!1);function Wt(){return bi(this,null,function*(){var Bt,hn,ta;let va=(hn=(Bt=Ee==null?void 0:Ee.exercise_question_types)==null?void 0:Bt.filter(en=>en.Singlequestion))==null?void 0:hn.map(en=>({question_type:en.question_type,score:en.Singlequestion})),kn=yield(0,fe.ZP)(`/api/examination_banks/${(ta=Ee==null?void 0:Ee.exercise)==null?void 0:ta.id}/batch_set_score.json`,{method:"POST",body:{question_arr:va}});(kn==null?void 0:kn.status)===0&&rt()})}const ka=Bt=>{if((Bt==null?void 0:Bt.name)!="\u5B9E\u8BAD\u9898")return!1;const hn=Bt.items;for(const ta of hn)for(const va of ta.shixun)if(va.challenge_test_set_score_rule==2)return!0;return!1};return Xr.createElement("div",null,Se&&Xr.createElement(x.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:Se,width:640,centered:!0,zIndex:10,className:ie.scoremodal,onCancel:()=>{se(!1)},onOk:()=>{var Bt,hn,ta;if(Ee!=null&&Ee.use_blank_score&&((ta=(hn=(Bt=Ee==null?void 0:Ee.exercise_question_types)==null?void 0:Bt.filter(va=>va.name==="\u586B\u7A7A\u9898"))==null?void 0:hn[0])!=null&&ta.Singlequestion)){Ct(!0);return}Wt(),se(!1)}},Xr.createElement("div",{className:"c-black"},"\u603B\u5206",Xr.createElement("span",{className:"ml10 c-light-primary"},(Ee==null?void 0:Ee.exercise_question_types.length)>0&&((bn=Ee==null?void 0:Ee.exercise_types)==null?void 0:bn.q_scores))),Xr.createElement("div",{className:ie.content},Xr.createElement("span",null,"\u9898\u578B\u540D\u79F0"),Xr.createElement("span",null,"\u5C0F\u9898\u603B\u6570"),Xr.createElement("span",null,"\u9898\u578B\u603B\u5206"),Xr.createElement("span",null,"\u64CD\u4F5C")),(la=($n=Ee==null?void 0:Ee.exercise_question_types)==null?void 0:$n.filter(Bt=>Bt.name!=="\u7EC4\u5408\u9898"))==null?void 0:la.map((Bt,hn)=>{var ta;return Xr.createElement("div",{key:hn,className:ie.items},Xr.createElement("span",null,Bt==null?void 0:Bt.name),Xr.createElement("span",null,(ta=Bt==null?void 0:Bt.items)==null?void 0:ta.length),Xr.createElement("span",null,Bt==null?void 0:Bt.score),Xr.createElement("span",null,"\u6BCF\u9898",Xr.createElement(Oe.Z,{disabled:ka(Bt),min:.1,precision:1,max:100,onChange:va=>{Bt.Singlequestion=va},defaultValue:Bt.Singlequestion,style:{width:90,height:38,margin:"0px 10px",display:"flex",alignItems:"center"}}),"\u5206"))})),Xr.createElement(x.default,{title:!1,footer:!1,centered:!0,open:Fn,zIndex:20,width:640,closable:!1,className:ie.scoremodal},Xr.createElement("div",{style:{marginTop:40}},"\u586B\u7A7A\u9898\u4E2D\u5B58\u5728",Xr.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"),Xr.createElement("div",{className:ie.bottom},Xr.createElement(We.ZP,{className:ie.no,onClick:()=>{Ct(!1)}},"\u53D6\u6D88"),Xr.createElement(We.ZP,{className:ie.yes,onClick:()=>{Wt(),Ct(!1),se(!1)}},"\u786E\u8BA4"))))},el=oe(62560),Jl=oe(99530),Xl=oe(78267),ql=oe(5290),tl=oe(30561),_l=oe(70659),Hn=oe(59301),$l=Object.defineProperty,eu=Object.defineProperties,tu=Object.getOwnPropertyDescriptors,xi=Object.getOwnPropertySymbols,nu=Object.prototype.hasOwnProperty,au=Object.prototype.propertyIsEnumerable,nl=(se,Se,Ee)=>Se in se?$l(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,co=(se,Se)=>{for(var Ee in Se||(Se={}))nu.call(Se,Ee)&&nl(se,Ee,Se[Ee]);if(xi)for(var Ee of xi(Se))au.call(Se,Ee)&&nl(se,Ee,Se[Ee]);return se},Io=(se,Se)=>eu(se,tu(Se)),Kr=(se,Se,Ee)=>new Promise((rt,bn)=>{var $n=Ct=>{try{Fn(Ee.next(Ct))}catch(Wt){bn(Wt)}},la=Ct=>{try{Fn(Ee.throw(Ct))}catch(Wt){bn(Wt)}},Fn=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then($n,la);Fn((Ee=Ee.apply(se,Se)).next())});const Ro=[{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"}],ru=({user:se,dispatch:Se,itemid:Ee,newExercisePaper:rt,setisedits:bn})=>{var $n,la,Fn,Ct,Wt,ka,Bt,hn,ta,va,kn,en,vn;const[Gt,_a]=(0,b.useState)(),[gn,na]=(0,b.useState)(!1),[jt,$a]=(0,b.useState)(),[Cr,vr]=(0,b.useState)(),Sr=(0,b.useRef)(),zn=(0,b.useRef)(),[sr,zr]=(0,b.useState)(),[Vr,$r]=(0,b.useState)(!1),[yr,xr]=(0,b.useState)(!1),[Tr,or]=(0,b.useState)(),[Nr,Or]=(0,b.useState)(!1),[Ur,eo]=(0,b.useState)(!1),[mo,fo]=(0,b.useState)(!1),[Ao,So]=(0,b.useState)(!1),[yo,ii]=(0,b.useState)(!1),[Ii,vi]=(0,b.useState)(!1),[Ru,du]=(0,b.useState)(!1),[il,ll]=(0,b.useState)(!1),[qo]=Be.default.useForm(),[ul,pi]=(0,b.useState)(!1),cu=(0,b.useRef)(null),[to]=(0,he.useSearchParams)(),[hi,_o]=(0,b.useState)(!1),Ni=to.get("isIntelligentAssistant"),[Fo,Oi]=(0,b.useState)(!1);(0,b.useEffect)(()=>{oo(),Se({type:"globalSetting/footerToggle",payload:!1})},[]),(0,b.useEffect)(()=>{bn(yr)},[yr]),(0,b.useEffect)(()=>{jt!=null&&jt.question_id&&(vr(jt==null?void 0:jt.question_score),zn.current=jt==null?void 0:jt.question_id)},[jt]);const Do=Pn=>Kr(void 0,null,function*(){let ha=yield Se({type:"newExercisePaper/getTagDiscipline",payload:{sub_discipline_id:Pn}});or(ha)});function oo(){return Kr(this,null,function*(){var Pn,ha,ir,Er,wr,kr;$r(!0),na(!0);const Lr=yield Se({type:"newExercisePaper/editExercise",payload:{id:Ee}});$r(!1),na(!1),_a(Lr),(Pn=Lr==null?void 0:Lr.exercise)!=null&&Pn.sub_discipline_id&&Do((ha=Lr==null?void 0:Lr.exercise)==null?void 0:ha.sub_discipline_id),$a(Io(co({},(wr=(Er=(ir=Lr==null?void 0:Lr.exercise_question_types)==null?void 0:ir[0])==null?void 0:Er.items)==null?void 0:wr[0]),{index:1})),zr(Io(co({},(kr=Lr==null?void 0:Lr.exercise_question_types)==null?void 0:kr[0]),{indexs:1}))})}function Vo(Pn,ha=!0){return Kr(this,null,function*(){var ir,Er,wr,kr;ha&&($r(!0),na(!0));const Lr=yield Se({type:"newExercisePaper/editExercise",payload:{id:Ee}});_a(Lr);let vo=[];(ir=Lr==null?void 0:Lr.exercise_question_types)==null||ir.map(ao=>{var Uo;(Uo=ao==null?void 0:ao.items)==null||Uo.map((Si,Pi)=>{vo.push(Io(co({},Si),{index:Pi+1}))})});let Go=(Er=vo.filter(ao=>ao.question_id===(Pn==null?void 0:Pn.id)))==null?void 0:Er[0],ti=(kr=((wr=Lr==null?void 0:Lr.exercise_question_types)==null?void 0:wr.map((ao,Uo)=>{if((Go==null?void 0:Go.question_type)===(ao==null?void 0:ao.question_type))return Io(co({},ao),{indexs:Uo+1})})).filter(ao=>ao))==null?void 0:kr[0];zr(co({},ti)),$a(co({},Go)),vr(Go==null?void 0:Go.question_score),$r(!1),na(!1)})}function Qo(Pn){return Kr(this,null,function*(){var ha;let ir=Io(co({},Pn),{difficulty:(Pn==null?void 0:Pn.difficulty)||2,item_type:Pn.question_type,sub_discipline_id:((ha=Pn==null?void 0:Pn.sub_discipline_id)==null?void 0:ha[1])||"",tag_discipline_ids:[],repeat_answer:!Pn.repeat_answer}),Er={};Pn.question_type===8&&(Er=Io(co({},Pn),{hack:Io(co({},Pn==null?void 0:Pn.hack),{difficult:Pn.difficulty}),hack_codes:Io(co({},Pn.hack_codes),{code:xo.Base64.encode(Pn.hack_codes.code)}),hack_sets:[co({},Pn.hack_sets)],is_blank:!0})),Pn.tag_discipline_ids&&(ir.tag_discipline_ids=Array.isArray(Pn.tag_discipline_ids)?Pn.tag_discipline_ids:[Pn.tag_discipline_ids],Er.tag_discipline_ids=Array.isArray(Pn.tag_discipline_ids)?Pn.tag_discipline_ids:[Pn.tag_discipline_ids]),sessionStorage.projectFill&&(Er.hack_identifier=sessionStorage.projectFill);let wr=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/examination_banks_item_banks/create_item_bank.json`,{method:"post",body:Pn.question_type===8?Er:ir});(wr==null?void 0:wr.status)===0&&(xr(!1),Vo(wr)),(0,ge.Vf)("#question-scroll-id")})}function gu(Pn){return Kr(this,null,function*(){na(!0);let ha=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/sort_question_type.json`,{method:"post",body:{question_type:Pn}});na(!1),(ha==null?void 0:ha.status)===0&&oo()})}const mu=(Pn,ha,ir)=>Kr(void 0,null,function*(){var Er;if(Pn.length===0){be.ZP.warning("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),ir();return}const wr=yield(0,le.Hb)(Ee,(Er=Pn[0])==null?void 0:Er.file,ha);wr.status===0&&(be.ZP.success(`\u6210\u529F\u5BFC\u5165${wr==null?void 0:wr.success}\u6761`),Or(!1),oo()),ir()}),fu=(Pn,ha)=>Kr(void 0,null,function*(){Gt.exercise_types.q_scores=Number(Gt.exercise_types.q_scores)+Number(Pn)-Number(ha==null?void 0:ha.question_score);const ir=yield(0,le.kF)({score:(0,Xl.round)(Pn,1),question_id:ha==null?void 0:ha.question_id});if((ir==null?void 0:ir.status)===0){be.ZP.success("\u4FEE\u6539\u6210\u529F"),Vo({id:zn.current},!1);return}(ir==null?void 0:ir.status)===-1&&vr(ha==null?void 0:ha.question_score)});function ko(){return Kr(this,null,function*(){x.default.confirm({title:"\u63D0\u793A",content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",okText:"\u786E\u5B9A",centered:!0,className:ie.modalconfirm,onOk:()=>Kr(this,null,function*(){if(jt.question_id){let Pn=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/examination_banks_item_banks/${jt.question_id}.json`,{method:"delete"});(Pn==null?void 0:Pn.status)===0&&(oo(),xr(!1))}else $a({}),xr(!1),oo()}),cancelText:"\u53D6\u6D88"})})}const $o=Pn=>Kr(void 0,null,function*(){return yield(0,fe.ZP)(`/api/examination_banks/${Ee}/examination_banks_item_banks.json`,{method:"post",body:co({},Pn)})}),{overflow:ei,handleMouseEnter:Mi,handleMouseLeave:vu}=(0,Jl.I)(),Ri=Pn=>Kr(void 0,null,function*(){var ha,ir;na(!0);let Er=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/sort_question_type.json`,{method:"post",body:{question_type:Pn}});if(na(!1),(Er==null?void 0:Er.status)===0){const wr=yield Se({type:"newExercisePaper/editExercise",payload:{id:Ee}});_a(wr),(ha=wr==null?void 0:wr.exercise)!=null&&ha.sub_discipline_id&&Do((ir=wr==null?void 0:wr.exercise)==null?void 0:ir.sub_discipline_id)}}),Bo=()=>yr?(Oi(!0),!0):!1;(0,b.useEffect)(()=>{if(Fo){const Pn=setTimeout(()=>{Oi(!1)},2e3);return()=>clearTimeout(Pn)}},[Fo]);const li=(Pn,ha)=>Hn.createElement(y.default,null,Hn.createElement(y.default.Item,{key:"0",onClick:()=>sl(Pn==null?void 0:Pn.question_type)},Hn.createElement("span",{className:ie.moreSpan},"\u65B0\u589E")),Hn.createElement(y.default.Item,{key:"1",disabled:ha===0,onClick:()=>Kr(void 0,null,function*(){if(ha===0||Bo())return;let ir=(0,ge.rz)(Gt==null?void 0:Gt.exercise_question_types,ha,ha-1);yield Ri(ir.map(Er=>Er.name))})},Hn.createElement("span",{className:ie.moreSpan},"\u4E0A\u79FB")),Hn.createElement(y.default.Item,{key:"2",disabled:ha===(Gt==null?void 0:Gt.exercise_question_types.length)-1,onClick:()=>Kr(void 0,null,function*(){if(ha===(Gt==null?void 0:Gt.exercise_question_types.length)-1||Bo())return;let ir=(0,ge.rz)(Gt==null?void 0:Gt.exercise_question_types,ha,ha+1);yield Ri(ir.map(Er=>Er.name))})},Hn.createElement("span",{className:ie.moreSpan},"\u4E0B\u79FB")),Hn.createElement(y.default.Item,{key:"3",onClick:()=>{var ir;qo.setFieldsValue({name:Pn.name,item_type_en:(ir=Ro.find(Er=>Er.id==Pn.question_type))==null?void 0:ir.nameType}),pi(!0)}},Hn.createElement("span",{className:ie.moreSpan},"\u91CD\u547D\u540D"))),sl=Pn=>{var ha,ir,Er,wr,kr,Lr,vo,Go,Ti,ti,ao,Uo,Si,Pi,ki,dl,cl,Ei,gl,ml,ui,fl,vl,Gi,pl,hl,hu,Sl;if(!Bo()){if(Pn===5){So(!0),ii(!0);return}if(Pn===6){if(to.get("pageType")=="course")to.get("updateType")=="course"?he.history.push(`/problems/newcreate?express_id=${(ha=Gt==null?void 0:Gt.exercise)==null?void 0:ha.id}&callback_url=/paperlibrary/add/${(ir=Gt==null?void 0:Gt.exercise)==null?void 0:ir.id}?type=2&pageType=course&updateType=course&courseId=${to.get("courseId")}&stageId=${to.get("stageId")}`):he.history.push(`/problems/newcreate?express_id=${(Er=Gt==null?void 0:Gt.exercise)==null?void 0:Er.id}&callback_url=/paperlibrary/add/${(wr=Gt==null?void 0:Gt.exercise)==null?void 0:wr.id}?type=2&pageType=course&courseId=${to.get("courseId")}&stageId=${to.get("stageId")}`);else{let Tu=(Lr=(kr=rt==null?void 0:rt.editData)==null?void 0:kr.exercise)!=null&&Lr.set_question_sub_discipline?`/problems/newcreate?express_id=${(vo=Gt==null?void 0:Gt.exercise)==null?void 0:vo.id}&callback_url=${window.location.pathname+window.location.search}&discipline_id=${(Ti=(Go=rt==null?void 0:rt.editData)==null?void 0:Go.exercise)==null?void 0:Ti.discipline_id}&sub_discipline_id=${(ao=(ti=rt==null?void 0:rt.editData)==null?void 0:ti.exercise)==null?void 0:ao.sub_discipline_id}`:`/problems/newcreate?express_id=${(Uo=Gt==null?void 0:Gt.exercise)==null?void 0:Uo.id}&callback_url=${window.location.pathname+window.location.search}`;he.history.push(Tu)}return}xr(!0),$a(Pn===2?{question_type:Pn,isadd:!0,repeat_answer:!0,choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],question_choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],difficulty:2,standard_answers:[],question_score:"",tag_discipline_ids:[],question_title:"",discipline_id:(Pi=(Si=rt==null?void 0:rt.editData)==null?void 0:Si.exercise)!=null&&Pi.set_question_sub_discipline?(dl=(ki=rt==null?void 0:rt.editData)==null?void 0:ki.exercise)==null?void 0:dl.discipline_id:0,sub_discipline_id:(Ei=(cl=rt==null?void 0:rt.editData)==null?void 0:cl.exercise)!=null&&Ei.set_question_sub_discipline?(ml=(gl=rt==null?void 0:rt.editData)==null?void 0:gl.exercise)==null?void 0:ml.sub_discipline_id:0,analysis:""}:{question_type:Pn,question_choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),standard_answers:[],repeat_answer:!0,difficulty:2,isadd:!0,tag_discipline_ids:[],question_score:"",analysis:"",sub_item_banks:[],question_title:"",is_ordered:!0,use_keywords:!1,use_blank_score:!0,keywords:[],allow_student_debug:!1,submit_rule:1,downcase:!0,no_space:!0,discipline_id:(fl=(ui=rt==null?void 0:rt.editData)==null?void 0:ui.exercise)!=null&&fl.set_question_sub_discipline?(Gi=(vl=rt==null?void 0:rt.editData)==null?void 0:vl.exercise)==null?void 0:Gi.discipline_id:0,sub_discipline_id:(hl=(pl=rt==null?void 0:rt.editData)==null?void 0:pl.exercise)!=null&&hl.set_question_sub_discipline?(Sl=(hu=rt==null?void 0:rt.editData)==null?void 0:hu.exercise)==null?void 0:Sl.sub_discipline_id:0})}},pu=[{key:1,label:"\u6279\u91CF\u5BFC\u5165",onClick:()=>{Bo()||Or(!0)}},{key:2,label:Hn.createElement("div",null,Hn.createElement("img",{width:26,style:{position:"absolute",top:-2},src:tl.$}),Hn.createElement("span",null,"\u667A\u80FD\u5BFC\u5165")),onClick:()=>{Bo()||eo(!0)}}];return Hn.createElement("div",null,Hn.createElement(Ge.Z,{spinning:Vr},Hn.createElement("div",{className:ie.bg},Hn.createElement("div",{style:{textAlign:"center"}},(($n=Gt==null?void 0:Gt.exercise_types)==null?void 0:$n.q_counts)===0&&!yr&&Hn.createElement(Pe.Z,{styles:{marginTop:180},customText:Hn.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",Hn.createElement("span",{className:"c-light-primary"},"\u5E95\u90E8\u64CD\u4F5C\u680F"),"\u8FDB\u884C\u6DFB\u52A0~")}),(((la=Gt==null?void 0:Gt.exercise_types)==null?void 0:la.q_counts)>0||yr)&&Hn.createElement("div",{style:{marginTop:20,borderTop:"1px solid #DCDCDC",display:"block",alignItems:"stretch"}},Hn.createElement("div",{style:{backgroundColor:"#F6F7F9",display:"inline-block",position:"sticky",top:0}},Hn.createElement("div",{className:ie.left},Hn.createElement("div",{className:ie.leftAction},Hn.createElement(We.ZP,{onClick:()=>{Bo()||fo(!0)},className:ie.Button},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C")),Hn.createElement("div",{className:ie.scrollWrapper,style:{overflow:ei},onMouseEnter:Mi,onMouseLeave:vu},(Fn=Gt==null?void 0:Gt.exercise_question_types)==null?void 0:Fn.map((Pn,ha)=>Hn.createElement("div",{key:ha,className:"mb30"},Hn.createElement("div",{className:ie.title},Hn.createElement("div",{className:ie.titleleft},Hn.createElement("span",{style:{color:"#000000",fontWeight:400,fontSize:12}}," ",(0,ge.EM)(ha+1),"\u3001\u3010",Pn.name,"\u3011"),Hn.createElement("span",{style:{color:"#464F66",fontSize:12}},"\uFF08",Pn.count,"\u5C0F\u9898\uFF0C\u5171",Pn.score,"\u5206\uFF09")),Hn.createElement(z.Z,{dropdownRender:()=>li(Pn,ha),placement:"bottomLeft"},Hn.createElement("div",{className:ie.more_style},Hn.createElement("i",{className:"iconfont icon-sandian font12"})))),Hn.createElement(Vt,{handleEditing:()=>{Oi(!0)},isedit:yr,setBigqitem:zr,bigitem:Io(co({},Pn),{indexs:ha+1}),setqitem:ir=>Kr(void 0,null,function*(){var Er;(Er=Sr.current)==null||Er.blur(),$a(ir)}),qitem:jt,Itemid:Ee,getdata:Vo,data:Pn.items})))))),Hn.createElement("div",{id:"question-scroll-id",style:{overflow:yr?"hidden":"auto"},className:ie.right,ref:cu},!(jt!=null&&jt.isadd)&&Hn.createElement("div",{className:ie.title},!yr&&Hn.createElement("div",{style:{flex:1}},Hn.createElement("span",{style:{color:"#000000",fontWeight:600,fontSize:16}}," ",(sr==null?void 0:sr.indexs)&&(0,ge.EM)(sr==null?void 0:sr.indexs),"\u3001\u3010",sr==null?void 0:sr.name,"\u3011"),Hn.createElement(ne.Z,{title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0"},Hn.createElement("i",{className:`${ie.edit} iconfont icon-bianji_Hover mr5 ml5 font18`,onClick:()=>{var Pn;qo.setFieldsValue({name:sr.name,item_type_en:(Pn=Ro.find(ha=>ha.id==sr.question_type))==null?void 0:Pn.nameType}),pi(!0)}})),Hn.createElement("span",{style:{color:"#464F66",fontSize:16,fontWeight:400}},"\uFF08",sr==null?void 0:sr.count,"\u5C0F\u9898\uFF0C\u5171",sr==null?void 0:sr.score,"\u5206\uFF09"),(jt==null?void 0:jt.question_type)===6&&Hn.createElement("span",{onClick:()=>_o(2),className:"current c-light-primary font14 bold-400"},"\u6279\u91CF\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00"),(jt==null?void 0:jt.question_type)===5&&Hn.createElement(ke.default,{defaultChecked:(Wt=(Ct=rt==null?void 0:rt.editData)==null?void 0:Ct.exercise)==null?void 0:Wt.show_challenge_task_pass,onChange:Pn=>Kr(void 0,null,function*(){let ha=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/update_show_columns.json`,{method:"post",body:{show_challenge_task_pass:Pn.target.checked}});(ha==null?void 0:ha.status)===0&&(be.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Vo({id:zn.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u9898\u76EE\u63CF\u8FF0"),(jt==null?void 0:jt.question_type)===6&&Hn.createElement("span",{style:{marginLeft:20},onClick:()=>{var Pn,ha,ir,Er;x.default.confirm({title:"\u7F16\u7A0B\u9898\u8BBE\u7F6E",icon:null,centered:!0,closable:!0,footer:null,content:Hn.createElement("div",null,(jt==null?void 0:jt.question_type)===6&&Hn.createElement(ke.default,{defaultChecked:(ha=(Pn=rt==null?void 0:rt.editData)==null?void 0:Pn.exercise)==null?void 0:ha.show_hack_sets,onChange:wr=>Kr(void 0,null,function*(){let kr=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/update_show_columns.json`,{method:"post",body:{show_hack_sets:wr.target.checked}});(kr==null?void 0:kr.status)===0&&(be.ZP.info("\u8BBE\u7F6E\u6210\u529F"),x.default.destroyAll(),Vo({id:zn.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u6D4B\u8BD5\u7528\u4F8B"),Hn.createElement("br",null),(jt==null?void 0:jt.question_type)===6&&Hn.createElement(ke.default,{defaultChecked:(Er=(ir=rt==null?void 0:rt.editData)==null?void 0:ir.exercise)==null?void 0:Er.show_hack_description,onChange:wr=>Kr(void 0,null,function*(){let kr=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/update_show_columns.json`,{method:"post",body:{show_hack_description:wr.target.checked}});(kr==null?void 0:kr.status)===0&&(be.ZP.info("\u8BBE\u7F6E\u6210\u529F"),x.default.destroyAll(),Vo({id:zn.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")),Hn.createElement("div",{style:{display:"flex",alignItems:"center"}},(jt==null?void 0:jt.question_type)===5&&!yr&&Hn.createElement("a",{className:ie.shixun,href:`/shixuns/${jt==null?void 0:jt.shixun_identifier}/challenges?exercise=true`,target:"_blank"},Hn.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u8BD5\u9898\u8BE6\u60C5"),!yr&&[0,1,2,4,6].includes(jt==null?void 0:jt.question_type)&&Hn.createElement(Be.default.Item,{label:"\u5206\u503C",style:{margin:"0 20px"},required:!0},Hn.createElement(Oe.Z,{precision:1,ref:Sr,onChange:Pn=>vr(Pn),value:Cr,onBlur:Pn=>{fu(Pn.target.value,jt)}})),!yr&&Hn.createElement(ne.Z,{title:"\u5220\u9664"},Hn.createElement("span",{onClick:()=>{ko()},style:{marginRight:20},className:`${ie.delete} mr5 `},"\u5220\u9664")),!yr&&Hn.createElement(ne.Z,{title:"\u7F16\u8F91\u8BD5\u9898"},Hn.createElement("span",{onClick:()=>{var Pn,ha,ir;(jt==null?void 0:jt.question_type)===6?to.get("pageType")=="course"?to.get("updateType")=="course"?he.history.push(`/problems/newedit/${jt==null?void 0:jt.hack_identifier}?type=exercises&express_id=${(Pn=Gt==null?void 0:Gt.exercise)==null?void 0:Pn.id}&question_id=${jt==null?void 0:jt.question_id}&score=${jt==null?void 0:jt.question_score}&exercise=true&callback_url=${location.pathname}?type=2&pageType=course&updateType=course&courseId=${to.get("courseId")}&stageId=${to.get("stageId")}`):he.history.push(`/problems/newedit/${jt==null?void 0:jt.hack_identifier}?type=exercises&express_id=${(ha=Gt==null?void 0:Gt.exercise)==null?void 0:ha.id}&question_id=${jt==null?void 0:jt.question_id}&score=${jt==null?void 0:jt.question_score}&exercise=true&callback_url=${location.pathname}?type=2&pageType=course&courseId=${to.get("courseId")}&stageId=${to.get("stageId")}`):he.history.push(`/problems/newedit/${jt==null?void 0:jt.hack_identifier}?type=exercises&express_id=${(ir=Gt==null?void 0:Gt.exercise)==null?void 0:ir.id}&question_id=${jt==null?void 0:jt.question_id}&score=${jt==null?void 0:jt.question_score}&exercise=true&callback_url=${window.location.pathname+window.location.search}`):xr(!0)},className:`${ie.edit} mr5 `},"\u7F16\u8F91")))),!yr&&Hn.createElement("div",null,Hn.createElement("div",{className:ie.qcount},Hn.createElement("span",{className:ie.score},jt==null?void 0:jt.question_score,"\u5206"),Hn.createElement(lt.Z,{className:ie.qtitle,value:(jt==null?void 0:jt.index)+`\u3001${(jt==null?void 0:jt.question_type)==8?(ka=jt==null?void 0:jt.program_attr)==null?void 0:ka.description:jt==null?void 0:jt.question_title}`}),(jt==null?void 0:jt.high_resources_consume)&&Hn.createElement(_l.Z,{type:"shixun",style:{marginLeft:10}})),(jt==null?void 0:jt.question_type)===6&&Hn.createElement(Ue.Z,{onEdit:()=>_o(1),className:"mt10",dataSource:(jt==null?void 0:jt.languages)||[]}),Hn.createElement(Fi,{newExercisePaper:rt,TagDiscipline:Tr,qitem:jt})),yr&&Hn.createElement("div",null,(jt==null?void 0:jt.question_type)<=1&&Hn.createElement(ma,{getTagData:Do,deleteitem:ko,seveeditor:Qo,exerciseitem:Gt,TagDiscipline:Tr,setisedit:xr,qitem:jt,init:oo,showTip:Fo}),(jt==null?void 0:jt.question_type)===5&&Hn.createElement(Ki,{setqitem:$a,deleteitem:ko,seveeditor:Qo,exerciseitem:Gt,TagDiscipline:Tr,setisedit:xr,qitem:jt,showTip:Fo}),(jt==null?void 0:jt.question_type)===3&&Hn.createElement(Ka,{getTagData:Do,deleteitem:ko,seveeditor:Qo,exerciseitem:Gt,TagDiscipline:Tr,setisedit:xr,qitem:jt,init:oo,showTip:Fo}),(jt==null?void 0:jt.question_type)===2&&Hn.createElement(Ut,{getTagData:Do,deleteitem:ko,seveeditor:Qo,exerciseitem:Gt,TagDiscipline:Tr,setisedit:xr,qitem:jt,init:oo,showTip:Fo}),(jt==null?void 0:jt.question_type)===4&&Hn.createElement(Yl,{getTagData:Do,deleteitem:ko,seveeditor:Qo,exerciseitem:Gt,TagDiscipline:Tr,setisedit:xr,qitem:jt,init:oo,showTip:Fo}),(jt==null?void 0:jt.question_type)===7&&Hn.createElement(ho,{getTagData:Do,deleteitem:ko,seveeditor:Qo,exerciseitem:Gt,TagDiscipline:Tr,setisedit:xr,qitem:jt,init:oo,showTip:Fo}),(jt==null?void 0:jt.question_type)===8&&Hn.createElement(ri,{getTagData:Do,deleteitem:ko,seveeditor:Qo,exerciseitem:Gt,TagDiscipline:Tr,setisedit:xr,qitem:jt,init:oo,showTip:Fo}))))))),Hn.createElement("div",{className:ie.bottomdiv},Hn.createElement("div",{style:{width:1200,margin:"0px auto",display:"flex",justifyContent:"space-between",alignItems:"center"}},Hn.createElement("span",{className:ie.spanBtn,onClick:()=>{Bo()||(So(!0),ii(!0))}},"\u9898\u5E93\u9009\u9898"),Hn.createElement(z.Z,{menu:{items:pu}},Hn.createElement("span",{className:ie.spanBtn},"\u5BFC\u5165\u8BD5\u9898")),Hn.createElement("span",{className:ie.spanBtn,onClick:()=>Kr(void 0,null,function*(){var Pn;if(Bo())return;const ha=yield(0,le.JP)(Ee);ha.status===0&&window.open(`/classrooms/coursesId/exercise/${ha.exercise_id}/${(Pn=se.userInfo)==null?void 0:Pn.login}/initate_answer`)})},"\u6A21\u62DF\u8003\u8BD5"),Hn.createElement("span",{className:ie.spanBtn,onClick:()=>{if(!Bo()){if(Ni){window.open(`/paperlibrary/see/${Ee}?isIntelligentAssistant=true`);return}window.open(`/paperlibrary/see/${Ee}`)}}},"\u8BD5\u5377\u9884\u89C8"),Ro==null?void 0:Ro.map((Pn,ha)=>Hn.createElement(We.ZP,{key:ha,className:ie.addQuestionBtn,type:"primary",onClick:()=>{sl(Pn.id)}},Pn.name)),Hn.createElement(We.ZP,{className:ie.saveBtn,loading:il,onClick:()=>Kr(void 0,null,function*(){var Pn,ha;const ir=Number(Gt.exercise_types.q_scores);[100,120,150].includes(ir)||(yield new Promise((Lr,vo)=>{x.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Hn.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",Hn.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},ir),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>Kr(void 0,null,function*(){Lr("")}),onCancel:()=>{vo()}})}));const Er=()=>Kr(void 0,null,function*(){if(to.get("pageType")=="course")if(to.get("updateType")=="course")be.ZP.info("\u7F16\u8F91\u6210\u529F"),he.history.replace(`/paths/${to.get("courseId")}`);else{if(Bo())return;(0,ql._C)({id:to.get("stageId"),subject_id:to.get("courseId"),homework_type:"exercise",examination_bank_ids:[Ee]}).then(Lr=>{(Lr==null?void 0:Lr.status)==0&&(be.ZP.info("\u521B\u5EFA\u6210\u529F"),he.history.replace(`/paths/${to.get("courseId")}`))})}else{if(Bo())return;if(Ni){ll(!0);const Lr=yield(0,fe.ZP)("/api/intelligent_imports/save_recognize_papers.json",{method:"post",body:{examination_bank_id:Ee}});if(ll(!1),(Lr==null?void 0:Lr.status)!==0)return}be.ZP.info("\u4FDD\u5B58\u6210\u529F"),he.history.push("/paperlibrary?defaultActiveKey=0")}});let wr=(ha=(Pn=Gt==null?void 0:Gt.exercise_question_types)==null?void 0:Pn.filter(Lr=>Lr.question_type===5)[0])==null?void 0:ha.items,kr=0;wr==null||wr.map(Lr=>{Lr.high_resources_consume&&(kr=kr+1)}),console.log(kr),kr>0?Se({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u63D0\u793A",count:kr,fn:()=>{Er()}}}):Er()})},Hn.createElement("i",{className:"iconfont icon-baocun1",style:{fontSize:15,marginRight:5}}),"\u4FDD\u5B58\u8BD5\u5377"))),Hn.createElement(Ci,{setScoreShow:fo,ScoreShow:mo,exerciseitem:Gt,getdata:oo}),Ao&&Hn.createElement(el.Z,{setScoreShow:So,isshixuns:yo,ScoreShow:Ao,SpecificDifficulty:(Bt=Gt==null?void 0:Gt.exercise)==null?void 0:Bt.difficulty,isloadings:Ii,onOk:(Pn,ha,ir,Er)=>Kr(void 0,null,function*(){vi(!0);let kr=yield $o({exam_id:Ee,item_bank_ids:Pn,shixun_ids:ha});vi(!1),(kr==null?void 0:kr.status)===0&&x.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u65B0\u52FE\u9009\u7684\u8BD5\u9898\u5DF2\u7ECF\u6DFB\u52A0\u5230\u8BD5\u5377\uFF0C\u5982\u679C\u9700\u8981\u7EE7\u7EED\u6DFB\u52A0\u65B0\u8BD5\u9898\u8BF7\u70B9\u51FB\u201C\u7EE7\u7EED\u9009\u9898\u201D\uFF0C\u5C06\u56DE\u5230\u60A8\u4E0A\u6B21\u64CD\u4F5C\u7684\u9009\u9898\u9875\u9762",okText:"\u7EE7\u7EED\u9009\u9898",cancelText:"\u8FD4\u56DE\u8BD5\u5377",onOk:()=>{oo()},onCancel:()=>{So(!1),oo()}})})}),Hn.createElement(Wl.Z,{sub_discipline_id:(hn=Gt==null?void 0:Gt.exercise)!=null&&hn.sub_discipline_id?[(ta=Gt==null?void 0:Gt.exercise)==null?void 0:ta.discipline_id,(va=Gt==null?void 0:Gt.exercise)==null?void 0:va.sub_discipline_id]:[],visible:Nr,onCancel:()=>Or(!1),onOk:mu}),Hn.createElement(x.default,{centered:!0,title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0",open:ul,width:500,onOk:()=>qo.submit(),onCancel:()=>pi(!1)},Hn.createElement(Be.default,{form:qo,initialValues:{},onFinish:Pn=>Kr(void 0,null,function*(){(yield(0,le.RK)(co({id:Ee},Pn))).status==0&&(be.ZP.success("\u4FEE\u6539\u6210\u529F"),oo(),pi(!1))})},Hn.createElement(Be.default.Item,{style:{marginBottom:0},name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9898\u578B\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"},{validator(Pn,ha){var ir,Er,wr,kr;const Lr=(ir=Ro==null?void 0:Ro.find(vo=>vo.nameType==qo.getFieldValue("item_type_en")))==null?void 0:ir.id;return(kr=(wr=(Er=Gt==null?void 0:Gt.exercise_question_types)==null?void 0:Er.filter(vo=>vo.question_type!=Lr))==null?void 0:wr.map(vo=>vo==null?void 0:vo.name))!=null&&kr.includes(ha)?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()}}]},Hn.createElement(Fe.default,{size:"large",maxLength:10,showCount:!0})),Hn.createElement(Be.default.Item,{hidden:!0,name:"item_type_en"},Hn.createElement(Fe.default,{size:"large"})))),Hn.createElement(re.Z,{placement:"bottom",height:"100%",destroyOnClose:!0,closable:!1,className:"body-overflow-hidden",open:Ur},Hn.createElement("div",{style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},"\u667A\u80FD\u5BFC\u5165"),Hn.createElement(tl.Z,{stickyTop:-24,subDisciplineId:(kn=Gt==null?void 0:Gt.exercise)!=null&&kn.sub_discipline_id?[(en=Gt==null?void 0:Gt.exercise)==null?void 0:en.discipline_id,(vn=Gt==null?void 0:Gt.exercise)==null?void 0:vn.sub_discipline_id]:[],onCancel:()=>eo(!1),mode:2,gather:{exam_id:Ee},onSuccess:()=>{eo(!1),oo()}}),Hn.createElement("div",{style:{height:70}})),Hn.createElement(Ue.Q,{visible:!!hi,setVisible:_o,tip:hi===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:hi===1?jt==null?void 0:jt.languages:[],onOk:Pn=>Kr(void 0,null,function*(){const ha={languages:Pn};hi===1?ha.hack_id=jt==null?void 0:jt.hack_id:ha.exam_id=Ee,(yield(0,fe.ZP)("/api/problems/update_languages.json",{method:"post",body:ha})).status===0&&(be.ZP.success("\u4FEE\u6539\u6210\u529F"),Vo({id:zn.current}),_o(!1))})}))};var wi=(0,he.connect)(({user:se,newExercisePaper:Se,dispatch:Ee})=>({user:se,newExercisePaper:Se,dispatch:Ee}))(ru),Di=oe(60636),ou=oe(3607),al=oe(76832),Ua=oe(59301),iu=Object.defineProperty,lu=Object.defineProperties,uu=Object.getOwnPropertyDescriptors,mi=Object.getOwnPropertySymbols,oi=Object.prototype.hasOwnProperty,Li=Object.prototype.propertyIsEnumerable,To=(se,Se,Ee)=>Se in se?iu(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,Jo=(se,Se)=>{for(var Ee in Se||(Se={}))oi.call(Se,Ee)&&To(se,Ee,Se[Ee]);if(mi)for(var Ee of mi(Se))Li.call(Se,Ee)&&To(se,Ee,Se[Ee]);return se},rl=(se,Se)=>lu(se,uu(Se)),Xo=(se,Se,Ee)=>new Promise((rt,bn)=>{var $n=Ct=>{try{Fn(Ee.next(Ct))}catch(Wt){bn(Wt)}},la=Ct=>{try{Fn(Ee.throw(Ct))}catch(Wt){bn(Wt)}},Fn=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then($n,la);Fn((Ee=Ee.apply(se,Se)).next())});const fi=()=>{const[se,Se]=(0,b.useState)([]);return(0,b.useEffect)(()=>{Xo(void 0,null,function*(){const rt=yield(0,le.d1)({source:"new_question"});rt!=null&&rt.disciplines&&Se((0,E.L)(rt==null?void 0:rt.disciplines))})},[]),se},ol=({user:se,newExercisePaper:Se,dispatch:Ee})=>{var rt,bn,$n,la,Fn,Ct,Wt,ka,Bt,hn,ta,va;const kn=(0,he.useParams)(),en=fi(),[vn]=Be.default.useForm(),[Gt,_a]=(0,b.useState)(),[gn,na]=(0,b.useState)(!1),[jt,$a]=(0,b.useState)(1),[Cr,vr]=(0,b.useState)(""),[Sr]=(0,he.useSearchParams)(),[zn,sr]=(0,b.useState)(!1),[zr,Vr]=(0,b.useState)(!1),[$r,yr]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{Sr.get("type")==="2"&&(vr(kn.id),$a(2))},[Sr.get("type")]),(0,b.useEffect)(()=>{if(kn.id){if(!en.length)return;Xo(void 0,null,function*(){var Tr,or,Nr;na(!0);const Or=yield(0,le.Di)({id:kn.id});na(!1);const Ur=(Tr=Or==null?void 0:Or.exercise)==null?void 0:Tr.sub_discipline_id;let eo=[];for(const Ao of en)for(const So of Ao.children)So.value===Ur&&(eo=[Ao.value,So.value]);const mo=(or=Or==null?void 0:Or.exercise)==null?void 0:or.time,fo=rl(Jo({},Or.exercise),{sub_discipline_id:eo,time:mo===-1?null:mo});_a(fo),yr((Nr=Or.exercise)==null?void 0:Nr.set_question_sub_discipline)})}else _a({time:60,difficulty:2});Ee({type:"globalSetting/footerToggle",payload:!1})},[en]),Ua.createElement("div",{style:{background:"#ffffff",marginTop:-8,padding:8,minHeight:"100vh",paddingBottom:64}},Ua.createElement("section",{className:"edu-container"},Ua.createElement("section",{className:"animated fadeIn"},Ua.createElement("aside",{style:{marginTop:15}},Ua.createElement(Ie.Z,{separator:">"},Ua.createElement(Ie.Z.Item,null,Ua.createElement(he.Link,{to:"/paperlibrary"},"\u8BD5\u5377\u5E93")),Ua.createElement(Ie.Z.Item,null,"\u4EBA\u5DE5\u7EC4\u5377")))),Ua.createElement("div",{className:"bg-white"},Ua.createElement("div",{style:{display:"flex",justifyContent:"center",paddingTop:20,alignItems:"center"}},Ua.createElement("div",{onClick:()=>{if(zn){be.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002");return}$a(1)},className:jt===1?Ve.Z.selectdiv:Ve.Z.divitem},Ua.createElement(Di.Z,{number:1,active:jt===1,className:"mr10"}),Ua.createElement("span",null,"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F")),Ua.createElement("div",{style:{width:188,border:"1px dotted #9096A3",margin:"0px 30px",height:1}}),Ua.createElement("div",{onClick:()=>{if(!kn.id&&!Cr){be.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u57FA\u7840\u4FE1\u606F\u518D\u65B0\u5EFA\u8BD5\u9898");return}$a(2),!Cr&&vr(kn.id)},className:jt!==1?Ve.Z.selectdiv:Ve.Z.divitem},Ua.createElement(Di.Z,{number:2,active:jt!==1,className:"mr10"}),Ua.createElement("span",null,"\u7F16\u8F91\u8BD5\u9898"))),jt===2&&Ua.createElement("div",{className:"tc"},Ua.createElement(ou.Z,{defaultValue:(bn=(rt=Se==null?void 0:Se.editData)==null?void 0:rt.exercise)==null?void 0:bn.exercise_name,onFinish:xr=>Xo(void 0,null,function*(){var Tr,or,Nr,Or,Ur,eo,mo,fo,Ao,So,yo,ii;return xr.trim()===((or=(Tr=Se==null?void 0:Se.editData)==null?void 0:Tr.exercise)==null?void 0:or.exercise_name)?!0:(yield(0,le.w0)({id:`${(Or=(Nr=Se==null?void 0:Se.editData)==null?void 0:Nr.exercise)==null?void 0:Or.id}`,sub_discipline_id:(eo=(Ur=Se==null?void 0:Se.editData)==null?void 0:Ur.exercise)==null?void 0:eo.sub_discipline_id,time:`${(fo=(mo=Se==null?void 0:Se.editData)==null?void 0:mo.exercise)==null?void 0:fo.time}`,exercise_name:xr,exercise_description:(So=(Ao=Se==null?void 0:Se.editData)==null?void 0:Ao.exercise)==null?void 0:So.exercise_description,difficulty:(ii=(yo=Se==null?void 0:Se.editData)==null?void 0:yo.exercise)==null?void 0:ii.difficulty})).status===0?(vn.setFieldValue("exercise_name",xr),Ee({type:"newExercisePaper/modifyTitle",payload:xr}),!0):!1})}),Ua.createElement("div",{style:{fontSize:14}},Ua.createElement("span",{style:{color:"#5F6368"}},"\u7B54\u9898\u65F6\u957F",Ua.createElement("span",{style:{color:"#000000",marginLeft:8}},(la=($n=Se==null?void 0:Se.editData)==null?void 0:$n.exercise)==null?void 0:la.time)),Ua.createElement("span",{style:{margin:"0px 30px",color:"#5F6368"}},"\u96BE\u5EA6",Ua.createElement("span",{style:{color:"#000000",marginLeft:8}},((Ct=(Fn=Se==null?void 0:Se.editData)==null?void 0:Fn.exercise)==null?void 0:Ct.difficulty)===1?"\u7B80\u5355":((ka=(Wt=Se==null?void 0:Se.editData)==null?void 0:Wt.exercise)==null?void 0:ka.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),Ua.createElement("span",{style:{marginRight:30,color:"#5F6368"}},"\u8BD5\u9898\u603B\u6570",Ua.createElement("span",{style:{color:"#000000",marginLeft:8}},((hn=(Bt=Se==null?void 0:Se.editData)==null?void 0:Bt.exercise_types)==null?void 0:hn.q_counts)||0)),Ua.createElement("span",{style:{color:"#5F6368"}},"\u603B\u5206",Ua.createElement("span",{style:{color:"#000000",marginLeft:8}},(va=(ta=Se==null?void 0:Se.editData)==null?void 0:ta.exercise_types)==null?void 0:va.q_scores))))),jt===1&&Ua.createElement(Ge.Z,{spinning:gn,size:"middle",style:{position:"fixed",maxHeight:"100vh"},className:"mt30"},Ua.createElement("section",{className:[Ve.Z.bg,"mt20"].join(" "),style:{padding:"30px 120px 300px 120px"}},Gt&&Ua.createElement(Be.default,{layout:"horizontal",form:vn,colon:!1,labelCol:{span:4},wrapperCol:{span:20},className:Ve.Z.formWrap,initialValues:Gt},Ua.createElement(Be.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u540D\u79F0",className:Ve.Z.baseLineHeight,rules:[{required:!0,validator:(xr,Tr)=>{var or;return((or=Tr==null?void 0:Tr.replaceAll(" ",""))==null?void 0:or.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},Ua.createElement(Fe.default,{maxLength:60,className:Ve.Z.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),Ua.createElement(Be.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"sub_discipline_id",className:Ve.Z.baseLineHeight},Ua.createElement(Ye.Z,{className:Ve.Z.baseFormItem,allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:en,popupClassName:Ve.Z.cascaderPopup,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14}})),Ua.createElement("div",{className:Ve.Z.concat},Ua.createElement("div",null,Ua.createElement(ke.default,{checked:$r,onChange:xr=>{yr(xr.target.checked)},style:{color:"#000"}},"\u8BBE\u7F6E\u8BE5\u65B9\u5411&\u8BFE\u7A0B\u4E3A\u8BD5\u9898\u6A21\u7248\uFF08\u521B\u5EFA\u65B0\u8BD5\u9898\u81EA\u52A8\u4F7F\u7528\u8BE5\u65B9\u5411&\u8BFE\u7A0B\uFF09")),Ua.createElement("div",null,"\u6CA1\u6709\u5408\u9002\u7684\u65B9\u5411&\u8BFE\u7A0B\uFF1F",Ua.createElement("a",{onClick:()=>Vr(!0)},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"))),Ua.createElement(Be.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:Ve.Z.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},Ua.createElement(De.ZP.Group,{className:Ve.Z.radiogroup},Ua.createElement(De.ZP.Button,{className:Ve.Z.easy,value:1},"\u7B80\u5355"),Ua.createElement(De.ZP.Button,{className:Ve.Z.medium,value:2},"\u9002\u4E2D"),Ua.createElement(De.ZP.Button,{className:Ve.Z.hard,value:3},"\u56F0\u96BE"))),Ua.createElement(Be.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:Ve.Z.baseLineHeight},Ua.createElement("div",{style:{display:"flex",width:"100%"}},Ua.createElement(Be.default.Item,{name:"time",noStyle:!0},Ua.createElement(Oe.Z,{min:1,className:Ve.Z.baseFormItem,max:9999,style:{width:220},maxLength:60,placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),Ua.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),Ua.createElement(Be.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exercise_description"},Ua.createElement(Fe.default.TextArea,{rows:6,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"})))),Ua.createElement("div",{className:Ve.Z.bottmodiv},Ua.createElement(We.ZP,{className:`${Ve.Z.cancelBtn} mr5`,type:"primary",onClick:()=>{Sr.get("pageType")=="course"?he.history.push(`/paths/${Sr.get("courseId")}`):he.history.push("/paperlibrary")}},"\u53D6\u6D88"),Ua.createElement(a.Z,{className:`${Ve.Z.confirmBtn} ml15`,type:"primary",onClick:()=>Xo(void 0,null,function*(){var xr,Tr,or,Nr;yield vn.validateFields();const Or=vn.getFieldsValue();if(Or.sub_discipline_id=((xr=Or.sub_discipline_id)==null?void 0:xr.length)>0?Or.sub_discipline_id[1]:"",Or.set_question_sub_discipline=$r,kn.id){(yield(0,le.w0)(Jo({id:kn.id},Or))).status===0&&(vr(kn.id),$a(2),he.history.replace(`/paperlibrary/add/${kn.id}?type=2`));return}const Ur=yield(0,le.un)(Or);Ur.status===0&&(vr((Tr=Ur==null?void 0:Ur.data)==null?void 0:Tr.exam_id),$a(2),Sr.get("pageType")=="course"?he.history.replace(`/paperlibrary/add/${(or=Ur==null?void 0:Ur.data)==null?void 0:or.exam_id}?type=2&pageType=course&courseId=${Sr.get("courseId")}&stageId=${Sr.get("stageId")}`):he.history.replace(`/paperlibrary/add/${(Nr=Ur==null?void 0:Ur.data)==null?void 0:Nr.exam_id}?type=2`))})},"\u4E0B\u4E00\u6B65"))),jt===2&&Ua.createElement("div",null,Ua.createElement(wi,{setisedits:sr,itemid:Cr}))),Ua.createElement(al.Z,{open:zr,onCancel:()=>{Vr(!1)}}))};var su=(0,he.connect)(({user:se,newExercisePaper:Se,dispatch:Ee})=>({user:se,newExercisePaper:Se,dispatch:Ee}))(ol)},62560:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Qe}});var b=oe(59301),he=oe(78241),Be=oe(8591),Ie=oe(43418),be=oe(99313),Ge=oe(57809),Fe=oe(19842),Ye=oe(98228),ke=oe(92832),De=oe(1710),Oe=oe(6848),We=oe(58421),Ve=oe(3113),le=oe(23789),E={flex_box_center:"flex_box_center___kuaVT",flex_space_between:"flex_space_between___exKHH",flex_box_vertical_center:"flex_box_vertical_center___BzvkN",flex_box_center_end:"flex_box_center_end___Ss2DJ",flex_box_column:"flex_box_column___p1LEr",scoremodal:"scoremodal___upTFR",selectWrapper:"selectWrapper___HH3RX",selectWrappers:"selectWrappers___fUWwr",allqingchu:"allqingchu___BFF1D",title:"title___hFasb",score:"score___DXG3o",close:"close___kEIiB",content:"content___Mco8L",items:"items___j98jk",bottom:"bottom___A1n1C",yes:"yes___P1zzb",no:"no___xZqXd",titlecount:"titlecount___fqA9P",add:"add___MqV0R",search:"search___NREgv",searchIcon:"searchIcon___qny3A",tabWrap:"tabWrap___dR18c",previewModal:"previewModal___uSiGS",q_title:"q_title___a9NY9"},a=oe(8418),x={flex_box_center:"flex_box_center___nnwwA",flex_space_between:"flex_space_between___cRir9",flex_box_vertical_center:"flex_box_vertical_center___FqTZ8",flex_box_center_end:"flex_box_center_end___WU5_v",flex_box_column:"flex_box_column___QZFa1",warp:"warp___aLZwN",shixunbutton:"shixunbutton___Eoa1i",redio:"redio___LJ4js",redioitem:"redioitem___YicCC",redioitemyes:"redioitemyes___lX4Nr",title:"title___pi1jH",titleyes:"titleyes___jiEh7",yestag:"yestag___DLWoP",qcount:"qcount___U9kkL",score:"score___vLK4B",qtitle:"qtitle___kyg0t",checkbox:"checkbox___vjiBw",checkboxitem:"checkboxitem___HW3CP",checkboxitemyes:"checkboxitemyes___kpjek",bottom:"bottom___uG8Zq",bottomitem:"bottomitem___TnJQQ",left:"left___M8WXX",right:"right____dkCI",completion:"completion___H6RmA",content:"content___a2hGC",items:"items___D8mLd",simple:"simple___fQ0OS",shixun:"shixun___nB6Jk",combination:"combination___YrOdz",program:"program___lG0JA"},y=oe(28900),z=oe(21331),ne=oe(24334);const re=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var ge=({qitem:Me})=>{var Et,kt,vt,Dt,Ae,dt,ln,ct,et,Bn;return b.createElement("div",{className:x.warp},b.createElement("div",{className:x.mainPart},b.createElement("div",{className:x.qcount},(Me==null?void 0:Me.question_type)===8&&b.createElement(y.Z,{className:x.content,showProgramFill:!0,value:(Et=Me==null?void 0:Me.program_attr)==null?void 0:Et.description}),(Me==null?void 0:Me.question_type)!=8&&b.createElement(y.Z,{className:x.qtitle,value:(Me==null?void 0:Me.name)||(Me==null?void 0:Me.title)})),((Me==null?void 0:Me.question_type)===0||(Me==null?void 0:Me.question_type)===2)&&b.createElement("div",null,(kt=Me==null?void 0:Me.choices)==null?void 0:kt.map((ot,bt)=>b.createElement("div",{className:x.redio},!(ot!=null&&ot.is_answer)&&b.createElement("span",{className:x.redioitem}),(ot==null?void 0:ot.is_answer)&&b.createElement("i",{className:`${x.redioitemyes} icon-duigou1`}),b.createElement(y.Z,{className:ot!=null&&ot.is_answer?x.titleyes:x.title,value:re[bt]+(ot==null?void 0:ot.choice_text)}),(ot==null?void 0:ot.is_answer)&&b.createElement("div",{className:x.yestag},"\u6B63\u786E\u7B54\u6848")))),(Me==null?void 0:Me.question_type)===1&&b.createElement("div",null,(vt=Me==null?void 0:Me.choices)==null?void 0:vt.map((ot,bt)=>b.createElement("div",{className:x.checkbox},!(ot!=null&&ot.is_answer)&&b.createElement("span",{className:x.checkboxitem}),(ot==null?void 0:ot.is_answer)&&b.createElement("i",{className:`${x.checkboxitemyes} icon-duigou1`}),b.createElement(y.Z,{className:ot!=null&&ot.is_answer?x.titleyes:x.title,value:re[bt]+(ot==null?void 0:ot.choice_text)}),(ot==null?void 0:ot.is_answer)&&b.createElement("div",{className:x.yestag},"\u6B63\u786E\u7B54\u6848")))),(Me==null?void 0:Me.question_type)===3&&b.createElement("div",{className:x.completion},(Dt=Me==null?void 0:Me.standard_answer)==null?void 0:Dt.map((ot,bt)=>{var zt;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:x.title},"\u586B\u7A7A\u9879",bt+1),b.createElement("div",{className:x.content},(zt=ot==null?void 0:ot.answer_text)==null?void 0:zt.map((St,Rn)=>b.createElement("div",{className:x.items},St))))})),(Me==null?void 0:Me.question_type)===4&&b.createElement("div",{className:x.simple},b.createElement("div",{className:x.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Ae=Me==null?void 0:Me.answer_texts)!=null&&Ae[0]?b.createElement(y.Z,{className:x.content,value:(dt=Me==null?void 0:Me.answer_texts)==null?void 0:dt[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(Me==null?void 0:Me.question_type)===5&&((ln=Me==null?void 0:Me.challenge_names)==null?void 0:ln.map((ot,bt)=>b.createElement("div",{className:x.shixun},b.createElement("span",{className:x.qtitle},b.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,z.EM)(bt+1),"\u9898"),ot)))),(Me==null?void 0:Me.question_type)===6&&b.createElement("div",{className:x.program},b.createElement(y.Z,{className:x.content,value:((ct=Me==null?void 0:Me.program_attr)==null?void 0:ct.description)||"- -"})),(Me==null?void 0:Me.question_type)===7&&((et=Me==null?void 0:Me.sub_item_banks)==null?void 0:et.map((ot,bt)=>{var zt,St,Rn,Ot,Kn;return b.createElement("div",null,b.createElement("div",{className:x.combination},b.createElement("span",{className:x.qtitle},ot==null?void 0:ot.name)),b.createElement("div",{className:x.warp,style:{padding:"0px",paddingTop:20}},b.createElement("div",null,((ot==null?void 0:ot.item_type)=="SINGLE"||(ot==null?void 0:ot.item_type)=="JUDGMENT")&&((zt=ot==null?void 0:ot.choices)==null?void 0:zt.map((xn,jn)=>b.createElement("div",{className:x.redio},!(xn!=null&&xn.is_answer)&&b.createElement("span",{className:x.redioitem}),(xn==null?void 0:xn.is_answer)&&b.createElement("i",{className:`${x.redioitemyes} icon-duigou1`}),b.createElement(y.Z,{className:xn!=null&&xn.is_answer?x.titleyes:x.title,value:re[jn]+(xn==null?void 0:xn.choice_text)}),(xn==null?void 0:xn.is_answer)&&b.createElement("div",{className:x.yestag},"\u6B63\u786E\u7B54\u6848")))),(ot==null?void 0:ot.item_type)=="MULTIPLE"&&((St=ot==null?void 0:ot.choices)==null?void 0:St.map((xn,jn)=>b.createElement("div",{className:x.checkbox},!(xn!=null&&xn.is_answer)&&b.createElement("span",{className:x.checkboxitem}),(xn==null?void 0:xn.is_answer)&&b.createElement("i",{className:`${x.checkboxitemyes} icon-duigou1`}),b.createElement(y.Z,{className:xn!=null&&xn.is_answer?x.titleyes:x.title,value:re[jn]+(xn==null?void 0:xn.choice_text)}),(xn==null?void 0:xn.is_answer)&&b.createElement("div",{className:x.yestag},"\u6B63\u786E\u7B54\u6848")))),(ot==null?void 0:ot.item_type)=="COMPLETION"&&b.createElement("div",{className:x.completion},(Rn=ot==null?void 0:ot.standard_answer)==null?void 0:Rn.map((xn,jn)=>{var $t;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:x.title},"\u586B\u7A7A\u9879",jn+1),b.createElement("div",{className:x.content},($t=xn==null?void 0:xn.answer_text)==null?void 0:$t.map((ma,Wn)=>b.createElement("div",{className:x.items},ma))))})),(ot==null?void 0:ot.item_type)=="SUBJECTIVE"&&b.createElement("div",{className:x.simple},b.createElement("div",{className:x.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Ot=ot==null?void 0:ot.answer_texts)!=null&&Ot[0]?b.createElement(y.Z,{className:x.content,value:(Kn=ot==null?void 0:ot.answer_texts)==null?void 0:Kn[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(Me==null?void 0:Me.question_type)===8&&b.createElement("div",null,b.createElement(y.Z,{disabledFill:!0,className:x.content,showProgramFill:!0,value:ne.Base64.decode(((Bn=Me==null?void 0:Me.program_attr)==null?void 0:Bn.code)||"")})),(Me==null?void 0:Me.question_type)===5&&b.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},b.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),b.createElement("span",{style:{color:"#000000"}},(Me==null?void 0:Me.author_name)||"- -")),b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),b.createElement("span",{style:{color:"#000000"}},(Me==null?void 0:Me.author_school_name)||"- -")),b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{style:{color:"#000000"}},(Me==null?void 0:Me.study_count)||"0"))),b.createElement("a",{className:x.shixunbutton,href:`/shixuns/${Me==null?void 0:Me.identifier}/challenges?exercise=true`,target:"_blank"},b.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((Me==null?void 0:Me.question_type)<=4||[6,8].includes(Me==null?void 0:Me.question_type))&&b.createElement("div",{className:x.bottom},b.createElement("div",{className:x.bottomitem},b.createElement("span",{className:x.left},"\u89E3\u6790"),b.createElement("span",{className:x.right},Me!=null&&Me.analysis?b.createElement(y.Z,{value:Me==null?void 0:Me.analysis}):b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),b.createElement("div",{className:x.bottomitem},b.createElement("span",{className:x.left},"\u96BE\u5EA6"),b.createElement("span",{className:x.right},(Me==null?void 0:Me.difficulty)===1?"\u7B80\u5355":(Me==null?void 0:Me.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),b.createElement("div",{className:x.bottomitem},b.createElement("span",{className:x.left},"\u77E5\u8BC6\u70B9"),b.createElement("span",{className:x.right},Me!=null&&Me.tag_discipline?Me==null?void 0:Me.tag_discipline:b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},fe=oe(95006),Pe=oe(42128),Ue=oe(6075),Re=oe(61485),lt=oe(70659),Le=oe(93758),Ce=oe(59301),Xe=Object.defineProperty,nt=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,ut=(Me,Et,kt)=>Et in Me?Xe(Me,Et,{enumerable:!0,configurable:!0,writable:!0,value:kt}):Me[Et]=kt,Jt=(Me,Et)=>{for(var kt in Et||(Et={}))pt.call(Et,kt)&&ut(Me,kt,Et[kt]);if(gt)for(var kt of gt(Et))wt.call(Et,kt)&&ut(Me,kt,Et[kt]);return Me},on=(Me,Et)=>nt(Me,ye(Et)),It=(Me,Et,kt)=>new Promise((vt,Dt)=>{var Ae=ct=>{try{ln(kt.next(ct))}catch(et){Dt(et)}},dt=ct=>{try{ln(kt.throw(ct))}catch(et){Dt(et)}},ln=ct=>ct.done?vt(ct.value):Promise.resolve(ct.value).then(Ae,dt);ln((kt=kt.apply(Me,Et)).next())});const Vt=({setScoreShow:Me,ScoreShow:Et,onOk:kt,isshixuns:vt=!0,isloadings:Dt,dispatch:Ae,isIntelligentAssistant:dt=!1,newExercisePaper:ln,shixunsDetail:ct,SpecificDifficulty:et})=>{var Bn,ot,bt,zt;let[St,Rn]=(0,b.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,bigmodel:dt,group_id:[]}),[Ot,Kn]=(0,b.useState)([]),[xn,jn]=(0,b.useState)([]),[$t,ma]=(0,b.useState)([]),[Wn,ba]=(0,b.useState)([]);const[un,mn]=(0,b.useState)(!1),[En]=he.default.useForm(),[Oa,Sa]=(0,b.useState)(),[wa,tn]=(0,b.useState)(!1);let[ht,Sn]=(0,b.useState)(vt);const[Cn,ya]=(0,b.useState)([]),[ra,Ka]=(0,b.useState)(0),[oa,Qn]=(0,b.useState)(!0),[Ya,Ma]=(0,b.useState)([]),[Ja,Br]=(0,b.useState)([]),At=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}];let[On,Tn]=(0,b.useState)([]),[Ln,xe]=(0,b.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:"",per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const ft=(0,b.useRef)(new Set),Ft=(0,b.useRef)(new Set),Ut=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Rt=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],yt=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[An,je]=(0,b.useState)(!1),Ke=()=>{En.resetFields(),ht=!1,Sn(!1),je(!1),En.submit()};(0,b.useEffect)(()=>{var Je,Kt,wn,tt,Xn,Mn,ca,Vn,Za,sa;(((wn=(Kt=(Je=ln==null?void 0:ln.editData)==null?void 0:Je.exercise)==null?void 0:Kt.exist_item_bank_ids)==null?void 0:wn.length)>0||((Mn=(Xn=(tt=ln==null?void 0:ln.editData)==null?void 0:tt.exercise)==null?void 0:Xn.exist_item_bank_shixun_ids)==null?void 0:Mn.length)>0)&&Br([...(Vn=(ca=ln==null?void 0:ln.editData)==null?void 0:ca.exercise)==null?void 0:Vn.exist_item_bank_ids,...(sa=(Za=ln==null?void 0:ln.editData)==null?void 0:Za.exercise)==null?void 0:sa.exist_item_bank_shixun_ids])},[(ot=(Bn=ln==null?void 0:ln.editData)==null?void 0:Bn.exercise)==null?void 0:ot.exist_item_bank_ids]),(0,b.useEffect)(()=>{Et&&(En.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),oa&&ht&&(En.setFieldsValue({item_type:"SHIXUN"}),St.item_type="SHIXUN",et&&(En.setFieldsValue({diff:et}),St.diff=et),Rn(Jt({},St)),Qn(!1)),He(St),Mt(),dn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),sn())},[Et]),(0,b.useEffect)(()=>{ra>0&&setTimeout(()=>{Ka(0)},2e3)},[ra]);function He(Je){return It(this,null,function*(){var Kt,wn,tt;if(mn(!0),Rn(Jt({},Je)),($t==null?void 0:$t.length)<=0&&Je.type==="5"){ba([]),mn(!1);return}console.log("----",$t,Cn);let Xn=Je.type==="5"?$t==null?void 0:$t.filter(Vn=>!Cn.includes(Vn)):null,Mn=Je.type==="5"?$t==null?void 0:$t.filter(Vn=>Cn.includes(Vn)):null;Je.group_id=((Kt=Je.group_id)==null?void 0:Kt.map(Vn=>Vn==null?void 0:Vn.value))||null;let ca=yield(0,le.ZP)("/api/item_banks.json",{method:"get",params:on(Jt({},Je),{discipline_id:((wn=Je==null?void 0:Je.courseid)==null?void 0:wn[0])||null,sub_discipline_id:((tt=Je==null?void 0:Je.courseid)==null?void 0:tt[1])||null,ids:Xn,shixun_ids:Mn,include_shixuns:!dt,keyword:Je.keyword?encodeURIComponent(Je.keyword):Je.keyword,type:Je.type==="5"?null:Je.type,clazz:Je.type==="3"?"ItemBanksGroup":null})});ba(ca),mn(!1)})}function Mt(){return It(this,null,function*(){let Je=yield(0,le.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:St.type==="5"?null:St.type,clazz:"ItemBanksGroup"}});Kn((0,a.L)(Je==null?void 0:Je.disciplines))})}function sn(){return It(this,null,function*(){let Je=yield(0,le.ZP)("/api/users/vrs_subject_names.json",{method:"Get"});(Je==null?void 0:Je.status)==0&&Tn(Je==null?void 0:Je.names)})}function dn(Je){return It(this,null,function*(){var Kt;let wn=yield(0,le.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Je}),tt=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Kt=wn==null?void 0:wn.data)==null?void 0:Kt.map(Xn=>({title:Xn.name,id:Xn.id,pid:Xn.id,value:Xn.id,key:Xn.id,isLeaf:!Xn.have_child}))}];Ma(tt)})}function qn(Je){return It(this,null,function*(){var Kt,wn,tt,Xn;mn(!0);let Mn=(Kt=Je.list)==null?void 0:Kt.filter(Za=>!Cn.includes(Za)),ca=(wn=Je.list)==null?void 0:wn.filter(Za=>Cn.includes(Za));if(Mn.length===0&&ca.length===0){mn(!1),ba([]);return}let Vn=yield(0,le.ZP)("/api/item_banks.json",{method:"get",params:on(Jt({},Je),{discipline_id:((tt=Je==null?void 0:Je.courseid)==null?void 0:tt[0])||null,sub_discipline_id:((Xn=Je==null?void 0:Je.courseid)==null?void 0:Xn[1])||null,ids:Mn,shixun_ids:ca,type:Je.type==="5"?null:Je.type,clazz:Je.type==="3"?"ItemBanksGroup":null})});mn(!1),ba(Vn)})}const Un=Je=>It(void 0,null,function*(){const Kt=yield Ae({type:"shixunsDetail/release",payload:{id:Je}});let wn=Kt==null?void 0:Kt.tag_position,tt=(Kt==null?void 0:Kt.evaluation_set_position)||[],Xn=Kt.status;return Xn===0?(Be.ZP.success("\u53D1\u5E03\u6210\u529F"),He(St),!0):(Xn===2?Be.ZP.error(`\u7B2C${tt.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):Xn===3?Be.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${wn.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)}),fn=Je=>(Je==null?void 0:Je.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",Jn=(Je,Kt,wn)=>Je.map(tt=>tt.key===Kt?Jt(Jt({},tt),wn):tt.children?on(Jt({},tt),{children:Jn(tt.children,Kt,wn)}):tt),Ea=Je=>It(void 0,null,function*(){const{key:Kt}=Je;let wn=St.type;const tt=yield(0,Le.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Kt),type:wn}),{data:Xn,total_count:Mn}=tt||{};Mn>0&&Ma(ca=>Jn(ca,Kt,{children:Xn.map(Vn=>({title:Vn.name,id:Vn.id,pid:Vn.id,value:Vn.id,key:Vn.id,isLeaf:!Vn.have_child}))}))});function Zt(Je){console.log("----",St),Je==="1"&&(Ln.gg=Jt({},St)),Je==="2"&&(Ln.scj=Jt({},St)),Je==="3"&&(Ln.ttgx=Jt({},St)),Je==="0"&&(Ln.wcjd=Jt({},St)),Je==="5"&&(Ln.yx=Jt({},St)),xe(Jt({},Ln))}function _n(){St.type==="1"&&(St=Ln.gg),St.type==="2"&&(St=Ln.scj),St.type==="3"&&(St=Ln.ttgx),St.type==="0"&&(St=Ln.wcjd),St.type==="5"&&(St=Ln.yx),(St==null?void 0:St.item_type)==="SHIXUN"?(ht=!0,Sn(!0)):(ht=!1,Sn(!1)),En.setFieldsValue(Jt({},St)),Rn(Jt({},St)),He(Jt({},St))}return Ce.createElement("div",null,Ce.createElement(Ie.default,{title:!1,footer:!1,open:Et,width:1360,centered:!0,className:E.scoremodal,onCancel:()=>{Me(!1)}},Ce.createElement("div",{style:{display:"flex",alignItems:"center"}},Ce.createElement("div",{className:E.title},dt?"\u4EE5\u9898\u6362\u9898":"\u9898\u5E93\u9009\u9898")),dt&&Ce.createElement("div",{style:{padding:10,background:"#F6F7F9",borderRadius:4,marginTop:14}},"\u6839\u636E\u73B0\u6709\u8BD5\u9898\u7684\u9898\u578B\u3001\u65B9\u5411\u3001\u77E5\u8BC6\u70B9\u3001\u96BE\u6613\u5EA6\uFF0C\u5FEB\u901F\u751F\u6210\u65B0\u7684\u8BD5\u9898\uFF0C\u589E\u52A0\u8BD5\u9898\u7684\u4E30\u5BCC\u5EA6"),Ce.createElement(be.default,{className:E.tabWrap,activeKey:St.type,onChange:Je=>{Je==="3"?(St.show_all_share=!0,dn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):St.show_all_share=null,Je==="0"&&dn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Zt(St.type),St.type=Je,(St==null?void 0:St.item_type)==="SHIXUN"&&St.type!=="5"&&(ht=!0,Sn(!0)),je(!1),St.type==="5"&&(ht=!1,Sn(!1)),_n(),Mt()},items:[{label:"\u516C\u5171",key:"1"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u6536\u85CF\u5939",key:"2"},{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:Ce.createElement("div",null,"\u5DF2\u9009",$t.length>0&&Ce.createElement("span",{className:E.titlecount},$t.length),ra>0&&Ce.createElement("span",{className:E.add},"+",ra)),key:"5"}]}),Ce.createElement(he.default,{layout:"inline",form:En,onValuesChange:(Je,Kt)=>{const wn=Object.values(Kt).some(Xn=>Xn!==null&&Xn!==""&&Xn!==void 0),tt=Kt.keyword==="";if(je(wn||!tt),St.page=1,(Kt==null?void 0:Kt.item_type)==="SHIXUN"){if(St.type==="5"?(et&&(Je==null?void 0:Je.item_type)==="SHIXUN"&&En.setFieldsValue({difficulty:et}),Sn(!1)):(et&&(Je==null?void 0:Je.item_type)==="SHIXUN"&&En.setFieldsValue({diff:et}),Sn(!0)),Je.keyword||Je.keyword==="")return;setTimeout(()=>{En.submit()},0)}else{if(Je!=null&&Je.courseid&&En.setFieldsValue({tag_discipline_id:""}),Sn(!1),Je.keyword||Je.keyword==="")return;En.submit()}},onFinish:Je=>{var Kt;St.type==="3"&&(!Je.group_id||((Kt=Je==null?void 0:Je.group_id)==null?void 0:Kt.length)===0)?St.show_all_share=!0:St.show_all_share=null,Rn(Jt(Jt({},St),Je)),He(Jt(Jt({},St),Je))}},Ce.createElement(he.default.Item,{name:"item_type"},Ce.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u9898\u578B",style:{width:110},size:"middle"},(dt?At.slice(0,6):At).map(Je=>Ce.createElement(Ge.default.Option,{key:Je.value},Je.name)))),Ce.createElement(he.default.Item,{name:"courseid"},Ce.createElement(Fe.Z,{className:E.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:Ot})),!ht&&Ce.createElement(he.default.Item,{name:"tag_discipline_id"},Ce.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(bt=Wn==null?void 0:Wn.tag_disciplines)==null?void 0:bt.map(Je=>Ce.createElement(Ge.default.Option,{key:Je.id},Je.name)))),ht&&Ce.createElement(he.default.Item,{name:"vrs_name"},Ce.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u79D1\u76EE",style:{width:118},size:"middle",allowClear:!0},(zt=[{id:"",name:"\u5168\u90E8"},...(On==null?void 0:On.map(Je=>({id:Je,name:Je})))||[]])==null?void 0:zt.map(Je=>Ce.createElement(Ge.default.Option,{key:Je.id},Je.name)))),Ce.createElement(he.default.Item,{name:ht?"diff":"difficulty"},Ce.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},!ht&&Ut.map(Je=>Ce.createElement(Ge.default.Option,{value:Je.value,key:Je.value},Je.name)),ht&&Rt.map(Je=>Ce.createElement(Ge.default.Option,{value:Je.value,key:Je.value},Je.name)))),ht&&Ce.createElement(he.default.Item,{name:"shixun_publish_status"},Ce.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},yt.map(Je=>Ce.createElement(Ge.default.Option,{key:Je.value},Je.name)))),(St.type==="3"||St.type==="0")&&!ht&&Ce.createElement(he.default.Item,{name:"group_id"},Ce.createElement(Ye.default,{treeDataSimpleMode:!0,style:{width:118},className:E.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Je,Kt)=>Kt.title.toUpperCase().indexOf(Je.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:Ea,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:Ya})),An&&Ce.createElement("span",{className:E.allqingchu,onClick:Ke},Ce.createElement("i",{className:"iconfont icon-guanbi4"}),Ce.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Ce.createElement(he.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Ce.createElement(ke.default.Search,{className:E.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Ce.createElement("i",{className:`iconfont icon-sousuo9 font14 ${E.searchIcon}`,onClick:()=>En.submit()}),onSearch:Je=>{En.submit()}}))),Ce.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Ce.createElement("div",{onClick:()=>{St.updated_at==="asc"?St.updated_at="desc":St.updated_at="asc",Rn(on(Jt({},St),{page:1})),He(on(Jt({},St),{page:1}))}}," ",St.updated_at?Ce.createElement("img",{src:St.updated_at==="asc"?fe.Z:Pe.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ce.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Ce.createElement("div",{onClick:()=>{St.quotes==="asc"?St.quotes="desc":St.quotes="asc",Rn(on(Jt({},St),{page:1})),He(on(Jt({},St),{page:1}))},style:{marginLeft:20}}," ",St.quotes?Ce.createElement("img",{src:St.quotes==="asc"?fe.Z:Pe.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ce.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Ce.createElement(De.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(Wn==null?void 0:Wn.items)||(Wn==null?void 0:Wn.shixun_list),pagination:!1,loading:un,rowKey:Je=>Je.id,rowSelection:{type:dt?"radio":"checkbox",selectedRowKeys:xn,getCheckboxProps:Je=>({disabled:Je.shixun_tag_num===1||(Ja==null?void 0:Ja.find(Kt=>Je.id===Kt))}),onSelect(Je,Kt,wn){if(dt){jn([Je.id]),Ft.current=new Set([Je.id]),Ka(1),ma([Je.id]);return}if(Kt)(ht||Je!=null&&Je.challenge_names)&&ya([...Cn,Je.id]),jn([...xn,Je.id]),Je.identifier?ft.current.add(Je.id):Ft.current.add(Je.id),Ka(1),ma([...$t,Je.id]);else{Je.identifier?ft.current.delete(Je.id):Ft.current.delete(Je.id);let tt=$t.filter(Xn=>Xn!==Je.id);if(jn(tt),ma(tt),ht||Je!=null&&Je.challenge_names){let Xn=Cn.filter(Mn=>Mn!==Je.id);ya([...Xn])}if(St.type==="5"){qn(on(Jt({},St),{list:[...tt]}));return}}},onSelectAll(Je,Kt,wn){var tt,Xn;if(Je){const Mn=wn.map(Vn=>Vn.id),ca=(Xn=wn==null?void 0:wn.filter(Vn=>Vn==null?void 0:Vn.challenge_names))==null?void 0:Xn.map(Vn=>Vn.id);ya([...Cn,...ca]),jn([...xn,...Mn]),ma([...$t,...Mn]);for(const Vn of wn)Vn.identifier?ft.current.add(Vn.id):Ft.current.add(Vn.id)}else{const Mn=wn.map(sa=>sa.id),ca=xn.filter(sa=>!Mn.some(er=>er===sa)),Vn=(tt=wn==null?void 0:wn.filter(sa=>sa==null?void 0:sa.challenge_names))==null?void 0:tt.map(sa=>sa.id);jn([...ca]),ma([...ca]);let Za=Cn.filter(sa=>!Vn.some(er=>er===sa.id));ya([...Za]),St.type==="5"&&qn(on(Jt({},St),{list:[...ca]}));for(const sa of Mn)sa.identifier?ft.current.delete(sa):Ft.current.delete(sa)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(Je,Kt,wn)=>{var tt,Xn;return Ce.createElement(Oe.Z,{title:fn(Kt)},Ce.createElement("div",null,ht||Kt!=null&&Kt.challenge_names?"\u5B9E\u8BAD\u9898":(Xn=(tt=At==null?void 0:At.filter(Mn=>Mn.value===Je))==null?void 0:tt[0])==null?void 0:Xn.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:ht?"30%":"60%",key:"name",render:(Je,Kt,wn)=>{var tt;return Ce.createElement("div",{style:{display:"flex",alignItems:"center"}},Ce.createElement(Oe.Z,{title:fn(Kt)},Ce.createElement("div",{className:Kt!=null&&Kt.high_resources_consume?E.q_title:""},Ce.createElement(y.Z,{key:1,showLines:1,showTextOnly:!0,value:ht||Kt!=null&&Kt.challenge_names?Kt!=null&&Kt.title||Je===null?"--":Je:(Kt==null?void 0:Kt.item_type)=="BPROGRAM"?(tt=Kt==null?void 0:Kt.program_attr)==null?void 0:tt.description:Je}))),(Kt==null?void 0:Kt.high_resources_consume)&&Ce.createElement(lt.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!ht,render:(Je,Kt,wn)=>{var tt;return Ce.createElement(Oe.Z,{title:fn(Kt)},Ce.createElement("span",null,Je?(tt=Je==null?void 0:Je.split("\u3001"))==null?void 0:tt[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!ht,render:(Je,Kt,wn)=>Ce.createElement(Oe.Z,{title:fn(Kt)},Ce.createElement("span",null,Je||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(Je,Kt,wn)=>{var tt,Xn,Mn,ca;return Ce.createElement(Oe.Z,{title:fn(Kt)},Ce.createElement("div",null,ht||Kt!=null&&Kt.challenge_names?(Kt==null?void 0:Kt.level)||((Xn=(tt=Ut==null?void 0:Ut.filter(Vn=>Vn.value===Je))==null?void 0:tt[0])==null?void 0:Xn.name):(ca=(Mn=Ut==null?void 0:Ut.filter(Vn=>Vn.value===Je))==null?void 0:Mn[0])==null?void 0:ca.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!ht,render:(Je,Kt,wn)=>Ce.createElement(Oe.Z,{title:fn(Kt)},Ce.createElement("div",null,Je||"- -"))},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!ht,render:(Je,Kt,wn)=>Ce.createElement("span",null,Je||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(Je,Kt,wn)=>Ce.createElement(Oe.Z,{title:fn(Kt)},Ce.createElement("div",null,ht||Kt!=null&&Kt.challenge_names?(Kt==null?void 0:Kt.study_count)||(Kt==null?void 0:Kt.stu_num):Je))},{title:Ce.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Ce.createElement(Oe.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Ce.createElement(Re.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!ht,render:(Je,Kt,wn)=>Ce.createElement(Oe.Z,{title:fn(Kt)},Ce.createElement("div",null,Je||"- -"))},{title:Ce.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Ce.createElement(Oe.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Ce.createElement(Re.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!ht,render:(Je,Kt,wn)=>Ce.createElement("span",null,Je||"- -")},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(Je,Kt,wn)=>Ce.createElement(Oe.Z,{title:fn(Kt)},Ce.createElement("div",{style:{flex:1,textAlign:"start"}},Ce.createElement("a",{onClick:()=>{var tt,Xn;Sa(on(Jt({},Kt),{question_type:ht||Kt!=null&&Kt.challenge_names?5:(Xn=(tt=At==null?void 0:At.filter(Mn=>Mn.value===(Kt==null?void 0:Kt.item_type)))==null?void 0:tt[0])==null?void 0:Xn.question_type})),tn(!0)}},"\u67E5\u770B"),(Kt==null?void 0:Kt.shixun_tag_num)===1&&Ce.createElement("a",{style:{marginLeft:10},onClick:()=>{Ie.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Ce.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Ce.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Kt==null?void 0:Kt.identifier}/challenges`)}},(Kt==null?void 0:Kt.shixun_name)||"--"),"\uFF1F"),onOk:()=>It(void 0,null,function*(){if(!Un(Kt==null?void 0:Kt.identifier))return new Promise((tt,Xn)=>{Xn()})})})}},"\u53D1\u5E03")))}].filter(Je=>!Je.hidden)}),Ce.createElement(We.Z,{current:St.page,total:(Wn==null?void 0:Wn.items_count)||(Wn==null?void 0:Wn.shixuns_count),style:{marginBottom:20},defaultPageSize:St.per_page,showTotal:Je=>Ce.createElement("span",null,"\u5171\xA0",Ce.createElement("span",{style:{color:"#165DFF"}},Je),"\xA0\u6761\u6570\u636E"),pageSize:St.per_page,onChange:(Je,Kt)=>{St.page=Je,St.per_page=Kt,Rn(Jt({},St)),He(Jt({},St))}}),Ce.createElement("div",{className:E.bottom},Ce.createElement(Ve.ZP,{className:E.no,onClick:()=>{Me(!1)}},"\u53D6\u6D88"),Ce.createElement(Ve.ZP,{loading:Dt,style:{width:Dt&&75},className:E.yes,onClick:()=>It(void 0,null,function*(){if(($t==null?void 0:$t.length)<=0){Be.ZP.info(dt?"\u8BF7\u9009\u62E9\u4E00\u9053\u8BD5\u9898":"\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}kt([...Ft.current],[...ft.current],!0,$t==null?void 0:$t.length)})},dt?"\u5F00\u59CB\u6362\u9898":"\u786E\u8BA4"))),Ce.createElement(Ie.default,{open:wa,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:E.previewModal,width:1e3,centered:!0,onCancel:()=>{tn(!1)},onOk:()=>{tn(!1)}},Ce.createElement(ge,{qitem:Oa})))};var Qe=(0,Ue.connect)(({shixunsDetail:Me,newExercisePaper:Et})=>({shixunsDetail:Me,newExercisePaper:Et}))(Vt)},76832:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return De}});var b=oe(43418),he={ul:"ul___TdfYY"},Be=oe(32637),Ie=oe(59301),be=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,Ye=(Oe,We)=>{var Ve={};for(var le in Oe)Ge.call(Oe,le)&&We.indexOf(le)<0&&(Ve[le]=Oe[le]);if(Oe!=null&&be)for(var le of be(Oe))We.indexOf(le)<0&&Fe.call(Oe,le)&&(Ve[le]=Oe[le]);return Ve},De=Oe=>{var We=Oe,{open:Ve,onCancel:le}=We,E=Ye(We,["open","onCancel"]);return Ie.createElement(b.default,{centered:!0,open:Ve,title:Ie.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:le,footer:null},Ie.createElement("div",null,Ie.createElement("div",{className:"tc"},Ie.createElement("img",{className:"mt10",src:Be,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),Ie.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),Ie.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),Ie.createElement("div",{style:{color:"#333"},className:"pt30 font14"},Ie.createElement("ul",{className:he.ul},Ie.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),Ie.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),Ie.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},99530:function(_e,xt,oe){"use strict";oe.d(xt,{I:function(){return he}});var b=oe(59301);const he=()=>{const[Be,Ie]=(0,b.useState)("hidden");return{overflow:Be,handleMouseEnter:()=>Ie("auto"),handleMouseLeave:()=>Ie("hidden")}}},77578:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return b}});const b=he=>he?typeof he=="function"?he():he:null},66104:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return nt}});var b=oe(92310),he=oe.n(b),Be=oe(11592),Ie=oe(26112),be=oe(59301),Ge=oe(92343),Fe=oe(36355),Ye=oe(84105),ke=oe(91857);const De=ye=>{let{children:gt}=ye;const{getPrefixCls:pt}=be.useContext(Fe.E_),wt=pt("breadcrumb");return be.createElement("li",{className:`${wt}-separator`,"aria-hidden":"true"},gt===""?gt:gt||"/")};De.__ANT_BREADCRUMB_SEPARATOR=!0;var Oe=De,We=function(ye,gt){var pt={};for(var wt in ye)Object.prototype.hasOwnProperty.call(ye,wt)&>.indexOf(wt)<0&&(pt[wt]=ye[wt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,wt=Object.getOwnPropertySymbols(ye);utgt[ut]||wt)}function le(ye,gt,pt,wt){if(pt==null)return null;const{className:ut,onClick:Jt}=gt,on=We(gt,["className","onClick"]),It=Object.assign(Object.assign({},(0,Ie.Z)(on,{data:!0,aria:!0})),{onClick:Jt});return wt!==void 0?be.createElement("a",Object.assign({},It,{className:he()(`${ye}-link`,ut),href:wt}),pt):be.createElement("span",Object.assign({},It,{className:he()(`${ye}-link`,ut)}),pt)}function E(ye,gt){return(wt,ut,Jt,on,It)=>{if(gt)return gt(wt,ut,Jt,on);const Vt=Ve(wt,ut);return le(ye,wt,Vt,It)}}var a=function(ye,gt){var pt={};for(var wt in ye)Object.prototype.hasOwnProperty.call(ye,wt)&>.indexOf(wt)<0&&(pt[wt]=ye[wt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,wt=Object.getOwnPropertySymbols(ye);ut{const{prefixCls:gt,separator:pt="/",children:wt,menu:ut,overlay:Jt,dropdownProps:on,href:It}=ye,Qe=(Me=>{if(ut||Jt){const Et=Object.assign({},on);if(ut){const kt=ut||{},{items:vt}=kt,Dt=a(kt,["items"]);Et.menu=Object.assign(Object.assign({},Dt),{items:vt==null?void 0:vt.map((Ae,dt)=>{var{key:ln,title:ct,label:et,path:Bn}=Ae,ot=a(Ae,["key","title","label","path"]);let bt=et!=null?et:ct;return Bn&&(bt=be.createElement("a",{href:`${It}${Bn}`},bt)),Object.assign(Object.assign({},ot),{key:ln!=null?ln:dt,label:bt})})})}else Jt&&(Et.overlay=Jt);return be.createElement(ke.Z,Object.assign({placement:"bottom"},Et),be.createElement("span",{className:`${gt}-overlay-link`},Me,be.createElement(Ye.Z,null)))}return Me})(wt);return Qe!=null?be.createElement(be.Fragment,null,be.createElement("li",null,Qe),pt&&be.createElement(Oe,null,pt)):null},y=ye=>{const{prefixCls:gt,children:pt,href:wt}=ye,ut=a(ye,["prefixCls","children","href"]),{getPrefixCls:Jt}=be.useContext(Fe.E_),on=Jt("breadcrumb",gt);return be.createElement(x,Object.assign({},ut,{prefixCls:on}),le(on,ut,pt,wt))};y.__ANT_BREADCRUMB_ITEM=!0;var z=y,ne=oe(17313),re=oe(83116),ie=oe(37613);const ge=ye=>{const{componentCls:gt,iconCls:pt}=ye;return{[gt]:Object.assign(Object.assign({},(0,ne.Wf)(ye)),{color:ye.itemColor,fontSize:ye.fontSize,[pt]:{fontSize:ye.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:ye.linkColor,transition:`color ${ye.motionDurationMid}`,padding:`0 ${ye.paddingXXS}px`,borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",marginInline:-ye.marginXXS,"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover}},(0,ne.Qy)(ye)),"li:last-child":{color:ye.lastItemColor},[`${gt}-separator`]:{marginInline:ye.separatorMargin,color:ye.separatorColor},[`${gt}-link`]:{[` > ${pt} + span, > ${pt} + a - `]:{marginInlineStart:ye.marginXXS}},[`${gt}-overlay-link`]:{borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",padding:`0 ${ye.paddingXXS}px`,marginInline:-ye.marginXXS,[`> ${pt}`]:{marginInlineStart:ye.marginXXS,fontSize:ye.fontSizeIcon},"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover,a:{color:ye.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${ye.componentCls}-rtl`]:{direction:"rtl"}})}};var fe=(0,re.Z)("Breadcrumb",ye=>{const gt=(0,ie.TS)(ye,{});return[ge(gt)]},ye=>({itemColor:ye.colorTextDescription,lastItemColor:ye.colorText,iconFontSize:ye.fontSize,linkColor:ye.colorTextDescription,linkHoverColor:ye.colorText,separatorColor:ye.colorTextDescription,separatorMargin:ye.marginXS})),Pe=function(ye,gt){var pt={};for(var wt in ye)Object.prototype.hasOwnProperty.call(ye,wt)&>.indexOf(wt)<0&&(pt[wt]=ye[wt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,wt=Object.getOwnPropertySymbols(ye);ut{var{breadcrumbName:ln}=Yt,Nt=Pe(Yt,["breadcrumbName"]);return Object.assign(Object.assign({},Nt),{title:ln})})}),ut}function Re(ye,gt){return(0,be.useMemo)(()=>ye||(gt?gt.map(Ue):null),[ye,gt])}var lt=function(ye,gt){var pt={};for(var wt in ye)Object.prototype.hasOwnProperty.call(ye,wt)&>.indexOf(wt)<0&&(pt[wt]=ye[wt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,wt=Object.getOwnPropertySymbols(ye);ut{if(gt===void 0)return gt;let pt=(gt||"").replace(/^\//,"");return Object.keys(ye).forEach(wt=>{pt=pt.replace(`:${wt}`,ye[wt])}),pt},Ce=ye=>{const{prefixCls:gt,separator:pt="/",style:wt,className:ut,rootClassName:Yt,routes:ln,items:Nt,children:Wt,itemRender:Qe,params:Me={}}=ye,Et=lt(ye,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Gt,direction:vt,breadcrumb:Dt}=be.useContext(Fe.E_);let Ae;const dt=Gt("breadcrumb",gt),[un,ct]=fe(dt),et=Re(Nt,ln),bn=E(dt,Qe);if(et&&et.length>0){const Ht=[],St=Nt||ln;Ae=et.map((Tn,Mt)=>{const{path:Kn,key:wn,type:jn,menu:$t,overlay:ma,onClick:Wn,className:Ca,separator:sn,dropdownProps:mn}=Tn,En=Le(Me,Kn);En!==void 0&&Ht.push(En);const Ma=wn!=null?wn:Mt;if(jn==="separator")return be.createElement(Oe,{key:Ma},sn);const Sa={},Da=Mt===et.length-1;$t?Sa.menu=$t:ma&&(Sa.overlay=ma);let{href:en}=Tn;return Ht.length&&En!==void 0&&(en=`#/${Ht.join("/")}`),be.createElement(x,Object.assign({key:Ma},Sa,(0,Ie.Z)(Tn,{data:!0,aria:!0}),{className:Ca,dropdownProps:mn,href:en,separator:Da?"":pt,onClick:Wn,prefixCls:dt}),bn(Tn,Me,St,Ht,en))})}else if(Wt){const Ht=(0,Be.Z)(Wt).length;Ae=(0,Be.Z)(Wt).map((St,Tn)=>{if(!St)return St;const Mt=Tn===Ht-1;return(0,Ge.Tm)(St,{separator:Mt?"":pt,key:Tn})})}const ot=he()(dt,Dt==null?void 0:Dt.className,{[`${dt}-rtl`]:vt==="rtl"},ut,Yt,ct),Bt=Object.assign(Object.assign({},Dt==null?void 0:Dt.style),wt);return un(be.createElement("nav",Object.assign({className:ot,style:Bt},Et),be.createElement("ol",null,Ae)))};Ce.Item=z,Ce.Separator=Oe;var Xe=Ce,nt=Xe},19842:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return In}});var b=oe(77654),he=oe(59301),Be=oe(33853),Ie=oe(58617),be=oe(38819),Ge=oe(92310),Fe=oe.n(Ge),Ye=oe(60499),ke=oe(72190),De=oe(42244),Oe=oe(77861),We=oe(17115),Ve=oe(90782),le=oe(6089),E=oe(18929),a=he.createContext(null),x=a,y=oe(43749),z=oe(18642),ne=oe(85899),re="__rc_cascader_search_mark__",ie=function(ft,Ft,Qt){var Tt=Qt.label;return Ft.some(function(yt){return String(yt[Tt]).toLowerCase().includes(ft.toLowerCase())})},ge=function(ft,Ft,Qt,Tt){return Ft.map(function(yt){return yt[Tt.label]}).join(" / ")},fe=function(xe,ft,Ft,Qt,Tt,yt){var An=Tt.filter,je=An===void 0?ie:An,Ke=Tt.render,He=Ke===void 0?ge:Ke,Rt=Tt.limit,dn=Rt===void 0?50:Rt,cn=Tt.sort;return he.useMemo(function(){var qn=[];if(!xe)return[];function Un(vn,Jn){var Ea=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;vn.forEach(function(zt){if(!(!cn&&dn!==!1&&dn>0&&qn.length>=dn)){var _n=[].concat((0,b.Z)(Jn),[zt]),Je=zt[Ft.children],Ut=Ea||zt.disabled;if((!Je||Je.length===0||yt)&&je(xe,_n,{label:Ft.label})){var Dn;qn.push((0,ne.Z)((0,ne.Z)({},zt),{},(Dn={disabled:Ut},(0,z.Z)(Dn,Ft.label,He(xe,_n,Qt,Ft)),(0,z.Z)(Dn,re,_n),(0,z.Z)(Dn,Ft.children,void 0),Dn)))}Je&&Un(zt[Ft.children],_n,Ut)}})}return Un(ft,[]),cn&&qn.sort(function(vn,Jn){return cn(vn[re],Jn[re],xe,Ft)}),dn!==!1&&dn>0?qn.slice(0,dn):qn},[xe,ft,Ft,Qt,He,yt,je,cn,dn])},Pe="__RC_CASCADER_SPLIT__",Ue="SHOW_PARENT",Re="SHOW_CHILD";function lt(xe){return xe.join(Pe)}function Le(xe){return xe.map(lt)}function Ce(xe){return xe.split(Pe)}function Xe(xe){var ft=xe||{},Ft=ft.label,Qt=ft.value,Tt=ft.children,yt=Qt||"value";return{label:Ft||"label",value:yt,key:yt,children:Tt||"children"}}function nt(xe,ft){var Ft,Qt;return(Ft=xe.isLeaf)!==null&&Ft!==void 0?Ft:!((Qt=xe[ft.children])!==null&&Qt!==void 0&&Qt.length)}function ye(xe){var ft=xe.parentElement;if(ft){var Ft=xe.offsetTop-ft.offsetTop;Ft-ft.scrollTop<0?ft.scrollTo({top:Ft}):Ft+xe.offsetHeight-ft.scrollTop>ft.offsetHeight&&ft.scrollTo({top:Ft+xe.offsetHeight-ft.offsetHeight})}}function gt(xe,ft){return xe.map(function(Ft){var Qt;return(Qt=Ft[re])===null||Qt===void 0?void 0:Qt.map(function(Tt){return Tt[ft.value]})})}function pt(xe,ft,Ft){var Qt=new Set(xe),Tt=ft();return xe.filter(function(yt){var An=Tt[yt],je=An?An.parent:null,Ke=An?An.children:null;return An&&An.node.disabled?!0:Ft===Re?!(Ke&&Ke.some(function(He){return He.key&&Qt.has(He.key)})):!(je&&!je.node.disabled&&Qt.has(je.key))})}function wt(xe,ft,Ft){for(var Qt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Tt=ft,yt=[],An=function(){var He,Rt,dn,cn=xe[je],qn=(He=Tt)===null||He===void 0?void 0:He.findIndex(function(vn){var Jn=vn[Ft.value];return Qt?String(Jn)===String(cn):Jn===cn}),Un=qn!==-1?(Rt=Tt)===null||Rt===void 0?void 0:Rt[qn]:null;yt.push({value:(dn=Un==null?void 0:Un[Ft.value])!==null&&dn!==void 0?dn:cn,index:qn,option:Un}),Tt=Un==null?void 0:Un[Ft.children]},je=0;je1){var tt=Un.slice(0,-1);zt(tt)}else He(!1)},Ut=function(){var tt,Xn=((tt=Jn[vn])===null||tt===void 0?void 0:tt[Ft.children])||[],Rn=Xn.find(function(Vn){return!Vn.disabled});if(Rn){var ca=[].concat((0,b.Z)(Un),[Rn[Ft.value]]);zt(ca)}};he.useImperativeHandle(xe,function(){return{onKeyDown:function(tt){var Xn=tt.which;switch(Xn){case dt.Z.UP:case dt.Z.DOWN:{var Rn=0;Xn===dt.Z.UP?Rn=-1:Xn===dt.Z.DOWN&&(Rn=1),Rn!==0&&_n(Rn);break}case dt.Z.LEFT:{if(Ke)break;dn?Ut():Je();break}case dt.Z.RIGHT:{if(Ke)break;dn?Je():Ut();break}case dt.Z.BACKSPACE:{Ke||Je();break}case dt.Z.ENTER:{if(Un.length){var ca=Jn[vn],Vn=(ca==null?void 0:ca[re])||[];Vn.length?yt(Vn.map(function(Za){return Za[Ft.value]}),Vn[Vn.length-1]):yt(Un,Jn[vn])}break}case dt.Z.ESC:He(!1),Rt&&tt.stopPropagation()}},onKeyUp:function(){}}})},ct=he.forwardRef(function(xe,ft){var Ft,Qt,Tt,yt,An=(0,Oe.lk)(),je=An.prefixCls,Ke=An.multiple,He=An.searchValue,Rt=An.toggleOpen,dn=An.notFoundContent,cn=An.direction,qn=An.open,Un=he.useRef(),vn=cn==="rtl",Jn=he.useContext(x),Ea=Jn.options,zt=Jn.values,_n=Jn.halfValues,Je=Jn.fieldNames,Ut=Jn.changeOnSelect,Dn=Jn.onSelect,tt=Jn.searchOptions,Xn=Jn.dropdownPrefixCls,Rn=Jn.loadData,ca=Jn.expandTrigger,Vn=Xn||je,Za=he.useState([]),sa=(0,ke.Z)(Za,2),_a=sa[0],$a=sa[1],gr=function(qa){if(!(!Rn||He)){var vr=wt(qa,Ea,Je),fa=vr.map(function(Ga){var tr=Ga.option;return tr}),lr=fa[fa.length-1];if(lr&&!nt(lr,Je)){var mr=lt(qa);$a(function(Ga){return[].concat((0,b.Z)(Ga),[mr])}),Rn(fa)}}};he.useEffect(function(){_a.length&&_a.forEach(function(Xa){var qa=Ce(Xa),vr=wt(qa,Ea,Je,!0).map(function(lr){var mr=lr.option;return mr}),fa=vr[vr.length-1];(!fa||fa[Je.children]||nt(fa,Je))&&$a(function(lr){return lr.filter(function(mr){return mr!==Xa})})})},[Ea,_a,Je]);var kt=he.useMemo(function(){return new Set(Le(zt))},[zt]),La=he.useMemo(function(){return new Set(Le(_n))},[_n]),Vt=Ae(),wa=(0,ke.Z)(Vt,2),pa=wa[0],Jt=wa[1],Ln=function(qa){Jt(qa),gr(qa)},ea=function(qa){var vr=qa.disabled,fa=nt(qa,Je);return!vr&&(fa||Ut||Ke)},yn=function(qa,vr){var fa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Dn(qa),!Ke&&(vr||Ut&&(ca==="hover"||fa))&&Rt(!1)},Ta=he.useMemo(function(){return He?tt:Ea},[He,tt,Ea]),Pa=he.useMemo(function(){for(var Xa=[{options:Ta}],qa=Ta,vr=gt(qa,Je),fa=function(){var tr=pa[lr],mt=qa.find(function(Ot,gn){return(vr[gn]?lt(vr[gn]):Ot[Je.value])===tr}),it=mt==null?void 0:mt[Je.children];if(!(it!=null&&it.length))return"break";qa=it,Xa.push({options:it})},lr=0;lr":_a,gr=xe.loadingIcon,kt=xe.children,La=xe.dropdownMatchSelectWidth,Vt=La===void 0?!1:La,wa=xe.showCheckedStrategy,pa=wa===void 0?Ue:wa,Jt=(0,De.Z)(xe,Ht),Ln=(0,We.ZP)(Ft),ea=!!dn,yn=(0,E.Z)(An,{value:je,postState:Tn}),Ta=(0,ke.Z)(yn,2),Pa=Ta[0],Va=Ta[1],dr=he.useMemo(function(){return Xe(yt)},[JSON.stringify(yt)]),Er=he.useMemo(function(){return zt||[]},[zt]),Mr=ln(Er,dr),hr=he.useCallback(function(on){var It=Mr();return on.map(function(de){var $e=It[de].nodes;return $e.map(function(st){return st[dr.value]})})},[Mr,dr]),Jr=(0,E.Z)("",{value:Un,postState:function(It){return It||""}}),Xa=(0,ke.Z)(Jr,2),qa=Xa[0],vr=Xa[1],fa=function(It,de){vr(It),de.source!=="blur"&&vn&&vn(It)},lr=Qe(Jn),mr=(0,ke.Z)(lr,2),Ga=mr[0],tr=mr[1],mt=fe(qa,Er,dr,_n||Tt,tr,Ke),it=Nt(Er,dr),Ot=he.useMemo(function(){var on=it(Pa),It=(0,ke.Z)(on,2),de=It[0],$e=It[1];if(!ea||!Pa.length)return[de,[],$e];var st=Le(de),jt=Mr(),at=(0,Ve.S)(st,!0,jt),rn=at.checkedKeys,qt=at.halfCheckedKeys;return[hr(rn),hr(qt),$e]},[ea,Pa,Mr,hr,it]),gn=(0,ke.Z)(Ot,3),ua=gn[0],Ia=gn[1],tn=gn[2],Ba=he.useMemo(function(){var on=Le(ua),It=pt(on,Mr,pa);return[].concat((0,b.Z)(tn),(0,b.Z)(hr(It)))},[ua,Mr,hr,tn,pa]),Aa=ut(Ba,Er,dr,ea,Rt),nr=(0,le.Z)(function(on){if(Va(on),He){var It=Tn(on),de=It.map(function(jt){return wt(jt,Er,dr).map(function(at){return at.option})}),$e=ea?It:It[0],st=ea?de:de[0];He($e,st)}}),ka=(0,le.Z)(function(on){if((!ea||qn)&&vr(""),!ea)nr(on);else{var It=lt(on),de=Le(ua),$e=Le(Ia),st=de.includes(It),jt=tn.some(function(pn){return lt(pn)===It}),at=ua,rn=tn;if(jt&&!st)rn=tn.filter(function(pn){return lt(pn)!==It});else{var qt=st?de.filter(function(pn){return pn!==It}):[].concat((0,b.Z)(de),[It]),Kt=Mr(),_t;if(st){var oa=(0,Ve.S)(qt,{checked:!1,halfCheckedKeys:$e},Kt);_t=oa.checkedKeys}else{var Ha=(0,Ve.S)(qt,!0,Kt);_t=Ha.checkedKeys}var Wa=pt(_t,Mr,pa);at=hr(Wa)}nr([].concat((0,b.Z)(rn),(0,b.Z)(at)))}}),ga=function(It,de){if(de.type==="clear"){nr([]);return}var $e=de.values[0],st=$e.valueCells;ka(st)},Qa=Dn!==void 0?Dn:Ut,pr=Xn||tt,Gr=Vn||ca,er=function(It){Za==null||Za(It),sa==null||sa(It)},fr=he.useMemo(function(){return{options:Er,fieldNames:dr,values:ua,halfValues:Ia,changeOnSelect:Ke,onSelect:ka,checkable:dn,searchOptions:mt,dropdownPrefixCls:_n,loadData:Je,expandTrigger:Ea,expandIcon:$a,loadingIcon:gr,dropdownMenuColumnStyle:Rn}},[Er,dr,ua,Ia,Ke,ka,dn,mt,_n,Je,Ea,$a,gr,Rn]),Dr=!(qa?mt:Er).length,Gn=qa&&tr.matchInputWidth||Dr?{}:{minWidth:"auto"};return he.createElement(x.Provider,{value:fr},he.createElement(Oe.Ac,(0,Ye.Z)({},Jt,{ref:ft,id:Ln,prefixCls:Tt,autoClearSearchValue:qn,dropdownMatchSelectWidth:Vt,dropdownStyle:Gn,displayValues:Aa,onDisplayValuesChange:ga,mode:ea?"multiple":void 0,searchValue:qa,onSearch:fa,showSearch:Ga,OptionList:et,emptyOptions:Dr,open:Qa,dropdownClassName:pr,placement:Gr,onDropdownVisibleChange:er,getRawInputElement:function(){return kt}})))});Mt.SHOW_PARENT=Ue,Mt.SHOW_CHILD=Re;var Kn=Mt,wn=Kn,jn=oe(2738),$t=oe(62892),ma=oe(53487),Wn=oe(19080),Ca=oe(36355),sn=oe(93891),mn=oe(1684),En=oe(19716),Ma=oe(32441),Sa=oe(14154),Da=oe(58582),en=oe(84443),ht=oe(66339),hn=oe(33234),xn=oe(98447),ya=oe(17313),aa=oe(74207),Ka=oe(83116);const ra=xe=>{const{prefixCls:ft,componentCls:Ft,antCls:Qt}=xe,Tt=`${Ft}-menu-item`,yt=` - &${Tt}-expand ${Tt}-expand-icon, - ${Tt}-loading-icon - `;return[{[Ft]:{width:xe.controlWidth}},{[`${Ft}-dropdown`]:[(0,xn.C2)(`${ft}-checkbox`,xe),{[`&${Qt}-select-dropdown`]:{padding:0}},{[Ft]:{"&-checkbox":{top:0,marginInlineEnd:xe.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Ft}-menu-empty`]:{[`${Ft}-menu`]:{width:"100%",height:"auto",[Tt]:{color:xe.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:xe.controlItemWidth,height:xe.dropdownHeight,margin:0,padding:xe.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${xe.lineWidth}px ${xe.lineType} ${xe.colorSplit}`},"&-item":Object.assign(Object.assign({},ya.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:xe.optionPadding,lineHeight:xe.lineHeight,cursor:"pointer",transition:`all ${xe.motionDurationMid}`,borderRadius:xe.borderRadiusSM,"&:hover":{background:xe.controlItemBgHover},"&-disabled":{color:xe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[yt]:{color:xe.colorTextDisabled}},[`&-active:not(${Tt}-disabled)`]:{"&, &:hover":{fontWeight:xe.optionSelectedFontWeight,backgroundColor:xe.optionSelectedBg}},"&-content":{flex:"auto"},[yt]:{marginInlineStart:xe.paddingXXS,color:xe.colorTextDescription,fontSize:xe.fontSizeIcon},"&-keyword":{color:xe.colorHighlight}})}}}]},{[`${Ft}-dropdown-rtl`]:{direction:"rtl"}},(0,aa.c)(xe)]};var Qn=(0,Ka.Z)("Cascader",xe=>[ra(xe)],xe=>{const ft=Math.round((xe.controlHeight-xe.fontSize*xe.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:xe.controlItemBgActive,optionSelectedFontWeight:xe.fontWeightStrong,optionPadding:`${ft}px ${xe.paddingSM}px`,menuPadding:xe.paddingXXS}}),Ya=function(xe,ft){var Ft={};for(var Qt in xe)Object.prototype.hasOwnProperty.call(xe,Qt)&&ft.indexOf(Qt)<0&&(Ft[Qt]=xe[Qt]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Qt=Object.getOwnPropertySymbols(xe);TtKe===0?[je]:[].concat((0,b.Z)(An),[ft,je]),[]),Tt=[];let yt=0;return Qt.forEach((An,je)=>{const Ke=yt+An.length;let He=xe.slice(yt,Ke);yt=Ke,je%2===1&&(He=he.createElement("span",{className:`${Ft}-menu-item-keyword`,key:`separator-${je}`},He)),Tt.push(He)}),Tt}const At=(xe,ft,Ft,Qt)=>{const Tt=[],yt=xe.toLowerCase();return ft.forEach((An,je)=>{je!==0&&Tt.push(" / ");let Ke=An[Qt.label];const He=typeof Ke;(He==="string"||He==="number")&&(Ke=Br(String(Ke),yt,Ft)),Tt.push(Ke)}),Tt},Mn=he.forwardRef((xe,ft)=>{const{prefixCls:Ft,size:Qt,disabled:Tt,className:yt,rootClassName:An,multiple:je,bordered:Ke=!0,transitionName:He,choiceTransitionName:Rt="",popupClassName:dn,dropdownClassName:cn,expandIcon:qn,placement:Un,showSearch:vn,allowClear:Jn=!0,notFoundContent:Ea,direction:zt,getPopupContainer:_n,status:Je,showArrow:Ut,builtinPlacements:Dn,style:tt}=xe,Xn=Ya(xe,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Rn=(0,jn.Z)(Xn,["suffixIcon"]),{getPopupContainer:ca,getPrefixCls:Vn,renderEmpty:Za,direction:sa,popupOverflow:_a,cascader:$a}=he.useContext(Ca.E_),gr=zt||sa,kt=gr==="rtl",{status:La,hasFeedback:Vt,isFormItemInput:wa,feedbackIcon:pa}=he.useContext(Ma.aM),Jt=(0,Wn.F)(La,Je),Ln=Ea||(Za==null?void 0:Za("Cascader"))||he.createElement(sn.Z,{componentName:"Cascader"}),ea=Vn(),yn=Vn("select",Ft),Ta=Vn("cascader",Ft),[Pa,Va]=(0,Sa.Z)(yn),[dr]=Qn(Ta),{compactSize:Er,compactItemClassnames:Mr}=(0,hn.ri)(yn,zt),hr=Fe()(dn||cn,`${Ta}-dropdown`,{[`${Ta}-dropdown-rtl`]:gr==="rtl"},An,Va),Jr=he.useMemo(()=>{if(!vn)return vn;let tn={render:At};return typeof vn=="object"&&(tn=Object.assign(Object.assign({},tn),vn)),tn},[vn]),Xa=(0,En.Z)(tn=>{var Ba;return(Ba=Qt!=null?Qt:Er)!==null&&Ba!==void 0?Ba:tn}),qa=he.useContext(mn.Z),vr=Tt!=null?Tt:qa;let fa=qn;qn||(fa=kt?he.createElement(Be.Z,null):he.createElement(be.Z,null));const lr=he.createElement("span",{className:`${yn}-menu-item-loading-icon`},he.createElement(Ie.Z,{spin:!0})),mr=he.useMemo(()=>je?he.createElement("span",{className:`${Ta}-checkbox-inner`}):!1,[je]),Ga=(0,en.Z)(xe.suffixIcon,Ut),{suffixIcon:tr,removeIcon:mt,clearIcon:it}=(0,ht.Z)(Object.assign(Object.assign({},xe),{hasFeedback:Vt,feedbackIcon:pa,showSuffixIcon:Ga,multiple:je,prefixCls:yn,componentName:"Cascader"})),Ot=he.useMemo(()=>Un!==void 0?Un:kt?"bottomRight":"bottomLeft",[Un,kt]),gn=(0,Da.Z)(Dn,_a),ua=Jn===!0?{clearIcon:it}:Jn,Ia=he.createElement(wn,Object.assign({prefixCls:yn,className:Fe()(!Ft&&Ta,{[`${yn}-lg`]:Xa==="large",[`${yn}-sm`]:Xa==="small",[`${yn}-rtl`]:kt,[`${yn}-borderless`]:!Ke,[`${yn}-in-form-item`]:wa},(0,Wn.Z)(yn,Jt,Vt),Mr,$a==null?void 0:$a.className,yt,An,Va),disabled:vr,style:Object.assign(Object.assign({},$a==null?void 0:$a.style),tt)},Rn,{builtinPlacements:gn,direction:gr,placement:Ot,notFoundContent:Ln,allowClear:ua,showSearch:Jr,expandIcon:fa,suffixIcon:tr,removeIcon:mt,loadingIcon:lr,checkable:mr,dropdownClassName:hr,dropdownPrefixCls:Ft||Ta,choiceTransitionName:(0,$t.m)(ea,"",Rt),transitionName:(0,$t.m)(ea,"slide-up",He),getPopupContainer:_n||ca,ref:ft}));return dr(Pa(Ia))}),kn=(0,ma.Z)(Mn);Mn.SHOW_PARENT=Ja,Mn.SHOW_CHILD=Ra,Mn._InternalPanelDoNotUseOrYouWillBeFired=kn;var In=Mn},36381:function(_e,xt,oe){"use strict";oe.d(xt,{default:function(){return un}});var b=oe(38819),he=oe(92310),Be=oe.n(he),Ie=oe(60499),be=oe(77654),Ge=oe(72190),Fe=oe(43749),Ye=oe(18929),ke=oe(48736),De=oe(59301),Oe=oe(42244),We=oe(11592),Ve=oe(18642),le=oe(77900),E=oe(10228),a=De.forwardRef(function(ct,et){var bn=ct.prefixCls,ot=ct.forceRender,Bt=ct.className,Ht=ct.style,St=ct.children,Tn=ct.isActive,Mt=ct.role,Kn=De.useState(Tn||ot),wn=(0,Ge.Z)(Kn,2),jn=wn[0],$t=wn[1];return De.useEffect(function(){(ot||Tn)&&$t(!0)},[ot,Tn]),jn?De.createElement("div",{ref:et,className:Be()("".concat(bn,"-content"),(0,Ve.Z)((0,Ve.Z)({},"".concat(bn,"-content-active"),Tn),"".concat(bn,"-content-inactive"),!Tn),Bt),style:Ht,role:Mt},De.createElement("div",{className:"".concat(bn,"-content-box")},St)):null});a.displayName="PanelContent";var x=a,y=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],z=De.forwardRef(function(ct,et){var bn=ct.showArrow,ot=bn===void 0?!0:bn,Bt=ct.headerClass,Ht=ct.isActive,St=ct.onItemClick,Tn=ct.forceRender,Mt=ct.className,Kn=ct.prefixCls,wn=ct.collapsible,jn=ct.accordion,$t=ct.panelKey,ma=ct.extra,Wn=ct.header,Ca=ct.expandIcon,sn=ct.openMotion,mn=ct.destroyInactivePanel,En=ct.children,Ma=(0,Oe.Z)(ct,y),Sa=wn==="disabled",Da=wn==="header",en=wn==="icon",ht=ma!=null&&typeof ma!="boolean",hn=function(){St==null||St($t)},xn=function(Ya){(Ya.key==="Enter"||Ya.keyCode===E.Z.ENTER||Ya.which===E.Z.ENTER)&&hn()},ya=typeof Ca=="function"?Ca(ct):De.createElement("i",{className:"arrow"});ya&&(ya=De.createElement("div",{className:"".concat(Kn,"-expand-icon"),onClick:["header","icon"].includes(wn)?hn:void 0},ya));var aa=Be()((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)({},"".concat(Kn,"-item"),!0),"".concat(Kn,"-item-active"),Ht),"".concat(Kn,"-item-disabled"),Sa),Mt),Ka=Be()(Bt,(0,Ve.Z)((0,Ve.Z)((0,Ve.Z)({},"".concat(Kn,"-header"),!0),"".concat(Kn,"-header-collapsible-only"),Da),"".concat(Kn,"-icon-collapsible-only"),en)),ra={className:Ka,"aria-expanded":Ht,"aria-disabled":Sa,onKeyDown:xn};return!Da&&!en&&(ra.onClick=hn,ra.role=jn?"tab":"button",ra.tabIndex=Sa?-1:0),De.createElement("div",(0,Ie.Z)({},Ma,{ref:et,className:aa}),De.createElement("div",ra,ot&&ya,De.createElement("span",{className:"".concat(Kn,"-header-text"),onClick:wn==="header"?hn:void 0},Wn),ht&&De.createElement("div",{className:"".concat(Kn,"-extra")},ma)),De.createElement(le.default,(0,Ie.Z)({visible:Ht,leavedClassName:"".concat(Kn,"-content-hidden")},sn,{forceRender:Tn,removeOnLeave:mn}),function(Qn,Ya){var Ra=Qn.className,Ja=Qn.style;return De.createElement(x,{ref:Ya,prefixCls:Kn,className:Ra,style:Ja,isActive:Ht,forceRender:Tn,role:jn?"tabpanel":void 0},En)}))}),ne=z,re=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],ie=function(et,bn){var ot=bn.prefixCls,Bt=bn.accordion,Ht=bn.collapsible,St=bn.destroyInactivePanel,Tn=bn.onItemClick,Mt=bn.activeKey,Kn=bn.openMotion,wn=bn.expandIcon;return et.map(function(jn,$t){var ma=jn.children,Wn=jn.label,Ca=jn.key,sn=jn.collapsible,mn=jn.onItemClick,En=jn.destroyInactivePanel,Ma=(0,Oe.Z)(jn,re),Sa=String(Ca!=null?Ca:$t),Da=sn!=null?sn:Ht,en=En!=null?En:St,ht=function(ya){Da!=="disabled"&&(Tn(ya),mn==null||mn(ya))},hn=!1;return Bt?hn=Mt[0]===Sa:hn=Mt.indexOf(Sa)>-1,De.createElement(ne,(0,Ie.Z)({},Ma,{prefixCls:ot,key:Sa,panelKey:Sa,isActive:hn,accordion:Bt,openMotion:Kn,expandIcon:wn,header:Wn,collapsible:Da,onItemClick:ht,destroyInactivePanel:en}),ma)})},ge=function(et,bn,ot){if(!et)return null;var Bt=ot.prefixCls,Ht=ot.accordion,St=ot.collapsible,Tn=ot.destroyInactivePanel,Mt=ot.onItemClick,Kn=ot.activeKey,wn=ot.openMotion,jn=ot.expandIcon,$t=et.key||String(bn),ma=et.props,Wn=ma.header,Ca=ma.headerClass,sn=ma.destroyInactivePanel,mn=ma.collapsible,En=ma.onItemClick,Ma=!1;Ht?Ma=Kn[0]===$t:Ma=Kn.indexOf($t)>-1;var Sa=mn!=null?mn:St,Da=function(hn){Sa!=="disabled"&&(Mt(hn),En==null||En(hn))},en={key:$t,panelKey:$t,header:Wn,headerClass:Ca,isActive:Ma,prefixCls:Bt,destroyInactivePanel:sn!=null?sn:Tn,openMotion:wn,accordion:Ht,children:et.props.children,onItemClick:Da,expandIcon:jn,collapsible:Sa};return typeof et.type=="string"?et:(Object.keys(en).forEach(function(ht){typeof en[ht]=="undefined"&&delete en[ht]}),De.cloneElement(et,en))};function fe(ct,et,bn){return Array.isArray(ct)?ie(ct,bn):(0,We.Z)(et).map(function(ot,Bt){return ge(ot,Bt,bn)})}var Pe=fe,Ue=oe(26112);function Re(ct){var et=ct;if(!Array.isArray(et)){var bn=(0,Fe.Z)(et);et=bn==="number"||bn==="string"?[et]:[]}return et.map(function(ot){return String(ot)})}var lt=De.forwardRef(function(ct,et){var bn=ct.prefixCls,ot=bn===void 0?"rc-collapse":bn,Bt=ct.destroyInactivePanel,Ht=Bt===void 0?!1:Bt,St=ct.style,Tn=ct.accordion,Mt=ct.className,Kn=ct.children,wn=ct.collapsible,jn=ct.openMotion,$t=ct.expandIcon,ma=ct.activeKey,Wn=ct.defaultActiveKey,Ca=ct.onChange,sn=ct.items,mn=Be()(ot,Mt),En=(0,Ye.Z)([],{value:ma,onChange:function(xn){return Ca==null?void 0:Ca(xn)},defaultValue:Wn,postState:Re}),Ma=(0,Ge.Z)(En,2),Sa=Ma[0],Da=Ma[1],en=function(xn){return Da(function(){if(Tn)return Sa[0]===xn?[]:[xn];var ya=Sa.indexOf(xn),aa=ya>-1;return aa?Sa.filter(function(Ka){return Ka!==xn}):[].concat((0,be.Z)(Sa),[xn])})};(0,ke.ZP)(!Kn,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var ht=Pe(sn,Kn,{prefixCls:ot,accordion:Tn,openMotion:jn,expandIcon:$t,collapsible:wn,destroyInactivePanel:Ht,onItemClick:en,activeKey:Sa});return De.createElement("div",(0,Ie.Z)({ref:et,className:mn,style:St,role:Tn?"tablist":void 0},(0,Ue.Z)(ct,{aria:!0,data:!0})),ht)}),Le=Object.assign(lt,{Panel:ne}),Ce=Le,Xe=Le.Panel,nt=oe(2738),ye=oe(62892),gt=oe(92343),pt=oe(36355),wt=oe(19716),Yt=De.forwardRef((ct,et)=>{const{getPrefixCls:bn}=De.useContext(pt.E_),{prefixCls:ot,className:Bt,showArrow:Ht=!0}=ct,St=bn("collapse",ot),Tn=Be()({[`${St}-no-arrow`]:!Ht},Bt);return De.createElement(Ce.Panel,Object.assign({ref:et},ct,{prefixCls:St,className:Tn}))}),ln=oe(17313),Nt=oe(8378),Wt=oe(83116),Qe=oe(37613);const Me=ct=>{const{componentCls:et,contentBg:bn,padding:ot,headerBg:Bt,headerPadding:Ht,collapseHeaderPaddingSM:St,collapseHeaderPaddingLG:Tn,collapsePanelBorderRadius:Mt,lineWidth:Kn,lineType:wn,colorBorder:jn,colorText:$t,colorTextHeading:ma,colorTextDisabled:Wn,fontSize:Ca,fontSizeLG:sn,lineHeight:mn,marginSM:En,paddingSM:Ma,paddingLG:Sa,paddingXS:Da,motionDurationSlow:en,fontSizeIcon:ht,contentPadding:hn}=ct,xn=`${Kn}px ${wn} ${jn}`;return{[et]:Object.assign(Object.assign({},(0,ln.Wf)(ct)),{backgroundColor:Bt,border:xn,borderBottom:0,borderRadius:`${Mt}px`,"&-rtl":{direction:"rtl"},[`& > ${et}-item`]:{borderBottom:xn,"&:last-child":{[` + `]:{marginInlineStart:ye.marginXXS}},[`${gt}-overlay-link`]:{borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",padding:`0 ${ye.paddingXXS}px`,marginInline:-ye.marginXXS,[`> ${pt}`]:{marginInlineStart:ye.marginXXS,fontSize:ye.fontSizeIcon},"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover,a:{color:ye.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${ye.componentCls}-rtl`]:{direction:"rtl"}})}};var fe=(0,re.Z)("Breadcrumb",ye=>{const gt=(0,ie.TS)(ye,{});return[ge(gt)]},ye=>({itemColor:ye.colorTextDescription,lastItemColor:ye.colorText,iconFontSize:ye.fontSize,linkColor:ye.colorTextDescription,linkHoverColor:ye.colorText,separatorColor:ye.colorTextDescription,separatorMargin:ye.marginXS})),Pe=function(ye,gt){var pt={};for(var wt in ye)Object.prototype.hasOwnProperty.call(ye,wt)&>.indexOf(wt)<0&&(pt[wt]=ye[wt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,wt=Object.getOwnPropertySymbols(ye);ut{var{breadcrumbName:on}=Jt,It=Pe(Jt,["breadcrumbName"]);return Object.assign(Object.assign({},It),{title:on})})}),ut}function Re(ye,gt){return(0,be.useMemo)(()=>ye||(gt?gt.map(Ue):null),[ye,gt])}var lt=function(ye,gt){var pt={};for(var wt in ye)Object.prototype.hasOwnProperty.call(ye,wt)&>.indexOf(wt)<0&&(pt[wt]=ye[wt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,wt=Object.getOwnPropertySymbols(ye);ut{if(gt===void 0)return gt;let pt=(gt||"").replace(/^\//,"");return Object.keys(ye).forEach(wt=>{pt=pt.replace(`:${wt}`,ye[wt])}),pt},Ce=ye=>{const{prefixCls:gt,separator:pt="/",style:wt,className:ut,rootClassName:Jt,routes:on,items:It,children:Vt,itemRender:Qe,params:Me={}}=ye,Et=lt(ye,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:kt,direction:vt,breadcrumb:Dt}=be.useContext(Fe.E_);let Ae;const dt=kt("breadcrumb",gt),[ln,ct]=fe(dt),et=Re(It,on),Bn=E(dt,Qe);if(et&&et.length>0){const zt=[],St=It||on;Ae=et.map((Rn,Ot)=>{const{path:Kn,key:xn,type:jn,menu:$t,overlay:ma,onClick:Wn,className:ba,separator:un,dropdownProps:mn}=Rn,En=Le(Me,Kn);En!==void 0&&zt.push(En);const Oa=xn!=null?xn:Ot;if(jn==="separator")return be.createElement(Oe,{key:Oa},un);const Sa={},wa=Ot===et.length-1;$t?Sa.menu=$t:ma&&(Sa.overlay=ma);let{href:tn}=Rn;return zt.length&&En!==void 0&&(tn=`#/${zt.join("/")}`),be.createElement(x,Object.assign({key:Oa},Sa,(0,Ie.Z)(Rn,{data:!0,aria:!0}),{className:ba,dropdownProps:mn,href:tn,separator:wa?"":pt,onClick:Wn,prefixCls:dt}),Bn(Rn,Me,St,zt,tn))})}else if(Vt){const zt=(0,Be.Z)(Vt).length;Ae=(0,Be.Z)(Vt).map((St,Rn)=>{if(!St)return St;const Ot=Rn===zt-1;return(0,Ge.Tm)(St,{separator:Ot?"":pt,key:Rn})})}const ot=he()(dt,Dt==null?void 0:Dt.className,{[`${dt}-rtl`]:vt==="rtl"},ut,Jt,ct),bt=Object.assign(Object.assign({},Dt==null?void 0:Dt.style),wt);return ln(be.createElement("nav",Object.assign({className:ot,style:bt},Et),be.createElement("ol",null,Ae)))};Ce.Item=z,Ce.Separator=Oe;var Xe=Ce,nt=Xe},19842:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Ln}});var b=oe(77654),he=oe(59301),Be=oe(33853),Ie=oe(58617),be=oe(38819),Ge=oe(92310),Fe=oe.n(Ge),Ye=oe(60499),ke=oe(72190),De=oe(42244),Oe=oe(77861),We=oe(17115),Ve=oe(90782),le=oe(6089),E=oe(18929),a=he.createContext(null),x=a,y=oe(43749),z=oe(18642),ne=oe(85899),re="__rc_cascader_search_mark__",ie=function(ft,Ft,Ut){var Rt=Ut.label;return Ft.some(function(yt){return String(yt[Rt]).toLowerCase().includes(ft.toLowerCase())})},ge=function(ft,Ft,Ut,Rt){return Ft.map(function(yt){return yt[Rt.label]}).join(" / ")},fe=function(xe,ft,Ft,Ut,Rt,yt){var An=Rt.filter,je=An===void 0?ie:An,Ke=Rt.render,He=Ke===void 0?ge:Ke,Mt=Rt.limit,sn=Mt===void 0?50:Mt,dn=Rt.sort;return he.useMemo(function(){var qn=[];if(!xe)return[];function Un(fn,Jn){var Ea=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;fn.forEach(function(Zt){if(!(!dn&&sn!==!1&&sn>0&&qn.length>=sn)){var _n=[].concat((0,b.Z)(Jn),[Zt]),Je=Zt[Ft.children],Kt=Ea||Zt.disabled;if((!Je||Je.length===0||yt)&&je(xe,_n,{label:Ft.label})){var wn;qn.push((0,ne.Z)((0,ne.Z)({},Zt),{},(wn={disabled:Kt},(0,z.Z)(wn,Ft.label,He(xe,_n,Ut,Ft)),(0,z.Z)(wn,re,_n),(0,z.Z)(wn,Ft.children,void 0),wn)))}Je&&Un(Zt[Ft.children],_n,Kt)}})}return Un(ft,[]),dn&&qn.sort(function(fn,Jn){return dn(fn[re],Jn[re],xe,Ft)}),sn!==!1&&sn>0?qn.slice(0,sn):qn},[xe,ft,Ft,Ut,He,yt,je,dn,sn])},Pe="__RC_CASCADER_SPLIT__",Ue="SHOW_PARENT",Re="SHOW_CHILD";function lt(xe){return xe.join(Pe)}function Le(xe){return xe.map(lt)}function Ce(xe){return xe.split(Pe)}function Xe(xe){var ft=xe||{},Ft=ft.label,Ut=ft.value,Rt=ft.children,yt=Ut||"value";return{label:Ft||"label",value:yt,key:yt,children:Rt||"children"}}function nt(xe,ft){var Ft,Ut;return(Ft=xe.isLeaf)!==null&&Ft!==void 0?Ft:!((Ut=xe[ft.children])!==null&&Ut!==void 0&&Ut.length)}function ye(xe){var ft=xe.parentElement;if(ft){var Ft=xe.offsetTop-ft.offsetTop;Ft-ft.scrollTop<0?ft.scrollTo({top:Ft}):Ft+xe.offsetHeight-ft.scrollTop>ft.offsetHeight&&ft.scrollTo({top:Ft+xe.offsetHeight-ft.offsetHeight})}}function gt(xe,ft){return xe.map(function(Ft){var Ut;return(Ut=Ft[re])===null||Ut===void 0?void 0:Ut.map(function(Rt){return Rt[ft.value]})})}function pt(xe,ft,Ft){var Ut=new Set(xe),Rt=ft();return xe.filter(function(yt){var An=Rt[yt],je=An?An.parent:null,Ke=An?An.children:null;return An&&An.node.disabled?!0:Ft===Re?!(Ke&&Ke.some(function(He){return He.key&&Ut.has(He.key)})):!(je&&!je.node.disabled&&Ut.has(je.key))})}function wt(xe,ft,Ft){for(var Ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Rt=ft,yt=[],An=function(){var He,Mt,sn,dn=xe[je],qn=(He=Rt)===null||He===void 0?void 0:He.findIndex(function(fn){var Jn=fn[Ft.value];return Ut?String(Jn)===String(dn):Jn===dn}),Un=qn!==-1?(Mt=Rt)===null||Mt===void 0?void 0:Mt[qn]:null;yt.push({value:(sn=Un==null?void 0:Un[Ft.value])!==null&&sn!==void 0?sn:dn,index:qn,option:Un}),Rt=Un==null?void 0:Un[Ft.children]},je=0;je1){var tt=Un.slice(0,-1);Zt(tt)}else He(!1)},Kt=function(){var tt,Xn=((tt=Jn[fn])===null||tt===void 0?void 0:tt[Ft.children])||[],Mn=Xn.find(function(Vn){return!Vn.disabled});if(Mn){var ca=[].concat((0,b.Z)(Un),[Mn[Ft.value]]);Zt(ca)}};he.useImperativeHandle(xe,function(){return{onKeyDown:function(tt){var Xn=tt.which;switch(Xn){case dt.Z.UP:case dt.Z.DOWN:{var Mn=0;Xn===dt.Z.UP?Mn=-1:Xn===dt.Z.DOWN&&(Mn=1),Mn!==0&&_n(Mn);break}case dt.Z.LEFT:{if(Ke)break;sn?Kt():Je();break}case dt.Z.RIGHT:{if(Ke)break;sn?Je():Kt();break}case dt.Z.BACKSPACE:{Ke||Je();break}case dt.Z.ENTER:{if(Un.length){var ca=Jn[fn],Vn=(ca==null?void 0:ca[re])||[];Vn.length?yt(Vn.map(function(Za){return Za[Ft.value]}),Vn[Vn.length-1]):yt(Un,Jn[fn])}break}case dt.Z.ESC:He(!1),Mt&&tt.stopPropagation()}},onKeyUp:function(){}}})},ct=he.forwardRef(function(xe,ft){var Ft,Ut,Rt,yt,An=(0,Oe.lk)(),je=An.prefixCls,Ke=An.multiple,He=An.searchValue,Mt=An.toggleOpen,sn=An.notFoundContent,dn=An.direction,qn=An.open,Un=he.useRef(),fn=dn==="rtl",Jn=he.useContext(x),Ea=Jn.options,Zt=Jn.values,_n=Jn.halfValues,Je=Jn.fieldNames,Kt=Jn.changeOnSelect,wn=Jn.onSelect,tt=Jn.searchOptions,Xn=Jn.dropdownPrefixCls,Mn=Jn.loadData,ca=Jn.expandTrigger,Vn=Xn||je,Za=he.useState([]),sa=(0,ke.Z)(Za,2),er=sa[0],tr=sa[1],gr=function(qa){if(!(!Mn||He)){var pr=wt(qa,Ea,Je),fa=pr.map(function(Ga){var ar=Ga.option;return ar}),ur=fa[fa.length-1];if(ur&&!nt(ur,Je)){var mr=lt(qa);tr(function(Ga){return[].concat((0,b.Z)(Ga),[mr])}),Mn(fa)}}};he.useEffect(function(){er.length&&er.forEach(function(Xa){var qa=Ce(Xa),pr=wt(qa,Ea,Je,!0).map(function(ur){var mr=ur.option;return mr}),fa=pr[pr.length-1];(!fa||fa[Je.children]||nt(fa,Je))&&tr(function(ur){return ur.filter(function(mr){return mr!==Xa})})})},[Ea,er,Je]);var Tt=he.useMemo(function(){return new Set(Le(Zt))},[Zt]),Da=he.useMemo(function(){return new Set(Le(_n))},[_n]),Qt=Ae(),xa=(0,ke.Z)(Qt,2),pa=xa[0],Xt=xa[1],Dn=function(qa){Xt(qa),gr(qa)},ea=function(qa){var pr=qa.disabled,fa=nt(qa,Je);return!pr&&(fa||Kt||Ke)},yn=function(qa,pr){var fa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;wn(qa),!Ke&&(pr||Kt&&(ca==="hover"||fa))&&Mt(!1)},Ra=he.useMemo(function(){return He?tt:Ea},[He,tt,Ea]),Pa=he.useMemo(function(){for(var Xa=[{options:Ra}],qa=Ra,pr=gt(qa,Je),fa=function(){var ar=pa[ur],mt=qa.find(function(Nt,cn){return(pr[cn]?lt(pr[cn]):Nt[Je.value])===ar}),it=mt==null?void 0:mt[Je.children];if(!(it!=null&&it.length))return"break";qa=it,Xa.push({options:it})},ur=0;ur":er,gr=xe.loadingIcon,Tt=xe.children,Da=xe.dropdownMatchSelectWidth,Qt=Da===void 0?!1:Da,xa=xe.showCheckedStrategy,pa=xa===void 0?Ue:xa,Xt=(0,De.Z)(xe,zt),Dn=(0,We.ZP)(Ft),ea=!!sn,yn=(0,E.Z)(An,{value:je,postState:Rn}),Ra=(0,ke.Z)(yn,2),Pa=Ra[0],Va=Ra[1],cr=he.useMemo(function(){return Xe(yt)},[JSON.stringify(yt)]),Ar=he.useMemo(function(){return Zt||[]},[Zt]),Mr=on(Ar,cr),Pr=he.useCallback(function(rn){var Lt=Mr();return rn.map(function(de){var $e=Lt[de].nodes;return $e.map(function(st){return st[cr.value]})})},[Mr,cr]),Jr=(0,E.Z)("",{value:Un,postState:function(Lt){return Lt||""}}),Xa=(0,ke.Z)(Jr,2),qa=Xa[0],pr=Xa[1],fa=function(Lt,de){pr(Lt),de.source!=="blur"&&fn&&fn(Lt)},ur=Qe(Jn),mr=(0,ke.Z)(ur,2),Ga=mr[0],ar=mr[1],mt=fe(qa,Ar,cr,_n||Rt,ar,Ke),it=It(Ar,cr),Nt=he.useMemo(function(){var rn=it(Pa),Lt=(0,ke.Z)(rn,2),de=Lt[0],$e=Lt[1];if(!ea||!Pa.length)return[de,[],$e];var st=Le(de),Ht=Mr(),at=(0,Ve.S)(st,!0,Ht),an=at.checkedKeys,qt=at.halfCheckedKeys;return[Pr(an),Pr(qt),$e]},[ea,Pa,Mr,Pr,it]),cn=(0,ke.Z)(Nt,3),ua=cn[0],La=cn[1],nn=cn[2],Ba=he.useMemo(function(){var rn=Le(ua),Lt=pt(rn,Mr,pa);return[].concat((0,b.Z)(nn),(0,b.Z)(Pr(Lt)))},[ua,Mr,Pr,nn,pa]),Aa=ut(Ba,Ar,cr,ea,Mt),rr=(0,le.Z)(function(rn){if(Va(rn),He){var Lt=Rn(rn),de=Lt.map(function(Ht){return wt(Ht,Ar,cr).map(function(at){return at.option})}),$e=ea?Lt:Lt[0],st=ea?de:de[0];He($e,st)}}),Ta=(0,le.Z)(function(rn){if((!ea||qn)&&pr(""),!ea)rr(rn);else{var Lt=lt(rn),de=Le(ua),$e=Le(La),st=de.includes(Lt),Ht=nn.some(function(pn){return lt(pn)===Lt}),at=ua,an=nn;if(Ht&&!st)an=nn.filter(function(pn){return lt(pn)!==Lt});else{var qt=st?de.filter(function(pn){return pn!==Lt}):[].concat((0,b.Z)(de),[Lt]),Yt=Mr(),_t;if(st){var ia=(0,Ve.S)(qt,{checked:!1,halfCheckedKeys:$e},Yt);_t=ia.checkedKeys}else{var za=(0,Ve.S)(qt,!0,Yt);_t=za.checkedKeys}var Wa=pt(_t,Mr,pa);at=Pr(Wa)}rr([].concat((0,b.Z)(an),(0,b.Z)(at)))}}),ga=function(Lt,de){if(de.type==="clear"){rr([]);return}var $e=de.values[0],st=$e.valueCells;Ta(st)},Qa=wn!==void 0?wn:Kt,hr=Xn||tt,Gr=Vn||ca,nr=function(Lt){Za==null||Za(Lt),sa==null||sa(Lt)},fr=he.useMemo(function(){return{options:Ar,fieldNames:cr,values:ua,halfValues:La,changeOnSelect:Ke,onSelect:Ta,checkable:sn,searchOptions:mt,dropdownPrefixCls:_n,loadData:Je,expandTrigger:Ea,expandIcon:tr,loadingIcon:gr,dropdownMenuColumnStyle:Mn}},[Ar,cr,ua,La,Ke,Ta,sn,mt,_n,Je,Ea,tr,gr,Mn]),Dr=!(qa?mt:Ar).length,Gn=qa&&ar.matchInputWidth||Dr?{}:{minWidth:"auto"};return he.createElement(x.Provider,{value:fr},he.createElement(Oe.Ac,(0,Ye.Z)({},Xt,{ref:ft,id:Dn,prefixCls:Rt,autoClearSearchValue:qn,dropdownMatchSelectWidth:Qt,dropdownStyle:Gn,displayValues:Aa,onDisplayValuesChange:ga,mode:ea?"multiple":void 0,searchValue:qa,onSearch:fa,showSearch:Ga,OptionList:et,emptyOptions:Dr,open:Qa,dropdownClassName:hr,placement:Gr,onDropdownVisibleChange:nr,getRawInputElement:function(){return Tt}})))});Ot.SHOW_PARENT=Ue,Ot.SHOW_CHILD=Re;var Kn=Ot,xn=Kn,jn=oe(2738),$t=oe(62892),ma=oe(53487),Wn=oe(19080),ba=oe(36355),un=oe(93891),mn=oe(1684),En=oe(19716),Oa=oe(32441),Sa=oe(14154),wa=oe(58582),tn=oe(84443),ht=oe(66339),Sn=oe(33234),Cn=oe(98447),ya=oe(17313),ra=oe(74207),Ka=oe(83116);const oa=xe=>{const{prefixCls:ft,componentCls:Ft,antCls:Ut}=xe,Rt=`${Ft}-menu-item`,yt=` + &${Rt}-expand ${Rt}-expand-icon, + ${Rt}-loading-icon + `;return[{[Ft]:{width:xe.controlWidth}},{[`${Ft}-dropdown`]:[(0,Cn.C2)(`${ft}-checkbox`,xe),{[`&${Ut}-select-dropdown`]:{padding:0}},{[Ft]:{"&-checkbox":{top:0,marginInlineEnd:xe.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Ft}-menu-empty`]:{[`${Ft}-menu`]:{width:"100%",height:"auto",[Rt]:{color:xe.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:xe.controlItemWidth,height:xe.dropdownHeight,margin:0,padding:xe.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${xe.lineWidth}px ${xe.lineType} ${xe.colorSplit}`},"&-item":Object.assign(Object.assign({},ya.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:xe.optionPadding,lineHeight:xe.lineHeight,cursor:"pointer",transition:`all ${xe.motionDurationMid}`,borderRadius:xe.borderRadiusSM,"&:hover":{background:xe.controlItemBgHover},"&-disabled":{color:xe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[yt]:{color:xe.colorTextDisabled}},[`&-active:not(${Rt}-disabled)`]:{"&, &:hover":{fontWeight:xe.optionSelectedFontWeight,backgroundColor:xe.optionSelectedBg}},"&-content":{flex:"auto"},[yt]:{marginInlineStart:xe.paddingXXS,color:xe.colorTextDescription,fontSize:xe.fontSizeIcon},"&-keyword":{color:xe.colorHighlight}})}}}]},{[`${Ft}-dropdown-rtl`]:{direction:"rtl"}},(0,ra.c)(xe)]};var Qn=(0,Ka.Z)("Cascader",xe=>[oa(xe)],xe=>{const ft=Math.round((xe.controlHeight-xe.fontSize*xe.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:xe.controlItemBgActive,optionSelectedFontWeight:xe.fontWeightStrong,optionPadding:`${ft}px ${xe.paddingSM}px`,menuPadding:xe.paddingXXS}}),Ya=function(xe,ft){var Ft={};for(var Ut in xe)Object.prototype.hasOwnProperty.call(xe,Ut)&&ft.indexOf(Ut)<0&&(Ft[Ut]=xe[Ut]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Ut=Object.getOwnPropertySymbols(xe);RtKe===0?[je]:[].concat((0,b.Z)(An),[ft,je]),[]),Rt=[];let yt=0;return Ut.forEach((An,je)=>{const Ke=yt+An.length;let He=xe.slice(yt,Ke);yt=Ke,je%2===1&&(He=he.createElement("span",{className:`${Ft}-menu-item-keyword`,key:`separator-${je}`},He)),Rt.push(He)}),Rt}const At=(xe,ft,Ft,Ut)=>{const Rt=[],yt=xe.toLowerCase();return ft.forEach((An,je)=>{je!==0&&Rt.push(" / ");let Ke=An[Ut.label];const He=typeof Ke;(He==="string"||He==="number")&&(Ke=Br(String(Ke),yt,Ft)),Rt.push(Ke)}),Rt},On=he.forwardRef((xe,ft)=>{const{prefixCls:Ft,size:Ut,disabled:Rt,className:yt,rootClassName:An,multiple:je,bordered:Ke=!0,transitionName:He,choiceTransitionName:Mt="",popupClassName:sn,dropdownClassName:dn,expandIcon:qn,placement:Un,showSearch:fn,allowClear:Jn=!0,notFoundContent:Ea,direction:Zt,getPopupContainer:_n,status:Je,showArrow:Kt,builtinPlacements:wn,style:tt}=xe,Xn=Ya(xe,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Mn=(0,jn.Z)(Xn,["suffixIcon"]),{getPopupContainer:ca,getPrefixCls:Vn,renderEmpty:Za,direction:sa,popupOverflow:er,cascader:tr}=he.useContext(ba.E_),gr=Zt||sa,Tt=gr==="rtl",{status:Da,hasFeedback:Qt,isFormItemInput:xa,feedbackIcon:pa}=he.useContext(Oa.aM),Xt=(0,Wn.F)(Da,Je),Dn=Ea||(Za==null?void 0:Za("Cascader"))||he.createElement(un.Z,{componentName:"Cascader"}),ea=Vn(),yn=Vn("select",Ft),Ra=Vn("cascader",Ft),[Pa,Va]=(0,Sa.Z)(yn),[cr]=Qn(Ra),{compactSize:Ar,compactItemClassnames:Mr}=(0,Sn.ri)(yn,Zt),Pr=Fe()(sn||dn,`${Ra}-dropdown`,{[`${Ra}-dropdown-rtl`]:gr==="rtl"},An,Va),Jr=he.useMemo(()=>{if(!fn)return fn;let nn={render:At};return typeof fn=="object"&&(nn=Object.assign(Object.assign({},nn),fn)),nn},[fn]),Xa=(0,En.Z)(nn=>{var Ba;return(Ba=Ut!=null?Ut:Ar)!==null&&Ba!==void 0?Ba:nn}),qa=he.useContext(mn.Z),pr=Rt!=null?Rt:qa;let fa=qn;qn||(fa=Tt?he.createElement(Be.Z,null):he.createElement(be.Z,null));const ur=he.createElement("span",{className:`${yn}-menu-item-loading-icon`},he.createElement(Ie.Z,{spin:!0})),mr=he.useMemo(()=>je?he.createElement("span",{className:`${Ra}-checkbox-inner`}):!1,[je]),Ga=(0,tn.Z)(xe.suffixIcon,Kt),{suffixIcon:ar,removeIcon:mt,clearIcon:it}=(0,ht.Z)(Object.assign(Object.assign({},xe),{hasFeedback:Qt,feedbackIcon:pa,showSuffixIcon:Ga,multiple:je,prefixCls:yn,componentName:"Cascader"})),Nt=he.useMemo(()=>Un!==void 0?Un:Tt?"bottomRight":"bottomLeft",[Un,Tt]),cn=(0,wa.Z)(wn,er),ua=Jn===!0?{clearIcon:it}:Jn,La=he.createElement(xn,Object.assign({prefixCls:yn,className:Fe()(!Ft&&Ra,{[`${yn}-lg`]:Xa==="large",[`${yn}-sm`]:Xa==="small",[`${yn}-rtl`]:Tt,[`${yn}-borderless`]:!Ke,[`${yn}-in-form-item`]:xa},(0,Wn.Z)(yn,Xt,Qt),Mr,tr==null?void 0:tr.className,yt,An,Va),disabled:pr,style:Object.assign(Object.assign({},tr==null?void 0:tr.style),tt)},Mn,{builtinPlacements:cn,direction:gr,placement:Nt,notFoundContent:Dn,allowClear:ua,showSearch:Jr,expandIcon:fa,suffixIcon:ar,removeIcon:mt,loadingIcon:ur,checkable:mr,dropdownClassName:Pr,dropdownPrefixCls:Ft||Ra,choiceTransitionName:(0,$t.m)(ea,"",Mt),transitionName:(0,$t.m)(ea,"slide-up",He),getPopupContainer:_n||ca,ref:ft}));return cr(Pa(La))}),Tn=(0,ma.Z)(On);On.SHOW_PARENT=Ja,On.SHOW_CHILD=Ma,On._InternalPanelDoNotUseOrYouWillBeFired=Tn;var Ln=On},36381:function(_e,xt,oe){"use strict";oe.d(xt,{default:function(){return ln}});var b=oe(38819),he=oe(92310),Be=oe.n(he),Ie=oe(60499),be=oe(77654),Ge=oe(72190),Fe=oe(43749),Ye=oe(18929),ke=oe(48736),De=oe(59301),Oe=oe(42244),We=oe(11592),Ve=oe(18642),le=oe(77900),E=oe(10228),a=De.forwardRef(function(ct,et){var Bn=ct.prefixCls,ot=ct.forceRender,bt=ct.className,zt=ct.style,St=ct.children,Rn=ct.isActive,Ot=ct.role,Kn=De.useState(Rn||ot),xn=(0,Ge.Z)(Kn,2),jn=xn[0],$t=xn[1];return De.useEffect(function(){(ot||Rn)&&$t(!0)},[ot,Rn]),jn?De.createElement("div",{ref:et,className:Be()("".concat(Bn,"-content"),(0,Ve.Z)((0,Ve.Z)({},"".concat(Bn,"-content-active"),Rn),"".concat(Bn,"-content-inactive"),!Rn),bt),style:zt,role:Ot},De.createElement("div",{className:"".concat(Bn,"-content-box")},St)):null});a.displayName="PanelContent";var x=a,y=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],z=De.forwardRef(function(ct,et){var Bn=ct.showArrow,ot=Bn===void 0?!0:Bn,bt=ct.headerClass,zt=ct.isActive,St=ct.onItemClick,Rn=ct.forceRender,Ot=ct.className,Kn=ct.prefixCls,xn=ct.collapsible,jn=ct.accordion,$t=ct.panelKey,ma=ct.extra,Wn=ct.header,ba=ct.expandIcon,un=ct.openMotion,mn=ct.destroyInactivePanel,En=ct.children,Oa=(0,Oe.Z)(ct,y),Sa=xn==="disabled",wa=xn==="header",tn=xn==="icon",ht=ma!=null&&typeof ma!="boolean",Sn=function(){St==null||St($t)},Cn=function(Ya){(Ya.key==="Enter"||Ya.keyCode===E.Z.ENTER||Ya.which===E.Z.ENTER)&&Sn()},ya=typeof ba=="function"?ba(ct):De.createElement("i",{className:"arrow"});ya&&(ya=De.createElement("div",{className:"".concat(Kn,"-expand-icon"),onClick:["header","icon"].includes(xn)?Sn:void 0},ya));var ra=Be()((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)({},"".concat(Kn,"-item"),!0),"".concat(Kn,"-item-active"),zt),"".concat(Kn,"-item-disabled"),Sa),Ot),Ka=Be()(bt,(0,Ve.Z)((0,Ve.Z)((0,Ve.Z)({},"".concat(Kn,"-header"),!0),"".concat(Kn,"-header-collapsible-only"),wa),"".concat(Kn,"-icon-collapsible-only"),tn)),oa={className:Ka,"aria-expanded":zt,"aria-disabled":Sa,onKeyDown:Cn};return!wa&&!tn&&(oa.onClick=Sn,oa.role=jn?"tab":"button",oa.tabIndex=Sa?-1:0),De.createElement("div",(0,Ie.Z)({},Oa,{ref:et,className:ra}),De.createElement("div",oa,ot&&ya,De.createElement("span",{className:"".concat(Kn,"-header-text"),onClick:xn==="header"?Sn:void 0},Wn),ht&&De.createElement("div",{className:"".concat(Kn,"-extra")},ma)),De.createElement(le.default,(0,Ie.Z)({visible:zt,leavedClassName:"".concat(Kn,"-content-hidden")},un,{forceRender:Rn,removeOnLeave:mn}),function(Qn,Ya){var Ma=Qn.className,Ja=Qn.style;return De.createElement(x,{ref:Ya,prefixCls:Kn,className:Ma,style:Ja,isActive:zt,forceRender:Rn,role:jn?"tabpanel":void 0},En)}))}),ne=z,re=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],ie=function(et,Bn){var ot=Bn.prefixCls,bt=Bn.accordion,zt=Bn.collapsible,St=Bn.destroyInactivePanel,Rn=Bn.onItemClick,Ot=Bn.activeKey,Kn=Bn.openMotion,xn=Bn.expandIcon;return et.map(function(jn,$t){var ma=jn.children,Wn=jn.label,ba=jn.key,un=jn.collapsible,mn=jn.onItemClick,En=jn.destroyInactivePanel,Oa=(0,Oe.Z)(jn,re),Sa=String(ba!=null?ba:$t),wa=un!=null?un:zt,tn=En!=null?En:St,ht=function(ya){wa!=="disabled"&&(Rn(ya),mn==null||mn(ya))},Sn=!1;return bt?Sn=Ot[0]===Sa:Sn=Ot.indexOf(Sa)>-1,De.createElement(ne,(0,Ie.Z)({},Oa,{prefixCls:ot,key:Sa,panelKey:Sa,isActive:Sn,accordion:bt,openMotion:Kn,expandIcon:xn,header:Wn,collapsible:wa,onItemClick:ht,destroyInactivePanel:tn}),ma)})},ge=function(et,Bn,ot){if(!et)return null;var bt=ot.prefixCls,zt=ot.accordion,St=ot.collapsible,Rn=ot.destroyInactivePanel,Ot=ot.onItemClick,Kn=ot.activeKey,xn=ot.openMotion,jn=ot.expandIcon,$t=et.key||String(Bn),ma=et.props,Wn=ma.header,ba=ma.headerClass,un=ma.destroyInactivePanel,mn=ma.collapsible,En=ma.onItemClick,Oa=!1;zt?Oa=Kn[0]===$t:Oa=Kn.indexOf($t)>-1;var Sa=mn!=null?mn:St,wa=function(Sn){Sa!=="disabled"&&(Ot(Sn),En==null||En(Sn))},tn={key:$t,panelKey:$t,header:Wn,headerClass:ba,isActive:Oa,prefixCls:bt,destroyInactivePanel:un!=null?un:Rn,openMotion:xn,accordion:zt,children:et.props.children,onItemClick:wa,expandIcon:jn,collapsible:Sa};return typeof et.type=="string"?et:(Object.keys(tn).forEach(function(ht){typeof tn[ht]=="undefined"&&delete tn[ht]}),De.cloneElement(et,tn))};function fe(ct,et,Bn){return Array.isArray(ct)?ie(ct,Bn):(0,We.Z)(et).map(function(ot,bt){return ge(ot,bt,Bn)})}var Pe=fe,Ue=oe(26112);function Re(ct){var et=ct;if(!Array.isArray(et)){var Bn=(0,Fe.Z)(et);et=Bn==="number"||Bn==="string"?[et]:[]}return et.map(function(ot){return String(ot)})}var lt=De.forwardRef(function(ct,et){var Bn=ct.prefixCls,ot=Bn===void 0?"rc-collapse":Bn,bt=ct.destroyInactivePanel,zt=bt===void 0?!1:bt,St=ct.style,Rn=ct.accordion,Ot=ct.className,Kn=ct.children,xn=ct.collapsible,jn=ct.openMotion,$t=ct.expandIcon,ma=ct.activeKey,Wn=ct.defaultActiveKey,ba=ct.onChange,un=ct.items,mn=Be()(ot,Ot),En=(0,Ye.Z)([],{value:ma,onChange:function(Cn){return ba==null?void 0:ba(Cn)},defaultValue:Wn,postState:Re}),Oa=(0,Ge.Z)(En,2),Sa=Oa[0],wa=Oa[1],tn=function(Cn){return wa(function(){if(Rn)return Sa[0]===Cn?[]:[Cn];var ya=Sa.indexOf(Cn),ra=ya>-1;return ra?Sa.filter(function(Ka){return Ka!==Cn}):[].concat((0,be.Z)(Sa),[Cn])})};(0,ke.ZP)(!Kn,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var ht=Pe(un,Kn,{prefixCls:ot,accordion:Rn,openMotion:jn,expandIcon:$t,collapsible:xn,destroyInactivePanel:zt,onItemClick:tn,activeKey:Sa});return De.createElement("div",(0,Ie.Z)({ref:et,className:mn,style:St,role:Rn?"tablist":void 0},(0,Ue.Z)(ct,{aria:!0,data:!0})),ht)}),Le=Object.assign(lt,{Panel:ne}),Ce=Le,Xe=Le.Panel,nt=oe(2738),ye=oe(62892),gt=oe(92343),pt=oe(36355),wt=oe(19716),Jt=De.forwardRef((ct,et)=>{const{getPrefixCls:Bn}=De.useContext(pt.E_),{prefixCls:ot,className:bt,showArrow:zt=!0}=ct,St=Bn("collapse",ot),Rn=Be()({[`${St}-no-arrow`]:!zt},bt);return De.createElement(Ce.Panel,Object.assign({ref:et},ct,{prefixCls:St,className:Rn}))}),on=oe(17313),It=oe(8378),Vt=oe(83116),Qe=oe(37613);const Me=ct=>{const{componentCls:et,contentBg:Bn,padding:ot,headerBg:bt,headerPadding:zt,collapseHeaderPaddingSM:St,collapseHeaderPaddingLG:Rn,collapsePanelBorderRadius:Ot,lineWidth:Kn,lineType:xn,colorBorder:jn,colorText:$t,colorTextHeading:ma,colorTextDisabled:Wn,fontSize:ba,fontSizeLG:un,lineHeight:mn,marginSM:En,paddingSM:Oa,paddingLG:Sa,paddingXS:wa,motionDurationSlow:tn,fontSizeIcon:ht,contentPadding:Sn}=ct,Cn=`${Kn}px ${xn} ${jn}`;return{[et]:Object.assign(Object.assign({},(0,on.Wf)(ct)),{backgroundColor:bt,border:Cn,borderBottom:0,borderRadius:`${Ot}px`,"&-rtl":{direction:"rtl"},[`& > ${et}-item`]:{borderBottom:Cn,"&:last-child":{[` &, - & > ${et}-header`]:{borderRadius:`0 0 ${Mt}px ${Mt}px`}},[`> ${et}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:Ht,color:ma,lineHeight:mn,cursor:"pointer",transition:`all ${en}, visibility 0s`,[`> ${et}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${et}-expand-icon`]:{height:Ca*mn,display:"flex",alignItems:"center",paddingInlineEnd:En},[`${et}-arrow`]:Object.assign(Object.assign({},(0,ln.Ro)()),{fontSize:ht,svg:{transition:`transform ${en}`}}),[`${et}-header-text`]:{marginInlineEnd:"auto"}},[`${et}-header-collapsible-only`]:{cursor:"default",[`${et}-header-text`]:{flex:"none",cursor:"pointer"}},[`${et}-icon-collapsible-only`]:{cursor:"default",[`${et}-expand-icon`]:{cursor:"pointer"}}},[`${et}-content`]:{color:$t,backgroundColor:bn,borderTop:xn,[`& > ${et}-content-box`]:{padding:hn},"&-hidden":{display:"none"}},"&-small":{[`> ${et}-item`]:{[`> ${et}-header`]:{padding:St,paddingInlineStart:Da,[`> ${et}-expand-icon`]:{marginInlineStart:Ma-Da}},[`> ${et}-content > ${et}-content-box`]:{padding:Ma}}},"&-large":{[`> ${et}-item`]:{fontSize:sn,[`> ${et}-header`]:{padding:Tn,paddingInlineStart:ot,[`> ${et}-expand-icon`]:{height:sn*mn,marginInlineStart:Sa-ot}},[`> ${et}-content > ${et}-content-box`]:{padding:Sa}}},[`${et}-item:last-child`]:{[`> ${et}-content`]:{borderRadius:`0 0 ${Mt}px ${Mt}px`}},[`& ${et}-item-disabled > ${et}-header`]:{"\n &,\n & > .arrow\n ":{color:Wn,cursor:"not-allowed"}},[`&${et}-icon-position-end`]:{[`& > ${et}-item`]:{[`> ${et}-header`]:{[`${et}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:En}}}}})}},Et=ct=>{const{componentCls:et}=ct,bn=`> ${et}-item > ${et}-header ${et}-arrow svg`;return{[`${et}-rtl`]:{[bn]:{transform:"rotate(180deg)"}}}},Gt=ct=>{const{componentCls:et,headerBg:bn,paddingXXS:ot,colorBorder:Bt}=ct;return{[`${et}-borderless`]:{backgroundColor:bn,border:0,[`> ${et}-item`]:{borderBottom:`1px solid ${Bt}`},[` + & > ${et}-header`]:{borderRadius:`0 0 ${Ot}px ${Ot}px`}},[`> ${et}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:zt,color:ma,lineHeight:mn,cursor:"pointer",transition:`all ${tn}, visibility 0s`,[`> ${et}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${et}-expand-icon`]:{height:ba*mn,display:"flex",alignItems:"center",paddingInlineEnd:En},[`${et}-arrow`]:Object.assign(Object.assign({},(0,on.Ro)()),{fontSize:ht,svg:{transition:`transform ${tn}`}}),[`${et}-header-text`]:{marginInlineEnd:"auto"}},[`${et}-header-collapsible-only`]:{cursor:"default",[`${et}-header-text`]:{flex:"none",cursor:"pointer"}},[`${et}-icon-collapsible-only`]:{cursor:"default",[`${et}-expand-icon`]:{cursor:"pointer"}}},[`${et}-content`]:{color:$t,backgroundColor:Bn,borderTop:Cn,[`& > ${et}-content-box`]:{padding:Sn},"&-hidden":{display:"none"}},"&-small":{[`> ${et}-item`]:{[`> ${et}-header`]:{padding:St,paddingInlineStart:wa,[`> ${et}-expand-icon`]:{marginInlineStart:Oa-wa}},[`> ${et}-content > ${et}-content-box`]:{padding:Oa}}},"&-large":{[`> ${et}-item`]:{fontSize:un,[`> ${et}-header`]:{padding:Rn,paddingInlineStart:ot,[`> ${et}-expand-icon`]:{height:un*mn,marginInlineStart:Sa-ot}},[`> ${et}-content > ${et}-content-box`]:{padding:Sa}}},[`${et}-item:last-child`]:{[`> ${et}-content`]:{borderRadius:`0 0 ${Ot}px ${Ot}px`}},[`& ${et}-item-disabled > ${et}-header`]:{"\n &,\n & > .arrow\n ":{color:Wn,cursor:"not-allowed"}},[`&${et}-icon-position-end`]:{[`& > ${et}-item`]:{[`> ${et}-header`]:{[`${et}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:En}}}}})}},Et=ct=>{const{componentCls:et}=ct,Bn=`> ${et}-item > ${et}-header ${et}-arrow svg`;return{[`${et}-rtl`]:{[Bn]:{transform:"rotate(180deg)"}}}},kt=ct=>{const{componentCls:et,headerBg:Bn,paddingXXS:ot,colorBorder:bt}=ct;return{[`${et}-borderless`]:{backgroundColor:Bn,border:0,[`> ${et}-item`]:{borderBottom:`1px solid ${bt}`},[` > ${et}-item:last-child, > ${et}-item:last-child ${et}-header - `]:{borderRadius:0},[`> ${et}-item:last-child`]:{borderBottom:0},[`> ${et}-item > ${et}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${et}-item > ${et}-content > ${et}-content-box`]:{paddingTop:ot}}}},vt=ct=>{const{componentCls:et,paddingSM:bn}=ct;return{[`${et}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${et}-item`]:{borderBottom:0,[`> ${et}-content`]:{backgroundColor:"transparent",border:0,[`> ${et}-content-box`]:{paddingBlock:bn}}}}}};var Dt=(0,Wt.Z)("Collapse",ct=>{const et=(0,Qe.TS)(ct,{collapseHeaderPaddingSM:`${ct.paddingXS}px ${ct.paddingSM}px`,collapseHeaderPaddingLG:`${ct.padding}px ${ct.paddingLG}px`,collapsePanelBorderRadius:ct.borderRadiusLG});return[Me(et),Gt(et),vt(et),Et(et),(0,Nt.Z)(et)]},ct=>({headerPadding:`${ct.paddingSM}px ${ct.padding}px`,headerBg:ct.colorFillAlter,contentPadding:`${ct.padding}px 16px`,contentBg:ct.colorBgContainer})),dt=Object.assign(De.forwardRef((ct,et)=>{const{getPrefixCls:bn,direction:ot,collapse:Bt}=De.useContext(pt.E_),{prefixCls:Ht,className:St,rootClassName:Tn,style:Mt,bordered:Kn=!0,ghost:wn,size:jn,expandIconPosition:$t="start",children:ma,expandIcon:Wn}=ct,Ca=(0,wt.Z)(xn=>{var ya;return(ya=jn!=null?jn:xn)!==null&&ya!==void 0?ya:"middle"}),sn=bn("collapse",Ht),mn=bn(),[En,Ma]=Dt(sn),Sa=De.useMemo(()=>$t==="left"?"start":$t==="right"?"end":$t,[$t]),Da=function(){let xn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const ya=Wn?Wn(xn):De.createElement(b.Z,{rotate:xn.isActive?90:void 0});return(0,gt.Tm)(ya,()=>({className:Be()(ya.props.className,`${sn}-arrow`)}))},en=Be()(`${sn}-icon-position-${Sa}`,{[`${sn}-borderless`]:!Kn,[`${sn}-rtl`]:ot==="rtl",[`${sn}-ghost`]:!!wn,[`${sn}-${Ca}`]:Ca!=="middle"},Bt==null?void 0:Bt.className,St,Tn,Ma),ht=Object.assign(Object.assign({},(0,ye.Z)(mn)),{motionAppear:!1,leavedClassName:`${sn}-content-hidden`}),hn=De.useMemo(()=>ma?(0,We.Z)(ma).map((xn,ya)=>{var aa,Ka;if(!((aa=xn.props)===null||aa===void 0)&&aa.disabled){const ra=(Ka=xn.key)!==null&&Ka!==void 0?Ka:String(ya),{disabled:Qn,collapsible:Ya}=xn.props,Ra=Object.assign(Object.assign({},(0,nt.Z)(xn.props,["disabled"])),{key:ra,collapsible:Ya!=null?Ya:Qn?"disabled":void 0});return(0,gt.Tm)(xn,Ra)}return xn}):null,[ma]);return En(De.createElement(Ce,Object.assign({ref:et,openMotion:ht},(0,nt.Z)(ct,["rootClassName"]),{expandIcon:Da,prefixCls:sn,className:en,style:Object.assign(Object.assign({},Bt==null?void 0:Bt.style),Mt)}),hn))}),{Panel:Yt}),un=dt},39722:function(_e,xt,oe){"use strict";oe.d(xt,{t5:function(){return De}});var b=oe(92310),he=oe.n(b),Be=oe(55477),Ie=oe(59301),be=oe(36355),Ge=oe(77578),Fe=oe(17356),Ye=function(We,Ve){var le={};for(var E in We)Object.prototype.hasOwnProperty.call(We,E)&&Ve.indexOf(E)<0&&(le[E]=We[E]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,E=Object.getOwnPropertySymbols(We);a{if(!(!Ve&&!le))return Ie.createElement(Ie.Fragment,null,Ve&&Ie.createElement("div",{className:`${We}-title`},(0,Ge.Z)(Ve)),Ie.createElement("div",{className:`${We}-inner-content`},(0,Ge.Z)(le)))},De=We=>{const{hashId:Ve,prefixCls:le,className:E,style:a,placement:x="top",title:y,content:z,children:ne}=We;return Ie.createElement("div",{className:he()(Ve,le,`${le}-pure`,`${le}-placement-${x}`,E),style:a},Ie.createElement("div",{className:`${le}-arrow`}),Ie.createElement(Be.G,Object.assign({},We,{className:Ve,prefixCls:le}),ne||ke(le,y,z)))},Oe=We=>{const{prefixCls:Ve}=We,le=Ye(We,["prefixCls"]),{getPrefixCls:E}=Ie.useContext(be.E_),a=E("popover",Ve),[x,y]=(0,Fe.Z)(a);return x(Ie.createElement(De,Object.assign({},le,{prefixCls:a,hashId:y})))};xt.ZP=Oe},60324:function(_e,xt,oe){"use strict";var b=oe(92310),he=oe.n(b),Be=oe(59301),Ie=oe(77578),be=oe(62892),Ge=oe(36355),Fe=oe(6848),Ye=oe(39722),ke=oe(17356),De=function(Ve,le){var E={};for(var a in Ve)Object.prototype.hasOwnProperty.call(Ve,a)&&le.indexOf(a)<0&&(E[a]=Ve[a]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,a=Object.getOwnPropertySymbols(Ve);x{let{title:le,content:E,prefixCls:a}=Ve;return Be.createElement(Be.Fragment,null,le&&Be.createElement("div",{className:`${a}-title`},(0,Ie.Z)(le)),Be.createElement("div",{className:`${a}-inner-content`},(0,Ie.Z)(E)))},We=Be.forwardRef((Ve,le)=>{const{prefixCls:E,title:a,content:x,overlayClassName:y,placement:z="top",trigger:ne="hover",mouseEnterDelay:re=.1,mouseLeaveDelay:ie=.1,overlayStyle:ge={}}=Ve,fe=De(Ve,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Pe}=Be.useContext(Ge.E_),Ue=Pe("popover",E),[Re,lt]=(0,ke.Z)(Ue),Le=Pe(),Ce=he()(y,lt);return Re(Be.createElement(Fe.Z,Object.assign({placement:z,trigger:ne,mouseEnterDelay:re,mouseLeaveDelay:ie,overlayStyle:ge},fe,{prefixCls:Ue,overlayClassName:Ce,ref:le,overlay:a||x?Be.createElement(Oe,{prefixCls:Ue,title:a,content:x}):null,transitionName:(0,be.m)(Le,"zoom-big",fe.transitionName),"data-popover-inject":!0})))});We._InternalPanelDoNotUseOrYouWillBeFired=Ye.ZP,xt.Z=We},17356:function(_e,xt,oe){"use strict";var b=oe(17313),he=oe(29878),Be=oe(19447),Ie=oe(33166),be=oe(83116),Ge=oe(37613);const Fe=De=>{const{componentCls:Oe,popoverColor:We,minWidth:Ve,fontWeightStrong:le,popoverPadding:E,boxShadowSecondary:a,colorTextHeading:x,borderRadiusLG:y,zIndexPopup:z,marginXS:ne,colorBgElevated:re,popoverBg:ie}=De;return[{[Oe]:Object.assign(Object.assign({},(0,b.Wf)(De)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:z,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":re,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Oe}-content`]:{position:"relative"},[`${Oe}-inner`]:{backgroundColor:ie,backgroundClip:"padding-box",borderRadius:y,boxShadow:a,padding:E},[`${Oe}-title`]:{minWidth:Ve,marginBottom:ne,color:x,fontWeight:le},[`${Oe}-inner-content`]:{color:We}})},(0,Be.ZP)(De,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Oe}-pure`]:{position:"relative",maxWidth:"none",margin:De.sizePopupArrow,display:"inline-block",[`${Oe}-content`]:{display:"inline-block"}}}]},Ye=De=>{const{componentCls:Oe}=De;return{[Oe]:Ie.i.map(We=>{const Ve=De[`${We}6`];return{[`&${Oe}-${We}`]:{"--antd-arrow-background-color":Ve,[`${Oe}-inner`]:{backgroundColor:Ve},[`${Oe}-arrow`]:{background:"transparent"}}}})}},ke=De=>{const{componentCls:Oe,lineWidth:We,lineType:Ve,colorSplit:le,paddingSM:E,controlHeight:a,fontSize:x,lineHeight:y,padding:z}=De,ne=a-Math.round(x*y),re=ne/2,ie=ne/2-We,ge=z;return{[Oe]:{[`${Oe}-inner`]:{padding:0},[`${Oe}-title`]:{margin:0,padding:`${re}px ${ge}px ${ie}px`,borderBottom:`${We}px ${Ve} ${le}`},[`${Oe}-inner-content`]:{padding:`${E}px ${ge}px`}}}};xt.Z=(0,be.Z)("Popover",De=>{const{colorBgElevated:Oe,colorText:We,wireframe:Ve}=De,le=(0,Ge.TS)(De,{popoverPadding:12,popoverBg:Oe,popoverColor:We});return[Fe(le),Ye(le),Ve&&ke(le),(0,he._y)(le,"zoom-big")]},De=>({width:177,minWidth:177,zIndexPopup:De.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},12563:function(_e,xt,oe){"use strict";oe.d(xt,{default:function(){return lt}});var b=oe(59301),he=oe(99267),Be=oe(92310),Ie=oe.n(Be),be=oe(36785),Ge=oe(47729),Fe=oe(14088),Ye=oe(36355),ke=oe(17313),De=oe(37613),Oe=oe(83116);const We=Le=>{const{paddingXXS:Ce,lineWidth:Xe,tagPaddingHorizontal:nt,componentCls:ye}=Le,gt=nt-Xe,pt=Ce-Xe;return{[ye]:Object.assign(Object.assign({},(0,ke.Wf)(Le)),{display:"inline-block",height:"auto",marginInlineEnd:Le.marginXS,paddingInline:gt,fontSize:Le.tagFontSize,lineHeight:Le.tagLineHeight,whiteSpace:"nowrap",background:Le.defaultBg,border:`${Le.lineWidth}px ${Le.lineType} ${Le.colorBorder}`,borderRadius:Le.borderRadiusSM,opacity:1,transition:`all ${Le.motionDurationMid}`,textAlign:"start",position:"relative",[`&${ye}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Le.defaultColor},[`${ye}-close-icon`]:{marginInlineStart:pt,color:Le.colorTextDescription,fontSize:Le.tagIconSize,cursor:"pointer",transition:`all ${Le.motionDurationMid}`,"&:hover":{color:Le.colorTextHeading}},[`&${ye}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Le.iconCls}-close, ${Le.iconCls}-close:hover`]:{color:Le.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${ye}-checkable-checked):hover`]:{color:Le.colorPrimary,backgroundColor:Le.colorFillSecondary},"&:active, &-checked":{color:Le.colorTextLightSolid},"&-checked":{backgroundColor:Le.colorPrimary,"&:hover":{backgroundColor:Le.colorPrimaryHover}},"&:active":{backgroundColor:Le.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Le.iconCls} + span, > span + ${Le.iconCls}`]:{marginInlineStart:gt}}),[`${ye}-borderless`]:{borderColor:"transparent",background:Le.tagBorderlessBg}}},Ve=Le=>{const{lineWidth:Ce,fontSizeIcon:Xe}=Le,nt=Le.fontSizeSM,ye=`${Le.lineHeightSM*nt}px`;return(0,De.TS)(Le,{tagFontSize:nt,tagLineHeight:ye,tagIconSize:Xe-2*Ce,tagPaddingHorizontal:8,tagBorderlessBg:Le.colorFillTertiary})},le=Le=>({defaultBg:Le.colorFillQuaternary,defaultColor:Le.colorText});var E=(0,Oe.Z)("Tag",Le=>{const Ce=Ve(Le);return We(Ce)},le),a=function(Le,Ce){var Xe={};for(var nt in Le)Object.prototype.hasOwnProperty.call(Le,nt)&&Ce.indexOf(nt)<0&&(Xe[nt]=Le[nt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,nt=Object.getOwnPropertySymbols(Le);ye{const{prefixCls:Ce,style:Xe,className:nt,checked:ye,onChange:gt,onClick:pt}=Le,wt=a(Le,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:ut,tag:Yt}=b.useContext(Ye.E_),ln=Et=>{gt==null||gt(!ye),pt==null||pt(Et)},Nt=ut("tag",Ce),[Wt,Qe]=E(Nt),Me=Ie()(Nt,`${Nt}-checkable`,{[`${Nt}-checkable-checked`]:ye},Yt==null?void 0:Yt.className,nt,Qe);return Wt(b.createElement("span",Object.assign({},wt,{style:Object.assign(Object.assign({},Xe),Yt==null?void 0:Yt.style),className:Me,onClick:ln})))},z=oe(45157);const ne=Le=>(0,z.Z)(Le,(Ce,Xe)=>{let{textColor:nt,lightBorderColor:ye,lightColor:gt,darkColor:pt}=Xe;return{[`${Le.componentCls}-${Ce}`]:{color:nt,background:gt,borderColor:ye,"&-inverse":{color:Le.colorTextLightSolid,background:pt,borderColor:pt},[`&${Le.componentCls}-borderless`]:{borderColor:"transparent"}}}});var re=(0,Oe.b)(["Tag","preset"],Le=>{const Ce=Ve(Le);return ne(Ce)},le);function ie(Le){return typeof Le!="string"?Le:Le.charAt(0).toUpperCase()+Le.slice(1)}const ge=(Le,Ce,Xe)=>{const nt=ie(Xe);return{[`${Le.componentCls}-${Ce}`]:{color:Le[`color${Xe}`],background:Le[`color${nt}Bg`],borderColor:Le[`color${nt}Border`],[`&${Le.componentCls}-borderless`]:{borderColor:"transparent"}}}};var fe=(0,Oe.b)(["Tag","status"],Le=>{const Ce=Ve(Le);return[ge(Ce,"success","Success"),ge(Ce,"processing","Info"),ge(Ce,"error","Error"),ge(Ce,"warning","Warning")]},le),Pe=function(Le,Ce){var Xe={};for(var nt in Le)Object.prototype.hasOwnProperty.call(Le,nt)&&Ce.indexOf(nt)<0&&(Xe[nt]=Le[nt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,nt=Object.getOwnPropertySymbols(Le);ye{const{prefixCls:Xe,className:nt,rootClassName:ye,style:gt,children:pt,icon:wt,color:ut,onClose:Yt,closeIcon:ln,closable:Nt,bordered:Wt=!0}=Le,Qe=Pe(Le,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:Me,direction:Et,tag:Gt}=b.useContext(Ye.E_),[vt,Dt]=b.useState(!0);b.useEffect(()=>{"visible"in Qe&&Dt(Qe.visible)},[Qe.visible]);const Ae=(0,be.o2)(ut),dt=(0,be.yT)(ut),un=Ae||dt,ct=Object.assign(Object.assign({backgroundColor:ut&&!un?ut:void 0},Gt==null?void 0:Gt.style),gt),et=Me("tag",Xe),[bn,ot]=E(et),Bt=Ie()(et,Gt==null?void 0:Gt.className,{[`${et}-${ut}`]:un,[`${et}-has-color`]:ut&&!un,[`${et}-hidden`]:!vt,[`${et}-rtl`]:Et==="rtl",[`${et}-borderless`]:!Wt},nt,ye,ot),Ht=jn=>{jn.stopPropagation(),Yt==null||Yt(jn),!jn.defaultPrevented&&Dt(!1)},[,St]=(0,Ge.Z)(Nt,ln,jn=>jn===null?b.createElement(he.Z,{className:`${et}-close-icon`,onClick:Ht}):b.createElement("span",{className:`${et}-close-icon`,onClick:Ht},jn),null,!1),Tn=typeof Qe.onClick=="function"||pt&&pt.type==="a",Mt=wt||null,Kn=Mt?b.createElement(b.Fragment,null,Mt,pt&&b.createElement("span",null,pt)):pt,wn=b.createElement("span",Object.assign({},Qe,{ref:Ce,className:Bt,style:ct}),Kn,St,Ae&&b.createElement(re,{key:"preset",prefixCls:et}),dt&&b.createElement(fe,{key:"status",prefixCls:et}));return bn(Tn?b.createElement(Fe.Z,{component:"Tag"},wn):wn)},Re=b.forwardRef(Ue);Re.CheckableTag=y;var lt=Re},98228:function(_e,xt,oe){"use strict";oe.d(xt,{default:function(){return Br}});var b=oe(92310),he=oe.n(b),Be=oe(60499),Ie=oe(77654),be=oe(85899),Ge=oe(72190),Fe=oe(42244),Ye=oe(43749),ke=oe(77861),De=oe(17115),Oe=oe(90782),We=oe(18929),Ve=oe(48736),le=oe(59301),E=function(At){var Mn=le.useRef({valueLabels:new Map});return le.useMemo(function(){var kn=Mn.current.valueLabels,In=new Map,xe=At.map(function(ft){var Ft,Qt=ft.value,Tt=(Ft=ft.label)!==null&&Ft!==void 0?Ft:kn.get(Qt);return In.set(Qt,Tt),(0,be.Z)((0,be.Z)({},ft),{},{label:Tt})});return Mn.current.valueLabels=In,[xe]},[At])},a=function(At,Mn,kn,In){return le.useMemo(function(){var xe=At.map(function(Tt){var yt=Tt.value;return yt}),ft=Mn.map(function(Tt){var yt=Tt.value;return yt}),Ft=xe.filter(function(Tt){return!In[Tt]});if(kn){var Qt=(0,Oe.S)(xe,!0,In);xe=Qt.checkedKeys,ft=Qt.halfCheckedKeys}return[Array.from(new Set([].concat((0,Ie.Z)(Ft),(0,Ie.Z)(xe)))),ft]},[At,Mn,kn,In])},x=oe(71430),y=function(At,Mn){return le.useMemo(function(){var kn=(0,x.I8)(At,{fieldNames:Mn,initWrapper:function(xe){return(0,be.Z)((0,be.Z)({},xe),{},{valueEntities:new Map})},processEntity:function(xe,ft){var Ft=xe.node[Mn.value];if(0)var Qt;ft.valueEntities.set(Ft,xe)}});return kn},[At,Mn])},z=oe(18642),ne=oe(11592),re=function(){return null},ie=re,ge=["children","value"];function fe(At){return(0,ne.Z)(At).map(function(Mn){if(!le.isValidElement(Mn)||!Mn.type)return null;var kn=Mn,In=kn.key,xe=kn.props,ft=xe.children,Ft=xe.value,Qt=(0,Fe.Z)(xe,ge),Tt=(0,be.Z)({key:In,value:Ft},Qt),yt=fe(ft);return yt.length&&(Tt.children=yt),Tt}).filter(function(Mn){return Mn})}function Pe(At){if(!At)return At;var Mn=(0,be.Z)({},At);return"props"in Mn||Object.defineProperty(Mn,"props",{get:function(){return(0,Ve.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Mn}}),Mn}function Ue(At,Mn,kn,In,xe,ft){var Ft=null,Qt=null;function Tt(){function yt(An){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return An.map(function(He,Rt){var dn="".concat(je,"-").concat(Rt),cn=He[ft.value],qn=kn.includes(cn),Un=yt(He[ft.children]||[],dn,qn),vn=le.createElement(ie,He,Un.map(function(Ea){return Ea.node}));if(Mn===cn&&(Ft=vn),qn){var Jn={pos:dn,node:vn,children:Un};return Ke||Qt.push(Jn),Jn}return null}).filter(function(He){return He})}Qt||(Qt=[],yt(In),Qt.sort(function(An,je){var Ke=An.node.props.value,He=je.node.props.value,Rt=kn.indexOf(Ke),dn=kn.indexOf(He);return Rt-dn}))}Object.defineProperty(At,"triggerNode",{get:function(){return(0,Ve.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Tt(),Ft}}),Object.defineProperty(At,"allCheckedNodes",{get:function(){return(0,Ve.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Tt(),xe?Qt:Qt.map(function(An){var je=An.node;return je})}})}var Re=function(At,Mn,kn){var In=kn.treeNodeFilterProp,xe=kn.filterTreeNode,ft=kn.fieldNames,Ft=ft.children;return le.useMemo(function(){if(!Mn||xe===!1)return At;var Qt;if(typeof xe=="function")Qt=xe;else{var Tt=Mn.toUpperCase();Qt=function(je,Ke){var He=Ke[In];return String(He).toUpperCase().includes(Tt)}}function yt(An){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return An.reduce(function(Ke,He){var Rt=He[Ft],dn=je||Qt(Mn,Pe(He)),cn=yt(Rt||[],dn);return(dn||cn.length)&&Ke.push((0,be.Z)((0,be.Z)({},He),{},(0,z.Z)({isLeaf:void 0},Ft,cn))),Ke},[])}return yt(At)},[At,Mn,Ft,In,xe])};function lt(At){var Mn=le.useRef();Mn.current=At;var kn=le.useCallback(function(){return Mn.current.apply(Mn,arguments)},[]);return kn}function Le(At,Mn){var kn=Mn.id,In=Mn.pId,xe=Mn.rootPId,ft={},Ft=[],Qt=At.map(function(Tt){var yt=(0,be.Z)({},Tt),An=yt[kn];return ft[An]=yt,yt.key=yt.key||An,yt});return Qt.forEach(function(Tt){var yt=Tt[In],An=ft[yt];An&&(An.children=An.children||[],An.children.push(Tt)),(yt===xe||!An&&xe===null)&&Ft.push(Tt)}),Ft}function Ce(At,Mn,kn){return le.useMemo(function(){return At?kn?Le(At,(0,be.Z)({id:"id",pId:"pId",rootPId:null},kn!==!0?kn:{})):At:fe(Mn)},[Mn,kn,At])}var Xe=le.createContext(null),nt=Xe,ye=oe(10228),gt=oe(80547),pt=oe(38028),wt=le.createContext(null),ut=wt;function Yt(At){return Array.isArray(At)?At:At!==void 0?[At]:[]}function ln(At){var Mn=At||{},kn=Mn.label,In=Mn.value,xe=Mn.children,ft=In||"value";return{_title:kn?[kn]:["title","label"],value:ft,key:ft,children:xe||"children"}}function Nt(At){return!At||At.disabled||At.disableCheckbox||At.checkable===!1}function Wt(At,Mn){var kn=[];function In(xe){xe.forEach(function(ft){var Ft=ft[Mn.children];Ft&&(kn.push(ft[Mn.value]),In(Ft))})}return In(At),kn}function Qe(At){return At==null}var Me={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Et=function(Mn,kn){var In=(0,ke.lk)(),xe=In.prefixCls,ft=In.multiple,Ft=In.searchValue,Qt=In.toggleOpen,Tt=In.open,yt=In.notFoundContent,An=le.useContext(ut),je=An.virtual,Ke=An.listHeight,He=An.listItemHeight,Rt=An.treeData,dn=An.fieldNames,cn=An.onSelect,qn=An.dropdownMatchSelectWidth,Un=An.treeExpandAction,vn=le.useContext(nt),Jn=vn.checkable,Ea=vn.checkedKeys,zt=vn.halfCheckedKeys,_n=vn.treeExpandedKeys,Je=vn.treeDefaultExpandAll,Ut=vn.treeDefaultExpandedKeys,Dn=vn.onTreeExpand,tt=vn.treeIcon,Xn=vn.showTreeIcon,Rn=vn.switcherIcon,ca=vn.treeLine,Vn=vn.treeNodeFilterProp,Za=vn.loadData,sa=vn.treeLoadedKeys,_a=vn.treeMotion,$a=vn.onTreeLoad,gr=vn.keyEntities,kt=le.useRef(),La=(0,gt.Z)(function(){return Rt},[Tt,Rt],function(Ga,tr){return tr[0]&&Ga[1]!==tr[1]}),Vt=le.useState(null),wa=(0,Ge.Z)(Vt,2),pa=wa[0],Jt=wa[1],Ln=gr[pa],ea=le.useMemo(function(){return Jn?{checked:Ea,halfChecked:zt}:null},[Jn,Ea,zt]);le.useEffect(function(){if(Tt&&!ft&&Ea.length){var Ga;(Ga=kt.current)===null||Ga===void 0||Ga.scrollTo({key:Ea[0]}),Jt(Ea[0])}},[Tt]);var yn=String(Ft).toLowerCase(),Ta=function(tr){return yn?String(tr[Vn]).toLowerCase().includes(yn):!1},Pa=le.useState(Ut),Va=(0,Ge.Z)(Pa,2),dr=Va[0],Er=Va[1],Mr=le.useState(null),hr=(0,Ge.Z)(Mr,2),Jr=hr[0],Xa=hr[1],qa=le.useMemo(function(){return _n?(0,Ie.Z)(_n):Ft?Jr:dr},[dr,Jr,_n,Ft]);le.useEffect(function(){Ft&&Xa(Wt(Rt,dn))},[Ft]);var vr=function(tr){Er(tr),Xa(tr),Dn&&Dn(tr)},fa=function(tr){tr.preventDefault()},lr=function(tr,mt){var it=mt.node;Jn&&Nt(it)||(cn(it.key,{selected:!Ea.includes(it.key)}),ft||Qt(!1))};if(le.useImperativeHandle(kn,function(){var Ga;return{scrollTo:(Ga=kt.current)===null||Ga===void 0?void 0:Ga.scrollTo,onKeyDown:function(mt){var it,Ot=mt.which;switch(Ot){case ye.Z.UP:case ye.Z.DOWN:case ye.Z.LEFT:case ye.Z.RIGHT:(it=kt.current)===null||it===void 0||it.onKeyDown(mt);break;case ye.Z.ENTER:{if(Ln){var gn=(Ln==null?void 0:Ln.node)||{},ua=gn.selectable,Ia=gn.value;ua!==!1&&lr(null,{node:{key:pa},selected:!Ea.includes(Ia)})}break}case ye.Z.ESC:Qt(!1)}},onKeyUp:function(){}}}),La.length===0)return le.createElement("div",{role:"listbox",className:"".concat(xe,"-empty"),onMouseDown:fa},yt);var mr={fieldNames:dn};return sa&&(mr.loadedKeys=sa),qa&&(mr.expandedKeys=qa),le.createElement("div",{onMouseDown:fa},Ln&&Tt&&le.createElement("span",{style:Me,"aria-live":"assertive"},Ln.node.value),le.createElement(pt.Z,(0,Be.Z)({ref:kt,focusable:!1,prefixCls:"".concat(xe,"-tree"),treeData:La,height:Ke,itemHeight:He,virtual:je!==!1&&qn!==!1,multiple:ft,icon:tt,showIcon:Xn,switcherIcon:Rn,showLine:ca,loadData:Ft?null:Za,motion:_a,activeKey:pa,checkable:Jn,checkStrictly:!0,checkedKeys:ea,selectedKeys:Jn?[]:Ea,defaultExpandAll:Je},mr,{onActiveChange:Jt,onSelect:lr,onCheck:lr,onExpand:vr,onLoad:$a,filterTreeNode:Ta,expandAction:Un})))},Gt=le.forwardRef(Et);Gt.displayName="OptionList";var vt=Gt,Dt="SHOW_ALL",Ae="SHOW_PARENT",dt="SHOW_CHILD";function un(At,Mn,kn,In){var xe=new Set(At);return Mn===dt?At.filter(function(ft){var Ft=kn[ft];return!(Ft&&Ft.children&&Ft.children.some(function(Qt){var Tt=Qt.node;return xe.has(Tt[In.value])})&&Ft.children.every(function(Qt){var Tt=Qt.node;return Nt(Tt)||xe.has(Tt[In.value])}))}):Mn===Ae?At.filter(function(ft){var Ft=kn[ft],Qt=Ft?Ft.parent:null;return!(Qt&&!Nt(Qt.node)&&xe.has(Qt.key))}):At}function ct(At){var Mn=At.searchPlaceholder,kn=At.treeCheckStrictly,In=At.treeCheckable,xe=At.labelInValue,ft=At.value,Ft=At.multiple;warning(!Mn,"`searchPlaceholder` has been removed."),kn&&xe===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(xe||kn)&&warning(toArray(ft).every(function(Qt){return Qt&&_typeof(Qt)==="object"&&"value"in Qt}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),kn||Ft||In?warning(!ft||Array.isArray(ft),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(ft),"`value` should not be array when `TreeSelect` is single mode.")}var et=null,bn=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function ot(At){return!At||(0,Ye.Z)(At)!=="object"}var Bt=le.forwardRef(function(At,Mn){var kn=At.id,In=At.prefixCls,xe=In===void 0?"rc-tree-select":In,ft=At.value,Ft=At.defaultValue,Qt=At.onChange,Tt=At.onSelect,yt=At.onDeselect,An=At.searchValue,je=At.inputValue,Ke=At.onSearch,He=At.autoClearSearchValue,Rt=He===void 0?!0:He,dn=At.filterTreeNode,cn=At.treeNodeFilterProp,qn=cn===void 0?"value":cn,Un=At.showCheckedStrategy,vn=At.treeNodeLabelProp,Jn=At.multiple,Ea=At.treeCheckable,zt=At.treeCheckStrictly,_n=At.labelInValue,Je=At.fieldNames,Ut=At.treeDataSimpleMode,Dn=At.treeData,tt=At.children,Xn=At.loadData,Rn=At.treeLoadedKeys,ca=At.onTreeLoad,Vn=At.treeDefaultExpandAll,Za=At.treeExpandedKeys,sa=At.treeDefaultExpandedKeys,_a=At.onTreeExpand,$a=At.treeExpandAction,gr=At.virtual,kt=At.listHeight,La=kt===void 0?200:kt,Vt=At.listItemHeight,wa=Vt===void 0?20:Vt,pa=At.onDropdownVisibleChange,Jt=At.dropdownMatchSelectWidth,Ln=Jt===void 0?!0:Jt,ea=At.treeLine,yn=At.treeIcon,Ta=At.showTreeIcon,Pa=At.switcherIcon,Va=At.treeMotion,dr=(0,Fe.Z)(At,bn),Er=(0,De.ZP)(kn),Mr=Ea&&!zt,hr=Ea||zt,Jr=zt||_n,Xa=hr||Jn,qa=(0,We.Z)(Ft,{value:ft}),vr=(0,Ge.Z)(qa,2),fa=vr[0],lr=vr[1],mr=le.useMemo(function(){return Ea?Un||dt:Dt},[Un,Ea]),Ga=le.useMemo(function(){return ln(Je)},[JSON.stringify(Je)]),tr=(0,We.Z)("",{value:An!==void 0?An:je,postState:function(Na){return Na||""}}),mt=(0,Ge.Z)(tr,2),it=mt[0],Ot=mt[1],gn=function(Na){Ot(Na),Ke==null||Ke(Na)},ua=Ce(Dn,tt,Ut),Ia=y(ua,Ga),tn=Ia.keyEntities,Ba=Ia.valueEntities,Aa=le.useCallback(function(pn){var Na=[],xa=[];return pn.forEach(function(ja){Ba.has(ja)?xa.push(ja):Na.push(ja)}),{missingRawValues:Na,existRawValues:xa}},[Ba]),nr=Re(ua,it,{fieldNames:Ga,treeNodeFilterProp:qn,filterTreeNode:dn}),ka=le.useCallback(function(pn){if(pn){if(vn)return pn[vn];for(var Na=Ga._title,xa=0;xa{const{componentCls:Mn,treePrefixCls:kn,colorBgElevated:In}=At,xe=`.${kn}`;return[{[`${Mn}-dropdown`]:[{padding:`${At.paddingXS}px ${At.paddingXS/2}px`},(0,ya.Yk)(kn,(0,hn.TS)(At,{colorBgContainer:In})),{[xe]:{borderRadius:0,[`${xe}-list-holder-inner`]:{alignItems:"stretch",[`${xe}-treenode`]:{[`${xe}-node-content-wrapper`]:{flex:"auto"}}}}},(0,ht.C2)(`${kn}-checkbox`,At),{"&-rtl":{direction:"rtl",[`${xe}-switcher${xe}-switcher_close`]:{[`${xe}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Ka(At,Mn){return(0,xn.Z)("TreeSelect",kn=>{const In=(0,hn.TS)(kn,{treePrefixCls:Mn});return[aa(In)]},ya.TM)(At)}var ra=function(At,Mn){var kn={};for(var In in At)Object.prototype.hasOwnProperty.call(At,In)&&Mn.indexOf(In)<0&&(kn[In]=At[In]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,In=Object.getOwnPropertySymbols(At);xe{var kn,{prefixCls:In,size:xe,disabled:ft,bordered:Ft=!0,className:Qt,rootClassName:Tt,treeCheckable:yt,multiple:An,listHeight:je=256,listItemHeight:Ke=26,placement:He,notFoundContent:Rt,switcherIcon:dn,treeLine:cn,getPopupContainer:qn,popupClassName:Un,dropdownClassName:vn,treeIcon:Jn=!1,transitionName:Ea,choiceTransitionName:zt="",status:_n,treeExpandAction:Je,builtinPlacements:Ut,dropdownMatchSelectWidth:Dn,popupMatchSelectWidth:tt,allowClear:Xn}=At,Rn=ra(At,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:ca,getPrefixCls:Vn,renderEmpty:Za,direction:sa,virtual:_a,popupMatchSelectWidth:$a,popupOverflow:gr}=le.useContext($t.E_),kt=Vn(),La=Vn("select",In),Vt=Vn("select-tree",In),wa=Vn("tree-select",In),{compactSize:pa,compactItemClassnames:Jt}=(0,Da.ri)(La,sa),[Ln,ea]=(0,mn.Z)(La),[yn]=Ka(wa,Vt),Ta=he()(Un||vn,`${wa}-dropdown`,{[`${wa}-dropdown-rtl`]:sa==="rtl"},Tt,ea),Pa=!!(yt||An),Va=(0,Ma.Z)(Rn.suffixIcon,Rn.showArrow),dr=(kn=tt!=null?tt:Dn)!==null&&kn!==void 0?kn:$a,{status:Er,hasFeedback:Mr,isFormItemInput:hr,feedbackIcon:Jr}=le.useContext(sn.aM),Xa=(0,jn.F)(Er,_n),{suffixIcon:qa,removeIcon:vr,clearIcon:fa}=(0,Sa.Z)(Object.assign(Object.assign({},Rn),{multiple:Pa,showSuffixIcon:Va,hasFeedback:Mr,feedbackIcon:Jr,prefixCls:La,componentName:"TreeSelect"})),lr=Xn===!0?{clearIcon:fa}:Xn;let mr;Rt!==void 0?mr=Rt:mr=(Za==null?void 0:Za("Select"))||le.createElement(Wn.Z,{componentName:"Select"});const Ga=(0,Mt.Z)(Rn,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),tr=le.useMemo(()=>He!==void 0?He:sa==="rtl"?"bottomRight":"bottomLeft",[He,sa]),mt=(0,En.Z)(Ut,gr),it=(0,Ca.Z)(Ba=>{var Aa;return(Aa=xe!=null?xe:pa)!==null&&Aa!==void 0?Aa:Ba}),Ot=le.useContext(ma.Z),gn=ft!=null?ft:Ot,ua=he()(!In&&wa,{[`${La}-lg`]:it==="large",[`${La}-sm`]:it==="small",[`${La}-rtl`]:sa==="rtl",[`${La}-borderless`]:!Ft,[`${La}-in-form-item`]:hr},(0,jn.Z)(La,Xa,Mr),Jt,Qt,Tt,ea),Ia=Ba=>le.createElement(en.Z,{prefixCls:Vt,switcherIcon:dn,treeNodeProps:Ba,showLine:cn}),tn=le.createElement(Tn,Object.assign({virtual:_a,disabled:gn},Ga,{dropdownMatchSelectWidth:dr,builtinPlacements:mt,ref:Mn,prefixCls:La,className:ua,listHeight:je,listItemHeight:Ke,treeCheckable:yt&&le.createElement("span",{className:`${La}-tree-checkbox-inner`}),treeLine:!!cn,suffixIcon:qa,multiple:Pa,placement:tr,removeIcon:vr,allowClear:lr,switcherIcon:Ia,showTreeIcon:Jn,notFoundContent:mr,getPopupContainer:qn||ca,treeMotion:null,dropdownClassName:Ta,choiceTransitionName:(0,wn.m)(kt,"",zt),transitionName:(0,wn.m)(kt,"slide-up",Ea),treeExpandAction:Je}));return Ln(yn(tn))},Ra=le.forwardRef(Qn),Ja=(0,Kn.Z)(Ra);Ra.TreeNode=ie,Ra.SHOW_ALL=Dt,Ra.SHOW_PARENT=Ae,Ra.SHOW_CHILD=dt,Ra._InternalPanelDoNotUseOrYouWillBeFired=Ja;var Br=Ra},24334:function(_e,xt,oe){var b,he;(function(Be,Ie){_e.exports=Ie(Be)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof oe.g!="undefined"?oe.g:this,function(Be){"use strict";Be=Be||{};var Ie=Be.Base64,be="2.6.4",Ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fe=function(Xe){for(var nt={},ye=0,gt=Xe.length;ye>>6)+Ye(128|nt&63):Ye(224|nt>>>12&15)+Ye(128|nt>>>6&63)+Ye(128|nt&63)}else{var nt=65536+(Xe.charCodeAt(0)-55296)*1024+(Xe.charCodeAt(1)-56320);return Ye(240|nt>>>18&7)+Ye(128|nt>>>12&63)+Ye(128|nt>>>6&63)+Ye(128|nt&63)}},De=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Oe=function(Xe){return Xe.replace(De,ke)},We=function(Xe){var nt=[0,2,1][Xe.length%3],ye=Xe.charCodeAt(0)<<16|(Xe.length>1?Xe.charCodeAt(1):0)<<8|(Xe.length>2?Xe.charCodeAt(2):0),gt=[Ge.charAt(ye>>>18),Ge.charAt(ye>>>12&63),nt>=2?"=":Ge.charAt(ye>>>6&63),nt>=1?"=":Ge.charAt(ye&63)];return gt.join("")},Ve=Be.btoa&&typeof Be.btoa=="function"?function(Xe){return Be.btoa(Xe)}:function(Xe){if(Xe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Xe.replace(/[\s\S]{1,3}/g,We)},le=function(Xe){return Ve(Oe(String(Xe)))},E=function(Xe){return Xe.replace(/[+\/]/g,function(nt){return nt=="+"?"-":"_"}).replace(/=/g,"")},a=function(Xe,nt){return nt?E(le(Xe)):le(Xe)},x=function(Xe){return a(Xe,!0)},y;Be.Uint8Array&&(y=function(Xe,nt){for(var ye="",gt=0,pt=Xe.length;gt>>18)+Ge.charAt(ln>>>12&63)+(typeof ut!="undefined"?Ge.charAt(ln>>>6&63):"=")+(typeof Yt!="undefined"?Ge.charAt(ln&63):"=")}return nt?E(ye):ye});var z=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ne=function(Xe){switch(Xe.length){case 4:var nt=(7&Xe.charCodeAt(0))<<18|(63&Xe.charCodeAt(1))<<12|(63&Xe.charCodeAt(2))<<6|63&Xe.charCodeAt(3),ye=nt-65536;return Ye((ye>>>10)+55296)+Ye((ye&1023)+56320);case 3:return Ye((15&Xe.charCodeAt(0))<<12|(63&Xe.charCodeAt(1))<<6|63&Xe.charCodeAt(2));default:return Ye((31&Xe.charCodeAt(0))<<6|63&Xe.charCodeAt(1))}},re=function(Xe){return Xe.replace(z,ne)},ie=function(Xe){var nt=Xe.length,ye=nt%4,gt=(nt>0?Fe[Xe.charAt(0)]<<18:0)|(nt>1?Fe[Xe.charAt(1)]<<12:0)|(nt>2?Fe[Xe.charAt(2)]<<6:0)|(nt>3?Fe[Xe.charAt(3)]:0),pt=[Ye(gt>>>16),Ye(gt>>>8&255),Ye(gt&255)];return pt.length-=[0,0,2,1][ye],pt.join("")},ge=Be.atob&&typeof Be.atob=="function"?function(Xe){return Be.atob(Xe)}:function(Xe){return Xe.replace(/\S{1,4}/g,ie)},fe=function(Xe){return ge(String(Xe).replace(/[^A-Za-z0-9\+\/]/g,""))},Pe=function(Xe){return re(ge(Xe))},Ue=function(Xe){return String(Xe).replace(/[-_]/g,function(nt){return nt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Re=function(Xe){return Pe(Ue(Xe))},lt;Be.Uint8Array&&(lt=function(Xe){return Uint8Array.from(fe(Ue(Xe)),function(nt){return nt.charCodeAt(0)})});var Le=function(){var Xe=Be.Base64;return Be.Base64=Ie,Xe};if(Be.Base64={VERSION:be,atob:fe,btoa:Ve,fromBase64:Re,toBase64:a,utob:Oe,encode:a,encodeURI:x,btou:re,decode:Re,noConflict:Le,fromUint8Array:y,toUint8Array:lt},typeof Object.defineProperty=="function"){var Ce=function(Xe){return{value:Xe,enumerable:!1,writable:!0,configurable:!0}};Be.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ce(function(){return Re(this)})),Object.defineProperty(String.prototype,"toBase64",Ce(function(Xe){return a(this,Xe)})),Object.defineProperty(String.prototype,"toBase64URI",Ce(function(){return a(this,!0)}))}}return Be.Meteor&&(Base64=Be.Base64),_e.exports?_e.exports.Base64=Be.Base64:(b=[],he=function(){return Be.Base64}.apply(xt,b),he!==void 0&&(_e.exports=he)),{Base64:Be.Base64}})},43141:function(_e,xt,oe){"use strict";oe.d(xt,{Z5:function(){return _s},_l:function(){return zd},bK:function(){return rs}});var b=oe(59301),he=oe(29658);function Be(ee,te){ee.prototype=Object.create(te.prototype),ee.prototype.constructor=ee,(0,he.Z)(ee,te)}var Ie=oe(60499),be=oe(59781),Ge=b.createContext(null),Fe=null;function Ye(ee){ee()}var ke=Ye,De=function(te){return ke=te},Oe=function(){return ke};function We(){var ee=Oe(),te=null,ae=null;return{clear:function(){te=null,ae=null},notify:function(){ee(function(){for(var ce=te;ce;)ce.callback(),ce=ce.next})},get:function(){for(var ce=[],me=te;me;)ce.push(me),me=me.next;return ce},subscribe:function(ce){var me=!0,ve=ae={callback:ce,next:null,prev:ae};return ve.prev?ve.prev.next=ve:te=ve,function(){!me||te===null||(me=!1,ve.next?ve.next.prev=ve.prev:ae=ve.prev,ve.prev?ve.prev.next=ve.next:te=ve.next)}}}}var Ve={notify:function(){},get:function(){return[]}};function le(ee,te){var ae,ue=Ve;function ce(Ne){return we(),ue.subscribe(Ne)}function me(){ue.notify()}function ve(){ze.onStateChange&&ze.onStateChange()}function pe(){return!!ae}function we(){ae||(ae=te?te.addNestedSub(ve):ee.subscribe(ve),ue=We())}function Ze(){ae&&(ae(),ae=void 0,ue.clear(),ue=Ve)}var ze={addNestedSub:ce,notifyNestedSubs:me,handleChangeWrapper:ve,isSubscribed:pe,trySubscribe:we,tryUnsubscribe:Ze,getListeners:function(){return ue}};return ze}var E=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect;function a(ee){var te=ee.store,ae=ee.context,ue=ee.children,ce=(0,b.useMemo)(function(){var pe=le(te);return{store:te,subscription:pe}},[te]),me=(0,b.useMemo)(function(){return te.getState()},[te]);E(function(){var pe=ce.subscription;return pe.onStateChange=pe.notifyNestedSubs,pe.trySubscribe(),me!==te.getState()&&pe.notifyNestedSubs(),function(){pe.tryUnsubscribe(),pe.onStateChange=null}},[ce,me]);var ve=ae||Ge;return b.createElement(ve.Provider,{value:ce},ue)}var x=a,y=oe(69010),z=oe(94266),ne=oe.n(z),re=oe(53410),ie=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],ge=["reactReduxForwardedRef"],fe=[],Pe=[null,null],Ue=function(te){try{return JSON.stringify(te)}catch(ae){return String(te)}};function Re(ee,te){var ae=ee[1];return[te.payload,ae+1]}function lt(ee,te,ae){E(function(){return ee.apply(void 0,te)},ae)}function Le(ee,te,ae,ue,ce,me,ve){ee.current=ue,te.current=ce,ae.current=!1,me.current&&(me.current=null,ve())}function Ce(ee,te,ae,ue,ce,me,ve,pe,we,Ze){if(ee){var ze=!1,Ne=null,Te=function(){if(!ze){var On=te.getState(),Zn,Yn;try{Zn=ue(On,ce.current)}catch(da){Yn=da,Ne=da}Yn||(Ne=null),Zn===me.current?ve.current||we():(me.current=Zn,pe.current=Zn,ve.current=!0,Ze({type:"STORE_UPDATED",payload:{error:Yn}}))}};ae.onStateChange=Te,ae.trySubscribe(),Te();var qe=function(){if(ze=!0,ae.tryUnsubscribe(),ae.onStateChange=null,Ne)throw Ne};return qe}}var Xe=function(){return[null,0]};function nt(ee,te){te===void 0&&(te={});var ae=te,ue=ae.getDisplayName,ce=ue===void 0?function(ir){return"ConnectAdvanced("+ir+")"}:ue,me=ae.methodName,ve=me===void 0?"connectAdvanced":me,pe=ae.renderCountProp,we=pe===void 0?void 0:pe,Ze=ae.shouldHandleStateChanges,ze=Ze===void 0?!0:Ze,Ne=ae.storeKey,Te=Ne===void 0?"store":Ne,qe=ae.withRef,Pt=qe===void 0?!1:qe,On=ae.forwardRef,Zn=On===void 0?!1:On,Yn=ae.context,da=Yn===void 0?Ge:Yn,Fa=(0,y.Z)(ae,ie);if(0)var Oa;var sr=da;return function(Fr){var qr=Fr.displayName||Fr.name||"Component",Cr=ce(qr),_r=(0,Ie.Z)({},Fa,{getDisplayName:ce,methodName:ve,renderCountProp:we,shouldHandleStateChanges:ze,storeKey:Te,displayName:Cr,wrappedComponentName:qr,WrappedComponent:Fr}),io=Fa.pure;function lo(uo){return ee(uo.dispatch,_r)}var jo=io?b.useMemo:function(uo){return uo()};function No(uo){var ni=(0,b.useMemo)(function(){var Wi=uo.reactReduxForwardedRef,Iu=(0,y.Z)(uo,ge);return[uo.context,Wi,Iu]},[uo]),zo=ni[0],zi=ni[1],si=ni[2],ai=(0,b.useMemo)(function(){return zo&&zo.Consumer&&(0,re.isContextConsumer)(b.createElement(zo.Consumer,null))?zo:sr},[zo,sr]),Zo=(0,b.useContext)(ai),di=!!uo.store&&!!uo.store.getState&&!!uo.store.dispatch,Bl=!!Zo&&!!Zo.store,Wo=di?uo.store:Zo.store,Zi=(0,b.useMemo)(function(){return lo(Wo)},[Wo]),bl=(0,b.useMemo)(function(){if(!ze)return Pe;var Wi=le(Wo,di?null:Zo.subscription),Iu=Wi.notifyNestedSubs.bind(Wi);return[Wi,Iu]},[Wo,di,Zo]),yi=bl[0],Cl=bl[1],xl=(0,b.useMemo)(function(){return di?Zo:(0,Ie.Z)({},Zo,{subscription:yi})},[di,Zo,yi]),os=(0,b.useReducer)(Re,fe,Xe),Kd=os[0],wl=Kd[0],Yd=os[1];if(wl&&wl.error)throw wl.error;var is=(0,b.useRef)(),wu=(0,b.useRef)(si),Dl=(0,b.useRef)(),ls=(0,b.useRef)(!1),Du=jo(function(){return Dl.current&&si===wu.current?Dl.current:Zi(Wo.getState(),si)},[Wo,wl,si]);lt(Le,[wu,is,ls,si,Du,Dl,Cl]),lt(Ce,[ze,Wo,yi,Zi,wu,is,ls,Dl,Cl,Yd],[Wo,yi,Zi]);var Lu=(0,b.useMemo)(function(){return b.createElement(Fr,(0,Ie.Z)({},Du,{ref:zi}))},[zi,Fr,Du]),Jd=(0,b.useMemo)(function(){return ze?b.createElement(ai.Provider,{value:xl},Lu):Lu},[ai,Lu,xl]);return Jd}var bo=io?b.memo(No):No;if(bo.WrappedComponent=Fr,bo.displayName=No.displayName=Cr,Zn){var Ho=b.forwardRef(function(ni,zo){return b.createElement(bo,(0,Ie.Z)({},ni,{reactReduxForwardedRef:zo}))});return Ho.displayName=Cr,Ho.WrappedComponent=Fr,ne()(Ho,Fr)}return ne()(bo,Fr)}}function ye(ee,te){return ee===te?ee!==0||te!==0||1/ee===1/te:ee!==ee&&te!==te}function gt(ee,te){if(ye(ee,te))return!0;if(typeof ee!="object"||ee===null||typeof te!="object"||te===null)return!1;var ae=Object.keys(ee),ue=Object.keys(te);if(ae.length!==ue.length)return!1;for(var ce=0;ce=0;ue--){var ce=te[ue](ee);if(ce)return ce}return function(me,ve){throw new Error("Invalid value of type "+typeof ee+" for "+ae+" argument when connecting component "+ve.wrappedComponentName+".")}}function St(ee,te){return ee===te}function Tn(ee){var te=ee===void 0?{}:ee,ae=te.connectHOC,ue=ae===void 0?nt:ae,ce=te.mapStateToPropsFactories,me=ce===void 0?Gt:ce,ve=te.mapDispatchToPropsFactories,pe=ve===void 0?Qe:ve,we=te.mergePropsFactories,Ze=we===void 0?un:we,ze=te.selectorFactory,Ne=ze===void 0?ot:ze;return function(qe,Pt,On,Zn){Zn===void 0&&(Zn={});var Yn=Zn,da=Yn.pure,Fa=da===void 0?!0:da,Oa=Yn.areStatesEqual,sr=Oa===void 0?St:Oa,ir=Yn.areOwnPropsEqual,Fr=ir===void 0?gt:ir,qr=Yn.areStatePropsEqual,Cr=qr===void 0?gt:qr,_r=Yn.areMergedPropsEqual,io=_r===void 0?gt:_r,lo=(0,y.Z)(Yn,Bt),jo=Ht(qe,me,"mapStateToProps"),No=Ht(Pt,pe,"mapDispatchToProps"),bo=Ht(On,Ze,"mergeProps");return ue(Ne,(0,Ie.Z)({methodName:"connect",getDisplayName:function(uo){return"Connect("+uo+")"},shouldHandleStateChanges:!!qe,initMapStateToProps:jo,initMapDispatchToProps:No,initMergeProps:bo,pure:Fa,areStatesEqual:sr,areOwnPropsEqual:Fr,areStatePropsEqual:Cr,areMergedPropsEqual:io},lo))}}var Mt=Tn();function Kn(){var ee=useContext(ReactReduxContext);return ee}function wn(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(){var ue=te(),ce=ue.store;return ce}}var jn=null;function $t(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultStore:createStoreHook(ee);return function(){var ue=te();return ue.dispatch}}var ma=null,Wn=function(te,ae){return te===ae};function Ca(ee,te,ae,ue){var ce=useReducer(function(Pt){return Pt+1},0),me=ce[1],ve=useMemo(function(){return createSubscription(ae,ue)},[ae,ue]),pe=useRef(),we=useRef(),Ze=useRef(),ze=useRef(),Ne=ae.getState(),Te;try{if(ee!==we.current||Ne!==Ze.current||pe.current){var qe=ee(Ne);ze.current===void 0||!te(qe,ze.current)?Te=qe:Te=ze.current}else Te=ze.current}catch(Pt){throw pe.current&&(Pt.message+=` + `]:{borderRadius:0},[`> ${et}-item:last-child`]:{borderBottom:0},[`> ${et}-item > ${et}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${et}-item > ${et}-content > ${et}-content-box`]:{paddingTop:ot}}}},vt=ct=>{const{componentCls:et,paddingSM:Bn}=ct;return{[`${et}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${et}-item`]:{borderBottom:0,[`> ${et}-content`]:{backgroundColor:"transparent",border:0,[`> ${et}-content-box`]:{paddingBlock:Bn}}}}}};var Dt=(0,Vt.Z)("Collapse",ct=>{const et=(0,Qe.TS)(ct,{collapseHeaderPaddingSM:`${ct.paddingXS}px ${ct.paddingSM}px`,collapseHeaderPaddingLG:`${ct.padding}px ${ct.paddingLG}px`,collapsePanelBorderRadius:ct.borderRadiusLG});return[Me(et),kt(et),vt(et),Et(et),(0,It.Z)(et)]},ct=>({headerPadding:`${ct.paddingSM}px ${ct.padding}px`,headerBg:ct.colorFillAlter,contentPadding:`${ct.padding}px 16px`,contentBg:ct.colorBgContainer})),dt=Object.assign(De.forwardRef((ct,et)=>{const{getPrefixCls:Bn,direction:ot,collapse:bt}=De.useContext(pt.E_),{prefixCls:zt,className:St,rootClassName:Rn,style:Ot,bordered:Kn=!0,ghost:xn,size:jn,expandIconPosition:$t="start",children:ma,expandIcon:Wn}=ct,ba=(0,wt.Z)(Cn=>{var ya;return(ya=jn!=null?jn:Cn)!==null&&ya!==void 0?ya:"middle"}),un=Bn("collapse",zt),mn=Bn(),[En,Oa]=Dt(un),Sa=De.useMemo(()=>$t==="left"?"start":$t==="right"?"end":$t,[$t]),wa=function(){let Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const ya=Wn?Wn(Cn):De.createElement(b.Z,{rotate:Cn.isActive?90:void 0});return(0,gt.Tm)(ya,()=>({className:Be()(ya.props.className,`${un}-arrow`)}))},tn=Be()(`${un}-icon-position-${Sa}`,{[`${un}-borderless`]:!Kn,[`${un}-rtl`]:ot==="rtl",[`${un}-ghost`]:!!xn,[`${un}-${ba}`]:ba!=="middle"},bt==null?void 0:bt.className,St,Rn,Oa),ht=Object.assign(Object.assign({},(0,ye.Z)(mn)),{motionAppear:!1,leavedClassName:`${un}-content-hidden`}),Sn=De.useMemo(()=>ma?(0,We.Z)(ma).map((Cn,ya)=>{var ra,Ka;if(!((ra=Cn.props)===null||ra===void 0)&&ra.disabled){const oa=(Ka=Cn.key)!==null&&Ka!==void 0?Ka:String(ya),{disabled:Qn,collapsible:Ya}=Cn.props,Ma=Object.assign(Object.assign({},(0,nt.Z)(Cn.props,["disabled"])),{key:oa,collapsible:Ya!=null?Ya:Qn?"disabled":void 0});return(0,gt.Tm)(Cn,Ma)}return Cn}):null,[ma]);return En(De.createElement(Ce,Object.assign({ref:et,openMotion:ht},(0,nt.Z)(ct,["rootClassName"]),{expandIcon:wa,prefixCls:un,className:tn,style:Object.assign(Object.assign({},bt==null?void 0:bt.style),Ot)}),Sn))}),{Panel:Jt}),ln=dt},39722:function(_e,xt,oe){"use strict";oe.d(xt,{t5:function(){return De}});var b=oe(92310),he=oe.n(b),Be=oe(55477),Ie=oe(59301),be=oe(36355),Ge=oe(77578),Fe=oe(17356),Ye=function(We,Ve){var le={};for(var E in We)Object.prototype.hasOwnProperty.call(We,E)&&Ve.indexOf(E)<0&&(le[E]=We[E]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,E=Object.getOwnPropertySymbols(We);a{if(!(!Ve&&!le))return Ie.createElement(Ie.Fragment,null,Ve&&Ie.createElement("div",{className:`${We}-title`},(0,Ge.Z)(Ve)),Ie.createElement("div",{className:`${We}-inner-content`},(0,Ge.Z)(le)))},De=We=>{const{hashId:Ve,prefixCls:le,className:E,style:a,placement:x="top",title:y,content:z,children:ne}=We;return Ie.createElement("div",{className:he()(Ve,le,`${le}-pure`,`${le}-placement-${x}`,E),style:a},Ie.createElement("div",{className:`${le}-arrow`}),Ie.createElement(Be.G,Object.assign({},We,{className:Ve,prefixCls:le}),ne||ke(le,y,z)))},Oe=We=>{const{prefixCls:Ve}=We,le=Ye(We,["prefixCls"]),{getPrefixCls:E}=Ie.useContext(be.E_),a=E("popover",Ve),[x,y]=(0,Fe.Z)(a);return x(Ie.createElement(De,Object.assign({},le,{prefixCls:a,hashId:y})))};xt.ZP=Oe},60324:function(_e,xt,oe){"use strict";var b=oe(92310),he=oe.n(b),Be=oe(59301),Ie=oe(77578),be=oe(62892),Ge=oe(36355),Fe=oe(6848),Ye=oe(39722),ke=oe(17356),De=function(Ve,le){var E={};for(var a in Ve)Object.prototype.hasOwnProperty.call(Ve,a)&&le.indexOf(a)<0&&(E[a]=Ve[a]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,a=Object.getOwnPropertySymbols(Ve);x{let{title:le,content:E,prefixCls:a}=Ve;return Be.createElement(Be.Fragment,null,le&&Be.createElement("div",{className:`${a}-title`},(0,Ie.Z)(le)),Be.createElement("div",{className:`${a}-inner-content`},(0,Ie.Z)(E)))},We=Be.forwardRef((Ve,le)=>{const{prefixCls:E,title:a,content:x,overlayClassName:y,placement:z="top",trigger:ne="hover",mouseEnterDelay:re=.1,mouseLeaveDelay:ie=.1,overlayStyle:ge={}}=Ve,fe=De(Ve,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Pe}=Be.useContext(Ge.E_),Ue=Pe("popover",E),[Re,lt]=(0,ke.Z)(Ue),Le=Pe(),Ce=he()(y,lt);return Re(Be.createElement(Fe.Z,Object.assign({placement:z,trigger:ne,mouseEnterDelay:re,mouseLeaveDelay:ie,overlayStyle:ge},fe,{prefixCls:Ue,overlayClassName:Ce,ref:le,overlay:a||x?Be.createElement(Oe,{prefixCls:Ue,title:a,content:x}):null,transitionName:(0,be.m)(Le,"zoom-big",fe.transitionName),"data-popover-inject":!0})))});We._InternalPanelDoNotUseOrYouWillBeFired=Ye.ZP,xt.Z=We},17356:function(_e,xt,oe){"use strict";var b=oe(17313),he=oe(29878),Be=oe(19447),Ie=oe(33166),be=oe(83116),Ge=oe(37613);const Fe=De=>{const{componentCls:Oe,popoverColor:We,minWidth:Ve,fontWeightStrong:le,popoverPadding:E,boxShadowSecondary:a,colorTextHeading:x,borderRadiusLG:y,zIndexPopup:z,marginXS:ne,colorBgElevated:re,popoverBg:ie}=De;return[{[Oe]:Object.assign(Object.assign({},(0,b.Wf)(De)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:z,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":re,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Oe}-content`]:{position:"relative"},[`${Oe}-inner`]:{backgroundColor:ie,backgroundClip:"padding-box",borderRadius:y,boxShadow:a,padding:E},[`${Oe}-title`]:{minWidth:Ve,marginBottom:ne,color:x,fontWeight:le},[`${Oe}-inner-content`]:{color:We}})},(0,Be.ZP)(De,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Oe}-pure`]:{position:"relative",maxWidth:"none",margin:De.sizePopupArrow,display:"inline-block",[`${Oe}-content`]:{display:"inline-block"}}}]},Ye=De=>{const{componentCls:Oe}=De;return{[Oe]:Ie.i.map(We=>{const Ve=De[`${We}6`];return{[`&${Oe}-${We}`]:{"--antd-arrow-background-color":Ve,[`${Oe}-inner`]:{backgroundColor:Ve},[`${Oe}-arrow`]:{background:"transparent"}}}})}},ke=De=>{const{componentCls:Oe,lineWidth:We,lineType:Ve,colorSplit:le,paddingSM:E,controlHeight:a,fontSize:x,lineHeight:y,padding:z}=De,ne=a-Math.round(x*y),re=ne/2,ie=ne/2-We,ge=z;return{[Oe]:{[`${Oe}-inner`]:{padding:0},[`${Oe}-title`]:{margin:0,padding:`${re}px ${ge}px ${ie}px`,borderBottom:`${We}px ${Ve} ${le}`},[`${Oe}-inner-content`]:{padding:`${E}px ${ge}px`}}}};xt.Z=(0,be.Z)("Popover",De=>{const{colorBgElevated:Oe,colorText:We,wireframe:Ve}=De,le=(0,Ge.TS)(De,{popoverPadding:12,popoverBg:Oe,popoverColor:We});return[Fe(le),Ye(le),Ve&&ke(le),(0,he._y)(le,"zoom-big")]},De=>({width:177,minWidth:177,zIndexPopup:De.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},12563:function(_e,xt,oe){"use strict";oe.d(xt,{default:function(){return lt}});var b=oe(59301),he=oe(99267),Be=oe(92310),Ie=oe.n(Be),be=oe(36785),Ge=oe(47729),Fe=oe(14088),Ye=oe(36355),ke=oe(17313),De=oe(37613),Oe=oe(83116);const We=Le=>{const{paddingXXS:Ce,lineWidth:Xe,tagPaddingHorizontal:nt,componentCls:ye}=Le,gt=nt-Xe,pt=Ce-Xe;return{[ye]:Object.assign(Object.assign({},(0,ke.Wf)(Le)),{display:"inline-block",height:"auto",marginInlineEnd:Le.marginXS,paddingInline:gt,fontSize:Le.tagFontSize,lineHeight:Le.tagLineHeight,whiteSpace:"nowrap",background:Le.defaultBg,border:`${Le.lineWidth}px ${Le.lineType} ${Le.colorBorder}`,borderRadius:Le.borderRadiusSM,opacity:1,transition:`all ${Le.motionDurationMid}`,textAlign:"start",position:"relative",[`&${ye}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Le.defaultColor},[`${ye}-close-icon`]:{marginInlineStart:pt,color:Le.colorTextDescription,fontSize:Le.tagIconSize,cursor:"pointer",transition:`all ${Le.motionDurationMid}`,"&:hover":{color:Le.colorTextHeading}},[`&${ye}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Le.iconCls}-close, ${Le.iconCls}-close:hover`]:{color:Le.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${ye}-checkable-checked):hover`]:{color:Le.colorPrimary,backgroundColor:Le.colorFillSecondary},"&:active, &-checked":{color:Le.colorTextLightSolid},"&-checked":{backgroundColor:Le.colorPrimary,"&:hover":{backgroundColor:Le.colorPrimaryHover}},"&:active":{backgroundColor:Le.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Le.iconCls} + span, > span + ${Le.iconCls}`]:{marginInlineStart:gt}}),[`${ye}-borderless`]:{borderColor:"transparent",background:Le.tagBorderlessBg}}},Ve=Le=>{const{lineWidth:Ce,fontSizeIcon:Xe}=Le,nt=Le.fontSizeSM,ye=`${Le.lineHeightSM*nt}px`;return(0,De.TS)(Le,{tagFontSize:nt,tagLineHeight:ye,tagIconSize:Xe-2*Ce,tagPaddingHorizontal:8,tagBorderlessBg:Le.colorFillTertiary})},le=Le=>({defaultBg:Le.colorFillQuaternary,defaultColor:Le.colorText});var E=(0,Oe.Z)("Tag",Le=>{const Ce=Ve(Le);return We(Ce)},le),a=function(Le,Ce){var Xe={};for(var nt in Le)Object.prototype.hasOwnProperty.call(Le,nt)&&Ce.indexOf(nt)<0&&(Xe[nt]=Le[nt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,nt=Object.getOwnPropertySymbols(Le);ye{const{prefixCls:Ce,style:Xe,className:nt,checked:ye,onChange:gt,onClick:pt}=Le,wt=a(Le,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:ut,tag:Jt}=b.useContext(Ye.E_),on=Et=>{gt==null||gt(!ye),pt==null||pt(Et)},It=ut("tag",Ce),[Vt,Qe]=E(It),Me=Ie()(It,`${It}-checkable`,{[`${It}-checkable-checked`]:ye},Jt==null?void 0:Jt.className,nt,Qe);return Vt(b.createElement("span",Object.assign({},wt,{style:Object.assign(Object.assign({},Xe),Jt==null?void 0:Jt.style),className:Me,onClick:on})))},z=oe(45157);const ne=Le=>(0,z.Z)(Le,(Ce,Xe)=>{let{textColor:nt,lightBorderColor:ye,lightColor:gt,darkColor:pt}=Xe;return{[`${Le.componentCls}-${Ce}`]:{color:nt,background:gt,borderColor:ye,"&-inverse":{color:Le.colorTextLightSolid,background:pt,borderColor:pt},[`&${Le.componentCls}-borderless`]:{borderColor:"transparent"}}}});var re=(0,Oe.b)(["Tag","preset"],Le=>{const Ce=Ve(Le);return ne(Ce)},le);function ie(Le){return typeof Le!="string"?Le:Le.charAt(0).toUpperCase()+Le.slice(1)}const ge=(Le,Ce,Xe)=>{const nt=ie(Xe);return{[`${Le.componentCls}-${Ce}`]:{color:Le[`color${Xe}`],background:Le[`color${nt}Bg`],borderColor:Le[`color${nt}Border`],[`&${Le.componentCls}-borderless`]:{borderColor:"transparent"}}}};var fe=(0,Oe.b)(["Tag","status"],Le=>{const Ce=Ve(Le);return[ge(Ce,"success","Success"),ge(Ce,"processing","Info"),ge(Ce,"error","Error"),ge(Ce,"warning","Warning")]},le),Pe=function(Le,Ce){var Xe={};for(var nt in Le)Object.prototype.hasOwnProperty.call(Le,nt)&&Ce.indexOf(nt)<0&&(Xe[nt]=Le[nt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,nt=Object.getOwnPropertySymbols(Le);ye{const{prefixCls:Xe,className:nt,rootClassName:ye,style:gt,children:pt,icon:wt,color:ut,onClose:Jt,closeIcon:on,closable:It,bordered:Vt=!0}=Le,Qe=Pe(Le,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:Me,direction:Et,tag:kt}=b.useContext(Ye.E_),[vt,Dt]=b.useState(!0);b.useEffect(()=>{"visible"in Qe&&Dt(Qe.visible)},[Qe.visible]);const Ae=(0,be.o2)(ut),dt=(0,be.yT)(ut),ln=Ae||dt,ct=Object.assign(Object.assign({backgroundColor:ut&&!ln?ut:void 0},kt==null?void 0:kt.style),gt),et=Me("tag",Xe),[Bn,ot]=E(et),bt=Ie()(et,kt==null?void 0:kt.className,{[`${et}-${ut}`]:ln,[`${et}-has-color`]:ut&&!ln,[`${et}-hidden`]:!vt,[`${et}-rtl`]:Et==="rtl",[`${et}-borderless`]:!Vt},nt,ye,ot),zt=jn=>{jn.stopPropagation(),Jt==null||Jt(jn),!jn.defaultPrevented&&Dt(!1)},[,St]=(0,Ge.Z)(It,on,jn=>jn===null?b.createElement(he.Z,{className:`${et}-close-icon`,onClick:zt}):b.createElement("span",{className:`${et}-close-icon`,onClick:zt},jn),null,!1),Rn=typeof Qe.onClick=="function"||pt&&pt.type==="a",Ot=wt||null,Kn=Ot?b.createElement(b.Fragment,null,Ot,pt&&b.createElement("span",null,pt)):pt,xn=b.createElement("span",Object.assign({},Qe,{ref:Ce,className:bt,style:ct}),Kn,St,Ae&&b.createElement(re,{key:"preset",prefixCls:et}),dt&&b.createElement(fe,{key:"status",prefixCls:et}));return Bn(Rn?b.createElement(Fe.Z,{component:"Tag"},xn):xn)},Re=b.forwardRef(Ue);Re.CheckableTag=y;var lt=Re},98228:function(_e,xt,oe){"use strict";oe.d(xt,{default:function(){return Br}});var b=oe(92310),he=oe.n(b),Be=oe(60499),Ie=oe(77654),be=oe(85899),Ge=oe(72190),Fe=oe(42244),Ye=oe(43749),ke=oe(77861),De=oe(17115),Oe=oe(90782),We=oe(18929),Ve=oe(48736),le=oe(59301),E=function(At){var On=le.useRef({valueLabels:new Map});return le.useMemo(function(){var Tn=On.current.valueLabels,Ln=new Map,xe=At.map(function(ft){var Ft,Ut=ft.value,Rt=(Ft=ft.label)!==null&&Ft!==void 0?Ft:Tn.get(Ut);return Ln.set(Ut,Rt),(0,be.Z)((0,be.Z)({},ft),{},{label:Rt})});return On.current.valueLabels=Ln,[xe]},[At])},a=function(At,On,Tn,Ln){return le.useMemo(function(){var xe=At.map(function(Rt){var yt=Rt.value;return yt}),ft=On.map(function(Rt){var yt=Rt.value;return yt}),Ft=xe.filter(function(Rt){return!Ln[Rt]});if(Tn){var Ut=(0,Oe.S)(xe,!0,Ln);xe=Ut.checkedKeys,ft=Ut.halfCheckedKeys}return[Array.from(new Set([].concat((0,Ie.Z)(Ft),(0,Ie.Z)(xe)))),ft]},[At,On,Tn,Ln])},x=oe(71430),y=function(At,On){return le.useMemo(function(){var Tn=(0,x.I8)(At,{fieldNames:On,initWrapper:function(xe){return(0,be.Z)((0,be.Z)({},xe),{},{valueEntities:new Map})},processEntity:function(xe,ft){var Ft=xe.node[On.value];if(0)var Ut;ft.valueEntities.set(Ft,xe)}});return Tn},[At,On])},z=oe(18642),ne=oe(11592),re=function(){return null},ie=re,ge=["children","value"];function fe(At){return(0,ne.Z)(At).map(function(On){if(!le.isValidElement(On)||!On.type)return null;var Tn=On,Ln=Tn.key,xe=Tn.props,ft=xe.children,Ft=xe.value,Ut=(0,Fe.Z)(xe,ge),Rt=(0,be.Z)({key:Ln,value:Ft},Ut),yt=fe(ft);return yt.length&&(Rt.children=yt),Rt}).filter(function(On){return On})}function Pe(At){if(!At)return At;var On=(0,be.Z)({},At);return"props"in On||Object.defineProperty(On,"props",{get:function(){return(0,Ve.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),On}}),On}function Ue(At,On,Tn,Ln,xe,ft){var Ft=null,Ut=null;function Rt(){function yt(An){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return An.map(function(He,Mt){var sn="".concat(je,"-").concat(Mt),dn=He[ft.value],qn=Tn.includes(dn),Un=yt(He[ft.children]||[],sn,qn),fn=le.createElement(ie,He,Un.map(function(Ea){return Ea.node}));if(On===dn&&(Ft=fn),qn){var Jn={pos:sn,node:fn,children:Un};return Ke||Ut.push(Jn),Jn}return null}).filter(function(He){return He})}Ut||(Ut=[],yt(Ln),Ut.sort(function(An,je){var Ke=An.node.props.value,He=je.node.props.value,Mt=Tn.indexOf(Ke),sn=Tn.indexOf(He);return Mt-sn}))}Object.defineProperty(At,"triggerNode",{get:function(){return(0,Ve.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Rt(),Ft}}),Object.defineProperty(At,"allCheckedNodes",{get:function(){return(0,Ve.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Rt(),xe?Ut:Ut.map(function(An){var je=An.node;return je})}})}var Re=function(At,On,Tn){var Ln=Tn.treeNodeFilterProp,xe=Tn.filterTreeNode,ft=Tn.fieldNames,Ft=ft.children;return le.useMemo(function(){if(!On||xe===!1)return At;var Ut;if(typeof xe=="function")Ut=xe;else{var Rt=On.toUpperCase();Ut=function(je,Ke){var He=Ke[Ln];return String(He).toUpperCase().includes(Rt)}}function yt(An){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return An.reduce(function(Ke,He){var Mt=He[Ft],sn=je||Ut(On,Pe(He)),dn=yt(Mt||[],sn);return(sn||dn.length)&&Ke.push((0,be.Z)((0,be.Z)({},He),{},(0,z.Z)({isLeaf:void 0},Ft,dn))),Ke},[])}return yt(At)},[At,On,Ft,Ln,xe])};function lt(At){var On=le.useRef();On.current=At;var Tn=le.useCallback(function(){return On.current.apply(On,arguments)},[]);return Tn}function Le(At,On){var Tn=On.id,Ln=On.pId,xe=On.rootPId,ft={},Ft=[],Ut=At.map(function(Rt){var yt=(0,be.Z)({},Rt),An=yt[Tn];return ft[An]=yt,yt.key=yt.key||An,yt});return Ut.forEach(function(Rt){var yt=Rt[Ln],An=ft[yt];An&&(An.children=An.children||[],An.children.push(Rt)),(yt===xe||!An&&xe===null)&&Ft.push(Rt)}),Ft}function Ce(At,On,Tn){return le.useMemo(function(){return At?Tn?Le(At,(0,be.Z)({id:"id",pId:"pId",rootPId:null},Tn!==!0?Tn:{})):At:fe(On)},[On,Tn,At])}var Xe=le.createContext(null),nt=Xe,ye=oe(10228),gt=oe(80547),pt=oe(38028),wt=le.createContext(null),ut=wt;function Jt(At){return Array.isArray(At)?At:At!==void 0?[At]:[]}function on(At){var On=At||{},Tn=On.label,Ln=On.value,xe=On.children,ft=Ln||"value";return{_title:Tn?[Tn]:["title","label"],value:ft,key:ft,children:xe||"children"}}function It(At){return!At||At.disabled||At.disableCheckbox||At.checkable===!1}function Vt(At,On){var Tn=[];function Ln(xe){xe.forEach(function(ft){var Ft=ft[On.children];Ft&&(Tn.push(ft[On.value]),Ln(Ft))})}return Ln(At),Tn}function Qe(At){return At==null}var Me={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Et=function(On,Tn){var Ln=(0,ke.lk)(),xe=Ln.prefixCls,ft=Ln.multiple,Ft=Ln.searchValue,Ut=Ln.toggleOpen,Rt=Ln.open,yt=Ln.notFoundContent,An=le.useContext(ut),je=An.virtual,Ke=An.listHeight,He=An.listItemHeight,Mt=An.treeData,sn=An.fieldNames,dn=An.onSelect,qn=An.dropdownMatchSelectWidth,Un=An.treeExpandAction,fn=le.useContext(nt),Jn=fn.checkable,Ea=fn.checkedKeys,Zt=fn.halfCheckedKeys,_n=fn.treeExpandedKeys,Je=fn.treeDefaultExpandAll,Kt=fn.treeDefaultExpandedKeys,wn=fn.onTreeExpand,tt=fn.treeIcon,Xn=fn.showTreeIcon,Mn=fn.switcherIcon,ca=fn.treeLine,Vn=fn.treeNodeFilterProp,Za=fn.loadData,sa=fn.treeLoadedKeys,er=fn.treeMotion,tr=fn.onTreeLoad,gr=fn.keyEntities,Tt=le.useRef(),Da=(0,gt.Z)(function(){return Mt},[Rt,Mt],function(Ga,ar){return ar[0]&&Ga[1]!==ar[1]}),Qt=le.useState(null),xa=(0,Ge.Z)(Qt,2),pa=xa[0],Xt=xa[1],Dn=gr[pa],ea=le.useMemo(function(){return Jn?{checked:Ea,halfChecked:Zt}:null},[Jn,Ea,Zt]);le.useEffect(function(){if(Rt&&!ft&&Ea.length){var Ga;(Ga=Tt.current)===null||Ga===void 0||Ga.scrollTo({key:Ea[0]}),Xt(Ea[0])}},[Rt]);var yn=String(Ft).toLowerCase(),Ra=function(ar){return yn?String(ar[Vn]).toLowerCase().includes(yn):!1},Pa=le.useState(Kt),Va=(0,Ge.Z)(Pa,2),cr=Va[0],Ar=Va[1],Mr=le.useState(null),Pr=(0,Ge.Z)(Mr,2),Jr=Pr[0],Xa=Pr[1],qa=le.useMemo(function(){return _n?(0,Ie.Z)(_n):Ft?Jr:cr},[cr,Jr,_n,Ft]);le.useEffect(function(){Ft&&Xa(Vt(Mt,sn))},[Ft]);var pr=function(ar){Ar(ar),Xa(ar),wn&&wn(ar)},fa=function(ar){ar.preventDefault()},ur=function(ar,mt){var it=mt.node;Jn&&It(it)||(dn(it.key,{selected:!Ea.includes(it.key)}),ft||Ut(!1))};if(le.useImperativeHandle(Tn,function(){var Ga;return{scrollTo:(Ga=Tt.current)===null||Ga===void 0?void 0:Ga.scrollTo,onKeyDown:function(mt){var it,Nt=mt.which;switch(Nt){case ye.Z.UP:case ye.Z.DOWN:case ye.Z.LEFT:case ye.Z.RIGHT:(it=Tt.current)===null||it===void 0||it.onKeyDown(mt);break;case ye.Z.ENTER:{if(Dn){var cn=(Dn==null?void 0:Dn.node)||{},ua=cn.selectable,La=cn.value;ua!==!1&&ur(null,{node:{key:pa},selected:!Ea.includes(La)})}break}case ye.Z.ESC:Ut(!1)}},onKeyUp:function(){}}}),Da.length===0)return le.createElement("div",{role:"listbox",className:"".concat(xe,"-empty"),onMouseDown:fa},yt);var mr={fieldNames:sn};return sa&&(mr.loadedKeys=sa),qa&&(mr.expandedKeys=qa),le.createElement("div",{onMouseDown:fa},Dn&&Rt&&le.createElement("span",{style:Me,"aria-live":"assertive"},Dn.node.value),le.createElement(pt.Z,(0,Be.Z)({ref:Tt,focusable:!1,prefixCls:"".concat(xe,"-tree"),treeData:Da,height:Ke,itemHeight:He,virtual:je!==!1&&qn!==!1,multiple:ft,icon:tt,showIcon:Xn,switcherIcon:Mn,showLine:ca,loadData:Ft?null:Za,motion:er,activeKey:pa,checkable:Jn,checkStrictly:!0,checkedKeys:ea,selectedKeys:Jn?[]:Ea,defaultExpandAll:Je},mr,{onActiveChange:Xt,onSelect:ur,onCheck:ur,onExpand:pr,onLoad:tr,filterTreeNode:Ra,expandAction:Un})))},kt=le.forwardRef(Et);kt.displayName="OptionList";var vt=kt,Dt="SHOW_ALL",Ae="SHOW_PARENT",dt="SHOW_CHILD";function ln(At,On,Tn,Ln){var xe=new Set(At);return On===dt?At.filter(function(ft){var Ft=Tn[ft];return!(Ft&&Ft.children&&Ft.children.some(function(Ut){var Rt=Ut.node;return xe.has(Rt[Ln.value])})&&Ft.children.every(function(Ut){var Rt=Ut.node;return It(Rt)||xe.has(Rt[Ln.value])}))}):On===Ae?At.filter(function(ft){var Ft=Tn[ft],Ut=Ft?Ft.parent:null;return!(Ut&&!It(Ut.node)&&xe.has(Ut.key))}):At}function ct(At){var On=At.searchPlaceholder,Tn=At.treeCheckStrictly,Ln=At.treeCheckable,xe=At.labelInValue,ft=At.value,Ft=At.multiple;warning(!On,"`searchPlaceholder` has been removed."),Tn&&xe===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(xe||Tn)&&warning(toArray(ft).every(function(Ut){return Ut&&_typeof(Ut)==="object"&&"value"in Ut}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Tn||Ft||Ln?warning(!ft||Array.isArray(ft),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(ft),"`value` should not be array when `TreeSelect` is single mode.")}var et=null,Bn=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function ot(At){return!At||(0,Ye.Z)(At)!=="object"}var bt=le.forwardRef(function(At,On){var Tn=At.id,Ln=At.prefixCls,xe=Ln===void 0?"rc-tree-select":Ln,ft=At.value,Ft=At.defaultValue,Ut=At.onChange,Rt=At.onSelect,yt=At.onDeselect,An=At.searchValue,je=At.inputValue,Ke=At.onSearch,He=At.autoClearSearchValue,Mt=He===void 0?!0:He,sn=At.filterTreeNode,dn=At.treeNodeFilterProp,qn=dn===void 0?"value":dn,Un=At.showCheckedStrategy,fn=At.treeNodeLabelProp,Jn=At.multiple,Ea=At.treeCheckable,Zt=At.treeCheckStrictly,_n=At.labelInValue,Je=At.fieldNames,Kt=At.treeDataSimpleMode,wn=At.treeData,tt=At.children,Xn=At.loadData,Mn=At.treeLoadedKeys,ca=At.onTreeLoad,Vn=At.treeDefaultExpandAll,Za=At.treeExpandedKeys,sa=At.treeDefaultExpandedKeys,er=At.onTreeExpand,tr=At.treeExpandAction,gr=At.virtual,Tt=At.listHeight,Da=Tt===void 0?200:Tt,Qt=At.listItemHeight,xa=Qt===void 0?20:Qt,pa=At.onDropdownVisibleChange,Xt=At.dropdownMatchSelectWidth,Dn=Xt===void 0?!0:Xt,ea=At.treeLine,yn=At.treeIcon,Ra=At.showTreeIcon,Pa=At.switcherIcon,Va=At.treeMotion,cr=(0,Fe.Z)(At,Bn),Ar=(0,De.ZP)(Tn),Mr=Ea&&!Zt,Pr=Ea||Zt,Jr=Zt||_n,Xa=Pr||Jn,qa=(0,We.Z)(Ft,{value:ft}),pr=(0,Ge.Z)(qa,2),fa=pr[0],ur=pr[1],mr=le.useMemo(function(){return Ea?Un||dt:Dt},[Un,Ea]),Ga=le.useMemo(function(){return on(Je)},[JSON.stringify(Je)]),ar=(0,We.Z)("",{value:An!==void 0?An:je,postState:function(Ia){return Ia||""}}),mt=(0,Ge.Z)(ar,2),it=mt[0],Nt=mt[1],cn=function(Ia){Nt(Ia),Ke==null||Ke(Ia)},ua=Ce(wn,tt,Kt),La=y(ua,Ga),nn=La.keyEntities,Ba=La.valueEntities,Aa=le.useCallback(function(pn){var Ia=[],Ca=[];return pn.forEach(function(ja){Ba.has(ja)?Ca.push(ja):Ia.push(ja)}),{missingRawValues:Ia,existRawValues:Ca}},[Ba]),rr=Re(ua,it,{fieldNames:Ga,treeNodeFilterProp:qn,filterTreeNode:sn}),Ta=le.useCallback(function(pn){if(pn){if(fn)return pn[fn];for(var Ia=Ga._title,Ca=0;Ca{const{componentCls:On,treePrefixCls:Tn,colorBgElevated:Ln}=At,xe=`.${Tn}`;return[{[`${On}-dropdown`]:[{padding:`${At.paddingXS}px ${At.paddingXS/2}px`},(0,ya.Yk)(Tn,(0,Sn.TS)(At,{colorBgContainer:Ln})),{[xe]:{borderRadius:0,[`${xe}-list-holder-inner`]:{alignItems:"stretch",[`${xe}-treenode`]:{[`${xe}-node-content-wrapper`]:{flex:"auto"}}}}},(0,ht.C2)(`${Tn}-checkbox`,At),{"&-rtl":{direction:"rtl",[`${xe}-switcher${xe}-switcher_close`]:{[`${xe}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Ka(At,On){return(0,Cn.Z)("TreeSelect",Tn=>{const Ln=(0,Sn.TS)(Tn,{treePrefixCls:On});return[ra(Ln)]},ya.TM)(At)}var oa=function(At,On){var Tn={};for(var Ln in At)Object.prototype.hasOwnProperty.call(At,Ln)&&On.indexOf(Ln)<0&&(Tn[Ln]=At[Ln]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Ln=Object.getOwnPropertySymbols(At);xe{var Tn,{prefixCls:Ln,size:xe,disabled:ft,bordered:Ft=!0,className:Ut,rootClassName:Rt,treeCheckable:yt,multiple:An,listHeight:je=256,listItemHeight:Ke=26,placement:He,notFoundContent:Mt,switcherIcon:sn,treeLine:dn,getPopupContainer:qn,popupClassName:Un,dropdownClassName:fn,treeIcon:Jn=!1,transitionName:Ea,choiceTransitionName:Zt="",status:_n,treeExpandAction:Je,builtinPlacements:Kt,dropdownMatchSelectWidth:wn,popupMatchSelectWidth:tt,allowClear:Xn}=At,Mn=oa(At,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:ca,getPrefixCls:Vn,renderEmpty:Za,direction:sa,virtual:er,popupMatchSelectWidth:tr,popupOverflow:gr}=le.useContext($t.E_),Tt=Vn(),Da=Vn("select",Ln),Qt=Vn("select-tree",Ln),xa=Vn("tree-select",Ln),{compactSize:pa,compactItemClassnames:Xt}=(0,wa.ri)(Da,sa),[Dn,ea]=(0,mn.Z)(Da),[yn]=Ka(xa,Qt),Ra=he()(Un||fn,`${xa}-dropdown`,{[`${xa}-dropdown-rtl`]:sa==="rtl"},Rt,ea),Pa=!!(yt||An),Va=(0,Oa.Z)(Mn.suffixIcon,Mn.showArrow),cr=(Tn=tt!=null?tt:wn)!==null&&Tn!==void 0?Tn:tr,{status:Ar,hasFeedback:Mr,isFormItemInput:Pr,feedbackIcon:Jr}=le.useContext(un.aM),Xa=(0,jn.F)(Ar,_n),{suffixIcon:qa,removeIcon:pr,clearIcon:fa}=(0,Sa.Z)(Object.assign(Object.assign({},Mn),{multiple:Pa,showSuffixIcon:Va,hasFeedback:Mr,feedbackIcon:Jr,prefixCls:Da,componentName:"TreeSelect"})),ur=Xn===!0?{clearIcon:fa}:Xn;let mr;Mt!==void 0?mr=Mt:mr=(Za==null?void 0:Za("Select"))||le.createElement(Wn.Z,{componentName:"Select"});const Ga=(0,Ot.Z)(Mn,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),ar=le.useMemo(()=>He!==void 0?He:sa==="rtl"?"bottomRight":"bottomLeft",[He,sa]),mt=(0,En.Z)(Kt,gr),it=(0,ba.Z)(Ba=>{var Aa;return(Aa=xe!=null?xe:pa)!==null&&Aa!==void 0?Aa:Ba}),Nt=le.useContext(ma.Z),cn=ft!=null?ft:Nt,ua=he()(!Ln&&xa,{[`${Da}-lg`]:it==="large",[`${Da}-sm`]:it==="small",[`${Da}-rtl`]:sa==="rtl",[`${Da}-borderless`]:!Ft,[`${Da}-in-form-item`]:Pr},(0,jn.Z)(Da,Xa,Mr),Xt,Ut,Rt,ea),La=Ba=>le.createElement(tn.Z,{prefixCls:Qt,switcherIcon:sn,treeNodeProps:Ba,showLine:dn}),nn=le.createElement(Rn,Object.assign({virtual:er,disabled:cn},Ga,{dropdownMatchSelectWidth:cr,builtinPlacements:mt,ref:On,prefixCls:Da,className:ua,listHeight:je,listItemHeight:Ke,treeCheckable:yt&&le.createElement("span",{className:`${Da}-tree-checkbox-inner`}),treeLine:!!dn,suffixIcon:qa,multiple:Pa,placement:ar,removeIcon:pr,allowClear:ur,switcherIcon:La,showTreeIcon:Jn,notFoundContent:mr,getPopupContainer:qn||ca,treeMotion:null,dropdownClassName:Ra,choiceTransitionName:(0,xn.m)(Tt,"",Zt),transitionName:(0,xn.m)(Tt,"slide-up",Ea),treeExpandAction:Je}));return Dn(yn(nn))},Ma=le.forwardRef(Qn),Ja=(0,Kn.Z)(Ma);Ma.TreeNode=ie,Ma.SHOW_ALL=Dt,Ma.SHOW_PARENT=Ae,Ma.SHOW_CHILD=dt,Ma._InternalPanelDoNotUseOrYouWillBeFired=Ja;var Br=Ma},24334:function(_e,xt,oe){var b,he;(function(Be,Ie){_e.exports=Ie(Be)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof oe.g!="undefined"?oe.g:this,function(Be){"use strict";Be=Be||{};var Ie=Be.Base64,be="2.6.4",Ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fe=function(Xe){for(var nt={},ye=0,gt=Xe.length;ye>>6)+Ye(128|nt&63):Ye(224|nt>>>12&15)+Ye(128|nt>>>6&63)+Ye(128|nt&63)}else{var nt=65536+(Xe.charCodeAt(0)-55296)*1024+(Xe.charCodeAt(1)-56320);return Ye(240|nt>>>18&7)+Ye(128|nt>>>12&63)+Ye(128|nt>>>6&63)+Ye(128|nt&63)}},De=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Oe=function(Xe){return Xe.replace(De,ke)},We=function(Xe){var nt=[0,2,1][Xe.length%3],ye=Xe.charCodeAt(0)<<16|(Xe.length>1?Xe.charCodeAt(1):0)<<8|(Xe.length>2?Xe.charCodeAt(2):0),gt=[Ge.charAt(ye>>>18),Ge.charAt(ye>>>12&63),nt>=2?"=":Ge.charAt(ye>>>6&63),nt>=1?"=":Ge.charAt(ye&63)];return gt.join("")},Ve=Be.btoa&&typeof Be.btoa=="function"?function(Xe){return Be.btoa(Xe)}:function(Xe){if(Xe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Xe.replace(/[\s\S]{1,3}/g,We)},le=function(Xe){return Ve(Oe(String(Xe)))},E=function(Xe){return Xe.replace(/[+\/]/g,function(nt){return nt=="+"?"-":"_"}).replace(/=/g,"")},a=function(Xe,nt){return nt?E(le(Xe)):le(Xe)},x=function(Xe){return a(Xe,!0)},y;Be.Uint8Array&&(y=function(Xe,nt){for(var ye="",gt=0,pt=Xe.length;gt>>18)+Ge.charAt(on>>>12&63)+(typeof ut!="undefined"?Ge.charAt(on>>>6&63):"=")+(typeof Jt!="undefined"?Ge.charAt(on&63):"=")}return nt?E(ye):ye});var z=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ne=function(Xe){switch(Xe.length){case 4:var nt=(7&Xe.charCodeAt(0))<<18|(63&Xe.charCodeAt(1))<<12|(63&Xe.charCodeAt(2))<<6|63&Xe.charCodeAt(3),ye=nt-65536;return Ye((ye>>>10)+55296)+Ye((ye&1023)+56320);case 3:return Ye((15&Xe.charCodeAt(0))<<12|(63&Xe.charCodeAt(1))<<6|63&Xe.charCodeAt(2));default:return Ye((31&Xe.charCodeAt(0))<<6|63&Xe.charCodeAt(1))}},re=function(Xe){return Xe.replace(z,ne)},ie=function(Xe){var nt=Xe.length,ye=nt%4,gt=(nt>0?Fe[Xe.charAt(0)]<<18:0)|(nt>1?Fe[Xe.charAt(1)]<<12:0)|(nt>2?Fe[Xe.charAt(2)]<<6:0)|(nt>3?Fe[Xe.charAt(3)]:0),pt=[Ye(gt>>>16),Ye(gt>>>8&255),Ye(gt&255)];return pt.length-=[0,0,2,1][ye],pt.join("")},ge=Be.atob&&typeof Be.atob=="function"?function(Xe){return Be.atob(Xe)}:function(Xe){return Xe.replace(/\S{1,4}/g,ie)},fe=function(Xe){return ge(String(Xe).replace(/[^A-Za-z0-9\+\/]/g,""))},Pe=function(Xe){return re(ge(Xe))},Ue=function(Xe){return String(Xe).replace(/[-_]/g,function(nt){return nt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Re=function(Xe){return Pe(Ue(Xe))},lt;Be.Uint8Array&&(lt=function(Xe){return Uint8Array.from(fe(Ue(Xe)),function(nt){return nt.charCodeAt(0)})});var Le=function(){var Xe=Be.Base64;return Be.Base64=Ie,Xe};if(Be.Base64={VERSION:be,atob:fe,btoa:Ve,fromBase64:Re,toBase64:a,utob:Oe,encode:a,encodeURI:x,btou:re,decode:Re,noConflict:Le,fromUint8Array:y,toUint8Array:lt},typeof Object.defineProperty=="function"){var Ce=function(Xe){return{value:Xe,enumerable:!1,writable:!0,configurable:!0}};Be.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ce(function(){return Re(this)})),Object.defineProperty(String.prototype,"toBase64",Ce(function(Xe){return a(this,Xe)})),Object.defineProperty(String.prototype,"toBase64URI",Ce(function(){return a(this,!0)}))}}return Be.Meteor&&(Base64=Be.Base64),_e.exports?_e.exports.Base64=Be.Base64:(b=[],he=function(){return Be.Base64}.apply(xt,b),he!==void 0&&(_e.exports=he)),{Base64:Be.Base64}})},43141:function(_e,xt,oe){"use strict";oe.d(xt,{Z5:function(){return _s},_l:function(){return zd},bK:function(){return rs}});var b=oe(59301),he=oe(29658);function Be(ee,te){ee.prototype=Object.create(te.prototype),ee.prototype.constructor=ee,(0,he.Z)(ee,te)}var Ie=oe(60499),be=oe(59781),Ge=b.createContext(null),Fe=null;function Ye(ee){ee()}var ke=Ye,De=function(te){return ke=te},Oe=function(){return ke};function We(){var ee=Oe(),te=null,ae=null;return{clear:function(){te=null,ae=null},notify:function(){ee(function(){for(var ce=te;ce;)ce.callback(),ce=ce.next})},get:function(){for(var ce=[],me=te;me;)ce.push(me),me=me.next;return ce},subscribe:function(ce){var me=!0,ve=ae={callback:ce,next:null,prev:ae};return ve.prev?ve.prev.next=ve:te=ve,function(){!me||te===null||(me=!1,ve.next?ve.next.prev=ve.prev:ae=ve.prev,ve.prev?ve.prev.next=ve.next:te=ve.next)}}}}var Ve={notify:function(){},get:function(){return[]}};function le(ee,te){var ae,ue=Ve;function ce(Ne){return we(),ue.subscribe(Ne)}function me(){ue.notify()}function ve(){ze.onStateChange&&ze.onStateChange()}function pe(){return!!ae}function we(){ae||(ae=te?te.addNestedSub(ve):ee.subscribe(ve),ue=We())}function Ze(){ae&&(ae(),ae=void 0,ue.clear(),ue=Ve)}var ze={addNestedSub:ce,notifyNestedSubs:me,handleChangeWrapper:ve,isSubscribed:pe,trySubscribe:we,tryUnsubscribe:Ze,getListeners:function(){return ue}};return ze}var E=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect;function a(ee){var te=ee.store,ae=ee.context,ue=ee.children,ce=(0,b.useMemo)(function(){var pe=le(te);return{store:te,subscription:pe}},[te]),me=(0,b.useMemo)(function(){return te.getState()},[te]);E(function(){var pe=ce.subscription;return pe.onStateChange=pe.notifyNestedSubs,pe.trySubscribe(),me!==te.getState()&&pe.notifyNestedSubs(),function(){pe.tryUnsubscribe(),pe.onStateChange=null}},[ce,me]);var ve=ae||Ge;return b.createElement(ve.Provider,{value:ce},ue)}var x=a,y=oe(69010),z=oe(94266),ne=oe.n(z),re=oe(53410),ie=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],ge=["reactReduxForwardedRef"],fe=[],Pe=[null,null],Ue=function(te){try{return JSON.stringify(te)}catch(ae){return String(te)}};function Re(ee,te){var ae=ee[1];return[te.payload,ae+1]}function lt(ee,te,ae){E(function(){return ee.apply(void 0,te)},ae)}function Le(ee,te,ae,ue,ce,me,ve){ee.current=ue,te.current=ce,ae.current=!1,me.current&&(me.current=null,ve())}function Ce(ee,te,ae,ue,ce,me,ve,pe,we,Ze){if(ee){var ze=!1,Ne=null,Te=function(){if(!ze){var Nn=te.getState(),Zn,Yn;try{Zn=ue(Nn,ce.current)}catch(da){Yn=da,Ne=da}Yn||(Ne=null),Zn===me.current?ve.current||we():(me.current=Zn,pe.current=Zn,ve.current=!0,Ze({type:"STORE_UPDATED",payload:{error:Yn}}))}};ae.onStateChange=Te,ae.trySubscribe(),Te();var qe=function(){if(ze=!0,ae.tryUnsubscribe(),ae.onStateChange=null,Ne)throw Ne};return qe}}var Xe=function(){return[null,0]};function nt(ee,te){te===void 0&&(te={});var ae=te,ue=ae.getDisplayName,ce=ue===void 0?function(lr){return"ConnectAdvanced("+lr+")"}:ue,me=ae.methodName,ve=me===void 0?"connectAdvanced":me,pe=ae.renderCountProp,we=pe===void 0?void 0:pe,Ze=ae.shouldHandleStateChanges,ze=Ze===void 0?!0:Ze,Ne=ae.storeKey,Te=Ne===void 0?"store":Ne,qe=ae.withRef,Pt=qe===void 0?!1:qe,Nn=ae.forwardRef,Zn=Nn===void 0?!1:Nn,Yn=ae.context,da=Yn===void 0?Ge:Yn,Fa=(0,y.Z)(ae,ie);if(0)var Na;var dr=da;return function(Fr){var qr=Fr.displayName||Fr.name||"Component",br=ce(qr),_r=(0,Ie.Z)({},Fa,{getDisplayName:ce,methodName:ve,renderCountProp:we,shouldHandleStateChanges:ze,storeKey:Te,displayName:br,wrappedComponentName:qr,WrappedComponent:Fr}),io=Fa.pure;function lo(uo){return ee(uo.dispatch,_r)}var jo=io?b.useMemo:function(uo){return uo()};function No(uo){var ni=(0,b.useMemo)(function(){var Wi=uo.reactReduxForwardedRef,Iu=(0,y.Z)(uo,ge);return[uo.context,Wi,Iu]},[uo]),zo=ni[0],zi=ni[1],si=ni[2],ai=(0,b.useMemo)(function(){return zo&&zo.Consumer&&(0,re.isContextConsumer)(b.createElement(zo.Consumer,null))?zo:dr},[zo,dr]),Zo=(0,b.useContext)(ai),di=!!uo.store&&!!uo.store.getState&&!!uo.store.dispatch,Bl=!!Zo&&!!Zo.store,Wo=di?uo.store:Zo.store,Zi=(0,b.useMemo)(function(){return lo(Wo)},[Wo]),bl=(0,b.useMemo)(function(){if(!ze)return Pe;var Wi=le(Wo,di?null:Zo.subscription),Iu=Wi.notifyNestedSubs.bind(Wi);return[Wi,Iu]},[Wo,di,Zo]),yi=bl[0],Cl=bl[1],xl=(0,b.useMemo)(function(){return di?Zo:(0,Ie.Z)({},Zo,{subscription:yi})},[di,Zo,yi]),os=(0,b.useReducer)(Re,fe,Xe),Kd=os[0],wl=Kd[0],Yd=os[1];if(wl&&wl.error)throw wl.error;var is=(0,b.useRef)(),wu=(0,b.useRef)(si),Dl=(0,b.useRef)(),ls=(0,b.useRef)(!1),Du=jo(function(){return Dl.current&&si===wu.current?Dl.current:Zi(Wo.getState(),si)},[Wo,wl,si]);lt(Le,[wu,is,ls,si,Du,Dl,Cl]),lt(Ce,[ze,Wo,yi,Zi,wu,is,ls,Dl,Cl,Yd],[Wo,yi,Zi]);var Lu=(0,b.useMemo)(function(){return b.createElement(Fr,(0,Ie.Z)({},Du,{ref:zi}))},[zi,Fr,Du]),Jd=(0,b.useMemo)(function(){return ze?b.createElement(ai.Provider,{value:xl},Lu):Lu},[ai,Lu,xl]);return Jd}var bo=io?b.memo(No):No;if(bo.WrappedComponent=Fr,bo.displayName=No.displayName=br,Zn){var Ho=b.forwardRef(function(ni,zo){return b.createElement(bo,(0,Ie.Z)({},ni,{reactReduxForwardedRef:zo}))});return Ho.displayName=br,Ho.WrappedComponent=Fr,ne()(Ho,Fr)}return ne()(bo,Fr)}}function ye(ee,te){return ee===te?ee!==0||te!==0||1/ee===1/te:ee!==ee&&te!==te}function gt(ee,te){if(ye(ee,te))return!0;if(typeof ee!="object"||ee===null||typeof te!="object"||te===null)return!1;var ae=Object.keys(ee),ue=Object.keys(te);if(ae.length!==ue.length)return!1;for(var ce=0;ce=0;ue--){var ce=te[ue](ee);if(ce)return ce}return function(me,ve){throw new Error("Invalid value of type "+typeof ee+" for "+ae+" argument when connecting component "+ve.wrappedComponentName+".")}}function St(ee,te){return ee===te}function Rn(ee){var te=ee===void 0?{}:ee,ae=te.connectHOC,ue=ae===void 0?nt:ae,ce=te.mapStateToPropsFactories,me=ce===void 0?kt:ce,ve=te.mapDispatchToPropsFactories,pe=ve===void 0?Qe:ve,we=te.mergePropsFactories,Ze=we===void 0?ln:we,ze=te.selectorFactory,Ne=ze===void 0?ot:ze;return function(qe,Pt,Nn,Zn){Zn===void 0&&(Zn={});var Yn=Zn,da=Yn.pure,Fa=da===void 0?!0:da,Na=Yn.areStatesEqual,dr=Na===void 0?St:Na,lr=Yn.areOwnPropsEqual,Fr=lr===void 0?gt:lr,qr=Yn.areStatePropsEqual,br=qr===void 0?gt:qr,_r=Yn.areMergedPropsEqual,io=_r===void 0?gt:_r,lo=(0,y.Z)(Yn,bt),jo=zt(qe,me,"mapStateToProps"),No=zt(Pt,pe,"mapDispatchToProps"),bo=zt(Nn,Ze,"mergeProps");return ue(Ne,(0,Ie.Z)({methodName:"connect",getDisplayName:function(uo){return"Connect("+uo+")"},shouldHandleStateChanges:!!qe,initMapStateToProps:jo,initMapDispatchToProps:No,initMergeProps:bo,pure:Fa,areStatesEqual:dr,areOwnPropsEqual:Fr,areStatePropsEqual:br,areMergedPropsEqual:io},lo))}}var Ot=Rn();function Kn(){var ee=useContext(ReactReduxContext);return ee}function xn(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(){var ue=te(),ce=ue.store;return ce}}var jn=null;function $t(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultStore:createStoreHook(ee);return function(){var ue=te();return ue.dispatch}}var ma=null,Wn=function(te,ae){return te===ae};function ba(ee,te,ae,ue){var ce=useReducer(function(Pt){return Pt+1},0),me=ce[1],ve=useMemo(function(){return createSubscription(ae,ue)},[ae,ue]),pe=useRef(),we=useRef(),Ze=useRef(),ze=useRef(),Ne=ae.getState(),Te;try{if(ee!==we.current||Ne!==Ze.current||pe.current){var qe=ee(Ne);ze.current===void 0||!te(qe,ze.current)?Te=qe:Te=ze.current}else Te=ze.current}catch(Pt){throw pe.current&&(Pt.message+=` The error may be correlated with this previous error: `+pe.current.stack+` -`),Pt}return useIsomorphicLayoutEffect(function(){we.current=ee,Ze.current=Ne,ze.current=Te,pe.current=void 0}),useIsomorphicLayoutEffect(function(){function Pt(){try{var On=ae.getState();if(On===Ze.current)return;var Zn=we.current(On);if(te(Zn,ze.current))return;ze.current=Zn,Ze.current=On}catch(Yn){pe.current=Yn}me()}return ve.onStateChange=Pt,ve.trySubscribe(),Pt(),function(){return ve.tryUnsubscribe()}},[ae,ve]),Te}function sn(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(ue,ce){ce===void 0&&(ce=Wn);var me=te(),ve=me.store,pe=me.subscription,we=Ca(ue,ce,ve,pe);return useDebugValue(we),we}}var mn=null,En=oe(4676);De(En.unstable_batchedUpdates);function Ma(ee,te){if(ee.length!==te.length)return!1;for(var ae=0;ae");return ue.callbacks},ue.setCallbacks=function(pe){ue.callbacks=pe},ue}var ae=te.prototype;return ae.componentDidMount=function(){this.unbind=_n(window,[{eventName:"error",fn:this.onWindowError}])},ae.componentWillUnmount=function(){this.unbind()},ae.componentDidCatch=function(ce){if(ce instanceof Dn){this.setState({});return}throw ce},ae.render=function(){return this.props.children(this.setCallbacks)},te}(b.Component),Rn=` +`)},dn=function(te){return[sn(te),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},qn="__react-beautiful-dnd-disable-dev-warnings";function Un(ee,te){var ae;je||typeof window!="undefined"&&window[qn]||(ae=console)[ee].apply(ae,dn(te))}var fn=Un.bind(null,"warn"),Jn=Un.bind(null,"error");function Ea(){}function Zt(ee,te){return(0,Ie.Z)({},ee,{},te)}function _n(ee,te,ae){var ue=te.map(function(ce){var me=Zt(ae,ce.options);return ee.addEventListener(ce.eventName,ce.fn,me),function(){ee.removeEventListener(ce.eventName,ce.fn,me)}});return function(){ue.forEach(function(me){me()})}}var Je=!0,Kt="Invariant failed";function wn(ee){this.message=ee}wn.prototype.toString=function(){return this.message};function tt(ee,te){if(!ee)throw Je?new wn(Kt):new wn(Kt+": "+(te||""))}var Xn=function(ee){Be(te,ee);function te(){for(var ue,ce=arguments.length,me=new Array(ce),ve=0;ve");return ue.callbacks},ue.setCallbacks=function(pe){ue.callbacks=pe},ue}var ae=te.prototype;return ae.componentDidMount=function(){this.unbind=_n(window,[{eventName:"error",fn:this.onWindowError}])},ae.componentWillUnmount=function(){this.unbind()},ae.componentDidCatch=function(ce){if(ce instanceof wn){this.setState({});return}throw ce},ae.render=function(){return this.props.children(this.setCallbacks)},te}(b.Component),Mn=` 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 @@ -305,12 +305,12 @@ The error may be correlated with this previous error: in list `+ae.droppableId+` has been combined with `+ue.draggableId+` in list `+ue.droppableId+` - `},_a=function(te){var ae=te.destination;if(ae)return Za(te.source,ae);var ue=te.combine;return ue?sa(te.draggableId,te.source,ue):"You are over an area that cannot be dropped on"},$a=function(te){return` + `},er=function(te){var ae=te.destination;if(ae)return Za(te.source,ae);var ue=te.combine;return ue?sa(te.draggableId,te.source,ue):"You are over an area that cannot be dropped on"},tr=function(te){return` The item has returned to its starting position of `+ca(te.index)+` `},gr=function(te){if(te.reason==="CANCEL")return` Movement cancelled. - `+$a(te.source)+` + `+tr(te.source)+` `;var ae=te.destination,ue=te.combine;return ae?` You have dropped the item. `+Za(te.source,ae)+` @@ -319,8 +319,8 @@ The error may be correlated with this previous error: `+sa(te.draggableId,te.source,ue)+` `:` The item has been dropped while not over a drop area. - `+$a(te.source)+` - `},kt={dragHandleUsageInstructions:Rn,onDragStart:Vn,onDragUpdate:_a,onDragEnd:gr},La={x:0,y:0},Vt=function(te,ae){return{x:te.x+ae.x,y:te.y+ae.y}},wa=function(te,ae){return{x:te.x-ae.x,y:te.y-ae.y}},pa=function(te,ae){return te.x===ae.x&&te.y===ae.y},Jt=function(te){return{x:te.x!==0?-te.x:0,y:te.y!==0?-te.y:0}},Ln=function(te,ae,ue){var ce;return ue===void 0&&(ue=0),ce={},ce[te]=ae,ce[te==="x"?"y":"x"]=ue,ce},ea=function(te,ae){return Math.sqrt(Math.pow(ae.x-te.x,2)+Math.pow(ae.y-te.y,2))},yn=function(te,ae){return Math.min.apply(Math,ae.map(function(ue){return ea(te,ue)}))},Ta=function(te){return function(ae){return{x:te(ae.x),y:te(ae.y)}}},Pa=function(ee,te){var ae=aa({top:Math.max(te.top,ee.top),right:Math.min(te.right,ee.right),bottom:Math.min(te.bottom,ee.bottom),left:Math.max(te.left,ee.left)});return ae.width<=0||ae.height<=0?null:ae},Va=function(te,ae){return{top:te.top+ae.y,left:te.left+ae.x,bottom:te.bottom+ae.y,right:te.right+ae.x}},dr=function(te){return[{x:te.left,y:te.top},{x:te.right,y:te.top},{x:te.left,y:te.bottom},{x:te.right,y:te.bottom}]},Er={top:0,right:0,bottom:0,left:0},Mr=function(te,ae){return ae?Va(te,ae.scroll.diff.displacement):te},hr=function(te,ae,ue){if(ue&&ue.increasedBy){var ce;return(0,Ie.Z)({},te,(ce={},ce[ae.end]=te[ae.end]+ue.increasedBy[ae.line],ce))}return te},Jr=function(te,ae){return ae&&ae.shouldClipSubject?Pa(ae.pageMarginBox,te):aa(te)},Xa=function(ee){var te=ee.page,ae=ee.withPlaceholder,ue=ee.axis,ce=ee.frame,me=Mr(te.marginBox,ce),ve=hr(me,ue,ae),pe=Jr(ve,ce);return{page:te,withPlaceholder:ae,active:pe}},qa=function(ee,te){ee.frame||tt(!1);var ae=ee.frame,ue=wa(te,ae.scroll.initial),ce=Jt(ue),me=(0,Ie.Z)({},ae,{scroll:{initial:ae.scroll.initial,current:te,diff:{value:ue,displacement:ce},max:ae.scroll.max}}),ve=Xa({page:ee.subject.page,withPlaceholder:ee.subject.withPlaceholder,axis:ee.axis,frame:me}),pe=(0,Ie.Z)({},ee,{frame:me,subject:ve});return pe};function vr(ee){return Number.isInteger?Number.isInteger(ee):typeof ee=="number"&&isFinite(ee)&&Math.floor(ee)===ee}function fa(ee){return Object.values?Object.values(ee):Object.keys(ee).map(function(te){return ee[te]})}function lr(ee,te){if(ee.findIndex)return ee.findIndex(te);for(var ae=0;aeee.bottom,Ze=ue.leftee.right,ze=we&&Ze;if(ze)return!0;var Ne=we&&ve||Ze&&me;return Ne}},Gr=function(ee){var te=Qa(ee.top,ee.bottom),ae=Qa(ee.left,ee.right);return function(ue){var ce=te(ue.top)&&te(ue.bottom)&&ae(ue.left)&&ae(ue.right);return ce}},er={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},fr={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Dr=function(ee){return function(te){var ae=Qa(te.top,te.bottom),ue=Qa(te.left,te.right);return function(ce){return ee===er?ae(ce.top)&&ae(ce.bottom):ue(ce.left)&&ue(ce.right)}}},Gn=function(te,ae){var ue=ae.frame?ae.frame.scroll.diff.displacement:La;return Va(te,ue)},on=function(te,ae,ue){return ae.subject.active?ue(ae.subject.active)(te):!1},It=function(te,ae,ue){return ue(ae)(te)},de=function(te){var ae=te.target,ue=te.destination,ce=te.viewport,me=te.withDroppableDisplacement,ve=te.isVisibleThroughFrameFn,pe=me?Gn(ae,ue):ae;return on(pe,ue,ve)&&It(pe,ce,ve)},$e=function(te){return de((0,Ie.Z)({},te,{isVisibleThroughFrameFn:pr}))},st=function(te){return de((0,Ie.Z)({},te,{isVisibleThroughFrameFn:Gr}))},jt=function(te){return de((0,Ie.Z)({},te,{isVisibleThroughFrameFn:Dr(te.destination.axis)}))},at=function(te,ae,ue){if(typeof ue=="boolean")return ue;if(!ae)return!0;var ce=ae.invisible,me=ae.visible;if(ce[te])return!1;var ve=me[te];return ve?ve.shouldAnimate:!0};function rn(ee,te){var ae=ee.page.marginBox,ue={top:te.point.y,right:0,bottom:0,left:te.point.x};return aa(Ka(ae,ue))}function qt(ee){var te=ee.afterDragging,ae=ee.destination,ue=ee.displacedBy,ce=ee.viewport,me=ee.forceShouldAnimate,ve=ee.last;return te.reduce(function(we,Ze){var ze=rn(Ze,ue),Ne=Ze.descriptor.id;we.all.push(Ne);var Te=$e({target:ze,destination:ae,viewport:ce,withDroppableDisplacement:!0});if(!Te)return we.invisible[Ze.descriptor.id]=!0,we;var qe=at(Ne,ve,me),Pt={draggableId:Ne,shouldAnimate:qe};return we.visible[Ne]=Pt,we},{all:[],visible:{},invisible:{}})}function Kt(ee,te){if(!ee.length)return 0;var ae=ee[ee.length-1].descriptor.index;return te.inHomeList?ae:ae+1}function _t(ee){var te=ee.insideDestination,ae=ee.inHomeList,ue=ee.displacedBy,ce=ee.destination,me=Kt(te,{inHomeList:ae});return{displaced:ka,displacedBy:ue,at:{type:"REORDER",destination:{droppableId:ce.descriptor.id,index:me}}}}function oa(ee){var te=ee.draggable,ae=ee.insideDestination,ue=ee.destination,ce=ee.viewport,me=ee.displacedBy,ve=ee.last,pe=ee.index,we=ee.forceShouldAnimate,Ze=Aa(te,ue);if(pe==null)return _t({insideDestination:ae,inHomeList:Ze,displacedBy:me,destination:ue});var ze=mr(ae,function(On){return On.descriptor.index===pe});if(!ze)return _t({insideDestination:ae,inHomeList:Ze,displacedBy:me,destination:ue});var Ne=tn(te,ae),Te=ae.indexOf(ze),qe=Ne.slice(Te),Pt=qt({afterDragging:qe,destination:ue,displacedBy:me,last:ve,viewport:ce.frame,forceShouldAnimate:we});return{displaced:Pt,displacedBy:me,at:{type:"REORDER",destination:{droppableId:ue.descriptor.id,index:pe}}}}function Ha(ee,te){return!!te.effected[ee]}var Wa=function(ee){var te=ee.isMovingForward,ae=ee.destination,ue=ee.draggables,ce=ee.combine,me=ee.afterCritical;if(!ae.isCombineEnabled)return null;var ve=ce.draggableId,pe=ue[ve],we=pe.descriptor.index,Ze=Ha(ve,me);return Ze?te?we:we-1:te?we+1:we},pn=function(ee){var te=ee.isMovingForward,ae=ee.isInHomeList,ue=ee.insideDestination,ce=ee.location;if(!ue.length)return null;var me=ce.index,ve=te?me+1:me-1,pe=ue[0].descriptor.index,we=ue[ue.length-1].descriptor.index,Ze=ae?we:we+1;return veZe?null:ve},Na=function(ee){var te=ee.isMovingForward,ae=ee.isInHomeList,ue=ee.draggable,ce=ee.draggables,me=ee.destination,ve=ee.insideDestination,pe=ee.previousImpact,we=ee.viewport,Ze=ee.afterCritical,ze=pe.at;if(ze||tt(!1),ze.type==="REORDER"){var Ne=pn({isMovingForward:te,isInHomeList:ae,location:ze.destination,insideDestination:ve});return Ne==null?null:oa({draggable:ue,insideDestination:ve,destination:me,viewport:we,last:pe.displaced,displacedBy:pe.displacedBy,index:Ne})}var Te=Wa({isMovingForward:te,destination:me,displaced:pe.displaced,draggables:ce,combine:ze.combine,afterCritical:Ze});return Te==null?null:oa({draggable:ue,insideDestination:ve,destination:me,viewport:we,last:pe.displaced,displacedBy:pe.displacedBy,index:Te})},xa=function(ee){var te=ee.displaced,ae=ee.afterCritical,ue=ee.combineWith,ce=ee.displacedBy,me=!!(te.visible[ue]||te.invisible[ue]);return Ha(ue,ae)?me?La:Jt(ce.point):me?ce.point:La},ja=function(ee){var te=ee.afterCritical,ae=ee.impact,ue=ee.draggables,ce=Ia(ae);ce||tt(!1);var me=ce.draggableId,ve=ue[me].page.borderBox.center,pe=xa({displaced:ae.displaced,afterCritical:te,combineWith:me,displacedBy:ae.displacedBy});return Vt(ve,pe)},Ir=function(te,ae){return ae.margin[te.start]+ae.borderBox[te.size]/2},Qr=function(te,ae){return ae.margin[te.end]+ae.borderBox[te.size]/2},Rr=function(te,ae,ue){return ae[te.crossAxisStart]+ue.margin[te.crossAxisStart]+ue.borderBox[te.crossAxisSize]/2},Wr=function(te){var ae=te.axis,ue=te.moveRelativeTo,ce=te.isMoving;return Ln(ae.line,ue.marginBox[ae.end]+Ir(ae,ce),Rr(ae,ue.marginBox,ce))},jr=function(te){var ae=te.axis,ue=te.moveRelativeTo,ce=te.isMoving;return Ln(ae.line,ue.marginBox[ae.start]-Qr(ae,ce),Rr(ae,ue.marginBox,ce))},Zr=function(te){var ae=te.axis,ue=te.moveInto,ce=te.isMoving;return Ln(ae.line,ue.contentBox[ae.start]+Ir(ae,ce),Rr(ae,ue.contentBox,ce))},Co=function(ee){var te=ee.impact,ae=ee.draggable,ue=ee.draggables,ce=ee.droppable,me=ee.afterCritical,ve=gn(ce.descriptor.id,ue),pe=ae.page,we=ce.axis;if(!ve.length)return Zr({axis:we,moveInto:ce.page,isMoving:pe});var Ze=te.displaced,ze=te.displacedBy,Ne=Ze.all[0];if(Ne){var Te=ue[Ne];if(Ha(Ne,me))return jr({axis:we,moveRelativeTo:Te.page,isMoving:pe});var qe=At(Te.page,ze.point);return jr({axis:we,moveRelativeTo:qe,isMoving:pe})}var Pt=ve[ve.length-1];if(Pt.descriptor.id===ae.descriptor.id)return pe.borderBox.center;if(Ha(Pt.descriptor.id,me)){var On=At(Pt.page,Jt(me.displacedBy.point));return Wr({axis:we,moveRelativeTo:On,isMoving:pe})}return Wr({axis:we,moveRelativeTo:Pt.page,isMoving:pe})},Po=function(ee,te){var ae=ee.frame;return ae?Vt(te,ae.scroll.diff.displacement):te},ho=function(te){var ae=te.impact,ue=te.draggable,ce=te.droppable,me=te.draggables,ve=te.afterCritical,pe=ue.page.borderBox.center,we=ae.at;return!ce||!we?pe:we.type==="REORDER"?Co({impact:ae,draggable:ue,draggables:me,droppable:ce,afterCritical:ve}):ja({impact:ae,draggables:me,afterCritical:ve})},Eo=function(ee){var te=ho(ee),ae=ee.droppable,ue=ae?Po(ae,te):te;return ue},xo=function(ee,te){var ae=wa(te,ee.scroll.initial),ue=Jt(ae),ce=aa({top:te.y,bottom:te.y+ee.frame.height,left:te.x,right:te.x+ee.frame.width}),me={frame:ce,scroll:{initial:ee.scroll.initial,max:ee.scroll.max,current:te,diff:{value:ae,displacement:ue}}};return me};function Hr(ee,te){return ee.map(function(ae){return te[ae]})}function wo(ee,te){for(var ae=0;ae1?ze.sort(function(Ne,Te){return ro(Ne)[pe.start]-ro(Te)[pe.start]})[0]:Ze.sort(function(Ne,Te){var qe=yn(ae,dr(ro(Ne))),Pt=yn(ae,dr(ro(Te)));return qe!==Pt?qe-Pt:ro(Ne)[pe.start]-ro(Te)[pe.start]})[0]},Ko=function(te,ae){var ue=te.page.borderBox.center;return Ha(te.descriptor.id,ae)?wa(ue,ae.displacedBy.point):ue},Ol=function(te,ae){var ue=te.page.borderBox;return Ha(te.descriptor.id,ae)?Va(ue,Jt(ae.displacedBy.point)):ue},Nu=function(ee){var te=ee.pageBorderBoxCenter,ae=ee.viewport,ue=ee.destination,ce=ee.insideDestination,me=ee.afterCritical,ve=ce.filter(function(pe){return st({target:Ol(pe,me),destination:ue,viewport:ae.frame,withDroppableDisplacement:!0})}).sort(function(pe,we){var Ze=ea(te,Po(ue,Ko(pe,me))),ze=ea(te,Po(ue,Ko(we,me)));return Zete.left&&ee.topte.top}function Ui(ee){var te=ee.pageBorderBox,ae=ee.draggable,ue=ee.candidates,ce=ae.page.borderBox.center,me=ue.map(function(ve){var pe=ve.axis,we=Ln(ve.axis.line,te.center[pe.line],ve.page.borderBox.center[pe.crossAxisLine]);return{id:ve.descriptor.id,distance:ea(ce,we)}}).sort(function(ve,pe){return pe.distance-ve.distance});return me[0]?me[0].id:null}function Ou(ee){var te=ee.pageBorderBox,ae=ee.draggable,ue=ee.droppables,ce=it(ue).filter(function(me){if(!me.isEnabled)return!1;var ve=me.subject.active;if(!ve||!po(te,ve))return!1;if(no(ve)(te.center))return!0;var pe=me.axis,we=ve.center[pe.crossAxisLine],Ze=te[pe.crossAxisStart],ze=te[pe.crossAxisEnd],Ne=Qa(ve[pe.crossAxisStart],ve[pe.crossAxisEnd]),Te=Ne(Ze),qe=Ne(ze);return!Te&&!qe?!0:Te?Zewe});return ce.length?ce.length===1?ce[0].descriptor.id:Ui({pageBorderBox:te,draggable:ae,candidates:ce}):null}var Ki=function(te,ae){return aa(Va(te,ae))},ta=function(ee,te){var ae=ee.frame;return ae?Ki(te,ae.scroll.diff.value):te};function Yi(ee){var te=ee.displaced,ae=ee.id;return!!(te.visible[ae]||te.invisible[ae])}function Hl(ee){var te=ee.draggable,ae=ee.closest,ue=ee.inHomeList;return ae?ue&&ae.descriptor.index>te.descriptor.index?ae.descriptor.index-1:ae.descriptor.index:null}var Nn=function(ee){var te=ee.pageBorderBoxWithDroppableScroll,ae=ee.draggable,ue=ee.destination,ce=ee.insideDestination,me=ee.last,ve=ee.viewport,pe=ee.afterCritical,we=ue.axis,Ze=ri(ue.axis,ae.displaceBy),ze=Ze.value,Ne=te[we.start],Te=te[we.end],qe=tn(ae,ce),Pt=mr(qe,function(Zn){var Yn=Zn.descriptor.id,da=Zn.page.borderBox.center[we.line],Fa=Ha(Yn,pe),Oa=Yi({displaced:me,id:Yn});return Fa?Oa?Te<=da:NeYn[pe.start]+Fa&&NeYn[pe.start]-Ze+Fa&&zeYn[pe.start]+Ze+Fa&&NeYn[pe.start]+Fa&&ze=se)return ol;var me=ce/se,ve=fi+su*me,pe=ue==="CANCEL"?ve*Se:ve;return Number(pe.toFixed(2))},rt=function(ee){var te=ee.impact,ae=ee.draggable,ue=ee.dimensions,ce=ee.viewport,me=ee.afterCritical,ve=ue.draggables,pe=ue.droppables,we=so(te),Ze=we?pe[we]:null,ze=pe[ae.descriptor.droppableId],Ne=Xi({impact:te,draggable:ae,draggables:ve,afterCritical:me,droppable:Ze||ze,viewport:ce}),Te=wa(Ne,ae.client.borderBox.center);return Te},Cn=function(ee){var te=ee.draggables,ae=ee.reason,ue=ee.lastImpact,ce=ee.home,me=ee.viewport,ve=ee.onLiftImpact;if(!ue.at||ae!=="DROP"){var pe=Ji({draggables:te,impact:ve,destination:ce,viewport:me,forceShouldAnimate:!0});return{impact:pe,didDropInsideDroppable:!1}}if(ue.at.type==="REORDER")return{impact:ue,didDropInsideDroppable:!0};var we=(0,Ie.Z)({},ue,{displaced:ka});return{impact:we,didDropInsideDroppable:!0}},$n=function(ee){var te=ee.getState,ae=ee.dispatch;return function(ue){return function(ce){if(ce.type!=="DROP"){ue(ce);return}var me=te(),ve=ce.payload.reason;if(me.phase==="COLLECTING"){ae(ou({reason:ve}));return}if(me.phase!=="IDLE"){var pe=me.phase==="DROP_PENDING"&&me.isWaiting;pe&&tt(!1),me.phase==="DRAGGING"||me.phase==="DROP_PENDING"||tt(!1);var we=me.critical,Ze=me.dimensions,ze=Ze.draggables[me.critical.draggable.id],Ne=Cn({reason:ve,lastImpact:me.impact,afterCritical:me.afterCritical,onLiftImpact:me.onLiftImpact,home:me.dimensions.droppables[me.critical.droppable.id],viewport:me.viewport,draggables:me.dimensions.draggables}),Te=Ne.impact,qe=Ne.didDropInsideDroppable,Pt=qe?ua(Te):null,On=qe?Ia(Te):null,Zn={index:we.draggable.index,droppableId:we.droppable.id},Yn={draggableId:ze.descriptor.id,type:ze.descriptor.type,source:Zn,reason:ve,mode:me.movementMode,destination:Pt,combine:On},da=rt({impact:Te,draggable:ze,dimensions:Ze,viewport:me.viewport,afterCritical:me.afterCritical}),Fa={critical:me.critical,afterCritical:me.afterCritical,result:Yn,impact:Te},Oa=!pa(me.current.client.offset,da)||!!Yn.combine;if(!Oa){ae(wi({completed:Fa}));return}var sr=Ee({current:me.current.client.offset,destination:da,reason:ve}),ir={newHomeClientOffset:da,dropDuration:sr,completed:Fa};ae(ru(ir))}}}},ia=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Fn(ee){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ae){ae.target!==window&&ae.target!==window.document||ee()}}}function bt(ee){var te=ee.onWindowScroll;function ae(){te(ia())}var ue=An(ae),ce=Fn(ue),me=Ea;function ve(){return me!==Ea}function pe(){ve()&&tt(!1),me=_n(window,[ce])}function we(){ve()||tt(!1),ue.cancel(),me(),me=Ea}return{start:pe,stop:we,isActive:ve}}var Zt=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},ba=function(ee){var te=bt({onWindowScroll:function(ue){ee.dispatch(nu({newScroll:ue}))}});return function(ae){return function(ue){!te.isActive()&&ue.type==="INITIAL_PUBLISH"&&te.start(),te.isActive()&&Zt(ue)&&te.stop(),ae(ue)}}},Ct=function(ee){var te=!1,ae=!1,ue=setTimeout(function(){ae=!0}),ce=function(ve){te||ae||(te=!0,ee(ve),clearTimeout(ue))};return ce.wasCalled=function(){return te},ce},Sn=function(){var ee=[],te=function(me){var ve=lr(ee,function(Ze){return Ze.timerId===me});ve===-1&&tt(!1);var pe=ee.splice(ve,1),we=pe[0];we.callback()},ae=function(me){var ve=setTimeout(function(){return te(ve)}),pe={timerId:ve,callback:me};ee.push(pe)},ue=function(){if(ee.length){var me=[].concat(ee);ee.length=0,me.forEach(function(ve){clearTimeout(ve.timerId),ve.callback()})}};return{add:ae,flush:ue}},na=function(te,ae){return te==null&&ae==null?!0:te==null||ae==null?!1:te.droppableId===ae.droppableId&&te.index===ae.index},va=function(te,ae){return te==null&&ae==null?!0:te==null||ae==null?!1:te.draggableId===ae.draggableId&&te.droppableId===ae.droppableId},Lt=function(te,ae){if(te===ae)return!0;var ue=te.draggable.id===ae.draggable.id&&te.draggable.droppableId===ae.draggable.droppableId&&te.draggable.type===ae.draggable.type&&te.draggable.index===ae.draggable.index,ce=te.droppable.id===ae.droppable.id&&te.droppable.type===ae.droppable.type;return ue&&ce},fn=function(te,ae){Mo(),ae(),Yo()},Bn=function(te,ae){return{draggableId:te.draggable.id,type:te.droppable.type,source:{droppableId:te.droppable.id,index:te.draggable.index},mode:ae}},an=function(te,ae,ue,ce){if(!te){ue(ce(ae));return}var me=Ct(ue),ve={announce:me};te(ae,ve),me.wasCalled()||ue(ce(ae))},ar=function(ee,te){var ae=Sn(),ue=null,ce=function(Te,qe){ue&&tt(!1),fn("onBeforeCapture",function(){var Pt=ee().onBeforeCapture;if(Pt){var On={draggableId:Te,mode:qe};Pt(On)}})},me=function(Te,qe){ue&&tt(!1),fn("onBeforeDragStart",function(){var Pt=ee().onBeforeDragStart;Pt&&Pt(Bn(Te,qe))})},ve=function(Te,qe){ue&&tt(!1);var Pt=Bn(Te,qe);ue={mode:qe,lastCritical:Te,lastLocation:Pt.source,lastCombine:null},ae.add(function(){fn("onDragStart",function(){return an(ee().onDragStart,Pt,te,kt.onDragStart)})})},pe=function(Te,qe){var Pt=ua(qe),On=Ia(qe);ue||tt(!1);var Zn=!Lt(Te,ue.lastCritical);Zn&&(ue.lastCritical=Te);var Yn=!na(ue.lastLocation,Pt);Yn&&(ue.lastLocation=Pt);var da=!va(ue.lastCombine,On);if(da&&(ue.lastCombine=On),!(!Zn&&!Yn&&!da)){var Fa=(0,Ie.Z)({},Bn(Te,ue.mode),{combine:On,destination:Pt});ae.add(function(){fn("onDragUpdate",function(){return an(ee().onDragUpdate,Fa,te,kt.onDragUpdate)})})}},we=function(){ue||tt(!1),ae.flush()},Ze=function(Te){ue||tt(!1),ue=null,fn("onDragEnd",function(){return an(ee().onDragEnd,Te,te,kt.onDragEnd)})},ze=function(){if(ue){var Te=(0,Ie.Z)({},Bn(ue.lastCritical,ue.mode),{combine:null,destination:null,reason:"CANCEL"});Ze(Te)}};return{beforeCapture:ce,beforeStart:me,start:ve,update:pe,flush:we,drop:Ze,abort:ze}},nn=function(ee,te){var ae=ar(ee,te);return function(ue){return function(ce){return function(me){if(me.type==="BEFORE_INITIAL_CAPTURE"){ae.beforeCapture(me.payload.draggableId,me.payload.movementMode);return}if(me.type==="INITIAL_PUBLISH"){var ve=me.payload.critical;ae.beforeStart(ve,me.payload.movementMode),ce(me),ae.start(ve,me.payload.movementMode);return}if(me.type==="DROP_COMPLETE"){var pe=me.payload.completed.result;ae.flush(),ce(me),ae.drop(pe);return}if(ce(me),me.type==="FLUSH"){ae.abort();return}var we=ue.getState();we.phase==="DRAGGING"&&ae.update(we.critical,we.impact)}}}},la=function(ee){return function(te){return function(ae){if(ae.type!=="DROP_ANIMATION_FINISHED"){te(ae);return}var ue=ee.getState();ue.phase!=="DROP_ANIMATING"&&tt(!1),ee.dispatch(wi({completed:ue.completed}))}}},Xt=function(ee){var te=null,ae=null;function ue(){ae&&(cancelAnimationFrame(ae),ae=null),te&&(te(),te=null)}return function(ce){return function(me){if((me.type==="FLUSH"||me.type==="DROP_COMPLETE"||me.type==="DROP_ANIMATION_FINISHED")&&ue(),ce(me),me.type==="DROP_ANIMATE"){var ve={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var we=ee.getState();we.phase==="DROP_ANIMATING"&&ee.dispatch(al())}};ae=requestAnimationFrame(function(){ae=null,te=_n(window,[ve])})}}}},cr=function(ee){return function(){return function(te){return function(ae){(ae.type==="DROP_COMPLETE"||ae.type==="FLUSH"||ae.type==="DROP_ANIMATE")&&ee.stopPublishing(),te(ae)}}}},Sr=function(ee){var te=!1;return function(){return function(ae){return function(ue){if(ue.type==="INITIAL_PUBLISH"){te=!0,ee.tryRecordFocus(ue.payload.critical.draggable.id),ae(ue),ee.tryRestoreFocusRecorded();return}if(ae(ue),!!te){if(ue.type==="FLUSH"){te=!1,ee.tryRestoreFocusRecorded();return}if(ue.type==="DROP_COMPLETE"){te=!1;var ce=ue.payload.completed.result;ce.combine&&ee.tryShiftRecord(ce.draggableId,ce.combine.draggableId),ee.tryRestoreFocusRecorded()}}}}}},br=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},Ar=function(ee){return function(te){return function(ae){return function(ue){if(br(ue)){ee.stop(),ae(ue);return}if(ue.type==="INITIAL_PUBLISH"){ae(ue);var ce=te.getState();ce.phase!=="DRAGGING"&&tt(!1),ee.start(ce);return}ae(ue),ee.scroll(te.getState())}}}},zn=function(ee){return function(te){return function(ae){if(te(ae),ae.type==="PUBLISH_WHILE_DRAGGING"){var ue=ee.getState();ue.phase==="DROP_PENDING"&&(ue.isWaiting||ee.dispatch(Di({reason:ue.reason})))}}}},ur=be.qC,zr=function(ee){var te=ee.dimensionMarshal,ae=ee.focusMarshal,ue=ee.styleMarshal,ce=ee.getResponders,me=ee.announce,ve=ee.autoScroller;return(0,be.MT)(Jl,ur((0,be.md)(uu(ue),cr(te),lu(te),$n,la,Xt,zn,Ar(ve),ba,Sr(ae),nn(ce,me))))},Vr=function(){return{additions:{},removals:{},modified:{}}};function $r(ee){var te=ee.registry,ae=ee.callbacks,ue=Vr(),ce=null,me=function(){ce||(ae.collectionStarting(),ce=requestAnimationFrame(function(){ce=null,Mo();var ze=ue,Ne=ze.additions,Te=ze.removals,qe=ze.modified,Pt=Object.keys(Ne).map(function(Yn){return te.draggable.getById(Yn).getDimension(La)}).sort(function(Yn,da){return Yn.descriptor.index-da.descriptor.index}),On=Object.keys(qe).map(function(Yn){var da=te.droppable.getById(Yn),Fa=da.callbacks.getScrollWhileDragging();return{droppableId:Yn,scroll:Fa}}),Zn={additions:Pt,removals:Object.keys(Te),modified:On};ue=Vr(),Yo(),ae.publish(Zn)}))},ve=function(ze){var Ne=ze.descriptor.id;ue.additions[Ne]=ze,ue.modified[ze.descriptor.droppableId]=!0,ue.removals[Ne]&&delete ue.removals[Ne],me()},pe=function(ze){var Ne=ze.descriptor;ue.removals[Ne.id]=!0,ue.modified[Ne.droppableId]=!0,ue.additions[Ne.id]&&delete ue.additions[Ne.id],me()},we=function(){ce&&(cancelAnimationFrame(ce),ce=null,ue=Vr())};return{add:ve,remove:pe,stop:we}}var yr=function(ee){var te=ee.scrollHeight,ae=ee.scrollWidth,ue=ee.height,ce=ee.width,me=wa({x:ae,y:te},{x:ce,y:ue}),ve={x:Math.max(0,me.x),y:Math.max(0,me.y)};return ve},xr=function(){var ee=document.documentElement;return ee||tt(!1),ee},Tr=function(){var ee=xr(),te=yr({scrollHeight:ee.scrollHeight,scrollWidth:ee.scrollWidth,width:ee.clientWidth,height:ee.clientHeight});return te},rr=function(){var ee=ia(),te=Tr(),ae=ee.y,ue=ee.x,ce=xr(),me=ce.clientWidth,ve=ce.clientHeight,pe=ue+me,we=ae+ve,Ze=aa({top:ae,left:ue,right:pe,bottom:we}),ze={frame:Ze,scroll:{initial:ee,current:ee,max:te,diff:{value:La,displacement:La}}};return ze},Nr=function(ee){var te=ee.critical,ae=ee.scrollOptions,ue=ee.registry;Mo();var ce=rr(),me=ce.scroll.current,ve=te.droppable,pe=ue.droppable.getAllByType(ve.type).map(function(Ne){return Ne.callbacks.getDimensionAndWatchScroll(me,ae)}),we=ue.draggable.getAllByType(te.draggable.type).map(function(Ne){return Ne.getDimension(me)}),Ze={draggables:mt(we),droppables:tr(pe)};Yo();var ze={dimensions:Ze,critical:te,viewport:ce};return ze};function Or(ee,te,ae){if(ae.descriptor.id===te.id||ae.descriptor.type!==te.type)return!1;var ue=ee.droppable.getById(ae.descriptor.droppableId);return ue.descriptor.mode==="virtual"}var Ur=function(ee,te){var ae=null,ue=$r({callbacks:{publish:te.publishWhileDragging,collectionStarting:te.collectionStarting},registry:ee}),ce=function(qe,Pt){ee.droppable.exists(qe)||tt(!1),ae&&te.updateDroppableIsEnabled({id:qe,isEnabled:Pt})},me=function(qe,Pt){ae&&(ee.droppable.exists(qe)||tt(!1),te.updateDroppableIsCombineEnabled({id:qe,isCombineEnabled:Pt}))},ve=function(qe,Pt){ae&&(ee.droppable.exists(qe)||tt(!1),te.updateDroppableScroll({id:qe,newScroll:Pt}))},pe=function(qe,Pt){ae&&ee.droppable.getById(qe).callbacks.scroll(Pt)},we=function(){if(ae){ue.stop();var qe=ae.critical.droppable;ee.droppable.getAllByType(qe.type).forEach(function(Pt){return Pt.callbacks.dragStopped()}),ae.unsubscribe(),ae=null}},Ze=function(qe){ae||tt(!1);var Pt=ae.critical.draggable;qe.type==="ADDITION"&&Or(ee,Pt,qe.value)&&ue.add(qe.value),qe.type==="REMOVAL"&&Or(ee,Pt,qe.value)&&ue.remove(qe.value)},ze=function(qe){ae&&tt(!1);var Pt=ee.draggable.getById(qe.draggableId),On=ee.droppable.getById(Pt.descriptor.droppableId),Zn={draggable:Pt.descriptor,droppable:On.descriptor},Yn=ee.subscribe(Ze);return ae={critical:Zn,unsubscribe:Yn},Nr({critical:Zn,registry:ee,scrollOptions:qe.scrollOptions})},Ne={updateDroppableIsEnabled:ce,updateDroppableIsCombineEnabled:me,scrollDroppable:pe,updateDroppableScroll:ve,startPublishing:ze,stopPublishing:we};return Ne},eo=function(ee,te){return ee.phase==="IDLE"?!0:ee.phase!=="DROP_ANIMATING"||ee.completed.result.draggableId===te?!1:ee.completed.result.reason==="DROP"},mo=function(ee){window.scrollBy(ee.x,ee.y)},fo=Tt(function(ee){return it(ee).filter(function(te){return!(!te.isEnabled||!te.frame)})}),Ao=function(te,ae){var ue=mr(fo(ae),function(ce){return ce.frame||tt(!1),no(ce.frame.pageMarginBox)(te)});return ue},So=function(ee){var te=ee.center,ae=ee.destination,ue=ee.droppables;if(ae){var ce=ue[ae];return ce.frame?ce:null}var me=Ao(te,ue);return me},yo={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(te){return Math.pow(te,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},ii=function(ee,te){var ae=ee[te.size]*yo.startFromPercentage,ue=ee[te.size]*yo.maxScrollAtPercentage,ce={startScrollingFrom:ae,maxScrollValueAt:ue};return ce},Ii=function(ee){var te=ee.startOfRange,ae=ee.endOfRange,ue=ee.current,ce=ae-te;if(ce===0)return 0;var me=ue-te,ve=me/ce;return ve},vi=1,Ru=function(ee,te){if(ee>te.startScrollingFrom)return 0;if(ee<=te.maxScrollValueAt)return yo.maxPixelScroll;if(ee===te.startScrollingFrom)return vi;var ae=Ii({startOfRange:te.maxScrollValueAt,endOfRange:te.startScrollingFrom,current:ee}),ue=1-ae,ce=yo.maxPixelScroll*yo.ease(ue);return Math.ceil(ce)},du=yo.durationDampening.accelerateAt,il=yo.durationDampening.stopDampeningAt,ll=function(ee,te){var ae=te,ue=il,ce=Date.now(),me=ce-ae;if(me>=il)return ee;if(mete.height,me=ae.width>te.width;return!me&&!ce?ue:me&&ce?null:{x:me?0:ue.x,y:ce?0:ue.y}},cu=Ta(function(ee){return ee===0?0:ee}),to=function(ee){var te=ee.dragStartTime,ae=ee.container,ue=ee.subject,ce=ee.center,me=ee.shouldUseTimeDampening,ve={top:ce.y-ae.top,right:ae.right-ce.x,bottom:ae.bottom-ce.y,left:ce.x-ae.left},pe=ul({container:ae,distanceToEdges:ve,dragStartTime:te,axis:er,shouldUseTimeDampening:me}),we=ul({container:ae,distanceToEdges:ve,dragStartTime:te,axis:fr,shouldUseTimeDampening:me}),Ze=cu({x:we,y:pe});if(pa(Ze,La))return null;var ze=pi({container:ae,subject:ue,proposedScroll:Ze});return ze?pa(ze,La)?null:ze:null},hi=Ta(function(ee){return ee===0?0:ee>0?1:-1}),_o=function(){var ee=function(ae,ue){return ae<0?ae:ae>ue?ae-ue:0};return function(te){var ae=te.current,ue=te.max,ce=te.change,me=Vt(ae,ce),ve={x:ee(me.x,ue.x),y:ee(me.y,ue.y)};return pa(ve,La)?null:ve}}(),Ni=function(te){var ae=te.max,ue=te.current,ce=te.change,me={x:Math.max(ue.x,ae.x),y:Math.max(ue.y,ae.y)},ve=hi(ce),pe=_o({max:me,current:ue,change:ve});return!pe||ve.x!==0&&pe.x===0||ve.y!==0&&pe.y===0},Fo=function(te,ae){return Ni({current:te.scroll.current,max:te.scroll.max,change:ae})},Oi=function(te,ae){if(!Fo(te,ae))return null;var ue=te.scroll.max,ce=te.scroll.current;return _o({current:ce,max:ue,change:ae})},Do=function(te,ae){var ue=te.frame;return ue?Ni({current:ue.scroll.current,max:ue.scroll.max,change:ae}):!1},oo=function(te,ae){var ue=te.frame;return!ue||!Do(te,ae)?null:_o({current:ue.scroll.current,max:ue.scroll.max,change:ae})},Vo=function(ee){var te=ee.viewport,ae=ee.subject,ue=ee.center,ce=ee.dragStartTime,me=ee.shouldUseTimeDampening,ve=to({dragStartTime:ce,container:te.frame,subject:ae,center:ue,shouldUseTimeDampening:me});return ve&&Fo(te,ve)?ve:null},Qo=function(ee){var te=ee.droppable,ae=ee.subject,ue=ee.center,ce=ee.dragStartTime,me=ee.shouldUseTimeDampening,ve=te.frame;if(!ve)return null;var pe=to({dragStartTime:ce,container:ve.pageMarginBox,subject:ae,center:ue,shouldUseTimeDampening:me});return pe&&Do(te,pe)?pe:null},gu=function(ee){var te=ee.state,ae=ee.dragStartTime,ue=ee.shouldUseTimeDampening,ce=ee.scrollWindow,me=ee.scrollDroppable,ve=te.current.page.borderBoxCenter,pe=te.dimensions.draggables[te.critical.draggable.id],we=pe.page.marginBox;if(te.isWindowScrollAllowed){var Ze=te.viewport,ze=Vo({dragStartTime:ae,viewport:Ze,subject:we,center:ve,shouldUseTimeDampening:ue});if(ze){ce(ze);return}}var Ne=So({center:ve,destination:so(te.impact),droppables:te.dimensions.droppables});if(Ne){var Te=Qo({dragStartTime:ae,droppable:Ne,subject:we,center:ve,shouldUseTimeDampening:ue});Te&&me(Ne.descriptor.id,Te)}},mu=function(ee){var te=ee.scrollWindow,ae=ee.scrollDroppable,ue=An(te),ce=An(ae),me=null,ve=function(ze){me||tt(!1);var Ne=me,Te=Ne.shouldUseTimeDampening,qe=Ne.dragStartTime;gu({state:ze,scrollWindow:ue,scrollDroppable:ce,dragStartTime:qe,shouldUseTimeDampening:Te})},pe=function(ze){Mo(),me&&tt(!1);var Ne=Date.now(),Te=!1,qe=function(){Te=!0};gu({state:ze,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:qe,scrollDroppable:qe}),me={dragStartTime:Ne,shouldUseTimeDampening:Te},Yo(),Te&&ve(ze)},we=function(){me&&(ue.cancel(),ce.cancel(),me=null)};return{start:pe,stop:we,scroll:ve}},fu=function(ee){var te=ee.move,ae=ee.scrollDroppable,ue=ee.scrollWindow,ce=function(Ze,ze){var Ne=Vt(Ze.current.client.selection,ze);te({client:Ne})},me=function(Ze,ze){if(!Do(Ze,ze))return ze;var Ne=oo(Ze,ze);if(!Ne)return ae(Ze.descriptor.id,ze),null;var Te=wa(ze,Ne);ae(Ze.descriptor.id,Te);var qe=wa(ze,Te);return qe},ve=function(Ze,ze,Ne){if(!Ze||!Fo(ze,Ne))return Ne;var Te=Oi(ze,Ne);if(!Te)return ue(Ne),null;var qe=wa(Ne,Te);ue(qe);var Pt=wa(Ne,qe);return Pt},pe=function(Ze){var ze=Ze.scrollJumpRequest;if(ze){var Ne=so(Ze.impact);Ne||tt(!1);var Te=me(Ze.dimensions.droppables[Ne],ze);if(Te){var qe=Ze.viewport,Pt=ve(Ze.isWindowScrollAllowed,qe,Te);Pt&&ce(Ze,Pt)}}};return pe},ko=function(ee){var te=ee.scrollDroppable,ae=ee.scrollWindow,ue=ee.move,ce=mu({scrollWindow:ae,scrollDroppable:te}),me=fu({move:ue,scrollWindow:ae,scrollDroppable:te}),ve=function(Ze){if(Ze.phase==="DRAGGING"){if(Ze.movementMode==="FLUID"){ce.scroll(Ze);return}Ze.scrollJumpRequest&&me(Ze)}},pe={scroll:ve,start:ce.start,stop:ce.stop};return pe},$o="data-rbd",ei=function(){var ee=$o+"-drag-handle";return{base:ee,draggableId:ee+"-draggable-id",contextId:ee+"-context-id"}}(),Mi=function(){var ee=$o+"-draggable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),vu=function(){var ee=$o+"-droppable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),Ri={contextId:$o+"-scroll-container-context-id"},Bo=function(te){return function(ae){return"["+ae+'="'+te+'"]'}},li=function(te,ae){return te.map(function(ue){var ce=ue.styles[ae];return ce?ue.selector+" { "+ce+" }":""}).join(" ")},sl="pointer-events: none;",pu=function(ee){var te=Bo(ee),ae=function(){var pe=` + `+tr(te.source)+` + `},Tt={dragHandleUsageInstructions:Mn,onDragStart:Vn,onDragUpdate:er,onDragEnd:gr},Da={x:0,y:0},Qt=function(te,ae){return{x:te.x+ae.x,y:te.y+ae.y}},xa=function(te,ae){return{x:te.x-ae.x,y:te.y-ae.y}},pa=function(te,ae){return te.x===ae.x&&te.y===ae.y},Xt=function(te){return{x:te.x!==0?-te.x:0,y:te.y!==0?-te.y:0}},Dn=function(te,ae,ue){var ce;return ue===void 0&&(ue=0),ce={},ce[te]=ae,ce[te==="x"?"y":"x"]=ue,ce},ea=function(te,ae){return Math.sqrt(Math.pow(ae.x-te.x,2)+Math.pow(ae.y-te.y,2))},yn=function(te,ae){return Math.min.apply(Math,ae.map(function(ue){return ea(te,ue)}))},Ra=function(te){return function(ae){return{x:te(ae.x),y:te(ae.y)}}},Pa=function(ee,te){var ae=ra({top:Math.max(te.top,ee.top),right:Math.min(te.right,ee.right),bottom:Math.min(te.bottom,ee.bottom),left:Math.max(te.left,ee.left)});return ae.width<=0||ae.height<=0?null:ae},Va=function(te,ae){return{top:te.top+ae.y,left:te.left+ae.x,bottom:te.bottom+ae.y,right:te.right+ae.x}},cr=function(te){return[{x:te.left,y:te.top},{x:te.right,y:te.top},{x:te.left,y:te.bottom},{x:te.right,y:te.bottom}]},Ar={top:0,right:0,bottom:0,left:0},Mr=function(te,ae){return ae?Va(te,ae.scroll.diff.displacement):te},Pr=function(te,ae,ue){if(ue&&ue.increasedBy){var ce;return(0,Ie.Z)({},te,(ce={},ce[ae.end]=te[ae.end]+ue.increasedBy[ae.line],ce))}return te},Jr=function(te,ae){return ae&&ae.shouldClipSubject?Pa(ae.pageMarginBox,te):ra(te)},Xa=function(ee){var te=ee.page,ae=ee.withPlaceholder,ue=ee.axis,ce=ee.frame,me=Mr(te.marginBox,ce),ve=Pr(me,ue,ae),pe=Jr(ve,ce);return{page:te,withPlaceholder:ae,active:pe}},qa=function(ee,te){ee.frame||tt(!1);var ae=ee.frame,ue=xa(te,ae.scroll.initial),ce=Xt(ue),me=(0,Ie.Z)({},ae,{scroll:{initial:ae.scroll.initial,current:te,diff:{value:ue,displacement:ce},max:ae.scroll.max}}),ve=Xa({page:ee.subject.page,withPlaceholder:ee.subject.withPlaceholder,axis:ee.axis,frame:me}),pe=(0,Ie.Z)({},ee,{frame:me,subject:ve});return pe};function pr(ee){return Number.isInteger?Number.isInteger(ee):typeof ee=="number"&&isFinite(ee)&&Math.floor(ee)===ee}function fa(ee){return Object.values?Object.values(ee):Object.keys(ee).map(function(te){return ee[te]})}function ur(ee,te){if(ee.findIndex)return ee.findIndex(te);for(var ae=0;aeee.bottom,Ze=ue.leftee.right,ze=we&&Ze;if(ze)return!0;var Ne=we&&ve||Ze&&me;return Ne}},Gr=function(ee){var te=Qa(ee.top,ee.bottom),ae=Qa(ee.left,ee.right);return function(ue){var ce=te(ue.top)&&te(ue.bottom)&&ae(ue.left)&&ae(ue.right);return ce}},nr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},fr={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Dr=function(ee){return function(te){var ae=Qa(te.top,te.bottom),ue=Qa(te.left,te.right);return function(ce){return ee===nr?ae(ce.top)&&ae(ce.bottom):ue(ce.left)&&ue(ce.right)}}},Gn=function(te,ae){var ue=ae.frame?ae.frame.scroll.diff.displacement:Da;return Va(te,ue)},rn=function(te,ae,ue){return ae.subject.active?ue(ae.subject.active)(te):!1},Lt=function(te,ae,ue){return ue(ae)(te)},de=function(te){var ae=te.target,ue=te.destination,ce=te.viewport,me=te.withDroppableDisplacement,ve=te.isVisibleThroughFrameFn,pe=me?Gn(ae,ue):ae;return rn(pe,ue,ve)&&Lt(pe,ce,ve)},$e=function(te){return de((0,Ie.Z)({},te,{isVisibleThroughFrameFn:hr}))},st=function(te){return de((0,Ie.Z)({},te,{isVisibleThroughFrameFn:Gr}))},Ht=function(te){return de((0,Ie.Z)({},te,{isVisibleThroughFrameFn:Dr(te.destination.axis)}))},at=function(te,ae,ue){if(typeof ue=="boolean")return ue;if(!ae)return!0;var ce=ae.invisible,me=ae.visible;if(ce[te])return!1;var ve=me[te];return ve?ve.shouldAnimate:!0};function an(ee,te){var ae=ee.page.marginBox,ue={top:te.point.y,right:0,bottom:0,left:te.point.x};return ra(Ka(ae,ue))}function qt(ee){var te=ee.afterDragging,ae=ee.destination,ue=ee.displacedBy,ce=ee.viewport,me=ee.forceShouldAnimate,ve=ee.last;return te.reduce(function(we,Ze){var ze=an(Ze,ue),Ne=Ze.descriptor.id;we.all.push(Ne);var Te=$e({target:ze,destination:ae,viewport:ce,withDroppableDisplacement:!0});if(!Te)return we.invisible[Ze.descriptor.id]=!0,we;var qe=at(Ne,ve,me),Pt={draggableId:Ne,shouldAnimate:qe};return we.visible[Ne]=Pt,we},{all:[],visible:{},invisible:{}})}function Yt(ee,te){if(!ee.length)return 0;var ae=ee[ee.length-1].descriptor.index;return te.inHomeList?ae:ae+1}function _t(ee){var te=ee.insideDestination,ae=ee.inHomeList,ue=ee.displacedBy,ce=ee.destination,me=Yt(te,{inHomeList:ae});return{displaced:Ta,displacedBy:ue,at:{type:"REORDER",destination:{droppableId:ce.descriptor.id,index:me}}}}function ia(ee){var te=ee.draggable,ae=ee.insideDestination,ue=ee.destination,ce=ee.viewport,me=ee.displacedBy,ve=ee.last,pe=ee.index,we=ee.forceShouldAnimate,Ze=Aa(te,ue);if(pe==null)return _t({insideDestination:ae,inHomeList:Ze,displacedBy:me,destination:ue});var ze=mr(ae,function(Nn){return Nn.descriptor.index===pe});if(!ze)return _t({insideDestination:ae,inHomeList:Ze,displacedBy:me,destination:ue});var Ne=nn(te,ae),Te=ae.indexOf(ze),qe=Ne.slice(Te),Pt=qt({afterDragging:qe,destination:ue,displacedBy:me,last:ve,viewport:ce.frame,forceShouldAnimate:we});return{displaced:Pt,displacedBy:me,at:{type:"REORDER",destination:{droppableId:ue.descriptor.id,index:pe}}}}function za(ee,te){return!!te.effected[ee]}var Wa=function(ee){var te=ee.isMovingForward,ae=ee.destination,ue=ee.draggables,ce=ee.combine,me=ee.afterCritical;if(!ae.isCombineEnabled)return null;var ve=ce.draggableId,pe=ue[ve],we=pe.descriptor.index,Ze=za(ve,me);return Ze?te?we:we-1:te?we+1:we},pn=function(ee){var te=ee.isMovingForward,ae=ee.isInHomeList,ue=ee.insideDestination,ce=ee.location;if(!ue.length)return null;var me=ce.index,ve=te?me+1:me-1,pe=ue[0].descriptor.index,we=ue[ue.length-1].descriptor.index,Ze=ae?we:we+1;return veZe?null:ve},Ia=function(ee){var te=ee.isMovingForward,ae=ee.isInHomeList,ue=ee.draggable,ce=ee.draggables,me=ee.destination,ve=ee.insideDestination,pe=ee.previousImpact,we=ee.viewport,Ze=ee.afterCritical,ze=pe.at;if(ze||tt(!1),ze.type==="REORDER"){var Ne=pn({isMovingForward:te,isInHomeList:ae,location:ze.destination,insideDestination:ve});return Ne==null?null:ia({draggable:ue,insideDestination:ve,destination:me,viewport:we,last:pe.displaced,displacedBy:pe.displacedBy,index:Ne})}var Te=Wa({isMovingForward:te,destination:me,displaced:pe.displaced,draggables:ce,combine:ze.combine,afterCritical:Ze});return Te==null?null:ia({draggable:ue,insideDestination:ve,destination:me,viewport:we,last:pe.displaced,displacedBy:pe.displacedBy,index:Te})},Ca=function(ee){var te=ee.displaced,ae=ee.afterCritical,ue=ee.combineWith,ce=ee.displacedBy,me=!!(te.visible[ue]||te.invisible[ue]);return za(ue,ae)?me?Da:Xt(ce.point):me?ce.point:Da},ja=function(ee){var te=ee.afterCritical,ae=ee.impact,ue=ee.draggables,ce=La(ae);ce||tt(!1);var me=ce.draggableId,ve=ue[me].page.borderBox.center,pe=Ca({displaced:ae.displaced,afterCritical:te,combineWith:me,displacedBy:ae.displacedBy});return Qt(ve,pe)},Ir=function(te,ae){return ae.margin[te.start]+ae.borderBox[te.size]/2},Qr=function(te,ae){return ae.margin[te.end]+ae.borderBox[te.size]/2},Rr=function(te,ae,ue){return ae[te.crossAxisStart]+ue.margin[te.crossAxisStart]+ue.borderBox[te.crossAxisSize]/2},Wr=function(te){var ae=te.axis,ue=te.moveRelativeTo,ce=te.isMoving;return Dn(ae.line,ue.marginBox[ae.end]+Ir(ae,ce),Rr(ae,ue.marginBox,ce))},jr=function(te){var ae=te.axis,ue=te.moveRelativeTo,ce=te.isMoving;return Dn(ae.line,ue.marginBox[ae.start]-Qr(ae,ce),Rr(ae,ue.marginBox,ce))},Zr=function(te){var ae=te.axis,ue=te.moveInto,ce=te.isMoving;return Dn(ae.line,ue.contentBox[ae.start]+Ir(ae,ce),Rr(ae,ue.contentBox,ce))},Co=function(ee){var te=ee.impact,ae=ee.draggable,ue=ee.draggables,ce=ee.droppable,me=ee.afterCritical,ve=cn(ce.descriptor.id,ue),pe=ae.page,we=ce.axis;if(!ve.length)return Zr({axis:we,moveInto:ce.page,isMoving:pe});var Ze=te.displaced,ze=te.displacedBy,Ne=Ze.all[0];if(Ne){var Te=ue[Ne];if(za(Ne,me))return jr({axis:we,moveRelativeTo:Te.page,isMoving:pe});var qe=At(Te.page,ze.point);return jr({axis:we,moveRelativeTo:qe,isMoving:pe})}var Pt=ve[ve.length-1];if(Pt.descriptor.id===ae.descriptor.id)return pe.borderBox.center;if(za(Pt.descriptor.id,me)){var Nn=At(Pt.page,Xt(me.displacedBy.point));return Wr({axis:we,moveRelativeTo:Nn,isMoving:pe})}return Wr({axis:we,moveRelativeTo:Pt.page,isMoving:pe})},Po=function(ee,te){var ae=ee.frame;return ae?Qt(te,ae.scroll.diff.displacement):te},ho=function(te){var ae=te.impact,ue=te.draggable,ce=te.droppable,me=te.draggables,ve=te.afterCritical,pe=ue.page.borderBox.center,we=ae.at;return!ce||!we?pe:we.type==="REORDER"?Co({impact:ae,draggable:ue,draggables:me,droppable:ce,afterCritical:ve}):ja({impact:ae,draggables:me,afterCritical:ve})},Eo=function(ee){var te=ho(ee),ae=ee.droppable,ue=ae?Po(ae,te):te;return ue},xo=function(ee,te){var ae=xa(te,ee.scroll.initial),ue=Xt(ae),ce=ra({top:te.y,bottom:te.y+ee.frame.height,left:te.x,right:te.x+ee.frame.width}),me={frame:ce,scroll:{initial:ee.scroll.initial,max:ee.scroll.max,current:te,diff:{value:ae,displacement:ue}}};return me};function Hr(ee,te){return ee.map(function(ae){return te[ae]})}function wo(ee,te){for(var ae=0;ae1?ze.sort(function(Ne,Te){return ro(Ne)[pe.start]-ro(Te)[pe.start]})[0]:Ze.sort(function(Ne,Te){var qe=yn(ae,cr(ro(Ne))),Pt=yn(ae,cr(ro(Te)));return qe!==Pt?qe-Pt:ro(Ne)[pe.start]-ro(Te)[pe.start]})[0]},Ko=function(te,ae){var ue=te.page.borderBox.center;return za(te.descriptor.id,ae)?xa(ue,ae.displacedBy.point):ue},Ol=function(te,ae){var ue=te.page.borderBox;return za(te.descriptor.id,ae)?Va(ue,Xt(ae.displacedBy.point)):ue},Nu=function(ee){var te=ee.pageBorderBoxCenter,ae=ee.viewport,ue=ee.destination,ce=ee.insideDestination,me=ee.afterCritical,ve=ce.filter(function(pe){return st({target:Ol(pe,me),destination:ue,viewport:ae.frame,withDroppableDisplacement:!0})}).sort(function(pe,we){var Ze=ea(te,Po(ue,Ko(pe,me))),ze=ea(te,Po(ue,Ko(we,me)));return Zete.left&&ee.topte.top}function Ui(ee){var te=ee.pageBorderBox,ae=ee.draggable,ue=ee.candidates,ce=ae.page.borderBox.center,me=ue.map(function(ve){var pe=ve.axis,we=Dn(ve.axis.line,te.center[pe.line],ve.page.borderBox.center[pe.crossAxisLine]);return{id:ve.descriptor.id,distance:ea(ce,we)}}).sort(function(ve,pe){return pe.distance-ve.distance});return me[0]?me[0].id:null}function Ou(ee){var te=ee.pageBorderBox,ae=ee.draggable,ue=ee.droppables,ce=it(ue).filter(function(me){if(!me.isEnabled)return!1;var ve=me.subject.active;if(!ve||!po(te,ve))return!1;if(no(ve)(te.center))return!0;var pe=me.axis,we=ve.center[pe.crossAxisLine],Ze=te[pe.crossAxisStart],ze=te[pe.crossAxisEnd],Ne=Qa(ve[pe.crossAxisStart],ve[pe.crossAxisEnd]),Te=Ne(Ze),qe=Ne(ze);return!Te&&!qe?!0:Te?Zewe});return ce.length?ce.length===1?ce[0].descriptor.id:Ui({pageBorderBox:te,draggable:ae,candidates:ce}):null}var Ki=function(te,ae){return ra(Va(te,ae))},aa=function(ee,te){var ae=ee.frame;return ae?Ki(te,ae.scroll.diff.value):te};function Yi(ee){var te=ee.displaced,ae=ee.id;return!!(te.visible[ae]||te.invisible[ae])}function Hl(ee){var te=ee.draggable,ae=ee.closest,ue=ee.inHomeList;return ae?ue&&ae.descriptor.index>te.descriptor.index?ae.descriptor.index-1:ae.descriptor.index:null}var In=function(ee){var te=ee.pageBorderBoxWithDroppableScroll,ae=ee.draggable,ue=ee.destination,ce=ee.insideDestination,me=ee.last,ve=ee.viewport,pe=ee.afterCritical,we=ue.axis,Ze=ri(ue.axis,ae.displaceBy),ze=Ze.value,Ne=te[we.start],Te=te[we.end],qe=nn(ae,ce),Pt=mr(qe,function(Zn){var Yn=Zn.descriptor.id,da=Zn.page.borderBox.center[we.line],Fa=za(Yn,pe),Na=Yi({displaced:me,id:Yn});return Fa?Na?Te<=da:NeYn[pe.start]+Fa&&NeYn[pe.start]-Ze+Fa&&zeYn[pe.start]+Ze+Fa&&NeYn[pe.start]+Fa&&ze=se)return ol;var me=ce/se,ve=fi+su*me,pe=ue==="CANCEL"?ve*Se:ve;return Number(pe.toFixed(2))},rt=function(ee){var te=ee.impact,ae=ee.draggable,ue=ee.dimensions,ce=ee.viewport,me=ee.afterCritical,ve=ue.draggables,pe=ue.droppables,we=so(te),Ze=we?pe[we]:null,ze=pe[ae.descriptor.droppableId],Ne=Xi({impact:te,draggable:ae,draggables:ve,afterCritical:me,droppable:Ze||ze,viewport:ce}),Te=xa(Ne,ae.client.borderBox.center);return Te},bn=function(ee){var te=ee.draggables,ae=ee.reason,ue=ee.lastImpact,ce=ee.home,me=ee.viewport,ve=ee.onLiftImpact;if(!ue.at||ae!=="DROP"){var pe=Ji({draggables:te,impact:ve,destination:ce,viewport:me,forceShouldAnimate:!0});return{impact:pe,didDropInsideDroppable:!1}}if(ue.at.type==="REORDER")return{impact:ue,didDropInsideDroppable:!0};var we=(0,Ie.Z)({},ue,{displaced:Ta});return{impact:we,didDropInsideDroppable:!0}},$n=function(ee){var te=ee.getState,ae=ee.dispatch;return function(ue){return function(ce){if(ce.type!=="DROP"){ue(ce);return}var me=te(),ve=ce.payload.reason;if(me.phase==="COLLECTING"){ae(ou({reason:ve}));return}if(me.phase!=="IDLE"){var pe=me.phase==="DROP_PENDING"&&me.isWaiting;pe&&tt(!1),me.phase==="DRAGGING"||me.phase==="DROP_PENDING"||tt(!1);var we=me.critical,Ze=me.dimensions,ze=Ze.draggables[me.critical.draggable.id],Ne=bn({reason:ve,lastImpact:me.impact,afterCritical:me.afterCritical,onLiftImpact:me.onLiftImpact,home:me.dimensions.droppables[me.critical.droppable.id],viewport:me.viewport,draggables:me.dimensions.draggables}),Te=Ne.impact,qe=Ne.didDropInsideDroppable,Pt=qe?ua(Te):null,Nn=qe?La(Te):null,Zn={index:we.draggable.index,droppableId:we.droppable.id},Yn={draggableId:ze.descriptor.id,type:ze.descriptor.type,source:Zn,reason:ve,mode:me.movementMode,destination:Pt,combine:Nn},da=rt({impact:Te,draggable:ze,dimensions:Ze,viewport:me.viewport,afterCritical:me.afterCritical}),Fa={critical:me.critical,afterCritical:me.afterCritical,result:Yn,impact:Te},Na=!pa(me.current.client.offset,da)||!!Yn.combine;if(!Na){ae(wi({completed:Fa}));return}var dr=Ee({current:me.current.client.offset,destination:da,reason:ve}),lr={newHomeClientOffset:da,dropDuration:dr,completed:Fa};ae(ru(lr))}}}},la=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Fn(ee){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ae){ae.target!==window&&ae.target!==window.document||ee()}}}function Ct(ee){var te=ee.onWindowScroll;function ae(){te(la())}var ue=An(ae),ce=Fn(ue),me=Ea;function ve(){return me!==Ea}function pe(){ve()&&tt(!1),me=_n(window,[ce])}function we(){ve()||tt(!1),ue.cancel(),me(),me=Ea}return{start:pe,stop:we,isActive:ve}}var Wt=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},ka=function(ee){var te=Ct({onWindowScroll:function(ue){ee.dispatch(nu({newScroll:ue}))}});return function(ae){return function(ue){!te.isActive()&&ue.type==="INITIAL_PUBLISH"&&te.start(),te.isActive()&&Wt(ue)&&te.stop(),ae(ue)}}},Bt=function(ee){var te=!1,ae=!1,ue=setTimeout(function(){ae=!0}),ce=function(ve){te||ae||(te=!0,ee(ve),clearTimeout(ue))};return ce.wasCalled=function(){return te},ce},hn=function(){var ee=[],te=function(me){var ve=ur(ee,function(Ze){return Ze.timerId===me});ve===-1&&tt(!1);var pe=ee.splice(ve,1),we=pe[0];we.callback()},ae=function(me){var ve=setTimeout(function(){return te(ve)}),pe={timerId:ve,callback:me};ee.push(pe)},ue=function(){if(ee.length){var me=[].concat(ee);ee.length=0,me.forEach(function(ve){clearTimeout(ve.timerId),ve.callback()})}};return{add:ae,flush:ue}},ta=function(te,ae){return te==null&&ae==null?!0:te==null||ae==null?!1:te.droppableId===ae.droppableId&&te.index===ae.index},va=function(te,ae){return te==null&&ae==null?!0:te==null||ae==null?!1:te.draggableId===ae.draggableId&&te.droppableId===ae.droppableId},kn=function(te,ae){if(te===ae)return!0;var ue=te.draggable.id===ae.draggable.id&&te.draggable.droppableId===ae.draggable.droppableId&&te.draggable.type===ae.draggable.type&&te.draggable.index===ae.draggable.index,ce=te.droppable.id===ae.droppable.id&&te.droppable.type===ae.droppable.type;return ue&&ce},en=function(te,ae){Mo(),ae(),Yo()},vn=function(te,ae){return{draggableId:te.draggable.id,type:te.droppable.type,source:{droppableId:te.droppable.id,index:te.draggable.index},mode:ae}},Gt=function(te,ae,ue,ce){if(!te){ue(ce(ae));return}var me=Bt(ue),ve={announce:me};te(ae,ve),me.wasCalled()||ue(ce(ae))},_a=function(ee,te){var ae=hn(),ue=null,ce=function(Te,qe){ue&&tt(!1),en("onBeforeCapture",function(){var Pt=ee().onBeforeCapture;if(Pt){var Nn={draggableId:Te,mode:qe};Pt(Nn)}})},me=function(Te,qe){ue&&tt(!1),en("onBeforeDragStart",function(){var Pt=ee().onBeforeDragStart;Pt&&Pt(vn(Te,qe))})},ve=function(Te,qe){ue&&tt(!1);var Pt=vn(Te,qe);ue={mode:qe,lastCritical:Te,lastLocation:Pt.source,lastCombine:null},ae.add(function(){en("onDragStart",function(){return Gt(ee().onDragStart,Pt,te,Tt.onDragStart)})})},pe=function(Te,qe){var Pt=ua(qe),Nn=La(qe);ue||tt(!1);var Zn=!kn(Te,ue.lastCritical);Zn&&(ue.lastCritical=Te);var Yn=!ta(ue.lastLocation,Pt);Yn&&(ue.lastLocation=Pt);var da=!va(ue.lastCombine,Nn);if(da&&(ue.lastCombine=Nn),!(!Zn&&!Yn&&!da)){var Fa=(0,Ie.Z)({},vn(Te,ue.mode),{combine:Nn,destination:Pt});ae.add(function(){en("onDragUpdate",function(){return Gt(ee().onDragUpdate,Fa,te,Tt.onDragUpdate)})})}},we=function(){ue||tt(!1),ae.flush()},Ze=function(Te){ue||tt(!1),ue=null,en("onDragEnd",function(){return Gt(ee().onDragEnd,Te,te,Tt.onDragEnd)})},ze=function(){if(ue){var Te=(0,Ie.Z)({},vn(ue.lastCritical,ue.mode),{combine:null,destination:null,reason:"CANCEL"});Ze(Te)}};return{beforeCapture:ce,beforeStart:me,start:ve,update:pe,flush:we,drop:Ze,abort:ze}},gn=function(ee,te){var ae=_a(ee,te);return function(ue){return function(ce){return function(me){if(me.type==="BEFORE_INITIAL_CAPTURE"){ae.beforeCapture(me.payload.draggableId,me.payload.movementMode);return}if(me.type==="INITIAL_PUBLISH"){var ve=me.payload.critical;ae.beforeStart(ve,me.payload.movementMode),ce(me),ae.start(ve,me.payload.movementMode);return}if(me.type==="DROP_COMPLETE"){var pe=me.payload.completed.result;ae.flush(),ce(me),ae.drop(pe);return}if(ce(me),me.type==="FLUSH"){ae.abort();return}var we=ue.getState();we.phase==="DRAGGING"&&ae.update(we.critical,we.impact)}}}},na=function(ee){return function(te){return function(ae){if(ae.type!=="DROP_ANIMATION_FINISHED"){te(ae);return}var ue=ee.getState();ue.phase!=="DROP_ANIMATING"&&tt(!1),ee.dispatch(wi({completed:ue.completed}))}}},jt=function(ee){var te=null,ae=null;function ue(){ae&&(cancelAnimationFrame(ae),ae=null),te&&(te(),te=null)}return function(ce){return function(me){if((me.type==="FLUSH"||me.type==="DROP_COMPLETE"||me.type==="DROP_ANIMATION_FINISHED")&&ue(),ce(me),me.type==="DROP_ANIMATE"){var ve={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var we=ee.getState();we.phase==="DROP_ANIMATING"&&ee.dispatch(al())}};ae=requestAnimationFrame(function(){ae=null,te=_n(window,[ve])})}}}},$a=function(ee){return function(){return function(te){return function(ae){(ae.type==="DROP_COMPLETE"||ae.type==="FLUSH"||ae.type==="DROP_ANIMATE")&&ee.stopPublishing(),te(ae)}}}},Cr=function(ee){var te=!1;return function(){return function(ae){return function(ue){if(ue.type==="INITIAL_PUBLISH"){te=!0,ee.tryRecordFocus(ue.payload.critical.draggable.id),ae(ue),ee.tryRestoreFocusRecorded();return}if(ae(ue),!!te){if(ue.type==="FLUSH"){te=!1,ee.tryRestoreFocusRecorded();return}if(ue.type==="DROP_COMPLETE"){te=!1;var ce=ue.payload.completed.result;ce.combine&&ee.tryShiftRecord(ce.draggableId,ce.combine.draggableId),ee.tryRestoreFocusRecorded()}}}}}},vr=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},Sr=function(ee){return function(te){return function(ae){return function(ue){if(vr(ue)){ee.stop(),ae(ue);return}if(ue.type==="INITIAL_PUBLISH"){ae(ue);var ce=te.getState();ce.phase!=="DRAGGING"&&tt(!1),ee.start(ce);return}ae(ue),ee.scroll(te.getState())}}}},zn=function(ee){return function(te){return function(ae){if(te(ae),ae.type==="PUBLISH_WHILE_DRAGGING"){var ue=ee.getState();ue.phase==="DROP_PENDING"&&(ue.isWaiting||ee.dispatch(Di({reason:ue.reason})))}}}},sr=be.qC,zr=function(ee){var te=ee.dimensionMarshal,ae=ee.focusMarshal,ue=ee.styleMarshal,ce=ee.getResponders,me=ee.announce,ve=ee.autoScroller;return(0,be.MT)(Jl,sr((0,be.md)(uu(ue),$a(te),lu(te),$n,na,jt,zn,Sr(ve),ka,Cr(ae),gn(ce,me))))},Vr=function(){return{additions:{},removals:{},modified:{}}};function $r(ee){var te=ee.registry,ae=ee.callbacks,ue=Vr(),ce=null,me=function(){ce||(ae.collectionStarting(),ce=requestAnimationFrame(function(){ce=null,Mo();var ze=ue,Ne=ze.additions,Te=ze.removals,qe=ze.modified,Pt=Object.keys(Ne).map(function(Yn){return te.draggable.getById(Yn).getDimension(Da)}).sort(function(Yn,da){return Yn.descriptor.index-da.descriptor.index}),Nn=Object.keys(qe).map(function(Yn){var da=te.droppable.getById(Yn),Fa=da.callbacks.getScrollWhileDragging();return{droppableId:Yn,scroll:Fa}}),Zn={additions:Pt,removals:Object.keys(Te),modified:Nn};ue=Vr(),Yo(),ae.publish(Zn)}))},ve=function(ze){var Ne=ze.descriptor.id;ue.additions[Ne]=ze,ue.modified[ze.descriptor.droppableId]=!0,ue.removals[Ne]&&delete ue.removals[Ne],me()},pe=function(ze){var Ne=ze.descriptor;ue.removals[Ne.id]=!0,ue.modified[Ne.droppableId]=!0,ue.additions[Ne.id]&&delete ue.additions[Ne.id],me()},we=function(){ce&&(cancelAnimationFrame(ce),ce=null,ue=Vr())};return{add:ve,remove:pe,stop:we}}var yr=function(ee){var te=ee.scrollHeight,ae=ee.scrollWidth,ue=ee.height,ce=ee.width,me=xa({x:ae,y:te},{x:ce,y:ue}),ve={x:Math.max(0,me.x),y:Math.max(0,me.y)};return ve},xr=function(){var ee=document.documentElement;return ee||tt(!1),ee},Tr=function(){var ee=xr(),te=yr({scrollHeight:ee.scrollHeight,scrollWidth:ee.scrollWidth,width:ee.clientWidth,height:ee.clientHeight});return te},or=function(){var ee=la(),te=Tr(),ae=ee.y,ue=ee.x,ce=xr(),me=ce.clientWidth,ve=ce.clientHeight,pe=ue+me,we=ae+ve,Ze=ra({top:ae,left:ue,right:pe,bottom:we}),ze={frame:Ze,scroll:{initial:ee,current:ee,max:te,diff:{value:Da,displacement:Da}}};return ze},Nr=function(ee){var te=ee.critical,ae=ee.scrollOptions,ue=ee.registry;Mo();var ce=or(),me=ce.scroll.current,ve=te.droppable,pe=ue.droppable.getAllByType(ve.type).map(function(Ne){return Ne.callbacks.getDimensionAndWatchScroll(me,ae)}),we=ue.draggable.getAllByType(te.draggable.type).map(function(Ne){return Ne.getDimension(me)}),Ze={draggables:mt(we),droppables:ar(pe)};Yo();var ze={dimensions:Ze,critical:te,viewport:ce};return ze};function Or(ee,te,ae){if(ae.descriptor.id===te.id||ae.descriptor.type!==te.type)return!1;var ue=ee.droppable.getById(ae.descriptor.droppableId);return ue.descriptor.mode==="virtual"}var Ur=function(ee,te){var ae=null,ue=$r({callbacks:{publish:te.publishWhileDragging,collectionStarting:te.collectionStarting},registry:ee}),ce=function(qe,Pt){ee.droppable.exists(qe)||tt(!1),ae&&te.updateDroppableIsEnabled({id:qe,isEnabled:Pt})},me=function(qe,Pt){ae&&(ee.droppable.exists(qe)||tt(!1),te.updateDroppableIsCombineEnabled({id:qe,isCombineEnabled:Pt}))},ve=function(qe,Pt){ae&&(ee.droppable.exists(qe)||tt(!1),te.updateDroppableScroll({id:qe,newScroll:Pt}))},pe=function(qe,Pt){ae&&ee.droppable.getById(qe).callbacks.scroll(Pt)},we=function(){if(ae){ue.stop();var qe=ae.critical.droppable;ee.droppable.getAllByType(qe.type).forEach(function(Pt){return Pt.callbacks.dragStopped()}),ae.unsubscribe(),ae=null}},Ze=function(qe){ae||tt(!1);var Pt=ae.critical.draggable;qe.type==="ADDITION"&&Or(ee,Pt,qe.value)&&ue.add(qe.value),qe.type==="REMOVAL"&&Or(ee,Pt,qe.value)&&ue.remove(qe.value)},ze=function(qe){ae&&tt(!1);var Pt=ee.draggable.getById(qe.draggableId),Nn=ee.droppable.getById(Pt.descriptor.droppableId),Zn={draggable:Pt.descriptor,droppable:Nn.descriptor},Yn=ee.subscribe(Ze);return ae={critical:Zn,unsubscribe:Yn},Nr({critical:Zn,registry:ee,scrollOptions:qe.scrollOptions})},Ne={updateDroppableIsEnabled:ce,updateDroppableIsCombineEnabled:me,scrollDroppable:pe,updateDroppableScroll:ve,startPublishing:ze,stopPublishing:we};return Ne},eo=function(ee,te){return ee.phase==="IDLE"?!0:ee.phase!=="DROP_ANIMATING"||ee.completed.result.draggableId===te?!1:ee.completed.result.reason==="DROP"},mo=function(ee){window.scrollBy(ee.x,ee.y)},fo=Rt(function(ee){return it(ee).filter(function(te){return!(!te.isEnabled||!te.frame)})}),Ao=function(te,ae){var ue=mr(fo(ae),function(ce){return ce.frame||tt(!1),no(ce.frame.pageMarginBox)(te)});return ue},So=function(ee){var te=ee.center,ae=ee.destination,ue=ee.droppables;if(ae){var ce=ue[ae];return ce.frame?ce:null}var me=Ao(te,ue);return me},yo={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(te){return Math.pow(te,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},ii=function(ee,te){var ae=ee[te.size]*yo.startFromPercentage,ue=ee[te.size]*yo.maxScrollAtPercentage,ce={startScrollingFrom:ae,maxScrollValueAt:ue};return ce},Ii=function(ee){var te=ee.startOfRange,ae=ee.endOfRange,ue=ee.current,ce=ae-te;if(ce===0)return 0;var me=ue-te,ve=me/ce;return ve},vi=1,Ru=function(ee,te){if(ee>te.startScrollingFrom)return 0;if(ee<=te.maxScrollValueAt)return yo.maxPixelScroll;if(ee===te.startScrollingFrom)return vi;var ae=Ii({startOfRange:te.maxScrollValueAt,endOfRange:te.startScrollingFrom,current:ee}),ue=1-ae,ce=yo.maxPixelScroll*yo.ease(ue);return Math.ceil(ce)},du=yo.durationDampening.accelerateAt,il=yo.durationDampening.stopDampeningAt,ll=function(ee,te){var ae=te,ue=il,ce=Date.now(),me=ce-ae;if(me>=il)return ee;if(mete.height,me=ae.width>te.width;return!me&&!ce?ue:me&&ce?null:{x:me?0:ue.x,y:ce?0:ue.y}},cu=Ra(function(ee){return ee===0?0:ee}),to=function(ee){var te=ee.dragStartTime,ae=ee.container,ue=ee.subject,ce=ee.center,me=ee.shouldUseTimeDampening,ve={top:ce.y-ae.top,right:ae.right-ce.x,bottom:ae.bottom-ce.y,left:ce.x-ae.left},pe=ul({container:ae,distanceToEdges:ve,dragStartTime:te,axis:nr,shouldUseTimeDampening:me}),we=ul({container:ae,distanceToEdges:ve,dragStartTime:te,axis:fr,shouldUseTimeDampening:me}),Ze=cu({x:we,y:pe});if(pa(Ze,Da))return null;var ze=pi({container:ae,subject:ue,proposedScroll:Ze});return ze?pa(ze,Da)?null:ze:null},hi=Ra(function(ee){return ee===0?0:ee>0?1:-1}),_o=function(){var ee=function(ae,ue){return ae<0?ae:ae>ue?ae-ue:0};return function(te){var ae=te.current,ue=te.max,ce=te.change,me=Qt(ae,ce),ve={x:ee(me.x,ue.x),y:ee(me.y,ue.y)};return pa(ve,Da)?null:ve}}(),Ni=function(te){var ae=te.max,ue=te.current,ce=te.change,me={x:Math.max(ue.x,ae.x),y:Math.max(ue.y,ae.y)},ve=hi(ce),pe=_o({max:me,current:ue,change:ve});return!pe||ve.x!==0&&pe.x===0||ve.y!==0&&pe.y===0},Fo=function(te,ae){return Ni({current:te.scroll.current,max:te.scroll.max,change:ae})},Oi=function(te,ae){if(!Fo(te,ae))return null;var ue=te.scroll.max,ce=te.scroll.current;return _o({current:ce,max:ue,change:ae})},Do=function(te,ae){var ue=te.frame;return ue?Ni({current:ue.scroll.current,max:ue.scroll.max,change:ae}):!1},oo=function(te,ae){var ue=te.frame;return!ue||!Do(te,ae)?null:_o({current:ue.scroll.current,max:ue.scroll.max,change:ae})},Vo=function(ee){var te=ee.viewport,ae=ee.subject,ue=ee.center,ce=ee.dragStartTime,me=ee.shouldUseTimeDampening,ve=to({dragStartTime:ce,container:te.frame,subject:ae,center:ue,shouldUseTimeDampening:me});return ve&&Fo(te,ve)?ve:null},Qo=function(ee){var te=ee.droppable,ae=ee.subject,ue=ee.center,ce=ee.dragStartTime,me=ee.shouldUseTimeDampening,ve=te.frame;if(!ve)return null;var pe=to({dragStartTime:ce,container:ve.pageMarginBox,subject:ae,center:ue,shouldUseTimeDampening:me});return pe&&Do(te,pe)?pe:null},gu=function(ee){var te=ee.state,ae=ee.dragStartTime,ue=ee.shouldUseTimeDampening,ce=ee.scrollWindow,me=ee.scrollDroppable,ve=te.current.page.borderBoxCenter,pe=te.dimensions.draggables[te.critical.draggable.id],we=pe.page.marginBox;if(te.isWindowScrollAllowed){var Ze=te.viewport,ze=Vo({dragStartTime:ae,viewport:Ze,subject:we,center:ve,shouldUseTimeDampening:ue});if(ze){ce(ze);return}}var Ne=So({center:ve,destination:so(te.impact),droppables:te.dimensions.droppables});if(Ne){var Te=Qo({dragStartTime:ae,droppable:Ne,subject:we,center:ve,shouldUseTimeDampening:ue});Te&&me(Ne.descriptor.id,Te)}},mu=function(ee){var te=ee.scrollWindow,ae=ee.scrollDroppable,ue=An(te),ce=An(ae),me=null,ve=function(ze){me||tt(!1);var Ne=me,Te=Ne.shouldUseTimeDampening,qe=Ne.dragStartTime;gu({state:ze,scrollWindow:ue,scrollDroppable:ce,dragStartTime:qe,shouldUseTimeDampening:Te})},pe=function(ze){Mo(),me&&tt(!1);var Ne=Date.now(),Te=!1,qe=function(){Te=!0};gu({state:ze,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:qe,scrollDroppable:qe}),me={dragStartTime:Ne,shouldUseTimeDampening:Te},Yo(),Te&&ve(ze)},we=function(){me&&(ue.cancel(),ce.cancel(),me=null)};return{start:pe,stop:we,scroll:ve}},fu=function(ee){var te=ee.move,ae=ee.scrollDroppable,ue=ee.scrollWindow,ce=function(Ze,ze){var Ne=Qt(Ze.current.client.selection,ze);te({client:Ne})},me=function(Ze,ze){if(!Do(Ze,ze))return ze;var Ne=oo(Ze,ze);if(!Ne)return ae(Ze.descriptor.id,ze),null;var Te=xa(ze,Ne);ae(Ze.descriptor.id,Te);var qe=xa(ze,Te);return qe},ve=function(Ze,ze,Ne){if(!Ze||!Fo(ze,Ne))return Ne;var Te=Oi(ze,Ne);if(!Te)return ue(Ne),null;var qe=xa(Ne,Te);ue(qe);var Pt=xa(Ne,qe);return Pt},pe=function(Ze){var ze=Ze.scrollJumpRequest;if(ze){var Ne=so(Ze.impact);Ne||tt(!1);var Te=me(Ze.dimensions.droppables[Ne],ze);if(Te){var qe=Ze.viewport,Pt=ve(Ze.isWindowScrollAllowed,qe,Te);Pt&&ce(Ze,Pt)}}};return pe},ko=function(ee){var te=ee.scrollDroppable,ae=ee.scrollWindow,ue=ee.move,ce=mu({scrollWindow:ae,scrollDroppable:te}),me=fu({move:ue,scrollWindow:ae,scrollDroppable:te}),ve=function(Ze){if(Ze.phase==="DRAGGING"){if(Ze.movementMode==="FLUID"){ce.scroll(Ze);return}Ze.scrollJumpRequest&&me(Ze)}},pe={scroll:ve,start:ce.start,stop:ce.stop};return pe},$o="data-rbd",ei=function(){var ee=$o+"-drag-handle";return{base:ee,draggableId:ee+"-draggable-id",contextId:ee+"-context-id"}}(),Mi=function(){var ee=$o+"-draggable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),vu=function(){var ee=$o+"-droppable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),Ri={contextId:$o+"-scroll-container-context-id"},Bo=function(te){return function(ae){return"["+ae+'="'+te+'"]'}},li=function(te,ae){return te.map(function(ue){var ce=ue.styles[ae];return ce?ue.selector+" { "+ce+" }":""}).join(" ")},sl="pointer-events: none;",pu=function(ee){var te=Bo(ee),ae=function(){var pe=` cursor: -webkit-grab; cursor: grab; `;return{selector:te(ei.contextId),styles:{always:` @@ -337,9 +337,9 @@ The error may be correlated with this previous error: -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; - `}},ve=[ue,ae,ce,me];return{always:li(ve,"always"),resting:li(ve,"resting"),dragging:li(ve,"dragging"),dropAnimating:li(ve,"dropAnimating"),userCancel:li(ve,"userCancel")}},Pn=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect,ha=function(){var te=document.querySelector("head");return te||tt(!1),te},or=function(te){var ae=document.createElement("style");return te&&ae.setAttribute("nonce",te),ae.type="text/css",ae};function Pr(ee,te){var ae=en(function(){return pu(ee)},[ee]),ue=(0,b.useRef)(null),ce=(0,b.useRef)(null),me=ht(Tt(function(Ne){var Te=ce.current;Te||tt(!1),Te.textContent=Ne}),[]),ve=ht(function(Ne){var Te=ue.current;Te||tt(!1),Te.textContent=Ne},[]);Pn(function(){!ue.current&&!ce.current||tt(!1);var Ne=or(te),Te=or(te);return ue.current=Ne,ce.current=Te,Ne.setAttribute($o+"-always",ee),Te.setAttribute($o+"-dynamic",ee),ha().appendChild(Ne),ha().appendChild(Te),ve(ae.always),me(ae.resting),function(){var qe=function(On){var Zn=On.current;Zn||tt(!1),ha().removeChild(Zn),On.current=null};qe(ue),qe(ce)}},[te,ve,me,ae.always,ae.resting,ee]);var pe=ht(function(){return me(ae.dragging)},[me,ae.dragging]),we=ht(function(Ne){if(Ne==="DROP"){me(ae.dropAnimating);return}me(ae.userCancel)},[me,ae.dropAnimating,ae.userCancel]),Ze=ht(function(){ce.current&&me(ae.resting)},[me,ae.resting]),ze=en(function(){return{dragging:pe,dropping:we,resting:Ze}},[pe,we,Ze]);return ze}var wr=function(ee){return ee&&ee.ownerDocument?ee.ownerDocument.defaultView:window};function kr(ee){return ee instanceof wr(ee).HTMLElement}function Lr(ee,te){var ae="["+ei.contextId+'="'+ee+'"]',ue=Ga(document.querySelectorAll(ae));if(!ue.length)return null;var ce=mr(ue,function(me){return me.getAttribute(ei.draggableId)===te});return!ce||!kr(ce)?null:ce}function vo(ee){var te=(0,b.useRef)({}),ae=(0,b.useRef)(null),ue=(0,b.useRef)(null),ce=(0,b.useRef)(!1),me=ht(function(Te,qe){var Pt={id:Te,focus:qe};return te.current[Te]=Pt,function(){var Zn=te.current,Yn=Zn[Te];Yn!==Pt&&delete Zn[Te]}},[]),ve=ht(function(Te){var qe=Lr(ee,Te);qe&&qe!==document.activeElement&&qe.focus()},[ee]),pe=ht(function(Te,qe){ae.current===Te&&(ae.current=qe)},[]),we=ht(function(){ue.current||ce.current&&(ue.current=requestAnimationFrame(function(){ue.current=null;var Te=ae.current;Te&&ve(Te)}))},[ve]),Ze=ht(function(Te){ae.current=null;var qe=document.activeElement;qe&&qe.getAttribute(ei.draggableId)===Te&&(ae.current=Te)},[]);Pn(function(){return ce.current=!0,function(){ce.current=!1;var Te=ue.current;Te&&cancelAnimationFrame(Te)}},[]);var ze=en(function(){return{register:me,tryRecordFocus:Ze,tryRestoreFocusRecorded:we,tryShiftRecord:pe}},[me,Ze,we,pe]);return ze}function Go(){var ee={draggables:{},droppables:{}},te=[];function ae(Ne){return te.push(Ne),function(){var qe=te.indexOf(Ne);qe!==-1&&te.splice(qe,1)}}function ue(Ne){te.length&&te.forEach(function(Te){return Te(Ne)})}function ce(Ne){return ee.draggables[Ne]||null}function me(Ne){var Te=ce(Ne);return Te||tt(!1),Te}var ve={register:function(Te){ee.draggables[Te.descriptor.id]=Te,ue({type:"ADDITION",value:Te})},update:function(Te,qe){var Pt=ee.draggables[qe.descriptor.id];Pt&&Pt.uniqueId===Te.uniqueId&&(delete ee.draggables[qe.descriptor.id],ee.draggables[Te.descriptor.id]=Te)},unregister:function(Te){var qe=Te.descriptor.id,Pt=ce(qe);Pt&&Te.uniqueId===Pt.uniqueId&&(delete ee.draggables[qe],ue({type:"REMOVAL",value:Te}))},getById:me,findById:ce,exists:function(Te){return!!ce(Te)},getAllByType:function(Te){return fa(ee.draggables).filter(function(qe){return qe.descriptor.type===Te})}};function pe(Ne){return ee.droppables[Ne]||null}function we(Ne){var Te=pe(Ne);return Te||tt(!1),Te}var Ze={register:function(Te){ee.droppables[Te.descriptor.id]=Te},unregister:function(Te){var qe=pe(Te.descriptor.id);qe&&Te.uniqueId===qe.uniqueId&&delete ee.droppables[Te.descriptor.id]},getById:we,findById:pe,exists:function(Te){return!!pe(Te)},getAllByType:function(Te){return fa(ee.droppables).filter(function(qe){return qe.descriptor.type===Te})}};function ze(){ee.draggables={},ee.droppables={},te.length=0}return{draggable:ve,droppable:Ze,subscribe:ae,clean:ze}}function Ti(){var ee=en(Go,[]);return(0,b.useEffect)(function(){return function(){requestAnimationFrame(ee.clean)}},[ee]),ee}var ti=b.createContext(null),ao=function(){var ee=document.body;return ee||tt(!1),ee},Uo={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Si=function(te){return"rbd-announcement-"+te};function Pi(ee){var te=en(function(){return Si(ee)},[ee]),ae=(0,b.useRef)(null);(0,b.useEffect)(function(){var me=document.createElement("div");return ae.current=me,me.id=te,me.setAttribute("aria-live","assertive"),me.setAttribute("aria-atomic","true"),(0,Ie.Z)(me.style,Uo),ao().appendChild(me),function(){setTimeout(function(){var we=ao();we.contains(me)&&we.removeChild(me),me===ae.current&&(ae.current=null)})}},[te]);var ue=ht(function(ce){var me=ae.current;if(me){me.textContent=ce;return}},[]);return ue}var ki=0,dl={separator:"::"};function cl(){ki=0}function Ei(ee,te){return te===void 0&&(te=dl),en(function(){return""+ee+te.separator+ki++},[te.separator,ee])}function gl(ee){var te=ee.contextId,ae=ee.uniqueId;return"rbd-hidden-text-"+te+"-"+ae}function ml(ee){var te=ee.contextId,ae=ee.text,ue=Ei("hidden-text",{separator:"-"}),ce=en(function(){return gl({contextId:te,uniqueId:ue})},[ue,te]);return(0,b.useEffect)(function(){var ve=document.createElement("div");return ve.id=ce,ve.textContent=ae,ve.style.display="none",ao().appendChild(ve),function(){var we=ao();we.contains(ve)&&we.removeChild(ve)}},[ce,ae]),ce}var ui=b.createContext(null),fl={react:"^16.8.5","react-dom":"^16.8.5"},vl=/(\d+)\.(\d+)\.(\d+)/,Gi=function(te){var ae=vl.exec(te);ae==null&&tt(!1);var ue=Number(ae[1]),ce=Number(ae[2]),me=Number(ae[3]);return{major:ue,minor:ce,patch:me,raw:te}},pl=function(te,ae){return ae.major>te.major?!0:ae.majorte.minor?!0:ae.minor=te.patch},hl=function(ee,te){var ae=Gi(ee),ue=Gi(te);pl(ae,ue)},hu=` + `}},ve=[ue,ae,ce,me];return{always:li(ve,"always"),resting:li(ve,"resting"),dragging:li(ve,"dragging"),dropAnimating:li(ve,"dropAnimating"),userCancel:li(ve,"userCancel")}},Pn=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect,ha=function(){var te=document.querySelector("head");return te||tt(!1),te},ir=function(te){var ae=document.createElement("style");return te&&ae.setAttribute("nonce",te),ae.type="text/css",ae};function Er(ee,te){var ae=tn(function(){return pu(ee)},[ee]),ue=(0,b.useRef)(null),ce=(0,b.useRef)(null),me=ht(Rt(function(Ne){var Te=ce.current;Te||tt(!1),Te.textContent=Ne}),[]),ve=ht(function(Ne){var Te=ue.current;Te||tt(!1),Te.textContent=Ne},[]);Pn(function(){!ue.current&&!ce.current||tt(!1);var Ne=ir(te),Te=ir(te);return ue.current=Ne,ce.current=Te,Ne.setAttribute($o+"-always",ee),Te.setAttribute($o+"-dynamic",ee),ha().appendChild(Ne),ha().appendChild(Te),ve(ae.always),me(ae.resting),function(){var qe=function(Nn){var Zn=Nn.current;Zn||tt(!1),ha().removeChild(Zn),Nn.current=null};qe(ue),qe(ce)}},[te,ve,me,ae.always,ae.resting,ee]);var pe=ht(function(){return me(ae.dragging)},[me,ae.dragging]),we=ht(function(Ne){if(Ne==="DROP"){me(ae.dropAnimating);return}me(ae.userCancel)},[me,ae.dropAnimating,ae.userCancel]),Ze=ht(function(){ce.current&&me(ae.resting)},[me,ae.resting]),ze=tn(function(){return{dragging:pe,dropping:we,resting:Ze}},[pe,we,Ze]);return ze}var wr=function(ee){return ee&&ee.ownerDocument?ee.ownerDocument.defaultView:window};function kr(ee){return ee instanceof wr(ee).HTMLElement}function Lr(ee,te){var ae="["+ei.contextId+'="'+ee+'"]',ue=Ga(document.querySelectorAll(ae));if(!ue.length)return null;var ce=mr(ue,function(me){return me.getAttribute(ei.draggableId)===te});return!ce||!kr(ce)?null:ce}function vo(ee){var te=(0,b.useRef)({}),ae=(0,b.useRef)(null),ue=(0,b.useRef)(null),ce=(0,b.useRef)(!1),me=ht(function(Te,qe){var Pt={id:Te,focus:qe};return te.current[Te]=Pt,function(){var Zn=te.current,Yn=Zn[Te];Yn!==Pt&&delete Zn[Te]}},[]),ve=ht(function(Te){var qe=Lr(ee,Te);qe&&qe!==document.activeElement&&qe.focus()},[ee]),pe=ht(function(Te,qe){ae.current===Te&&(ae.current=qe)},[]),we=ht(function(){ue.current||ce.current&&(ue.current=requestAnimationFrame(function(){ue.current=null;var Te=ae.current;Te&&ve(Te)}))},[ve]),Ze=ht(function(Te){ae.current=null;var qe=document.activeElement;qe&&qe.getAttribute(ei.draggableId)===Te&&(ae.current=Te)},[]);Pn(function(){return ce.current=!0,function(){ce.current=!1;var Te=ue.current;Te&&cancelAnimationFrame(Te)}},[]);var ze=tn(function(){return{register:me,tryRecordFocus:Ze,tryRestoreFocusRecorded:we,tryShiftRecord:pe}},[me,Ze,we,pe]);return ze}function Go(){var ee={draggables:{},droppables:{}},te=[];function ae(Ne){return te.push(Ne),function(){var qe=te.indexOf(Ne);qe!==-1&&te.splice(qe,1)}}function ue(Ne){te.length&&te.forEach(function(Te){return Te(Ne)})}function ce(Ne){return ee.draggables[Ne]||null}function me(Ne){var Te=ce(Ne);return Te||tt(!1),Te}var ve={register:function(Te){ee.draggables[Te.descriptor.id]=Te,ue({type:"ADDITION",value:Te})},update:function(Te,qe){var Pt=ee.draggables[qe.descriptor.id];Pt&&Pt.uniqueId===Te.uniqueId&&(delete ee.draggables[qe.descriptor.id],ee.draggables[Te.descriptor.id]=Te)},unregister:function(Te){var qe=Te.descriptor.id,Pt=ce(qe);Pt&&Te.uniqueId===Pt.uniqueId&&(delete ee.draggables[qe],ue({type:"REMOVAL",value:Te}))},getById:me,findById:ce,exists:function(Te){return!!ce(Te)},getAllByType:function(Te){return fa(ee.draggables).filter(function(qe){return qe.descriptor.type===Te})}};function pe(Ne){return ee.droppables[Ne]||null}function we(Ne){var Te=pe(Ne);return Te||tt(!1),Te}var Ze={register:function(Te){ee.droppables[Te.descriptor.id]=Te},unregister:function(Te){var qe=pe(Te.descriptor.id);qe&&Te.uniqueId===qe.uniqueId&&delete ee.droppables[Te.descriptor.id]},getById:we,findById:pe,exists:function(Te){return!!pe(Te)},getAllByType:function(Te){return fa(ee.droppables).filter(function(qe){return qe.descriptor.type===Te})}};function ze(){ee.draggables={},ee.droppables={},te.length=0}return{draggable:ve,droppable:Ze,subscribe:ae,clean:ze}}function Ti(){var ee=tn(Go,[]);return(0,b.useEffect)(function(){return function(){requestAnimationFrame(ee.clean)}},[ee]),ee}var ti=b.createContext(null),ao=function(){var ee=document.body;return ee||tt(!1),ee},Uo={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Si=function(te){return"rbd-announcement-"+te};function Pi(ee){var te=tn(function(){return Si(ee)},[ee]),ae=(0,b.useRef)(null);(0,b.useEffect)(function(){var me=document.createElement("div");return ae.current=me,me.id=te,me.setAttribute("aria-live","assertive"),me.setAttribute("aria-atomic","true"),(0,Ie.Z)(me.style,Uo),ao().appendChild(me),function(){setTimeout(function(){var we=ao();we.contains(me)&&we.removeChild(me),me===ae.current&&(ae.current=null)})}},[te]);var ue=ht(function(ce){var me=ae.current;if(me){me.textContent=ce;return}},[]);return ue}var ki=0,dl={separator:"::"};function cl(){ki=0}function Ei(ee,te){return te===void 0&&(te=dl),tn(function(){return""+ee+te.separator+ki++},[te.separator,ee])}function gl(ee){var te=ee.contextId,ae=ee.uniqueId;return"rbd-hidden-text-"+te+"-"+ae}function ml(ee){var te=ee.contextId,ae=ee.text,ue=Ei("hidden-text",{separator:"-"}),ce=tn(function(){return gl({contextId:te,uniqueId:ue})},[ue,te]);return(0,b.useEffect)(function(){var ve=document.createElement("div");return ve.id=ce,ve.textContent=ae,ve.style.display="none",ao().appendChild(ve),function(){var we=ao();we.contains(ve)&&we.removeChild(ve)}},[ce,ae]),ce}var ui=b.createContext(null),fl={react:"^16.8.5","react-dom":"^16.8.5"},vl=/(\d+)\.(\d+)\.(\d+)/,Gi=function(te){var ae=vl.exec(te);ae==null&&tt(!1);var ue=Number(ae[1]),ce=Number(ae[2]),me=Number(ae[3]);return{major:ue,minor:ce,patch:me,raw:te}},pl=function(te,ae){return ae.major>te.major?!0:ae.majorte.minor?!0:ae.minor=te.patch},hl=function(ee,te){var ae=Gi(ee),ue=Gi(te);pl(ae,ue)},hu=` 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 -`,Sl=function(ee){var te=ee.doctype;te&&(te.name.toLowerCase(),te.publicId)};function Tu(ee){}function ji(ee,te){}function us(){ji(function(){hl(fl.react,b.version),Sl(document)},[])}function Su(ee){var te=(0,b.useRef)(ee);return(0,b.useEffect)(function(){te.current=ee}),te}function ss(){var ee=null;function te(){return!!ee}function ae(ve){return ve===ee}function ue(ve){ee&&tt(!1);var pe={abandon:ve};return ee=pe,pe}function ce(){ee||tt(!1),ee=null}function me(){ee&&(ee.abandon(),ce())}return{isClaimed:te,isActive:ae,claim:ue,release:ce,tryAbandon:me}}var ds=9,cs=13,Pu=27,ku=32,gs=33,ms=34,fs=35,vs=36,ps=37,hs=38,Ss=39,Ps=40,Pl,Es=(Pl={},Pl[cs]=!0,Pl[ds]=!0,Pl),Gu=function(ee){Es[ee.keyCode]&&ee.preventDefault()},El=function(){var ee="visibilitychange";if(typeof document=="undefined")return ee;var te=[ee,"ms"+ee,"webkit"+ee,"moz"+ee,"o"+ee],ae=mr(te,function(ue){return"on"+ue in document});return ae||ee}(),ju=0,Hu=5;function As(ee,te){return Math.abs(te.x-ee.x)>=Hu||Math.abs(te.y-ee.y)>=Hu}var zu={type:"IDLE"};function ys(ee){var te=ee.cancel,ae=ee.completed,ue=ee.getPhase,ce=ee.setPhase;return[{eventName:"mousemove",fn:function(ve){var pe=ve.button,we=ve.clientX,Ze=ve.clientY;if(pe===ju){var ze={x:we,y:Ze},Ne=ue();if(Ne.type==="DRAGGING"){ve.preventDefault(),Ne.actions.move(ze);return}Ne.type!=="PENDING"&&tt(!1);var Te=Ne.point;if(As(Te,ze)){ve.preventDefault();var qe=Ne.actions.fluidLift(ze);ce({type:"DRAGGING",actions:qe})}}}},{eventName:"mouseup",fn:function(ve){var pe=ue();if(pe.type!=="DRAGGING"){te();return}ve.preventDefault(),pe.actions.drop({shouldBlockNextClick:!0}),ae()}},{eventName:"mousedown",fn:function(ve){ue().type==="DRAGGING"&&ve.preventDefault(),te()}},{eventName:"keydown",fn:function(ve){var pe=ue();if(pe.type==="PENDING"){te();return}if(ve.keyCode===Pu){ve.preventDefault(),te();return}Gu(ve)}},{eventName:"resize",fn:te},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ue().type==="PENDING"&&te()}},{eventName:"webkitmouseforcedown",fn:function(ve){var pe=ue();if(pe.type==="IDLE"&&tt(!1),pe.actions.shouldRespectForcePress()){te();return}ve.preventDefault()}},{eventName:El,fn:te}]}function Fs(ee){var te=(0,b.useRef)(zu),ae=(0,b.useRef)(Ea),ue=en(function(){return{eventName:"mousedown",fn:function(Ne){if(!Ne.defaultPrevented&&Ne.button===ju&&!(Ne.ctrlKey||Ne.metaKey||Ne.shiftKey||Ne.altKey)){var Te=ee.findClosestDraggableId(Ne);if(Te){var qe=ee.tryGetLock(Te,ve,{sourceEvent:Ne});if(qe){Ne.preventDefault();var Pt={x:Ne.clientX,y:Ne.clientY};ae.current(),Ze(qe,Pt)}}}}}},[ee]),ce=en(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Ne){if(!Ne.defaultPrevented){var Te=ee.findClosestDraggableId(Ne);if(Te){var qe=ee.findOptionsForDraggable(Te);qe&&(qe.shouldRespectForcePress||ee.canGetLock(Te)&&Ne.preventDefault())}}}}},[ee]),me=ht(function(){var Ne={passive:!1,capture:!0};ae.current=_n(window,[ce,ue],Ne)},[ce,ue]),ve=ht(function(){var ze=te.current;ze.type!=="IDLE"&&(te.current=zu,ae.current(),me())},[me]),pe=ht(function(){var ze=te.current;ve(),ze.type==="DRAGGING"&&ze.actions.cancel({shouldBlockNextClick:!0}),ze.type==="PENDING"&&ze.actions.abort()},[ve]),we=ht(function(){var Ne={capture:!0,passive:!1},Te=ys({cancel:pe,completed:ve,getPhase:function(){return te.current},setPhase:function(Pt){te.current=Pt}});ae.current=_n(window,Te,Ne)},[pe,ve]),Ze=ht(function(Ne,Te){te.current.type!=="IDLE"&&tt(!1),te.current={type:"PENDING",point:Te,actions:Ne},we()},[we]);Pn(function(){return me(),function(){ae.current()}},[me])}var Ai;function Bs(){}var bs=(Ai={},Ai[ms]=!0,Ai[gs]=!0,Ai[vs]=!0,Ai[fs]=!0,Ai);function Cs(ee,te){function ae(){te(),ee.cancel()}function ue(){te(),ee.drop()}return[{eventName:"keydown",fn:function(me){if(me.keyCode===Pu){me.preventDefault(),ae();return}if(me.keyCode===ku){me.preventDefault(),ue();return}if(me.keyCode===Ps){me.preventDefault(),ee.moveDown();return}if(me.keyCode===hs){me.preventDefault(),ee.moveUp();return}if(me.keyCode===Ss){me.preventDefault(),ee.moveRight();return}if(me.keyCode===ps){me.preventDefault(),ee.moveLeft();return}if(bs[me.keyCode]){me.preventDefault();return}Gu(me)}},{eventName:"mousedown",fn:ae},{eventName:"mouseup",fn:ae},{eventName:"click",fn:ae},{eventName:"touchstart",fn:ae},{eventName:"resize",fn:ae},{eventName:"wheel",fn:ae,options:{passive:!0}},{eventName:El,fn:ae}]}function xs(ee){var te=(0,b.useRef)(Bs),ae=en(function(){return{eventName:"keydown",fn:function(me){if(me.defaultPrevented||me.keyCode!==ku)return;var ve=ee.findClosestDraggableId(me);if(!ve)return;var pe=ee.tryGetLock(ve,ze,{sourceEvent:me});if(!pe)return;me.preventDefault();var we=!0,Ze=pe.snapLift();te.current();function ze(){we||tt(!1),we=!1,te.current(),ue()}te.current=_n(window,Cs(Ze,ze),{capture:!0,passive:!1})}}},[ee]),ue=ht(function(){var me={passive:!1,capture:!0};te.current=_n(window,[ae],me)},[ae]);Pn(function(){return ue(),function(){te.current()}},[ue])}var Eu={type:"IDLE"},ws=120,Ds=.15;function Ls(ee){var te=ee.cancel,ae=ee.getPhase;return[{eventName:"orientationchange",fn:te},{eventName:"resize",fn:te},{eventName:"contextmenu",fn:function(ce){ce.preventDefault()}},{eventName:"keydown",fn:function(ce){if(ae().type!=="DRAGGING"){te();return}ce.keyCode===Pu&&ce.preventDefault(),te()}},{eventName:El,fn:te}]}function Is(ee){var te=ee.cancel,ae=ee.completed,ue=ee.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(me){var ve=ue();if(ve.type!=="DRAGGING"){te();return}ve.hasMoved=!0;var pe=me.touches[0],we=pe.clientX,Ze=pe.clientY,ze={x:we,y:Ze};me.preventDefault(),ve.actions.move(ze)}},{eventName:"touchend",fn:function(me){var ve=ue();if(ve.type!=="DRAGGING"){te();return}me.preventDefault(),ve.actions.drop({shouldBlockNextClick:!0}),ae()}},{eventName:"touchcancel",fn:function(me){if(ue().type!=="DRAGGING"){te();return}me.preventDefault(),te()}},{eventName:"touchforcechange",fn:function(me){var ve=ue();ve.type==="IDLE"&&tt(!1);var pe=me.touches[0];if(pe){var we=pe.force>=Ds;if(we){var Ze=ve.actions.shouldRespectForcePress();if(ve.type==="PENDING"){Ze&&te();return}if(Ze){if(ve.hasMoved){me.preventDefault();return}te();return}me.preventDefault()}}}},{eventName:El,fn:te}]}function Ns(ee){var te=(0,b.useRef)(Eu),ae=(0,b.useRef)(Ea),ue=ht(function(){return te.current},[]),ce=ht(function(qe){te.current=qe},[]),me=en(function(){return{eventName:"touchstart",fn:function(qe){if(!qe.defaultPrevented){var Pt=ee.findClosestDraggableId(qe);if(Pt){var On=ee.tryGetLock(Pt,pe,{sourceEvent:qe});if(On){var Zn=qe.touches[0],Yn=Zn.clientX,da=Zn.clientY,Fa={x:Yn,y:da};ae.current(),Ne(On,Fa)}}}}}},[ee]),ve=ht(function(){var qe={capture:!0,passive:!1};ae.current=_n(window,[me],qe)},[me]),pe=ht(function(){var Te=te.current;Te.type!=="IDLE"&&(Te.type==="PENDING"&&clearTimeout(Te.longPressTimerId),ce(Eu),ae.current(),ve())},[ve,ce]),we=ht(function(){var Te=te.current;pe(),Te.type==="DRAGGING"&&Te.actions.cancel({shouldBlockNextClick:!0}),Te.type==="PENDING"&&Te.actions.abort()},[pe]),Ze=ht(function(){var qe={capture:!0,passive:!1},Pt={cancel:we,completed:pe,getPhase:ue},On=_n(window,Is(Pt),qe),Zn=_n(window,Ls(Pt),qe);ae.current=function(){On(),Zn()}},[we,ue,pe]),ze=ht(function(){var qe=ue();qe.type!=="PENDING"&&tt(!1);var Pt=qe.actions.fluidLift(qe.point);ce({type:"DRAGGING",actions:Pt,hasMoved:!1})},[ue,ce]),Ne=ht(function(qe,Pt){ue().type!=="IDLE"&&tt(!1);var On=setTimeout(ze,ws);ce({type:"PENDING",point:Pt,actions:qe,longPressTimerId:On}),Ze()},[Ze,ue,ce,ze]);Pn(function(){return ve(),function(){ae.current();var Pt=ue();Pt.type==="PENDING"&&(clearTimeout(Pt.longPressTimerId),ce(Eu))}},[ue,ve,ce]),Pn(function(){var qe=_n(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return qe},[])}function Os(ee){}var Ms={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Zu(ee,te){if(te==null)return!1;var ae=!!Ms[te.tagName.toLowerCase()];if(ae)return!0;var ue=te.getAttribute("contenteditable");return ue==="true"||ue===""?!0:te===ee?!1:Zu(ee,te.parentElement)}function Rs(ee,te){var ae=te.target;return kr(ae)?Zu(ee,ae):!1}var Ts=function(ee){return aa(ee.getBoundingClientRect()).center};function ks(ee){return ee instanceof wr(ee).Element}var Gs=function(){var ee="matches";if(typeof document=="undefined")return ee;var te=[ee,"msMatchesSelector","webkitMatchesSelector"],ae=mr(te,function(ue){return ue in Element.prototype});return ae||ee}();function Wu(ee,te){return ee==null?null:ee[Gs](te)?ee:Wu(ee.parentElement,te)}function js(ee,te){return ee.closest?ee.closest(te):Wu(ee,te)}function Hs(ee){return"["+ei.contextId+'="'+ee+'"]'}function zs(ee,te){var ae=te.target;if(!ks(ae))return null;var ue=Hs(ee),ce=js(ae,ue);return!ce||!kr(ce)?null:ce}function Zs(ee,te){var ae=zs(ee,te);return ae?ae.getAttribute(ei.draggableId):null}function Ws(ee,te){var ae="["+Mi.contextId+'="'+ee+'"]',ue=Ga(document.querySelectorAll(ae)),ce=mr(ue,function(me){return me.getAttribute(Mi.id)===te});return!ce||!kr(ce)?null:ce}function Vs(ee){ee.preventDefault()}function Al(ee){var te=ee.expected,ae=ee.phase,ue=ee.isLockActive,ce=ee.shouldWarn;return!(!ue()||te!==ae)}function Vu(ee){var te=ee.lockAPI,ae=ee.store,ue=ee.registry,ce=ee.draggableId;if(te.isClaimed())return!1;var me=ue.draggable.findById(ce);return!(!me||!me.options.isEnabled||!eo(ae.getState(),ce))}function Qs(ee){var te=ee.lockAPI,ae=ee.contextId,ue=ee.store,ce=ee.registry,me=ee.draggableId,ve=ee.forceSensorStop,pe=ee.sourceEvent,we=Vu({lockAPI:te,store:ue,registry:ce,draggableId:me});if(!we)return null;var Ze=ce.draggable.getById(me),ze=Ws(ae,Ze.descriptor.id);if(!ze||pe&&!Ze.options.canDragInteractiveElements&&Rs(ze,pe))return null;var Ne=te.claim(ve||Ea),Te="PRE_DRAG";function qe(){return Ze.options.shouldRespectForcePress}function Pt(){return te.isActive(Ne)}function On(ir,Fr){Al({expected:ir,phase:Te,isLockActive:Pt,shouldWarn:!0})&&ue.dispatch(Fr())}var Zn=On.bind(null,"DRAGGING");function Yn(ir){function Fr(){te.release(),Te="COMPLETED"}Te!=="PRE_DRAG"&&(Fr(),Te!=="PRE_DRAG"&&tt(!1)),ue.dispatch(ql(ir.liftActionArgs)),Te="DRAGGING";function qr(Cr,_r){if(_r===void 0&&(_r={shouldBlockNextClick:!1}),ir.cleanup(),_r.shouldBlockNextClick){var io=_n(window,[{eventName:"click",fn:Vs,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(io)}Fr(),ue.dispatch(Di({reason:Cr}))}return(0,Ie.Z)({isActive:function(){return Al({expected:"DRAGGING",phase:Te,isLockActive:Pt,shouldWarn:!1})},shouldRespectForcePress:qe,drop:function(_r){return qr("DROP",_r)},cancel:function(_r){return qr("CANCEL",_r)}},ir.actions)}function da(ir){var Fr=An(function(Cr){Zn(function(){return xi({client:Cr})})}),qr=Yn({liftActionArgs:{id:me,clientSelection:ir,movementMode:"FLUID"},cleanup:function(){return Fr.cancel()},actions:{move:Fr}});return(0,Ie.Z)({},qr,{move:Fr})}function Fa(){var ir={moveUp:function(){return Zn(nl)},moveRight:function(){return Zn(Io)},moveDown:function(){return Zn(co)},moveLeft:function(){return Zn(Kr)}};return Yn({liftActionArgs:{id:me,clientSelection:Ts(ze),movementMode:"SNAP"},cleanup:Ea,actions:ir})}function Oa(){var ir=Al({expected:"PRE_DRAG",phase:Te,isLockActive:Pt,shouldWarn:!0});ir&&te.release()}var sr={isActive:function(){return Al({expected:"PRE_DRAG",phase:Te,isLockActive:Pt,shouldWarn:!1})},shouldRespectForcePress:qe,fluidLift:da,snapLift:Fa,abort:Oa};return sr}var Us=[Fs,xs,Ns];function Ks(ee){var te=ee.contextId,ae=ee.store,ue=ee.registry,ce=ee.customSensors,me=ee.enableDefaultSensors,ve=[].concat(me?Us:[],ce||[]),pe=(0,b.useState)(function(){return ss()})[0],we=ht(function(da,Fa){da.isDragging&&!Fa.isDragging&&pe.tryAbandon()},[pe]);Pn(function(){var da=ae.getState(),Fa=ae.subscribe(function(){var Oa=ae.getState();we(da,Oa),da=Oa});return Fa},[pe,ae,we]),Pn(function(){return pe.tryAbandon},[pe.tryAbandon]);var Ze=ht(function(Yn){return Vu({lockAPI:pe,registry:ue,store:ae,draggableId:Yn})},[pe,ue,ae]),ze=ht(function(Yn,da,Fa){return Qs({lockAPI:pe,registry:ue,contextId:te,store:ae,draggableId:Yn,forceSensorStop:da,sourceEvent:Fa&&Fa.sourceEvent?Fa.sourceEvent:null})},[te,pe,ue,ae]),Ne=ht(function(Yn){return Zs(te,Yn)},[te]),Te=ht(function(Yn){var da=ue.draggable.findById(Yn);return da?da.options:null},[ue.draggable]),qe=ht(function(){pe.isClaimed()&&(pe.tryAbandon(),ae.getState().phase!=="IDLE"&&ae.dispatch(Ro()))},[pe,ae]),Pt=ht(pe.isClaimed,[pe]),On=en(function(){return{canGetLock:Ze,tryGetLock:ze,findClosestDraggableId:Ne,findOptionsForDraggable:Te,tryReleaseLock:qe,isLockClaimed:Pt}},[Ze,ze,Ne,Te,qe,Pt]);Os(ve);for(var Zn=0;Zn=Hu||Math.abs(te.y-ee.y)>=Hu}var zu={type:"IDLE"};function ys(ee){var te=ee.cancel,ae=ee.completed,ue=ee.getPhase,ce=ee.setPhase;return[{eventName:"mousemove",fn:function(ve){var pe=ve.button,we=ve.clientX,Ze=ve.clientY;if(pe===ju){var ze={x:we,y:Ze},Ne=ue();if(Ne.type==="DRAGGING"){ve.preventDefault(),Ne.actions.move(ze);return}Ne.type!=="PENDING"&&tt(!1);var Te=Ne.point;if(As(Te,ze)){ve.preventDefault();var qe=Ne.actions.fluidLift(ze);ce({type:"DRAGGING",actions:qe})}}}},{eventName:"mouseup",fn:function(ve){var pe=ue();if(pe.type!=="DRAGGING"){te();return}ve.preventDefault(),pe.actions.drop({shouldBlockNextClick:!0}),ae()}},{eventName:"mousedown",fn:function(ve){ue().type==="DRAGGING"&&ve.preventDefault(),te()}},{eventName:"keydown",fn:function(ve){var pe=ue();if(pe.type==="PENDING"){te();return}if(ve.keyCode===Pu){ve.preventDefault(),te();return}Gu(ve)}},{eventName:"resize",fn:te},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ue().type==="PENDING"&&te()}},{eventName:"webkitmouseforcedown",fn:function(ve){var pe=ue();if(pe.type==="IDLE"&&tt(!1),pe.actions.shouldRespectForcePress()){te();return}ve.preventDefault()}},{eventName:El,fn:te}]}function Fs(ee){var te=(0,b.useRef)(zu),ae=(0,b.useRef)(Ea),ue=tn(function(){return{eventName:"mousedown",fn:function(Ne){if(!Ne.defaultPrevented&&Ne.button===ju&&!(Ne.ctrlKey||Ne.metaKey||Ne.shiftKey||Ne.altKey)){var Te=ee.findClosestDraggableId(Ne);if(Te){var qe=ee.tryGetLock(Te,ve,{sourceEvent:Ne});if(qe){Ne.preventDefault();var Pt={x:Ne.clientX,y:Ne.clientY};ae.current(),Ze(qe,Pt)}}}}}},[ee]),ce=tn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Ne){if(!Ne.defaultPrevented){var Te=ee.findClosestDraggableId(Ne);if(Te){var qe=ee.findOptionsForDraggable(Te);qe&&(qe.shouldRespectForcePress||ee.canGetLock(Te)&&Ne.preventDefault())}}}}},[ee]),me=ht(function(){var Ne={passive:!1,capture:!0};ae.current=_n(window,[ce,ue],Ne)},[ce,ue]),ve=ht(function(){var ze=te.current;ze.type!=="IDLE"&&(te.current=zu,ae.current(),me())},[me]),pe=ht(function(){var ze=te.current;ve(),ze.type==="DRAGGING"&&ze.actions.cancel({shouldBlockNextClick:!0}),ze.type==="PENDING"&&ze.actions.abort()},[ve]),we=ht(function(){var Ne={capture:!0,passive:!1},Te=ys({cancel:pe,completed:ve,getPhase:function(){return te.current},setPhase:function(Pt){te.current=Pt}});ae.current=_n(window,Te,Ne)},[pe,ve]),Ze=ht(function(Ne,Te){te.current.type!=="IDLE"&&tt(!1),te.current={type:"PENDING",point:Te,actions:Ne},we()},[we]);Pn(function(){return me(),function(){ae.current()}},[me])}var Ai;function Bs(){}var bs=(Ai={},Ai[ms]=!0,Ai[gs]=!0,Ai[vs]=!0,Ai[fs]=!0,Ai);function Cs(ee,te){function ae(){te(),ee.cancel()}function ue(){te(),ee.drop()}return[{eventName:"keydown",fn:function(me){if(me.keyCode===Pu){me.preventDefault(),ae();return}if(me.keyCode===ku){me.preventDefault(),ue();return}if(me.keyCode===Ps){me.preventDefault(),ee.moveDown();return}if(me.keyCode===hs){me.preventDefault(),ee.moveUp();return}if(me.keyCode===Ss){me.preventDefault(),ee.moveRight();return}if(me.keyCode===ps){me.preventDefault(),ee.moveLeft();return}if(bs[me.keyCode]){me.preventDefault();return}Gu(me)}},{eventName:"mousedown",fn:ae},{eventName:"mouseup",fn:ae},{eventName:"click",fn:ae},{eventName:"touchstart",fn:ae},{eventName:"resize",fn:ae},{eventName:"wheel",fn:ae,options:{passive:!0}},{eventName:El,fn:ae}]}function xs(ee){var te=(0,b.useRef)(Bs),ae=tn(function(){return{eventName:"keydown",fn:function(me){if(me.defaultPrevented||me.keyCode!==ku)return;var ve=ee.findClosestDraggableId(me);if(!ve)return;var pe=ee.tryGetLock(ve,ze,{sourceEvent:me});if(!pe)return;me.preventDefault();var we=!0,Ze=pe.snapLift();te.current();function ze(){we||tt(!1),we=!1,te.current(),ue()}te.current=_n(window,Cs(Ze,ze),{capture:!0,passive:!1})}}},[ee]),ue=ht(function(){var me={passive:!1,capture:!0};te.current=_n(window,[ae],me)},[ae]);Pn(function(){return ue(),function(){te.current()}},[ue])}var Eu={type:"IDLE"},ws=120,Ds=.15;function Ls(ee){var te=ee.cancel,ae=ee.getPhase;return[{eventName:"orientationchange",fn:te},{eventName:"resize",fn:te},{eventName:"contextmenu",fn:function(ce){ce.preventDefault()}},{eventName:"keydown",fn:function(ce){if(ae().type!=="DRAGGING"){te();return}ce.keyCode===Pu&&ce.preventDefault(),te()}},{eventName:El,fn:te}]}function Is(ee){var te=ee.cancel,ae=ee.completed,ue=ee.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(me){var ve=ue();if(ve.type!=="DRAGGING"){te();return}ve.hasMoved=!0;var pe=me.touches[0],we=pe.clientX,Ze=pe.clientY,ze={x:we,y:Ze};me.preventDefault(),ve.actions.move(ze)}},{eventName:"touchend",fn:function(me){var ve=ue();if(ve.type!=="DRAGGING"){te();return}me.preventDefault(),ve.actions.drop({shouldBlockNextClick:!0}),ae()}},{eventName:"touchcancel",fn:function(me){if(ue().type!=="DRAGGING"){te();return}me.preventDefault(),te()}},{eventName:"touchforcechange",fn:function(me){var ve=ue();ve.type==="IDLE"&&tt(!1);var pe=me.touches[0];if(pe){var we=pe.force>=Ds;if(we){var Ze=ve.actions.shouldRespectForcePress();if(ve.type==="PENDING"){Ze&&te();return}if(Ze){if(ve.hasMoved){me.preventDefault();return}te();return}me.preventDefault()}}}},{eventName:El,fn:te}]}function Ns(ee){var te=(0,b.useRef)(Eu),ae=(0,b.useRef)(Ea),ue=ht(function(){return te.current},[]),ce=ht(function(qe){te.current=qe},[]),me=tn(function(){return{eventName:"touchstart",fn:function(qe){if(!qe.defaultPrevented){var Pt=ee.findClosestDraggableId(qe);if(Pt){var Nn=ee.tryGetLock(Pt,pe,{sourceEvent:qe});if(Nn){var Zn=qe.touches[0],Yn=Zn.clientX,da=Zn.clientY,Fa={x:Yn,y:da};ae.current(),Ne(Nn,Fa)}}}}}},[ee]),ve=ht(function(){var qe={capture:!0,passive:!1};ae.current=_n(window,[me],qe)},[me]),pe=ht(function(){var Te=te.current;Te.type!=="IDLE"&&(Te.type==="PENDING"&&clearTimeout(Te.longPressTimerId),ce(Eu),ae.current(),ve())},[ve,ce]),we=ht(function(){var Te=te.current;pe(),Te.type==="DRAGGING"&&Te.actions.cancel({shouldBlockNextClick:!0}),Te.type==="PENDING"&&Te.actions.abort()},[pe]),Ze=ht(function(){var qe={capture:!0,passive:!1},Pt={cancel:we,completed:pe,getPhase:ue},Nn=_n(window,Is(Pt),qe),Zn=_n(window,Ls(Pt),qe);ae.current=function(){Nn(),Zn()}},[we,ue,pe]),ze=ht(function(){var qe=ue();qe.type!=="PENDING"&&tt(!1);var Pt=qe.actions.fluidLift(qe.point);ce({type:"DRAGGING",actions:Pt,hasMoved:!1})},[ue,ce]),Ne=ht(function(qe,Pt){ue().type!=="IDLE"&&tt(!1);var Nn=setTimeout(ze,ws);ce({type:"PENDING",point:Pt,actions:qe,longPressTimerId:Nn}),Ze()},[Ze,ue,ce,ze]);Pn(function(){return ve(),function(){ae.current();var Pt=ue();Pt.type==="PENDING"&&(clearTimeout(Pt.longPressTimerId),ce(Eu))}},[ue,ve,ce]),Pn(function(){var qe=_n(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return qe},[])}function Os(ee){}var Ms={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Zu(ee,te){if(te==null)return!1;var ae=!!Ms[te.tagName.toLowerCase()];if(ae)return!0;var ue=te.getAttribute("contenteditable");return ue==="true"||ue===""?!0:te===ee?!1:Zu(ee,te.parentElement)}function Rs(ee,te){var ae=te.target;return kr(ae)?Zu(ee,ae):!1}var Ts=function(ee){return ra(ee.getBoundingClientRect()).center};function ks(ee){return ee instanceof wr(ee).Element}var Gs=function(){var ee="matches";if(typeof document=="undefined")return ee;var te=[ee,"msMatchesSelector","webkitMatchesSelector"],ae=mr(te,function(ue){return ue in Element.prototype});return ae||ee}();function Wu(ee,te){return ee==null?null:ee[Gs](te)?ee:Wu(ee.parentElement,te)}function js(ee,te){return ee.closest?ee.closest(te):Wu(ee,te)}function Hs(ee){return"["+ei.contextId+'="'+ee+'"]'}function zs(ee,te){var ae=te.target;if(!ks(ae))return null;var ue=Hs(ee),ce=js(ae,ue);return!ce||!kr(ce)?null:ce}function Zs(ee,te){var ae=zs(ee,te);return ae?ae.getAttribute(ei.draggableId):null}function Ws(ee,te){var ae="["+Mi.contextId+'="'+ee+'"]',ue=Ga(document.querySelectorAll(ae)),ce=mr(ue,function(me){return me.getAttribute(Mi.id)===te});return!ce||!kr(ce)?null:ce}function Vs(ee){ee.preventDefault()}function Al(ee){var te=ee.expected,ae=ee.phase,ue=ee.isLockActive,ce=ee.shouldWarn;return!(!ue()||te!==ae)}function Vu(ee){var te=ee.lockAPI,ae=ee.store,ue=ee.registry,ce=ee.draggableId;if(te.isClaimed())return!1;var me=ue.draggable.findById(ce);return!(!me||!me.options.isEnabled||!eo(ae.getState(),ce))}function Qs(ee){var te=ee.lockAPI,ae=ee.contextId,ue=ee.store,ce=ee.registry,me=ee.draggableId,ve=ee.forceSensorStop,pe=ee.sourceEvent,we=Vu({lockAPI:te,store:ue,registry:ce,draggableId:me});if(!we)return null;var Ze=ce.draggable.getById(me),ze=Ws(ae,Ze.descriptor.id);if(!ze||pe&&!Ze.options.canDragInteractiveElements&&Rs(ze,pe))return null;var Ne=te.claim(ve||Ea),Te="PRE_DRAG";function qe(){return Ze.options.shouldRespectForcePress}function Pt(){return te.isActive(Ne)}function Nn(lr,Fr){Al({expected:lr,phase:Te,isLockActive:Pt,shouldWarn:!0})&&ue.dispatch(Fr())}var Zn=Nn.bind(null,"DRAGGING");function Yn(lr){function Fr(){te.release(),Te="COMPLETED"}Te!=="PRE_DRAG"&&(Fr(),Te!=="PRE_DRAG"&&tt(!1)),ue.dispatch(ql(lr.liftActionArgs)),Te="DRAGGING";function qr(br,_r){if(_r===void 0&&(_r={shouldBlockNextClick:!1}),lr.cleanup(),_r.shouldBlockNextClick){var io=_n(window,[{eventName:"click",fn:Vs,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(io)}Fr(),ue.dispatch(Di({reason:br}))}return(0,Ie.Z)({isActive:function(){return Al({expected:"DRAGGING",phase:Te,isLockActive:Pt,shouldWarn:!1})},shouldRespectForcePress:qe,drop:function(_r){return qr("DROP",_r)},cancel:function(_r){return qr("CANCEL",_r)}},lr.actions)}function da(lr){var Fr=An(function(br){Zn(function(){return xi({client:br})})}),qr=Yn({liftActionArgs:{id:me,clientSelection:lr,movementMode:"FLUID"},cleanup:function(){return Fr.cancel()},actions:{move:Fr}});return(0,Ie.Z)({},qr,{move:Fr})}function Fa(){var lr={moveUp:function(){return Zn(nl)},moveRight:function(){return Zn(Io)},moveDown:function(){return Zn(co)},moveLeft:function(){return Zn(Kr)}};return Yn({liftActionArgs:{id:me,clientSelection:Ts(ze),movementMode:"SNAP"},cleanup:Ea,actions:lr})}function Na(){var lr=Al({expected:"PRE_DRAG",phase:Te,isLockActive:Pt,shouldWarn:!0});lr&&te.release()}var dr={isActive:function(){return Al({expected:"PRE_DRAG",phase:Te,isLockActive:Pt,shouldWarn:!1})},shouldRespectForcePress:qe,fluidLift:da,snapLift:Fa,abort:Na};return dr}var Us=[Fs,xs,Ns];function Ks(ee){var te=ee.contextId,ae=ee.store,ue=ee.registry,ce=ee.customSensors,me=ee.enableDefaultSensors,ve=[].concat(me?Us:[],ce||[]),pe=(0,b.useState)(function(){return ss()})[0],we=ht(function(da,Fa){da.isDragging&&!Fa.isDragging&&pe.tryAbandon()},[pe]);Pn(function(){var da=ae.getState(),Fa=ae.subscribe(function(){var Na=ae.getState();we(da,Na),da=Na});return Fa},[pe,ae,we]),Pn(function(){return pe.tryAbandon},[pe.tryAbandon]);var Ze=ht(function(Yn){return Vu({lockAPI:pe,registry:ue,store:ae,draggableId:Yn})},[pe,ue,ae]),ze=ht(function(Yn,da,Fa){return Qs({lockAPI:pe,registry:ue,contextId:te,store:ae,draggableId:Yn,forceSensorStop:da,sourceEvent:Fa&&Fa.sourceEvent?Fa.sourceEvent:null})},[te,pe,ue,ae]),Ne=ht(function(Yn){return Zs(te,Yn)},[te]),Te=ht(function(Yn){var da=ue.draggable.findById(Yn);return da?da.options:null},[ue.draggable]),qe=ht(function(){pe.isClaimed()&&(pe.tryAbandon(),ae.getState().phase!=="IDLE"&&ae.dispatch(Ro()))},[pe,ae]),Pt=ht(pe.isClaimed,[pe]),Nn=tn(function(){return{canGetLock:Ze,tryGetLock:ze,findClosestDraggableId:Ne,findOptionsForDraggable:Te,tryReleaseLock:qe,isLockClaimed:Pt}},[Ze,ze,Ne,Te,qe,Pt]);Os(ve);for(var Zn=0;Znku(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:"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:"32907529",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:"22178e28",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:"3ca60ab0",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:"bd876362",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:"32907529",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:"22178e28",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"})})()})();