1 |
- !function(){var e=document.createElement("style");e.innerHTML='._itemWrap_15s53_1{width:calc(100% - .8rem);height:3.22667rem;background:#ffffff;border-radius:.26667rem;margin:0 .4rem .32rem}._itemWrap_15s53_1 ._itemTop_15s53_8{padding:.21333rem .4rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-bottom:.02667rem solid #f2f2f2}._itemWrap_15s53_1 ._itemTop_15s53_8 ._itemTopLeft_15s53_16{display:flex;flex-direction:row;align-items:center}._itemWrap_15s53_1 ._itemTop_15s53_8 ._itemTopLeft_15s53_16 ._headIcon_15s53_21{width:.8rem;height:.8rem;border-radius:50%;overflow:hidden;margin-right:.32rem}._itemWrap_15s53_1 ._itemTop_15s53_8 ._itemTopLeft_15s53_16 ._headIcon_15s53_21 img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}._itemWrap_15s53_1 ._itemTop_15s53_8 ._itemTopLeft_15s53_16 ._name_15s53_33{font-size:.42667rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#333;line-height:.8rem;margin-right:.26667rem}._itemWrap_15s53_1 ._itemTop_15s53_8 ._itemTopLeft_15s53_16 ._tag_15s53_41{padding:0;min-width:1.06667rem;background:#ffe7da;display:inline-block;border-radius:.10667rem;font-size:.32rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#f67146;text-align:center;line-height:.50667rem}._itemWrap_15s53_1 ._itemTop_15s53_8 ._itemTopRight_15s53_54{width:.64rem;height:.64rem;padding:.05333rem}._itemWrap_15s53_1 ._itemTop_15s53_8 ._itemTopRight_15s53_54 img{width:100%;height:100%}._itemWrap_15s53_1 ._itemBottom_15s53_63{padding:.26667rem;display:flex;flex-direction:row;align-items:center;text-align:center}._itemWrap_15s53_1 ._itemBottom_15s53_63 ._msgMain_15s53_70{font-size:.69333rem;font-family:DINAlternate-Bold,DINAlternate;font-weight:700;color:#f67146;line-height:.8rem}._itemWrap_15s53_1 ._itemBottom_15s53_63 ._msgMain_15s53_70 span{height:.45333rem;font-size:.32rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#777;line-height:.45333rem}._itemWrap_15s53_1 ._itemBottom_15s53_63 ._msgsub_15s53_85{margin-top:.10667rem;height:.53333rem;font-size:.37333rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:.53333rem}._itemWrap_15s53_1 ._itemBottom_15s53_63 ._itemBottomLeft_15s53_94{width:50%;position:relative}._itemWrap_15s53_1 ._itemBottom_15s53_63 ._itemBottomLeft_15s53_94:after{content:"";width:.02667rem;height:.53333rem;background:#f2f2f2;border-radius:.02667rem;right:0;top:50%;margin-top:-.26667rem;position:absolute}._itemWrap_15s53_1 ._itemBottom_15s53_63 ._itemBottomRight_15s53_109{width:50%;position:relative}._itemWrap_15s53_1 ._itemBottom_15s53_63 ._itemBottomRight_15s53_109 ._arrow_15s53_113{position:absolute;bottom:.37333rem;right:.4rem;font-size:.42667rem;color:#d8d8d8}.bottomSheet .van-action-sheet__description{padding:0!important}.bottomSheet .van-action-sheet__description:after{border:none!important}._bottomTitle_15s53_126{padding:.4rem .4rem .53333rem;text-align:left;display:flex;flex-direction:row;align-items:center;justify-content:space-between;height:.58667rem;font-size:.42667rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#333;line-height:.58667rem}._bottomTitle_15s53_126 ._bottomTitleLeft_15s53_140{display:flex;flex-direction:row;align-items:center}._bottomTitle_15s53_126 ._bottomTitleLeft_15s53_140 span{width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem;display:inline-block;margin-right:.16rem}._bottomConent_15s53_153{padding:.53333rem .4rem 1.52rem;display:flex;flex-direction:row;align-items:center}._bottomConent_15s53_153 ._bottomImgWrap_15s53_159{width:1.25333rem;height:1.25333rem;margin-bottom:.16rem}._bottomConent_15s53_153 ._bottomImgWrap_15s53_159 img{width:100%;height:100%}._bottomConent_15s53_153 ._bottomConentLeft_15s53_168,._bottomConent_15s53_153 ._bottomConentRight_15s53_169{width:50%;display:flex;flex-direction:column;align-items:center}._recordItem_15s53_175{width:auto;margin:0 .34667rem .32rem;padding:.53333rem .32rem;border-radius:.26667rem}._recordItem_15s53_175 ._imgContainer_15s53_181{position:relative;margin-right:.4rem;box-sizing:border-box}._recordItem_15s53_175 ._imgContainer_15s53_181 i{width:.48rem;height:.4rem;position:absolute;right:-.10667rem;top:.93333rem;background:url(data:image/png;base64,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) no-repeat center center;background-size:contain}._recordItem_15s53_175 ._img_15s53_181{width:1.33333rem;height:1.33333rem;border-radius:50%;overflow:hidden}._recordItem_15s53_175 ._userInfo_15s53_201{display:flex;align-items:center}._recordItem_15s53_175 ._userInfo_15s53_201 ._userItem_15s53_205{flex:1;font-size:.32rem;color:#777}._recordItem_15s53_175 ._userInfo_15s53_201 ._topText_15s53_210{font-size:.42667rem;color:#333;line-height:.58667rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:1.86667rem}._recordItem_15s53_175 ._userInfo_15s53_201 ._topText_15s53_210 span{font-weight:700;font-family:DINA}._chioseWrap_1uj41_1{display:flex;flex-direction:row;align-items:center;justify-content:space-around;background-color:#f8f8f8;font-size:.37333rem}._chioseWrap_1uj41_1 ._searchBandWrap_1uj41_9{max-width:25%}._chioseWrap_1uj41_1 ._searchBand_1uj41_9{display:flex;flex-direction:row;align-items:center}._chioseWrap_1uj41_1 ._searchBand_1uj41_9 p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._exerciseRecord_1uj41_22 .van-haptics-feedback:active{opacity:1}._searchMore_1uj41_25{line-height:1.2!important}._searchMore_1uj41_25 .van-dropdown-item{z-index:99}._searchMore_1uj41_25 .van-dropdown-menu__bar{box-shadow:none;height:var(--van-nav-bar-height)}._searchMore_1uj41_25 .van-dropdown-item__content{border-radius:0 0 .32rem .32rem;max-height:100%}._searchMore_1uj41_25 .van-button+.van-button{margin-left:.4rem}._searchMore_1uj41_25 .van-dropdown-menu__title:after{border-color:transparent transparent #aaaaaa #aaaaaa}._searchMore_1uj41_25 .van-dropdown-menu__title--active{color:#f67146}._searchMore_1uj41_25 .van-dropdown-menu__title--active:after{border-color:transparent transparent currentColor currentColor}._searchMore_1uj41_25 ._searchContainer_1uj41_51{max-height:10.66667rem;overflow-y:auto;box-sizing:border-box;padding-bottom:.42667rem;background:var(--van-popup-background);transition:var(--van-popup-transition)}._searchMore_1uj41_25 ._searchMoreGroup_1uj41_59{display:flex;align-items:center;padding:.48rem .34667rem;background-color:#fff}._searchMore_1uj41_25 ._searchTitle_1uj41_65{padding:.4rem .34667rem .05333rem;font-size:.4rem;font-weight:600;color:#333;line-height:.56rem;text-align:left}._searchMore_1uj41_25 ._searchTypeGroup_1uj41_73{display:flex;align-items:center;padding:0 .34667rem;flex-wrap:wrap;justify-content:space-between}._searchMore_1uj41_25 ._searchTypeFlex_1uj41_80 ._searchTypeItem_1uj41_80{width:49%}._searchMore_1uj41_25 ._searchTypeFlex1_1uj41_83{justify-content:flex-start}._searchMore_1uj41_25 ._searchTypeFlex1_1uj41_83 ._searchTypeItem_1uj41_80{width:31%}._searchMore_1uj41_25 ._searchTypeFlex1_1uj41_83 ._searchTypeItem_1uj41_80:nth-child(3n + 1){margin-right:2.333%}._searchMore_1uj41_25 ._searchTypeFlex1_1uj41_83 ._searchTypeItem_1uj41_80:nth-child(3n + 3){margin-left:2.333%}._searchMore_1uj41_25 ._searchTypeFlex2_1uj41_95 ._searchTypeItem_1uj41_80{width:45%}._searchMore_1uj41_25 ._searchTypeItemLine_1uj41_98{margin-top:.26667rem;width:.42667rem;height:.02667rem;background:#d8d8d8}._searchMore_1uj41_25 ._searchTypeItem_1uj41_80{box-sizing:border-box;margin-top:.26667rem;height:.85333rem;line-height:.85333rem;background:#f6f6f6;border:.02667rem solid #f6f6f6;border-radius:.42667rem;font-size:.34667rem;color:#333;padding:0 .18667rem;text-align:center}._searchMore_1uj41_25 ._searchTypeItem_1uj41_80._is-active_1uj41_117{background:#fff5f2;border:.02667rem solid #ffb097;color:#f67146}._searchPreview_1uj41_122{margin:0 .34667rem;padding-bottom:.32rem;white-space:nowrap;overflow-y:auto}._searchPreview_1uj41_122 ._searchPreviewItem_1uj41_128{display:inline-flex;align-items:center;line-height:.74667rem;background:#f6f6f6;border-radius:.42667rem;margin-right:.21333rem;padding:.02667rem .26667rem 0;font-size:.34667rem;color:#333}._searchPreview_1uj41_122 ._searchPreviewItem_1uj41_128:last-child{margin-right:0}._searchPreview_1uj41_122 ._searchPreviewItem_1uj41_128 ._cross_1uj41_142{font-size:.21333rem;margin-left:.16rem;color:#aaa}\n',document.head.appendChild(e),System.register(["./index-legacy.eb062188.js","./index-legacy.a530d593.js","./index-legacy.ad813f4d.js","./isBetween-legacy.1e441451.js","./index-legacy.d64e5695.js","./student-icon-legacy.91b6689d.js","./index-legacy.918b8c74.js","./index-legacy.fecc738b.js","./index-legacy.8d528f30.js","./index-legacy.fad72574.js","./index-legacy.b13fd1c4.js","./index-legacy.3a3e070a.js","./use-tab-status-legacy.91417466.js","./index-legacy.ac7c51db.js","./index-legacy.fab451f1.js","./index-legacy.10d8486a.js","./utils-legacy.6e8de97c.js","./Picker-legacy.95f03705.js"],(function(e){"use strict";var t,r,a,i,o,s,n,_,c,m,l,d,h,u,g,p,f,y,v,T,b,w,j,x,I,C,A,M,k,S,B;return{setters:[function(e){t=e.d,r=e.ag,a=e.R,i=e.Z,o=e.c,s=e.q,n=e.F,_=e.g,c=e.ah,m=e.r,l=e.ai,d=e.$,h=e.m,u=e.o,g=e.aj,p=e.B,f=e._,y=e.a5,v=e.ak,T=e.al},function(e){b=e.O},function(e){w=e.O},function(e){j=e.i},function(e){x=e.O},function(e){I=e.s},function(e){C=e.C},function(e){A=e.I},function(e){M=e.D,k=e.a},function(e){S=e.L},function(e){B=e.C},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var N={itemWrap:"_itemWrap_15s53_1",itemTop:"_itemTop_15s53_8",itemTopLeft:"_itemTopLeft_15s53_16",headIcon:"_headIcon_15s53_21",name:"_name_15s53_33",tag:"_tag_15s53_41",itemTopRight:"_itemTopRight_15s53_54",itemBottom:"_itemBottom_15s53_63",msgMain:"_msgMain_15s53_70",msgsub:"_msgsub_15s53_85",itemBottomLeft:"_itemBottomLeft_15s53_94",itemBottomRight:"_itemBottomRight_15s53_109",arrow:"_arrow_15s53_113",bottomTitle:"_bottomTitle_15s53_126",bottomTitleLeft:"_bottomTitleLeft_15s53_140",bottomConent:"_bottomConent_15s53_153",bottomImgWrap:"_bottomImgWrap_15s53_159",bottomConentLeft:"_bottomConentLeft_15s53_168",bottomConentRight:"_bottomConentRight_15s53_169",recordItem:"_recordItem_15s53_175",imgContainer:"_imgContainer_15s53_181",img:"_img_15s53_181",userInfo:"_userInfo_15s53_201",userItem:"_userItem_15s53_205",topText:"_topText_15s53_210"};const D=a({});var Y=t({props:["item","forms"],name:"student-item",setup(e){const t=r();a(!1),i((()=>e.forms),(e=>{D.value=e}),{deep:!0});const _=()=>{console.log(D.value.practiceMonth,D.value.practiceMonthName),console.log(e.item),t.push({path:"/exercis-detail",query:{id:e.item.userId,practiceMonth:D.value.practiceMonth,practiceMonthName:D.value.practiceMonthName,clientType:"STUDENT"}})};return()=>o(n,null,[o(C,{isLink:!0,class:N.recordItem,center:!0,onClick:_},{icon:()=>o("div",{class:N.imgContainer},[o(A,{class:N.img,src:e.item.avatar?e.item.avatar:I,alt:""},null),e.item.memberFlag?o("i",{class:N.iconMember},null):""]),title:()=>o("div",{class:N.userInfo},[o("div",{class:N.userItem},[o("p",{class:N.topText,style:"font-weight: bold;"},[e.item.nickname]),o("p",{class:N.bottomText},[e.item.subjectName?e.item.subjectName:"暂无声部"])]),o("div",{class:N.userItem},[o("p",{class:N.topText},[o("span",{style:{color:e.item.standardFlag?"#333":"#F44541"}},[e.item.trainingTime?e.item.trainingTime:0]),s("分钟")]),o("p",{class:N.bottomText},[s("练习时长")])]),o("div",{class:N.userItem,style:{paddingLeft:"10px"}},[o("p",{class:N.topText},[o("span",null,[e.item.trainingDays?e.item.trainingDays:0]),s("天")]),o("p",{class:N.bottomText},[s("练习天数")])])])})])}});var P={chioseWrap:"_chioseWrap_1uj41_1",searchBandWrap:"_searchBandWrap_1uj41_9",searchBand:"_searchBand_1uj41_9",exerciseRecord:"_exerciseRecord_1uj41_22",searchMore:"_searchMore_1uj41_25",searchContainer:"_searchContainer_1uj41_51",searchMoreGroup:"_searchMoreGroup_1uj41_59",searchTitle:"_searchTitle_1uj41_65",searchTypeGroup:"_searchTypeGroup_1uj41_73",searchTypeFlex:"_searchTypeFlex_1uj41_80",searchTypeItem:"_searchTypeItem_1uj41_80",searchTypeFlex1:"_searchTypeFlex1_1uj41_83",searchTypeFlex2:"_searchTypeFlex2_1uj41_95",searchTypeItemLine:"_searchTypeItemLine_1uj41_98","is-active":"_is-active_1uj41_117",searchPreview:"_searchPreview_1uj41_122",searchPreviewItem:"_searchPreviewItem_1uj41_128",cross:"_cross_1uj41_142"};l.extend(j);e("default",t({name:"exercise-record",setup(){const e=a(_.platformApi);r();const t=c(),i=m({showSearchStatus:!0,showPopoverTime:!1,actions:[],subjects:[],listState:{dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:0},isClick:!1}),j=m({startTime:l().day(1).format("YYYY-MM-DD"),endTime:l().day(7).format("YYYY-MM-DD"),orchestraId:"",orchestraName:"",subjectId:"",subjectName:"",sortType:"",sortTypeName:"",keyword:"",page:1,rows:20}),I=a([]),C=async()=>{try{if(i.isClick)return;i.isClick=!0,i.listState.refreshing&&(j.page=1,I.value=[],i.listState.refreshing=!1);const{endTime:t,startTime:r,...a}=j,o=await h.post(`${e.value}/musicPracticeRecord/${"TEACHER"===_.platformType?"teacher":"school"}/studentPracticeThisWeek`,{data:{...a,endTime:t+" 23:59:59",startTime:r+" 00:00:00"}});i.listState.loading=!1,i.listState.refreshing=!1;const s=o.data||{};if(I.value.length>0&&1===s.current)return;I.value=I.value.concat(s.rows||[]),i.listState.finished=s.current>=s.pages,j.page=s.current+1,i.listState.dataShow=I.value.length>0,i.isClick=!1}catch{i.listState.dataShow=!1,i.listState.finished=!0,i.listState.refreshing=!1,i.isClick=!1}};d((async()=>{await N(),await A(),await C()}));const A=async()=>{try{const t=await h.post(`${e.value}/orchestra/page`,{data:{page:1,rows:9999,status:"DONE"}});i.actions=t.data.rows.map((e=>({name:e.name,value:e.id})))}catch(t){const e=t.message;u(e)}},N=async()=>{try{const r=await h.post(`${e.value}/subjectBasicConfig/page`,{data:{page:1,rows:9999}});i.subjects=r.data.rows.map((e=>(t.query.subjectId==e.subjectId&&(j.subjectId=e.subjectId,j.subjectName=e.subjectName),{name:e.subjectName,value:e.subjectId})))}catch(r){const e=r.message;u(e)}},D=()=>{i.listState.finished=!1,i.listState.loading=!0,console.log(3),C()},R=e=>{if(e.length>11){return e.substring(0,6)+"..."+e.substring(e.length-5,e.length)}return e},W=a(),F=a(),L=()=>{var e;j.startTime=l().day(1).format("YYYY-MM-DD"),j.endTime=l().day(7).format("YYYY-MM-DD"),j.orchestraId="",j.orchestraName="",j.subjectId="",j.subjectName="",j.sortType="",j.sortTypeName="",null===(e=F.value)||void 0===e||e.toggle(),i.listState.refreshing=!0,console.log(4),C()},U=()=>{var e;null===(e=F.value)||void 0===e||e.toggle(),i.listState.refreshing=!0,console.log(5),C()};return()=>{let e;return o("div",{class:[i.listState.dataShow?"":"emptyRootContainer",P.exerciseRecord]},[o(w,{position:"top",background:"#F8F8F8",onGetHeight:e=>{document.documentElement.style.setProperty("--header-height",e+"px")}},{default:()=>[o(g,{border:!1},{right:()=>o(M,{class:P.searchMore,closeOnClickOverlay:!1,closeOnClickOutside:!1,ref:W},{default:()=>[o(k,{title:"筛选",modelValue:i.showSearchStatus,"onUpdate:modelValue":e=>i.showSearchStatus=e,ref:F},{default:()=>[o("div",{class:P.searchContainer},[i.actions.length>0&&o(n,null,[o("div",{class:P.searchTitle},[s("乐团")]),o("div",{class:[P.searchTypeGroup,P.searchTypeFlex]},[i.actions.map((e=>o("div",{class:[P.searchTypeItem,e.value===j.orchestraId&&P["is-active"]],onClick:()=>{return t=e,j.orchestraId=t.value,void(j.orchestraName=t.name);var t}},[R(e.name)])))])]),o("div",{class:P.searchTitle},[s("时间段")]),o("div",{class:[P.searchTypeGroup,P.searchTypeFlex2]},[o("div",{class:P.searchTypeItem,onClick:()=>i.showPopoverTime=!0},[j.startTime]),o("div",{class:P.searchTypeItemLine,onClick:()=>i.showPopoverTime=!0},null),o("div",{class:P.searchTypeItem,onClick:()=>i.showPopoverTime=!0},[j.endTime])]),o("div",{class:P.searchTitle},[s("声部")]),o("div",{class:[P.searchTypeGroup,P.searchTypeFlex1]},[i.subjects.map((e=>o("div",{class:[P.searchTypeItem,e.value===j.subjectId&&P["is-active"]],onClick:()=>{return t=e,j.subjectId=t.value,void(j.subjectName=t.name);var t}},[e.name])))]),o("div",{class:P.searchTitle},[s("排序方式")]),o("div",{class:[P.searchTypeGroup,P.searchTypeFlex]},[[{name:"按时长",value:"PRACTICE_TIMES"},{name:"按天数",value:"PRACTICE_DAY"}].map((e=>o("div",{class:[P.searchTypeItem,j.sortType===e.value&&P["is-active"]],onClick:()=>{return t=e,j.sortType=t.value,void(j.sortTypeName=t.name);var t}},[e.name])))])]),o("div",{class:[P.searchMoreGroup,"van-hairline--top"]},[o(p,{type:"default",block:!0,round:!0,onClick:L},{default:()=>[s("重置")]}),o(p,{type:"primary",block:!0,round:!0,onClick:U},{default:()=>[s("查询")]})])]})]})}),o("div",{style:{backgroundColor:"#fff"}},[o(b,{placeholder:"请输入学员姓名",class:P.recordSearch,onSearch:e=>{j.keyword=e,i.listState.refreshing=!0,console.log(6),C()}},null),o("div",{class:P.searchPreview},[o("div",{class:P.searchPreviewItem,onClick:()=>{var e;null===(e=F.value)||void 0===e||e.toggle(),f((()=>{document.querySelectorAll(".van-dropdown-item--down")[0].style.top=`calc(var(--van-nav-bar-height) + ${_.navBarHeight}px`}))}},[j.startTime,s("~"),j.endTime]),j.orchestraId&&o("div",{class:P.searchPreviewItem},[R(j.orchestraName),o(y,{name:"cross",class:P.cross,onClick:e=>{j.orchestraId="",j.orchestraName="",e.stopPropagation(),i.listState.refreshing=!0,console.log(8),C()}},null)]),j.subjectId&&o("div",{class:P.searchPreviewItem},[j.subjectName,o(y,{name:"cross",class:P.cross,onClick:e=>{j.subjectId="",j.subjectName="",e.stopPropagation(),i.listState.refreshing=!0,console.log(2),C()}},null)]),j.sortType&&o("div",{class:P.searchPreviewItem},[j.sortTypeName,o(y,{name:"cross",class:P.cross,onClick:e=>{j.sortType="",j.sortTypeName="",e.stopPropagation(),i.listState.refreshing=!0,console.log(1),C()}},null)])])])]}),i.listState.dataShow?o(x,{modelValue:i.listState.refreshing,"onUpdate:modelValue":e=>i.listState.refreshing=e,onRefresh:D,style:"min-height: calc(100vh - var(--header-height))"},{default:()=>{return[o(S,{finished:i.listState.finished,style:{paddingTop:"12px"},finishedText:" ",onLoad:C,immediateCheck:!1},(t=e=I.value.map((e=>o(Y,{item:e,forms:j},null))),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!T(t)?e:{default:()=>[e]}))];var t}}):o(v,{tips:"暂无练习记录"},null),o(B,{show:i.showPopoverTime,"onUpdate:show":e=>i.showPopoverTime=e,firstDayOfWeek:1,showConfirm:!1,type:"range",maxRange:7,minDate:new Date("2023-02-27"),defaultDate:[l(j.startTime).toDate(),l(j.endTime).toDate()],style:{height:"70%"},onSelect:e=>{if(j.startTime="",j.endTime="",!l(e[0]).isBetween(l(j.startTime),l(j.endTime))){const t=l(e[0]).day();0===t?(j.startTime=l(e[0]).subtract(6,"day").format("YYYY-MM-DD"),j.endTime=l(e[0]).format("YYYY-MM-DD")):1===t?(j.startTime=l(e[0]).format("YYYY-MM-DD"),j.endTime=l(e[0]).add(6,"day").format("YYYY-MM-DD")):(j.startTime=l(e[0]).subtract(t-1,"day").format("YYYY-MM-DD"),j.endTime=l(e[0]).add(7-t,"day").format("YYYY-MM-DD"))}i.showPopoverTime=!1}},null)])}}}))}}}))}();
|