|
|
(self.webpackChunk=self.webpackChunk||[]).push([[2570],{54262:function(Jt,zt,V){"use strict";V.d(zt,{Z:function(){return v}});var a=V(87462),Pe=V(67294),d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},G=d,k=V(74643),u=function(h,x){return Pe.createElement(k.Z,(0,a.Z)({},h,{ref:x,icon:G}))},v=Pe.forwardRef(u)},51851:function(Jt,zt,V){"use strict";V.r(zt),V.d(zt,{default:function(){return _r}});var a=V(67294),Pe=V(35973),d=V(16455),G=V(11865),k=V(59810),u=V(2453),v=V(14446),i=V(33859),h=V(59451),x=Object.defineProperty,O=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,p=(B,F,L)=>F in B?x(B,F,{enumerable:!0,configurable:!0,writable:!0,value:L}):B[F]=L,E=(B,F)=>{for(var L in F||(F={}))g.call(F,L)&&p(B,L,F[L]);if(O)for(var L of O(F))S.call(F,L)&&p(B,L,F[L]);return B},f=(B,F,L)=>new Promise((ke,oe)=>{var be=se=>{try{we(L.next(se))}catch(Be){oe(Be)}},qe=se=>{try{we(L.throw(se))}catch(Be){oe(Be)}},we=se=>se.done?ke(se.value):Promise.resolve(se.value).then(be,qe);we((L=L.apply(B,F)).next())});const{Dragger:_}=k.default,m=({user:B,dispatch:F,classroomList:L,shixunsDetail:ke,getResults:oe})=>{const be=(0,Pe.useParams)(),[qe,we]=(0,a.useState)(),[se,Be]=(0,a.useState)([]),[Bt,Zt]=(0,a.useState)(!1),xt={onRemove:()=>{Be([])},beforeUpload:_t=>{if(console.log(_t),(_t==null?void 0:_t.size)>1024*1024*500)return u.ZP.info("\u6587\u4EF6\u8D85\u8FC7500M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;let bt=[];return bt.push(_t),Be([...bt]),!1},fileList:se};return a.createElement(v.default,{title:"\u63D0\u4EA4\u6587\u4EF6",open:ke.actionTabs.key==="md-tab",confirmLoading:Bt,onOk:()=>f(void 0,null,function*(){var _t,bt;if((se==null?void 0:se.length)<=0){u.ZP.info("\u8BF7\u5148\u9009\u62E9\u6587\u4EF6");return}Zt(!0);const Et=yield(0,h.cT)(se[0],{login:(_t=B.userInfo)==null?void 0:_t.login,container_type:"Competition",container_id:ke.actionTabs.params.id,stage_type:ke.actionTabs.params.value,file_name:(bt=se[0])==null?void 0:bt.name});(Et==null?void 0:Et.status)===0?(u.ZP.info("\u63D0\u4EA4\u6210\u529F"),F({type:"shixunsDetail/setActionTabs",payload:{key:""}}),Zt(!1),Be([]),oe(ke.actionTabs.params.value)):(Zt(!1),u.ZP.info("\u63D0\u4EA4\u5931\u8D25"))}),onCancel:()=>{Be([]),F({type:"shixunsDetail/setActionTabs",payload:{key:""}})}},a.createElement(_,E({},xt),a.createElement("p",{className:"ant-upload-drag-icon"},a.createElement(i.Z,null)),a.createElement("p",{className:"ant-upload-hint"},"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20")))};var w=(0,Pe.connect)(({user:B,classroomList:F,shixunsDetail:L})=>({user:B,classroomList:F,shixunsDetail:L}))(m),D=V(85673),M=V(57953),P=V(71577),le=V(68508),ee=V(85725),Q=V(71230),j=V(69677),J=V(11320),W=V(33170),C=V(78207),A=V(11713),s=V(91978),ne=V(22751),T=V(91034),Y=(B,F,L)=>new Promise((ke,oe)=>{var be=se=>{try{we(L.next(se))}catch(Be){oe(Be)}},qe=se=>{try{we(L.throw(se))}catch(Be){oe(Be)}},we=se=>se.done?ke(se.value):Promise.resolve(se.value).then(be,qe);we((L=L.apply(B,F)).next())});const{Option:ie}=A.default;function K({rewarddata:B,getlistdatas:F,is_signed:L,dispatch:ke,userlist:oe}){const be=(0,a.useRef)(null),[qe,we]=(0,a.useState)(!1),[se,Be]=(0,a.useState)(void 0),[Bt,Zt]=(0,a.useState)(""),[xt,_t]=(0,a.useState)(void 0),[bt,Et]=(0,a.useState)(void 0),[Xe,H]=(0,a.useState)(void 0);function vt(Ae){return Y(this,null,function*(){if(Ae.user_received){window.open(Ae.click_info);return}if(!(0,C.o1)(ke))return;if(L===!1){u.ZP.info("\u60A8\u5C1A\u672A\u62A5\u540D\u53C2\u8D5B\uFF0C\u8BF7\u62A5\u540D\u53C2\u8D5B\u540E\u9886\u53D6");return}if(Ae.click_event==="Pop"){Zt(Ae.id),we(!0);return}else Be(void 0);const We=yield ke({type:"competitions/Reward",payload:{competition_module_setting_id:Ae.id}});We&&We.status===0&&(F(),Ae.click_event==="Link"?(u.ZP.info("\u9886\u53D6\u6210\u529F"),window.open(Ae.click_info)):u.ZP.info(Ae.click_info))})}function Ne(){return Y(this,null,function*(){if(oe&&!oe.real_name&&!xt){u.ZP.info("\u59D3\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}if(oe&&!oe.email&&!bt){u.ZP.info("\u90AE\u7BB1\u4E0D\u80FD\u4E3A\u7A7A");return}if(oe&&!oe.phone&&!Xe){u.ZP.info("\u624B\u673A\u53F7\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}if(!se){u.ZP.info("\u8BF7\u9009\u62E9\u4F60\u7684\u5E74\u7EA7");return}const Ae=yield ke({type:"competitions/Reward",payload:{competition_module_setting_id:Bt,className:se,name:xt,mail:bt,phone:Xe}});Ae&&Ae.status===0&&(we(!1),F(),u.ZP.info("HCIA\u8BA4\u8BC1\u8003\u8BD5\u4EE3\u91D1\u52B5\u5C06\u7531\u5E73\u53F0\u7EDF\u4E00\u53D1\u653E\uFF0C\u8BF7\u53CA\u65F6\u5173\u6CE8\u90AE\u7BB1\u6216\u7AD9\u5185\u77ED\u4FE1\u67E5\u6536"))})}return a.createElement("div",null,a.createElement(v.default,{open:qe,title:"\u5B8C\u5584\u4FE1\u606F",onCancel:()=>we(!1),onOk:()=>{Ne()}},a.createElement("p",null,"\u60A8\u7684\u59D3\u540D\uFF1A",a.createElement(j.default,{className:oe&&oe.real_name?"":d.Z.bkfff,style:{width:"300px",marginLeft:"14px",background:oe&&oe.phone?"":"#ffffff!important"},value:oe&&oe.real_name||xt,disabled:oe&&oe.real_name||!1,onChange:Ae=>_t(Ae.target.value)})),a.createElement("p",{style:{marginTop:"1em"}},"\u60A8\u7684\u90AE\u7BB1\uFF1A",a.createElement(j.default,{className:oe&&oe.email?"":"bkfff",style:{width:"300px",marginLeft:"14px",background:oe&&oe.phone?"":"#ffffff!important"},value:oe&&oe.email||bt,disabled:oe&&oe.email||!1,onChange:Ae=>Et(Ae.target.value)})),a.createElement("p",{style:{marginTop:"1em"}},"\u60A8\u7684\u624B\u673A\u53F7\uFF1A",a.createElement(j.default,{style:{width:"300px"},className:oe&&oe.phone?"":"bkfff",value:oe&&oe.phone||Xe,disabled:oe&&oe.phone||!1,onChange:Ae=>H(Ae.target.value)})),"\u60A8\u7684\u5E74\u7EA7\uFF1A",a.createElement(A.default,{style:{width:"300px",marginTop:"1em",marginLeft:"14px"},onChange:Ae=>{Be(Ae)}},a.createElement(ie,{value:"\u5927\u4E00"},"\u5927\u4E00"),a.createElement(ie,{value:"\u5927\u4E8C"},"\u5927\u4E8C"),a.createElement(ie,{value:"\u5927\u4E09"},"\u5927\u4E09"),a.createElement(ie,{value:"\u5927\u56DB"},"\u5927\u56DB"),a.createElement(ie,{value:"\u5927\u4E94"},"\u5927\u4E94"),a.createElement(ie,{value:"\u7855\u4E00"},"\u7855\u4E00"),a.createElement(ie,{value:"\u7855\u4E8C"},"\u7855\u4E8C"),a.createElement(ie,{value:"\u7855\u4E09"},"\u7855\u4E09"),a.createElement(ie,{value:"\u535A\u4E00"},"\u535A\u4E00"),a.createElement(ie,{value:"\u535A\u4E8C"},"\u535A\u4E8C"),a.createElement(ie,{value:"\u535A\u4E09"},"\u535A\u4E09"),a.createElement(ie,{value:"\u535A\u56DB"},"\u535A\u56DB"),a.createElement(ie,{value:"\u535A\u4E94"},"\u535A\u4E94")),a.createElement("p",{style:{marginTop:"1em"}},"\u63D0\u9192\uFF1A\u5982\u65E0\u534E\u4E3A\u4E91\u8D26\u53F7\uFF0C\u8BF7\u5C3D\u5FEB\u6CE8\u518C\u534E\u4E3A\u4E91\uFF01")),B&&B.length>3?a.createElement("div",{style:{position:"relative",marginBottom:"10px",marginTop:"10px"}},a.createElement("span",{className:d.Z.spanprev,onClick:()=>{be.current.prev()}},a.createElement(ne.Z,{style:{color:"#fff",fontSize:"20px",marginLeft:"15px"}})),a.createElement(s.Z,{ref:be,className:d.Z.divwidth,slidesToShow:3,slidesToScroll:1},B&&B.map((Ae,We)=>a.createElement("div",{style:{textAlign:"center",position:"relative"}},a.createElement("img",{src:J.Z.IMG_SERVER+`/${Ae.image_url}`}),Ae.user_received===!1||Ae.click_event==="Link"?a.createElement("p",{className:d.Z.receiveclick,onClick:()=>vt(Ae)},"\u70B9\u51FB\u9886\u53D6"):a.createElement("p",{className:d.Z.receivealready},"\u5DF2\u7ECF\u9886\u53D6")))),a.createElement("span",{className:d.Z.spannext,onClick:()=>{be.current.next()}},a.createElement(T.Z,{style:{color:"#fff",fontSize:"20px",marginLeft:"5px"}}))):a.createElement("div",{className:d.Z.divwidth,style:{justifyContent:"space-around",marginBottom:"10px",marginTop:"10px"}},B&&B.map((Ae,We)=>a.createElement("div",{style:{textAlign:"center",position:"relative"}},a.createElement("img",{src:J.Z.IMG_SERVER+`/${Ae.image_url}`}),Ae.user_received===!1||Ae.click_event==="Link"?a.createElement("p",{className:d.Z.receiveclick,onClick:()=>vt(Ae)},"\u70B9\u51FB\u9886\u53D6"):a.createElement("p",{className:d.Z.receivealready},"\u5DF2\u7ECF\u9886\u53D6")))))}var ce=K,U=Object.defineProperty,N=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,he=(B,F,L)=>F in B?U(B,F,{enumerable:!0,configurable:!0,writable:!0,value:L}):B[F]=L,it=(B,F)=>{for(var L in F||(F={}))Ce.call(F,L)&&he(B,L,F[L]);if(N)for(var L of N(F))ge.call(F,L)&&he(B,L,F[L]);return B},dt=(B,F,L)=>new Promise((ke,oe)=>{var be=se=>{try{we(L.next(se))}catch(Be){oe(Be)}},qe=se=>{try{we(L.throw(se))}catch(Be){oe(Be)}},we=se=>se.done?ke(se.value):Promise.resolve(se.value).then(be,qe);we((L=L.apply(B,F)).next())});const Ue=({StaffDetail:B,HeaderDetail:F,ItemData:L,setIssee:ke,ModelType:oe,dispatch:be,userinfo:qe,Editable:we},se)=>{const[Be,Bt]=(0,a.useState)(!1),[Zt,xt]=(0,a.useState)([]),[_t,bt]=(0,a.useState)(""),[Et,Xe]=(0,a.useState)(""),[H,vt]=(0,a.useState)(!1),{identifier:Ne}=(0,Pe.useParams)(),Ae=(0,a.useRef)(null),We=(0,a.useRef)(null);Ae.current=B==null?void 0:B.enrolled,(0,a.useEffect)(()=>{var et;return(et=We.current)==null||et.addEventListener("click",Rt),()=>{var ut;(ut=We.current)==null||ut.removeEventListener("click",Rt)}},[]);const Rt=et=>{var ut;if(((ut=et==null?void 0:et.target)==null?void 0:ut.id)==="modal-upload"){if(!(0,C.tJ)(be))return;if(!Ae.current){v.default.info({title:"\u63D0\u793A",centered:!0,okText:"\u6211\u77E5\u9053\u4E86",content:"\u8BF7\u5148\u62A5\u540D\uFF0C\u518D\u63D0\u4EA4\u4F5C\u54C1"});return}Bt(!0)}};(0,a.useEffect)(()=>{var et,ut,Ze;F!=null&&F.upload_file&&(xt([{name:(et=F==null?void 0:F.upload_file)==null?void 0:et.title,status:"done",uid:"123456789"}]),Xe(F==null?void 0:F.upload_file_url),bt((Ze=(ut=F==null?void 0:F.upload_file)==null?void 0:ut.url)==null?void 0:Ze.split("/")[3]))},[F==null?void 0:F.upload_file]);const wt={name:"file",multiple:!1,withCredentials:!0,action:J.Z.API_SERVER+"/api/attachments.json",showUploadList:{showRemoveIcon:!1},fileList:Zt,onChange:et=>{var ut,Ze;const{status:De}=et.file,st=[it({},et.file)];xt(st),et.file.status==="uploading"&&vt(!0),De==="done"&&(bt((Ze=(ut=st[0])==null?void 0:ut.response)==null?void 0:Ze.id),vt(!1)),De==="error"&&(xt([]),vt(!1))},beforeUpload:et=>et.size/1024/1024<1e3?Promise.resolve():(u.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E1000MB"),Promise.reject())},fe=()=>{Bt(!0)};return(0,a.useImperativeHandle)(se,()=>({handleVisible:fe})),a.createElement("div",{ref:We},oe==="reward"?a.createElement(ce,{userlist:qe,dispatch:be,rewarddata:L.reward_setting,is_signed:L.is_signed}):null,a.createElement("div",{style:{textAlign:"right"}},((qe==null?void 0:qe.admin)||(qe==null?void 0:qe.business)||we)&&a.createElement(P.ZP,{onClick:()=>ke(!1)},"\u7F16\u8F91")),a.createElement(ee.Z,{value:L.md_content||"\u6682\u65E0"}),L&&L.attachments&&L.attachments.map((et,ut)=>{var Ze;return a.createElement("div",null,a.createElement("a",{href:((Ze=J.Z)==null?void 0:Ze.API_SERVER)+et.url,target:"_self",download:et.title},a.createElement("i",{style:{color:"#29BD8B"},className:"font-14 color-green iconfont icon-fujian mr8"}),a.createElement("span",{style:{color:"#000000"}},et.title),a.createElement("span",{style:{color:"#000000",marginLeft:"10px"}},et.filesize)))}),a.createElement(v.default,{centered:!0,title:"\u4E0A\u4F20\u4F5C\u54C1",open:Be,okText:"\u63D0\u4EA4\u4F5C\u54C1",cancelText:"\u53D6\u6D88",confirmLoading:H,onCancel:()=>Bt(!1),onOk:()=>dt(void 0,null,function*(){if(!_t&&!Et){Bt(!1);return}vt(!0),(yield(0,W.ZP)(`/api/competitions/${Ne}/upload_file.json`,{method:"post",body:{attachment_id:_t,upload_file_url:Et}})).status===0&&(Bt(!1),vt(!1))})},a.createElement("div",null,a.createElement(Q.Z,{align:"middle",className:"mb20"},a.createElement("span",null,"\u4F5C\u54C1\u94FE\u63A5\uFF1A"),a.createElement(j.default,{style:{width:416},value:Et,onChange:et=>{var ut;return Xe((ut=et.target)==null?void 0:ut.value)}})),a.createElement(Q.Z,{align:"top"},a.createElement("span",{style:{lineHeight:"28px"}},"\u4F5C\u54C1\u6587\u4EF6\uFF1A"),a.createElement(k.default,it({},wt),a.createElement(P.ZP,{type:"primary",className:"mb10"},"\u4E0A\u4F20\u4F5C\u54C1"))))))};var tt=(0,a.forwardRef)(Ue),gt=V(35567),ht=V(78392),At=Object.defineProperty,ft=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,o=(B,F,L)=>F in B?At(B,F,{enumerable:!0,configurable:!0,writable:!0,value:L}):B[F]=L,e=(B,F)=>{for(var L in F||(F={}))r.call(F,L)&&o(B,L,F[L]);if(ft)for(var L of ft(F))re.call(F,L)&&o(B,L,F[L]);return B},t=(B,F,L)=>new Promise((ke,oe)=>{var be=se=>{try{we(L.next(se))}catch(Be){oe(Be)}},qe=se=>{try{we(L.throw(se))}catch(Be){oe(Be)}},we=se=>se.done?ke(se.value):Promise.resolve(se.value).then(be,qe);we((L=L.apply(B,F)).next())});function l({ItemData:B,setIssee:F,MenuItem:L,dispatch:ke,identifier:oe,ModelType:be,userinfo:qe,getrightdatas:we}){let[se,Be]=(0,a.useState)([]);const[Bt,Zt]=(0,a.useState)(B.md_content);(0,a.useEffect)(()=>{var Xe;let H=[];(Xe=B==null?void 0:B.attachments)==null||Xe.map(vt=>{let Ne={uid:vt.id,name:vt.title,response:{id:vt.id}};H.push(Ne)}),Be(H)},[B==null?void 0:B.attachments]);function xt(){var Xe;let H=[];return(Xe=B==null?void 0:B.attachments)==null||Xe.map(vt=>{let Ne={uid:vt==null?void 0:vt.id,name:vt.title,response:{id:vt.id}};H.push(Ne)}),H}const _t={name:"file",multiple:!0,withCredentials:!0,action:J.Z.API_SERVER+"/api/attachments.json",defaultFileList:xt(),onRemove(Xe){(0,ht.y8)({id:Xe.uid})},onChange(Xe){const{status:H}=Xe.file;H==="removed"&&Be(Xe.fileList),H==="done"?(Be(Xe.fileList),u.ZP.success(`${Xe.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`)):H==="error"&&u.ZP.error(`${Xe.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)},beforeUpload:Xe=>{const H=Xe.size/1024/1024<150;return H||u.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),H}};console.log(_t);function bt(){return t(this,null,function*(){(yield ke({type:"competitions/updateMdContent",payload:{attachment_ids:Et(se),competition_module_id:B.id,md_content_id:B.md_id,content:Bt,identifier:oe}}))&&(u.ZP.info("\u63D0\u4EA4\u6210\u529F"),F(!0),we(L))})}function Et(Xe){let H=[];return Xe&&Xe.map(vt=>{H.push(vt.response.id)}),H}return a.createElement("div",null,be==="reward"?a.createElement(ce,{userlist:qe,dispatch:ke,rewarddata:B.reward_setting,is_signed:B.is_signed}):null,a.createElement(gt.Z,{defaultValue:Bt,onChange:Xe=>Zt(Xe)}),a.createElement(k.default,e({},_t),a.createElement(P.ZP,{className:"uploadBtn"},"\u4E0A\u4F20\u9644\u4EF6"),"(\u5355\u4E2A\u6587\u4EF6150M\u4EE5\u5185)"),a.createElement("p",{style:{marginTop:"10px"}},a.createElement(P.ZP,{style:{width:"90px"},type:"primary",onClick:()=>bt()},"\u63D0\u4EA4"),a.createElement(P.ZP,{style:{marginLeft:"30px",width:"90px"},onClick:()=>F(!0)},"\u53D6\u6D88")))}var y=l,Z=V(66368),b=V(9430);function te(){return a.createElement("div",null,a.createElement("p",{style:{fontSize:"24px",color:"#05101a"}},"\u603B\u6392\u884C"),a.createElement("div",{style:{textAlign:"center"}},a.createElement("img",{src:J.Z.IMG_SERVER+"/images/educoder/competitions/trophy.png"}),a.createElement("p",null,"\u8981\u6293\u4F4F\u4E00\u5207\u673A\u4F1A\uFF0C\u5411\u6240\u6709\u4EBA\u8BC1\u660E\u81EA\u5DF1\uFF0C\u8BC1\u660E\u4F60\u80FD\u591F\u8FCE\u63A5\u8363\u8000")))}var de=te,q=V(15746),_e=V(4393);function Re({oneItem:B,towItem:F,threeItem:L}){return a.createElement("div",{style:{textAlign:"center"}},a.createElement(Q.Z,{gutter:16,style:{justifyContent:"center"}},a.createElement(q.Z,{span:6,style:{marginTop:"30px",marginRight:"20px"}},a.createElement(_e.Z,{title:a.createElement("div",{className:d.Z.towtop},a.createElement("img",{style:{marginTop:"20px"},src:J.Z.IMG_SERVER+"/images/educoder/huangguan-two.png"}),a.createElement("p",{style:{marginTop:"10px"}},a.createElement(Pe.Link,{to:`/users/${F==null?void 0:F.user_login}/classrooms`},a.createElement("img",{className:d.Z.imgradius,src:J.Z.IMG_SERVER+`/images/${F==null?void 0:F.user_image}`}),(F==null?void 0:F.competition_prize)&&a.createElement("p",{className:d.Z.prize},F==null?void 0:F.competition_prize),a.createElement("p",{style:{color:"#05101a",fontSize:"16px",marginTop:"10px"}},F==null?void 0:F.record_user_name)))),className:d.Z.towdiv,bordered:!1},a.createElement("p",{style:{fontSize:"14px"}},F==null?void 0:F.school_name),a.createElement("p",{style:{fontSize:"18px"}},F==null?void 0:F.spend_time),a.createElement("p",{style:{fontSize:"26px",color:"#a55b29"}},parseFloat(F==null?void 0:F.extra_score)+parseFloat(F==null?void 0:F.score),"\u5206"))),a.createElement(q.Z,{span:6},a.createElement(_e.Z,{title:a.createElement("div",{className:d.Z.onetop},a.createElement("img",{style:{marginTop:"20px"},src:J.Z.IMG_SERVER+"/images/educoder/huangguan.png"}),a.createElement("p",{style:{marginTop:"10px"}},a.createElement(Pe.Link,{to:`/users/${B==null?void 0:B.user_login}/classrooms`},a.createElement("img",{className:d.Z.imgradius,src:J.Z.IMG_SERVER+`/images/${B==null?void 0:B.user_image}`}),(B==null?void 0:B.competition_prize)&&a.createElement("p",{className:d.Z.prize},B==null?void 0:B.competition_prize),a.createElement("p",{style:{color:"#05101a",fontSize:"16px",marginTop:"10px"}},B==null?void 0:B.record_user_name)))),className:d.Z.onediv,bordered:!1},a.createElement("p",{style:{fontSize:"14px"}},B==null?void 0:B.school_name),a.createElement("p",{style:{fontSize:"18px"}},B==null?void 0:B.spend_time),a.createElement("p",{style:{fontSize:"26px",color:"#a55b29"}},parseFloat(B==null?void 0:B.extra_score)+parseFloat(B==null?void 0:B.score),"\u5206"))),a.createElement(q.Z,{span:6,style:{marginTop:"40px",marginLeft:"20px"}},a.createElement(_e.Z,{title:a.createElement("div",{className:d.Z.threetop},a.createElement("img",{style:{marginTop:"20px"},src:J.Z.IMG_SERVER+"/images/educoder/huangguan-three.png"}),a.createElement("p",{style:{marginTop:"10px"}},a.createElement(Pe.Link,{to:`/users/${L==null?void 0:L.user_login}/classrooms`},a.createElement("img",{className:d.Z.imgradius,src:J.Z.IMG_SERVER+`/images/${L==null?void 0:L.user_image}`}),(L==null?void 0:L.competition_prize)&&a.createElement("p",{className:d.Z.prize},L==null?void 0:L.competition_prize),a.createElement("p",{style:{color:"#05101a",fontSize:"16px",marginTop:"10px"}},L==null?void 0:L.record_user_name)))),className:d.Z.threediv,bordered:!1},a.createElement("p",{style:{fontSize:"14px"}},L==null?void 0:L.school_name),a.createElement("p",{style:{fontSize:"18px"}},L==null?void 0:L.spend_time),a.createElement("p",{style:{fontSize:"26px",color:"#a55b29"}},parseFloat(L==null?void 0:L.extra_score)+parseFloat(L==null?void 0:L.score),"\u5206")))))}var Ve=Re,ot=V(83062);function $t({ItemData:B}){var F,L,ke,oe,be,qe,we,se,Be,Bt,Zt,xt,_t,bt,Et,Xe,H,vt,Ne,Ae,We,Rt,wt,fe,et,ut,Ze,De,st,Pt;return a.createElement("div",null,a.createElement("p",{style:{fontSize:"24px",color:"#05101a"}},"\u603B\u6392\u884C"),a.createElement(Ve,{oneItem:B==null?void 0:B.teams[0],towItem:B==null?void 0:B.teams[1],threeItem:B==null?void 0:B.teams[2]}),((F=B==null?void 0:B.user_ranks)==null?void 0:F.length)>0&&a.createElement("div",{className:d.Z.myTeam},((ke=(L=B==null?void 0:B.user_ranks)==null?void 0:L[0])==null?void 0:ke.success)===!1?a.createElement("span",{style:{marginRight:"70px",padding:"10px"}},a.createElement("p",{style:{marginBottom:"0px"}}," \u662F\u5426\u664B\u7EA7\uFF1A",a.createElement("span",{style:{color:((be=(oe=B==null?void 0:B.user_ranks)==null?void 0:oe[0])==null?void 0:be.success)===!1?"red":"green"}},((we=(qe=B==null?void 0:B.user_ranks)==null?void 0:qe[0])==null?void 0:we.success)===!1?"\u5426":(Be=(se=B==null?void 0:B.user_ranks)==null?void 0:se[0])!=null&&Be.success?"\u662F":"")),((Zt=(Bt=B==null?void 0:B.user_ranks)==null?void 0:Bt[0])==null?void 0:Zt.awards)&&a.createElement("p",{style:{marginBottom:"0px"}}," \u662F\u5426\u83B7\u5956\uFF1A",a.createElement("span",null,((_t=(xt=B==null?void 0:B.user_ranks)==null?void 0:xt[0])==null?void 0:_t.awards)==="percent_20"?"\u4E8C\u7B49\u5956":((Et=(bt=B==null?void 0:B.user_ranks)==null?void 0:bt[0])==null?void 0:Et.awards)==="percent_30"?"\u4E09\u7B49\u5956":"\u6CA1\u6709\u83B7\u5F97\u5956\u9879"))):a.createElement("span",{style:{marginRight:"70px"}},"\u6211\u7684\u6392\u540D\uFF1A",(H=(Xe=B==null?void 0:B.user_ranks)==null?void 0:Xe[0])==null?void 0:H.rank),a.createElement("span",{style:{flex:1}},a.createElement(ot.Z,{title:"\u6218\u961F\u540D"},(Ne=(vt=B==null?void 0:B.user_ranks)==null?void 0:vt[0])==null?void 0:Ne.team_name)),a.createElement("span",{style:{flex:1}},a.createElement(ot.Z,{title:"\u65F6\u95F4"},(We=(Ae=B==null?void 0:B.user_ranks)==null?void 0:Ae[0])==null?void 0:We.cost_time)),a.createElement("span",{style:{flex:1,textAlign:"center"}},a.createElement(ot.Z,{title:"\u8D4B\u80FD\u8D5B\u52A0\u5206"},(wt=(Rt=B==null?void 0:B.user_ranks)==null?void 0:Rt[0])==null?void 0:wt.extra_score)),a.createElement("span",{style:{flex:1}},a.createElement(ot.Z,{title:"\u6BD4\u8D5B\u6210\u7EE9"},(et=(fe=B==null?void 0:B.user_ranks)==null?void 0:fe[0])==null?void 0:et.score)),a.createElement("span",null,a.createElement(ot.Z,{title:"\u603B\u5206"},parseFloat((Ze=(ut=B==null?void 0:B.user_ranks)==null?void 0:ut[0])==null?void 0:Ze.extra_score)+parseFloat((st=(De=B==null?void 0:B.user_ranks)==null?void 0:De[0])==null?void 0:st.score)||0))),(Pt=B==null?void 0:B.teams)==null?void 0:Pt.map((I,me)=>a.createElement("div",{className:d.Z.bottomItem},a.createElement("span",{style:{color:"#0152d9",marginRight:"20px"}},me+1),a.createElement(Pe.Link,{to:`/users/${I==null?void 0:I.user_login}/classrooms`,style:{marginRight:"80px",position:"relative"}},a.createElement("img",{className:d.Z.imgradius,src:J.Z.IMG_SERVER+`/images/${I==null?void 0:I.user_image}`}),(I==null?void 0:I.competition_prize)&&a.createElement("span",{className:d.Z.spanrightradius},I==null?void 0:I.competition_prize)),a.createElement("span",{style:{flex:1}},a.createElement(ot.Z,{title:"\u6218\u961F\u540D"},I==null?void 0:I.team_name)),a.createElement("span",{style:{flex:1}},a.createElement(ot.Z,{title:"\u5355\u4F4D/\u5B66\u6821\u540D"},I.school_name)),a.createElement("span",{style:{flex:1,textAlign:"center"}},a.createElement(ot.Z,{title:"\u8D4B\u80FD\u8D5B\u52A0\u5206"},I.extra_score)),a.createElement("span",{style:{flex:1}},a.createElement(ot.Z,{title:"\u6BD4\u8D5B\u6210\u7EE9"},I.score)),a.createElement("span",{style:{color:"#0152d9"}},a.createElement(ot.Z,{title:"\u603B\u5206"},parseFloat(I.extra_score)+parseFloat(I.score))))))}var Dt=$t,at=(B,F,L)=>new Promise((ke,oe)=>{var be=se=>{try{we(L.next(se))}catch(Be){oe(Be)}},qe=se=>{try{we(L.throw(se))}catch(Be){oe(Be)}},we=se=>se.done?ke(se.value):Promise.resolve(se.value).then(be,qe);we((L=L.apply(B,F)).next())});const{TabPane:Je}=Z.default;function je({ChartRules:B,ItemData:F,getCharts:L,Selectkey:ke,getChartRules:oe,userinfo:be,Editable:qe,HeaderDetail:we}){var se,Be,Bt,Zt,xt,_t;const[bt,Et]=(0,a.useState)(!1),[Xe,H]=(0,a.useState)(""),[vt,Ne]=(0,a.useState)(!0),[Ae,We]=(0,a.useState)(),[Rt,wt]=(0,a.useState)(),{identifier:fe}=(0,Pe.useParams)();(0,a.useEffect)(()=>{var Ze,De,st,Pt,I,me,xe;if(vt){let nt=(Ze=B==null?void 0:B.stages)==null?void 0:Ze[0];We(nt),nt!=null&&nt.id?(((we==null?void 0:we.task)==="mAP"||(we==null?void 0:we.task)==="dog")&&L(nt==null?void 0:nt.id),H(((Pt=(st=(De=B.rule_contents)==null?void 0:De.filter(rt=>parseInt(rt.competition_stage_id)===parseInt(nt==null?void 0:nt.id)))==null?void 0:st[0])==null?void 0:Pt.content)||"")):((we==null?void 0:we.task)==="mAP"||(we==null||we.task),H(((xe=(me=(I=B.rule_contents)==null?void 0:I.filter(rt=>parseInt(rt.competition_stage_id)===0))==null?void 0:me[0])==null?void 0:xe.content)||""))}},[B]);function et(){return at(this,null,function*(){var Ze,De,st,Pt,I,me;if(!Xe){u.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}Ne(!1);let xe=Ae==null?void 0:Ae.id;xe?(yield(0,W.ZP)(`/api/competitions/${fe}/update_md_content.json`,{method:"post",body:{competition_module_id:ke,content:Xe,md_content_id:(st=(De=(Ze=B.rule_contents)==null?void 0:Ze.filter(rt=>parseInt(rt.competition_stage_id)===parseInt(xe)))==null?void 0:De[0])==null?void 0:st.id,stage_id:Ae==null?void 0:Ae.id}})).status===0&&(u.ZP.info("\u66F4\u65B0\u6210\u529F"),Et(!1),oe()):(yield(0,W.ZP)(`/api/competitions/${fe}/update_md_content.json`,{method:"post",body:{competition_module_id:ke,content:Xe,md_content_id:(me=(I=(Pt=B.rule_contents)==null?void 0:Pt.filter(rt=>parseInt(rt.competition_stage_id)===0))==null?void 0:I[0])==null?void 0:me.id,stage_id:Ae==null?void 0:Ae.id}})).status===0&&(u.ZP.info("\u66F4\u65B0\u6210\u529F"),Et(!1),oe())})}const ut=[{title:"\u6392\u540D",dataIndex:"name",align:"center",key:"name",render:(Ze,De,st)=>a.createElement("span",null,st+1)},{title:"\u5934\u50CF",dataIndex:"user_image",align:"center",key:"user_image",render:Ze=>a.createElement("img",{className:d.Z.imgradius,src:J.Z.IMG_SERVER+`/images/${Ze}`})},{title:"\u6218\u961F\u540D\u79F0",dataIndex:"team_name",key:"team_name",render:Ze=>a.createElement("span",{title:Ze},Ze&&(Ze==null?void 0:Ze.length)>=15?(Ze==null?void 0:Ze.substr(0,15))+"...":Ze||"--")},{title:"\u5355\u4F4D",dataIndex:"school_name",key:"school_name",align:"center",render:Ze=>a.createElement("span",null,Ze||"--")},{title:(we==null?void 0:we.task)==="mAP"?"mAP\u6307\u6807":(we==null?void 0:we.task)==="Jittor-3"?"\u603B\u5206":"top1\u6307\u6807",dataIndex:"score",key:"score",render:Ze=>a.createElement("span",null,Ze||"--")}];return a.createElement("div",null,((se=B==null?void 0:B.stages)==null?void 0:se.length)>0?null:a.createElement(de,null),((Be=B==null?void 0:B.stages)==null?void 0:Be.length)>0&&a.createElement(Z.default,{animated:!0,tabBarExtraContent:((be==null?void 0:be.admin)||(be==null?void 0:be.business)||qe)&&a.createElement(P.ZP,{onClick:()=>{Et(!0)}},"\u7F16\u8F91"),onChange:Ze=>{var De,st,Pt,I,me;Et(!1);let xe=(De=B==null?void 0:B.stages)==null?void 0:De.filter(rt=>parseInt(Ze)===parseInt(rt==null?void 0:rt.id))[0];We(xe);let nt=(st=xe==null?void 0:xe.children)==null?void 0:st[0];wt(nt),H(((me=(I=(Pt=B.rule_contents)==null?void 0:Pt.filter(rt=>parseInt(rt.competition_stage_id)===parseInt(xe==null?void 0:xe.id)))==null?void 0:I[0])==null?void 0:me.content)||""),L((nt==null?void 0:nt.id)||Ze)}},B&&B.stages.map((Ze,De)=>a.createElement(Je,{tab:Ze.name,key:Ze.id===null?0:Ze.id},bt===!1&&B&&B.rule_contents.map((st,Pt)=>{if(Ze.id===st.competition_stage_id)return a.createElement(ee.Z,{key:Pt,value:st.content===void 0||st.content===null?"":st.content});if(Ze.id===null&&st.competition_stage_id===0)return a.createElement(ee.Z,{key:Pt,value:st.content===void 0||st.content===null?"":st.content})})))),((Bt=Ae==null?void 0:Ae.children)==null?void 0:Bt.length)>0&&a.createElement(Z.default,{activeKey:(Rt==null?void 0:Rt.id)+"",onChange:Ze=>{var De;let st=(De=Ae==null?void 0:Ae.children)==null?void 0:De.filter(Pt=>parseInt(Ze)===parseInt(Pt==null?void 0:Pt.id))[0];wt(st),L(Ze)}},(Zt=Ae==null?void 0:Ae.children)==null?void 0:Zt.map((Ze,De)=>a.createElement(Je,{tab:Ze.name,key:Ze.id===null?0:Ze.id}))),bt&&a.createElement("div",null,a.createElement(gt.Z,{defaultValue:Xe,onChange:Ze=>{H(Ze)}}),a.createElement("p",{style:{marginTop:"10px"}},a.createElement(P.ZP,{style:{width:"90px"},type:"primary",onClick:()=>et()},"\u63D0\u4EA4"),a.createElement(P.ZP,{style:{marginLeft:"30px",width:"90px"},onClick:()=>Et(!1)},"\u53D6\u6D88"))),((xt=F==null?void 0:F.teams)==null?void 0:xt.length)>0&&((we==null?void 0:we.task)==="mAP"||(we==null?void 0:we.task)==="dog"||(we==null?void 0:we.task)==="Jittor-3")?a.createElement(b.default,{dataSource:F==null?void 0:F.teams,columns:ut,pagination:!1}):((_t=F==null?void 0:F.teams)==null?void 0:_t.length)>0&&a.createElement(Dt,{ItemData:F}))}var St=je,mt=V(86974),Ot=V(28706),Kt=V(52262),qt=V(27484),It=V.n(qt),Te=V(67294),Lt=(B,F,L)=>new Promise((ke,oe)=>{var be=se=>{try{we(L.next(se))}catch(Be){oe(Be)}},qe=se=>{try{we(L.throw(se))}catch(Be){oe(Be)}},we=se=>se.done?ke(se.value):Promise.resolve(se.value).then(be,qe);we((L=L.apply(B,F)).next())});const{TabPane:pe}=Z.default;function c({ChartRules:B,ItemData:F,getCharts:L,Selectkey:ke,HeaderDetail:oe,getChartRules:be,userinfo:qe,Editable:we,dispatch:se,StaffDetail:Be}){var Bt,Zt,xt,_t,bt,Et,Xe,H;const[vt,Ne]=(0,a.useState)(!1),[Ae,We]=(0,a.useState)(""),[Rt,wt]=(0,a.useState)(!0),[fe,et]=(0,a.useState)(),[ut,Ze]=(0,a.useState)(),{identifier:De}=(0,Pe.useParams)();(0,a.useEffect)(()=>{var I,me,xe,nt,rt,Mt,He,Ct,Ke,Tt,Nt;if(Rt&&((I=B==null?void 0:B.stages)==null?void 0:I.length)>0){let jt=(me=B==null?void 0:B.stages)==null?void 0:me[0];et(jt);let on=(rt=(nt=(xe=B==null?void 0:B.stages)==null?void 0:xe[0])==null?void 0:nt.children)==null?void 0:rt[0];Ze(on),jt!=null&&jt.id?(L(jt==null?void 0:jt.id),We(((Ct=(He=(Mt=B.rule_contents)==null?void 0:Mt.filter(Vt=>parseInt(Vt.competition_stage_id)===parseInt(jt==null?void 0:jt.id)))==null?void 0:He[0])==null?void 0:Ct.content)||"")):(L(0),We(((Nt=(Tt=(Ke=B.rule_contents)==null?void 0:Ke.filter(Vt=>parseInt(Vt.competition_stage_id)===0))==null?void 0:Tt[0])==null?void 0:Nt.content)||""))}},[B]);function st(){return Lt(this,null,function*(){var I,me,xe,nt,rt,Mt;if(!Ae){u.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}wt(!1);let He=fe==null?void 0:fe.id;He?(yield(0,W.ZP)(`/api/competitions/${De}/update_md_content.json`,{method:"post",body:{competition_module_id:ke,content:Ae,md_content_id:(xe=(me=(I=B.rule_contents)==null?void 0:I.filter(Ke=>parseInt(Ke.competition_stage_id)===parseInt(He)))==null?void 0:me[0])==null?void 0:xe.id,stage_id:fe==null?void 0:fe.id}})).status===0&&(u.ZP.info("\u66F4\u65B0\u6210\u529F"),Ne(!1),be()):(yield(0,W.ZP)(`/api/competitions/${De}/update_md_content.json`,{method:"post",body:{competition_module_id:ke,content:Ae,md_content_id:(Mt=(rt=(nt=B.rule_contents)==null?void 0:nt.filter(Ke=>parseInt(Ke.competition_stage_id)===0))==null?void 0:rt[0])==null?void 0:Mt.id,stage_id:fe==null?void 0:fe.id}})).status===0&&(u.ZP.info("\u66F4\u65B0\u6210\u529F"),Ne(!1),be())})}const Pt=[{title:"request_id",dataIndex:"request_id",width:120,align:"center",key:"name",render:(I,me,xe)=>Te.createElement("span",null,I)},{title:"\u9644\u4EF6",dataIndex:"file_name",align:"center",width:150,key:"file_name",render:I=>Te.createElement(ot.Z,{title:I},Te.createElement("span",{title:I},I&&(I==null?void 0:I.length)>=10?(I==null?void 0:I.substr(0,10))+"...":I||"--"))},{title:"\u63D0\u4EA4\u4EBA",dataIndex:"user_name",key:"user_name",width:100,render:I=>Te.createElement("span",{title:I},I&&(I==null?void 0:I.length)>=6?(I==null?void 0:I.substr(0,6))+"...":I||"--")},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",align:"center"},{title:"\u72B6\u6001",dataIndex:"status",key:"status",width:50,render:I=>Te.createElement("span",null,I===1?"\u8BA1\u7B97\u4E2D":I===2?"\u5B8C\u6210":I===0?"\u5F85\u8BA1\u7B97":I===3&&"\u9519\u8BEF")},!(fe!=null&&fe.display_four_indicators)&&(fe==null?void 0:fe.name)==="\u8BA1\u56FE\u6311\u6218\u70ED\u8EAB\u8D5B"&&{title:"\u6570\u636E\u6307\u68071",dataIndex:"data_ranking",key:"data_ranking",align:"center",render:I=>Te.createElement("span",null,I||"--")},!(fe!=null&&fe.display_four_indicators)&&(fe==null?void 0:fe.name)==="\u8BA1\u56FE\u6311\u6218\u70ED\u8EAB\u8D5B"&&{title:"\u6570\u636E\u6307\u68072",dataIndex:"data_other",key:"data_other",align:"left",render:I=>(I==null?void 0:I.length)>0?I==null?void 0:I.map((me,xe)=>Te.createElement("span",null,me==null?void 0:me.name,"\uFF1A",me==null?void 0:me.value," ",Te.createElement("br",null))):Te.createElement("span",null,"--")},(fe==null?void 0:fe.display_six_indicators)&&{title:"\u6570\u636E\u6307\u6807",dataIndex:"data_other",key:"data_other",align:"left",render:I=>(I==null?void 0:I.length)>0?I==null?void 0:I.map((me,xe)=>Te.createElement("span",null,me==null?void 0:me.name,"\uFF1A",me==null?void 0:me.value," ",Te.createElement("br",null))):Te.createElement("span",null,"--")},(fe==null?void 0:fe.display_five_indicators)&&{title:"top1\u6307\u6807",dataIndex:"data_indicators",key:"data_indicators",align:"left",render:I=>{var me;return((me=I==null?void 0:I[0])==null?void 0:me.value)||"- -"}},(fe==null?void 0:fe.display_five_indicators)&&{title:"top5\u6307\u6807",dataIndex:"data_indicators",key:"data_indicators",align:"left",render:I=>{var me;return((me=I==null?void 0:I[1])==null?void 0:me.value)||"- -"}},(fe==null?void 0:fe.display_four_indicators)&&{title:"mask accuary",dataIndex:"data_ranking",key:"data_ranking",align:"left",render:I=>Te.createElement("span",null,I||"--")},(fe==null?void 0:fe.display_one_indicators)&&{title:"mIoU",dataIndex:"data_other",key:"data_ranking",align:"left",render:I=>{var me;return Te.createElement("span",null,((me=I==null?void 0:I.find(xe=>(xe==null?void 0:xe.name)==="mIoU"))==null?void 0:me.value)||"--")}},(fe==null?void 0:fe.display_four_indicators)&&{title:"\u7F8E\u5B66\u8BC4\u5206",dataIndex:"data_other",key:"data_other",align:"left",render:I=>{var me;return Te.createElement("span",null,((me=I==null?void 0:I.find(xe=>(xe==null?void 0:xe.name)==="score"))==null?void 0:me.value)||"--")}},(fe==null?void 0:fe.display_four_indicators)&&{title:"FID",dataIndex:"data_other",key:"data_other",align:"left",render:I=>{var me;return Te.createElement("span",null,((me=I==null?void 0:I.find(xe=>(xe==null?void 0:xe.name)==="fid"))==null?void 0:me.value)||"--")}},(fe==null?void 0:fe.display_four_indicators)&&{title:"\u98CE\u683C\u76F8\u4F3C\u5EA6",dataIndex:"data_other",key:"data_other",align:"left",render:I=>{var me;return Te.createElement("span",null,((me=I==null?void 0:I.find(xe=>(xe==null?void 0:xe.name)==="style_similarity"))==null?void 0:me.value)||"--")}},(fe==null?void 0:fe.display_four_indicators)&&{title:"\u603B\u5206",dataIndex:"data_other",key:"data_other",align:"left",render:I=>{var me;return Te.createElement("span",null,((me=I==null?void 0:I.find(xe=>(xe==null?void 0:xe.name)==="total_score"))==null?void 0:me.value)||"--")}},!(fe!=null&&fe.display_four_indicators)&&(fe==null?void 0:fe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Car",dataIndex:"data_ranking",key:"data_ranking",align:"center",render:I=>Te.createElement("span",null,I||"--")},!(fe!=null&&fe.display_four_indicators)&&(fe==null?void 0:fe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Coffee",dataIndex:"data_other",key:"data_other",align:"center",render:I=>{var me;return Te.createElement("span",null,((me=I==null?void 0:I.find(xe=>(xe==null?void 0:xe.name)==="Coffee"))==null?void 0:me.value)||"--")}},!(fe!=null&&fe.display_four_indicators)&&(fe==null?void 0:fe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Easyship",dataIndex:"data_other",key:"data_other",align:"center",render:I=>{var me;return Te.createElement("span",null,((me=I==null?void 0:I.find(xe=>(xe==null?void 0:xe.name)==="Easyship"))==null?void 0:me.value)||"--")}},!(fe!=null&&fe.display_four_indicators)&&(fe==null?void 0:fe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Scar",dataIndex:"data_other",key:"data_other",align:"center",render:I=>{var me;return Te.createElement("span",null,((me=I==null?void 0:I.find(xe=>(xe==null?void 0:xe.name)==="Scar"))==null?void 0:me.value)||"--")}},!(fe!=null&&fe.display_four_indicators)&&(fe==null?void 0:fe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Scarf",dataIndex:"data_other",key:"data_other",align:"center",render:I=>{var me;return Te.createElement("span",null,((me=I==null?void 0:I.find(xe=>(xe==null?void 0:xe.name)==="Scarf"))==null?void 0:me.value)||"--")}},!(fe!=null&&fe.display_four_indicators)&&(fe==null?void 0:fe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"\u603B\u5206",dataIndex:"data_other",key:"data_other",align:"center",render:I=>{var me;return Te.createElement("span",null,((me=I==null?void 0:I.find(xe=>(xe==null?void 0:xe.name)==="Total"))==null?void 0:me.value)||"--")}},{title:"\u64CD\u4F5C",dataIndex:"result_url",width:50,key:"result_url",render:I=>Te.createElement("a",{href:I,target:"_blank",download:"\u9644\u4EF6"},"\u4E0B\u8F7D")}].filter(I=>!!I);return Te.createElement("div",null,((Bt=B==null?void 0:B.stages)==null?void 0:Bt.length)>0?null:Te.createElement(de,null),((Zt=B==null?void 0:B.stages)==null?void 0:Zt.length)>0&&Te.createElement(Z.default,{animated:!0,tabBarExtraContent:qe!=null&&qe.admin||qe!=null&&qe.business||we?Te.createElement(P.ZP,{onClick:()=>{Ne(!0)}},"\u7F16\u8F91"):Be.enrolled&&(fe==null?void 0:fe.start_time)&&(fe==null?void 0:fe.end_time)&&Te.createElement("span",null,"\u63D0\u4EA4\u65F6\u95F4\uFF1A",It()(fe==null?void 0:fe.start_time).format("YYYY-MM-DD HH:mm:ss"),"\u81F3",It()(fe==null?void 0:fe.end_time).format("YYYY-MM-DD HH:mm:ss"),Te.createElement(P.ZP,{style:{marginLeft:"20px"},disabled:It()(fe==null?void 0:fe.start_time).unix()>It()(It()().format("YYYY-MM-DD HH:mm:s")).unix()||It()(It()().format("YYYY-MM-DD HH:mm:s")).unix()>It()(fe==null?void 0:fe.end_time).unix(),onClick:()=>{se({type:"shixunsDetail/setActionTabs",payload:{key:"md-tab",params:{value:(ut==null?void 0:ut.id)||(fe==null?void 0:fe.id),id:oe==null?void 0:oe.id}}})}},"\u63D0\u4EA4\u7ED3\u679C")),onChange:I=>{var me,xe,nt,rt,Mt;Ne(!1);let He=(me=B==null?void 0:B.stages)==null?void 0:me.filter(Ke=>parseInt(I)===parseInt(Ke==null?void 0:Ke.id))[0],Ct=(xe=He==null?void 0:He.children)==null?void 0:xe[0];Ze(Ct),et(He),We(((Mt=(rt=(nt=B.rule_contents)==null?void 0:nt.filter(Ke=>parseInt(Ke.competition_stage_id)===parseInt(He==null?void 0:He.id)))==null?void 0:rt[0])==null?void 0:Mt.content)||""),L((Ct==null?void 0:Ct.id)||I)}},B&&B.stages.map((I,me)=>Te.createElement(pe,{tab:I.name,key:I.id===null?0:I.id},vt===!1&&B&&B.rule_contents.map((xe,nt)=>{if(I.id===xe.competition_stage_id)return Te.createElement(ee.Z,{key:nt,value:xe.content===void 0||xe.content===null?"":xe.content});if(I.id===null&&xe.competition_stage_id===0)return Te.createElement(ee.Z,{key:nt,value:xe.content===void 0||xe.content===null?"":xe.content})})))),((xt=fe==null?void 0:fe.children)==null?void 0:xt.length)===0&&(F==null?void 0:F.total_user_count)>0&&Te.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:10}},Te.createElement("div",{style:{width:"33%",height:44,background:"#EEF7FF",color:"#3061D0",textAlign:"center",lineHeight:"44px"}},"\u672C\u8D5B\u9053\u7684\u6218\u961F\u6570\u91CF\uFF1A",F==null?void 0:F.total_team_count),Te.createElement("div",{style:{width:"33%",height:44,background:"#EEF7FF",color:"#3061D0",textAlign:"center",lineHeight:"44px"}},"\u53C2\u8D5B\u4EBA\u6570\uFF1A",F==null?void 0:F.total_user_count),Te.createElement("div",{style:{width:"33%",height:44,background:"#EEF7FF",color:"#3061D0",textAlign:"center",lineHeight:"44px"}},"\u63D0\u4EA4\u8BC4\u6D4B\u6B21\u6570\uFF1A",F==null?void 0:F.total_count)),((_t=fe==null?void 0:fe.children)==null?void 0:_t.length)>0&&Te.createElement(Z.default,{activeKey:(ut==null?void 0:ut.id)+"",onChange:I=>{var me;let xe=(me=fe==null?void 0:fe.children)==null?void 0:me.filter(nt=>parseInt(I)===parseInt(nt==null?void 0:nt.id))[0];Ze(xe),L(I)}},(bt=fe==null?void 0:fe.children)==null?void 0:bt.map((I,me)=>Te.createElement(pe,{tab:I.name,key:I.id===null?0:I.id}))),((Et=fe==null?void 0:fe.children)==null?void 0:Et.length)>0&&(F==null?void 0:F.total_user_count)>0&&Te.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:10}},Te.createElement("div",{style:{width:"33%",height:44,background:"#EEF7FF",color:"#3061D0",textAlign:"center",lineHeight:"44px"}},"\u672C\u8D5B\u9053\u7684\u6218\u961F\u6570\u91CF\uFF1A",F==null?void 0:F.total_team_count),Te.createElement("div",{style:{width:"33%",height:44,background:"#EEF7FF",color:"#3061D0",textAlign:"center",lineHeight:"44px"}},"\u53C2\u8D5B\u4EBA\u6570\uFF1A",F==null?void 0:F.total_user_count),Te.createElement("div",{style:{width:"33%",height:44,background:"#EEF7FF",color:"#3061D0",textAlign:"center",lineHeight:"44px"}},"\u63D0\u4EA4\u8BC4\u6D4B\u6B21\u6570\uFF1A",F==null?void 0:F.total_count)),vt&&Te.createElement("div",null,Te.createElement(gt.Z,{defaultValue:Ae,onChange:I=>{We(I)}}),Te.createElement("p",{style:{marginTop:"10px"}},Te.createElement(P.ZP,{style:{width:"90px"},type:"primary",onClick:()=>st()},"\u63D0\u4EA4"),Te.createElement(P.ZP,{style:{marginLeft:"30px",width:"90px"},onClick:()=>Ne(!1)},"\u53D6\u6D88"))),((H=(Xe=oe.competition_modules.filter(I=>I.id===ke))==null?void 0:Xe[0])==null?void 0:H.show_leaderboard)&&Te.createElement(b.default,{dataSource:F==null?void 0:F.results,columns:Pt}))}var z=c,ue=V(28452),n=Object.defineProperty,X=Object.defineProperties,R=Object.getOwnPropertyDescriptors,$=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Ie=(B,F,L)=>F in B?n(B,F,{enumerable:!0,configurable:!0,writable:!0,value:L}):B[F]=L,Ee=(B,F)=>{for(var L in F||(F={}))ae.call(F,L)&&Ie(B,L,F[L]);if($)for(var L of $(F))Se.call(F,L)&&Ie(B,L,F[L]);return B},$e=(B,F)=>X(B,R(F)),pt=(B,F,L)=>new Promise((ke,oe)=>{var be=se=>{try{we(L.next(se))}catch(Be){oe(Be)}},qe=se=>{try{we(L.throw(se))}catch(Be){oe(Be)}},we=se=>se.done?ke(se.value):Promise.resolve(se.value).then(be,qe);we((L=L.apply(B,F)).next())});const{TabPane:Ye}=Z.default;function Le({loading:B,ChartRules:F,ItemData:L,getCharts:ke,Selectkey:oe,HeaderDetail:be,getChartRules:qe,userinfo:we,Editable:se,dispatch:Be,StaffDetail:Bt}){var Zt,xt,_t,bt,Et,Xe;const[H,vt]=(0,a.useState)(!1),[Ne,Ae]=(0,a.useState)(""),[We,Rt]=(0,a.useState)(!0),[wt,fe]=(0,a.useState)(),[et,ut]=(0,a.useState)(),{identifier:Ze}=(0,Pe.useParams)();let[De,st]=(0,a.useState)({page:1,limit:10,sort:"desc"});(0,a.useEffect)(()=>{var I;We&&((I=F==null?void 0:F.stages)!=null&&I[0])&&Pt()},[(Zt=F==null?void 0:F.stages)==null?void 0:Zt[0]]);const Pt=()=>pt(this,null,function*(){var I,me,xe,nt;let rt=(I=F==null?void 0:F.stages)==null?void 0:I[0];fe(rt);let Mt=(nt=(xe=(me=F==null?void 0:F.stages)==null?void 0:me[0])==null?void 0:xe.children)==null?void 0:nt[0];ut(Mt),De.id=(Mt==null?void 0:Mt.id)||(rt==null?void 0:rt.id),st(Ee({},De)),yield ke($e(Ee({},De),{stage_id:De.id}))});return a.createElement("div",null,((xt=F==null?void 0:F.stages)==null?void 0:xt.length)>0?null:a.createElement(de,null),((_t=F==null?void 0:F.stages)==null?void 0:_t.length)>0&&a.createElement(Z.default,{tabBarStyle:{height:65,marginLeft:35,marginRight:30},animated:!0,onChange:I=>pt(this,null,function*(){var me,xe,nt,rt,Mt;vt(!1);let He=(me=F==null?void 0:F.stages)==null?void 0:me.filter(Ke=>parseInt(I)===parseInt(Ke==null?void 0:Ke.id))[0],Ct=(xe=He==null?void 0:He.children)==null?void 0:xe[0];ut(Ct),fe(He),Ae(((Mt=(rt=(nt=F.rule_contents)==null?void 0:nt.filter(Ke=>parseInt(Ke.competition_stage_id)===parseInt(He==null?void 0:He.id)))==null?void 0:rt[0])==null?void 0:Mt.content)||""),De.page=1,De.limit=10,De.id=(Ct==null?void 0:Ct.id)||I,st(Ee({},De)),yield ke(Ee({},De))})},F&&F.stages.map((I,me)=>a.createElement(Ye,{tab:I.name,key:I.id===null?0:I.id}))),((bt=wt==null?void 0:wt.children)==null?void 0:bt.length)>0&&a.createElement(Z.default,{activeKey:(et==null?void 0:et.id)+"",onChange:I=>pt(this,null,function*(){var me;let xe=(me=wt==null?void 0:wt.children)==null?void 0:me.filter(nt=>parseInt(I)===parseInt(nt==null?void 0:nt.id))[0];ut(xe),De.page=1,De.limit=10,De.id=I,st(Ee({},De)),yield ke(Ee({},De))})},(Et=wt==null?void 0:wt.children)==null?void 0:Et.map((I,me)=>a.createElement(Ye,{tab:I.name,key:I.id===null?0:I.id}))),a.createElement("div",{style:{height:10,background:"#F5F5F5"}}),a.createElement("div",{style:{padding:"20px 30px"}},a.createElement("span",{style:{cursor:"pointer",marginRight:20},onClick:()=>{De.page=1,De.sort=De.sort==="desc"?"asc":"desc",st(Ee({},De)),ke(Ee({},De))}},"\u6309\u63D0\u4EA4\u65F6\u95F4",De.sort==="asc"?"\u6B63":"\u5012","\u5E8F\u6392\u5E8F ",a.createElement("i",{className:`iconfont font14 ${De.sort==="asc"?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-"}`}))," ",a.createElement(j.default.Search,{onSearch:I=>{De.page=1,De.search=I,st(Ee({},De)),ke(Ee({},De))},style:{width:"82%"},placeholder:"\u8F93\u5165\u4EBA\u5458/\u6218\u961F\u540D\u79F0\u8FDB\u884C\u641C\u7D22"}),a.createElement(M.Z,{spinning:B},(Xe=L==null?void 0:L.results)==null?void 0:Xe.map((I,me)=>a.createElement("div",{style:{border:"1px solid #E3EFFC",height:100,borderRadius:"2px 2px 0px 0px",marginTop:me===0?14:30}},a.createElement("div",{style:{height:60,padding:10,display:"flex",alignItems:"center"}},a.createElement("img",{src:J.Z.IMG_SERVER+"/images/"+(I==null?void 0:I.image_url),style:{width:40,height:40,borderRadius:"50%"}}),a.createElement("div",{style:{marginLeft:10}},a.createElement("span",{style:{color:"#333333",fontWeight:500,fontSize:"16px"}},I==null?void 0:I.user_name),a.createElement("span",{style:{color:"#999999",fontWeight:400,fontSize:"14px",marginLeft:60}},"\u6240\u5C5E\u6218\u961F",a.createElement("span",{style:{marginLeft:10,color:"#333"}},(I==null?void 0:I.team_name)||"- -")),a.createElement("span",{style:{color:"#333333",fontWeight:400,fontSize:"14px",marginLeft:40}},"\u5B66\u6821 ",a.createElement("span",{style:{marginLeft:10,color:"#333"}},(I==null?void 0:I.school_name)||"- -")))),a.createElement("div",{style:{background:"#EEF2F8",height:40,borderRadius:"0px 0px 2px 2px",paddingLeft:60,paddingRight:40,display:"flex",alignItems:"center",justifyContent:"space-between"}},a.createElement("div",null,a.createElement("span",{style:{color:"#666666",fontSize:"12px"}},"\u63D0\u4EA4\u65F6\u95F4\uFF1A",I==null?void 0:I.created_at),a.createElement("span",{style:{color:"#666666",fontSize:"12px",margin:"0px 40px"}},"\u6D88\u8017\u5185\u5B58\uFF1A",(I==null?void 0:I.ts_mem)||"- -","MB"),a.createElement("span",{style:{color:"#666666",fontSize:"12px"}},"\u4EE3\u7801\u6267\u884C\u65F6\u95F4\uFF1A",(I==null?void 0:I.ts_time)||"- -","\u79D2")),a.createElement("a",{style:{display:"flex",alignItems:"center"},href:`/tasks/${I==null?void 0:I.game_identifier}`,target:"_blank"},a.createElement("i",{className:"iconfont icon-chakandaima",style:{marginRight:4}}),a.createElement("span",{style:{lineHeight:"14px"}},"\u67E5\u770B\u4EE3\u7801")))))),a.createElement(ue.Z,{total:L==null?void 0:L.total_count,pageSize:10,hideOnSinglePage:!0,style:{marginTop:40,textAlign:"center"},showSizeChanger:!1,current:De.page,onChange:(I,me)=>{De.page=I,st(Ee({},De)),ke(Ee({},De))}})))}var ze=Le,ct=V(3107),Me=Object.defineProperty,Qe=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable,pn=(B,F,L)=>F in B?Me(B,F,{enumerable:!0,configurable:!0,writable:!0,value:L}):B[F]=L,en=(B,F)=>{for(var L in F||(F={}))Ut.call(F,L)&&pn(B,L,F[L]);if(kt)for(var L of kt(F))Gt.call(F,L)&&pn(B,L,F[L]);return B},hn=(B,F)=>Qe(B,yt(F)),vn=(B,F,L)=>new Promise((ke,oe)=>{var be=se=>{try{we(L.next(se))}catch(Be){oe(Be)}},qe=se=>{try{we(L.throw(se))}catch(Be){oe(Be)}},we=se=>se.done?ke(se.value):Promise.resolve(se.value).then(be,qe);we((L=L.apply(B,F)).next())});const{TabPane:tn}=Z.default;function bn({loading:B,ChartRules:F,ItemData:L,getCharts:ke,Selectkey:oe,HeaderDetail:be,getChartRules:qe,userinfo:we,Editable:se,dispatch:Be,StaffDetail:Bt}){var Zt,xt,_t,bt,Et,Xe,H;const[vt,Ne]=(0,a.useState)(!1),[Ae,We]=(0,a.useState)(""),[Rt,wt]=(0,a.useState)(!0),[fe,et]=(0,a.useState)(),[ut,Ze]=(0,a.useState)(),[De,st]=(0,a.useState)([]),{identifier:Pt}=(0,Pe.useParams)();let[I,me]=(0,a.useState)({page:1,limit:10}),[xe,nt]=(0,a.useState)();(0,a.useEffect)(()=>{var He;Rt&&((He=F==null?void 0:F.stages)!=null&&He[0])&&rt()},[(Zt=F==null?void 0:F.stages)==null?void 0:Zt[0]]),(0,a.useEffect)(()=>{rt()},[]);const rt=()=>vn(this,null,function*(){var He,Ct,Ke,Tt;let Nt=(He=F==null?void 0:F.stages)==null?void 0:He[0];et(Nt);let jt=(Tt=(Ke=(Ct=F==null?void 0:F.stages)==null?void 0:Ct[0])==null?void 0:Ke.children)==null?void 0:Tt[0];Ze(jt),I.id=(jt==null?void 0:jt.id)||(Nt==null?void 0:Nt.id),me(en({},I)),yield ke(hn(en({},I),{stage_id:I.id}))});(0,a.useEffect)(()=>{be!=null&&be.is_new&&Mt()},[be]);function Mt(){return vn(this,null,function*(){let He=yield(0,W.ZP)(`/api/competitions/${Pt}/get_shixun_settings.json`,{method:"get"});(He==null?void 0:He.status)===0&&st(He)})}return a.createElement("div",null,((xt=F==null?void 0:F.stages)==null?void 0:xt.length)>0?null:a.createElement(de,null),((_t=F==null?void 0:F.stages)==null?void 0:_t.length)>0&&a.createElement(Z.default,{tabBarStyle:{height:65,marginLeft:35,marginRight:30},animated:!0,onChange:He=>vn(this,null,function*(){var Ct,Ke,Tt,Nt,jt;Ne(!1);let on=(Ct=F==null?void 0:F.stages)==null?void 0:Ct.filter(un=>parseInt(He)===parseInt(un==null?void 0:un.id))[0],Vt=(Ke=on==null?void 0:on.children)==null?void 0:Ke[0];Ze(Vt),et(on),We(((jt=(Nt=(Tt=F.rule_contents)==null?void 0:Tt.filter(un=>parseInt(un.competition_stage_id)===parseInt(on==null?void 0:on.id)))==null?void 0:Nt[0])==null?void 0:jt.content)||""),I.page=1,I.limit=10,I.id=(Vt==null?void 0:Vt.id)||He,me(en({},I)),yield ke(en({},I))})},F&&F.stages.map((He,Ct)=>a.createElement(tn,{tab:He.name,key:He.id===null?0:He.id}))),((bt=fe==null?void 0:fe.children)==null?void 0:bt.length)>0&&a.createElement(Z.default,{activeKey:(ut==null?void 0:ut.id)+"",tabBarStyle:{height:65,marginLeft:35,marginRight:30},onChange:He=>vn(this,null,function*(){var Ct;let Ke=(Ct=fe==null?void 0:fe.children)==null?void 0:Ct.filter(Tt=>parseInt(He)===parseInt(Tt==null?void 0:Tt.id))[0];Ze(Ke),I.page=1,I.limit=10,I.id=He,me(en({},I)),yield ke(en({},I))})},(Et=fe==null?void 0:fe.children)==null?void 0:Et.map((He,Ct)=>a.createElement(tn,{tab:He.name,key:He.id===null?0:He.id}))),a.createElement("div",{style:{height:10,background:"#F5F5F5"}}),a.createElement("div",{style:{padding:"20px 30px"}},a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},a.createElement("span",{style:{color:"#9096A3"}},"\u4F5C\u54C1\u63D0\u4EA4\u65F6\u95F4",a.createElement("span",{style:{color:"#333333",marginLeft:5}},L==null?void 0:L.start_time,"~",L==null?void 0:L.end_time)),a.createElement("span",{style:{color:"#9096A3"}},"\u6210\u7EE9\u6765\u6E90",a.createElement("span",{style:{color:"#333333",marginLeft:5}},(L==null?void 0:L.score_source)===0?"\u7ECF\u9A8C\u503C":"\u9884\u6D4B\u51C6\u786E\u7387")," ")),a.createElement(M.Z,{spinning:B},!(be!=null&&be.is_new)&&((Xe=L==null?void 0:L.results)==null?void 0:Xe.map((He,Ct)=>a.createElement(ct.Z,{dispatch:Be,Header:be,StaffDetail:Bt,item:He,index:Ct}))),(be==null?void 0:be.is_new)&&((H=De==null?void 0:De.data)==null?void 0:H.map((He,Ct)=>a.createElement(ct.Z,{dispatch:Be,Header:be,StaffDetail:Bt,item:He,index:Ct})))),a.createElement(ue.Z,{total:L==null?void 0:L.total_count,pageSize:10,hideOnSinglePage:!0,style:{marginTop:40,textAlign:"center"},showSizeChanger:!1,current:I.page,onChange:(He,Ct)=>{I.page=He,me(en({},I)),ke(en({},I))}})))}var qn=bn,er=V(38161),tr=V(84189),nr=V(59990),Sn=V(22150),rr=V(54262),gn={WorkSubmitDesc:"WorkSubmitDesc___zk_Kc",WorkSubmit:"WorkSubmit___BOuVl",span:"span___sGFYr",search:"search___wZWVl",downBut:"downBut___tfNYQ"},ir=V(26194),Pn=V(60580),ar=V(55733),Nn=V.n(ar),ve=V(67294),lr=Object.defineProperty,or=Object.defineProperties,ur=Object.getOwnPropertyDescriptors,$n=Object.getOwnPropertySymbols,sr=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable,Hn=(B,F,L)=>F in B?lr(B,F,{enumerable:!0,configurable:!0,writable:!0,value:L}):B[F]=L,Cn=(B,F)=>{for(var L in F||(F={}))sr.call(F,L)&&Hn(B,L,F[L]);if($n)for(var L of $n(F))dr.call(F,L)&&Hn(B,L,F[L]);return B},Gn=(B,F)=>or(B,ur(F)),nn=(B,F,L)=>new Promise((ke,oe)=>{var be=se=>{try{we(L.next(se))}catch(Be){oe(Be)}},qe=se=>{try{we(L.throw(se))}catch(Be){oe(Be)}},we=se=>se.done?ke(se.value):Promise.resolve(se.value).then(be,qe);we((L=L.apply(B,F)).next())});const cr=({dispatch:B,userinfo:F,Editable:L,ItemData:ke,TabResults:oe,HeaderDetail:be,StaffDetail:qe,getTabResults:we=()=>{}})=>{var se,Be,Bt,Zt,xt,_t,bt;const[Et]=Sn.default.useForm(),[Xe,H]=(0,a.useState)(!1),[vt,Ne]=(0,a.useState)(!1),{identifier:Ae}=(0,Pe.useParams)(),[We,Rt]=(0,a.useState)(1),[wt,fe]=(0,a.useState)(!1),[et,ut]=(0,a.useState)(!1),[Ze,De]=(0,a.useState)([]),[st,Pt]=(0,a.useState)(!1),[I,me]=(0,a.useState)([]),[xe,nt]=(0,a.useState)(!1),[rt,Mt]=(0,a.useState)({name:"",url:"",id:null,fileList:[],competition_team_id:""}),[He,Ct]=(0,a.useState)({total_count:0,results:[]}),[Ke,Tt]=(0,a.useState)(null),[Nt,jt]=(0,a.useState)({page:1,limit:20,keyword:""}),[on,Vt]=(0,a.useState)("");let un=(0,a.useRef)(new(Nn()));(0,a.useEffect)(()=>{fe((F==null?void 0:F.admin)||(F==null?void 0:F.business)||L)},[F==null?void 0:F.admin,F==null?void 0:F.business,L]),(0,a.useEffect)(()=>{ke!=null&&ke.only_file&&Rt(2)},[ke]),(0,a.useEffect)(()=>{var ye,Ge,Ft,Yt,Xt,sn,rn,Wt;oe.stages&&((ye=oe.stages)==null?void 0:ye.length)>0&&(((Yt=(Ft=(Ge=oe.stages)==null?void 0:Ge[0])==null?void 0:Ft.children)==null?void 0:Yt.length)>0?Tt(((rn=(sn=(Xt=oe.stages)==null?void 0:Xt[0])==null?void 0:sn.children)==null?void 0:rn[0])||null):Tt(((Wt=oe.stages)==null?void 0:Wt[0])||null))},[oe.stages]),(0,a.useEffect)(()=>{dn(),Dn()},[Ke==null?void 0:Ke.id,Nt.page,Nt.limit]);function Un(){return nn(this,null,function*(){var ye,Ge;nt(!0);let Ft=yield(0,W.ZP)(`/api/competitions/${Ae}/my_teams`,{method:"get"});nt(!1),ut(!0),(Ft==null?void 0:Ft.status)===0&&(me(Ft==null?void 0:Ft.data),Et.setFieldsValue({name:"",url:"",id:"",competition_team_id:(Ge=(ye=Ft==null?void 0:Ft.data)==null?void 0:ye[0])==null?void 0:Ge.id}))})}function Dn(){return nn(this,null,function*(){let ye=yield(0,W.ZP)(`/api/competitions/${Ae}/my_teams`,{method:"get"});(ye==null?void 0:ye.status)===0&&me(ye==null?void 0:ye.data)})}const In=[{title:ve.createElement("span",{style:{color:"#5F6368"}},"\u961F\u4F0D\u540D\u79F0"),dataIndex:"team_name",width:"120px",ellipsis:!0,render:ye=>ve.createElement(ot.Z,{placement:"topLeft",title:ye},ye||"- -"),isShow:[1,2]},{title:ve.createElement("span",{style:{color:"#5F6368"}},"\u63D0\u4EA4\u4EBA"),dataIndex:"user_name",width:"120px",ellipsis:!0,render:ye=>ve.createElement(ot.Z,{placement:"topLeft",title:ye},ye||"- -"),isShow:[1,2]},{title:ve.createElement("span",{style:{color:"#5F6368"}},"\u4F5C\u54C1\u540D\u79F0"),dataIndex:"name",ellipsis:!0,render:(ye,Ge)=>ye?ve.createElement("a",{href:Ge.url||"#",target:"_blank"},ve.createElement(ot.Z,{placement:"topLeft",title:ye},ye)):"--",isShow:[1]},{title:ve.createElement("span",{style:{color:"#5F6368"}},"\u4F5C\u54C1\u6587\u4EF6"),dataIndex:"file_name",width:We==1?"180px":"",ellipsis:!0,render:ye=>ve.createElement(ot.Z,{placement:"topLeft",title:ye},ye||"- -"),isShow:[1,2]},{title:ve.createElement("span",{style:{color:"#5F6368"}},"\u66F4\u65B0\u65F6\u95F4"),dataIndex:"updated_at",width:"180px",render:ye=>ye||"- -",isShow:[1,2]},{title:ve.createElement("span",{style:{color:"#5F6368"}},"\u64CD\u4F5C"),dataIndex:"result_url",ellipsis:!0,width:"200px",align:"center",render:(ye,Ge)=>ve.createElement(Q.Z,{justify:wt?"center":"space-between"},!wt&&ve.createElement(P.ZP,{type:"link",onClick:()=>{ut(!0),Mt({name:Ge.name,url:Ge.url,id:Ge.id,competition_team_id:Ge.competition_team_id}),Et.setFieldsValue({name:Ge.name,url:Ge.url,id:Ge.id,competition_team_id:Ge.competition_team_id}),Ge.file_name&&De([{uid:"-1",name:Ge.file_name,status:"done",url:Ge.result_url||""}])}},"\u7F16\u8F91"),ve.createElement(Pn.Z,{type:"link",disabled:!ye,onClick:()=>nn(void 0,null,function*(){return(0,Ot.Nd)(Ge.file_name,ye)})},wt?"\u4E0B\u8F7D\u6587\u4EF6":"\u4E0B\u8F7D"),!wt&&ve.createElement(P.ZP,{type:"link",onClick:()=>nn(void 0,null,function*(){v.default.confirm({title:"\u63D0\u793A",content:"\u63D0\u4EA4\u4F5C\u54C1\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D\uFF0C\u786E\u8BA4\u5220\u9664\u8BE5\u4F5C\u54C1",onOk:()=>nn(void 0,null,function*(){let Ft=yield(0,W.ZP)(`/api/competitions/${Ae}/delete_result.json`,{method:"Delete",body:{result_id:Ge==null?void 0:Ge.id}});(Ft==null?void 0:Ft.status)===0&&(u.ZP.info("\u5220\u9664\u6210\u529F"),dn())})})})},"\u5220\u9664")),isShow:[1,2]}].filter(ye=>ye.isShow.includes(We)),dn=()=>nn(void 0,null,function*(){Pt(!0);const ye=yield B({type:"competitions/Results",payload:Cn({identifier:Ae,stage_id:Ke==null?void 0:Ke.id,module_type:"worksubmit"},Nt)});Ct(ye),Pt(!1)}),Fn=ye=>nn(void 0,null,function*(){const Ge=yield B({type:"competitions/updateMdContent",payload:{identifier:Ae,stage_id:Ke==null?void 0:Ke.id,competition_module_id:ke.id,content:on,md_content_id:ye==null?void 0:ye.id}});Ge.status==0&&u.ZP.success(Ge.message),Ne(!1),yield we()}),Ln=ye=>nn(void 0,null,function*(){var Ge;if(We==2&&Ze.length==0){u.ZP.error("\u8BF7\u9009\u62E9\u6587\u4EF6");return}H(!0);let Ft;const Yt={login:F==null?void 0:F.login,container_type:"Competition",file_name:(Ge=Ze==null?void 0:Ze[0])==null?void 0:Ge.name,stage_type:Ke==null?void 0:Ke.id,container_id:be==null?void 0:be.id,result_id:rt==null?void 0:rt.id,module_type:"worksubmit",competition_team_id:ye.competition_team_id};if(We==1){const Xt=yield(0,W.ZP)(`/api/competitions/${Ae}/check_result_url.json`,{method:"GET",params:{url:ye.url,stage_id:Ke==null?void 0:Ke.id,result_id:rt==null?void 0:rt.id,competition_team_id:ye.competition_team_id}});if((Xt==null?void 0:Xt.status)!=0){H(!1);return}Yt.name=ye.name,Yt.url=ye.url}We==1&&Ze.length==0?Ft=yield B({type:"competitions/getWorkSubmitUpdateRes",payload:{identifier:Ae,result_id:rt==null?void 0:rt.id,name:ye.name,url:ye.url,stage_id:Ke==null?void 0:Ke.id,result_url:rt==null?void 0:rt.result_url,module_type:"worksubmit",competition_team_id:ye.competition_team_id}}):Ft=yield(0,h.cT)(Ze[0],Yt),(Ft==null?void 0:Ft.status)==0?u.ZP.success("\u63D0\u4EA4\u6210\u529F"):u.ZP.info((Ft==null?void 0:Ft.message)||"\u63D0\u4EA4\u5931\u8D25"),H(!1),ut(!1),De([]),dn()}),kn=()=>nn(void 0,null,function*(){var ye;const Ge=yield B({type:"competitions/Results",payload:{identifier:Ae,stage_id:Ke==null?void 0:Ke.id,page:1,limit:9999999,keyword:"",module_type:"worksubmit"}}),Ft=(ye=Ge==null?void 0:Ge.results)==null?void 0:ye.filter(Ht=>(Ht==null?void 0:Ht.result_url)&&Ht.file_name),Yt=v.default.info({width:460,title:ve.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u53C2\u8D5B\u6587\u4EF6,",ve.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:ve.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",ve.createElement("span",{className:"c-blue"},0),"/",Ft.length),maskClosable:!1,className:gn.modal,onOk:()=>{}}),Xt=[];let sn=800*1024*1024,rn=0,Wt=0;const cn=(Ht,mn)=>nn(void 0,null,function*(){try{const An=new(Nn()),yn=yield(yield fetch(Ht.result_url,{method:"get"})).blob();An.file(Ht.file_name,yn);const Rn=yield An.generateAsync({type:"blob"}),Zn=yn.size;rn+Zn>sn&&(yield un.current.generateAsync({type:"blob"}).then(an=>{(0,Ot.Nd)(`${be.name}-batch${Wt+1}`,window.URL.createObjectURL(an))}),un.current=new(Nn()),rn=0,Wt++);const On=(an,ln=0)=>{ln==0&&Xt.includes(an)||Xt.includes(`${an}(${ln})`)?On(an,ln+1):(Xt.push(ln==0?an:`${an}(${ln})`),un.current.file(ln==0?an+".zip":`${an}(${ln}).zip`,Rn),rn+=Zn)};On(`${Ht==null?void 0:Ht.team_name}-${Ht==null?void 0:Ht.user_name}`),Yt.update({content:ve.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",ve.createElement("span",{className:"c-blue"},mn),"/",Ft.length)})}catch(An){u.ZP.error(`${Ht.file_name}\u4E0B\u8F7D\u5931\u8D25`)}}),wn=()=>nn(void 0,null,function*(){let Ht=0;for(const mn of Ft)yield cn(mn,++Ht);rn>0&&(yield un.current.generateAsync({type:"blob"}).then(mn=>{(0,Ot.Nd)(`${be.name}-batch${Wt+1}`,window.URL.createObjectURL(mn))})),Yt.destroy()});console.log("DownloadList===",Ft),Ft.length>0&&wn()}),Bn={maxCount:1,withCredentials:!0,fileList:Ze,onRemove:()=>{De([])},beforeUpload:ye=>{const Ge=ye.size/1024/1024,Ft=ye.name.split(".").slice(-1)[0].toLowerCase();return We==1&&Ge>150||We==2&&Ge/1024>1||Ge==0?(u.ZP.error(`${ye.name} \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002${Ge==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":`\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${We==1?"150MB":"1G"})`}`),Promise.reject()):(De([ye]),!1)}};return ve.createElement("div",{className:gn.WorkSubmit},Ke?ve.createElement(Z.default,{defaultActiveKey:((Be=(se=oe.stages)==null?void 0:se[0])==null?void 0:Be.id)||1,destroyInactiveTabPane:!0,tabBarExtraContent:ve.createElement(Q.Z,{style:{marginBottom:"10px"}},!wt&&qe.enrolled&&ve.createElement(P.ZP,{type:"primary",onClick:()=>ut(!0)},"\u4F5C\u54C1\u63D0\u4EA4"),wt&&!vt&&ve.createElement(P.ZP,{style:{marginLeft:"10px"},type:"primary",onClick:()=>Ne(!0)},"\u7F16\u8F91")),onChange:ye=>{const Ge=oe.stages.find(Ft=>Ft.id==ye);Ge.children.length>0?Tt(Ge.children[0]):Tt(Ge)}},(Bt=oe.stages)==null?void 0:Bt.map((ye,Ge)=>{var Ft,Yt,Xt,sn,rn,Wt;return ve.createElement(Z.default.TabPane,{tab:ve.createElement("div",{style:{marginBottom:"20px"}},ye.name),key:ye.id},vt?ve.createElement(ve.Fragment,null,ve.createElement(gt.Z,{defaultValue:((Ft=oe.rule_contents[Ge])==null?void 0:Ft.content)||"",onChange:cn=>Vt(cn)}),ve.createElement(Q.Z,null,ve.createElement(Pn.Z,{type:"primary",onClick:()=>Fn(oe.rule_contents[Ge])},"\u63D0\u4EA4"),ve.createElement(P.ZP,{style:{marginLeft:"10px"},onClick:()=>nn(void 0,null,function*(){return Ne(!1)})},"\u53D6\u6D88"))):ve.createElement(ee.Z,{style:{marginTop:"10px"},value:((Yt=oe.rule_contents[Ge])==null?void 0:Yt.content)||""}),((Xt=ye.children)==null?void 0:Xt.length)>0&&ve.createElement(Z.default,{defaultActiveKey:(rn=(sn=ye.children)==null?void 0:sn[0])==null?void 0:rn.id,destroyInactiveTabPane:!0,onChange:cn=>{var wn;Tt((wn=ye.children)==null?void 0:wn.find(Ht=>Ht.id==cn))}},(Wt=ye.children)==null?void 0:Wt.map(cn=>ve.createElement(Z.default.TabPane,{tab:cn.name,key:cn.id}))))})):ve.createElement("div",null,(qe.enrolled||wt)&&ve.createElement(Q.Z,{style:{marginBottom:"10px",paddingBottom:"10px",borderBottom:"1px solid #eee"}},!wt&&qe.enrolled&&ve.createElement(P.ZP,{style:{marginLeft:"auto"},loading:xe,type:"primary",onClick:()=>{Un()}},"\u4F5C\u54C1\u63D0\u4EA4"),wt&&!vt&&ve.createElement(P.ZP,{style:{marginLeft:!wt&&qe.enrolled?"10px":"auto"},type:"primary",onClick:()=>Ne(!0)},"\u7F16\u8F91")),vt?ve.createElement(ve.Fragment,null,ve.createElement(gt.Z,{defaultValue:((xt=(Zt=oe.rule_contents)==null?void 0:Zt[0])==null?void 0:xt.content)||"",onChange:ye=>Vt(ye)}),ve.createElement(Q.Z,null,ve.createElement(Pn.Z,{type:"primary",onClick:()=>{var ye;return Fn((ye=oe.rule_contents)==null?void 0:ye[0])}},"\u63D0\u4EA4"),ve.createElement(P.ZP,{style:{marginLeft:"10px"},onClick:()=>nn(void 0,null,function*(){return Ne(!1)})},"\u53D6\u6D88"))):ve.createElement(ee.Z,{style:{marginTop:"10px"},value:((bt=(_t=oe.rule_contents)==null?void 0:_t[0])==null?void 0:bt.content)||""})),ve.createElement(Q.Z,{align:"middle",justify:"space-between",style:{marginTop:"21px"}},ve.createElement(Q.Z,{align:"middle"},ve.createElement(j.default,{className:gn.search,placeholder:"\u8BF7\u8F93\u5165\u961F\u4F0D\u540D\u79F0\u6216\u63D0\u4EA4\u4EBA\u59D3\u540D\u641C\u7D22",suffix:ve.createElement("i",{className:"iconfont icon-sousuo9",onClick:dn,style:{color:"#000",cursor:"pointer",fontSize:"14px"}}),onChange:ye=>{Nt.keyword=ye.target.value,Nt.search=ye.target.value,jt(Nt)},style:{background:"#F6F7F9"},bordered:!1,onPressEnter:dn}),ve.createElement("div",{style:{color:"#9B9B9B",fontSize:"14px",marginLeft:"20px"}},"\u5F53\u524D\u5171\u8BA1\u4F5C\u54C1",ve.createElement("span",{style:{color:"#165DFF"}},He.total_count),"\u4E2A")),wt&&ve.createElement(Q.Z,{align:"middle"},We==1&&ve.createElement(P.ZP,{style:{lineHeight:"32px"},target:"_blank",href:`/api/competitions/${Ae}/results.xlsx?identifier=${Ae}&stage_id=${(Ke==null?void 0:Ke.id)||""}&module_type=worksubmit`,icon:ve.createElement("i",{className:"iconfont icon-lianjie3",style:{fontSize:"16px",color:"#44D7B6"}}),className:gn.downBut},"\u4E0B\u8F7D\u4F5C\u54C1\u94FE\u63A5"),ve.createElement(Pn.Z,{icon:ve.createElement("i",{className:"iconfont icon-wenjian4",style:{fontSize:"16px",color:"#F6C555"}}),className:gn.downBut,style:{marginLeft:"20px"},onClick:kn},"\u4E0B\u8F7D\u6240\u6709\u6587\u4EF6"))),ve.createElement(b.default,{style:{marginTop:"17px"},loading:st,columns:In,dataSource:He.results,locale:{emptyText:ve.createElement(ir.Z,null)},pagination:!1}),ve.createElement(Q.Z,{style:{marginTop:"20px"},align:"middle",justify:"space-between"},((Ke==null?void 0:Ke.end_time)&&(Ke==null?void 0:Ke.start_time)||be.start_time&&be.end_time)&&ve.createElement("span",{className:gn.span},"\u63D0\u4EA4\u65F6\u95F4\uFF1A",ve.createElement("span",null,It()((Ke==null?void 0:Ke.start_time)||be.start_time).format("YYYY-MM-DD HH:mm:ss"))," \u81F3 ",ve.createElement("span",null,It()((Ke==null?void 0:Ke.end_time)||be.end_time).format("YYYY-MM-DD HH:mm:ss"))),ve.createElement(ue.Z,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!0,current:Nt.page,pageSize:Nt.limit,onChange:(ye,Ge)=>jt(Gn(Cn({},Nt),{page:ye,limit:Ge})),onShowSizeChange:(ye,Ge)=>jt(Gn(Cn({},Nt),{page:1,limit:Ge})),total:He.total_count||0})),ve.createElement(v.default,{centered:!0,destroyOnClose:!0,title:ve.createElement("div",{style:{fontWeight:"500",color:"#000000",marginTop:"10px"}},"\u4F5C\u54C1\u63D0\u4EA4"),open:et,bodyStyle:{padding:" 0px 25px 10px 25px"},onOk:()=>Et.submit(),confirmLoading:Xe,onCancel:()=>{ut(!1),De([]),Mt(null)}},ve.createElement("div",{className:gn.WorkSubmitDesc},"\u8BF4\u660E\uFF1A\u5927\u8D5B\u8FDB\u884C\u4E2D\u4E0A\u4F20\u540E\u7684\u4F5C\u54C1\u5982\u9700\u4FEE\u6539\uFF0C\u53EF\u5728\u3010\u4F5C\u54C1\u63D0\u4EA4\u3011\u5217\u8868\u70B9\u51FB\u201C\u7F16\u8F91\u201D\u8FDB\u884C\u4FEE\u6539\u3002"),ve.createElement(Sn.default,{form:Et,colon:!1,onFinish:Ln},We==1&&ve.createElement(ve.Fragment,null,ve.createElement(Sn.default.Item,{label:"\u4F5C\u54C1\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u4F5C\u54C1\u540D\u79F0"}]},ve.createElement(j.default,{showCount:!0,maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u4F5C\u54C1\u540D\u79F0"})),ve.createElement(Sn.default.Item,{label:"\u4F5C\u54C1\u94FE\u63A5",name:"url",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u4F5C\u54C1\u94FE\u63A5"}]},ve.createElement(j.default,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u54C1\u94FE\u63A5"}))),ve.createElement(Sn.default.Item,{label:"\u63D0\u4EA4\u6218\u961F",name:"competition_team_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6218\u961F"}]},ve.createElement(A.default,null,I==null?void 0:I.map(ye=>ve.createElement(A.default.Option,{key:ye==null?void 0:ye.id,value:ye==null?void 0:ye.id},ye==null?void 0:ye.name)))),ve.createElement(Sn.default.Item,{name:"fileList",style:{paddingLeft:We==1?"76px":"0"},valuePropName:"fileList",getValueFromEvent:ye=>Array.isArray(ye)?ye:ye==null?void 0:ye.fileList},We==1&&ve.createElement(k.default,Cn({},Bn),ve.createElement(Q.Z,{align:"middle"},ve.createElement(P.ZP,{type:"primary",ghost:!0,icon:ve.createElement(rr.Z,null)},Ze.length>0?"\u66F4\u6362\u6587\u4EF6":"\u6587\u4EF6\u4E0A\u4F20"),ve.createElement(ot.Z,{placement:"right",overlayStyle:{maxWidth:600},title:ve.createElement("div",{onClick:ye=>{ye.preventDefault(),ye.stopPropagation()}},ve.createElement("p",null,"\u63D0\u793A\uFF1A"),ve.createElement("p",null,"1. \u4E00\u6B21\u6700\u591A\u4E0A\u4F201\u4E2A\u6587\u4EF6\u3002"),ve.createElement("p",null,"2. \u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7150M\u3002"))},ve.createElement("i",{onClick:ye=>{ye.preventDefault(),ye.stopPropagation()},className:"iconfont icon-tishixiaowenhao ml5",style:{cursor:"pointer",color:"#C5C5C5"}})))),We==2&&ve.createElement(k.default.Dragger,Cn({className:gn.fileList,style:{background:"#fff",padding:"31px 0px"}},Bn),ve.createElement("p",{className:"ant-upload-drag-icon"},ve.createElement("i",{className:"iconfont icon-shangchuan4",style:{fontSize:"32px",color:"#165DFF"}})),ve.createElement("p",{className:"ant-upload-text"},"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))))))};var fr=(0,Pe.connect)(({})=>({}))(cr),Fe=V(67294),pr=Object.defineProperty,hr=Object.defineProperties,mr=Object.getOwnPropertyDescriptors,zn=Object.getOwnPropertySymbols,Yn=Object.prototype.hasOwnProperty,Kn=Object.prototype.propertyIsEnumerable,Vn=(B,F,L)=>F in B?pr(B,F,{enumerable:!0,configurable:!0,writable:!0,value:L}):B[F]=L,Tn=(B,F)=>{for(var L in F||(F={}))Yn.call(F,L)&&Vn(B,L,F[L]);if(zn)for(var L of zn(F))Kn.call(F,L)&&Vn(B,L,F[L]);return B},vr=(B,F)=>hr(B,mr(F)),gr=(B,F)=>{var L={};for(var ke in B)Yn.call(B,ke)&&F.indexOf(ke)<0&&(L[ke]=B[ke]);if(B!=null&&zn)for(var ke of zn(B))F.indexOf(ke)<0&&Kn.call(B,ke)&&(L[ke]=B[ke]);return L},Qt=(B,F,L)=>new Promise((ke,oe)=>{var be=se=>{try{we(L.next(se))}catch(Be){oe(Be)}},qe=se=>{try{we(L.throw(se))}catch(Be){oe(Be)}},we=se=>se.done?ke(se.value):Promise.resolve(se.value).then(be,qe);we((L=L.apply(B,F)).next())});const yr=B=>{var F=B,{globalSetting:L,loading:ke,dispatch:oe,user:be}=F,qe=gr(F,["globalSetting","loading","dispatch","user"]),we,se,Be,Bt,Zt,xt,_t,bt,Et,Xe;const[H,vt]=(0,a.useState)({avatar_url:""}),[Ne,Ae]=(0,a.useState)([]),{identifier:We}=(0,Pe.useParams)(),[Rt,wt]=(0,a.useState)([]),[fe,et]=(0,a.useState)(!0),[ut,Ze]=(0,a.useState)([]),[De,st]=(0,a.useState)([]),[Pt,I]=(0,a.useState)(!1),[me,xe]=(0,a.useState)(!1),[nt,rt]=(0,a.useState)(!1),[Mt,He]=(0,a.useState)([]),[Ct,Ke]=(0,a.useState)([]);let[Tt,Nt]=(0,a.useState)([]);const[jt,on]=(0,a.useState)(!1),[Vt,un]=(0,a.useState)([]),[Un,Dn]=(0,a.useState)(),[In,dn]=(0,a.useState)(!0),[Fn,Ln]=(0,a.useState)(!1),[kn,Bn]=(0,a.useState)(!1),[ye,Ge]=(0,a.useState)(!1),[Ft,Yt]=(0,a.useState)(!1),[Xt,sn]=(0,a.useState)(!1),[rn,Wt]=(0,a.useState)(!0),[cn,wn]=(0,a.useState)(!1),[Ht,mn]=(0,a.useState)(!1),[An,jn]=(0,a.useState)(""),yn=(0,Pe.useLocation)(),Rn=(0,a.useRef)(null),[Zn,On]=(0,a.useState)(!1);(0,a.useEffect)(()=>{console.log("++++++++++++++++++++++++++++++++++++",We),We&&an(),(0,Ot.Dk)("\u7ADE\u8D5B")},[We]);function an(){return Qt(this,null,function*(){Ae(yield oe({type:"competitions/getStaff",payload:{identifier:We}}));const Oe=yield oe({type:"competitions/getHeader",payload:{identifier:We}});vt(Oe),(0,Ot.Dk)((Oe==null?void 0:Oe.name)||"\u7ADE\u8D5B")})}(0,a.useEffect)(()=>{var Oe;Dn(parseInt((Oe=yn==null?void 0:yn.query)==null?void 0:Oe.type)===1)},[yn]),(0,a.useEffect)(()=>{var Oe,lt,fn,En;if(((Oe=H==null?void 0:H.competition_modules)==null?void 0:Oe.length)>0){if(((lt=yn==null?void 0:yn.query)==null?void 0:lt.active)==="\u8D5B\u9898\u53D1\u5E03"){const xn=(fn=H==null?void 0:H.competition_modules)==null?void 0:fn.find(Mn=>Mn.name==="\u8D5B\u9898\u53D1\u5E03");if(xn){ln(xn);return}}ln((En=H==null?void 0:H.competition_modules)==null?void 0:En[0])}H!=null&&H.id&&oe({type:"globalSetting/setShareData",payload:{title:H==null?void 0:H.name,desc:H==null?void 0:H.description,imgUrl:`${H==null?void 0:H.image}?x-oss-process=image/resize,h_200,w_200,m_pad`}})},[H]);function ln(Oe){return Qt(this,null,function*(){Nt(Oe.id),Tt=Oe.id,Ze(Oe);let lt;Oe.module_type==="entrance"?lt=yield oe({type:"competitions/getItem",payload:{url:Oe.module_url,module_type:"entrance"}}):lt=yield oe({type:"competitions/getItem",payload:{url:Oe.module_url}}),I(!1),rt(!1),on(!1),wt(lt),Ln(!1),Bn(!1),On(!1),un([]),st(Oe.module_type),Oe.module_type==="worksubmit"?(et(!1),On(!0),_n()):Oe.module_type==="chart"?(I(!0),et(!1),Xn()):Oe.module_type==="certificate"?(rt(!0),I(!1),et(!1),Sr()):Oe.module_type==="md_tab"?(on(!0),et(!1),localStorage.setItem("issee","2"),I(!1),rt(!1),_n()):Oe.module_type==="md_shixun"?(Ln(!0),et(!1),_n()):Oe.module_type==="entrance"?(Bn(!0),et(!1),_n()):(et(!0),localStorage.setItem("issee","1"))})}function Wn(Oe,lt,fn){return Qt(this,null,function*(){var En;if(Oe.stopPropagation(),H.teacher_need_phone||H.member_need_phone){wn(!0);return}if((0,C.tJ)(oe)){if(H!=null&&H.is_authentication&&!((En=be==null?void 0:be.userInfo)!=null&&En.authentication)){oe({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}});return}if(H!=null&&H.enroll_url){(0,Ot.xg)(H==null?void 0:H.enroll_url);return}if(fn==="ismodel"){if(!lt.invite_code){u.ZP.info("\u672C\u7ADE\u8D5B\u53EA\u9762\u5411\u90E8\u5206\u5B66\u6821/\u5355\u4F4D\u5F00\u653E\uFF0C\u4F60\u6682\u65F6\u6CA1\u6709\u53C2\u8D5B\u8D44\u683C");return}if(lt.member_of_course===!0)(0,Ot.xg)(`/classrooms/${lt.course_id}`);else{if(!lt.invite_code){u.ZP.info("\u672C\u7ADE\u8D5B\u53EA\u9762\u5411\u90E8\u5206\u5B66\u6821/\u5355\u4F4D\u5F00\u653E\uFF0C\u4F60\u6682\u65F6\u6CA1\u6709\u53C2\u8D5B\u8D44\u683C");return}(yield oe({type:"competitions/addApplytojoincourse",payload:{invite_code:lt.invite_code,student:1}})).status===0&&(0,Ot.xg)(`/classrooms/${lt.course_id}`)}}else{if(Ne.enrolled===!0){(0,Ot.xg)(fn);return}Ge(!0)}}})}function Xn(){return Qt(this,null,function*(){yield xe(yield oe({type:"competitions/ChartRules",payload:{identifier:We}}))})}function Er(Oe){return Qt(this,null,function*(){let lt=yield oe({type:"competitions/Charts",payload:{identifier:We,stage_id:Oe}});wt(lt)})}function br(Oe){return Qt(this,null,function*(){dn(!0);let lt=yield oe({type:"competitions/Results",payload:Tn({identifier:We,stage_id:Oe==null?void 0:Oe.id},Oe)});wt(lt),dn(!1)})}function wr(Oe){return Qt(this,null,function*(){dn(!0);let lt=yield oe({type:"competitions/Results",payload:Tn({identifier:We,stage_id:Oe==null?void 0:Oe.id,module_type:"entrance"},Oe)});wt(lt),dn(!1)})}function Jn(Oe){return Qt(this,null,function*(){let lt=yield oe({type:"competitions/Results",payload:{identifier:We,stage_id:Oe}});localStorage.getItem("issee")!=="1"&&wt(lt)})}function _n(){return Qt(this,null,function*(){un(yield oe({type:"competitions/TabResults",payload:{identifier:We,competition_module_id:Tt}}))})}function Sr(){return Qt(this,null,function*(){var Oe;let lt=yield oe({type:"competitions/Prize",payload:{identifier:We,user_id:(Oe=be==null?void 0:be.userInfo)==null?void 0:Oe.user_id}});He(lt)})}function Fr(){return Qt(this,null,function*(){var Oe;let lt=yield oe({type:"competitions/Accounts",payload:{id:(Oe=be==null?void 0:be.userInfo)==null?void 0:Oe.user_id}});Ke(lt)})}function xr(Oe){return Qt(this,null,function*(){if(!rn||(Wt(!1),Qn()))return;let lt=yield oe({type:"competitions/AddTeam",payload:vr(Tn({},Oe),{identifier:We})});lt&<.status===0?(jn(lt),mn(!0),an(),Yt(!1)):Wt(!0)})}function Qn(){var Oe,lt,fn,En,xn,Mn;if((Oe=be==null?void 0:be.userInfo)!=null&&Oe.is_teacher){if(((lt=Ne==null?void 0:Ne.all_staff)!=null&<.mutiple_limited||(fn=Ne==null?void 0:Ne.teacher_staff)!=null&&fn.mutiple_limited)&&Ne!=null&&Ne.enrolled)return u.ZP.info("\u4F60\u5DF2\u7ECF\u62A5\u540D\uFF0C\u4E0D\u80FD\u91CD\u590D\u62A5\u540D"),Wt(!0),!0}else if(((En=Ne==null?void 0:Ne.all_staff)!=null&&En.mutiple_limited||(xn=Ne==null?void 0:Ne.member_staff)!=null&&xn.mutiple_limited)&&Ne!=null&&Ne.enrolled)return u.ZP.info("\u4F60\u5DF2\u7ECF\u62A5\u540D\uFF0C\u4E0D\u80FD\u91CD\u590D\u62A5\u540D"),Wt(!0),!0;if(Ne!=null&&Ne.enroll_ended)return u.ZP.info("\u62A5\u540D\u5DF2\u622A\u6B62\uFF0C\u65E0\u9700\u62A5\u540D"),Wt(!0),!0;if(Ne!=null&&Ne.all_staff)return!1;if((Mn=be==null?void 0:be.userInfo)!=null&&Mn.is_teacher){if(!Ne.teacher_staff)return u.ZP.info("\u5DF2\u7981\u6B62\u8001\u5E08\u62A5\u540D"),Wt(!0),!0}else if(!(Ne!=null&&Ne.member_staff))return u.ZP.info("\u5DF2\u7981\u6B62\u5B66\u751F\u62A5\u540D"),Wt(!0),!0}function Cr(Oe){return Qt(this,null,function*(){if(!rn||Qn())return;Wt(!1);let lt=yield oe({type:"competitions/JoinTeam",payload:Tn({identifier:We},Oe)});lt&<.status===0?(mn(!0),jn(lt),sn(!1),Wt(!0),an()):Wt(!0)})}return Fe.createElement("div",{className:"edu-container minH500"},Fe.createElement(D.Z,{className:"mt10",separator:">"},Fe.createElement(D.Z.Item,null,Fe.createElement(Pe.Link,{to:"/competitions/index"},"\u5728\u7EBF\u7ADE\u8D5B")),Fe.createElement(D.Z.Item,null,H.name,H.sub_title?"-"+H.sub_title:null)),Fe.createElement("div",{className:"mt10",style:{display:"flex",background:"#fff",position:"relative",padding:"20px 12px"}},Fe.createElement(M.Z,{spinning:ke.effects["competitions/getHeader"]},Fe.createElement("div",{style:{height:"355px",width:"800px"}},(H==null?void 0:H.avatar_url)&&(H==null?void 0:H.avatar_url)!==null&&Fe.createElement("img",{style:{height:"355px",width:"800px"},src:H==null?void 0:H.avatar_url}),!(H!=null&&H.avatar_url)&&(H==null?void 0:H.avatar_url)==null&&Fe.createElement("img",{style:{height:"355px",width:"800px"},src:"/images/educoder/competitions/mainbanner.jpg"}))),Fe.createElement("div",{style:{marginLeft:"20px",width:"400px"}},Fe.createElement("p",{className:`${d.Z.titlesize}`},H.name,H.sub_title?"-"+H.sub_title:null),Fe.createElement("p",{style:{display:"flex",justifyContent:"space-between",marginRight:18}},!!(H!=null&&H.bonus)&&Fe.createElement("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},Fe.createElement("span",null,"\u5956\u91D1"),H!=null&&H.bonus?Fe.createElement("span",{style:{fontSize:"24px"}},"\xA5",parseInt(H&&H.bonus).toLocaleString()):Fe.createElement("span",{style:{fontSize:"24px"}},"\u6682\u65E0")),Fe.createElement("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},Fe.createElement("span",null,"\u6D4F\u89C8"),Fe.createElement("span",{style:{fontSize:"24px"}},parseInt(H&&H.visits_count).toLocaleString())),Fe.createElement("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},Fe.createElement("span",null,"\u62A5\u540D"),Fe.createElement("span",{style:{fontSize:"24px"}},parseInt(H&&H.member_count).toLocaleString()))),Fe.createElement("p",{className:d.Z.timesize,style:{marginTop:30}},Fe.createElement("span",{style:{color:"#9b9b9b",marginTop:"30px"}},"\u7ADE\u8D5B\u65F6\u95F4\uFF1A"),H.start_time,"~",H.end_time),Fe.createElement("p",{className:d.Z.timesize},Fe.createElement("span",{style:{color:"#9b9b9b"}},"\u62A5\u540D\u622A\u6B62\uFF1A"),H.enroll_end_time),H.competition_status==="ended"?Fe.createElement("p",{className:d.Z.timesize},Fe.createElement("span",{style:{color:"#9b9b9b"}},"\u7ADE\u8D5B\u72B6\u6001\uFF1A"),"\u5DF2\u7ED3\u675F"):null,H.competition_status==="nearly_published"?Fe.createElement("p",{className:d.Z.timesize},Fe.createElement("span",{style:{color:"#9b9b9b"}},"\u7ADE\u8D5B\u72B6\u6001\uFF1A"),"\u5373\u5C06\u53D1\u5E03"):null,H.competition_status==="progressing"?Fe.createElement("p",{className:d.Z.timesize},Fe.createElement("span",{style:{color:"#9b9b9b"}},"\u7ADE\u8D5B\u72B6\u6001\uFF1A"),"\u8FDB\u884C\u4E2D"):null,H.competition_status==="apply"?Fe.createElement("p",{className:d.Z.timesize},Fe.createElement("span",{style:{color:"#9b9b9b"}},"\u7ADE\u8D5B\u72B6\u6001\uFF1A"),"\u6B63\u5728\u62A5\u540D"):null,Fe.createElement("div",{style:{display:"flex",justifyContent:"center"}},(H==null?void 0:H.mode)<=2&&Ne.enrolled&&Fe.createElement(P.ZP,{onClick:Oe=>{var lt;(H==null?void 0:H.mode)===1||(H==null?void 0:H.mode)===3?ln((lt=H.competition_modules)==null?void 0:lt.find(fn=>fn.module_type==="entrance")):Wn(Oe,H,"ismodel")},style:{background:"#07C160",color:"#fff",border:"1px solid #07C160",marginRight:20,display:(H==null?void 0:H.mode)===2||(H==null?void 0:H.mode)===1&&((se=(we=H.competition_modules)==null?void 0:we.filter(Oe=>Oe.module_type==="entrance"))==null?void 0:se.length)>0?"":"none"},className:d.Z.buttonsize},(H==null?void 0:H.mode)===1&&"\u8D5B\u9898\u5165\u53E3",(H==null?void 0:H.mode)===2&&"\u8FDB\u5165\u8BFE\u5802",(H==null?void 0:H.mode)===3&&"\u8D5B\u9898\u5165\u53E3"),H.competition_status==="ended"?Fe.createElement(P.ZP,{type:"primary",className:d.Z.buttonsize,disabled:!0},"\u5DF2\u7ED3\u675F"):null,H.competition_status==="nearly_published"?Fe.createElement(P.ZP,{type:"primary",className:d.Z.buttonsize,disabled:!0},"\u5373\u5C06\u53D1\u5E03"):null,H.competition_status!=="nearly_published"&&H.enroll_end&&H.competition_status!=="ended"?Fe.createElement(P.ZP,{type:"primary",className:d.Z.buttonsize,disabled:!0},"\u62A5\u540D\u622A\u6B62"):null,(H.competition_status==="progressing"||H.competition_status==="apply")&&H.enroll_end!=!0&&H.enroll_end_time?Fe.createElement(P.ZP,{type:"primary",disabled:Ne.enrolled&&!H.need_attachment,className:d.Z.buttonsize,onClick:Oe=>{var lt;if(Ne.enrolled&&H.need_attachment){(lt=Rn.current)==null||lt.handleVisible();return}Wn(Oe,H,H.mode===2?"ismodel":H.personal?"personal":`/competitions/${H.identifier}/detail/enroll`)}},Ne.enrolled?H.need_attachment?"\u4E0A\u4F20\u4F5C\u54C1":"\u5DF2\u62A5\u540D":H!=null&&H.enroll_url?"\u524D\u5F80\u5927\u8D5B\u5B98\u7F51\u62A5\u540D":"\u7ACB\u5373\u62A5\u540D"):null),(Be=H==null?void 0:H.permission)!=null&&Be.editable?Fe.createElement("span",{onClick:()=>(0,Ot.xg)(`/competitions/${H.identifier}/detail/enroll`),className:d.Z.myteam},"\u6211\u7684\u6218\u961F>>"):Fe.createElement(Fe.Fragment,null,be.userInfo.real_name!="\u6E38\u5BA2"&&!(H!=null&&H.enroll_url)&&H.enroll_end_time&&Fe.createElement("span",{onClick:Oe=>Wn(Oe,H,H.mode===2?"ismodel":H.personal?"personal":`/competitions/${H.identifier}/detail/enroll`),className:d.Z.myteam},(0,Kt.j5)()?"\u53C2\u8D5B\u6218\u961F>>":"\u6211\u7684\u6218\u961F>>")))),Fe.createElement("div",{className:d.Z.bootmdetail},Fe.createElement("div",{className:d.Z.flex1},Fe.createElement(le.default,{selectedKeys:[`${Tt}`]},H&&H.competition_modules&&H.competition_modules.map((Oe,lt)=>{if(Oe.module_type!="enroll")return Fe.createElement(le.default.Item,{className:d.Z.menuItem,onClick:()=>{if(Oe!=null&&Oe.is_authentication){if(!(0,C.tJ)(oe))return;u.ZP.info("\u52A0\u5165\u6218\u961F\u624D\u80FD\u67E5\u770B");return}ln(Oe)},key:Oe.id},Oe.name)}))),Fe.createElement("div",{className:d.Z.flex6,style:{padding:(Fn||kn)&&0}},nt?Fe.createElement(mt.Z,{dispatch:oe,userid:(Bt=be==null?void 0:be.userInfo)==null?void 0:Bt.user_id,Prize:Mt,Accounts:Ct,getAccounts:Fr}):null,Pt?Fe.createElement(St,{HeaderDetail:H,userinfo:be.userInfo,Editable:(Zt=H==null?void 0:H.permission)==null?void 0:Zt.editable,getCharts:Er,getChartRules:Xn,Selectkey:Tt,ChartRules:me,ItemData:Rt}):null,fe?Fe.createElement(tt,{ref:Rn,StaffDetail:Ne,HeaderDetail:H,userinfo:be.userInfo,Editable:(xt=H==null?void 0:H.permission)==null?void 0:xt.editable,ItemData:Rt,setIssee:et,ModelType:De,dispatch:oe}):null,!fe&&!Fn&&!kn&&!Pt&&!nt&&!jt&&!Zn?Fe.createElement(y,{userinfo:be.userInfo,ModelType:De,getrightdatas:ln,dispatch:oe,MenuItem:ut,setIssee:et,identifier:We,ItemData:Rt}):null,jt&&Fe.createElement(z,{dispatch:oe,StaffDetail:Ne,userinfo:be.userInfo,HeaderDetail:H,Editable:(_t=H==null?void 0:H.permission)==null?void 0:_t.editable,getCharts:Jn,getChartRules:_n,Selectkey:Tt,ChartRules:Vt,ItemData:Rt}),Fn&&Fe.createElement(ze,{loading:In,dispatch:oe,StaffDetail:Ne,userinfo:be.userInfo,HeaderDetail:H,Editable:(bt=H==null?void 0:H.permission)==null?void 0:bt.editable,getCharts:br,getChartRules:_n,Selectkey:Tt,ChartRules:Vt,ItemData:Rt}),kn&&Fe.createElement(qn,{loading:In,dispatch:oe,StaffDetail:Ne,userinfo:be.userInfo,HeaderDetail:H,Editable:(Et=H==null?void 0:H.permission)==null?void 0:Et.editable,getCharts:wr,getChartRules:_n,Selectkey:Tt,ChartRules:Vt,ItemData:Rt}),Zn&&Fe.createElement(fr,{HeaderDetail:H,userinfo:be.userInfo,StaffDetail:Ne,Editable:(Xe=H==null?void 0:H.permission)==null?void 0:Xe.editable,ItemData:ut,TabResults:Vt,getTabResults:_n}))),Fe.createElement(G.Z,null),Fe.createElement(w,{getResults:Jn}),Fe.createElement(v.default,{open:Un,footer:null,width:720,title:"\u63D0\u793A",centered:!0,onCancel:()=>Dn(!1)},Fe.createElement("div",{className:d.Z.modal},Fe.createElement("div",null,"\u534E\u4E3A\u6A21\u578B\u738B\u8005\u6311\u6218\u8D5B\u9EC4\u91D1\u8D5B\u6B63\u5F0F\u5F00\u542F\u5566"),Fe.createElement("div",null,"\u672C\u8D5B\u6BB5\u603B\u5956\u91D1\u9AD8\u8FBE",Fe.createElement("span",{style:{color:"#FF8C29"}},"300,000"),"\u5143"),Fe.createElement("div",null,"1\u3001\u7B26\u5408\u8D5B\u9898\u8981\u6C42\u7684\u961F\u4F0D\uFF08\u517125\u652F\uFF09\u53EF\u83B7\u5F97\u5956\u91D1\uFF1A12000RMB/\u961F \uFF1B"),Fe.createElement("div",null,"2\u3001\u53C2\u4E0E\u83B7\u5F97\u201C\u8363\u8000\u6BBF\u5802\u201D\u699C\u4E3B\u7684\u961F\u4F0D\uFF0C\u53EF\u83B7\u5F97\u7531\u4E2D\u56FD\u8F6F\u4EF6\u5F00\u6E90\u521B\u65B0\u5927\u8D5B\u7EC4\u59D4\u4F1A\u9881\u53D1\u7684\u9EC4\u91D1\u5B9D\u7BB1\uFF1B"),Fe.createElement("div",null,"3\u3001\u5404\u8D5B\u9898\u7CBE\u5EA6\u6700\u9AD8\u7684\u961F\u4F0D\uFF0C\u53EF\u83B7\u5F97\u7531\u4E2D\u56FD\u8F6F\u4EF6\u5F00\u6E90\u521B\u65B0\u5927\u8D5B\u7EC4\u59D4\u4F1A\u9881\u53D1\u7684\u9EC4\u91D1\u5B9D\u7BB1+\u8363\u8A89\u8BC1\u4E66\uFF1B"),Fe.createElement("div",null,"\u5FC3\u52A8\u5427\uFF0C\u90A3\u5C31\u5FEB\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u62A5\u540D\u53C2\u8D5B"),Fe.createElement(P.ZP,{type:"primary",onClick:()=>(0,Ot.xg)("https://competition.huaweicloud.com/information/1000041485/introduction")},"\u524D\u5F80\u62A5\u540D\u53C2\u8D5B"))),Fe.createElement(v.default,{title:"\u9009\u62E9\u53C2\u8D5B\u65B9\u5F0F",open:ye,onCancel:()=>{Ge(!1)},footer:!1},Fe.createElement("div",{style:{display:"flex",justifyContent:"space-around",height:100,alignItems:"center"}},Fe.createElement(P.ZP,{type:"primary",style:{height:40},onClick:()=>{sn(!0),Ge(!1)}},"\u52A0\u5165\u6218\u961F\u53C2\u8D5B"),Fe.createElement(P.ZP,{style:{height:40},onClick:()=>{Yt(!0),Ge(!1)}},"\u53BB\u521B\u5EFA\u6218\u961F\u53C2\u8D5B"))),Xt?Fe.createElement(er.Z,{isjoin:Xt,setJoin:sn,JoinTeams:Cr}):null,Ft?Fe.createElement(tr.Z,{isAddmodle:Ft,setIsAdd:Yt,createTeam:xr}):null,Fe.createElement(nr.Z,{datas:An,isopen:Ht,setisopen:mn,isShowPhone:cn,setIsShowPhone:wn,user:be,dispatch:oe,onOK:()=>Qt(void 0,null,function*(){const Oe=yield oe({type:"competitions/getHeader",payload:{identifier:We}});vt(Oe)})}))};var _r=(0,Pe.connect)(({loading:B,globalSetting:F,user:L})=>({globalSetting:F,loading:B,user:L}))(yr)},84189:function(Jt,zt,V){"use strict";var a=V(11713),Pe=V(22150),d=V(14446),G=V(2453),k=V(69677),u=V(78045),v=V(49288),i=V(73475),h=V(96486),x=V.n(h),O=V(67294),g=V(67294),S=Object.defineProperty,p=Object.defineProperties,E=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,w=(Q,j,J)=>j in Q?S(Q,j,{enumerable:!0,configurable:!0,writable:!0,value:J}):Q[j]=J,D=(Q,j)=>{for(var J in j||(j={}))_.call(j,J)&&w(Q,J,j[J]);if(f)for(var J of f(j))m.call(j,J)&&w(Q,J,j[J]);return Q},M=(Q,j)=>p(Q,E(j)),P=(Q,j,J)=>new Promise((W,C)=>{var A=T=>{try{ne(J.next(T))}catch(Y){C(Y)}},s=T=>{try{ne(J.throw(T))}catch(Y){C(Y)}},ne=T=>T.done?W(T.value):Promise.resolve(T.value).then(A,s);ne((J=J.apply(Q,j)).next())});const le=a.default.Option;function ee({isAddmodle:Q,setIsAdd:j,createTeam:J,Data:W,user:C={},dispatch:A}){var s,ne,T,Y,ie,K,ce,U,N,Ce,ge,he,it,dt,Ue,tt,gt,ht,At,ft,r,re,o,e,t,l,y,Z,b,te;const[de]=Pe.default.useForm();console.log("---",C);const[q,_e]=(0,O.useState)([]),Re=(0,O.useRef)((0,h.throttle)(at=>Dt(at),1200,{leading:!0,trailing:!0})).current,[Ve,ot]=(0,O.useState)([]),$t=()=>{const at=new Date().getFullYear();return Array(31).fill({}).map(function(Je,je){return g.createElement(le,{key:je,value:at-je},g.createElement("span",null,at-je))})},Dt=at=>P(this,null,function*(){var Je;const je=yield A({type:"account/getSchoolOption",payload:{keyword:at,competition_id:W==null?void 0:W.identifier,display_aliases:!0}});_e(je==null?void 0:je.schools),at&&at!=""&&ot((Je=je==null?void 0:je.schools)==null?void 0:Je.filter(St=>St.name.toUpperCase().indexOf(at.toUpperCase())!==-1))});return(0,O.useEffect)(()=>{var at,Je,je,St,mt,Ot,Kt,qt,It;((at=W==null?void 0:W.need_apply_info)!=null&&at.need_apply_name||(Je=W==null?void 0:W.need_apply_info)!=null&&Je.need_apply_teacher_phone||(je=W==null?void 0:W.need_apply_info)!=null&&je.need_apply_student_id||(St=W==null?void 0:W.need_apply_info)!=null&&St.need_apply_sex||(mt=W==null?void 0:W.need_apply_info)!=null&&mt.need_apply_phone||(Ot=W==null?void 0:W.need_apply_info)!=null&&Ot.need_apply_grade||(Kt=W==null?void 0:W.need_apply_info)!=null&&Kt.need_apply_teacher_name||(qt=W==null?void 0:W.need_apply_info)!=null&&qt.need_apply_school)&&Dt((W==null?void 0:W.region_rule)===1||(W==null?void 0:W.identifier)==="81bjsjjs"?"":(It=C==null?void 0:C.userInfo)==null?void 0:It.school_name)},[((s=W==null?void 0:W.need_apply_info)==null?void 0:s.need_apply_teacher_phone)||((ne=W==null?void 0:W.need_apply_info)==null?void 0:ne.need_apply_name)||((T=W==null?void 0:W.need_apply_info)==null?void 0:T.need_apply_student_id)||((Y=W==null?void 0:W.need_apply_info)==null?void 0:Y.need_apply_sex)||((ie=W==null?void 0:W.need_apply_info)==null?void 0:ie.need_apply_phone)||((K=W==null?void 0:W.need_apply_info)==null?void 0:K.need_apply_grade)||((ce=W==null?void 0:W.need_apply_info)==null?void 0:ce.need_apply_teacher_name)||((U=W==null?void 0:W.need_apply_info)==null?void 0:U.need_apply_school)]),g.createElement(d.default,{className:"modal_styles",centered:!0,title:g.createElement("div",{style:{alignItems:"center",display:"flex"}},g.createElement("div",{style:{textAlign:"left",flex:"1"}},"\u521B\u5EFA\u6218\u961F"),g.createElement(i.Z,{onClick:()=>j(!1),style:{cursor:"porint"}})),open:Q,closable:!1,width:700,destroyOnClose:!0,onOk:(0,h.debounce)(()=>{de.submit()},500),onCancel:()=>j(!1)},g.createElement(Pe.default,{form:de,initialValues:M(D({},C.userInfo),{sex:(N=C==null?void 0:C.userInfo)==null?void 0:N.gender,grade:(Ce=C==null?void 0:C.userInfo)==null?void 0:Ce.edu_entry_year,school:(ge=W==null?void 0:W.need_apply_info)!=null&&ge.need_apply_school&&(W==null?void 0:W.region_rule)===1||(W==null?void 0:W.identifier)==="81bjsjjs"?"":(he=C==null?void 0:C.userInfo)==null?void 0:he.school_name}),labelCol:{span:5},size:"large",onFinish:at=>P(this,null,function*(){var Je,je;const St=(Je=q.find(mt=>mt.name===(at==null?void 0:at.school)))==null?void 0:Je.id;if(!St&&((je=W==null?void 0:W.need_apply_info)!=null&&je.need_apply_school)){G.ZP.info("\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u5B66\u6821");return}J(M(D({},at),{school_id:St}))})},(((it=W==null?void 0:W.need_apply_info)==null?void 0:it.need_apply_name)||((dt=W==null?void 0:W.need_apply_info)==null?void 0:dt.need_apply_teacher_phone)||((Ue=W==null?void 0:W.need_apply_info)==null?void 0:Ue.need_apply_student_id)||((tt=W==null?void 0:W.need_apply_info)==null?void 0:tt.need_apply_sex)||((gt=W==null?void 0:W.need_apply_info)==null?void 0:gt.need_apply_phone)||((ht=W==null?void 0:W.need_apply_info)==null?void 0:ht.need_apply_grade)||((At=W==null?void 0:W.need_apply_info)==null?void 0:At.need_apply_teacher_name)||((ft=W==null?void 0:W.need_apply_info)==null?void 0:ft.need_apply_school))&&g.createElement("div",{className:"mb20"},"\u6839\u636E\u7ADE\u8D5B\u5B98\u65B9\u7684\u89C4\u5B9A\uFF0C\u53C2\u8D5B\u4EBA\u5458\u9700\u586B\u5199\u5FC5\u586B\u4FE1\u606F\u624D\u53EF\u5B8C\u6210\u62A5\u540D\uFF0C\u8BF7\u786E\u4FDD\u586B\u5199\u7684\u4FE1\u606F\u51C6\u786E\u5B8C\u6574\u3002"),g.createElement(Pe.default.Item,{label:"\u961F\u4F0D\u540D\u79F0",name:"name",rules:[{required:!0,validator:(at,Je)=>{var je;return((je=Je==null?void 0:Je.replaceAll(" ",""))==null?void 0:je.length)>0?Promise.resolve():Promise.reject("\u8BF7\u586B\u5199\u961F\u4F0D\u540D\u79F0")}}]},g.createElement(k.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u961F\u4F0D\u540D\u79F0"})),((r=W==null?void 0:W.need_apply_info)==null?void 0:r.need_apply_name)&&g.createElement(Pe.default.Item,{label:"\u53C2\u8D5B\u4EBA\u5458\u59D3\u540D",name:"real_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u59D3\u540D"},{whitespace:!0,message:"\u59D3\u540D\u4E0D\u80FD\u4E3A\u7A7A"}]},g.createElement(k.default,{placeholder:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u59D3\u540D",showCount:!0,maxLength:60})),((re=W==null?void 0:W.need_apply_info)==null?void 0:re.need_apply_sex)&&g.createElement(Pe.default.Item,{label:"\u6027\u522B",name:"sex",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u53C2\u8D5B\u4EBA\u5458\u6027\u522B"}]},g.createElement(u.ZP.Group,null,g.createElement(u.ZP,{value:0},"\u7537"),g.createElement(u.ZP,{value:1},"\u5973"))),((o=W==null?void 0:W.need_apply_info)==null?void 0:o.need_apply_student_id)&&g.createElement(Pe.default.Item,{label:"\u5B66\u53F7",name:"student_id",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u5B66\u53F7"},{whitespace:!0,message:"\u5B66\u53F7\u4E0D\u80FD\u4E3A\u7A7A"}]},g.createElement(k.default,{placeholder:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u5B66\u53F7",showCount:!0,maxLength:60})),((e=W==null?void 0:W.need_apply_info)==null?void 0:e.need_apply_id_number)&&g.createElement(Pe.default.Item,{label:"\u8EAB\u4EFD\u8BC1\u53F7\u7801",name:"id_number",rules:[{required:!0,pattern:/^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i,message:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u683C\u5F0F"}]},g.createElement(k.default,{maxLength:18,showCount:!0,placeholder:"\u8BF7\u8F93\u8EAB\u4EFD\u8BC1\u53F7\u7801"})),((t=W==null?void 0:W.need_apply_info)==null?void 0:t.need_apply_phone)&&g.createElement(Pe.default.Item,{label:"\u7535\u8BDD",name:"phone",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u7535\u8BDD"},{whitespace:!0,message:"\u7535\u8BDD\u4E0D\u80FD\u4E3A\u7A7A"}]},g.createElement(k.default,{placeholder:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u7535\u8BDD",showCount:!0,maxLength:60})),((l=W==null?void 0:W.need_apply_info)==null?void 0:l.need_apply_grade)&&g.createElement(Pe.default.Item,{label:"\u5E74\u7EA7",name:"grade",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u53C2\u8D5B\u4EBA\u5458\u5E74\u7EA7"}]},g.createElement(a.default,{placeholder:"\u8BF7\u9009\u62E9\u53C2\u8D5B\u4EBA\u5458\u5E74\u7EA7",size:"large"},$t())),((y=W==null?void 0:W.need_apply_info)==null?void 0:y.need_apply_teacher_name)&&g.createElement(Pe.default.Item,{label:"\u6307\u5BFC\u8001\u5E08\u59D3\u540D",name:"teacher_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6307\u5BFC\u8001\u5E08\u59D3\u540D"},{whitespace:!0,message:"\u6307\u5BFC\u8001\u5E08\u59D3\u540D\u4E0D\u80FD\u4E3A\u7A7A"}]},g.createElement(k.default,{placeholder:"\u5982\u6CA1\u6709\u6307\u5BFC\u8001\u5E08\u8BF7\u586B\u65E0",showCount:!0,maxLength:60})),((Z=W==null?void 0:W.need_apply_info)==null?void 0:Z.need_apply_teacher_phone)&&g.createElement(Pe.default.Item,{label:"\u6307\u5BFC\u8001\u5E08\u8054\u7CFB\u65B9\u5F0F",name:"teacher_phone",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6307\u5BFC\u8001\u5E08\u8054\u7CFB\u65B9\u5F0F"},{whitespace:!0,message:"\u6307\u5BFC\u8001\u5E08\u8054\u7CFB\u65B9\u5F0F\u4E0D\u80FD\u4E3A\u7A7A"}]},g.createElement(k.default,{placeholder:"\u8BF7\u8F93\u5165\u6307\u5BFC\u8001\u5E08\u8054\u7CFB\u65B9\u5F0F",showCount:!0,maxLength:60})),((b=W==null?void 0:W.need_apply_info)==null?void 0:b.need_apply_school)&&(W==null?void 0:W.region_rule)!==1&&(W==null?void 0:W.identifier)!=="81bjsjjs"&&g.createElement(Pe.default.Item,{label:"\u5B66\u6821",name:"school",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B66\u6821"}]},g.createElement(v.Z,{size:"large",showSearch:!0,onChange:at=>Re(at,W.identifier)},Ve.map((at,Je)=>g.createElement(le,{key:Je,value:at.name},at.name)))),(((te=W==null?void 0:W.need_apply_info)==null?void 0:te.need_apply_school)&&(W==null?void 0:W.region_rule)===1||(W==null?void 0:W.identifier)==="81bjsjjs")&&g.createElement(Pe.default.Item,{label:"\u5B66\u6821",name:"school",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B66\u6821"}]},g.createElement(a.default,{showSearch:!0},q.map((at,Je)=>g.createElement(le,{key:Je,value:at.name},at.name))))))}zt.Z=ee},38161:function(Jt,zt,V){"use strict";var a=V(67294),Pe=V(11713),d=V(22150),G=V(14446),k=V(2453),u=V(69677),v=V(78045),i=V(49288),h=V(73475),x=V(96486),O=V.n(x),g=V(67294),S=Object.defineProperty,p=Object.defineProperties,E=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,w=(Q,j,J)=>j in Q?S(Q,j,{enumerable:!0,configurable:!0,writable:!0,value:J}):Q[j]=J,D=(Q,j)=>{for(var J in j||(j={}))_.call(j,J)&&w(Q,J,j[J]);if(f)for(var J of f(j))m.call(j,J)&&w(Q,J,j[J]);return Q},M=(Q,j)=>p(Q,E(j)),P=(Q,j,J)=>new Promise((W,C)=>{var A=T=>{try{ne(J.next(T))}catch(Y){C(Y)}},s=T=>{try{ne(J.throw(T))}catch(Y){C(Y)}},ne=T=>T.done?W(T.value):Promise.resolve(T.value).then(A,s);ne((J=J.apply(Q,j)).next())});const le=Pe.default.Option;function ee({isjoin:Q,setJoin:j,JoinTeams:J,user:W={},dispatch:C,Data:A={}}){var s,ne,T,Y,ie,K,ce,U,N,Ce,ge,he,it,dt,Ue,tt,gt,ht,At,ft,r,re,o,e,t,l,y,Z,b,te;const[de,q]=(0,a.useState)(""),[_e,Re]=(0,a.useState)([]),[Ve]=d.default.useForm(),ot=(0,a.useRef)((0,x.throttle)(je=>Je(je),1200,{leading:!0,trailing:!0})).current,[$t,Dt]=(0,a.useState)([]),at=()=>{const je=new Date().getFullYear();return Array(31).fill({}).map(function(St,mt){return g.createElement(le,{key:mt,value:je-mt},g.createElement("span",null,je-mt))})};(0,a.useEffect)(()=>{var je,St,mt,Ot,Kt,qt,It,Te,Lt;((je=A==null?void 0:A.need_apply_info)!=null&&je.need_apply_name||(St=A==null?void 0:A.need_apply_info)!=null&&St.need_apply_teacher_phone||(mt=A==null?void 0:A.need_apply_info)!=null&&mt.need_apply_student_id||(Ot=A==null?void 0:A.need_apply_info)!=null&&Ot.need_apply_sex||(Kt=A==null?void 0:A.need_apply_info)!=null&&Kt.need_apply_phone||(qt=A==null?void 0:A.need_apply_info)!=null&&qt.need_apply_grade||(It=A==null?void 0:A.need_apply_info)!=null&&It.need_apply_teacher_name||(Te=A==null?void 0:A.need_apply_info)!=null&&Te.need_apply_school)&&Je((A==null?void 0:A.region_rule)===1||(A==null?void 0:A.identifier)==="81bjsjjs"?"":(Lt=W==null?void 0:W.userInfo)==null?void 0:Lt.school_name)},[((s=A==null?void 0:A.need_apply_info)==null?void 0:s.need_apply_teacher_phone)||((ne=A==null?void 0:A.need_apply_info)==null?void 0:ne.need_apply_name)||((T=A==null?void 0:A.need_apply_info)==null?void 0:T.need_apply_student_id)||((Y=A==null?void 0:A.need_apply_info)==null?void 0:Y.need_apply_sex)||((ie=A==null?void 0:A.need_apply_info)==null?void 0:ie.need_apply_phone)||((K=A==null?void 0:A.need_apply_info)==null?void 0:K.need_apply_grade)||((ce=A==null?void 0:A.need_apply_info)==null?void 0:ce.need_apply_teacher_name)||((U=A==null?void 0:A.need_apply_info)==null?void 0:U.need_apply_school)]);const Je=je=>P(this,null,function*(){var St;const mt=yield C({type:"account/getSchoolOption",payload:{keyword:je,competition_id:A==null?void 0:A.identifier,display_aliases:!0}});Re(mt==null?void 0:mt.schools),je&&je!=""&&Dt((St=mt==null?void 0:mt.schools)==null?void 0:St.filter(Ot=>Ot.name.includes(je)))});return g.createElement(G.default,{className:"modal_styles",centered:!0,title:g.createElement("div",{style:{alignItems:"center",display:"flex"}},g.createElement("div",{style:{textAlign:"left",flex:"1"}},"\u52A0\u5165\u6218\u961F"),g.createElement(h.Z,{onClick:()=>j(!1),style:{cursor:"porint"}})),open:Q,width:700,closable:!1,destroyOnClose:!0,onOk:(0,x.debounce)(()=>{Ve.submit()},500),onCancel:()=>j(!1)},g.createElement(d.default,{form:Ve,size:"large",labelCol:{span:4},initialValues:M(D({},W.userInfo),{sex:(N=W==null?void 0:W.userInfo)==null?void 0:N.gender,grade:(Ce=W==null?void 0:W.userInfo)==null?void 0:Ce.edu_entry_year,school:(ge=A==null?void 0:A.need_apply_info)!=null&&ge.need_apply_school&&(A==null?void 0:A.region_rule)===1||(A==null?void 0:A.identifier)==="81bjsjjs"?"":(he=W==null?void 0:W.userInfo)==null?void 0:he.school_name}),onFinish:je=>P(this,null,function*(){var St,mt;const Ot=(St=_e.find(Kt=>Kt.name===(je==null?void 0:je.school)))==null?void 0:St.id;if(!Ot&&((mt=A==null?void 0:A.need_apply_info)!=null&&mt.need_apply_school)){k.ZP.info("\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u5B66\u6821");return}J(M(D({},je),{school_id:Ot}))})},(((it=A==null?void 0:A.need_apply_info)==null?void 0:it.need_apply_name)||((dt=A==null?void 0:A.need_apply_info)==null?void 0:dt.need_apply_teacher_phone)||((Ue=A==null?void 0:A.need_apply_info)==null?void 0:Ue.need_apply_student_id)||((tt=A==null?void 0:A.need_apply_info)==null?void 0:tt.need_apply_sex)||((gt=A==null?void 0:A.need_apply_info)==null?void 0:gt.need_apply_phone)||((ht=A==null?void 0:A.need_apply_info)==null?void 0:ht.need_apply_grade)||((At=A==null?void 0:A.need_apply_info)==null?void 0:At.need_apply_teacher_name)||((ft=A==null?void 0:A.need_apply_info)==null?void 0:ft.need_apply_school))&&g.createElement("div",{className:"mb20"},"\u6839\u636E\u7ADE\u8D5B\u5B98\u65B9\u7684\u89C4\u5B9A\uFF0C\u53C2\u8D5B\u4EBA\u5458\u9700\u586B\u5199\u5FC5\u586B\u4FE1\u606F\u624D\u53EF\u5B8C\u6210\u62A5\u540D\uFF0C\u8BF7\u786E\u4FDD\u586B\u5199\u7684\u4FE1\u606F\u51C6\u786E\u5B8C\u6574\u3002"),g.createElement(d.default.Item,{label:"\u9080\u8BF7\u7801",name:"invite_code",rules:[{required:!0,validator:(je,St)=>{var mt;return((mt=St==null?void 0:St.replaceAll(" ",""))==null?void 0:mt.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u9080\u8BF7\u7801")}}]},g.createElement(u.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u9080\u8BF7\u7801"})),((r=A==null?void 0:A.need_apply_info)==null?void 0:r.need_apply_name)&&g.createElement(d.default.Item,{label:"\u53C2\u8D5B\u4EBA\u5458\u59D3\u540D",name:"real_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u59D3\u540D"},{whitespace:!0,message:"\u59D3\u540D\u4E0D\u80FD\u4E3A\u7A7A"}]},g.createElement(u.default,{placeholder:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u59D3\u540D",showCount:!0,maxLength:60})),((re=A==null?void 0:A.need_apply_info)==null?void 0:re.need_apply_sex)&&g.createElement(d.default.Item,{label:"\u6027\u522B",name:"sex",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u53C2\u8D5B\u4EBA\u5458\u6027\u522B"}]},g.createElement(v.ZP.Group,null,g.createElement(v.ZP,{value:0},"\u7537"),g.createElement(v.ZP,{value:1},"\u5973"))),((o=A==null?void 0:A.need_apply_info)==null?void 0:o.need_apply_student_id)&&g.createElement(d.default.Item,{label:"\u5B66\u53F7",name:"student_id",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u5B66\u53F7"},{whitespace:!0,message:"\u5B66\u53F7\u4E0D\u80FD\u4E3A\u7A7A"}]},g.createElement(u.default,{placeholder:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u5B66\u53F7",showCount:!0,maxLength:60})),((e=A==null?void 0:A.need_apply_info)==null?void 0:e.need_apply_id_number)&&g.createElement(d.default.Item,{label:"\u8EAB\u4EFD\u8BC1\u53F7\u7801",name:"id_number",rules:[{required:!0,pattern:/^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i,message:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u683C\u5F0F"}]},g.createElement(u.default,{maxLength:18,showCount:!0,placeholder:"\u8BF7\u8F93\u8EAB\u4EFD\u8BC1\u53F7\u7801"})),((t=A==null?void 0:A.need_apply_info)==null?void 0:t.need_apply_phone)&&g.createElement(d.default.Item,{label:"\u7535\u8BDD",name:"phone",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u7535\u8BDD"},{whitespace:!0,message:"\u7535\u8BDD\u4E0D\u80FD\u4E3A\u7A7A"}]},g.createElement(u.default,{placeholder:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u7535\u8BDD",showCount:!0,maxLength:60})),((l=A==null?void 0:A.need_apply_info)==null?void 0:l.need_apply_grade)&&g.createElement(d.default.Item,{label:"\u5E74\u7EA7",name:"grade",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u53C2\u8D5B\u4EBA\u5458\u5E74\u7EA7"}]},g.createElement(Pe.default,{placeholder:"\u8BF7\u9009\u62E9\u53C2\u8D5B\u4EBA\u5458\u5E74\u7EA7",size:"large"},at())),((y=A==null?void 0:A.need_apply_info)==null?void 0:y.need_apply_teacher_name)&&g.createElement(d.default.Item,{label:"\u6307\u5BFC\u8001\u5E08\u59D3\u540D",name:"teacher_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6307\u5BFC\u8001\u5E08\u59D3\u540D"},{whitespace:!0,message:"\u6307\u5BFC\u8001\u5E08\u59D3\u540D\u4E0D\u80FD\u4E3A\u7A7A"}]},g.createElement(u.default,{placeholder:"\u5982\u6CA1\u6709\u6307\u5BFC\u8001\u5E08\u8BF7\u586B\u65E0",showCount:!0,maxLength:60})),((Z=A==null?void 0:A.need_apply_info)==null?void 0:Z.need_apply_teacher_phone)&&g.createElement(d.default.Item,{label:"\u6307\u5BFC\u8001\u5E08\u8054\u7CFB\u65B9\u5F0F",name:"teacher_phone",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6307\u5BFC\u8001\u5E08\u8054\u7CFB\u65B9\u5F0F"},{whitespace:!0,message:"\u6307\u5BFC\u8001\u5E08\u8054\u7CFB\u65B9\u5F0F\u4E0D\u80FD\u4E3A\u7A7A"}]},g.createElement(u.default,{placeholder:"\u8BF7\u8F93\u5165\u6307\u5BFC\u8001\u5E08\u8054\u7CFB\u65B9\u5F0F",showCount:!0,maxLength:60})),((b=A==null?void 0:A.need_apply_info)==null?void 0:b.need_apply_school)&&(A==null?void 0:A.region_rule)!==1&&(A==null?void 0:A.identifier)!=="81bjsjjs"&&g.createElement(d.default.Item,{label:"\u5B66\u6821",name:"school",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B66\u6821"}]},g.createElement(i.Z,{size:"large",showSearch:!0,onChange:je=>ot(je,A.identifier)},$t.map((je,St)=>g.createElement(le,{key:St,value:je.name},je.name)))),(((te=A==null?void 0:A.need_apply_info)==null?void 0:te.need_apply_school)&&(A==null?void 0:A.region_rule)===1||(A==null?void 0:A.identifier)==="81bjsjjs")&&g.createElement(d.default.Item,{label:"\u5B66\u6821",name:"school",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B66\u6821"}]},g.createElement(Pe.default,{showSearch:!0},_e.map((je,St)=>g.createElement(le,{key:St,value:je.name},je.name))))))}zt.Z=ee},4393:function(Jt,zt,V){"use strict";V.d(zt,{Z:function(){return ne}});var a=V(94184),Pe=V.n(a),d=V(10366),G=V(67294),k=V(53124),u=V(98675),v=V(46303),i=V(66368),h=function(T,Y){var ie={};for(var K in T)Object.prototype.hasOwnProperty.call(T,K)&&Y.indexOf(K)<0&&(ie[K]=T[K]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,K=Object.getOwnPropertySymbols(T);ce<K.length;ce++)Y.indexOf(K[ce])<0&&Object.prototype.propertyIsEnumerable.call(T,K[ce])&&(ie[K[ce]]=T[K[ce]]);return ie},O=T=>{var{prefixCls:Y,className:ie,hoverable:K=!0}=T,ce=h(T,["prefixCls","className","hoverable"]);const{getPrefixCls:U}=G.useContext(k.E_),N=U("card",Y),Ce=Pe()(`${N}-grid`,ie,{[`${N}-grid-hoverable`]:K});return G.createElement("div",Object.assign({},ce,{className:Ce}))},g=V(14747),S=V(67968),p=V(45503);const E=T=>{const{antCls:Y,componentCls:ie,headerHeight:K,cardPaddingBase:ce,tabsMarginBottom:U}=T;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:K,marginBottom:-1,padding:`0 ${ce}px`,color:T.colorTextHeading,fontWeight:T.fontWeightStrong,fontSize:T.headerFontSize,background:T.headerBg,borderBottom:`${T.lineWidth}px ${T.lineType} ${T.colorBorderSecondary}`,borderRadius:`${T.borderRadiusLG}px ${T.borderRadiusLG}px 0 0`},(0,g.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},g.vS),{[`
|
|
|
> ${ie}-typography,
|
|
|
> ${ie}-typography-edit-content
|
|
|
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${Y}-tabs-top`]:{clear:"both",marginBottom:U,color:T.colorText,fontWeight:"normal",fontSize:T.fontSize,"&-bar":{borderBottom:`${T.lineWidth}px ${T.lineType} ${T.colorBorderSecondary}`}}})},f=T=>{const{cardPaddingBase:Y,colorBorderSecondary:ie,cardShadow:K,lineWidth:ce}=T;return{width:"33.33%",padding:Y,border:0,borderRadius:0,boxShadow:`
|
|
|
${ce}px 0 0 0 ${ie},
|
|
|
0 ${ce}px 0 0 ${ie},
|
|
|
${ce}px ${ce}px 0 0 ${ie},
|
|
|
${ce}px 0 0 0 ${ie} inset,
|
|
|
0 ${ce}px 0 0 ${ie} inset;
|
|
|
`,transition:`all ${T.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:K}}},_=T=>{const{componentCls:Y,iconCls:ie,actionsLiMargin:K,cardActionsIconSize:ce,colorBorderSecondary:U,actionsBg:N}=T;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:N,borderTop:`${T.lineWidth}px ${T.lineType} ${U}`,display:"flex",borderRadius:`0 0 ${T.borderRadiusLG}px ${T.borderRadiusLG}px `},(0,g.dF)()),{"& > li":{margin:K,color:T.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:T.cardActionsIconSize*2,fontSize:T.fontSize,lineHeight:T.lineHeight,cursor:"pointer","&:hover":{color:T.colorPrimary,transition:`color ${T.motionDurationMid}`},[`a:not(${Y}-btn), > ${ie}`]:{display:"inline-block",width:"100%",color:T.colorTextDescription,lineHeight:`${T.fontSize*T.lineHeight}px`,transition:`color ${T.motionDurationMid}`,"&:hover":{color:T.colorPrimary}},[`> ${ie}`]:{fontSize:ce,lineHeight:`${ce*T.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${T.lineWidth}px ${T.lineType} ${U}`}}})},m=T=>Object.assign(Object.assign({margin:`-${T.marginXXS}px 0`,display:"flex"},(0,g.dF)()),{"&-avatar":{paddingInlineEnd:T.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:T.marginXS}},"&-title":Object.assign({color:T.colorTextHeading,fontWeight:T.fontWeightStrong,fontSize:T.fontSizeLG},g.vS),"&-description":{color:T.colorTextDescription}}),w=T=>{const{componentCls:Y,cardPaddingBase:ie,colorFillAlter:K}=T;return{[`${Y}-head`]:{padding:`0 ${ie}px`,background:K,"&-title":{fontSize:T.fontSize}},[`${Y}-body`]:{padding:`${T.padding}px ${ie}px`}}},D=T=>{const{componentCls:Y}=T;return{overflow:"hidden",[`${Y}-body`]:{userSelect:"none"}}},M=T=>{const{antCls:Y,componentCls:ie,cardShadow:K,cardHeadPadding:ce,colorBorderSecondary:U,boxShadowTertiary:N,cardPaddingBase:Ce,extraColor:ge}=T;return{[ie]:Object.assign(Object.assign({},(0,g.Wf)(T)),{position:"relative",background:T.colorBgContainer,borderRadius:T.borderRadiusLG,[`&:not(${ie}-bordered)`]:{boxShadow:N},[`${ie}-head`]:E(T),[`${ie}-extra`]:{marginInlineStart:"auto",color:ge,fontWeight:"normal",fontSize:T.fontSize},[`${ie}-body`]:Object.assign({padding:Ce,borderRadius:` 0 0 ${T.borderRadiusLG}px ${T.borderRadiusLG}px`},(0,g.dF)()),[`${ie}-grid`]:f(T),[`${ie}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${Y}-image-mask`]:{borderRadius:`${T.borderRadiusLG}px ${T.borderRadiusLG}px 0 0`}},[`${ie}-actions`]:_(T),[`${ie}-meta`]:m(T)}),[`${ie}-bordered`]:{border:`${T.lineWidth}px ${T.lineType} ${U}`,[`${ie}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${ie}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${T.motionDurationMid}, border-color ${T.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:K}},[`${ie}-contain-grid`]:{[`${ie}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${ie}-loading) ${ie}-body`]:{marginBlockStart:-T.lineWidth,marginInlineStart:-T.lineWidth,padding:0}},[`${ie}-contain-tabs`]:{[`> ${ie}-head`]:{[`${ie}-head-title, ${ie}-extra`]:{paddingTop:ce}}},[`${ie}-type-inner`]:w(T),[`${ie}-loading`]:D(T),[`${ie}-rtl`]:{direction:"rtl"}}},P=T=>{const{componentCls:Y,cardPaddingSM:ie,headerHeightSM:K,headerFontSizeSM:ce}=T;return{[`${Y}-small`]:{[`> ${Y}-head`]:{minHeight:K,padding:`0 ${ie}px`,fontSize:ce,[`> ${Y}-head-wrapper`]:{[`> ${Y}-extra`]:{fontSize:T.fontSize}}},[`> ${Y}-body`]:{padding:ie}},[`${Y}-small${Y}-contain-tabs`]:{[`> ${Y}-head`]:{[`${Y}-head-title, ${Y}-extra`]:{minHeight:K,paddingTop:0,display:"flex",alignItems:"center"}}}}};var le=(0,S.Z)("Card",T=>{const Y=(0,p.TS)(T,{cardShadow:T.boxShadowCard,cardHeadPadding:T.padding,cardPaddingBase:T.paddingLG,cardActionsIconSize:T.fontSize,cardPaddingSM:12});return[M(Y),P(Y)]},T=>({headerBg:"transparent",headerFontSize:T.fontSizeLG,headerFontSizeSM:T.fontSize,headerHeight:T.fontSizeLG*T.lineHeightLG+T.padding*2,headerHeightSM:T.fontSize*T.lineHeight+T.paddingXS*2,actionsBg:T.colorBgContainer,actionsLiMargin:`${T.paddingSM}px 0`,tabsMarginBottom:-T.padding-T.lineWidth,extraColor:T.colorText})),ee=function(T,Y){var ie={};for(var K in T)Object.prototype.hasOwnProperty.call(T,K)&&Y.indexOf(K)<0&&(ie[K]=T[K]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,K=Object.getOwnPropertySymbols(T);ce<K.length;ce++)Y.indexOf(K[ce])<0&&Object.prototype.propertyIsEnumerable.call(T,K[ce])&&(ie[K[ce]]=T[K[ce]]);return ie};function Q(T){return T.map((Y,ie)=>G.createElement("li",{style:{width:`${100/T.length}%`},key:`action-${ie}`},G.createElement("span",null,Y)))}var J=G.forwardRef((T,Y)=>{const{prefixCls:ie,className:K,rootClassName:ce,style:U,extra:N,headStyle:Ce={},bodyStyle:ge={},title:he,loading:it,bordered:dt=!0,size:Ue,type:tt,cover:gt,actions:ht,tabList:At,children:ft,activeTabKey:r,defaultActiveTabKey:re,tabBarExtraContent:o,hoverable:e,tabProps:t={}}=T,l=ee(T,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:y,direction:Z,card:b}=G.useContext(k.E_),te=Te=>{var Lt;(Lt=T.onTabChange)===null||Lt===void 0||Lt.call(T,Te)},de=G.useMemo(()=>{let Te=!1;return G.Children.forEach(ft,Lt=>{Lt&&Lt.type&&Lt.type===O&&(Te=!0)}),Te},[ft]),q=y("card",ie),[_e,Re]=le(q),Ve=G.createElement(v.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},ft),ot=r!==void 0,$t=Object.assign(Object.assign({},t),{[ot?"activeKey":"defaultActiveKey"]:ot?r:re,tabBarExtraContent:o});let Dt;const at=(0,u.Z)(Ue),Je=!at||at==="default"?"large":at,je=At?G.createElement(i.default,Object.assign({size:Je},$t,{className:`${q}-head-tabs`,onChange:te,items:At.map(Te=>{var{tab:Lt}=Te,pe=ee(Te,["tab"]);return Object.assign({label:Lt},pe)})})):null;(he||N||je)&&(Dt=G.createElement("div",{className:`${q}-head`,style:Ce},G.createElement("div",{className:`${q}-head-wrapper`},he&&G.createElement("div",{className:`${q}-head-title`},he),N&&G.createElement("div",{className:`${q}-extra`},N)),je));const St=gt?G.createElement("div",{className:`${q}-cover`},gt):null,mt=G.createElement("div",{className:`${q}-body`,style:ge},it?Ve:ft),Ot=ht&&ht.length?G.createElement("ul",{className:`${q}-actions`},Q(ht)):null,Kt=(0,d.Z)(l,["onTabChange"]),qt=Pe()(q,b==null?void 0:b.className,{[`${q}-loading`]:it,[`${q}-bordered`]:dt,[`${q}-hoverable`]:e,[`${q}-contain-grid`]:de,[`${q}-contain-tabs`]:At&&At.length,[`${q}-${at}`]:at,[`${q}-type-${tt}`]:!!tt,[`${q}-rtl`]:Z==="rtl"},K,ce,Re),It=Object.assign(Object.assign({},b==null?void 0:b.style),U);return _e(G.createElement("div",Object.assign({ref:Y},Kt,{className:qt,style:It}),Dt,St,mt,Ot))}),W=function(T,Y){var ie={};for(var K in T)Object.prototype.hasOwnProperty.call(T,K)&&Y.indexOf(K)<0&&(ie[K]=T[K]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,K=Object.getOwnPropertySymbols(T);ce<K.length;ce++)Y.indexOf(K[ce])<0&&Object.prototype.propertyIsEnumerable.call(T,K[ce])&&(ie[K[ce]]=T[K[ce]]);return ie},A=T=>{const{prefixCls:Y,className:ie,avatar:K,title:ce,description:U}=T,N=W(T,["prefixCls","className","avatar","title","description"]),{getPrefixCls:Ce}=G.useContext(k.E_),ge=Ce("card",Y),he=Pe()(`${ge}-meta`,ie),it=K?G.createElement("div",{className:`${ge}-meta-avatar`},K):null,dt=ce?G.createElement("div",{className:`${ge}-meta-title`},ce):null,Ue=U?G.createElement("div",{className:`${ge}-meta-description`},U):null,tt=dt||Ue?G.createElement("div",{className:`${ge}-meta-detail`},dt,Ue):null;return G.createElement("div",Object.assign({},N,{className:he}),it,tt)};const s=J;s.Grid=O,s.Meta=A;var ne=s},91978:function(Jt,zt,V){"use strict";V.d(zt,{Z:function(){return Lt}});var a=V(67294),Pe=V(87462),d=V(1413),G=V(15671),k=V(43144),u=V(97326),v=V(60136),i=V(51630),h=V(4942),x=V(71002),O=V(45987),g={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},S=g,p=V(27856),E=V(94184),f=V.n(E);function _(pe,c,z){return Math.max(c,Math.min(pe,z))}var m=function(c){var z=["onTouchStart","onTouchMove","onWheel"];z.includes(c._reactName)||c.preventDefault()},w=function(c){for(var z=[],ue=M(c),n=P(c),X=ue;X<n;X++)c.lazyLoadedList.indexOf(X)<0&&z.push(X);return z},D=function(c){for(var z=[],ue=M(c),n=P(c),X=ue;X<n;X++)z.push(X);return z},M=function(c){return c.currentSlide-le(c)},P=function(c){return c.currentSlide+ee(c)},le=function(c){return c.centerMode?Math.floor(c.slidesToShow/2)+(parseInt(c.centerPadding)>0?1:0):0},ee=function(c){return c.centerMode?Math.floor((c.slidesToShow-1)/2)+1+(parseInt(c.centerPadding)>0?1:0):c.slidesToShow},Q=function(c){return c&&c.offsetWidth||0},j=function(c){return c&&c.offsetHeight||0},J=function(c){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue,n,X,R;return ue=c.startX-c.curX,n=c.startY-c.curY,X=Math.atan2(n,ue),R=Math.round(X*180/Math.PI),R<0&&(R=360-Math.abs(R)),R<=45&&R>=0||R<=360&&R>=315?"left":R>=135&&R<=225?"right":z===!0?R>=35&&R<=135?"up":"down":"vertical"},W=function(c){var z=!0;return c.infinite||(c.centerMode&&c.currentSlide>=c.slideCount-1||c.slideCount<=c.slidesToShow||c.currentSlide>=c.slideCount-c.slidesToShow)&&(z=!1),z},C=function(c,z){var ue={};return z.forEach(function(n){return ue[n]=c[n]}),ue},A=function(c){var z=a.Children.count(c.children),ue=c.listRef,n=Math.ceil(Q(ue)),X=c.trackRef&&c.trackRef.node,R=Math.ceil(Q(X)),$;if(c.vertical)$=n;else{var ae=c.centerMode&&parseInt(c.centerPadding)*2;typeof c.centerPadding=="string"&&c.centerPadding.slice(-1)==="%"&&(ae*=n/100),$=Math.ceil((n-ae)/c.slidesToShow)}var Se=ue&&j(ue.querySelector('[data-index="0"]')),Ie=Se*c.slidesToShow,Ee=c.currentSlide===void 0?c.initialSlide:c.currentSlide;c.rtl&&c.currentSlide===void 0&&(Ee=z-1-c.initialSlide);var $e=c.lazyLoadedList||[],pt=w((0,d.Z)((0,d.Z)({},c),{},{currentSlide:Ee,lazyLoadedList:$e}));$e=$e.concat(pt);var Ye={slideCount:z,slideWidth:$,listWidth:n,trackWidth:R,currentSlide:Ee,slideHeight:Se,listHeight:Ie,lazyLoadedList:$e};return c.autoplaying===null&&c.autoplay&&(Ye.autoplaying="playing"),Ye},s=function(c){var z=c.waitForAnimate,ue=c.animating,n=c.fade,X=c.infinite,R=c.index,$=c.slideCount,ae=c.lazyLoad,Se=c.currentSlide,Ie=c.centerMode,Ee=c.slidesToScroll,$e=c.slidesToShow,pt=c.useCSS,Ye=c.lazyLoadedList;if(z&&ue)return{};var Le=R,ze,ct,Me,Qe={},yt={},kt=X?R:_(R,0,$-1);if(n){if(!X&&(R<0||R>=$))return{};R<0?Le=R+$:R>=$&&(Le=R-$),ae&&Ye.indexOf(Le)<0&&(Ye=Ye.concat(Le)),Qe={animating:!0,currentSlide:Le,lazyLoadedList:Ye,targetSlide:Le},yt={animating:!1,targetSlide:Le}}else ze=Le,Le<0?(ze=Le+$,X?$%Ee!==0&&(ze=$-$%Ee):ze=0):!W(c)&&Le>Se?Le=ze=Se:Ie&&Le>=$?(Le=X?$:$-1,ze=X?0:$-1):Le>=$&&(ze=Le-$,X?$%Ee!==0&&(ze=0):ze=$-$e),!X&&Le+$e>=$&&(ze=$-$e),ct=it((0,d.Z)((0,d.Z)({},c),{},{slideIndex:Le})),Me=it((0,d.Z)((0,d.Z)({},c),{},{slideIndex:ze})),X||(ct===Me&&(Le=ze),ct=Me),ae&&(Ye=Ye.concat(w((0,d.Z)((0,d.Z)({},c),{},{currentSlide:Le})))),pt?(Qe={animating:!0,currentSlide:ze,trackStyle:he((0,d.Z)((0,d.Z)({},c),{},{left:ct})),lazyLoadedList:Ye,targetSlide:kt},yt={animating:!1,currentSlide:ze,trackStyle:ge((0,d.Z)((0,d.Z)({},c),{},{left:Me})),swipeLeft:null,targetSlide:kt}):Qe={currentSlide:ze,trackStyle:ge((0,d.Z)((0,d.Z)({},c),{},{left:Me})),lazyLoadedList:Ye,targetSlide:kt};return{state:Qe,nextState:yt}},ne=function(c,z){var ue,n,X,R,$,ae=c.slidesToScroll,Se=c.slidesToShow,Ie=c.slideCount,Ee=c.currentSlide,$e=c.targetSlide,pt=c.lazyLoad,Ye=c.infinite;if(R=Ie%ae!==0,ue=R?0:(Ie-Ee)%ae,z.message==="previous")X=ue===0?ae:Se-ue,$=Ee-X,pt&&!Ye&&(n=Ee-X,$=n===-1?Ie-1:n),Ye||($=$e-ae);else if(z.message==="next")X=ue===0?ae:ue,$=Ee+X,pt&&!Ye&&($=(Ee+ae)%Ie+ue),Ye||($=$e+ae);else if(z.message==="dots")$=z.index*z.slidesToScroll;else if(z.message==="children"){if($=z.index,Ye){var Le=gt((0,d.Z)((0,d.Z)({},c),{},{targetSlide:$}));$>z.currentSlide&&Le==="left"?$=$-Ie:$<z.currentSlide&&Le==="right"&&($=$+Ie)}}else z.message==="index"&&($=Number(z.index));return $},T=function(c,z,ue){return c.target.tagName.match("TEXTAREA|INPUT|SELECT")||!z?"":c.keyCode===37?ue?"next":"previous":c.keyCode===39?ue?"previous":"next":""},Y=function(c,z,ue){return c.target.tagName==="IMG"&&m(c),!z||!ue&&c.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:c.touches?c.touches[0].pageX:c.clientX,startY:c.touches?c.touches[0].pageY:c.clientY,curX:c.touches?c.touches[0].pageX:c.clientX,curY:c.touches?c.touches[0].pageY:c.clientY}}},ie=function(c,z){var ue=z.scrolling,n=z.animating,X=z.vertical,R=z.swipeToSlide,$=z.verticalSwiping,ae=z.rtl,Se=z.currentSlide,Ie=z.edgeFriction,Ee=z.edgeDragged,$e=z.onEdge,pt=z.swiped,Ye=z.swiping,Le=z.slideCount,ze=z.slidesToScroll,ct=z.infinite,Me=z.touchObject,Qe=z.swipeEvent,yt=z.listHeight,kt=z.listWidth;if(!ue){if(n)return m(c);X&&R&&$&&m(c);var Ut,Gt={},pn=it(z);Me.curX=c.touches?c.touches[0].pageX:c.clientX,Me.curY=c.touches?c.touches[0].pageY:c.clientY,Me.swipeLength=Math.round(Math.sqrt(Math.pow(Me.curX-Me.startX,2)));var en=Math.round(Math.sqrt(Math.pow(Me.curY-Me.startY,2)));if(!$&&!Ye&&en>10)return{scrolling:!0};$&&(Me.swipeLength=en);var hn=(ae?-1:1)*(Me.curX>Me.startX?1:-1);$&&(hn=Me.curY>Me.startY?1:-1);var vn=Math.ceil(Le/ze),tn=J(z.touchObject,$),bn=Me.swipeLength;return ct||(Se===0&&(tn==="right"||tn==="down")||Se+1>=vn&&(tn==="left"||tn==="up")||!W(z)&&(tn==="left"||tn==="up"))&&(bn=Me.swipeLength*Ie,Ee===!1&&$e&&($e(tn),Gt.edgeDragged=!0)),!pt&&Qe&&(Qe(tn),Gt.swiped=!0),X?Ut=pn+bn*(yt/kt)*hn:ae?Ut=pn-bn*hn:Ut=pn+bn*hn,$&&(Ut=pn+bn*hn),Gt=(0,d.Z)((0,d.Z)({},Gt),{},{touchObject:Me,swipeLeft:Ut,trackStyle:ge((0,d.Z)((0,d.Z)({},z),{},{left:Ut}))}),Math.abs(Me.curX-Me.startX)<Math.abs(Me.curY-Me.startY)*.8||Me.swipeLength>10&&(Gt.swiping=!0,m(c)),Gt}},K=function(c,z){var ue=z.dragging,n=z.swipe,X=z.touchObject,R=z.listWidth,$=z.touchThreshold,ae=z.verticalSwiping,Se=z.listHeight,Ie=z.swipeToSlide,Ee=z.scrolling,$e=z.onSwipe,pt=z.targetSlide,Ye=z.currentSlide,Le=z.infinite;if(!ue)return n&&m(c),{};var ze=ae?Se/$:R/$,ct=J(X,ae),Me={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(Ee||!X.swipeLength)return Me;if(X.swipeLength>ze){m(c),$e&&$e(ct);var Qe,yt,kt=Le?Ye:pt;switch(ct){case"left":case"up":yt=kt+N(z),Qe=Ie?U(z,yt):yt,Me.currentDirection=0;break;case"right":case"down":yt=kt-N(z),Qe=Ie?U(z,yt):yt,Me.currentDirection=1;break;default:Qe=kt}Me.triggerSlideHandler=Qe}else{var Ut=it(z);Me.trackStyle=he((0,d.Z)((0,d.Z)({},z),{},{left:Ut}))}return Me},ce=function(c){for(var z=c.infinite?c.slideCount*2:c.slideCount,ue=c.infinite?c.slidesToShow*-1:0,n=c.infinite?c.slidesToShow*-1:0,X=[];ue<z;)X.push(ue),ue=n+c.slidesToScroll,n+=Math.min(c.slidesToScroll,c.slidesToShow);return X},U=function(c,z){var ue=ce(c),n=0;if(z>ue[ue.length-1])z=ue[ue.length-1];else for(var X in ue){if(z<ue[X]){z=n;break}n=ue[X]}return z},N=function(c){var z=c.centerMode?c.slideWidth*Math.floor(c.slidesToShow/2):0;if(c.swipeToSlide){var ue,n=c.listRef,X=n.querySelectorAll&&n.querySelectorAll(".slick-slide")||[];if(Array.from(X).every(function(ae){if(c.vertical){if(ae.offsetTop+j(ae)/2>c.swipeLeft*-1)return ue=ae,!1}else if(ae.offsetLeft-z+Q(ae)/2>c.swipeLeft*-1)return ue=ae,!1;return!0}),!ue)return 0;var R=c.rtl===!0?c.slideCount-c.currentSlide:c.currentSlide,$=Math.abs(ue.dataset.index-R)||1;return $}else return c.slidesToScroll},Ce=function(c,z){return z.reduce(function(ue,n){return ue&&c.hasOwnProperty(n)},!0)?null:console.error("Keys Missing:",c)},ge=function(c){Ce(c,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var z,ue,n=c.slideCount+2*c.slidesToShow;c.vertical?ue=n*c.slideHeight:z=tt(c)*c.slideWidth;var X={opacity:1,transition:"",WebkitTransition:""};if(c.useTransform){var R=c.vertical?"translate3d(0px, "+c.left+"px, 0px)":"translate3d("+c.left+"px, 0px, 0px)",$=c.vertical?"translate3d(0px, "+c.left+"px, 0px)":"translate3d("+c.left+"px, 0px, 0px)",ae=c.vertical?"translateY("+c.left+"px)":"translateX("+c.left+"px)";X=(0,d.Z)((0,d.Z)({},X),{},{WebkitTransform:R,transform:$,msTransform:ae})}else c.vertical?X.top=c.left:X.left=c.left;return c.fade&&(X={opacity:1}),z&&(X.width=z),ue&&(X.height=ue),window&&!window.addEventListener&&window.attachEvent&&(c.vertical?X.marginTop=c.left+"px":X.marginLeft=c.left+"px"),X},he=function(c){Ce(c,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var z=ge(c);return c.useTransform?(z.WebkitTransition="-webkit-transform "+c.speed+"ms "+c.cssEase,z.transition="transform "+c.speed+"ms "+c.cssEase):c.vertical?z.transition="top "+c.speed+"ms "+c.cssEase:z.transition="left "+c.speed+"ms "+c.cssEase,z},it=function(c){if(c.unslick)return 0;Ce(c,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var z=c.slideIndex,ue=c.trackRef,n=c.infinite,X=c.centerMode,R=c.slideCount,$=c.slidesToShow,ae=c.slidesToScroll,Se=c.slideWidth,Ie=c.listWidth,Ee=c.variableWidth,$e=c.slideHeight,pt=c.fade,Ye=c.vertical,Le=0,ze,ct,Me=0;if(pt||c.slideCount===1)return 0;var Qe=0;if(n?(Qe=-dt(c),R%ae!==0&&z+ae>R&&(Qe=-(z>R?$-(z-R):R%ae)),X&&(Qe+=parseInt($/2))):(R%ae!==0&&z+ae>R&&(Qe=$-R%ae),X&&(Qe=parseInt($/2))),Le=Qe*Se,Me=Qe*$e,Ye?ze=z*$e*-1+Me:ze=z*Se*-1+Le,Ee===!0){var yt,kt=ue&&ue.node;if(yt=z+dt(c),ct=kt&&kt.childNodes[yt],ze=ct?ct.offsetLeft*-1:0,X===!0){yt=n?z+dt(c):z,ct=kt&&kt.children[yt],ze=0;for(var Ut=0;Ut<yt;Ut++)ze-=kt&&kt.children[Ut]&&kt.children[Ut].offsetWidth;ze-=parseInt(c.centerPadding),ze+=ct&&(Ie-ct.offsetWidth)/2}}return ze},dt=function(c){return c.unslick||!c.infinite?0:c.variableWidth?c.slideCount:c.slidesToShow+(c.centerMode?1:0)},Ue=function(c){return c.unslick||!c.infinite?0:c.slideCount},tt=function(c){return c.slideCount===1?1:dt(c)+c.slideCount+Ue(c)},gt=function(c){return c.targetSlide>c.currentSlide?c.targetSlide>c.currentSlide+ht(c)?"left":"right":c.targetSlide<c.currentSlide-At(c)?"right":"left"},ht=function(c){var z=c.slidesToShow,ue=c.centerMode,n=c.rtl,X=c.centerPadding;if(ue){var R=(z-1)/2+1;return parseInt(X)>0&&(R+=1),n&&z%2===0&&(R+=1),R}return n?0:z-1},At=function(c){var z=c.slidesToShow,ue=c.centerMode,n=c.rtl,X=c.centerPadding;if(ue){var R=(z-1)/2+1;return parseInt(X)>0&&(R+=1),!n&&z%2===0&&(R+=1),R}return n?z-1:0},ft=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},r=function(c){var z,ue,n,X,R;c.rtl?R=c.slideCount-1-c.index:R=c.index,n=R<0||R>=c.slideCount,c.centerMode?(X=Math.floor(c.slidesToShow/2),ue=(R-c.currentSlide)%c.slideCount===0,R>c.currentSlide-X-1&&R<=c.currentSlide+X&&(z=!0)):z=c.currentSlide<=R&&R<c.currentSlide+c.slidesToShow;var $;c.targetSlide<0?$=c.targetSlide+c.slideCount:c.targetSlide>=c.slideCount?$=c.targetSlide-c.slideCount:$=c.targetSlide;var ae=R===$;return{"slick-slide":!0,"slick-active":z,"slick-center":ue,"slick-cloned":n,"slick-current":ae}},re=function(c){var z={};return(c.variableWidth===void 0||c.variableWidth===!1)&&(z.width=c.slideWidth),c.fade&&(z.position="relative",c.vertical&&c.slideHeight?z.top=-c.index*parseInt(c.slideHeight):z.left=-c.index*parseInt(c.slideWidth),z.opacity=c.currentSlide===c.index?1:0,c.useCSS&&(z.transition="opacity "+c.speed+"ms "+c.cssEase+", visibility "+c.speed+"ms "+c.cssEase)),z},o=function(c,z){return c.key+"-"+z},e=function(c){var z,ue=[],n=[],X=[],R=a.Children.count(c.children),$=M(c),ae=P(c);return a.Children.forEach(c.children,function(Se,Ie){var Ee,$e={message:"children",index:Ie,slidesToScroll:c.slidesToScroll,currentSlide:c.currentSlide};!c.lazyLoad||c.lazyLoad&&c.lazyLoadedList.indexOf(Ie)>=0?Ee=Se:Ee=a.createElement("div",null);var pt=re((0,d.Z)((0,d.Z)({},c),{},{index:Ie})),Ye=Ee.props.className||"",Le=r((0,d.Z)((0,d.Z)({},c),{},{index:Ie}));if(ue.push(a.cloneElement(Ee,{key:"original"+o(Ee,Ie),"data-index":Ie,className:f()(Le,Ye),tabIndex:"-1","aria-hidden":!Le["slick-active"],style:(0,d.Z)((0,d.Z)({outline:"none"},Ee.props.style||{}),pt),onClick:function(Me){Ee.props&&Ee.props.onClick&&Ee.props.onClick(Me),c.focusOnSelect&&c.focusOnSelect($e)}})),c.infinite&&c.fade===!1){var ze=R-Ie;ze<=dt(c)&&R!==c.slidesToShow&&(z=-ze,z>=$&&(Ee=Se),Le=r((0,d.Z)((0,d.Z)({},c),{},{index:z})),n.push(a.cloneElement(Ee,{key:"precloned"+o(Ee,z),"data-index":z,tabIndex:"-1",className:f()(Le,Ye),"aria-hidden":!Le["slick-active"],style:(0,d.Z)((0,d.Z)({},Ee.props.style||{}),pt),onClick:function(Me){Ee.props&&Ee.props.onClick&&Ee.props.onClick(Me),c.focusOnSelect&&c.focusOnSelect($e)}}))),R!==c.slidesToShow&&(z=R+Ie,z<ae&&(Ee=Se),Le=r((0,d.Z)((0,d.Z)({},c),{},{index:z})),X.push(a.cloneElement(Ee,{key:"postcloned"+o(Ee,z),"data-index":z,tabIndex:"-1",className:f()(Le,Ye),"aria-hidden":!Le["slick-active"],style:(0,d.Z)((0,d.Z)({},Ee.props.style||{}),pt),onClick:function(Me){Ee.props&&Ee.props.onClick&&Ee.props.onClick(Me),c.focusOnSelect&&c.focusOnSelect($e)}})))}}),c.rtl?n.concat(ue,X).reverse():n.concat(ue,X)},t=function(pe){(0,v.Z)(z,pe);var c=(0,i.Z)(z);function z(){var ue;(0,G.Z)(this,z);for(var n=arguments.length,X=new Array(n),R=0;R<n;R++)X[R]=arguments[R];return ue=c.call.apply(c,[this].concat(X)),(0,h.Z)((0,u.Z)(ue),"node",null),(0,h.Z)((0,u.Z)(ue),"handleRef",function($){ue.node=$}),ue}return(0,k.Z)(z,[{key:"render",value:function(){var n=e(this.props),X=this.props,R=X.onMouseEnter,$=X.onMouseOver,ae=X.onMouseLeave,Se={onMouseEnter:R,onMouseOver:$,onMouseLeave:ae};return a.createElement("div",(0,Pe.Z)({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},Se),n)}}]),z}(a.PureComponent),l=function(c){var z;return c.infinite?z=Math.ceil(c.slideCount/c.slidesToScroll):z=Math.ceil((c.slideCount-c.slidesToShow)/c.slidesToScroll)+1,z},y=function(pe){(0,v.Z)(z,pe);var c=(0,i.Z)(z);function z(){return(0,G.Z)(this,z),c.apply(this,arguments)}return(0,k.Z)(z,[{key:"clickHandler",value:function(n,X){X.preventDefault(),this.props.clickHandler(n)}},{key:"render",value:function(){for(var n=this.props,X=n.onMouseEnter,R=n.onMouseOver,$=n.onMouseLeave,ae=n.infinite,Se=n.slidesToScroll,Ie=n.slidesToShow,Ee=n.slideCount,$e=n.currentSlide,pt=l({slideCount:Ee,slidesToScroll:Se,slidesToShow:Ie,infinite:ae}),Ye={onMouseEnter:X,onMouseOver:R,onMouseLeave:$},Le=[],ze=0;ze<pt;ze++){var ct=(ze+1)*Se-1,Me=ae?ct:_(ct,0,Ee-1),Qe=Me-(Se-1),yt=ae?Qe:_(Qe,0,Ee-1),kt=f()({"slick-active":ae?$e>=yt&&$e<=Me:$e===yt}),Ut={message:"dots",index:ze,slidesToScroll:Se,currentSlide:$e},Gt=this.clickHandler.bind(this,Ut);Le=Le.concat(a.createElement("li",{key:ze,className:kt},a.cloneElement(this.props.customPaging(ze),{onClick:Gt})))}return a.cloneElement(this.props.appendDots(Le),(0,d.Z)({className:this.props.dotsClass},Ye))}}]),z}(a.PureComponent),Z=function(pe){(0,v.Z)(z,pe);var c=(0,i.Z)(z);function z(){return(0,G.Z)(this,z),c.apply(this,arguments)}return(0,k.Z)(z,[{key:"clickHandler",value:function(n,X){X&&X.preventDefault(),this.props.clickHandler(n,X)}},{key:"render",value:function(){var n={"slick-arrow":!0,"slick-prev":!0},X=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(n["slick-disabled"]=!0,X=null);var R={key:"0","data-role":"none",className:f()(n),style:{display:"block"},onClick:X},$={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},ae;return this.props.prevArrow?ae=a.cloneElement(this.props.prevArrow,(0,d.Z)((0,d.Z)({},R),$)):ae=a.createElement("button",(0,Pe.Z)({key:"0",type:"button"},R)," ","Previous"),ae}}]),z}(a.PureComponent),b=function(pe){(0,v.Z)(z,pe);var c=(0,i.Z)(z);function z(){return(0,G.Z)(this,z),c.apply(this,arguments)}return(0,k.Z)(z,[{key:"clickHandler",value:function(n,X){X&&X.preventDefault(),this.props.clickHandler(n,X)}},{key:"render",value:function(){var n={"slick-arrow":!0,"slick-next":!0},X=this.clickHandler.bind(this,{message:"next"});W(this.props)||(n["slick-disabled"]=!0,X=null);var R={key:"1","data-role":"none",className:f()(n),style:{display:"block"},onClick:X},$={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},ae;return this.props.nextArrow?ae=a.cloneElement(this.props.nextArrow,(0,d.Z)((0,d.Z)({},R),$)):ae=a.createElement("button",(0,Pe.Z)({key:"1",type:"button"},R)," ","Next"),ae}}]),z}(a.PureComponent),te=V(91033),de=["animating"],q=function(pe){(0,v.Z)(z,pe);var c=(0,i.Z)(z);function z(ue){var n;(0,G.Z)(this,z),n=c.call(this,ue),(0,h.Z)((0,u.Z)(n),"listRefHandler",function(R){return n.list=R}),(0,h.Z)((0,u.Z)(n),"trackRefHandler",function(R){return n.track=R}),(0,h.Z)((0,u.Z)(n),"adaptHeight",function(){if(n.props.adaptiveHeight&&n.list){var R=n.list.querySelector('[data-index="'.concat(n.state.currentSlide,'"]'));n.list.style.height=j(R)+"px"}}),(0,h.Z)((0,u.Z)(n),"componentDidMount",function(){if(n.props.onInit&&n.props.onInit(),n.props.lazyLoad){var R=w((0,d.Z)((0,d.Z)({},n.props),n.state));R.length>0&&(n.setState(function(ae){return{lazyLoadedList:ae.lazyLoadedList.concat(R)}}),n.props.onLazyLoad&&n.props.onLazyLoad(R))}var $=(0,d.Z)({listRef:n.list,trackRef:n.track},n.props);n.updateState($,!0,function(){n.adaptHeight(),n.props.autoplay&&n.autoPlay("playing")}),n.props.lazyLoad==="progressive"&&(n.lazyLoadTimer=setInterval(n.progressiveLazyLoad,1e3)),n.ro=new te.Z(function(){n.state.animating?(n.onWindowResized(!1),n.callbackTimers.push(setTimeout(function(){return n.onWindowResized()},n.props.speed))):n.onWindowResized()}),n.ro.observe(n.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(ae){ae.onfocus=n.props.pauseOnFocus?n.onSlideFocus:null,ae.onblur=n.props.pauseOnFocus?n.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",n.onWindowResized):window.attachEvent("onresize",n.onWindowResized)}),(0,h.Z)((0,u.Z)(n),"componentWillUnmount",function(){n.animationEndCallback&&clearTimeout(n.animationEndCallback),n.lazyLoadTimer&&clearInterval(n.lazyLoadTimer),n.callbackTimers.length&&(n.callbackTimers.forEach(function(R){return clearTimeout(R)}),n.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",n.onWindowResized):window.detachEvent("onresize",n.onWindowResized),n.autoplayTimer&&clearInterval(n.autoplayTimer),n.ro.disconnect()}),(0,h.Z)((0,u.Z)(n),"componentDidUpdate",function(R){if(n.checkImagesLoad(),n.props.onReInit&&n.props.onReInit(),n.props.lazyLoad){var $=w((0,d.Z)((0,d.Z)({},n.props),n.state));$.length>0&&(n.setState(function(Ie){return{lazyLoadedList:Ie.lazyLoadedList.concat($)}}),n.props.onLazyLoad&&n.props.onLazyLoad($))}n.adaptHeight();var ae=(0,d.Z)((0,d.Z)({listRef:n.list,trackRef:n.track},n.props),n.state),Se=n.didPropsChange(R);Se&&n.updateState(ae,Se,function(){n.state.currentSlide>=a.Children.count(n.props.children)&&n.changeSlide({message:"index",index:a.Children.count(n.props.children)-n.props.slidesToShow,currentSlide:n.state.currentSlide}),(R.autoplay!==n.props.autoplay||R.autoplaySpeed!==n.props.autoplaySpeed)&&(!R.autoplay&&n.props.autoplay?n.autoPlay("playing"):n.props.autoplay?n.autoPlay("update"):n.pause("paused"))})}),(0,h.Z)((0,u.Z)(n),"onWindowResized",function(R){n.debouncedResize&&n.debouncedResize.cancel(),n.debouncedResize=(0,p.D)(50,function(){return n.resizeWindow(R)}),n.debouncedResize()}),(0,h.Z)((0,u.Z)(n),"resizeWindow",function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=!!(n.track&&n.track.node);if($){var ae=(0,d.Z)((0,d.Z)({listRef:n.list,trackRef:n.track},n.props),n.state);n.updateState(ae,R,function(){n.props.autoplay?n.autoPlay("update"):n.pause("paused")}),n.setState({animating:!1}),clearTimeout(n.animationEndCallback),delete n.animationEndCallback}}),(0,h.Z)((0,u.Z)(n),"updateState",function(R,$,ae){var Se=A(R);R=(0,d.Z)((0,d.Z)((0,d.Z)({},R),Se),{},{slideIndex:Se.currentSlide});var Ie=it(R);R=(0,d.Z)((0,d.Z)({},R),{},{left:Ie});var Ee=ge(R);($||a.Children.count(n.props.children)!==a.Children.count(R.children))&&(Se.trackStyle=Ee),n.setState(Se,ae)}),(0,h.Z)((0,u.Z)(n),"ssrInit",function(){if(n.props.variableWidth){var R=0,$=0,ae=[],Se=dt((0,d.Z)((0,d.Z)((0,d.Z)({},n.props),n.state),{},{slideCount:n.props.children.length})),Ie=Ue((0,d.Z)((0,d.Z)((0,d.Z)({},n.props),n.state),{},{slideCount:n.props.children.length}));n.props.children.forEach(function(Gt){ae.push(Gt.props.style.width),R+=Gt.props.style.width});for(var Ee=0;Ee<Se;Ee++)$+=ae[ae.length-1-Ee],R+=ae[ae.length-1-Ee];for(var $e=0;$e<Ie;$e++)R+=ae[$e];for(var pt=0;pt<n.state.currentSlide;pt++)$+=ae[pt];var Ye={width:R+"px",left:-$+"px"};if(n.props.centerMode){var Le="".concat(ae[n.state.currentSlide],"px");Ye.left="calc(".concat(Ye.left," + (100% - ").concat(Le,") / 2 ) ")}return{trackStyle:Ye}}var ze=a.Children.count(n.props.children),ct=(0,d.Z)((0,d.Z)((0,d.Z)({},n.props),n.state),{},{slideCount:ze}),Me=dt(ct)+Ue(ct)+ze,Qe=100/n.props.slidesToShow*Me,yt=100/Me,kt=-yt*(dt(ct)+n.state.currentSlide)*Qe/100;n.props.centerMode&&(kt+=(100-yt*Qe/100)/2);var Ut={width:Qe+"%",left:kt+"%"};return{slideWidth:yt+"%",trackStyle:Ut}}),(0,h.Z)((0,u.Z)(n),"checkImagesLoad",function(){var R=n.list&&n.list.querySelectorAll&&n.list.querySelectorAll(".slick-slide img")||[],$=R.length,ae=0;Array.prototype.forEach.call(R,function(Se){var Ie=function(){return++ae&&ae>=$&&n.onWindowResized()};if(!Se.onclick)Se.onclick=function(){return Se.parentNode.focus()};else{var Ee=Se.onclick;Se.onclick=function($e){Ee($e),Se.parentNode.focus()}}Se.onload||(n.props.lazyLoad?Se.onload=function(){n.adaptHeight(),n.callbackTimers.push(setTimeout(n.onWindowResized,n.props.speed))}:(Se.onload=Ie,Se.onerror=function(){Ie(),n.props.onLazyLoadError&&n.props.onLazyLoadError()}))})}),(0,h.Z)((0,u.Z)(n),"progressiveLazyLoad",function(){for(var R=[],$=(0,d.Z)((0,d.Z)({},n.props),n.state),ae=n.state.currentSlide;ae<n.state.slideCount+Ue($);ae++)if(n.state.lazyLoadedList.indexOf(ae)<0){R.push(ae);break}for(var Se=n.state.currentSlide-1;Se>=-dt($);Se--)if(n.state.lazyLoadedList.indexOf(Se)<0){R.push(Se);break}R.length>0?(n.setState(function(Ie){return{lazyLoadedList:Ie.lazyLoadedList.concat(R)}}),n.props.onLazyLoad&&n.props.onLazyLoad(R)):n.lazyLoadTimer&&(clearInterval(n.lazyLoadTimer),delete n.lazyLoadTimer)}),(0,h.Z)((0,u.Z)(n),"slideHandler",function(R){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ae=n.props,Se=ae.asNavFor,Ie=ae.beforeChange,Ee=ae.onLazyLoad,$e=ae.speed,pt=ae.afterChange,Ye=n.state.currentSlide,Le=s((0,d.Z)((0,d.Z)((0,d.Z)({index:R},n.props),n.state),{},{trackRef:n.track,useCSS:n.props.useCSS&&!$})),ze=Le.state,ct=Le.nextState;if(ze){Ie&&Ie(Ye,ze.currentSlide);var Me=ze.lazyLoadedList.filter(function(Qe){return n.state.lazyLoadedList.indexOf(Qe)<0});Ee&&Me.length>0&&Ee(Me),!n.props.waitForAnimate&&n.animationEndCallback&&(clearTimeout(n.animationEndCallback),pt&&pt(Ye),delete n.animationEndCallback),n.setState(ze,function(){Se&&n.asNavForIndex!==R&&(n.asNavForIndex=R,Se.innerSlider.slideHandler(R)),ct&&(n.animationEndCallback=setTimeout(function(){var Qe=ct.animating,yt=(0,O.Z)(ct,de);n.setState(yt,function(){n.callbackTimers.push(setTimeout(function(){return n.setState({animating:Qe})},10)),pt&&pt(ze.currentSlide),delete n.animationEndCallback})},$e))})}}),(0,h.Z)((0,u.Z)(n),"changeSlide",function(R){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ae=(0,d.Z)((0,d.Z)({},n.props),n.state),Se=ne(ae,R);if(!(Se!==0&&!Se)&&($===!0?n.slideHandler(Se,$):n.slideHandler(Se),n.props.autoplay&&n.autoPlay("update"),n.props.focusOnSelect)){var Ie=n.list.querySelectorAll(".slick-current");Ie[0]&&Ie[0].focus()}}),(0,h.Z)((0,u.Z)(n),"clickHandler",function(R){n.clickable===!1&&(R.stopPropagation(),R.preventDefault()),n.clickable=!0}),(0,h.Z)((0,u.Z)(n),"keyHandler",function(R){var $=T(R,n.props.accessibility,n.props.rtl);$!==""&&n.changeSlide({message:$})}),(0,h.Z)((0,u.Z)(n),"selectHandler",function(R){n.changeSlide(R)}),(0,h.Z)((0,u.Z)(n),"disableBodyScroll",function(){var R=function(ae){ae=ae||window.event,ae.preventDefault&&ae.preventDefault(),ae.returnValue=!1};window.ontouchmove=R}),(0,h.Z)((0,u.Z)(n),"enableBodyScroll",function(){window.ontouchmove=null}),(0,h.Z)((0,u.Z)(n),"swipeStart",function(R){n.props.verticalSwiping&&n.disableBodyScroll();var $=Y(R,n.props.swipe,n.props.draggable);$!==""&&n.setState($)}),(0,h.Z)((0,u.Z)(n),"swipeMove",function(R){var $=ie(R,(0,d.Z)((0,d.Z)((0,d.Z)({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));$&&($.swiping&&(n.clickable=!1),n.setState($))}),(0,h.Z)((0,u.Z)(n),"swipeEnd",function(R){var $=K(R,(0,d.Z)((0,d.Z)((0,d.Z)({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));if($){var ae=$.triggerSlideHandler;delete $.triggerSlideHandler,n.setState($),ae!==void 0&&(n.slideHandler(ae),n.props.verticalSwiping&&n.enableBodyScroll())}}),(0,h.Z)((0,u.Z)(n),"touchEnd",function(R){n.swipeEnd(R),n.clickable=!0}),(0,h.Z)((0,u.Z)(n),"slickPrev",function(){n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:"previous"})},0))}),(0,h.Z)((0,u.Z)(n),"slickNext",function(){n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:"next"})},0))}),(0,h.Z)((0,u.Z)(n),"slickGoTo",function(R){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R=Number(R),isNaN(R))return"";n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:"index",index:R,currentSlide:n.state.currentSlide},$)},0))}),(0,h.Z)((0,u.Z)(n),"play",function(){var R;if(n.props.rtl)R=n.state.currentSlide-n.props.slidesToScroll;else if(W((0,d.Z)((0,d.Z)({},n.props),n.state)))R=n.state.currentSlide+n.props.slidesToScroll;else return!1;n.slideHandler(R)}),(0,h.Z)((0,u.Z)(n),"autoPlay",function(R){n.autoplayTimer&&clearInterval(n.autoplayTimer);var $=n.state.autoplaying;if(R==="update"){if($==="hovered"||$==="focused"||$==="paused")return}else if(R==="leave"){if($==="paused"||$==="focused")return}else if(R==="blur"&&($==="paused"||$==="hovered"))return;n.autoplayTimer=setInterval(n.play,n.props.autoplaySpeed+50),n.setState({autoplaying:"playing"})}),(0,h.Z)((0,u.Z)(n),"pause",function(R){n.autoplayTimer&&(clearInterval(n.autoplayTimer),n.autoplayTimer=null);var $=n.state.autoplaying;R==="paused"?n.setState({autoplaying:"paused"}):R==="focused"?($==="hovered"||$==="playing")&&n.setState({autoplaying:"focused"}):$==="playing"&&n.setState({autoplaying:"hovered"})}),(0,h.Z)((0,u.Z)(n),"onDotsOver",function(){return n.props.autoplay&&n.pause("hovered")}),(0,h.Z)((0,u.Z)(n),"onDotsLeave",function(){return n.props.autoplay&&n.state.autoplaying==="hovered"&&n.autoPlay("leave")}),(0,h.Z)((0,u.Z)(n),"onTrackOver",function(){return n.props.autoplay&&n.pause("hovered")}),(0,h.Z)((0,u.Z)(n),"onTrackLeave",function(){return n.props.autoplay&&n.state.autoplaying==="hovered"&&n.autoPlay("leave")}),(0,h.Z)((0,u.Z)(n),"onSlideFocus",function(){return n.props.autoplay&&n.pause("focused")}),(0,h.Z)((0,u.Z)(n),"onSlideBlur",function(){return n.props.autoplay&&n.state.autoplaying==="focused"&&n.autoPlay("blur")}),(0,h.Z)((0,u.Z)(n),"render",function(){var R=f()("slick-slider",n.props.className,{"slick-vertical":n.props.vertical,"slick-initialized":!0}),$=(0,d.Z)((0,d.Z)({},n.props),n.state),ae=C($,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),Se=n.props.pauseOnHover;ae=(0,d.Z)((0,d.Z)({},ae),{},{onMouseEnter:Se?n.onTrackOver:null,onMouseLeave:Se?n.onTrackLeave:null,onMouseOver:Se?n.onTrackOver:null,focusOnSelect:n.props.focusOnSelect&&n.clickable?n.selectHandler:null});var Ie;if(n.props.dots===!0&&n.state.slideCount>=n.props.slidesToShow){var Ee=C($,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),$e=n.props.pauseOnDotsHover;Ee=(0,d.Z)((0,d.Z)({},Ee),{},{clickHandler:n.changeSlide,onMouseEnter:$e?n.onDotsLeave:null,onMouseOver:$e?n.onDotsOver:null,onMouseLeave:$e?n.onDotsLeave:null}),Ie=a.createElement(y,Ee)}var pt,Ye,Le=C($,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);Le.clickHandler=n.changeSlide,n.props.arrows&&(pt=a.createElement(Z,Le),Ye=a.createElement(b,Le));var ze=null;n.props.vertical&&(ze={height:n.state.listHeight});var ct=null;n.props.vertical===!1?n.props.centerMode===!0&&(ct={padding:"0px "+n.props.centerPadding}):n.props.centerMode===!0&&(ct={padding:n.props.centerPadding+" 0px"});var Me=(0,d.Z)((0,d.Z)({},ze),ct),Qe=n.props.touchMove,yt={className:"slick-list",style:Me,onClick:n.clickHandler,onMouseDown:Qe?n.swipeStart:null,onMouseMove:n.state.dragging&&Qe?n.swipeMove:null,onMouseUp:Qe?n.swipeEnd:null,onMouseLeave:n.state.dragging&&Qe?n.swipeEnd:null,onTouchStart:Qe?n.swipeStart:null,onTouchMove:n.state.dragging&&Qe?n.swipeMove:null,onTouchEnd:Qe?n.touchEnd:null,onTouchCancel:n.state.dragging&&Qe?n.swipeEnd:null,onKeyDown:n.props.accessibility?n.keyHandler:null},kt={className:R,dir:"ltr",style:n.props.style};return n.props.unslick&&(yt={className:"slick-list"},kt={className:R,style:n.props.style}),a.createElement("div",kt,n.props.unslick?"":pt,a.createElement("div",(0,Pe.Z)({ref:n.listRefHandler},yt),a.createElement(t,(0,Pe.Z)({ref:n.trackRefHandler},ae),n.props.children)),n.props.unslick?"":Ye,n.props.unslick?"":Ie)}),n.list=null,n.track=null,n.state=(0,d.Z)((0,d.Z)({},S),{},{currentSlide:n.props.initialSlide,slideCount:a.Children.count(n.props.children)}),n.callbackTimers=[],n.clickable=!0,n.debouncedResize=null;var X=n.ssrInit();return n.state=(0,d.Z)((0,d.Z)({},n.state),X),n}return(0,k.Z)(z,[{key:"didPropsChange",value:function(n){for(var X=!1,R=0,$=Object.keys(this.props);R<$.length;R++){var ae=$[R];if(!n.hasOwnProperty(ae)){X=!0;break}if(!((0,x.Z)(n[ae])==="object"||typeof n[ae]=="function")&&n[ae]!==this.props[ae]){X=!0;break}}return X||a.Children.count(this.props.children)!==a.Children.count(n.children)}}]),z}(a.Component),_e=V(80973),Re=V.n(_e),Ve={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(c){return a.createElement("ul",{style:{display:"block"}},c)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(c){return a.createElement("button",null,c+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},ot=Ve,$t=function(pe){(0,v.Z)(z,pe);var c=(0,i.Z)(z);function z(ue){var n;return(0,G.Z)(this,z),n=c.call(this,ue),(0,h.Z)((0,u.Z)(n),"innerSliderRefHandler",function(X){return n.innerSlider=X}),(0,h.Z)((0,u.Z)(n),"slickPrev",function(){return n.innerSlider.slickPrev()}),(0,h.Z)((0,u.Z)(n),"slickNext",function(){return n.innerSlider.slickNext()}),(0,h.Z)((0,u.Z)(n),"slickGoTo",function(X){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return n.innerSlider.slickGoTo(X,R)}),(0,h.Z)((0,u.Z)(n),"slickPause",function(){return n.innerSlider.pause("paused")}),(0,h.Z)((0,u.Z)(n),"slickPlay",function(){return n.innerSlider.autoPlay("play")}),n.state={breakpoint:null},n._responsiveMediaHandlers=[],n}return(0,k.Z)(z,[{key:"media",value:function(n,X){var R=window.matchMedia(n),$=function(Se){var Ie=Se.matches;Ie&&X()};R.addListener($),$(R),this._responsiveMediaHandlers.push({mql:R,query:n,listener:$})}},{key:"componentDidMount",value:function(){var n=this;if(this.props.responsive){var X=this.props.responsive.map(function($){return $.breakpoint});X.sort(function($,ae){return $-ae}),X.forEach(function($,ae){var Se;ae===0?Se=Re()({minWidth:0,maxWidth:$}):Se=Re()({minWidth:X[ae-1]+1,maxWidth:$}),ft()&&n.media(Se,function(){n.setState({breakpoint:$})})});var R=Re()({minWidth:X.slice(-1)[0]});ft()&&this.media(R,function(){n.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(n){n.mql.removeListener(n.listener)})}},{key:"render",value:function(){var n=this,X,R;this.state.breakpoint?(R=this.props.responsive.filter(function(ze){return ze.breakpoint===n.state.breakpoint}),X=R[0].settings==="unslick"?"unslick":(0,d.Z)((0,d.Z)((0,d.Z)({},ot),this.props),R[0].settings)):X=(0,d.Z)((0,d.Z)({},ot),this.props),X.centerMode&&(X.slidesToScroll>1,X.slidesToScroll=1),X.fade&&(X.slidesToShow>1,X.slidesToScroll>1,X.slidesToShow=1,X.slidesToScroll=1);var $=a.Children.toArray(this.props.children);$=$.filter(function(ze){return typeof ze=="string"?!!ze.trim():!!ze}),X.variableWidth&&(X.rows>1||X.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),X.variableWidth=!1);for(var ae=[],Se=null,Ie=0;Ie<$.length;Ie+=X.rows*X.slidesPerRow){for(var Ee=[],$e=Ie;$e<Ie+X.rows*X.slidesPerRow;$e+=X.slidesPerRow){for(var pt=[],Ye=$e;Ye<$e+X.slidesPerRow&&(X.variableWidth&&$[Ye].props.style&&(Se=$[Ye].props.style.width),!(Ye>=$.length));Ye+=1)pt.push(a.cloneElement($[Ye],{key:100*Ie+10*$e+Ye,tabIndex:-1,style:{width:"".concat(100/X.slidesPerRow,"%"),display:"inline-block"}}));Ee.push(a.createElement("div",{key:10*Ie+$e},pt))}X.variableWidth?ae.push(a.createElement("div",{key:Ie,style:{width:Se}},Ee)):ae.push(a.createElement("div",{key:Ie},Ee))}if(X==="unslick"){var Le="regular slider "+(this.props.className||"");return a.createElement("div",{className:Le},$)}else ae.length<=X.slidesToShow&&(X.unslick=!0);return a.createElement(q,(0,Pe.Z)({style:this.props.style,ref:this.innerSliderRefHandler},X),ae)}}]),z}(a.Component),Dt=$t,at=V(53124),Je=V(14747),je=V(67968),St=V(45503);const mt=pe=>{const{componentCls:c,antCls:z,carouselArrowSize:ue,carouselDotOffset:n,marginXXS:X}=pe,R=-ue*1.25,$=X;return{[c]:Object.assign(Object.assign({},(0,Je.Wf)(pe)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${z}-radio-input, input${z}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${z}-radio-input, input${z}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:ue,height:ue,marginTop:-ue/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:R,"&::before":{content:'"\u2190"'}},".slick-next":{insetInlineEnd:R,"&::before":{content:'"\u2192"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:n},"&-top":{top:n,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:pe.dotWidth,height:pe.dotHeight,marginInline:$,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${pe.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:pe.dotHeight,padding:0,color:"transparent",fontSize:0,background:pe.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${pe.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-$,content:'""'}},"&.slick-active":{width:pe.dotActiveWidth,"& button":{background:pe.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},Ot=pe=>{const{componentCls:c,carouselDotOffset:z,marginXXS:ue}=pe,n={width:pe.dotHeight,height:pe.dotWidth};return{[`${c}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:pe.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:z},"&-right":{insetInlineEnd:z,insetInlineStart:"auto"},li:Object.assign(Object.assign({},n),{margin:`${ue}px 0`,verticalAlign:"baseline",button:n,"&.slick-active":Object.assign(Object.assign({},n),{button:n})})}}}},Kt=pe=>{const{componentCls:c}=pe;return[{[`${c}-rtl`]:{direction:"rtl",".slick-dots":{[`${c}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${c}-vertical`]:{".slick-dots":{[`${c}-rtl&`]:{flexDirection:"column"}}}}]};var qt=(0,je.Z)("Carousel",pe=>{const{controlHeightLG:c,controlHeightSM:z}=pe,ue=(0,St.TS)(pe,{carouselArrowSize:c/2,carouselDotOffset:z/2});return[mt(ue),Ot(ue),Kt(ue)]},()=>({dotWidth:16,dotHeight:3,dotWidthActive:24,dotActiveWidth:24}),{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),It=function(pe,c){var z={};for(var ue in pe)Object.prototype.hasOwnProperty.call(pe,ue)&&c.indexOf(ue)<0&&(z[ue]=pe[ue]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,ue=Object.getOwnPropertySymbols(pe);n<ue.length;n++)c.indexOf(ue[n])<0&&Object.prototype.propertyIsEnumerable.call(pe,ue[n])&&(z[ue[n]]=pe[ue[n]]);return z},Lt=a.forwardRef((pe,c)=>{const{dots:z=!0,arrows:ue=!1,draggable:n=!1,waitForAnimate:X=!1,dotPosition:R="bottom",vertical:$=R==="left"||R==="right",rootClassName:ae,className:Se,style:Ie,id:Ee}=pe,$e=It(pe,["dots","arrows","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id"]),{getPrefixCls:pt,direction:Ye,carousel:Le}=a.useContext(at.E_),ze=a.useRef(),ct=function(vn){let tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ze.current.slickGoTo(vn,tn)};a.useImperativeHandle(c,()=>({goTo:ct,autoPlay:ze.current.innerSlider.autoPlay,innerSlider:ze.current.innerSlider,prev:ze.current.slickPrev,next:ze.current.slickNext}),[ze.current]);const Me=a.useRef(a.Children.count(pe.children));a.useEffect(()=>{Me.current!==a.Children.count(pe.children)&&(ct(pe.initialSlide||0,!1),Me.current=a.Children.count(pe.children))},[pe.children]);const Qe=Object.assign({vertical:$,className:f()(Se,Le==null?void 0:Le.className),style:Object.assign(Object.assign({},Le==null?void 0:Le.style),Ie)},$e);Qe.effect==="fade"&&(Qe.fade=!0);const yt=pt("carousel",Qe.prefixCls),kt="slick-dots",Ut=!!z,Gt=f()(kt,`${kt}-${R}`,typeof z=="boolean"?!1:z==null?void 0:z.className),[pn,en]=qt(yt),hn=f()(yt,{[`${yt}-rtl`]:Ye==="rtl",[`${yt}-vertical`]:Qe.vertical},en,ae);return pn(a.createElement("div",{className:hn,id:Ee},a.createElement(Dt,Object.assign({ref:ze},Qe,{dots:Ut,dotsClass:Gt,arrows:ue,draggable:n,verticalSwiping:$,waitForAnimate:X}))))})},80258:function(Jt,zt){"use strict";zt.byteLength=v,zt.toByteArray=h,zt.fromByteArray=g;for(var V=[],a=[],Pe=typeof Uint8Array!="undefined"?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",G=0,k=d.length;G<k;++G)V[G]=d[G],a[d.charCodeAt(G)]=G;a[45]=62,a[95]=63;function u(S){var p=S.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var E=S.indexOf("=");E===-1&&(E=p);var f=E===p?0:4-E%4;return[E,f]}function v(S){var p=u(S),E=p[0],f=p[1];return(E+f)*3/4-f}function i(S,p,E){return(p+E)*3/4-E}function h(S){var p,E=u(S),f=E[0],_=E[1],m=new Pe(i(S,f,_)),w=0,D=_>0?f-4:f,M;for(M=0;M<D;M+=4)p=a[S.charCodeAt(M)]<<18|a[S.charCodeAt(M+1)]<<12|a[S.charCodeAt(M+2)]<<6|a[S.charCodeAt(M+3)],m[w++]=p>>16&255,m[w++]=p>>8&255,m[w++]=p&255;return _===2&&(p=a[S.charCodeAt(M)]<<2|a[S.charCodeAt(M+1)]>>4,m[w++]=p&255),_===1&&(p=a[S.charCodeAt(M)]<<10|a[S.charCodeAt(M+1)]<<4|a[S.charCodeAt(M+2)]>>2,m[w++]=p>>8&255,m[w++]=p&255),m}function x(S){return V[S>>18&63]+V[S>>12&63]+V[S>>6&63]+V[S&63]}function O(S,p,E){for(var f,_=[],m=p;m<E;m+=3)f=(S[m]<<16&16711680)+(S[m+1]<<8&65280)+(S[m+2]&255),_.push(x(f));return _.join("")}function g(S){for(var p,E=S.length,f=E%3,_=[],m=16383,w=0,D=E-f;w<D;w+=m)_.push(O(S,w,w+m>D?D:w+m));return f===1?(p=S[E-1],_.push(V[p>>2]+V[p<<4&63]+"==")):f===2&&(p=(S[E-2]<<8)+S[E-1],_.push(V[p>>10]+V[p>>4&63]+V[p<<2&63]+"=")),_.join("")}},48764:function(Jt,zt,V){"use strict";var a;var Pe=V(80258),d=V(80645),G=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;zt.lW=i,a=w,zt.h2=50;var k=2147483647;a=k,i.TYPED_ARRAY_SUPPORT=u(),!i.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function u(){try{var o=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(o,e),o.foo()===42}catch(t){return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function v(o){if(o>k)throw new RangeError('The value "'+o+'" is invalid for option "size"');var e=new Uint8Array(o);return Object.setPrototypeOf(e,i.prototype),e}function i(o,e,t){if(typeof o=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(o)}return h(o,e,t)}i.poolSize=8192;function h(o,e,t){if(typeof o=="string")return S(o,e);if(ArrayBuffer.isView(o))return E(o);if(o==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o);if(ft(o,ArrayBuffer)||o&&ft(o.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ft(o,SharedArrayBuffer)||o&&ft(o.buffer,SharedArrayBuffer)))return f(o,e,t);if(typeof o=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var l=o.valueOf&&o.valueOf();if(l!=null&&l!==o)return i.from(l,e,t);var y=_(o);if(y)return y;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof o[Symbol.toPrimitive]=="function")return i.from(o[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o)}i.from=function(o,e,t){return h(o,e,t)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function x(o){if(typeof o!="number")throw new TypeError('"size" argument must be of type number');if(o<0)throw new RangeError('The value "'+o+'" is invalid for option "size"')}function O(o,e,t){return x(o),o<=0?v(o):e!==void 0?typeof t=="string"?v(o).fill(e,t):v(o).fill(e):v(o)}i.alloc=function(o,e,t){return O(o,e,t)};function g(o){return x(o),v(o<0?0:m(o)|0)}i.allocUnsafe=function(o){return g(o)},i.allocUnsafeSlow=function(o){return g(o)};function S(o,e){if((typeof e!="string"||e==="")&&(e="utf8"),!i.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=D(o,e)|0,l=v(t),y=l.write(o,e);return y!==t&&(l=l.slice(0,y)),l}function p(o){for(var e=o.length<0?0:m(o.length)|0,t=v(e),l=0;l<e;l+=1)t[l]=o[l]&255;return t}function E(o){if(ft(o,Uint8Array)){var e=new Uint8Array(o);return f(e.buffer,e.byteOffset,e.byteLength)}return p(o)}function f(o,e,t){if(e<0||o.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(o.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');var l;return e===void 0&&t===void 0?l=new Uint8Array(o):t===void 0?l=new Uint8Array(o,e):l=new Uint8Array(o,e,t),Object.setPrototypeOf(l,i.prototype),l}function _(o){if(i.isBuffer(o)){var e=m(o.length)|0,t=v(e);return t.length===0||o.copy(t,0,0,e),t}if(o.length!==void 0)return typeof o.length!="number"||r(o.length)?v(0):p(o);if(o.type==="Buffer"&&Array.isArray(o.data))return p(o.data)}function m(o){if(o>=k)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+k.toString(16)+" bytes");return o|0}function w(o){return+o!=o&&(o=0),i.alloc(+o)}i.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==i.prototype},i.compare=function(e,t){if(ft(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),ft(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var l=e.length,y=t.length,Z=0,b=Math.min(l,y);Z<b;++Z)if(e[Z]!==t[Z]){l=e[Z],y=t[Z];break}return l<y?-1:y<l?1:0},i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return i.alloc(0);var l;if(t===void 0)for(t=0,l=0;l<e.length;++l)t+=e[l].length;var y=i.allocUnsafe(t),Z=0;for(l=0;l<e.length;++l){var b=e[l];if(ft(b,Uint8Array))Z+b.length>y.length?i.from(b).copy(y,Z):Uint8Array.prototype.set.call(y,b,Z);else if(i.isBuffer(b))b.copy(y,Z);else throw new TypeError('"list" argument must be an Array of Buffers');Z+=b.length}return y};function D(o,e){if(i.isBuffer(o))return o.length;if(ArrayBuffer.isView(o)||ft(o,ArrayBuffer))return o.byteLength;if(typeof o!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof o);var t=o.length,l=arguments.length>2&&arguments[2]===!0;if(!l&&t===0)return 0;for(var y=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Ue(o).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return ht(o).length;default:if(y)return l?-1:Ue(o).length;e=(""+e).toLowerCase(),y=!0}}i.byteLength=D;function M(o,e,t){var l=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(o||(o="utf8");;)switch(o){case"hex":return K(this,e,t);case"utf8":case"utf-8":return s(this,e,t);case"ascii":return Y(this,e,t);case"latin1":case"binary":return ie(this,e,t);case"base64":return A(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,e,t);default:if(l)throw new TypeError("Unknown encoding: "+o);o=(o+"").toLowerCase(),l=!0}}i.prototype._isBuffer=!0;function P(o,e,t){var l=o[e];o[e]=o[t],o[t]=l}i.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)P(this,t,t+1);return this},i.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)P(this,t,t+3),P(this,t+1,t+2);return this},i.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)P(this,t,t+7),P(this,t+1,t+6),P(this,t+2,t+5),P(this,t+3,t+4);return this},i.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?s(this,0,e):M.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:i.compare(this,e)===0},i.prototype.inspect=function(){var e="",t=zt.h2;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},G&&(i.prototype[G]=i.prototype.inspect),i.prototype.compare=function(e,t,l,y,Z){if(ft(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),l===void 0&&(l=e?e.length:0),y===void 0&&(y=0),Z===void 0&&(Z=this.length),t<0||l>e.length||y<0||Z>this.length)throw new RangeError("out of range index");if(y>=Z&&t>=l)return 0;if(y>=Z)return-1;if(t>=l)return 1;if(t>>>=0,l>>>=0,y>>>=0,Z>>>=0,this===e)return 0;for(var b=Z-y,te=l-t,de=Math.min(b,te),q=this.slice(y,Z),_e=e.slice(t,l),Re=0;Re<de;++Re)if(q[Re]!==_e[Re]){b=q[Re],te=_e[Re];break}return b<te?-1:te<b?1:0};function le(o,e,t,l,y){if(o.length===0)return-1;if(typeof t=="string"?(l=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,r(t)&&(t=y?0:o.length-1),t<0&&(t=o.length+t),t>=o.length){if(y)return-1;t=o.length-1}else if(t<0)if(y)t=0;else return-1;if(typeof e=="string"&&(e=i.from(e,l)),i.isBuffer(e))return e.length===0?-1:ee(o,e,t,l,y);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?y?Uint8Array.prototype.indexOf.call(o,e,t):Uint8Array.prototype.lastIndexOf.call(o,e,t):ee(o,[e],t,l,y);throw new TypeError("val must be string, number or Buffer")}function ee(o,e,t,l,y){var Z=1,b=o.length,te=e.length;if(l!==void 0&&(l=String(l).toLowerCase(),l==="ucs2"||l==="ucs-2"||l==="utf16le"||l==="utf-16le")){if(o.length<2||e.length<2)return-1;Z=2,b/=2,te/=2,t/=2}function de(ot,$t){return Z===1?ot[$t]:ot.readUInt16BE($t*Z)}var q;if(y){var _e=-1;for(q=t;q<b;q++)if(de(o,q)===de(e,_e===-1?0:q-_e)){if(_e===-1&&(_e=q),q-_e+1===te)return _e*Z}else _e!==-1&&(q-=q-_e),_e=-1}else for(t+te>b&&(t=b-te),q=t;q>=0;q--){for(var Re=!0,Ve=0;Ve<te;Ve++)if(de(o,q+Ve)!==de(e,Ve)){Re=!1;break}if(Re)return q}return-1}i.prototype.includes=function(e,t,l){return this.indexOf(e,t,l)!==-1},i.prototype.indexOf=function(e,t,l){return le(this,e,t,l,!0)},i.prototype.lastIndexOf=function(e,t,l){return le(this,e,t,l,!1)};function Q(o,e,t,l){t=Number(t)||0;var y=o.length-t;l?(l=Number(l),l>y&&(l=y)):l=y;var Z=e.length;l>Z/2&&(l=Z/2);for(var b=0;b<l;++b){var te=parseInt(e.substr(b*2,2),16);if(r(te))return b;o[t+b]=te}return b}function j(o,e,t,l){return At(Ue(e,o.length-t),o,t,l)}function J(o,e,t,l){return At(tt(e),o,t,l)}function W(o,e,t,l){return At(ht(e),o,t,l)}function C(o,e,t,l){return At(gt(e,o.length-t),o,t,l)}i.prototype.write=function(e,t,l,y){if(t===void 0)y="utf8",l=this.length,t=0;else if(l===void 0&&typeof t=="string")y=t,l=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(l)?(l=l>>>0,y===void 0&&(y="utf8")):(y=l,l=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Z=this.length-t;if((l===void 0||l>Z)&&(l=Z),e.length>0&&(l<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");y||(y="utf8");for(var b=!1;;)switch(y){case"hex":return Q(this,e,t,l);case"utf8":case"utf-8":return j(this,e,t,l);case"ascii":case"latin1":case"binary":return J(this,e,t,l);case"base64":return W(this,e,t,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,l);default:if(b)throw new TypeError("Unknown encoding: "+y);y=(""+y).toLowerCase(),b=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function A(o,e,t){return e===0&&t===o.length?Pe.fromByteArray(o):Pe.fromByteArray(o.slice(e,t))}function s(o,e,t){t=Math.min(o.length,t);for(var l=[],y=e;y<t;){var Z=o[y],b=null,te=Z>239?4:Z>223?3:Z>191?2:1;if(y+te<=t){var de,q,_e,Re;switch(te){case 1:Z<128&&(b=Z);break;case 2:de=o[y+1],(de&192)===128&&(Re=(Z&31)<<6|de&63,Re>127&&(b=Re));break;case 3:de=o[y+1],q=o[y+2],(de&192)===128&&(q&192)===128&&(Re=(Z&15)<<12|(de&63)<<6|q&63,Re>2047&&(Re<55296||Re>57343)&&(b=Re));break;case 4:de=o[y+1],q=o[y+2],_e=o[y+3],(de&192)===128&&(q&192)===128&&(_e&192)===128&&(Re=(Z&15)<<18|(de&63)<<12|(q&63)<<6|_e&63,Re>65535&&Re<1114112&&(b=Re))}}b===null?(b=65533,te=1):b>65535&&(b-=65536,l.push(b>>>10&1023|55296),b=56320|b&1023),l.push(b),y+=te}return T(l)}var ne=4096;function T(o){var e=o.length;if(e<=ne)return String.fromCharCode.apply(String,o);for(var t="",l=0;l<e;)t+=String.fromCharCode.apply(String,o.slice(l,l+=ne));return t}function Y(o,e,t){var l="";t=Math.min(o.length,t);for(var y=e;y<t;++y)l+=String.fromCharCode(o[y]&127);return l}function ie(o,e,t){var l="";t=Math.min(o.length,t);for(var y=e;y<t;++y)l+=String.fromCharCode(o[y]);return l}function K(o,e,t){var l=o.length;(!e||e<0)&&(e=0),(!t||t<0||t>l)&&(t=l);for(var y="",Z=e;Z<t;++Z)y+=re[o[Z]];return y}function ce(o,e,t){for(var l=o.slice(e,t),y="",Z=0;Z<l.length-1;Z+=2)y+=String.fromCharCode(l[Z]+l[Z+1]*256);return y}i.prototype.slice=function(e,t){var l=this.length;e=~~e,t=t===void 0?l:~~t,e<0?(e+=l,e<0&&(e=0)):e>l&&(e=l),t<0?(t+=l,t<0&&(t=0)):t>l&&(t=l),t<e&&(t=e);var y=this.subarray(e,t);return Object.setPrototypeOf(y,i.prototype),y};function U(o,e,t){if(o%1!==0||o<0)throw new RangeError("offset is not uint");if(o+e>t)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(e,t,l){e=e>>>0,t=t>>>0,l||U(e,t,this.length);for(var y=this[e],Z=1,b=0;++b<t&&(Z*=256);)y+=this[e+b]*Z;return y},i.prototype.readUintBE=i.prototype.readUIntBE=function(e,t,l){e=e>>>0,t=t>>>0,l||U(e,t,this.length);for(var y=this[e+--t],Z=1;t>0&&(Z*=256);)y+=this[e+--t]*Z;return y},i.prototype.readUint8=i.prototype.readUInt8=function(e,t){return e=e>>>0,t||U(e,1,this.length),this[e]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||U(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||U(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||U(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,l){e=e>>>0,t=t>>>0,l||U(e,t,this.length);for(var y=this[e],Z=1,b=0;++b<t&&(Z*=256);)y+=this[e+b]*Z;return Z*=128,y>=Z&&(y-=Math.pow(2,8*t)),y},i.prototype.readIntBE=function(e,t,l){e=e>>>0,t=t>>>0,l||U(e,t,this.length);for(var y=t,Z=1,b=this[e+--y];y>0&&(Z*=256);)b+=this[e+--y]*Z;return Z*=128,b>=Z&&(b-=Math.pow(2,8*t)),b},i.prototype.readInt8=function(e,t){return e=e>>>0,t||U(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},i.prototype.readInt16LE=function(e,t){e=e>>>0,t||U(e,2,this.length);var l=this[e]|this[e+1]<<8;return l&32768?l|4294901760:l},i.prototype.readInt16BE=function(e,t){e=e>>>0,t||U(e,2,this.length);var l=this[e+1]|this[e]<<8;return l&32768?l|4294901760:l},i.prototype.readInt32LE=function(e,t){return e=e>>>0,t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return e=e>>>0,t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return e=e>>>0,t||U(e,4,this.length),d.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return e=e>>>0,t||U(e,4,this.length),d.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||U(e,8,this.length),d.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||U(e,8,this.length),d.read(this,e,!1,52,8)};function N(o,e,t,l,y,Z){if(!i.isBuffer(o))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>y||e<Z)throw new RangeError('"value" argument is out of bounds');if(t+l>o.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(e,t,l,y){if(e=+e,t=t>>>0,l=l>>>0,!y){var Z=Math.pow(2,8*l)-1;N(this,e,t,l,Z,0)}var b=1,te=0;for(this[t]=e&255;++te<l&&(b*=256);)this[t+te]=e/b&255;return t+l},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(e,t,l,y){if(e=+e,t=t>>>0,l=l>>>0,!y){var Z=Math.pow(2,8*l)-1;N(this,e,t,l,Z,0)}var b=l-1,te=1;for(this[t+b]=e&255;--b>=0&&(te*=256);)this[t+b]=e/te&255;return t+l},i.prototype.writeUint8=i.prototype.writeUInt8=function(e,t,l){return e=+e,t=t>>>0,l||N(this,e,t,1,255,0),this[t]=e&255,t+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(e,t,l){return e=+e,t=t>>>0,l||N(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(e,t,l){return e=+e,t=t>>>0,l||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(e,t,l){return e=+e,t=t>>>0,l||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(e,t,l){return e=+e,t=t>>>0,l||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},i.prototype.writeIntLE=function(e,t,l,y){if(e=+e,t=t>>>0,!y){var Z=Math.pow(2,8*l-1);N(this,e,t,l,Z-1,-Z)}var b=0,te=1,de=0;for(this[t]=e&255;++b<l&&(te*=256);)e<0&&de===0&&this[t+b-1]!==0&&(de=1),this[t+b]=(e/te>>0)-de&255;return t+l},i.prototype.writeIntBE=function(e,t,l,y){if(e=+e,t=t>>>0,!y){var Z=Math.pow(2,8*l-1);N(this,e,t,l,Z-1,-Z)}var b=l-1,te=1,de=0;for(this[t+b]=e&255;--b>=0&&(te*=256);)e<0&&de===0&&this[t+b+1]!==0&&(de=1),this[t+b]=(e/te>>0)-de&255;return t+l},i.prototype.writeInt8=function(e,t,l){return e=+e,t=t>>>0,l||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},i.prototype.writeInt16LE=function(e,t,l){return e=+e,t=t>>>0,l||N(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},i.prototype.writeInt16BE=function(e,t,l){return e=+e,t=t>>>0,l||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},i.prototype.writeInt32LE=function(e,t,l){return e=+e,t=t>>>0,l||N(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},i.prototype.writeInt32BE=function(e,t,l){return e=+e,t=t>>>0,l||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Ce(o,e,t,l,y,Z){if(t+l>o.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function ge(o,e,t,l,y){return e=+e,t=t>>>0,y||Ce(o,e,t,4,34028234663852886e22,-34028234663852886e22),d.write(o,e,t,l,23,4),t+4}i.prototype.writeFloatLE=function(e,t,l){return ge(this,e,t,!0,l)},i.prototype.writeFloatBE=function(e,t,l){return ge(this,e,t,!1,l)};function he(o,e,t,l,y){return e=+e,t=t>>>0,y||Ce(o,e,t,8,17976931348623157e292,-17976931348623157e292),d.write(o,e,t,l,52,8),t+8}i.prototype.writeDoubleLE=function(e,t,l){return he(this,e,t,!0,l)},i.prototype.writeDoubleBE=function(e,t,l){return he(this,e,t,!1,l)},i.prototype.copy=function(e,t,l,y){if(!i.isBuffer(e))throw new TypeError("argument should be a Buffer");if(l||(l=0),!y&&y!==0&&(y=this.length),t>=e.length&&(t=e.length),t||(t=0),y>0&&y<l&&(y=l),y===l||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(l<0||l>=this.length)throw new RangeError("Index out of range");if(y<0)throw new RangeError("sourceEnd out of bounds");y>this.length&&(y=this.length),e.length-t<y-l&&(y=e.length-t+l);var Z=y-l;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,l,y):Uint8Array.prototype.set.call(e,this.subarray(l,y),t),Z},i.prototype.fill=function(e,t,l,y){if(typeof e=="string"){if(typeof t=="string"?(y=t,t=0,l=this.length):typeof l=="string"&&(y=l,l=this.length),y!==void 0&&typeof y!="string")throw new TypeError("encoding must be a string");if(typeof y=="string"&&!i.isEncoding(y))throw new TypeError("Unknown encoding: "+y);if(e.length===1){var Z=e.charCodeAt(0);(y==="utf8"&&Z<128||y==="latin1")&&(e=Z)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<l)throw new RangeError("Out of range index");if(l<=t)return this;t=t>>>0,l=l===void 0?this.length:l>>>0,e||(e=0);var b;if(typeof e=="number")for(b=t;b<l;++b)this[b]=e;else{var te=i.isBuffer(e)?e:i.from(e,y),de=te.length;if(de===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(b=0;b<l-t;++b)this[b+t]=te[b%de]}return this};var it=/[^+/0-9A-Za-z-_]/g;function dt(o){if(o=o.split("=")[0],o=o.trim().replace(it,""),o.length<2)return"";for(;o.length%4!==0;)o=o+"=";return o}function Ue(o,e){e=e||1/0;for(var t,l=o.length,y=null,Z=[],b=0;b<l;++b){if(t=o.charCodeAt(b),t>55295&&t<57344){if(!y){if(t>56319){(e-=3)>-1&&Z.push(239,191,189);continue}else if(b+1===l){(e-=3)>-1&&Z.push(239,191,189);continue}y=t;continue}if(t<56320){(e-=3)>-1&&Z.push(239,191,189),y=t;continue}t=(y-55296<<10|t-56320)+65536}else y&&(e-=3)>-1&&Z.push(239,191,189);if(y=null,t<128){if((e-=1)<0)break;Z.push(t)}else if(t<2048){if((e-=2)<0)break;Z.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;Z.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;Z.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return Z}function tt(o){for(var e=[],t=0;t<o.length;++t)e.push(o.charCodeAt(t)&255);return e}function gt(o,e){for(var t,l,y,Z=[],b=0;b<o.length&&!((e-=2)<0);++b)t=o.charCodeAt(b),l=t>>8,y=t%256,Z.push(y),Z.push(l);return Z}function ht(o){return Pe.toByteArray(dt(o))}function At(o,e,t,l){for(var y=0;y<l&&!(y+t>=e.length||y>=o.length);++y)e[y+t]=o[y];return y}function ft(o,e){return o instanceof e||o!=null&&o.constructor!=null&&o.constructor.name!=null&&o.constructor.name===e.name}function r(o){return o!==o}var re=function(){for(var o="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var l=t*16,y=0;y<16;++y)e[l+y]=o[t]+o[y];return e}()},80645:function(Jt,zt){zt.read=function(V,a,Pe,d,G){var k,u,v=G*8-d-1,i=(1<<v)-1,h=i>>1,x=-7,O=Pe?G-1:0,g=Pe?-1:1,S=V[a+O];for(O+=g,k=S&(1<<-x)-1,S>>=-x,x+=v;x>0;k=k*256+V[a+O],O+=g,x-=8);for(u=k&(1<<-x)-1,k>>=-x,x+=d;x>0;u=u*256+V[a+O],O+=g,x-=8);if(k===0)k=1-h;else{if(k===i)return u?NaN:(S?-1:1)*(1/0);u=u+Math.pow(2,d),k=k-h}return(S?-1:1)*u*Math.pow(2,k-d)},zt.write=function(V,a,Pe,d,G,k){var u,v,i,h=k*8-G-1,x=(1<<h)-1,O=x>>1,g=G===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=d?0:k-1,p=d?1:-1,E=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(v=isNaN(a)?1:0,u=x):(u=Math.floor(Math.log(a)/Math.LN2),a*(i=Math.pow(2,-u))<1&&(u--,i*=2),u+O>=1?a+=g/i:a+=g*Math.pow(2,1-O),a*i>=2&&(u++,i/=2),u+O>=x?(v=0,u=x):u+O>=1?(v=(a*i-1)*Math.pow(2,G),u=u+O):(v=a*Math.pow(2,O-1)*Math.pow(2,G),u=0));G>=8;V[Pe+S]=v&255,S+=p,v/=256,G-=8);for(u=u<<G|v,h+=G;h>0;V[Pe+S]=u&255,S+=p,u/=256,h-=8);V[Pe+S-p]|=E*128}},80973:function(Jt,zt,V){var a=V(71169),Pe=function(k){var u=/[height|width]$/;return u.test(k)},d=function(k){var u="",v=Object.keys(k);return v.forEach(function(i,h){var x=k[i];i=a(i),Pe(i)&&typeof x=="number"&&(x=x+"px"),x===!0?u+=i:x===!1?u+="not "+i:u+="("+i+": "+x+")",h<v.length-1&&(u+=" and ")}),u},G=function(k){var u="";return typeof k=="string"?k:k instanceof Array?(k.forEach(function(v,i){u+=d(v),i<k.length-1&&(u+=", ")}),u):d(k)};Jt.exports=G},55733:function(Jt,zt,V){var a=V(48764).lW,Pe=V(34155);(function(d){Jt.exports=d()})(function(){return function d(G,k,u){function v(x,O){if(!k[x]){if(!G[x]){var g=void 0;if(!O&&g)return require(x,!0);if(i)return i(x,!0);var S=new Error("Cannot find module '"+x+"'");throw S.code="MODULE_NOT_FOUND",S}var p=k[x]={exports:{}};G[x][0].call(p.exports,function(E){var f=G[x][1][E];return v(f||E)},p,p.exports,d,G,k,u)}return k[x].exports}for(var i=void 0,h=0;h<u.length;h++)v(u[h]);return v}({1:[function(d,G,k){"use strict";var u=d("./utils"),v=d("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";k.encode=function(h){for(var x,O,g,S,p,E,f,_=[],m=0,w=h.length,D=w,M=u.getTypeOf(h)!=="string";m<h.length;)D=w-m,g=M?(x=h[m++],O=m<w?h[m++]:0,m<w?h[m++]:0):(x=h.charCodeAt(m++),O=m<w?h.charCodeAt(m++):0,m<w?h.charCodeAt(m++):0),S=x>>2,p=(3&x)<<4|O>>4,E=1<D?(15&O)<<2|g>>6:64,f=2<D?63&g:64,_.push(i.charAt(S)+i.charAt(p)+i.charAt(E)+i.charAt(f));return _.join("")},k.decode=function(h){var x,O,g,S,p,E,f=0,_=0,m="data:";if(h.substr(0,m.length)===m)throw new Error("Invalid base64 input, it looks like a data url.");var w,D=3*(h=h.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(h.charAt(h.length-1)===i.charAt(64)&&D--,h.charAt(h.length-2)===i.charAt(64)&&D--,D%1!=0)throw new Error("Invalid base64 input, bad content length.");for(w=v.uint8array?new Uint8Array(0|D):new Array(0|D);f<h.length;)x=i.indexOf(h.charAt(f++))<<2|(S=i.indexOf(h.charAt(f++)))>>4,O=(15&S)<<4|(p=i.indexOf(h.charAt(f++)))>>2,g=(3&p)<<6|(E=i.indexOf(h.charAt(f++))),w[_++]=x,p!==64&&(w[_++]=O),E!==64&&(w[_++]=g);return w}},{"./support":30,"./utils":32}],2:[function(d,G,k){"use strict";var u=d("./external"),v=d("./stream/DataWorker"),i=d("./stream/Crc32Probe"),h=d("./stream/DataLengthProbe");function x(O,g,S,p,E){this.compressedSize=O,this.uncompressedSize=g,this.crc32=S,this.compression=p,this.compressedContent=E}x.prototype={getContentWorker:function(){var O=new v(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")),g=this;return O.on("end",function(){if(this.streamInfo.data_length!==g.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),O},getCompressedWorker:function(){return new v(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},x.createWorkerFrom=function(O,g,S){return O.pipe(new i).pipe(new h("uncompressedSize")).pipe(g.compressWorker(S)).pipe(new h("compressedSize")).withStreamInfo("compression",g)},G.exports=x},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(d,G,k){"use strict";var u=d("./stream/GenericWorker");k.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},k.DEFLATE=d("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(d,G,k){"use strict";var u=d("./utils"),v=function(){for(var i,h=[],x=0;x<256;x++){i=x;for(var O=0;O<8;O++)i=1&i?3988292384^i>>>1:i>>>1;h[x]=i}return h}();G.exports=function(i,h){return i!==void 0&&i.length?u.getTypeOf(i)!=="string"?function(x,O,g,S){var p=v,E=S+g;x^=-1;for(var f=S;f<E;f++)x=x>>>8^p[255&(x^O[f])];return-1^x}(0|h,i,i.length,0):function(x,O,g,S){var p=v,E=S+g;x^=-1;for(var f=S;f<E;f++)x=x>>>8^p[255&(x^O.charCodeAt(f))];return-1^x}(0|h,i,i.length,0):0}},{"./utils":32}],5:[function(d,G,k){"use strict";k.base64=!1,k.binary=!1,k.dir=!1,k.createFolders=!0,k.date=null,k.compression=null,k.compressionOptions=null,k.comment=null,k.unixPermissions=null,k.dosPermissions=null},{}],6:[function(d,G,k){"use strict";var u=null;u=typeof Promise!="undefined"?Promise:d("lie"),G.exports={Promise:u}},{lie:37}],7:[function(d,G,k){"use strict";var u=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",v=d("pako"),i=d("./utils"),h=d("./stream/GenericWorker"),x=u?"uint8array":"array";function O(g,S){h.call(this,"FlateWorker/"+g),this._pako=null,this._pakoAction=g,this._pakoOptions=S,this.meta={}}k.magic="\b\0",i.inherits(O,h),O.prototype.processChunk=function(g){this.meta=g.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(x,g.data),!1)},O.prototype.flush=function(){h.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},O.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this._pako=null},O.prototype._createPako=function(){this._pako=new v[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var g=this;this._pako.onData=function(S){g.push({data:S,meta:g.meta})}},k.compressWorker=function(g){return new O("Deflate",g)},k.uncompressWorker=function(){return new O("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(d,G,k){"use strict";function u(p,E){var f,_="";for(f=0;f<E;f++)_+=String.fromCharCode(255&p),p>>>=8;return _}function v(p,E,f,_,m,w){var D,M,P=p.file,le=p.compression,ee=w!==x.utf8encode,Q=i.transformTo("string",w(P.name)),j=i.transformTo("string",x.utf8encode(P.name)),J=P.comment,W=i.transformTo("string",w(J)),C=i.transformTo("string",x.utf8encode(J)),A=j.length!==P.name.length,s=C.length!==J.length,ne="",T="",Y="",ie=P.dir,K=P.date,ce={crc32:0,compressedSize:0,uncompressedSize:0};E&&!f||(ce.crc32=p.crc32,ce.compressedSize=p.compressedSize,ce.uncompressedSize=p.uncompressedSize);var U=0;E&&(U|=8),ee||!A&&!s||(U|=2048);var N=0,Ce=0;ie&&(N|=16),m==="UNIX"?(Ce=798,N|=function(he,it){var dt=he;return he||(dt=it?16893:33204),(65535&dt)<<16}(P.unixPermissions,ie)):(Ce=20,N|=function(he){return 63&(he||0)}(P.dosPermissions)),D=K.getUTCHours(),D<<=6,D|=K.getUTCMinutes(),D<<=5,D|=K.getUTCSeconds()/2,M=K.getUTCFullYear()-1980,M<<=4,M|=K.getUTCMonth()+1,M<<=5,M|=K.getUTCDate(),A&&(T=u(1,1)+u(O(Q),4)+j,ne+="up"+u(T.length,2)+T),s&&(Y=u(1,1)+u(O(W),4)+C,ne+="uc"+u(Y.length,2)+Y);var ge="";return ge+=`
|
|
|
\0`,ge+=u(U,2),ge+=le.magic,ge+=u(D,2),ge+=u(M,2),ge+=u(ce.crc32,4),ge+=u(ce.compressedSize,4),ge+=u(ce.uncompressedSize,4),ge+=u(Q.length,2),ge+=u(ne.length,2),{fileRecord:g.LOCAL_FILE_HEADER+ge+Q+ne,dirRecord:g.CENTRAL_FILE_HEADER+u(Ce,2)+ge+u(W.length,2)+"\0\0\0\0"+u(N,4)+u(_,4)+Q+ne+W}}var i=d("../utils"),h=d("../stream/GenericWorker"),x=d("../utf8"),O=d("../crc32"),g=d("../signature");function S(p,E,f,_){h.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=E,this.zipPlatform=f,this.encodeFileName=_,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(S,h),S.prototype.push=function(p){var E=p.meta.percent||0,f=this.entriesCount,_=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,h.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:f?(E+100*(f-_-1))/f:100}}))},S.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var E=this.streamFiles&&!p.file.dir;if(E){var f=v(p,E,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:f.fileRecord,meta:{percent:0}})}else this.accumulate=!0},S.prototype.closedSource=function(p){this.accumulate=!1;var E=this.streamFiles&&!p.file.dir,f=v(p,E,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(f.dirRecord),E)this.push({data:function(_){return g.DATA_DESCRIPTOR+u(_.crc32,4)+u(_.compressedSize,4)+u(_.uncompressedSize,4)}(p),meta:{percent:100}});else for(this.push({data:f.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},S.prototype.flush=function(){for(var p=this.bytesWritten,E=0;E<this.dirRecords.length;E++)this.push({data:this.dirRecords[E],meta:{percent:100}});var f=this.bytesWritten-p,_=function(m,w,D,M,P){var le=i.transformTo("string",P(M));return g.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(m,2)+u(m,2)+u(w,4)+u(D,4)+u(le.length,2)+le}(this.dirRecords.length,f,p,this.zipComment,this.encodeFileName);this.push({data:_,meta:{percent:100}})},S.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},S.prototype.registerPrevious=function(p){this._sources.push(p);var E=this;return p.on("data",function(f){E.processChunk(f)}),p.on("end",function(){E.closedSource(E.previous.streamInfo),E._sources.length?E.prepareNextSource():E.end()}),p.on("error",function(f){E.error(f)}),this},S.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},S.prototype.error=function(p){var E=this._sources;if(!h.prototype.error.call(this,p))return!1;for(var f=0;f<E.length;f++)try{E[f].error(p)}catch(_){}return!0},S.prototype.lock=function(){h.prototype.lock.call(this);for(var p=this._sources,E=0;E<p.length;E++)p[E].lock()},G.exports=S},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(d,G,k){"use strict";var u=d("../compressions"),v=d("./ZipFileWorker");k.generateWorker=function(i,h,x){var O=new v(h.streamFiles,x,h.platform,h.encodeFileName),g=0;try{i.forEach(function(S,p){g++;var E=function(w,D){var M=w||D,P=u[M];if(!P)throw new Error(M+" is not a valid compression method !");return P}(p.options.compression,h.compression),f=p.options.compressionOptions||h.compressionOptions||{},_=p.dir,m=p.date;p._compressWorker(E,f).withStreamInfo("file",{name:S,dir:_,date:m,comment:p.comment||"",unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions}).pipe(O)}),O.entriesCount=g}catch(S){O.error(S)}return O}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(d,G,k){"use strict";function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var v=new u;for(var i in this)typeof this[i]!="function"&&(v[i]=this[i]);return v}}(u.prototype=d("./object")).loadAsync=d("./load"),u.support=d("./support"),u.defaults=d("./defaults"),u.version="3.10.1",u.loadAsync=function(v,i){return new u().loadAsync(v,i)},u.external=d("./external"),G.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(d,G,k){"use strict";var u=d("./utils"),v=d("./external"),i=d("./utf8"),h=d("./zipEntries"),x=d("./stream/Crc32Probe"),O=d("./nodejsUtils");function g(S){return new v.Promise(function(p,E){var f=S.decompressed.getContentWorker().pipe(new x);f.on("error",function(_){E(_)}).on("end",function(){f.streamInfo.crc32!==S.decompressed.crc32?E(new Error("Corrupted zip : CRC32 mismatch")):p()}).resume()})}G.exports=function(S,p){var E=this;return p=u.extend(p||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),O.isNode&&O.isStream(S)?v.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",S,!0,p.optimizedBinaryString,p.base64).then(function(f){var _=new h(p);return _.load(f),_}).then(function(f){var _=[v.Promise.resolve(f)],m=f.files;if(p.checkCRC32)for(var w=0;w<m.length;w++)_.push(g(m[w]));return v.Promise.all(_)}).then(function(f){for(var _=f.shift(),m=_.files,w=0;w<m.length;w++){var D=m[w],M=D.fileNameStr,P=u.resolve(D.fileNameStr);E.file(P,D.decompressed,{binary:!0,optimizedBinaryString:!0,date:D.date,dir:D.dir,comment:D.fileCommentStr.length?D.fileCommentStr:null,unixPermissions:D.unixPermissions,dosPermissions:D.dosPermissions,createFolders:p.createFolders}),D.dir||(E.file(P).unsafeOriginalName=M)}return _.zipComment.length&&(E.comment=_.zipComment),E})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(d,G,k){"use strict";var u=d("../utils"),v=d("../stream/GenericWorker");function i(h,x){v.call(this,"Nodejs stream input adapter for "+h),this._upstreamEnded=!1,this._bindStream(x)}u.inherits(i,v),i.prototype._bindStream=function(h){var x=this;(this._stream=h).pause(),h.on("data",function(O){x.push({data:O,meta:{percent:0}})}).on("error",function(O){x.isPaused?this.generatedError=O:x.error(O)}).on("end",function(){x.isPaused?x._upstreamEnded=!0:x.end()})},i.prototype.pause=function(){return!!v.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!v.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},G.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(d,G,k){"use strict";var u=d("readable-stream").Readable;function v(i,h,x){u.call(this,h),this._helper=i;var O=this;i.on("data",function(g,S){O.push(g)||O._helper.pause(),x&&x(S)}).on("error",function(g){O.emit("error",g)}).on("end",function(){O.push(null)})}d("../utils").inherits(v,u),v.prototype._read=function(){this._helper.resume()},G.exports=v},{"../utils":32,"readable-stream":16}],14:[function(d,G,k){"use strict";G.exports={isNode:typeof a!="undefined",newBufferFrom:function(u,v){if(a.from&&a.from!==Uint8Array.from)return a.from(u,v);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new a(u,v)},allocBuffer:function(u){if(a.alloc)return a.alloc(u);var v=new a(u);return v.fill(0),v},isBuffer:function(u){return a.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(d,G,k){"use strict";function u(P,le,ee){var Q,j=i.getTypeOf(le),J=i.extend(ee||{},O);J.date=J.date||new Date,J.compression!==null&&(J.compression=J.compression.toUpperCase()),typeof J.unixPermissions=="string"&&(J.unixPermissions=parseInt(J.unixPermissions,8)),J.unixPermissions&&16384&J.unixPermissions&&(J.dir=!0),J.dosPermissions&&16&J.dosPermissions&&(J.dir=!0),J.dir&&(P=m(P)),J.createFolders&&(Q=_(P))&&w.call(this,Q,!0);var W=j==="string"&&J.binary===!1&&J.base64===!1;ee&&ee.binary!==void 0||(J.binary=!W),(le instanceof g&&le.uncompressedSize===0||J.dir||!le||le.length===0)&&(J.base64=!1,J.binary=!0,le="",J.compression="STORE",j="string");var C=null;C=le instanceof g||le instanceof h?le:E.isNode&&E.isStream(le)?new f(P,le):i.prepareContent(P,le,J.binary,J.optimizedBinaryString,J.base64);var A=new S(P,C,J);this.files[P]=A}var v=d("./utf8"),i=d("./utils"),h=d("./stream/GenericWorker"),x=d("./stream/StreamHelper"),O=d("./defaults"),g=d("./compressedObject"),S=d("./zipObject"),p=d("./generate"),E=d("./nodejsUtils"),f=d("./nodejs/NodejsStreamInputAdapter"),_=function(P){P.slice(-1)==="/"&&(P=P.substring(0,P.length-1));var le=P.lastIndexOf("/");return 0<le?P.substring(0,le):""},m=function(P){return P.slice(-1)!=="/"&&(P+="/"),P},w=function(P,le){return le=le!==void 0?le:O.createFolders,P=m(P),this.files[P]||u.call(this,P,null,{dir:!0,createFolders:le}),this.files[P]};function D(P){return Object.prototype.toString.call(P)==="[object RegExp]"}var M={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(P){var le,ee,Q;for(le in this.files)Q=this.files[le],(ee=le.slice(this.root.length,le.length))&&le.slice(0,this.root.length)===this.root&&P(ee,Q)},filter:function(P){var le=[];return this.forEach(function(ee,Q){P(ee,Q)&&le.push(Q)}),le},file:function(P,le,ee){if(arguments.length!==1)return P=this.root+P,u.call(this,P,le,ee),this;if(D(P)){var Q=P;return this.filter(function(J,W){return!W.dir&&Q.test(J)})}var j=this.files[this.root+P];return j&&!j.dir?j:null},folder:function(P){if(!P)return this;if(D(P))return this.filter(function(j,J){return J.dir&&P.test(j)});var le=this.root+P,ee=w.call(this,le),Q=this.clone();return Q.root=ee.name,Q},remove:function(P){P=this.root+P;var le=this.files[P];if(le||(P.slice(-1)!=="/"&&(P+="/"),le=this.files[P]),le&&!le.dir)delete this.files[P];else for(var ee=this.filter(function(j,J){return J.name.slice(0,P.length)===P}),Q=0;Q<ee.length;Q++)delete this.files[ee[Q].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(P){var le,ee={};try{if((ee=i.extend(P||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:v.utf8encode})).type=ee.type.toLowerCase(),ee.compression=ee.compression.toUpperCase(),ee.type==="binarystring"&&(ee.type="string"),!ee.type)throw new Error("No output type specified.");i.checkSupport(ee.type),ee.platform!=="darwin"&&ee.platform!=="freebsd"&&ee.platform!=="linux"&&ee.platform!=="sunos"||(ee.platform="UNIX"),ee.platform==="win32"&&(ee.platform="DOS");var Q=ee.comment||this.comment||"";le=p.generateWorker(this,ee,Q)}catch(j){(le=new h("error")).error(j)}return new x(le,ee.type||"string",ee.mimeType)},generateAsync:function(P,le){return this.generateInternalStream(P).accumulate(le)},generateNodeStream:function(P,le){return(P=P||{}).type||(P.type="nodebuffer"),this.generateInternalStream(P).toNodejsStream(le)}};G.exports=M},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(d,G,k){"use strict";G.exports=d("stream")},{stream:void 0}],17:[function(d,G,k){"use strict";var u=d("./DataReader");function v(i){u.call(this,i);for(var h=0;h<this.data.length;h++)i[h]=255&i[h]}d("../utils").inherits(v,u),v.prototype.byteAt=function(i){return this.data[this.zero+i]},v.prototype.lastIndexOfSignature=function(i){for(var h=i.charCodeAt(0),x=i.charCodeAt(1),O=i.charCodeAt(2),g=i.charCodeAt(3),S=this.length-4;0<=S;--S)if(this.data[S]===h&&this.data[S+1]===x&&this.data[S+2]===O&&this.data[S+3]===g)return S-this.zero;return-1},v.prototype.readAndCheckSignature=function(i){var h=i.charCodeAt(0),x=i.charCodeAt(1),O=i.charCodeAt(2),g=i.charCodeAt(3),S=this.readData(4);return h===S[0]&&x===S[1]&&O===S[2]&&g===S[3]},v.prototype.readData=function(i){if(this.checkOffset(i),i===0)return[];var h=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,h},G.exports=v},{"../utils":32,"./DataReader":18}],18:[function(d,G,k){"use strict";var u=d("../utils");function v(i){this.data=i,this.length=i.length,this.index=0,this.zero=0}v.prototype={checkOffset:function(i){this.checkIndex(this.index+i)},checkIndex:function(i){if(this.length<this.zero+i||i<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+i+"). Corrupted zip ?")},setIndex:function(i){this.checkIndex(i),this.index=i},skip:function(i){this.setIndex(this.index+i)},byteAt:function(){},readInt:function(i){var h,x=0;for(this.checkOffset(i),h=this.index+i-1;h>=this.index;h--)x=(x<<8)+this.byteAt(h);return this.index+=i,x},readString:function(i){return u.transformTo("string",this.readData(i))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var i=this.readInt(4);return new Date(Date.UTC(1980+(i>>25&127),(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(31&i)<<1))}},G.exports=v},{"../utils":32}],19:[function(d,G,k){"use strict";var u=d("./Uint8ArrayReader");function v(i){u.call(this,i)}d("../utils").inherits(v,u),v.prototype.readData=function(i){this.checkOffset(i);var h=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,h},G.exports=v},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(d,G,k){"use strict";var u=d("./DataReader");function v(i){u.call(this,i)}d("../utils").inherits(v,u),v.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},v.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},v.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},v.prototype.readData=function(i){this.checkOffset(i);var h=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,h},G.exports=v},{"../utils":32,"./DataReader":18}],21:[function(d,G,k){"use strict";var u=d("./ArrayReader");function v(i){u.call(this,i)}d("../utils").inherits(v,u),v.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var h=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,h},G.exports=v},{"../utils":32,"./ArrayReader":17}],22:[function(d,G,k){"use strict";var u=d("../utils"),v=d("../support"),i=d("./ArrayReader"),h=d("./StringReader"),x=d("./NodeBufferReader"),O=d("./Uint8ArrayReader");G.exports=function(g){var S=u.getTypeOf(g);return u.checkSupport(S),S!=="string"||v.uint8array?S==="nodebuffer"?new x(g):v.uint8array?new O(u.transformTo("uint8array",g)):new i(u.transformTo("array",g)):new h(g)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(d,G,k){"use strict";k.LOCAL_FILE_HEADER="PK",k.CENTRAL_FILE_HEADER="PK",k.CENTRAL_DIRECTORY_END="PK",k.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",k.ZIP64_CENTRAL_DIRECTORY_END="PK",k.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(d,G,k){"use strict";var u=d("./GenericWorker"),v=d("../utils");function i(h){u.call(this,"ConvertWorker to "+h),this.destType=h}v.inherits(i,u),i.prototype.processChunk=function(h){this.push({data:v.transformTo(this.destType,h.data),meta:h.meta})},G.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(d,G,k){"use strict";var u=d("./GenericWorker"),v=d("../crc32");function i(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}d("../utils").inherits(i,u),i.prototype.processChunk=function(h){this.streamInfo.crc32=v(h.data,this.streamInfo.crc32||0),this.push(h)},G.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(d,G,k){"use strict";var u=d("../utils"),v=d("./GenericWorker");function i(h){v.call(this,"DataLengthProbe for "+h),this.propName=h,this.withStreamInfo(h,0)}u.inherits(i,v),i.prototype.processChunk=function(h){if(h){var x=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=x+h.data.length}v.prototype.processChunk.call(this,h)},G.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(d,G,k){"use strict";var u=d("../utils"),v=d("./GenericWorker");function i(h){v.call(this,"DataWorker");var x=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,h.then(function(O){x.dataIsReady=!0,x.data=O,x.max=O&&O.length||0,x.type=u.getTypeOf(O),x.isPaused||x._tickAndRepeat()},function(O){x.error(O)})}u.inherits(i,v),i.prototype.cleanUp=function(){v.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!v.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var h=null,x=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":h=this.data.substring(this.index,x);break;case"uint8array":h=this.data.subarray(this.index,x);break;case"array":case"nodebuffer":h=this.data.slice(this.index,x)}return this.index=x,this.push({data:h,meta:{percent:this.max?this.index/this.max*100:0}})},G.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(d,G,k){"use strict";function u(v){this.name=v||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(v){this.emit("data",v)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(v){this.emit("error",v)}return!0},error:function(v){return!this.isFinished&&(this.isPaused?this.generatedError=v:(this.isFinished=!0,this.emit("error",v),this.previous&&this.previous.error(v),this.cleanUp()),!0)},on:function(v,i){return this._listeners[v].push(i),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(v,i){if(this._listeners[v])for(var h=0;h<this._listeners[v].length;h++)this._listeners[v][h].call(this,i)},pipe:function(v){return v.registerPrevious(this)},registerPrevious:function(v){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=v.streamInfo,this.mergeStreamInfo(),this.previous=v;var i=this;return v.on("data",function(h){i.processChunk(h)}),v.on("end",function(){i.end()}),v.on("error",function(h){i.error(h)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var v=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),v=!0),this.previous&&this.previous.resume(),!v},flush:function(){},processChunk:function(v){this.push(v)},withStreamInfo:function(v,i){return this.extraStreamInfo[v]=i,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var v in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,v)&&(this.streamInfo[v]=this.extraStreamInfo[v])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var v="Worker "+this.name;return this.previous?this.previous+" -> "+v:v}},G.exports=u},{}],29:[function(d,G,k){"use strict";var u=d("../utils"),v=d("./ConvertWorker"),i=d("./GenericWorker"),h=d("../base64"),x=d("../support"),O=d("../external"),g=null;if(x.nodestream)try{g=d("../nodejs/NodejsStreamOutputAdapter")}catch(E){}function S(E,f){return new O.Promise(function(_,m){var w=[],D=E._internalType,M=E._outputType,P=E._mimeType;E.on("data",function(le,ee){w.push(le),f&&f(ee)}).on("error",function(le){w=[],m(le)}).on("end",function(){try{var le=function(ee,Q,j){switch(ee){case"blob":return u.newBlob(u.transformTo("arraybuffer",Q),j);case"base64":return h.encode(Q);default:return u.transformTo(ee,Q)}}(M,function(ee,Q){var j,J=0,W=null,C=0;for(j=0;j<Q.length;j++)C+=Q[j].length;switch(ee){case"string":return Q.join("");case"array":return Array.prototype.concat.apply([],Q);case"uint8array":for(W=new Uint8Array(C),j=0;j<Q.length;j++)W.set(Q[j],J),J+=Q[j].length;return W;case"nodebuffer":return a.concat(Q);default:throw new Error("concat : unsupported type '"+ee+"'")}}(D,w),P);_(le)}catch(ee){m(ee)}w=[]}).resume()})}function p(E,f,_){var m=f;switch(f){case"blob":case"arraybuffer":m="uint8array";break;case"base64":m="string"}try{this._internalType=m,this._outputType=f,this._mimeType=_,u.checkSupport(m),this._worker=E.pipe(new v(m)),E.lock()}catch(w){this._worker=new i("error"),this._worker.error(w)}}p.prototype={accumulate:function(E){return S(this,E)},on:function(E,f){var _=this;return E==="data"?this._worker.on(E,function(m){f.call(_,m.data,m.meta)}):this._worker.on(E,function(){u.delay(f,arguments,_)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(E){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new g(this,{objectMode:this._outputType!=="nodebuffer"},E)}},G.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(d,G,k){"use strict";if(k.base64=!0,k.array=!0,k.string=!0,k.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",k.nodebuffer=typeof a!="undefined",k.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")k.blob=!1;else{var u=new ArrayBuffer(0);try{k.blob=new Blob([u],{type:"application/zip"}).size===0}catch(i){try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);v.append(u),k.blob=v.getBlob("application/zip").size===0}catch(h){k.blob=!1}}}try{k.nodestream=!!d("readable-stream").Readable}catch(i){k.nodestream=!1}},{"readable-stream":16}],31:[function(d,G,k){"use strict";for(var u=d("./utils"),v=d("./support"),i=d("./nodejsUtils"),h=d("./stream/GenericWorker"),x=new Array(256),O=0;O<256;O++)x[O]=252<=O?6:248<=O?5:240<=O?4:224<=O?3:192<=O?2:1;x[254]=x[254]=1;function g(){h.call(this,"utf-8 decode"),this.leftOver=null}function S(){h.call(this,"utf-8 encode")}k.utf8encode=function(p){return v.nodebuffer?i.newBufferFrom(p,"utf-8"):function(E){var f,_,m,w,D,M=E.length,P=0;for(w=0;w<M;w++)(64512&(_=E.charCodeAt(w)))==55296&&w+1<M&&(64512&(m=E.charCodeAt(w+1)))==56320&&(_=65536+(_-55296<<10)+(m-56320),w++),P+=_<128?1:_<2048?2:_<65536?3:4;for(f=v.uint8array?new Uint8Array(P):new Array(P),w=D=0;D<P;w++)(64512&(_=E.charCodeAt(w)))==55296&&w+1<M&&(64512&(m=E.charCodeAt(w+1)))==56320&&(_=65536+(_-55296<<10)+(m-56320),w++),_<128?f[D++]=_:(_<2048?f[D++]=192|_>>>6:(_<65536?f[D++]=224|_>>>12:(f[D++]=240|_>>>18,f[D++]=128|_>>>12&63),f[D++]=128|_>>>6&63),f[D++]=128|63&_);return f}(p)},k.utf8decode=function(p){return v.nodebuffer?u.transformTo("nodebuffer",p).toString("utf-8"):function(E){var f,_,m,w,D=E.length,M=new Array(2*D);for(f=_=0;f<D;)if((m=E[f++])<128)M[_++]=m;else if(4<(w=x[m]))M[_++]=65533,f+=w-1;else{for(m&=w===2?31:w===3?15:7;1<w&&f<D;)m=m<<6|63&E[f++],w--;1<w?M[_++]=65533:m<65536?M[_++]=m:(m-=65536,M[_++]=55296|m>>10&1023,M[_++]=56320|1023&m)}return M.length!==_&&(M.subarray?M=M.subarray(0,_):M.length=_),u.applyFromCharCode(M)}(p=u.transformTo(v.uint8array?"uint8array":"array",p))},u.inherits(g,h),g.prototype.processChunk=function(p){var E=u.transformTo(v.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(v.uint8array){var f=E;(E=new Uint8Array(f.length+this.leftOver.length)).set(this.leftOver,0),E.set(f,this.leftOver.length)}else E=this.leftOver.concat(E);this.leftOver=null}var _=function(w,D){var M;for((D=D||w.length)>w.length&&(D=w.length),M=D-1;0<=M&&(192&w[M])==128;)M--;return M<0||M===0?D:M+x[w[M]]>D?M:D}(E),m=E;_!==E.length&&(v.uint8array?(m=E.subarray(0,_),this.leftOver=E.subarray(_,E.length)):(m=E.slice(0,_),this.leftOver=E.slice(_,E.length))),this.push({data:k.utf8decode(m),meta:p.meta})},g.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:k.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},k.Utf8DecodeWorker=g,u.inherits(S,h),S.prototype.processChunk=function(p){this.push({data:k.utf8encode(p.data),meta:p.meta})},k.Utf8EncodeWorker=S},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(d,G,k){"use strict";var u=d("./support"),v=d("./base64"),i=d("./nodejsUtils"),h=d("./external");function x(f){return f}function O(f,_){for(var m=0;m<f.length;++m)_[m]=255&f.charCodeAt(m);return _}d("setimmediate"),k.newBlob=function(f,_){k.checkSupport("blob");try{return new Blob([f],{type:_})}catch(w){try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return m.append(f),m.getBlob(_)}catch(D){throw new Error("Bug : can't construct the Blob.")}}};var g={stringifyByChunk:function(f,_,m){var w=[],D=0,M=f.length;if(M<=m)return String.fromCharCode.apply(null,f);for(;D<M;)_==="array"||_==="nodebuffer"?w.push(String.fromCharCode.apply(null,f.slice(D,Math.min(D+m,M)))):w.push(String.fromCharCode.apply(null,f.subarray(D,Math.min(D+m,M)))),D+=m;return w.join("")},stringifyByChar:function(f){for(var _="",m=0;m<f.length;m++)_+=String.fromCharCode(f[m]);return _},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(f){return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,i.allocBuffer(1)).length===1}catch(f){return!1}}()}};function S(f){var _=65536,m=k.getTypeOf(f),w=!0;if(m==="uint8array"?w=g.applyCanBeUsed.uint8array:m==="nodebuffer"&&(w=g.applyCanBeUsed.nodebuffer),w)for(;1<_;)try{return g.stringifyByChunk(f,m,_)}catch(D){_=Math.floor(_/2)}return g.stringifyByChar(f)}function p(f,_){for(var m=0;m<f.length;m++)_[m]=f[m];return _}k.applyFromCharCode=S;var E={};E.string={string:x,array:function(f){return O(f,new Array(f.length))},arraybuffer:function(f){return E.string.uint8array(f).buffer},uint8array:function(f){return O(f,new Uint8Array(f.length))},nodebuffer:function(f){return O(f,i.allocBuffer(f.length))}},E.array={string:S,array:x,arraybuffer:function(f){return new Uint8Array(f).buffer},uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return i.newBufferFrom(f)}},E.arraybuffer={string:function(f){return S(new Uint8Array(f))},array:function(f){return p(new Uint8Array(f),new Array(f.byteLength))},arraybuffer:x,uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return i.newBufferFrom(new Uint8Array(f))}},E.uint8array={string:S,array:function(f){return p(f,new Array(f.length))},arraybuffer:function(f){return f.buffer},uint8array:x,nodebuffer:function(f){return i.newBufferFrom(f)}},E.nodebuffer={string:S,array:function(f){return p(f,new Array(f.length))},arraybuffer:function(f){return E.nodebuffer.uint8array(f).buffer},uint8array:function(f){return p(f,new Uint8Array(f.length))},nodebuffer:x},k.transformTo=function(f,_){if(_=_||"",!f)return _;k.checkSupport(f);var m=k.getTypeOf(_);return E[m][f](_)},k.resolve=function(f){for(var _=f.split("/"),m=[],w=0;w<_.length;w++){var D=_[w];D==="."||D===""&&w!==0&&w!==_.length-1||(D===".."?m.pop():m.push(D))}return m.join("/")},k.getTypeOf=function(f){return typeof f=="string"?"string":Object.prototype.toString.call(f)==="[object Array]"?"array":u.nodebuffer&&i.isBuffer(f)?"nodebuffer":u.uint8array&&f instanceof Uint8Array?"uint8array":u.arraybuffer&&f instanceof ArrayBuffer?"arraybuffer":void 0},k.checkSupport=function(f){if(!u[f.toLowerCase()])throw new Error(f+" is not supported by this platform")},k.MAX_VALUE_16BITS=65535,k.MAX_VALUE_32BITS=-1,k.pretty=function(f){var _,m,w="";for(m=0;m<(f||"").length;m++)w+="\\x"+((_=f.charCodeAt(m))<16?"0":"")+_.toString(16).toUpperCase();return w},k.delay=function(f,_,m){setImmediate(function(){f.apply(m||null,_||[])})},k.inherits=function(f,_){function m(){}m.prototype=_.prototype,f.prototype=new m},k.extend=function(){var f,_,m={};for(f=0;f<arguments.length;f++)for(_ in arguments[f])Object.prototype.hasOwnProperty.call(arguments[f],_)&&m[_]===void 0&&(m[_]=arguments[f][_]);return m},k.prepareContent=function(f,_,m,w,D){return h.Promise.resolve(_).then(function(M){return u.blob&&(M instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(M))!==-1)&&typeof FileReader!="undefined"?new h.Promise(function(P,le){var ee=new FileReader;ee.onload=function(Q){P(Q.target.result)},ee.onerror=function(Q){le(Q.target.error)},ee.readAsArrayBuffer(M)}):M}).then(function(M){var P=k.getTypeOf(M);return P?(P==="arraybuffer"?M=k.transformTo("uint8array",M):P==="string"&&(D?M=v.decode(M):m&&w!==!0&&(M=function(le){return O(le,u.uint8array?new Uint8Array(le.length):new Array(le.length))}(M))),M):h.Promise.reject(new Error("Can't read the data of '"+f+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(d,G,k){"use strict";var u=d("./reader/readerFor"),v=d("./utils"),i=d("./signature"),h=d("./zipEntry"),x=d("./support");function O(g){this.files=[],this.loadOptions=g}O.prototype={checkSignature:function(g){if(!this.reader.readAndCheckSignature(g)){this.reader.index-=4;var S=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+v.pretty(S)+", expected "+v.pretty(g)+")")}},isSignature:function(g,S){var p=this.reader.index;this.reader.setIndex(g);var E=this.reader.readString(4)===S;return this.reader.setIndex(p),E},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var g=this.reader.readData(this.zipCommentLength),S=x.uint8array?"uint8array":"array",p=v.transformTo(S,g);this.zipComment=this.loadOptions.decodeFileName(p)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var g,S,p,E=this.zip64EndOfCentralSize-44;0<E;)g=this.reader.readInt(2),S=this.reader.readInt(4),p=this.reader.readData(S),this.zip64ExtensibleData[g]={id:g,length:S,value:p}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var g,S;for(g=0;g<this.files.length;g++)S=this.files[g],this.reader.setIndex(S.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),S.readLocalPart(this.reader),S.handleUTF8(),S.processAttributes()},readCentralDir:function(){var g;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(g=new h({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(g);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var g=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(g<0)throw this.isSignature(0,i.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(g);var S=g;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===v.MAX_VALUE_16BITS||this.diskWithCentralDirStart===v.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===v.MAX_VALUE_16BITS||this.centralDirRecords===v.MAX_VALUE_16BITS||this.centralDirSize===v.MAX_VALUE_32BITS||this.centralDirOffset===v.MAX_VALUE_32BITS){if(this.zip64=!0,(g=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(g),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var p=this.centralDirOffset+this.centralDirSize;this.zip64&&(p+=20,p+=12+this.zip64EndOfCentralSize);var E=S-p;if(0<E)this.isSignature(S,i.CENTRAL_FILE_HEADER)||(this.reader.zero=E);else if(E<0)throw new Error("Corrupted zip: missing "+Math.abs(E)+" bytes.")},prepareReader:function(g){this.reader=u(g)},load:function(g){this.prepareReader(g),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},G.exports=O},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(d,G,k){"use strict";var u=d("./reader/readerFor"),v=d("./utils"),i=d("./compressedObject"),h=d("./crc32"),x=d("./utf8"),O=d("./compressions"),g=d("./support");function S(p,E){this.options=p,this.loadOptions=E}S.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(p){var E,f;if(p.skip(22),this.fileNameLength=p.readInt(2),f=p.readInt(2),this.fileName=p.readData(this.fileNameLength),p.skip(f),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((E=function(_){for(var m in O)if(Object.prototype.hasOwnProperty.call(O,m)&&O[m].magic===_)return O[m];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+v.pretty(this.compressionMethod)+" unknown (inner file : "+v.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,E,p.readData(this.compressedSize))},readCentralPart:function(p){this.versionMadeBy=p.readInt(2),p.skip(2),this.bitFlag=p.readInt(2),this.compressionMethod=p.readString(2),this.date=p.readDate(),this.crc32=p.readInt(4),this.compressedSize=p.readInt(4),this.uncompressedSize=p.readInt(4);var E=p.readInt(2);if(this.extraFieldsLength=p.readInt(2),this.fileCommentLength=p.readInt(2),this.diskNumberStart=p.readInt(2),this.internalFileAttributes=p.readInt(2),this.externalFileAttributes=p.readInt(4),this.localHeaderOffset=p.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");p.skip(E),this.readExtraFields(p),this.parseZIP64ExtraField(p),this.fileComment=p.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var p=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=u(this.extraFields[1].value);this.uncompressedSize===v.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===v.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===v.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===v.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var E,f,_,m=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4<m;)E=p.readInt(2),f=p.readInt(2),_=p.readData(f),this.extraFields[E]={id:E,length:f,value:_};p.setIndex(m)},handleUTF8:function(){var p=g.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=x.utf8decode(this.fileName),this.fileCommentStr=x.utf8decode(this.fileComment);else{var E=this.findExtraFieldUnicodePath();if(E!==null)this.fileNameStr=E;else{var f=v.transformTo(p,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(f)}var _=this.findExtraFieldUnicodeComment();if(_!==null)this.fileCommentStr=_;else{var m=v.transformTo(p,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(m)}}},findExtraFieldUnicodePath:function(){var p=this.extraFields[28789];if(p){var E=u(p.value);return E.readInt(1)!==1||h(this.fileName)!==E.readInt(4)?null:x.utf8decode(E.readData(p.length-5))}return null},findExtraFieldUnicodeComment:function(){var p=this.extraFields[25461];if(p){var E=u(p.value);return E.readInt(1)!==1||h(this.fileComment)!==E.readInt(4)?null:x.utf8decode(E.readData(p.length-5))}return null}},G.exports=S},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(d,G,k){"use strict";function u(E,f,_){this.name=E,this.dir=_.dir,this.date=_.date,this.comment=_.comment,this.unixPermissions=_.unixPermissions,this.dosPermissions=_.dosPermissions,this._data=f,this._dataBinary=_.binary,this.options={compression:_.compression,compressionOptions:_.compressionOptions}}var v=d("./stream/StreamHelper"),i=d("./stream/DataWorker"),h=d("./utf8"),x=d("./compressedObject"),O=d("./stream/GenericWorker");u.prototype={internalStream:function(E){var f=null,_="string";try{if(!E)throw new Error("No output type specified.");var m=(_=E.toLowerCase())==="string"||_==="text";_!=="binarystring"&&_!=="text"||(_="string"),f=this._decompressWorker();var w=!this._dataBinary;w&&!m&&(f=f.pipe(new h.Utf8EncodeWorker)),!w&&m&&(f=f.pipe(new h.Utf8DecodeWorker))}catch(D){(f=new O("error")).error(D)}return new v(f,_,"")},async:function(E,f){return this.internalStream(E).accumulate(f)},nodeStream:function(E,f){return this.internalStream(E||"nodebuffer").toNodejsStream(f)},_compressWorker:function(E,f){if(this._data instanceof x&&this._data.compression.magic===E.magic)return this._data.getCompressedWorker();var _=this._decompressWorker();return this._dataBinary||(_=_.pipe(new h.Utf8EncodeWorker)),x.createWorkerFrom(_,E,f)},_decompressWorker:function(){return this._data instanceof x?this._data.getContentWorker():this._data instanceof O?this._data:new i(this._data)}};for(var g=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],S=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},p=0;p<g.length;p++)u.prototype[g[p]]=S;G.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(d,G,k){(function(u){"use strict";var v,i,h=u.MutationObserver||u.WebKitMutationObserver;if(h){var x=0,O=new h(E),g=u.document.createTextNode("");O.observe(g,{characterData:!0}),v=function(){g.data=x=++x%2}}else if(u.setImmediate||u.MessageChannel===void 0)v="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var f=u.document.createElement("script");f.onreadystatechange=function(){E(),f.onreadystatechange=null,f.parentNode.removeChild(f),f=null},u.document.documentElement.appendChild(f)}:function(){setTimeout(E,0)};else{var S=new u.MessageChannel;S.port1.onmessage=E,v=function(){S.port2.postMessage(0)}}var p=[];function E(){var f,_;i=!0;for(var m=p.length;m;){for(_=p,p=[],f=-1;++f<m;)_[f]();m=p.length}i=!1}G.exports=function(f){p.push(f)!==1||i||v()}}).call(this,typeof V.g!="undefined"?V.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(d,G,k){"use strict";var u=d("immediate");function v(){}var i={},h=["REJECTED"],x=["FULFILLED"],O=["PENDING"];function g(m){if(typeof m!="function")throw new TypeError("resolver must be a function");this.state=O,this.queue=[],this.outcome=void 0,m!==v&&f(this,m)}function S(m,w,D){this.promise=m,typeof w=="function"&&(this.onFulfilled=w,this.callFulfilled=this.otherCallFulfilled),typeof D=="function"&&(this.onRejected=D,this.callRejected=this.otherCallRejected)}function p(m,w,D){u(function(){var M;try{M=w(D)}catch(P){return i.reject(m,P)}M===m?i.reject(m,new TypeError("Cannot resolve promise with itself")):i.resolve(m,M)})}function E(m){var w=m&&m.then;if(m&&(typeof m=="object"||typeof m=="function")&&typeof w=="function")return function(){w.apply(m,arguments)}}function f(m,w){var D=!1;function M(ee){D||(D=!0,i.reject(m,ee))}function P(ee){D||(D=!0,i.resolve(m,ee))}var le=_(function(){w(P,M)});le.status==="error"&&M(le.value)}function _(m,w){var D={};try{D.value=m(w),D.status="success"}catch(M){D.status="error",D.value=M}return D}(G.exports=g).prototype.finally=function(m){if(typeof m!="function")return this;var w=this.constructor;return this.then(function(D){return w.resolve(m()).then(function(){return D})},function(D){return w.resolve(m()).then(function(){throw D})})},g.prototype.catch=function(m){return this.then(null,m)},g.prototype.then=function(m,w){if(typeof m!="function"&&this.state===x||typeof w!="function"&&this.state===h)return this;var D=new this.constructor(v);return this.state!==O?p(D,this.state===x?m:w,this.outcome):this.queue.push(new S(D,m,w)),D},S.prototype.callFulfilled=function(m){i.resolve(this.promise,m)},S.prototype.otherCallFulfilled=function(m){p(this.promise,this.onFulfilled,m)},S.prototype.callRejected=function(m){i.reject(this.promise,m)},S.prototype.otherCallRejected=function(m){p(this.promise,this.onRejected,m)},i.resolve=function(m,w){var D=_(E,w);if(D.status==="error")return i.reject(m,D.value);var M=D.value;if(M)f(m,M);else{m.state=x,m.outcome=w;for(var P=-1,le=m.queue.length;++P<le;)m.queue[P].callFulfilled(w)}return m},i.reject=function(m,w){m.state=h,m.outcome=w;for(var D=-1,M=m.queue.length;++D<M;)m.queue[D].callRejected(w);return m},g.resolve=function(m){return m instanceof this?m:i.resolve(new this(v),m)},g.reject=function(m){var w=new this(v);return i.reject(w,m)},g.all=function(m){var w=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var D=m.length,M=!1;if(!D)return this.resolve([]);for(var P=new Array(D),le=0,ee=-1,Q=new this(v);++ee<D;)j(m[ee],ee);return Q;function j(J,W){w.resolve(J).then(function(C){P[W]=C,++le!==D||M||(M=!0,i.resolve(Q,P))},function(C){M||(M=!0,i.reject(Q,C))})}},g.race=function(m){var w=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var D=m.length,M=!1;if(!D)return this.resolve([]);for(var P=-1,le=new this(v);++P<D;)ee=m[P],w.resolve(ee).then(function(Q){M||(M=!0,i.resolve(le,Q))},function(Q){M||(M=!0,i.reject(le,Q))});var ee;return le}},{immediate:36}],38:[function(d,G,k){"use strict";var u={};(0,d("./lib/utils/common").assign)(u,d("./lib/deflate"),d("./lib/inflate"),d("./lib/zlib/constants")),G.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(d,G,k){"use strict";var u=d("./zlib/deflate"),v=d("./utils/common"),i=d("./utils/strings"),h=d("./zlib/messages"),x=d("./zlib/zstream"),O=Object.prototype.toString,g=0,S=-1,p=0,E=8;function f(m){if(!(this instanceof f))return new f(m);this.options=v.assign({level:S,method:E,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},m||{});var w=this.options;w.raw&&0<w.windowBits?w.windowBits=-w.windowBits:w.gzip&&0<w.windowBits&&w.windowBits<16&&(w.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new x,this.strm.avail_out=0;var D=u.deflateInit2(this.strm,w.level,w.method,w.windowBits,w.memLevel,w.strategy);if(D!==g)throw new Error(h[D]);if(w.header&&u.deflateSetHeader(this.strm,w.header),w.dictionary){var M;if(M=typeof w.dictionary=="string"?i.string2buf(w.dictionary):O.call(w.dictionary)==="[object ArrayBuffer]"?new Uint8Array(w.dictionary):w.dictionary,(D=u.deflateSetDictionary(this.strm,M))!==g)throw new Error(h[D]);this._dict_set=!0}}function _(m,w){var D=new f(w);if(D.push(m,!0),D.err)throw D.msg||h[D.err];return D.result}f.prototype.push=function(m,w){var D,M,P=this.strm,le=this.options.chunkSize;if(this.ended)return!1;M=w===~~w?w:w===!0?4:0,typeof m=="string"?P.input=i.string2buf(m):O.call(m)==="[object ArrayBuffer]"?P.input=new Uint8Array(m):P.input=m,P.next_in=0,P.avail_in=P.input.length;do{if(P.avail_out===0&&(P.output=new v.Buf8(le),P.next_out=0,P.avail_out=le),(D=u.deflate(P,M))!==1&&D!==g)return this.onEnd(D),!(this.ended=!0);P.avail_out!==0&&(P.avail_in!==0||M!==4&&M!==2)||(this.options.to==="string"?this.onData(i.buf2binstring(v.shrinkBuf(P.output,P.next_out))):this.onData(v.shrinkBuf(P.output,P.next_out)))}while((0<P.avail_in||P.avail_out===0)&&D!==1);return M===4?(D=u.deflateEnd(this.strm),this.onEnd(D),this.ended=!0,D===g):M!==2||(this.onEnd(g),!(P.avail_out=0))},f.prototype.onData=function(m){this.chunks.push(m)},f.prototype.onEnd=function(m){m===g&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=v.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},k.Deflate=f,k.deflate=_,k.deflateRaw=function(m,w){return(w=w||{}).raw=!0,_(m,w)},k.gzip=function(m,w){return(w=w||{}).gzip=!0,_(m,w)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(d,G,k){"use strict";var u=d("./zlib/inflate"),v=d("./utils/common"),i=d("./utils/strings"),h=d("./zlib/constants"),x=d("./zlib/messages"),O=d("./zlib/zstream"),g=d("./zlib/gzheader"),S=Object.prototype.toString;function p(f){if(!(this instanceof p))return new p(f);this.options=v.assign({chunkSize:16384,windowBits:0,to:""},f||{});var _=this.options;_.raw&&0<=_.windowBits&&_.windowBits<16&&(_.windowBits=-_.windowBits,_.windowBits===0&&(_.windowBits=-15)),!(0<=_.windowBits&&_.windowBits<16)||f&&f.windowBits||(_.windowBits+=32),15<_.windowBits&&_.windowBits<48&&!(15&_.windowBits)&&(_.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new O,this.strm.avail_out=0;var m=u.inflateInit2(this.strm,_.windowBits);if(m!==h.Z_OK)throw new Error(x[m]);this.header=new g,u.inflateGetHeader(this.strm,this.header)}function E(f,_){var m=new p(_);if(m.push(f,!0),m.err)throw m.msg||x[m.err];return m.result}p.prototype.push=function(f,_){var m,w,D,M,P,le,ee=this.strm,Q=this.options.chunkSize,j=this.options.dictionary,J=!1;if(this.ended)return!1;w=_===~~_?_:_===!0?h.Z_FINISH:h.Z_NO_FLUSH,typeof f=="string"?ee.input=i.binstring2buf(f):S.call(f)==="[object ArrayBuffer]"?ee.input=new Uint8Array(f):ee.input=f,ee.next_in=0,ee.avail_in=ee.input.length;do{if(ee.avail_out===0&&(ee.output=new v.Buf8(Q),ee.next_out=0,ee.avail_out=Q),(m=u.inflate(ee,h.Z_NO_FLUSH))===h.Z_NEED_DICT&&j&&(le=typeof j=="string"?i.string2buf(j):S.call(j)==="[object ArrayBuffer]"?new Uint8Array(j):j,m=u.inflateSetDictionary(this.strm,le)),m===h.Z_BUF_ERROR&&J===!0&&(m=h.Z_OK,J=!1),m!==h.Z_STREAM_END&&m!==h.Z_OK)return this.onEnd(m),!(this.ended=!0);ee.next_out&&(ee.avail_out!==0&&m!==h.Z_STREAM_END&&(ee.avail_in!==0||w!==h.Z_FINISH&&w!==h.Z_SYNC_FLUSH)||(this.options.to==="string"?(D=i.utf8border(ee.output,ee.next_out),M=ee.next_out-D,P=i.buf2string(ee.output,D),ee.next_out=M,ee.avail_out=Q-M,M&&v.arraySet(ee.output,ee.output,D,M,0),this.onData(P)):this.onData(v.shrinkBuf(ee.output,ee.next_out)))),ee.avail_in===0&&ee.avail_out===0&&(J=!0)}while((0<ee.avail_in||ee.avail_out===0)&&m!==h.Z_STREAM_END);return m===h.Z_STREAM_END&&(w=h.Z_FINISH),w===h.Z_FINISH?(m=u.inflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===h.Z_OK):w!==h.Z_SYNC_FLUSH||(this.onEnd(h.Z_OK),!(ee.avail_out=0))},p.prototype.onData=function(f){this.chunks.push(f)},p.prototype.onEnd=function(f){f===h.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=v.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg},k.Inflate=p,k.inflate=E,k.inflateRaw=function(f,_){return(_=_||{}).raw=!0,E(f,_)},k.ungzip=E},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(d,G,k){"use strict";var u=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";k.assign=function(h){for(var x=Array.prototype.slice.call(arguments,1);x.length;){var O=x.shift();if(O){if(typeof O!="object")throw new TypeError(O+"must be non-object");for(var g in O)O.hasOwnProperty(g)&&(h[g]=O[g])}}return h},k.shrinkBuf=function(h,x){return h.length===x?h:h.subarray?h.subarray(0,x):(h.length=x,h)};var v={arraySet:function(h,x,O,g,S){if(x.subarray&&h.subarray)h.set(x.subarray(O,O+g),S);else for(var p=0;p<g;p++)h[S+p]=x[O+p]},flattenChunks:function(h){var x,O,g,S,p,E;for(x=g=0,O=h.length;x<O;x++)g+=h[x].length;for(E=new Uint8Array(g),x=S=0,O=h.length;x<O;x++)p=h[x],E.set(p,S),S+=p.length;return E}},i={arraySet:function(h,x,O,g,S){for(var p=0;p<g;p++)h[S+p]=x[O+p]},flattenChunks:function(h){return[].concat.apply([],h)}};k.setTyped=function(h){h?(k.Buf8=Uint8Array,k.Buf16=Uint16Array,k.Buf32=Int32Array,k.assign(k,v)):(k.Buf8=Array,k.Buf16=Array,k.Buf32=Array,k.assign(k,i))},k.setTyped(u)},{}],42:[function(d,G,k){"use strict";var u=d("./common"),v=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(g){v=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(g){i=!1}for(var h=new u.Buf8(256),x=0;x<256;x++)h[x]=252<=x?6:248<=x?5:240<=x?4:224<=x?3:192<=x?2:1;function O(g,S){if(S<65537&&(g.subarray&&i||!g.subarray&&v))return String.fromCharCode.apply(null,u.shrinkBuf(g,S));for(var p="",E=0;E<S;E++)p+=String.fromCharCode(g[E]);return p}h[254]=h[254]=1,k.string2buf=function(g){var S,p,E,f,_,m=g.length,w=0;for(f=0;f<m;f++)(64512&(p=g.charCodeAt(f)))==55296&&f+1<m&&(64512&(E=g.charCodeAt(f+1)))==56320&&(p=65536+(p-55296<<10)+(E-56320),f++),w+=p<128?1:p<2048?2:p<65536?3:4;for(S=new u.Buf8(w),f=_=0;_<w;f++)(64512&(p=g.charCodeAt(f)))==55296&&f+1<m&&(64512&(E=g.charCodeAt(f+1)))==56320&&(p=65536+(p-55296<<10)+(E-56320),f++),p<128?S[_++]=p:(p<2048?S[_++]=192|p>>>6:(p<65536?S[_++]=224|p>>>12:(S[_++]=240|p>>>18,S[_++]=128|p>>>12&63),S[_++]=128|p>>>6&63),S[_++]=128|63&p);return S},k.buf2binstring=function(g){return O(g,g.length)},k.binstring2buf=function(g){for(var S=new u.Buf8(g.length),p=0,E=S.length;p<E;p++)S[p]=g.charCodeAt(p);return S},k.buf2string=function(g,S){var p,E,f,_,m=S||g.length,w=new Array(2*m);for(p=E=0;p<m;)if((f=g[p++])<128)w[E++]=f;else if(4<(_=h[f]))w[E++]=65533,p+=_-1;else{for(f&=_===2?31:_===3?15:7;1<_&&p<m;)f=f<<6|63&g[p++],_--;1<_?w[E++]=65533:f<65536?w[E++]=f:(f-=65536,w[E++]=55296|f>>10&1023,w[E++]=56320|1023&f)}return O(w,E)},k.utf8border=function(g,S){var p;for((S=S||g.length)>g.length&&(S=g.length),p=S-1;0<=p&&(192&g[p])==128;)p--;return p<0||p===0?S:p+h[g[p]]>S?p:S}},{"./common":41}],43:[function(d,G,k){"use strict";G.exports=function(u,v,i,h){for(var x=65535&u|0,O=u>>>16&65535|0,g=0;i!==0;){for(i-=g=2e3<i?2e3:i;O=O+(x=x+v[h++]|0)|0,--g;);x%=65521,O%=65521}return x|O<<16|0}},{}],44:[function(d,G,k){"use strict";G.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(d,G,k){"use strict";var u=function(){for(var v,i=[],h=0;h<256;h++){v=h;for(var x=0;x<8;x++)v=1&v?3988292384^v>>>1:v>>>1;i[h]=v}return i}();G.exports=function(v,i,h,x){var O=u,g=x+h;v^=-1;for(var S=x;S<g;S++)v=v>>>8^O[255&(v^i[S])];return-1^v}},{}],46:[function(d,G,k){"use strict";var u,v=d("../utils/common"),i=d("./trees"),h=d("./adler32"),x=d("./crc32"),O=d("./messages"),g=0,S=4,p=0,E=-2,f=-1,_=4,m=2,w=8,D=9,M=286,P=30,le=19,ee=2*M+1,Q=15,j=3,J=258,W=J+j+1,C=42,A=113,s=1,ne=2,T=3,Y=4;function ie(r,re){return r.msg=O[re],re}function K(r){return(r<<1)-(4<r?9:0)}function ce(r){for(var re=r.length;0<=--re;)r[re]=0}function U(r){var re=r.state,o=re.pending;o>r.avail_out&&(o=r.avail_out),o!==0&&(v.arraySet(r.output,re.pending_buf,re.pending_out,o,r.next_out),r.next_out+=o,re.pending_out+=o,r.total_out+=o,r.avail_out-=o,re.pending-=o,re.pending===0&&(re.pending_out=0))}function N(r,re){i._tr_flush_block(r,0<=r.block_start?r.block_start:-1,r.strstart-r.block_start,re),r.block_start=r.strstart,U(r.strm)}function Ce(r,re){r.pending_buf[r.pending++]=re}function ge(r,re){r.pending_buf[r.pending++]=re>>>8&255,r.pending_buf[r.pending++]=255&re}function he(r,re){var o,e,t=r.max_chain_length,l=r.strstart,y=r.prev_length,Z=r.nice_match,b=r.strstart>r.w_size-W?r.strstart-(r.w_size-W):0,te=r.window,de=r.w_mask,q=r.prev,_e=r.strstart+J,Re=te[l+y-1],Ve=te[l+y];r.prev_length>=r.good_match&&(t>>=2),Z>r.lookahead&&(Z=r.lookahead);do if(te[(o=re)+y]===Ve&&te[o+y-1]===Re&&te[o]===te[l]&&te[++o]===te[l+1]){l+=2,o++;do;while(te[++l]===te[++o]&&te[++l]===te[++o]&&te[++l]===te[++o]&&te[++l]===te[++o]&&te[++l]===te[++o]&&te[++l]===te[++o]&&te[++l]===te[++o]&&te[++l]===te[++o]&&l<_e);if(e=J-(_e-l),l=_e-J,y<e){if(r.match_start=re,Z<=(y=e))break;Re=te[l+y-1],Ve=te[l+y]}}while((re=q[re&de])>b&&--t!=0);return y<=r.lookahead?y:r.lookahead}function it(r){var re,o,e,t,l,y,Z,b,te,de,q=r.w_size;do{if(t=r.window_size-r.lookahead-r.strstart,r.strstart>=q+(q-W)){for(v.arraySet(r.window,r.window,q,q,0),r.match_start-=q,r.strstart-=q,r.block_start-=q,re=o=r.hash_size;e=r.head[--re],r.head[re]=q<=e?e-q:0,--o;);for(re=o=q;e=r.prev[--re],r.prev[re]=q<=e?e-q:0,--o;);t+=q}if(r.strm.avail_in===0)break;if(y=r.strm,Z=r.window,b=r.strstart+r.lookahead,te=t,de=void 0,de=y.avail_in,te<de&&(de=te),o=de===0?0:(y.avail_in-=de,v.arraySet(Z,y.input,y.next_in,de,b),y.state.wrap===1?y.adler=h(y.adler,Z,de,b):y.state.wrap===2&&(y.adler=x(y.adler,Z,de,b)),y.next_in+=de,y.total_in+=de,de),r.lookahead+=o,r.lookahead+r.insert>=j)for(l=r.strstart-r.insert,r.ins_h=r.window[l],r.ins_h=(r.ins_h<<r.hash_shift^r.window[l+1])&r.hash_mask;r.insert&&(r.ins_h=(r.ins_h<<r.hash_shift^r.window[l+j-1])&r.hash_mask,r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++,r.insert--,!(r.lookahead+r.insert<j)););}while(r.lookahead<W&&r.strm.avail_in!==0)}function dt(r,re){for(var o,e;;){if(r.lookahead<W){if(it(r),r.lookahead<W&&re===g)return s;if(r.lookahead===0)break}if(o=0,r.lookahead>=j&&(r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+j-1])&r.hash_mask,o=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),o!==0&&r.strstart-o<=r.w_size-W&&(r.match_length=he(r,o)),r.match_length>=j)if(e=i._tr_tally(r,r.strstart-r.match_start,r.match_length-j),r.lookahead-=r.match_length,r.match_length<=r.max_lazy_match&&r.lookahead>=j){for(r.match_length--;r.strstart++,r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+j-1])&r.hash_mask,o=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart,--r.match_length!=0;);r.strstart++}else r.strstart+=r.match_length,r.match_length=0,r.ins_h=r.window[r.strstart],r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+1])&r.hash_mask;else e=i._tr_tally(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++;if(e&&(N(r,!1),r.strm.avail_out===0))return s}return r.insert=r.strstart<j-1?r.strstart:j-1,re===S?(N(r,!0),r.strm.avail_out===0?T:Y):r.last_lit&&(N(r,!1),r.strm.avail_out===0)?s:ne}function Ue(r,re){for(var o,e,t;;){if(r.lookahead<W){if(it(r),r.lookahead<W&&re===g)return s;if(r.lookahead===0)break}if(o=0,r.lookahead>=j&&(r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+j-1])&r.hash_mask,o=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),r.prev_length=r.match_length,r.prev_match=r.match_start,r.match_length=j-1,o!==0&&r.prev_length<r.max_lazy_match&&r.strstart-o<=r.w_size-W&&(r.match_length=he(r,o),r.match_length<=5&&(r.strategy===1||r.match_length===j&&4096<r.strstart-r.match_start)&&(r.match_length=j-1)),r.prev_length>=j&&r.match_length<=r.prev_length){for(t=r.strstart+r.lookahead-j,e=i._tr_tally(r,r.strstart-1-r.prev_match,r.prev_length-j),r.lookahead-=r.prev_length-1,r.prev_length-=2;++r.strstart<=t&&(r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+j-1])&r.hash_mask,o=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),--r.prev_length!=0;);if(r.match_available=0,r.match_length=j-1,r.strstart++,e&&(N(r,!1),r.strm.avail_out===0))return s}else if(r.match_available){if((e=i._tr_tally(r,0,r.window[r.strstart-1]))&&N(r,!1),r.strstart++,r.lookahead--,r.strm.avail_out===0)return s}else r.match_available=1,r.strstart++,r.lookahead--}return r.match_available&&(e=i._tr_tally(r,0,r.window[r.strstart-1]),r.match_available=0),r.insert=r.strstart<j-1?r.strstart:j-1,re===S?(N(r,!0),r.strm.avail_out===0?T:Y):r.last_lit&&(N(r,!1),r.strm.avail_out===0)?s:ne}function tt(r,re,o,e,t){this.good_length=r,this.max_lazy=re,this.nice_length=o,this.max_chain=e,this.func=t}function gt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=w,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new v.Buf16(2*ee),this.dyn_dtree=new v.Buf16(2*(2*P+1)),this.bl_tree=new v.Buf16(2*(2*le+1)),ce(this.dyn_ltree),ce(this.dyn_dtree),ce(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new v.Buf16(Q+1),this.heap=new v.Buf16(2*M+1),ce(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new v.Buf16(2*M+1),ce(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ht(r){var re;return r&&r.state?(r.total_in=r.total_out=0,r.data_type=m,(re=r.state).pending=0,re.pending_out=0,re.wrap<0&&(re.wrap=-re.wrap),re.status=re.wrap?C:A,r.adler=re.wrap===2?0:1,re.last_flush=g,i._tr_init(re),p):ie(r,E)}function At(r){var re=ht(r);return re===p&&function(o){o.window_size=2*o.w_size,ce(o.head),o.max_lazy_match=u[o.level].max_lazy,o.good_match=u[o.level].good_length,o.nice_match=u[o.level].nice_length,o.max_chain_length=u[o.level].max_chain,o.strstart=0,o.block_start=0,o.lookahead=0,o.insert=0,o.match_length=o.prev_length=j-1,o.match_available=0,o.ins_h=0}(r.state),re}function ft(r,re,o,e,t,l){if(!r)return E;var y=1;if(re===f&&(re=6),e<0?(y=0,e=-e):15<e&&(y=2,e-=16),t<1||D<t||o!==w||e<8||15<e||re<0||9<re||l<0||_<l)return ie(r,E);e===8&&(e=9);var Z=new gt;return(r.state=Z).strm=r,Z.wrap=y,Z.gzhead=null,Z.w_bits=e,Z.w_size=1<<Z.w_bits,Z.w_mask=Z.w_size-1,Z.hash_bits=t+7,Z.hash_size=1<<Z.hash_bits,Z.hash_mask=Z.hash_size-1,Z.hash_shift=~~((Z.hash_bits+j-1)/j),Z.window=new v.Buf8(2*Z.w_size),Z.head=new v.Buf16(Z.hash_size),Z.prev=new v.Buf16(Z.w_size),Z.lit_bufsize=1<<t+6,Z.pending_buf_size=4*Z.lit_bufsize,Z.pending_buf=new v.Buf8(Z.pending_buf_size),Z.d_buf=1*Z.lit_bufsize,Z.l_buf=3*Z.lit_bufsize,Z.level=re,Z.strategy=l,Z.method=o,At(r)}u=[new tt(0,0,0,0,function(r,re){var o=65535;for(o>r.pending_buf_size-5&&(o=r.pending_buf_size-5);;){if(r.lookahead<=1){if(it(r),r.lookahead===0&&re===g)return s;if(r.lookahead===0)break}r.strstart+=r.lookahead,r.lookahead=0;var e=r.block_start+o;if((r.strstart===0||r.strstart>=e)&&(r.lookahead=r.strstart-e,r.strstart=e,N(r,!1),r.strm.avail_out===0)||r.strstart-r.block_start>=r.w_size-W&&(N(r,!1),r.strm.avail_out===0))return s}return r.insert=0,re===S?(N(r,!0),r.strm.avail_out===0?T:Y):(r.strstart>r.block_start&&(N(r,!1),r.strm.avail_out),s)}),new tt(4,4,8,4,dt),new tt(4,5,16,8,dt),new tt(4,6,32,32,dt),new tt(4,4,16,16,Ue),new tt(8,16,32,32,Ue),new tt(8,16,128,128,Ue),new tt(8,32,128,256,Ue),new tt(32,128,258,1024,Ue),new tt(32,258,258,4096,Ue)],k.deflateInit=function(r,re){return ft(r,re,w,15,8,0)},k.deflateInit2=ft,k.deflateReset=At,k.deflateResetKeep=ht,k.deflateSetHeader=function(r,re){return r&&r.state?r.state.wrap!==2?E:(r.state.gzhead=re,p):E},k.deflate=function(r,re){var o,e,t,l;if(!r||!r.state||5<re||re<0)return r?ie(r,E):E;if(e=r.state,!r.output||!r.input&&r.avail_in!==0||e.status===666&&re!==S)return ie(r,r.avail_out===0?-5:E);if(e.strm=r,o=e.last_flush,e.last_flush=re,e.status===C)if(e.wrap===2)r.adler=0,Ce(e,31),Ce(e,139),Ce(e,8),e.gzhead?(Ce(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),Ce(e,255&e.gzhead.time),Ce(e,e.gzhead.time>>8&255),Ce(e,e.gzhead.time>>16&255),Ce(e,e.gzhead.time>>24&255),Ce(e,e.level===9?2:2<=e.strategy||e.level<2?4:0),Ce(e,255&e.gzhead.os),e.gzhead.extra&&e.gzhead.extra.length&&(Ce(e,255&e.gzhead.extra.length),Ce(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(r.adler=x(r.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=69):(Ce(e,0),Ce(e,0),Ce(e,0),Ce(e,0),Ce(e,0),Ce(e,e.level===9?2:2<=e.strategy||e.level<2?4:0),Ce(e,3),e.status=A);else{var y=w+(e.w_bits-8<<4)<<8;y|=(2<=e.strategy||e.level<2?0:e.level<6?1:e.level===6?2:3)<<6,e.strstart!==0&&(y|=32),y+=31-y%31,e.status=A,ge(e,y),e.strstart!==0&&(ge(e,r.adler>>>16),ge(e,65535&r.adler)),r.adler=1}if(e.status===69)if(e.gzhead.extra){for(t=e.pending;e.gzindex<(65535&e.gzhead.extra.length)&&(e.pending!==e.pending_buf_size||(e.gzhead.hcrc&&e.pending>t&&(r.adler=x(r.adler,e.pending_buf,e.pending-t,t)),U(r),t=e.pending,e.pending!==e.pending_buf_size));)Ce(e,255&e.gzhead.extra[e.gzindex]),e.gzindex++;e.gzhead.hcrc&&e.pending>t&&(r.adler=x(r.adler,e.pending_buf,e.pending-t,t)),e.gzindex===e.gzhead.extra.length&&(e.gzindex=0,e.status=73)}else e.status=73;if(e.status===73)if(e.gzhead.name){t=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>t&&(r.adler=x(r.adler,e.pending_buf,e.pending-t,t)),U(r),t=e.pending,e.pending===e.pending_buf_size)){l=1;break}l=e.gzindex<e.gzhead.name.length?255&e.gzhead.name.charCodeAt(e.gzindex++):0,Ce(e,l)}while(l!==0);e.gzhead.hcrc&&e.pending>t&&(r.adler=x(r.adler,e.pending_buf,e.pending-t,t)),l===0&&(e.gzindex=0,e.status=91)}else e.status=91;if(e.status===91)if(e.gzhead.comment){t=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>t&&(r.adler=x(r.adler,e.pending_buf,e.pending-t,t)),U(r),t=e.pending,e.pending===e.pending_buf_size)){l=1;break}l=e.gzindex<e.gzhead.comment.length?255&e.gzhead.comment.charCodeAt(e.gzindex++):0,Ce(e,l)}while(l!==0);e.gzhead.hcrc&&e.pending>t&&(r.adler=x(r.adler,e.pending_buf,e.pending-t,t)),l===0&&(e.status=103)}else e.status=103;if(e.status===103&&(e.gzhead.hcrc?(e.pending+2>e.pending_buf_size&&U(r),e.pending+2<=e.pending_buf_size&&(Ce(e,255&r.adler),Ce(e,r.adler>>8&255),r.adler=0,e.status=A)):e.status=A),e.pending!==0){if(U(r),r.avail_out===0)return e.last_flush=-1,p}else if(r.avail_in===0&&K(re)<=K(o)&&re!==S)return ie(r,-5);if(e.status===666&&r.avail_in!==0)return ie(r,-5);if(r.avail_in!==0||e.lookahead!==0||re!==g&&e.status!==666){var Z=e.strategy===2?function(b,te){for(var de;;){if(b.lookahead===0&&(it(b),b.lookahead===0)){if(te===g)return s;break}if(b.match_length=0,de=i._tr_tally(b,0,b.window[b.strstart]),b.lookahead--,b.strstart++,de&&(N(b,!1),b.strm.avail_out===0))return s}return b.insert=0,te===S?(N(b,!0),b.strm.avail_out===0?T:Y):b.last_lit&&(N(b,!1),b.strm.avail_out===0)?s:ne}(e,re):e.strategy===3?function(b,te){for(var de,q,_e,Re,Ve=b.window;;){if(b.lookahead<=J){if(it(b),b.lookahead<=J&&te===g)return s;if(b.lookahead===0)break}if(b.match_length=0,b.lookahead>=j&&0<b.strstart&&(q=Ve[_e=b.strstart-1])===Ve[++_e]&&q===Ve[++_e]&&q===Ve[++_e]){Re=b.strstart+J;do;while(q===Ve[++_e]&&q===Ve[++_e]&&q===Ve[++_e]&&q===Ve[++_e]&&q===Ve[++_e]&&q===Ve[++_e]&&q===Ve[++_e]&&q===Ve[++_e]&&_e<Re);b.match_length=J-(Re-_e),b.match_length>b.lookahead&&(b.match_length=b.lookahead)}if(b.match_length>=j?(de=i._tr_tally(b,1,b.match_length-j),b.lookahead-=b.match_length,b.strstart+=b.match_length,b.match_length=0):(de=i._tr_tally(b,0,b.window[b.strstart]),b.lookahead--,b.strstart++),de&&(N(b,!1),b.strm.avail_out===0))return s}return b.insert=0,te===S?(N(b,!0),b.strm.avail_out===0?T:Y):b.last_lit&&(N(b,!1),b.strm.avail_out===0)?s:ne}(e,re):u[e.level].func(e,re);if(Z!==T&&Z!==Y||(e.status=666),Z===s||Z===T)return r.avail_out===0&&(e.last_flush=-1),p;if(Z===ne&&(re===1?i._tr_align(e):re!==5&&(i._tr_stored_block(e,0,0,!1),re===3&&(ce(e.head),e.lookahead===0&&(e.strstart=0,e.block_start=0,e.insert=0))),U(r),r.avail_out===0))return e.last_flush=-1,p}return re!==S?p:e.wrap<=0?1:(e.wrap===2?(Ce(e,255&r.adler),Ce(e,r.adler>>8&255),Ce(e,r.adler>>16&255),Ce(e,r.adler>>24&255),Ce(e,255&r.total_in),Ce(e,r.total_in>>8&255),Ce(e,r.total_in>>16&255),Ce(e,r.total_in>>24&255)):(ge(e,r.adler>>>16),ge(e,65535&r.adler)),U(r),0<e.wrap&&(e.wrap=-e.wrap),e.pending!==0?p:1)},k.deflateEnd=function(r){var re;return r&&r.state?(re=r.state.status)!==C&&re!==69&&re!==73&&re!==91&&re!==103&&re!==A&&re!==666?ie(r,E):(r.state=null,re===A?ie(r,-3):p):E},k.deflateSetDictionary=function(r,re){var o,e,t,l,y,Z,b,te,de=re.length;if(!r||!r.state||(l=(o=r.state).wrap)===2||l===1&&o.status!==C||o.lookahead)return E;for(l===1&&(r.adler=h(r.adler,re,de,0)),o.wrap=0,de>=o.w_size&&(l===0&&(ce(o.head),o.strstart=0,o.block_start=0,o.insert=0),te=new v.Buf8(o.w_size),v.arraySet(te,re,de-o.w_size,o.w_size,0),re=te,de=o.w_size),y=r.avail_in,Z=r.next_in,b=r.input,r.avail_in=de,r.next_in=0,r.input=re,it(o);o.lookahead>=j;){for(e=o.strstart,t=o.lookahead-(j-1);o.ins_h=(o.ins_h<<o.hash_shift^o.window[e+j-1])&o.hash_mask,o.prev[e&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=e,e++,--t;);o.strstart=e,o.lookahead=j-1,it(o)}return o.strstart+=o.lookahead,o.block_start=o.strstart,o.insert=o.lookahead,o.lookahead=0,o.match_length=o.prev_length=j-1,o.match_available=0,r.next_in=Z,r.input=b,r.avail_in=y,o.wrap=l,p},k.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(d,G,k){"use strict";G.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(d,G,k){"use strict";G.exports=function(u,v){var i,h,x,O,g,S,p,E,f,_,m,w,D,M,P,le,ee,Q,j,J,W,C,A,s,ne;i=u.state,h=u.next_in,s=u.input,x=h+(u.avail_in-5),O=u.next_out,ne=u.output,g=O-(v-u.avail_out),S=O+(u.avail_out-257),p=i.dmax,E=i.wsize,f=i.whave,_=i.wnext,m=i.window,w=i.hold,D=i.bits,M=i.lencode,P=i.distcode,le=(1<<i.lenbits)-1,ee=(1<<i.distbits)-1;e:do{D<15&&(w+=s[h++]<<D,D+=8,w+=s[h++]<<D,D+=8),Q=M[w&le];t:for(;;){if(w>>>=j=Q>>>24,D-=j,(j=Q>>>16&255)===0)ne[O++]=65535&Q;else{if(!(16&j)){if(!(64&j)){Q=M[(65535&Q)+(w&(1<<j)-1)];continue t}if(32&j){i.mode=12;break e}u.msg="invalid literal/length code",i.mode=30;break e}J=65535&Q,(j&=15)&&(D<j&&(w+=s[h++]<<D,D+=8),J+=w&(1<<j)-1,w>>>=j,D-=j),D<15&&(w+=s[h++]<<D,D+=8,w+=s[h++]<<D,D+=8),Q=P[w&ee];n:for(;;){if(w>>>=j=Q>>>24,D-=j,!(16&(j=Q>>>16&255))){if(!(64&j)){Q=P[(65535&Q)+(w&(1<<j)-1)];continue n}u.msg="invalid distance code",i.mode=30;break e}if(W=65535&Q,D<(j&=15)&&(w+=s[h++]<<D,(D+=8)<j&&(w+=s[h++]<<D,D+=8)),p<(W+=w&(1<<j)-1)){u.msg="invalid distance too far back",i.mode=30;break e}if(w>>>=j,D-=j,(j=O-g)<W){if(f<(j=W-j)&&i.sane){u.msg="invalid distance too far back",i.mode=30;break e}if(A=m,(C=0)===_){if(C+=E-j,j<J){for(J-=j;ne[O++]=m[C++],--j;);C=O-W,A=ne}}else if(_<j){if(C+=E+_-j,(j-=_)<J){for(J-=j;ne[O++]=m[C++],--j;);if(C=0,_<J){for(J-=j=_;ne[O++]=m[C++],--j;);C=O-W,A=ne}}}else if(C+=_-j,j<J){for(J-=j;ne[O++]=m[C++],--j;);C=O-W,A=ne}for(;2<J;)ne[O++]=A[C++],ne[O++]=A[C++],ne[O++]=A[C++],J-=3;J&&(ne[O++]=A[C++],1<J&&(ne[O++]=A[C++]))}else{for(C=O-W;ne[O++]=ne[C++],ne[O++]=ne[C++],ne[O++]=ne[C++],2<(J-=3););J&&(ne[O++]=ne[C++],1<J&&(ne[O++]=ne[C++]))}break}}break}}while(h<x&&O<S);h-=J=D>>3,w&=(1<<(D-=J<<3))-1,u.next_in=h,u.next_out=O,u.avail_in=h<x?x-h+5:5-(h-x),u.avail_out=O<S?S-O+257:257-(O-S),i.hold=w,i.bits=D}},{}],49:[function(d,G,k){"use strict";var u=d("../utils/common"),v=d("./adler32"),i=d("./crc32"),h=d("./inffast"),x=d("./inftrees"),O=1,g=2,S=0,p=-2,E=1,f=852,_=592;function m(C){return(C>>>24&255)+(C>>>8&65280)+((65280&C)<<8)+((255&C)<<24)}function w(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function D(C){var A;return C&&C.state?(A=C.state,C.total_in=C.total_out=A.total=0,C.msg="",A.wrap&&(C.adler=1&A.wrap),A.mode=E,A.last=0,A.havedict=0,A.dmax=32768,A.head=null,A.hold=0,A.bits=0,A.lencode=A.lendyn=new u.Buf32(f),A.distcode=A.distdyn=new u.Buf32(_),A.sane=1,A.back=-1,S):p}function M(C){var A;return C&&C.state?((A=C.state).wsize=0,A.whave=0,A.wnext=0,D(C)):p}function P(C,A){var s,ne;return C&&C.state?(ne=C.state,A<0?(s=0,A=-A):(s=1+(A>>4),A<48&&(A&=15)),A&&(A<8||15<A)?p:(ne.window!==null&&ne.wbits!==A&&(ne.window=null),ne.wrap=s,ne.wbits=A,M(C))):p}function le(C,A){var s,ne;return C?(ne=new w,(C.state=ne).window=null,(s=P(C,A))!==S&&(C.state=null),s):p}var ee,Q,j=!0;function J(C){if(j){var A;for(ee=new u.Buf32(512),Q=new u.Buf32(32),A=0;A<144;)C.lens[A++]=8;for(;A<256;)C.lens[A++]=9;for(;A<280;)C.lens[A++]=7;for(;A<288;)C.lens[A++]=8;for(x(O,C.lens,0,288,ee,0,C.work,{bits:9}),A=0;A<32;)C.lens[A++]=5;x(g,C.lens,0,32,Q,0,C.work,{bits:5}),j=!1}C.lencode=ee,C.lenbits=9,C.distcode=Q,C.distbits=5}function W(C,A,s,ne){var T,Y=C.state;return Y.window===null&&(Y.wsize=1<<Y.wbits,Y.wnext=0,Y.whave=0,Y.window=new u.Buf8(Y.wsize)),ne>=Y.wsize?(u.arraySet(Y.window,A,s-Y.wsize,Y.wsize,0),Y.wnext=0,Y.whave=Y.wsize):(ne<(T=Y.wsize-Y.wnext)&&(T=ne),u.arraySet(Y.window,A,s-ne,T,Y.wnext),(ne-=T)?(u.arraySet(Y.window,A,s-ne,ne,0),Y.wnext=ne,Y.whave=Y.wsize):(Y.wnext+=T,Y.wnext===Y.wsize&&(Y.wnext=0),Y.whave<Y.wsize&&(Y.whave+=T))),0}k.inflateReset=M,k.inflateReset2=P,k.inflateResetKeep=D,k.inflateInit=function(C){return le(C,15)},k.inflateInit2=le,k.inflate=function(C,A){var s,ne,T,Y,ie,K,ce,U,N,Ce,ge,he,it,dt,Ue,tt,gt,ht,At,ft,r,re,o,e,t=0,l=new u.Buf8(4),y=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!C||!C.state||!C.output||!C.input&&C.avail_in!==0)return p;(s=C.state).mode===12&&(s.mode=13),ie=C.next_out,T=C.output,ce=C.avail_out,Y=C.next_in,ne=C.input,K=C.avail_in,U=s.hold,N=s.bits,Ce=K,ge=ce,re=S;e:for(;;)switch(s.mode){case E:if(s.wrap===0){s.mode=13;break}for(;N<16;){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}if(2&s.wrap&&U===35615){l[s.check=0]=255&U,l[1]=U>>>8&255,s.check=i(s.check,l,2,0),N=U=0,s.mode=2;break}if(s.flags=0,s.head&&(s.head.done=!1),!(1&s.wrap)||(((255&U)<<8)+(U>>8))%31){C.msg="incorrect header check",s.mode=30;break}if((15&U)!=8){C.msg="unknown compression method",s.mode=30;break}if(N-=4,r=8+(15&(U>>>=4)),s.wbits===0)s.wbits=r;else if(r>s.wbits){C.msg="invalid window size",s.mode=30;break}s.dmax=1<<r,C.adler=s.check=1,s.mode=512&U?10:12,N=U=0;break;case 2:for(;N<16;){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}if(s.flags=U,(255&s.flags)!=8){C.msg="unknown compression method",s.mode=30;break}if(57344&s.flags){C.msg="unknown header flags set",s.mode=30;break}s.head&&(s.head.text=U>>8&1),512&s.flags&&(l[0]=255&U,l[1]=U>>>8&255,s.check=i(s.check,l,2,0)),N=U=0,s.mode=3;case 3:for(;N<32;){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}s.head&&(s.head.time=U),512&s.flags&&(l[0]=255&U,l[1]=U>>>8&255,l[2]=U>>>16&255,l[3]=U>>>24&255,s.check=i(s.check,l,4,0)),N=U=0,s.mode=4;case 4:for(;N<16;){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}s.head&&(s.head.xflags=255&U,s.head.os=U>>8),512&s.flags&&(l[0]=255&U,l[1]=U>>>8&255,s.check=i(s.check,l,2,0)),N=U=0,s.mode=5;case 5:if(1024&s.flags){for(;N<16;){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}s.length=U,s.head&&(s.head.extra_len=U),512&s.flags&&(l[0]=255&U,l[1]=U>>>8&255,s.check=i(s.check,l,2,0)),N=U=0}else s.head&&(s.head.extra=null);s.mode=6;case 6:if(1024&s.flags&&(K<(he=s.length)&&(he=K),he&&(s.head&&(r=s.head.extra_len-s.length,s.head.extra||(s.head.extra=new Array(s.head.extra_len)),u.arraySet(s.head.extra,ne,Y,he,r)),512&s.flags&&(s.check=i(s.check,ne,he,Y)),K-=he,Y+=he,s.length-=he),s.length))break e;s.length=0,s.mode=7;case 7:if(2048&s.flags){if(K===0)break e;for(he=0;r=ne[Y+he++],s.head&&r&&s.length<65536&&(s.head.name+=String.fromCharCode(r)),r&&he<K;);if(512&s.flags&&(s.check=i(s.check,ne,he,Y)),K-=he,Y+=he,r)break e}else s.head&&(s.head.name=null);s.length=0,s.mode=8;case 8:if(4096&s.flags){if(K===0)break e;for(he=0;r=ne[Y+he++],s.head&&r&&s.length<65536&&(s.head.comment+=String.fromCharCode(r)),r&&he<K;);if(512&s.flags&&(s.check=i(s.check,ne,he,Y)),K-=he,Y+=he,r)break e}else s.head&&(s.head.comment=null);s.mode=9;case 9:if(512&s.flags){for(;N<16;){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}if(U!==(65535&s.check)){C.msg="header crc mismatch",s.mode=30;break}N=U=0}s.head&&(s.head.hcrc=s.flags>>9&1,s.head.done=!0),C.adler=s.check=0,s.mode=12;break;case 10:for(;N<32;){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}C.adler=s.check=m(U),N=U=0,s.mode=11;case 11:if(s.havedict===0)return C.next_out=ie,C.avail_out=ce,C.next_in=Y,C.avail_in=K,s.hold=U,s.bits=N,2;C.adler=s.check=1,s.mode=12;case 12:if(A===5||A===6)break e;case 13:if(s.last){U>>>=7&N,N-=7&N,s.mode=27;break}for(;N<3;){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}switch(s.last=1&U,N-=1,3&(U>>>=1)){case 0:s.mode=14;break;case 1:if(J(s),s.mode=20,A!==6)break;U>>>=2,N-=2;break e;case 2:s.mode=17;break;case 3:C.msg="invalid block type",s.mode=30}U>>>=2,N-=2;break;case 14:for(U>>>=7&N,N-=7&N;N<32;){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}if((65535&U)!=(U>>>16^65535)){C.msg="invalid stored block lengths",s.mode=30;break}if(s.length=65535&U,N=U=0,s.mode=15,A===6)break e;case 15:s.mode=16;case 16:if(he=s.length){if(K<he&&(he=K),ce<he&&(he=ce),he===0)break e;u.arraySet(T,ne,Y,he,ie),K-=he,Y+=he,ce-=he,ie+=he,s.length-=he;break}s.mode=12;break;case 17:for(;N<14;){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}if(s.nlen=257+(31&U),U>>>=5,N-=5,s.ndist=1+(31&U),U>>>=5,N-=5,s.ncode=4+(15&U),U>>>=4,N-=4,286<s.nlen||30<s.ndist){C.msg="too many length or distance symbols",s.mode=30;break}s.have=0,s.mode=18;case 18:for(;s.have<s.ncode;){for(;N<3;){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}s.lens[y[s.have++]]=7&U,U>>>=3,N-=3}for(;s.have<19;)s.lens[y[s.have++]]=0;if(s.lencode=s.lendyn,s.lenbits=7,o={bits:s.lenbits},re=x(0,s.lens,0,19,s.lencode,0,s.work,o),s.lenbits=o.bits,re){C.msg="invalid code lengths set",s.mode=30;break}s.have=0,s.mode=19;case 19:for(;s.have<s.nlen+s.ndist;){for(;tt=(t=s.lencode[U&(1<<s.lenbits)-1])>>>16&255,gt=65535&t,!((Ue=t>>>24)<=N);){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}if(gt<16)U>>>=Ue,N-=Ue,s.lens[s.have++]=gt;else{if(gt===16){for(e=Ue+2;N<e;){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}if(U>>>=Ue,N-=Ue,s.have===0){C.msg="invalid bit length repeat",s.mode=30;break}r=s.lens[s.have-1],he=3+(3&U),U>>>=2,N-=2}else if(gt===17){for(e=Ue+3;N<e;){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}N-=Ue,r=0,he=3+(7&(U>>>=Ue)),U>>>=3,N-=3}else{for(e=Ue+7;N<e;){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}N-=Ue,r=0,he=11+(127&(U>>>=Ue)),U>>>=7,N-=7}if(s.have+he>s.nlen+s.ndist){C.msg="invalid bit length repeat",s.mode=30;break}for(;he--;)s.lens[s.have++]=r}}if(s.mode===30)break;if(s.lens[256]===0){C.msg="invalid code -- missing end-of-block",s.mode=30;break}if(s.lenbits=9,o={bits:s.lenbits},re=x(O,s.lens,0,s.nlen,s.lencode,0,s.work,o),s.lenbits=o.bits,re){C.msg="invalid literal/lengths set",s.mode=30;break}if(s.distbits=6,s.distcode=s.distdyn,o={bits:s.distbits},re=x(g,s.lens,s.nlen,s.ndist,s.distcode,0,s.work,o),s.distbits=o.bits,re){C.msg="invalid distances set",s.mode=30;break}if(s.mode=20,A===6)break e;case 20:s.mode=21;case 21:if(6<=K&&258<=ce){C.next_out=ie,C.avail_out=ce,C.next_in=Y,C.avail_in=K,s.hold=U,s.bits=N,h(C,ge),ie=C.next_out,T=C.output,ce=C.avail_out,Y=C.next_in,ne=C.input,K=C.avail_in,U=s.hold,N=s.bits,s.mode===12&&(s.back=-1);break}for(s.back=0;tt=(t=s.lencode[U&(1<<s.lenbits)-1])>>>16&255,gt=65535&t,!((Ue=t>>>24)<=N);){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}if(tt&&!(240&tt)){for(ht=Ue,At=tt,ft=gt;tt=(t=s.lencode[ft+((U&(1<<ht+At)-1)>>ht)])>>>16&255,gt=65535&t,!(ht+(Ue=t>>>24)<=N);){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}U>>>=ht,N-=ht,s.back+=ht}if(U>>>=Ue,N-=Ue,s.back+=Ue,s.length=gt,tt===0){s.mode=26;break}if(32&tt){s.back=-1,s.mode=12;break}if(64&tt){C.msg="invalid literal/length code",s.mode=30;break}s.extra=15&tt,s.mode=22;case 22:if(s.extra){for(e=s.extra;N<e;){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}s.length+=U&(1<<s.extra)-1,U>>>=s.extra,N-=s.extra,s.back+=s.extra}s.was=s.length,s.mode=23;case 23:for(;tt=(t=s.distcode[U&(1<<s.distbits)-1])>>>16&255,gt=65535&t,!((Ue=t>>>24)<=N);){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}if(!(240&tt)){for(ht=Ue,At=tt,ft=gt;tt=(t=s.distcode[ft+((U&(1<<ht+At)-1)>>ht)])>>>16&255,gt=65535&t,!(ht+(Ue=t>>>24)<=N);){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}U>>>=ht,N-=ht,s.back+=ht}if(U>>>=Ue,N-=Ue,s.back+=Ue,64&tt){C.msg="invalid distance code",s.mode=30;break}s.offset=gt,s.extra=15&tt,s.mode=24;case 24:if(s.extra){for(e=s.extra;N<e;){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}s.offset+=U&(1<<s.extra)-1,U>>>=s.extra,N-=s.extra,s.back+=s.extra}if(s.offset>s.dmax){C.msg="invalid distance too far back",s.mode=30;break}s.mode=25;case 25:if(ce===0)break e;if(he=ge-ce,s.offset>he){if((he=s.offset-he)>s.whave&&s.sane){C.msg="invalid distance too far back",s.mode=30;break}it=he>s.wnext?(he-=s.wnext,s.wsize-he):s.wnext-he,he>s.length&&(he=s.length),dt=s.window}else dt=T,it=ie-s.offset,he=s.length;for(ce<he&&(he=ce),ce-=he,s.length-=he;T[ie++]=dt[it++],--he;);s.length===0&&(s.mode=21);break;case 26:if(ce===0)break e;T[ie++]=s.length,ce--,s.mode=21;break;case 27:if(s.wrap){for(;N<32;){if(K===0)break e;K--,U|=ne[Y++]<<N,N+=8}if(ge-=ce,C.total_out+=ge,s.total+=ge,ge&&(C.adler=s.check=s.flags?i(s.check,T,ge,ie-ge):v(s.check,T,ge,ie-ge)),ge=ce,(s.flags?U:m(U))!==s.check){C.msg="incorrect data check",s.mode=30;break}N=U=0}s.mode=28;case 28:if(s.wrap&&s.flags){for(;N<32;){if(K===0)break e;K--,U+=ne[Y++]<<N,N+=8}if(U!==(4294967295&s.total)){C.msg="incorrect length check",s.mode=30;break}N=U=0}s.mode=29;case 29:re=1;break e;case 30:re=-3;break e;case 31:return-4;case 32:default:return p}return C.next_out=ie,C.avail_out=ce,C.next_in=Y,C.avail_in=K,s.hold=U,s.bits=N,(s.wsize||ge!==C.avail_out&&s.mode<30&&(s.mode<27||A!==4))&&W(C,C.output,C.next_out,ge-C.avail_out)?(s.mode=31,-4):(Ce-=C.avail_in,ge-=C.avail_out,C.total_in+=Ce,C.total_out+=ge,s.total+=ge,s.wrap&&ge&&(C.adler=s.check=s.flags?i(s.check,T,ge,C.next_out-ge):v(s.check,T,ge,C.next_out-ge)),C.data_type=s.bits+(s.last?64:0)+(s.mode===12?128:0)+(s.mode===20||s.mode===15?256:0),(Ce==0&&ge===0||A===4)&&re===S&&(re=-5),re)},k.inflateEnd=function(C){if(!C||!C.state)return p;var A=C.state;return A.window&&(A.window=null),C.state=null,S},k.inflateGetHeader=function(C,A){var s;return C&&C.state&&2&(s=C.state).wrap?((s.head=A).done=!1,S):p},k.inflateSetDictionary=function(C,A){var s,ne=A.length;return C&&C.state?(s=C.state).wrap!==0&&s.mode!==11?p:s.mode===11&&v(1,A,ne,0)!==s.check?-3:W(C,A,ne,ne)?(s.mode=31,-4):(s.havedict=1,S):p},k.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(d,G,k){"use strict";var u=d("../utils/common"),v=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],h=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],x=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];G.exports=function(O,g,S,p,E,f,_,m){var w,D,M,P,le,ee,Q,j,J,W=m.bits,C=0,A=0,s=0,ne=0,T=0,Y=0,ie=0,K=0,ce=0,U=0,N=null,Ce=0,ge=new u.Buf16(16),he=new u.Buf16(16),it=null,dt=0;for(C=0;C<=15;C++)ge[C]=0;for(A=0;A<p;A++)ge[g[S+A]]++;for(T=W,ne=15;1<=ne&&ge[ne]===0;ne--);if(ne<T&&(T=ne),ne===0)return E[f++]=20971520,E[f++]=20971520,m.bits=1,0;for(s=1;s<ne&&ge[s]===0;s++);for(T<s&&(T=s),C=K=1;C<=15;C++)if(K<<=1,(K-=ge[C])<0)return-1;if(0<K&&(O===0||ne!==1))return-1;for(he[1]=0,C=1;C<15;C++)he[C+1]=he[C]+ge[C];for(A=0;A<p;A++)g[S+A]!==0&&(_[he[g[S+A]]++]=A);if(ee=O===0?(N=it=_,19):O===1?(N=v,Ce-=257,it=i,dt-=257,256):(N=h,it=x,-1),C=s,le=f,ie=A=U=0,M=-1,P=(ce=1<<(Y=T))-1,O===1&&852<ce||O===2&&592<ce)return 1;for(;;){for(Q=C-ie,J=_[A]<ee?(j=0,_[A]):_[A]>ee?(j=it[dt+_[A]],N[Ce+_[A]]):(j=96,0),w=1<<C-ie,s=D=1<<Y;E[le+(U>>ie)+(D-=w)]=Q<<24|j<<16|J|0,D!==0;);for(w=1<<C-1;U&w;)w>>=1;if(w!==0?(U&=w-1,U+=w):U=0,A++,--ge[C]==0){if(C===ne)break;C=g[S+_[A]]}if(T<C&&(U&P)!==M){for(ie===0&&(ie=T),le+=s,K=1<<(Y=C-ie);Y+ie<ne&&!((K-=ge[Y+ie])<=0);)Y++,K<<=1;if(ce+=1<<Y,O===1&&852<ce||O===2&&592<ce)return 1;E[M=U&P]=T<<24|Y<<16|le-f|0}}return U!==0&&(E[le+U]=C-ie<<24|64<<16|0),m.bits=T,0}},{"../utils/common":41}],51:[function(d,G,k){"use strict";G.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(d,G,k){"use strict";var u=d("../utils/common"),v=0,i=1;function h(t){for(var l=t.length;0<=--l;)t[l]=0}var x=0,O=29,g=256,S=g+1+O,p=30,E=19,f=2*S+1,_=15,m=16,w=7,D=256,M=16,P=17,le=18,ee=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Q=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],j=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],J=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],W=new Array(2*(S+2));h(W);var C=new Array(2*p);h(C);var A=new Array(512);h(A);var s=new Array(256);h(s);var ne=new Array(O);h(ne);var T,Y,ie,K=new Array(p);function ce(t,l,y,Z,b){this.static_tree=t,this.extra_bits=l,this.extra_base=y,this.elems=Z,this.max_length=b,this.has_stree=t&&t.length}function U(t,l){this.dyn_tree=t,this.max_code=0,this.stat_desc=l}function N(t){return t<256?A[t]:A[256+(t>>>7)]}function Ce(t,l){t.pending_buf[t.pending++]=255&l,t.pending_buf[t.pending++]=l>>>8&255}function ge(t,l,y){t.bi_valid>m-y?(t.bi_buf|=l<<t.bi_valid&65535,Ce(t,t.bi_buf),t.bi_buf=l>>m-t.bi_valid,t.bi_valid+=y-m):(t.bi_buf|=l<<t.bi_valid&65535,t.bi_valid+=y)}function he(t,l,y){ge(t,y[2*l],y[2*l+1])}function it(t,l){for(var y=0;y|=1&t,t>>>=1,y<<=1,0<--l;);return y>>>1}function dt(t,l,y){var Z,b,te=new Array(_+1),de=0;for(Z=1;Z<=_;Z++)te[Z]=de=de+y[Z-1]<<1;for(b=0;b<=l;b++){var q=t[2*b+1];q!==0&&(t[2*b]=it(te[q]++,q))}}function Ue(t){var l;for(l=0;l<S;l++)t.dyn_ltree[2*l]=0;for(l=0;l<p;l++)t.dyn_dtree[2*l]=0;for(l=0;l<E;l++)t.bl_tree[2*l]=0;t.dyn_ltree[2*D]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function tt(t){8<t.bi_valid?Ce(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function gt(t,l,y,Z){var b=2*l,te=2*y;return t[b]<t[te]||t[b]===t[te]&&Z[l]<=Z[y]}function ht(t,l,y){for(var Z=t.heap[y],b=y<<1;b<=t.heap_len&&(b<t.heap_len&>(l,t.heap[b+1],t.heap[b],t.depth)&&b++,!gt(l,Z,t.heap[b],t.depth));)t.heap[y]=t.heap[b],y=b,b<<=1;t.heap[y]=Z}function At(t,l,y){var Z,b,te,de,q=0;if(t.last_lit!==0)for(;Z=t.pending_buf[t.d_buf+2*q]<<8|t.pending_buf[t.d_buf+2*q+1],b=t.pending_buf[t.l_buf+q],q++,Z===0?he(t,b,l):(he(t,(te=s[b])+g+1,l),(de=ee[te])!==0&&ge(t,b-=ne[te],de),he(t,te=N(--Z),y),(de=Q[te])!==0&&ge(t,Z-=K[te],de)),q<t.last_lit;);he(t,D,l)}function ft(t,l){var y,Z,b,te=l.dyn_tree,de=l.stat_desc.static_tree,q=l.stat_desc.has_stree,_e=l.stat_desc.elems,Re=-1;for(t.heap_len=0,t.heap_max=f,y=0;y<_e;y++)te[2*y]!==0?(t.heap[++t.heap_len]=Re=y,t.depth[y]=0):te[2*y+1]=0;for(;t.heap_len<2;)te[2*(b=t.heap[++t.heap_len]=Re<2?++Re:0)]=1,t.depth[b]=0,t.opt_len--,q&&(t.static_len-=de[2*b+1]);for(l.max_code=Re,y=t.heap_len>>1;1<=y;y--)ht(t,te,y);for(b=_e;y=t.heap[1],t.heap[1]=t.heap[t.heap_len--],ht(t,te,1),Z=t.heap[1],t.heap[--t.heap_max]=y,t.heap[--t.heap_max]=Z,te[2*b]=te[2*y]+te[2*Z],t.depth[b]=(t.depth[y]>=t.depth[Z]?t.depth[y]:t.depth[Z])+1,te[2*y+1]=te[2*Z+1]=b,t.heap[1]=b++,ht(t,te,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(Ve,ot){var $t,Dt,at,Je,je,St,mt=ot.dyn_tree,Ot=ot.max_code,Kt=ot.stat_desc.static_tree,qt=ot.stat_desc.has_stree,It=ot.stat_desc.extra_bits,Te=ot.stat_desc.extra_base,Lt=ot.stat_desc.max_length,pe=0;for(Je=0;Je<=_;Je++)Ve.bl_count[Je]=0;for(mt[2*Ve.heap[Ve.heap_max]+1]=0,$t=Ve.heap_max+1;$t<f;$t++)Lt<(Je=mt[2*mt[2*(Dt=Ve.heap[$t])+1]+1]+1)&&(Je=Lt,pe++),mt[2*Dt+1]=Je,Ot<Dt||(Ve.bl_count[Je]++,je=0,Te<=Dt&&(je=It[Dt-Te]),St=mt[2*Dt],Ve.opt_len+=St*(Je+je),qt&&(Ve.static_len+=St*(Kt[2*Dt+1]+je)));if(pe!==0){do{for(Je=Lt-1;Ve.bl_count[Je]===0;)Je--;Ve.bl_count[Je]--,Ve.bl_count[Je+1]+=2,Ve.bl_count[Lt]--,pe-=2}while(0<pe);for(Je=Lt;Je!==0;Je--)for(Dt=Ve.bl_count[Je];Dt!==0;)Ot<(at=Ve.heap[--$t])||(mt[2*at+1]!==Je&&(Ve.opt_len+=(Je-mt[2*at+1])*mt[2*at],mt[2*at+1]=Je),Dt--)}}(t,l),dt(te,Re,t.bl_count)}function r(t,l,y){var Z,b,te=-1,de=l[1],q=0,_e=7,Re=4;for(de===0&&(_e=138,Re=3),l[2*(y+1)+1]=65535,Z=0;Z<=y;Z++)b=de,de=l[2*(Z+1)+1],++q<_e&&b===de||(q<Re?t.bl_tree[2*b]+=q:b!==0?(b!==te&&t.bl_tree[2*b]++,t.bl_tree[2*M]++):q<=10?t.bl_tree[2*P]++:t.bl_tree[2*le]++,te=b,Re=(q=0)===de?(_e=138,3):b===de?(_e=6,3):(_e=7,4))}function re(t,l,y){var Z,b,te=-1,de=l[1],q=0,_e=7,Re=4;for(de===0&&(_e=138,Re=3),Z=0;Z<=y;Z++)if(b=de,de=l[2*(Z+1)+1],!(++q<_e&&b===de)){if(q<Re)for(;he(t,b,t.bl_tree),--q!=0;);else b!==0?(b!==te&&(he(t,b,t.bl_tree),q--),he(t,M,t.bl_tree),ge(t,q-3,2)):q<=10?(he(t,P,t.bl_tree),ge(t,q-3,3)):(he(t,le,t.bl_tree),ge(t,q-11,7));te=b,Re=(q=0)===de?(_e=138,3):b===de?(_e=6,3):(_e=7,4)}}h(K);var o=!1;function e(t,l,y,Z){ge(t,(x<<1)+(Z?1:0),3),function(b,te,de,q){tt(b),q&&(Ce(b,de),Ce(b,~de)),u.arraySet(b.pending_buf,b.window,te,de,b.pending),b.pending+=de}(t,l,y,!0)}k._tr_init=function(t){o||(function(){var l,y,Z,b,te,de=new Array(_+1);for(b=Z=0;b<O-1;b++)for(ne[b]=Z,l=0;l<1<<ee[b];l++)s[Z++]=b;for(s[Z-1]=b,b=te=0;b<16;b++)for(K[b]=te,l=0;l<1<<Q[b];l++)A[te++]=b;for(te>>=7;b<p;b++)for(K[b]=te<<7,l=0;l<1<<Q[b]-7;l++)A[256+te++]=b;for(y=0;y<=_;y++)de[y]=0;for(l=0;l<=143;)W[2*l+1]=8,l++,de[8]++;for(;l<=255;)W[2*l+1]=9,l++,de[9]++;for(;l<=279;)W[2*l+1]=7,l++,de[7]++;for(;l<=287;)W[2*l+1]=8,l++,de[8]++;for(dt(W,S+1,de),l=0;l<p;l++)C[2*l+1]=5,C[2*l]=it(l,5);T=new ce(W,ee,g+1,S,_),Y=new ce(C,Q,0,p,_),ie=new ce(new Array(0),j,0,E,w)}(),o=!0),t.l_desc=new U(t.dyn_ltree,T),t.d_desc=new U(t.dyn_dtree,Y),t.bl_desc=new U(t.bl_tree,ie),t.bi_buf=0,t.bi_valid=0,Ue(t)},k._tr_stored_block=e,k._tr_flush_block=function(t,l,y,Z){var b,te,de=0;0<t.level?(t.strm.data_type===2&&(t.strm.data_type=function(q){var _e,Re=4093624447;for(_e=0;_e<=31;_e++,Re>>>=1)if(1&Re&&q.dyn_ltree[2*_e]!==0)return v;if(q.dyn_ltree[18]!==0||q.dyn_ltree[20]!==0||q.dyn_ltree[26]!==0)return i;for(_e=32;_e<g;_e++)if(q.dyn_ltree[2*_e]!==0)return i;return v}(t)),ft(t,t.l_desc),ft(t,t.d_desc),de=function(q){var _e;for(r(q,q.dyn_ltree,q.l_desc.max_code),r(q,q.dyn_dtree,q.d_desc.max_code),ft(q,q.bl_desc),_e=E-1;3<=_e&&q.bl_tree[2*J[_e]+1]===0;_e--);return q.opt_len+=3*(_e+1)+5+5+4,_e}(t),b=t.opt_len+3+7>>>3,(te=t.static_len+3+7>>>3)<=b&&(b=te)):b=te=y+5,y+4<=b&&l!==-1?e(t,l,y,Z):t.strategy===4||te===b?(ge(t,2+(Z?1:0),3),At(t,W,C)):(ge(t,4+(Z?1:0),3),function(q,_e,Re,Ve){var ot;for(ge(q,_e-257,5),ge(q,Re-1,5),ge(q,Ve-4,4),ot=0;ot<Ve;ot++)ge(q,q.bl_tree[2*J[ot]+1],3);re(q,q.dyn_ltree,_e-1),re(q,q.dyn_dtree,Re-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,de+1),At(t,t.dyn_ltree,t.dyn_dtree)),Ue(t),Z&&tt(t)},k._tr_tally=function(t,l,y){return t.pending_buf[t.d_buf+2*t.last_lit]=l>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&l,t.pending_buf[t.l_buf+t.last_lit]=255&y,t.last_lit++,l===0?t.dyn_ltree[2*y]++:(t.matches++,l--,t.dyn_ltree[2*(s[y]+g+1)]++,t.dyn_dtree[2*N(l)]++),t.last_lit===t.lit_bufsize-1},k._tr_align=function(t){ge(t,2,3),he(t,D,W),function(l){l.bi_valid===16?(Ce(l,l.bi_buf),l.bi_buf=0,l.bi_valid=0):8<=l.bi_valid&&(l.pending_buf[l.pending++]=255&l.bi_buf,l.bi_buf>>=8,l.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(d,G,k){"use strict";G.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(d,G,k){(function(u){(function(v,i){"use strict";if(!v.setImmediate){var h,x,O,g,S=1,p={},E=!1,f=v.document,_=Object.getPrototypeOf&&Object.getPrototypeOf(v);_=_&&_.setTimeout?_:v,h={}.toString.call(v.process)==="[object process]"?function(M){Pe.nextTick(function(){w(M)})}:function(){if(v.postMessage&&!v.importScripts){var M=!0,P=v.onmessage;return v.onmessage=function(){M=!1},v.postMessage("","*"),v.onmessage=P,M}}()?(g="setImmediate$"+Math.random()+"$",v.addEventListener?v.addEventListener("message",D,!1):v.attachEvent("onmessage",D),function(M){v.postMessage(g+M,"*")}):v.MessageChannel?((O=new MessageChannel).port1.onmessage=function(M){w(M.data)},function(M){O.port2.postMessage(M)}):f&&"onreadystatechange"in f.createElement("script")?(x=f.documentElement,function(M){var P=f.createElement("script");P.onreadystatechange=function(){w(M),P.onreadystatechange=null,x.removeChild(P),P=null},x.appendChild(P)}):function(M){setTimeout(w,0,M)},_.setImmediate=function(M){typeof M!="function"&&(M=new Function(""+M));for(var P=new Array(arguments.length-1),le=0;le<P.length;le++)P[le]=arguments[le+1];var ee={callback:M,args:P};return p[S]=ee,h(S),S++},_.clearImmediate=m}function m(M){delete p[M]}function w(M){if(E)setTimeout(w,0,M);else{var P=p[M];if(P){E=!0;try{(function(le){var ee=le.callback,Q=le.args;switch(Q.length){case 0:ee();break;case 1:ee(Q[0]);break;case 2:ee(Q[0],Q[1]);break;case 3:ee(Q[0],Q[1],Q[2]);break;default:ee.apply(i,Q)}})(P)}finally{m(M),E=!1}}}}function D(M){M.source===v&&typeof M.data=="string"&&M.data.indexOf(g)===0&&w(+M.data.slice(g.length))}})(typeof self=="undefined"?u===void 0?this:u:self)}).call(this,typeof V.g!="undefined"?V.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},71169:function(Jt){var zt=function(V){return V.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}).toLowerCase()};Jt.exports=zt}}]);
|