iking-web-ui-pro 0.2.12 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -31,7 +31,7 @@
31
31
  v-if="item[propsField.children]?.length && item.show"\r
32
32
  @click="changeShow(item, index)"\r
33
33
  class="ikapprove icon-a-putongjiantoushouqi"\r
34
- ></i> `),(me=X[i.propsField.children])!=null&&me.length&&X.show?(u.openBlock(),u.createBlock(u.unref(sr),{key:1,class:"ikapprove",onClick:ie=>se(X,le),name:"iksvg_shouqi"},null,8,["onClick"])):u.createCommentVNode("v-if",!0)],14,Ene)]),u.createElementVNode("ul",{class:u.normalizeClass($(le))},[u.createElementVNode("div",{id:`children${le}`},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(X[i.propsField.children],(ie,G)=>(u.openBlock(),u.createElementBlock("li",{class:u.normalizeClass(L(le,G)),style:u.normalizeStyle(i.needClick?"cursor: pointer;":""),key:G,onClick:we=>z(ie,le+1+"-"+(G+1))},u.toDisplayString(ie.name),15,Ane))),128))],8,kne)],2)])}),128))]))}}),tbe="",Dne=or(Ls(Tne,[["__scopeId","data-v-240cff4f"]])),jF=i=>i%1===0?i.toString():i.toFixed(2),Nne=(i,a=2)=>{if(i===void 0)return"";if(i===0)return"0 B";const d=["B","KB","MB","GB","TB"],p=Math.floor(Math.log(i)/Math.log(1024));let v=i/Math.pow(1024,p);return(v%1===0?v.toFixed(a||0):v.toFixed(a))+" "+d[p]},N3=(i,a)=>a?a.startsWith("http")?a:`${i||location.origin}${a}`:"",obe="",TY=i=>({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",并行分支:"PARALLEL",子流程:"SUB_PROCESS",...i.defaultNodeType},defaultFile:{id:"id",parallelInstances:"parallelInstances",nodeId:"sortOrder",nodeType:"type",nodeTypeName:"name",approveStatus:"status",approveStatusName:"statusName",approveType:"approveType",multiExecutorType:"multiExecutorType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approvalCategory:"approvalCategory",isShowAdd:"initiatorSpecify",isShowAddCopy:"initiatorSpecifyCarbonCopy",executorEmpty:"executorEmpty",executorEmptyStrategy:"executorEmptyStrategy",reserveExecutorUsers:"reserveExecutorUsers",approvePersonList:"executorUsers",initiatorSpecifiedScope:"initiatorSpecifiedScope",initiatorSpecifiedScopeType:"initiatorSpecifiedScopeType",singleApproval:"singleApproval",originator:"username",...i.defaultFieldMap},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...i.statusWithoutApprover},multiple:!1,chooseType:[],statusOption:{发起:"INITIATE",等待:"WAIT",同意:"PASS",撤销:"REVOKE",拒绝:"REJECT",转交:"TRANSFER",加签:"APPEND",退回:"BACK",评论:"COMMENT",待执行:"WAITING",执行中:"RUNNING",...i.defaultStatus},listData:[]}),DY=(i,a,d)=>{let p="";switch(a){case i.nodeType.审批节点:d&&d.length==1?p="ikapprove-ziyuan":p="ikapprove-shenpi";break;case i.nodeType.办理节点:p="ikapprove-bianji";break;case i.nodeType.抄送节点:p="ikapprove-chaosong";break;case i.nodeType.并行分支:p="ikapprove-fenzhi";break;case i.nodeType.子流程:p="ikapprove-ziliucheng1";break;default:p="ikapprove-ziyuan"}return`ikapprove ${p}`},l7=i=>{const a=u.inject("loadUrl"),d=u.computed(()=>i.loadUrl||i.fileUrl||(a==null?void 0:a.value)),p=u.inject("uploadUrl"),v=u.computed(()=>i.action||i.uploadUrl||(p==null?void 0:p.value)),S=u.inject("token"),E=u.computed(()=>i.token||(S==null?void 0:S.value)),A=u.inject("onlyofficeConfig"),$=u.computed(()=>i.onlyofficeConfig||(A==null?void 0:A.value)),L=u.inject("userInfo"),z=u.computed(()=>i.userInfo||(L==null?void 0:L.value));return{cLoadUrl:d,cUploadUrl:v,cToken:E,cOnlyofficeConfig:$,cUserInfo:z}},ZF=i=>(u.pushScopeId("data-v-586207eb"),i=i(),u.popScopeId(),i),Rne={class:"approveProcess",id:"approveProcess"},One=["id"],Bne={class:"topBlock"},Mne={class:"left"},Ine={class:"nodeBg"},Pne=["src"],Fne={class:"right"},$ne={class:"topInfo"},Lne={key:0},Vne={key:0,class:"main-text"},Hne={class:"name"},zne={key:0},Une={key:0},Wne={key:1},jne=ZF(()=>u.createElementVNode("span",{class:"red",style:{margin:"0px 5px"}},"退回至",-1)),Zne={key:0},Gne={key:0},qne={key:1},Kne={key:1},Yne=ZF(()=>u.createElementVNode("div",{class:"main-text"},"抄送人员",-1)),Xne={class:"name"},Qne={key:0},Jne={style:{color:"#000"}},eoe={class:"blue",style:{"margin-left":"5px","font-size":"12px"}},toe={key:1},noe={key:0,class:"blue",style:{"font-size":"12px"}},ooe={key:1},soe={key:0,class:"blue",style:{"font-size":"12px"}},roe={key:1,class:"blue",style:{"font-size":"12px"}},aoe={class:"time"},loe={key:0},ioe={key:1},coe=["onClick"],uoe=["onClick"],doe={key:0,class:"opinion"},foe={key:0},moe={key:1},hoe=ZF(()=>u.createElementVNode("span",{class:"ik-text-primary"},"添加审批人",-1)),poe={style:{color:"var(--el-text-color-primary)","margin-left":"8px"}},goe={key:2,class:"annexImage"},boe={key:3,class:"approveList"},yoe={class:"nodeBg-list"},voe=["src"],Coe={key:1},woe={key:2,class:"ikapprove ikapprove-duihao2 green read"},_oe=["title"],Soe={key:0,class:"branch"},xoe={class:"branch-card"},Eoe={class:"branch-name"},koe={name:"IkingApprovalProcessDetail"},Aoe=u.defineComponent({...koe,props:{local:{type:Boolean,default:!1},defaultStatus:{type:Object,default:()=>({})},defaultNodeType:{type:Object,default:()=>({})},dataList:{type:Array,default:()=>[]},defaultFieldMap:{type:Object,default:()=>({})},returnNode:{type:Array,default:()=>[]},fileUrl:{type:String,default:""},kkUrl:{type:String,default:""},isOnlyOfficePreview:{type:Boolean,default:!1},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""}},emits:["preview"],setup(i,{emit:a}){const d=i,{cLoadUrl:p}=l7(d),v=u.reactive(TY(d));u.watch(()=>d.dataList,z=>{z&&(u.nextTick(()=>{v.listData=z}),setTimeout(()=>{d.returnNode.length&&S()},500))},{deep:!0}),u.onMounted(()=>{d.dataList.length&&(v.listData=d.dataList,setTimeout(()=>{d.returnNode.length&&S()},500))});const S=()=>{let z=null;if(d!=null&&d.returnNode)for(z of d==null?void 0:d.returnNode){if(isNaN(z[1]))return;let se=Array.from(new Array(z[1]+1).keys()).slice(z[0]);u.nextTick(()=>{E(se)})}},E=z=>{var me,ie,G;let se=document.createElement("div"),oe=document.getElementById("approveProcess"),Z=0,X=(me=document.getElementById(`${z[0]}`))==null?void 0:me.offsetWidth,le=(ie=document.getElementById(`${z[0]}`))==null?void 0:ie.offsetLeft,J=(G=document.getElementById(`${z[0]}`))==null?void 0:G.offsetTop;z.forEach(we=>{let wt=document.getElementById(`${we}`);Z+=wt.offsetHeight}),setTimeout(()=>{se.style.width=X+32+"px",se.style.height=Z+"px",se.style.background="#f9f9f9",se.style.position="absolute",se.style.top=J-16+"px",se.style.left=le-16+"px",se.style.zIndex=-1,oe==null||oe.appendChild(se)})},A=(z,se,oe)=>{var le,J;let Z=(le=v.listData)==null?void 0:le.findIndex(me=>me.lineType=="dashed"),X="";if(oe&&((J=oe[v.defaultFile.approvePersonList])==null?void 0:J.findIndex(ie=>ie[v.defaultFile.approveStatus]===v.statusOption.执行中))>-1)return"ikapprove ikapprove-dengdai orange";switch(z){case v.statusOption.发起:X="ikapprove-duihao2 green";break;case v.statusOption.执行中:X=Z==se?"ikapprove-dengdai orange":"";break;case v.statusOption.同意:X="ikapprove-duihao2 green";break;case v.statusOption.拒绝:X="ikapprove-jujue red";break;case v.statusOption.转交:X="ikapprove-zhuanjiao blue";break;case v.statusOption.加签:X="ikapprove-tianjia blue";break;case v.statusOption.退回:X="ikapprove-s_fanhui2 red";break;case v.statusOption.评论:X="ikapprove-pinglun1 blue";break}return`ikapprove ${X}`},$=(z,se)=>{z.show=!z.show;let oe=document.getElementById(`${z[v.defaultFile.nodeId]}`),Z=Array.from(oe==null?void 0:oe.getElementsByClassName("approveList"));for(let X of Z)X.style.display=se},L=z=>N3(p.value,z);return(z,se)=>{const oe=u.resolveComponent("el-image"),Z=u.resolveComponent("IkingApprovalProcessDetail");return u.openBlock(),u.createElementBlock("div",Rne,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(v.listData,(X,le)=>{var J,me,ie,G,we,wt,Ve,K,De,tt;return u.openBlock(),u.createElementBlock("div",{class:"approveBlock",id:X[v.defaultFile.nodeId],key:X[v.defaultFile.nodeId]},[u.createElementVNode("div",Bne,[u.createElementVNode("div",Mne,[u.createElementVNode("span",Ine,[u.createCommentVNode(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),((J=X[v.defaultFile.approvePersonList])==null?void 0:J.length)==1&&X[v.defaultFile.approvePersonList][0].userAvatar?(u.openBlock(),u.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"10px"},src:L(X[v.defaultFile.approvePersonList][0].userAvatar),alt:""},null,8,Pne)):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createCommentVNode(" 否则显示对应节点 "),u.createElementVNode("i",{class:u.normalizeClass(u.unref(DY)(v,X[v.defaultFile.nodeType],X[v.defaultFile.approvePersonList]))},null,2)],2112)),u.createCommentVNode(" 审批状态图标 "),u.createElementVNode("i",{class:u.normalizeClass(A(X[v.defaultFile.approveStatus],le,X))},null,2)])]),u.createElementVNode("div",Fne,[u.createElementVNode("div",$ne,[u.createElementVNode("div",null,[u.createCommentVNode(" 不是抄送节点 "),v.nodeType.抄送节点!==X[v.defaultFile.nodeType]?(u.openBlock(),u.createElementBlock("div",Lne,[u.createCommentVNode(" 撤销,评论不显示节点名称 "),X[v.defaultFile.approveStatus]!=v.statusOption.撤销&&X[v.defaultFile.approveStatus]!=v.statusOption.评论&&X[v.defaultFile.nodeType]!==v.nodeType.并行分支?(u.openBlock(),u.createElementBlock("div",Vne,u.toDisplayString(X[v.defaultFile.nodeTypeName]),1)):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 名字+审批状态 "),u.createElementVNode("div",Hne,[u.createCommentVNode(" 已审批节点文本 "),X[v.defaultFile.lineType]=="solid"?(u.openBlock(),u.createElementBlock("div",zne,[u.createElementVNode("span",{style:u.normalizeStyle({color:X[v.defaultFile.approveStatus]==v.statusOption.评论?"#000":""})},u.toDisplayString(X[v.defaultFile.originator]),5),u.createCommentVNode(" 发起,退回不显示状态 "),X[v.defaultFile.approveStatusName]&&X[v.defaultFile.approveStatus]!=v.statusOption.发起&&X[v.defaultFile.approveStatus]!=v.statusOption.退回?(u.openBlock(),u.createElementBlock("span",Une,u.toDisplayString(X[v.defaultFile.approveStatus]==v.statusOption.评论?" 添加了评论":"("+X[v.defaultFile.approveStatusName]+")"),1)):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 退回状态显示 "),X[v.defaultFile.approveStatus]==v.statusOption.退回?(u.openBlock(),u.createElementBlock("span",Wne,[jne,u.createTextVNode(u.toDisplayString(X[v.defaultFile.backToRecordNodeName]),1)])):u.createCommentVNode("v-if",!0)])):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createCommentVNode(" 待审批节点 "),u.createElementVNode("div",null,[((me=X[v.defaultFile.approvePersonList])==null?void 0:me.length)==1?(u.openBlock(),u.createElementBlock("span",Zne,[u.createTextVNode(u.toDisplayString(X[v.defaultFile.originator])+" ",1),X[v.defaultFile.approveStatus]==v.statusOption.等待?(u.openBlock(),u.createElementBlock("span",Gne,u.toDisplayString(`(${X[v.defaultFile.approveStatusName]})`),1)):u.createCommentVNode("v-if",!0)])):X[v.defaultFile.approvePersonList]?(u.openBlock(),u.createElementBlock("span",qne,u.toDisplayString(`${(ie=X[v.defaultFile.approvePersonList])==null?void 0:ie.length}人${X[v.defaultFile.approveTypeName]}`),1)):u.createCommentVNode("v-if",!0)])],2112))])])):(u.openBlock(),u.createElementBlock("div",Kne,[Yne,u.createElementVNode("div",Xne,[u.createCommentVNode(" 抄送一人时 "),((G=X[v.defaultFile.approvePersonList])==null?void 0:G.length)==1?(u.openBlock(),u.createElementBlock("span",Qne,[u.createElementVNode("span",null,[u.createTextVNode("已抄送给 "),u.createElementVNode("span",Jne,u.toDisplayString(X[v.defaultFile.approvePersonList][0].userName),1)]),u.createElementVNode("span",eoe,u.toDisplayString(X[v.defaultFile.approvePersonList][0].status==="END"?"已读":"未读"),1)])):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 抄送多人时 "),((we=X[v.defaultFile.approvePersonList])==null?void 0:we.length)>1?(u.openBlock(),u.createElementBlock("span",toe,[u.createTextVNode(u.toDisplayString(`已抄送${(wt=X[v.defaultFile.approvePersonList])==null?void 0:wt.length}人`)+" ",1),X[v.defaultFile.allRead]?(u.openBlock(),u.createElementBlock("span",noe," 全部已读 ")):(u.openBlock(),u.createElementBlock("span",ooe,[X[v.defaultFile.read]?u.createCommentVNode("v-if",!0):(u.openBlock(),u.createElementBlock("span",soe," 全部未读 ")),X[v.defaultFile.read]?(u.openBlock(),u.createElementBlock("span",roe,u.toDisplayString(X[v.defaultFile.read])+"人已读 ",1)):u.createCommentVNode("v-if",!0)]))])):u.createCommentVNode("v-if",!0)])]))]),u.createElementVNode("div",aoe,[u.createCommentVNode(" 不是抄送节点,展示时间 "),X[v.defaultFile.nodeType]!=v.nodeType.抄送节点&&X[v.defaultFile.approveStatus]!==v.statusOption.等待?(u.openBlock(),u.createElementBlock("span",loe,u.toDisplayString(u.unref(Io.ikDate).toDateTime(X[v.defaultFile.operationTime],"MM/DD HH:mm")),1)):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 是抄送节点,并且抄送人员大于1时,展示图标 "),X[v.defaultFile.nodeType]==v.nodeType.抄送节点&&((Ve=X[v.defaultFile.approvePersonList])==null?void 0:Ve.length)>1?(u.openBlock(),u.createElementBlock("span",ioe,[X!=null&&X.show?(u.openBlock(),u.createElementBlock("i",{key:0,class:"ikapprove ikapprove-a-putongjiantouzhankai",onClick:lt=>$(X,"grid")},null,8,coe)):(u.openBlock(),u.createElementBlock("i",{key:1,onClick:lt=>$(X,"none"),class:"ikapprove ikapprove-a-putongjiantoushouqi"},null,8,uoe))])):u.createCommentVNode("v-if",!0)])])])]),u.createElementVNode("div",{class:"bottomBlock",style:u.normalizeStyle({borderLeft:le==v.listData.length-1?"":`2px ${X[v.defaultFile.lineType]||"dashed"} var(--el-border-color)`})},[u.createCommentVNode(" 审批意见 "),X[v.defaultFile.approveOpinion]||X[v.defaultFile.approveStatus]==v.statusOption.加签?(u.openBlock(),u.createElementBlock("div",doe,[X[v.defaultFile.approveOpinion]?(u.openBlock(),u.createElementBlock("span",foe,u.toDisplayString(X[v.defaultFile.approveOpinion]),1)):u.createCommentVNode("v-if",!0),X[v.defaultFile.approveStatus]==v.statusOption.加签?(u.openBlock(),u.createElementBlock("span",moe,[hoe,(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(X[v.defaultFile.countersignPer],(lt,Ge)=>(u.openBlock(),u.createElementBlock("span",poe,u.toDisplayString(lt==null?void 0:lt.userName)+u.toDisplayString(Ge<X[v.defaultFile.countersignPer].length-1?"、":""),1))),256))])):u.createCommentVNode("v-if",!0)])):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 附件 "),(K=X[v.defaultFile.attachment])!=null&&K.length?(u.openBlock(),u.createBlock(u.unref(j7),{key:1,list:X[v.defaultFile.attachment]},null,8,["list"])):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 附件图片 "),(De=X[v.defaultFile.attachmentImg])!=null&&De.length?(u.openBlock(),u.createElementBlock("div",goe,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(X[v.defaultFile.attachmentImg],(lt,Ge)=>(u.openBlock(),u.createElementBlock("div",{class:"image",key:Ge},[u.createVNode(oe,{src:L(lt),"preview-src-list":X[v.defaultFile.attachmentImg].map(he=>L(he)),fit:"cover","z-index":"9999","zoom-rate":1.2,alt:L(lt)},null,8,["src","preview-src-list","alt"])]))),128))])):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 抄送节点或是等待审批状态并且列表长度大于1 "),(X[v.defaultFile.nodeType]==v.nodeType.抄送节点||X[v.defaultFile.approveStatus]==v.statusOption.等待)&&((tt=X[v.defaultFile.approvePersonList])==null?void 0:tt.length)>1?(u.openBlock(),u.createElementBlock("div",boe,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(X[v.defaultFile.approvePersonList],lt=>(u.openBlock(),u.createElementBlock("div",{class:"perBlock",key:lt.userName},[u.createElementVNode("span",yoe,[lt.userAvatar?(u.openBlock(),u.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:L(lt.userAvatar),alt:""},null,8,voe)):(u.openBlock(),u.createElementBlock("span",Coe,u.toDisplayString(lt.userName.slice(-2)),1)),lt.status==="END"?(u.openBlock(),u.createElementBlock("i",woe)):u.createCommentVNode("v-if",!0)]),u.createElementVNode("div",{class:"main-text",title:lt.userName},u.toDisplayString(lt.userName),9,_oe)]))),128))])):u.createCommentVNode("v-if",!0)],4),X[v.defaultFile.nodeType]===v.nodeType.并行分支?(u.openBlock(),u.createElementBlock("div",Soe,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(X[v.defaultFile.parallelInstances],lt=>(u.openBlock(),u.createElementBlock("div",xoe,[u.createElementVNode("div",Eoe,u.toDisplayString(lt.name),1),u.createVNode(Z,u.mergeProps({ref_for:!0},d,{"data-list":(lt==null?void 0:lt.processInstanceNodes)||[]}),null,16,["data-list"])]))),256))])):u.createCommentVNode("v-if",!0)],8,One)}),128))])}}}),sbe="",Toe=or(Ls(Aoe,[["__scopeId","data-v-586207eb"]])),NY=i=>(u.pushScopeId("data-v-5753728e"),i=i(),u.popScopeId(),i),Doe={class:"approveProcess",id:"approveProcess"},Noe={class:"node"},Roe={class:"nodeBg"},Ooe={key:0,class:"info"},Boe={class:"explain"},Moe={key:0},Ioe={key:0},Poe={key:1},Foe={key:0},$oe={key:1},Loe={class:"personlist"},Voe={style:{width:"58px"}},Hoe={class:"avatar"},zoe=["src"],Uoe={key:1,class:"nodeBg"},Woe=["onClick"],joe=["title"],Zoe={key:0,class:"sign"},Goe={key:0},qoe=["onClick"],Koe={key:0,class:"required"},Yoe=NY(()=>u.createElementVNode("i",{class:"ikapprove ikapprove-xinzeng"},null,-1)),Xoe={key:1,class:"node-branchs"},Qoe=NY(()=>u.createElementVNode("div",{class:"branch-line"},null,-1)),Joe={style:{flex:"1"}},ese={class:"node-branch"},tse={name:"IkApprovalProcess"},nse=u.defineComponent({...tse,props:{pickerUrl:{type:String,default:""},loadUrl:{type:String,default:""},dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},setup(i,{expose:a}){const d=i,p=Io.ikStore.local.getItem("token")||"Bearer 841b7a7b0d9c4021b1655192c28ac61b",v=u.ref("sys");function S(X){const le=window.location.search;return new URLSearchParams(le).get(X)}function E(){var le;const X=S("xTenant")||((le=Io.ikStore.local.getItem("tenant"))==null?void 0:le.code);X&&(v.value=X)}E();const A=u.reactive(TY(d)),$=async X=>{var le;if(X.multiple=!X[A.defaultFile.singleApproval]||X[A.defaultFile.isShowAddCopy],X.handList=X[A.defaultFile.approvePersonList]?X[A.defaultFile.approvePersonList]:[],X[A.defaultFile.nodeType]===A.nodeType.抄送节点)X.handList.forEach(J=>{J.elementName||(J.elementName=J.userName,J.elementId=J.userId,J.avatar=J.userAvatar),J.elementType="USER",J.disabled=!0}),X.chooseType=["user"],X.userList=[],X.depList=[];else switch(X[A.defaultFile.initiatorSpecifiedScopeType]){case"ALL":X.chooseType=["dep_user"],X.userList=[],X.depList=[];break;default:X.chooseType=["user"],X.userList=X.userList?X.userList:(le=X[A.defaultFile.initiatorSpecifiedScope])==null?void 0:le.map(J=>({...J,elementName:(J==null?void 0:J.executorName)||(J==null?void 0:J.userName),elementId:(J==null?void 0:J.executorId)||(J==null?void 0:J.userId),avatar:((J==null?void 0:J.executorAvatar)||(J==null?void 0:J.userAvatar))&&L((J==null?void 0:J.executorAvatar)||(J==null?void 0:J.userAvatar))||"",elementType:"USER"}))}u.nextTick(()=>{X.isShow=!0})},L=X=>{let le="";return X.includes("http")||X.includes("https")?le=X:le=d.loadUrl?`${d.loadUrl}${X}`:`${location.origin+location.pathname}server/oss/download?fileUrl=${X}`,le},z=(X,le)=>{d.dataList[le].handList=X.list;let me=(d.dataList[le][A.defaultFile.approvePersonList]||[]).filter(G=>!G.canDele),ie=X.list.map(G=>({...G,userName:G.elementName,userAvatar:G.avatar,canDele:!0}));d.dataList[le][A.defaultFile.approvePersonList]=me.concat(ie)},se=(X,le)=>{d.dataList[X][A.defaultFile.approvePersonList].splice(le,1),d.dataList[X].handList=d.dataList[X][A.defaultFile.approvePersonList]},oe=()=>{let X=!0;return d.dataList.forEach(le=>{var J;le.required=!1,le[A.defaultFile.nodeType]==A.nodeType.审批节点&&le[A.defaultFile.isShowAdd]&&((J=le[A.defaultFile.approvePersonList])!=null&&J.length||(X=!1,le.required=!0))}),X},Z=u.computed(()=>({propOption:{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},api:{methods:"post",url:d.pickerUrl,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:p,"X-Tenant":v.value}}}));return a({requiredVerification:oe}),(X,le)=>{const J=u.resolveComponent("IkApprovalProcess");return u.openBlock(),u.createElementBlock("div",Doe,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(d.dataList,(me,ie)=>{var G,we,wt,Ve;return u.openBlock(),u.createElementBlock("div",{class:"content",key:me.id},[u.createCommentVNode(" 审批节点类型 "),u.createElementVNode("div",Noe,[u.createElementVNode("span",Roe,[u.createElementVNode("i",{class:u.normalizeClass(u.unref(DY)(A,me[A.defaultFile.nodeType]))},null,2)]),u.createElementVNode("div",{class:"line",style:u.normalizeStyle({"border-left":ie===d.dataList.length-1?"":"2px solid var(--el-border-color)"})},null,4)]),me[A.defaultFile.nodeType]!==A.nodeType.并行分支?(u.openBlock(),u.createElementBlock("div",Ooe,[u.createElementVNode("div",null,[u.createElementVNode("div",null,u.toDisplayString(me[A.defaultFile.nodeTypeName]),1),u.createElementVNode("div",Boe,[u.createCommentVNode(" 抄送节点 "),me[A.defaultFile.nodeType]==A.nodeType.抄送节点?(u.openBlock(),u.createElementBlock("span",Moe,[me[A.defaultFile.approvePersonList].length?(u.openBlock(),u.createElementBlock("span",Ioe,u.toDisplayString(`抄送${me[A.defaultFile.approvePersonList].length}人`),1)):u.createCommentVNode("v-if",!0),me[A.defaultFile.isShowAdd]?(u.openBlock(),u.createElementBlock("span",Poe,",可添加抄送人")):u.createCommentVNode("v-if",!0)])):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createCommentVNode(" 审批节点 "),u.createElementVNode("span",null,[u.createCommentVNode(" 存在审批人时 "),(G=me[A.defaultFile.approvePersonList])!=null&&G.length?(u.openBlock(),u.createElementBlock("span",Foe,u.toDisplayString(((we=me[A.defaultFile.approvePersonList])==null?void 0:we.length)==1?"1人审批":`${(wt=me[A.defaultFile.approvePersonList])==null?void 0:wt.length}人${me[A.defaultFile.multiExecutorTypeName]}`),1)):[A.statusWithoutApprover.自动通过,A.statusWithoutApprover.自动拒绝].includes(me[A.defaultFile.approveType])?(u.openBlock(),u.createElementBlock("span",$oe,u.toDisplayString(me[A.defaultFile.approveTypeName]),1)):me[A.defaultFile.executorEmptyStrategy]&&me[A.defaultFile.executorEmpty]?(u.openBlock(),u.createElementBlock(u.Fragment,{key:2},[u.createCommentVNode(" 没有审批人,并且有指定默认审批方式 "),u.createElementVNode("span",null,[u.createTextVNode(" 未找到审批人,"),u.createElementVNode("span",null,u.toDisplayString(me[A.defaultFile.executorEmptyStrategy]==A.statusWithoutApprover.自动通过?"将自动通过":me[A.defaultFile.executorEmptyStrategy]==A.statusWithoutApprover.自动转交管理员?"自动转交给管理员":me[A.defaultFile.executorEmptyStrategy]==A.statusWithoutApprover.指定人员审批?`将自动转给指定成员${me[A.defaultFile.reserveExecutorUsers]&&me[A.defaultFile.reserveExecutorUsers][0].userName}`:""),1)])],2112)):[A.nodeType.并行分支,A.nodeType.子流程].includes(me[A.defaultFile.nodeType])?u.createCommentVNode("v-if",!0):(u.openBlock(),u.createElementBlock("span",{key:3,class:u.normalizeClass(me.required?"warn":"")}," 请选择"+u.toDisplayString(me[A.defaultFile.nodeType]===A.nodeType.办理节点?"办理人":"审批人"),3))])],2112))])]),u.createElementVNode("div",Loe,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(me[A.defaultFile.approvePersonList],(K,De)=>{var tt;return u.openBlock(),u.createElementBlock("div",{class:"list",key:K.userId},[u.createElementVNode("div",Voe,[u.createElementVNode("div",Hoe,[K.userAvatar?(u.openBlock(),u.createElementBlock("img",{key:0,src:L(K.userAvatar),alt:""},null,8,zoe)):(u.openBlock(),u.createElementBlock("div",Uoe,[u.createElementVNode("span",null,u.toDisplayString(K.userName.slice(-2)),1)])),K.canDele?(u.openBlock(),u.createElementBlock("i",{key:2,onClick:lt=>se(ie,De),class:"ikapprove ikapprove-shanchu1"},null,8,Woe)):u.createCommentVNode("v-if",!0)]),u.createElementVNode("div",{class:"name",title:K.userName},u.toDisplayString(K.userName),9,joe)]),u.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),me[A.defaultFile.isShowAdd]&&!(me[A.defaultFile.singleApproval]&&((tt=me[A.defaultFile.approvePersonList])==null?void 0:tt.length)==1)?(u.openBlock(),u.createElementBlock("span",Zoe,[u.createCommentVNode(" 抄送默认 "),me[A.defaultFile.nodeType]==A.nodeType.抄送节点?(u.openBlock(),u.createElementBlock("span",Goe,"+")):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createCommentVNode(" 审批 "),u.createElementVNode("span",null,u.toDisplayString(me[A.defaultFile.multiExecutorType]=="ANY"?"/":me[A.defaultFile.multiExecutorType]=="ALL"?"+":">"),1)],2112))])):u.createCommentVNode("v-if",!0)])}),128)),u.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 (item[state.defaultFile.isShowAdd] && "),me[A.defaultFile.isShowAdd]&&!(me[A.defaultFile.singleApproval]&&((Ve=me[A.defaultFile.approvePersonList])==null?void 0:Ve.length)==1)||me[A.defaultFile.isShowAddCopy]?(u.openBlock(),u.createElementBlock("span",{key:0,class:"addBg",onClick:K=>$(me)},[me[A.defaultFile.nodeType]==A.nodeType.审批节点?(u.openBlock(),u.createElementBlock("span",Koe)):u.createCommentVNode("v-if",!0),Yoe],8,qoe)):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 添加人组件 "),u.createVNode(u.unref(mk),u.mergeProps({modelValue:me.handList,"onUpdate:modelValue":K=>me.handList=K,show:me.isShow,"onUpdate:show":K=>me.isShow=K,onOk:K=>z(K,ie),multiple:me.multiple,"dep-list":me.depList,"user-list":me.userList,"organization-list":me.organizationList,ref_for:!0},Z.value,{chooseType:me.chooseType}),null,16,["modelValue","onUpdate:modelValue","show","onUpdate:show","onOk","multiple","dep-list","user-list","organization-list","chooseType"])])])):(u.openBlock(),u.createElementBlock("div",Xoe,[Qoe,u.createElementVNode("div",Joe,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(me.parallelInstances,(K,De)=>(u.openBlock(),u.createElementBlock("div",{key:De,class:u.normalizeClass(`branch branch-${De}`)},[u.createElementVNode("div",ese,u.toDisplayString(K.name),1),u.createVNode(J,u.mergeProps({ref_for:!0},d,{dataList:K.processInstanceNodes,style:{"margin-left":"20px"}}),null,16,["dataList"])],2))),128))])]))])}),128))])}}}),abe="",ose=or(Ls(nse,[["__scopeId","data-v-5753728e"]]));var RY={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(i){return"另外 "+i+" 个"},noEventsText:"没有事件显示"},i7,Cs,OY,BY,R3,Jv,MY,IY,PY,c7={},FY=[],sse=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Bb(i,a){for(var d in a)i[d]=a[d];return i}function $Y(i){var a=i.parentNode;a&&a.removeChild(i)}function Qe(i,a,d){var p,v,S,E={};for(S in a)S=="key"?p=a[S]:S=="ref"?v=a[S]:E[S]=a[S];if(arguments.length>2&&(E.children=arguments.length>3?i7.call(arguments,2):d),typeof i=="function"&&i.defaultProps!=null)for(S in i.defaultProps)E[S]===void 0&&(E[S]=i.defaultProps[S]);return u7(i,E,p,v,null)}function u7(i,a,d,p,v){var S={type:i,props:a,key:d,ref:p,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:v??++OY};return v==null&&Cs.vnode!=null&&Cs.vnode(S),S}function kd(){return{current:null}}function ql(i){return i.children}function rse(i,a,d,p,v){var S;for(S in d)S==="children"||S==="key"||S in a||d7(i,S,null,d[S],p);for(S in a)v&&typeof a[S]!="function"||S==="children"||S==="key"||S==="value"||S==="checked"||d[S]===a[S]||d7(i,S,a[S],d[S],p)}function LY(i,a,d){a[0]==="-"?i.setProperty(a,d??""):i[a]=d==null?"":typeof d!="number"||sse.test(a)?d:d+"px"}function d7(i,a,d,p,v){var S;e:if(a==="style")if(typeof d=="string")i.style.cssText=d;else{if(typeof p=="string"&&(i.style.cssText=p=""),p)for(a in p)d&&a in d||LY(i.style,a,"");if(d)for(a in d)p&&d[a]===p[a]||LY(i.style,a,d[a])}else if(a[0]==="o"&&a[1]==="n")S=a!==(a=a.replace(/Capture$/,"")),a=a.toLowerCase()in i?a.toLowerCase().slice(2):a.slice(2),i.l||(i.l={}),i.l[a+S]=d,d?p||i.addEventListener(a,S?HY:VY,S):i.removeEventListener(a,S?HY:VY,S);else if(a!=="dangerouslySetInnerHTML"){if(v)a=a.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(a!=="width"&&a!=="height"&&a!=="href"&&a!=="list"&&a!=="form"&&a!=="tabIndex"&&a!=="download"&&a in i)try{i[a]=d??"";break e}catch{}typeof d=="function"||(d==null||d===!1&&a.indexOf("-")==-1?i.removeAttribute(a):i.setAttribute(a,d))}}function VY(i){R3=!0;try{return this.l[i.type+!1](Cs.event?Cs.event(i):i)}finally{R3=!1}}function HY(i){R3=!0;try{return this.l[i.type+!0](Cs.event?Cs.event(i):i)}finally{R3=!1}}function em(i,a){this.props=i,this.context=a}function J6(i,a){if(a==null)return i.__?J6(i.__,i.__.__k.indexOf(i)+1):null;for(var d;a<i.__k.length;a++)if((d=i.__k[a])!=null&&d.__e!=null)return d.__e;return typeof i.type=="function"?J6(i):null}function zY(i){var a,d;if((i=i.__)!=null&&i.__c!=null){for(i.__e=i.__c.base=null,a=0;a<i.__k.length;a++)if((d=i.__k[a])!=null&&d.__e!=null){i.__e=i.__c.base=d.__e;break}return zY(i)}}function ase(i){R3?setTimeout(i):IY(i)}function GF(i){(!i.__d&&(i.__d=!0)&&Jv.push(i)&&!f7.__r++||MY!==Cs.debounceRendering)&&((MY=Cs.debounceRendering)||ase)(f7)}function f7(){var i,a,d,p,v,S,E,A;for(Jv.sort(function($,L){return $.__v.__b-L.__v.__b});i=Jv.shift();)i.__d&&(a=Jv.length,p=void 0,v=void 0,E=(S=(d=i).__v).__e,(A=d.__P)&&(p=[],(v=Bb({},S)).__v=S.__v+1,qF(A,S,v,d.__n,A.ownerSVGElement!==void 0,S.__h!=null?[E]:null,p,E??J6(S),S.__h),GY(p,S),S.__e!=E&&zY(S)),Jv.length>a&&Jv.sort(function($,L){return $.__v.__b-L.__v.__b}));f7.__r=0}function UY(i,a,d,p,v,S,E,A,$,L){var z,se,oe,Z,X,le,J,me=p&&p.__k||FY,ie=me.length;for(d.__k=[],z=0;z<a.length;z++)if((Z=d.__k[z]=(Z=a[z])==null||typeof Z=="boolean"?null:typeof Z=="string"||typeof Z=="number"||typeof Z=="bigint"?u7(null,Z,null,null,Z):Array.isArray(Z)?u7(ql,{children:Z},null,null,null):Z.__b>0?u7(Z.type,Z.props,Z.key,Z.ref?Z.ref:null,Z.__v):Z)!=null){if(Z.__=d,Z.__b=d.__b+1,(oe=me[z])===null||oe&&Z.key==oe.key&&Z.type===oe.type)me[z]=void 0;else for(se=0;se<ie;se++){if((oe=me[se])&&Z.key==oe.key&&Z.type===oe.type){me[se]=void 0;break}oe=null}qF(i,Z,oe=oe||c7,v,S,E,A,$,L),X=Z.__e,(se=Z.ref)&&oe.ref!=se&&(J||(J=[]),oe.ref&&J.push(oe.ref,null,Z),J.push(se,Z.__c||X,Z)),X!=null?(le==null&&(le=X),typeof Z.type=="function"&&Z.__k===oe.__k?Z.__d=$=WY(Z,$,i):$=jY(i,Z,oe,me,X,$),typeof d.type=="function"&&(d.__d=$)):$&&oe.__e==$&&$.parentNode!=i&&($=J6(oe))}for(d.__e=le,z=ie;z--;)me[z]!=null&&(typeof d.type=="function"&&me[z].__e!=null&&me[z].__e==d.__d&&(d.__d=ZY(p).nextSibling),KY(me[z],me[z]));if(J)for(z=0;z<J.length;z++)qY(J[z],J[++z],J[++z])}function WY(i,a,d){for(var p,v=i.__k,S=0;v&&S<v.length;S++)(p=v[S])&&(p.__=i,a=typeof p.type=="function"?WY(p,a,d):jY(d,p,p,v,p.__e,a));return a}function m7(i,a){return a=a||[],i==null||typeof i=="boolean"||(Array.isArray(i)?i.some(function(d){m7(d,a)}):a.push(i)),a}function jY(i,a,d,p,v,S){var E,A,$;if(a.__d!==void 0)E=a.__d,a.__d=void 0;else if(d==null||v!=S||v.parentNode==null)e:if(S==null||S.parentNode!==i)i.appendChild(v),E=null;else{for(A=S,$=0;(A=A.nextSibling)&&$<p.length;$+=1)if(A==v)break e;i.insertBefore(v,S),E=S}return E!==void 0?E:v.nextSibling}function ZY(i){var a,d,p;if(i.type==null||typeof i.type=="string")return i.__e;if(i.__k){for(a=i.__k.length-1;a>=0;a--)if((d=i.__k[a])&&(p=ZY(d)))return p}return null}function qF(i,a,d,p,v,S,E,A,$){var L,z,se,oe,Z,X,le,J,me,ie,G,we,wt,Ve,K,De=a.type;if(a.constructor!==void 0)return null;d.__h!=null&&($=d.__h,A=a.__e=d.__e,a.__h=null,S=[A]),(L=Cs.__b)&&L(a);try{e:if(typeof De=="function"){if(J=a.props,me=(L=De.contextType)&&p[L.__c],ie=L?me?me.props.value:L.__:p,d.__c?le=(z=a.__c=d.__c).__=z.__E:("prototype"in De&&De.prototype.render?a.__c=z=new De(J,ie):(a.__c=z=new em(J,ie),z.constructor=De,z.render=ise),me&&me.sub(z),z.props=J,z.state||(z.state={}),z.context=ie,z.__n=p,se=z.__d=!0,z.__h=[],z._sb=[]),z.__s==null&&(z.__s=z.state),De.getDerivedStateFromProps!=null&&(z.__s==z.state&&(z.__s=Bb({},z.__s)),Bb(z.__s,De.getDerivedStateFromProps(J,z.__s))),oe=z.props,Z=z.state,z.__v=a,se)De.getDerivedStateFromProps==null&&z.componentWillMount!=null&&z.componentWillMount(),z.componentDidMount!=null&&z.__h.push(z.componentDidMount);else{if(De.getDerivedStateFromProps==null&&J!==oe&&z.componentWillReceiveProps!=null&&z.componentWillReceiveProps(J,ie),!z.__e&&z.shouldComponentUpdate!=null&&z.shouldComponentUpdate(J,z.__s,ie)===!1||a.__v===d.__v){for(a.__v!==d.__v&&(z.props=J,z.state=z.__s,z.__d=!1),a.__e=d.__e,a.__k=d.__k,a.__k.forEach(function(tt){tt&&(tt.__=a)}),G=0;G<z._sb.length;G++)z.__h.push(z._sb[G]);z._sb=[],z.__h.length&&E.push(z);break e}z.componentWillUpdate!=null&&z.componentWillUpdate(J,z.__s,ie),z.componentDidUpdate!=null&&z.__h.push(function(){z.componentDidUpdate(oe,Z,X)})}if(z.context=ie,z.props=J,z.__P=i,we=Cs.__r,wt=0,"prototype"in De&&De.prototype.render){for(z.state=z.__s,z.__d=!1,we&&we(a),L=z.render(z.props,z.state,z.context),Ve=0;Ve<z._sb.length;Ve++)z.__h.push(z._sb[Ve]);z._sb=[]}else do z.__d=!1,we&&we(a),L=z.render(z.props,z.state,z.context),z.state=z.__s;while(z.__d&&++wt<25);z.state=z.__s,z.getChildContext!=null&&(p=Bb(Bb({},p),z.getChildContext())),se||z.getSnapshotBeforeUpdate==null||(X=z.getSnapshotBeforeUpdate(oe,Z)),K=L!=null&&L.type===ql&&L.key==null?L.props.children:L,UY(i,Array.isArray(K)?K:[K],a,d,p,v,S,E,A,$),z.base=a.__e,a.__h=null,z.__h.length&&E.push(z),le&&(z.__E=z.__=null),z.__e=!1}else S==null&&a.__v===d.__v?(a.__k=d.__k,a.__e=d.__e):a.__e=lse(d.__e,a,d,p,v,S,E,$);(L=Cs.diffed)&&L(a)}catch(tt){a.__v=null,($||S!=null)&&(a.__e=A,a.__h=!!$,S[S.indexOf(A)]=null),Cs.__e(tt,a,d)}}function GY(i,a){Cs.__c&&Cs.__c(a,i),i.some(function(d){try{i=d.__h,d.__h=[],i.some(function(p){p.call(d)})}catch(p){Cs.__e(p,d.__v)}})}function lse(i,a,d,p,v,S,E,A){var $,L,z,se=d.props,oe=a.props,Z=a.type,X=0;if(Z==="svg"&&(v=!0),S!=null){for(;X<S.length;X++)if(($=S[X])&&"setAttribute"in $==!!Z&&(Z?$.localName===Z:$.nodeType===3)){i=$,S[X]=null;break}}if(i==null){if(Z===null)return document.createTextNode(oe);i=v?document.createElementNS("http://www.w3.org/2000/svg",Z):document.createElement(Z,oe.is&&oe),S=null,A=!1}if(Z===null)se===oe||A&&i.data===oe||(i.data=oe);else{if(S=S&&i7.call(i.childNodes),L=(se=d.props||c7).dangerouslySetInnerHTML,z=oe.dangerouslySetInnerHTML,!A){if(S!=null)for(se={},X=0;X<i.attributes.length;X++)se[i.attributes[X].name]=i.attributes[X].value;(z||L)&&(z&&(L&&z.__html==L.__html||z.__html===i.innerHTML)||(i.innerHTML=z&&z.__html||""))}if(rse(i,oe,se,v,A),z)a.__k=[];else if(X=a.props.children,UY(i,Array.isArray(X)?X:[X],a,d,p,v&&Z!=="foreignObject",S,E,S?S[0]:d.__k&&J6(d,0),A),S!=null)for(X=S.length;X--;)S[X]!=null&&$Y(S[X]);A||("value"in oe&&(X=oe.value)!==void 0&&(X!==i.value||Z==="progress"&&!X||Z==="option"&&X!==se.value)&&d7(i,"value",X,se.value,!1),"checked"in oe&&(X=oe.checked)!==void 0&&X!==i.checked&&d7(i,"checked",X,se.checked,!1))}return i}function qY(i,a,d){try{typeof i=="function"?i(a):i.current=a}catch(p){Cs.__e(p,d)}}function KY(i,a,d){var p,v;if(Cs.unmount&&Cs.unmount(i),(p=i.ref)&&(p.current&&p.current!==i.__e||qY(p,null,a)),(p=i.__c)!=null){if(p.componentWillUnmount)try{p.componentWillUnmount()}catch(S){Cs.__e(S,a)}p.base=p.__P=null,i.__c=void 0}if(p=i.__k)for(v=0;v<p.length;v++)p[v]&&KY(p[v],a,d||typeof i.type!="function");d||i.__e==null||$Y(i.__e),i.__=i.__e=i.__d=void 0}function ise(i,a,d){return this.constructor(i,d)}function ek(i,a,d){var p,v,S;Cs.__&&Cs.__(i,a),v=(p=typeof d=="function")?null:d&&d.__k||a.__k,S=[],qF(a,i=(!p&&d||a).__k=Qe(ql,null,[i]),v||c7,c7,a.ownerSVGElement!==void 0,!p&&d?[d]:v?null:a.firstChild?i7.call(a.childNodes):null,S,!p&&d?d:v?v.__e:a.firstChild,p),GY(S,i)}function cse(i,a){var d={__c:a="__cC"+PY++,__:i,Consumer:function(p,v){return p.children(v)},Provider:function(p){var v,S;return this.getChildContext||(v=[],(S={})[a]=this,this.getChildContext=function(){return S},this.shouldComponentUpdate=function(E){this.props.value!==E.value&&v.some(function(A){A.__e=!0,GF(A)})},this.sub=function(E){v.push(E);var A=E.componentWillUnmount;E.componentWillUnmount=function(){v.splice(v.indexOf(E),1),A&&A.call(E)}}),p.children}};return d.Provider.__=d.Consumer.contextType=d}i7=FY.slice,Cs={__e:function(i,a,d,p){for(var v,S,E;a=a.__;)if((v=a.__c)&&!v.__)try{if((S=v.constructor)&&S.getDerivedStateFromError!=null&&(v.setState(S.getDerivedStateFromError(i)),E=v.__d),v.componentDidCatch!=null&&(v.componentDidCatch(i,p||{}),E=v.__d),E)return v.__E=v}catch(A){i=A}throw i}},OY=0,BY=function(i){return i!=null&&i.constructor===void 0},R3=!1,em.prototype.setState=function(i,a){var d;d=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Bb({},this.state),typeof i=="function"&&(i=i(Bb({},d),this.props)),i&&Bb(d,i),i!=null&&this.__v&&(a&&this._sb.push(a),GF(this))},em.prototype.forceUpdate=function(i){this.__v&&(this.__e=!0,i&&this.__h.push(i),GF(this))},em.prototype.render=ql,Jv=[],IY=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f7.__r=0,PY=0;var ig,KF,YY,XY=[],YF=[],QY=Cs.__b,JY=Cs.__r,eX=Cs.diffed,tX=Cs.__c,nX=Cs.unmount;function use(){for(var i;i=XY.shift();)if(i.__P&&i.__H)try{i.__H.__h.forEach(h7),i.__H.__h.forEach(XF),i.__H.__h=[]}catch(a){i.__H.__h=[],Cs.__e(a,i.__v)}}Cs.__b=function(i){ig=null,QY&&QY(i)},Cs.__r=function(i){JY&&JY(i);var a=(ig=i.__c).__H;a&&(KF===ig?(a.__h=[],ig.__h=[],a.__.forEach(function(d){d.__N&&(d.__=d.__N),d.__V=YF,d.__N=d.i=void 0})):(a.__h.forEach(h7),a.__h.forEach(XF),a.__h=[])),KF=ig},Cs.diffed=function(i){eX&&eX(i);var a=i.__c;a&&a.__H&&(a.__H.__h.length&&(XY.push(a)!==1&&YY===Cs.requestAnimationFrame||((YY=Cs.requestAnimationFrame)||dse)(use)),a.__H.__.forEach(function(d){d.i&&(d.__H=d.i),d.__V!==YF&&(d.__=d.__V),d.i=void 0,d.__V=YF})),KF=ig=null},Cs.__c=function(i,a){a.some(function(d){try{d.__h.forEach(h7),d.__h=d.__h.filter(function(p){return!p.__||XF(p)})}catch(p){a.some(function(v){v.__h&&(v.__h=[])}),a=[],Cs.__e(p,d.__v)}}),tX&&tX(i,a)},Cs.unmount=function(i){nX&&nX(i);var a,d=i.__c;d&&d.__H&&(d.__H.__.forEach(function(p){try{h7(p)}catch(v){a=v}}),d.__H=void 0,a&&Cs.__e(a,d.__v))};var oX=typeof requestAnimationFrame=="function";function dse(i){var a,d=function(){clearTimeout(p),oX&&cancelAnimationFrame(a),setTimeout(i)},p=setTimeout(d,100);oX&&(a=requestAnimationFrame(d))}function h7(i){var a=ig,d=i.__c;typeof d=="function"&&(i.__c=void 0,d()),ig=a}function XF(i){var a=ig;i.__c=i.__(),ig=a}function fse(i,a){for(var d in a)i[d]=a[d];return i}function sX(i,a){for(var d in i)if(d!=="__source"&&!(d in a))return!0;for(var p in a)if(p!=="__source"&&i[p]!==a[p])return!0;return!1}function rX(i){this.props=i}(rX.prototype=new em).isPureReactComponent=!0,rX.prototype.shouldComponentUpdate=function(i,a){return sX(this.props,i)||sX(this.state,a)};var aX=Cs.__b;Cs.__b=function(i){i.type&&i.type.__f&&i.ref&&(i.props.ref=i.ref,i.ref=null),aX&&aX(i)};var mse=Cs.__e;Cs.__e=function(i,a,d,p){if(i.then){for(var v,S=a;S=S.__;)if((v=S.__c)&&v.__c)return a.__e==null&&(a.__e=d.__e,a.__k=d.__k),v.__c(i,a)}mse(i,a,d,p)};var lX=Cs.unmount;function iX(i,a,d){return i&&(i.__c&&i.__c.__H&&(i.__c.__H.__.forEach(function(p){typeof p.__c=="function"&&p.__c()}),i.__c.__H=null),(i=fse({},i)).__c!=null&&(i.__c.__P===d&&(i.__c.__P=a),i.__c=null),i.__k=i.__k&&i.__k.map(function(p){return iX(p,a,d)})),i}function cX(i,a,d){return i&&(i.__v=null,i.__k=i.__k&&i.__k.map(function(p){return cX(p,a,d)}),i.__c&&i.__c.__P===a&&(i.__e&&d.insertBefore(i.__e,i.__d),i.__c.__e=!0,i.__c.__P=d)),i}function QF(){this.__u=0,this.t=null,this.__b=null}function uX(i){var a=i.__.__c;return a&&a.__a&&a.__a(i)}function p7(){this.u=null,this.o=null}Cs.unmount=function(i){var a=i.__c;a&&a.__R&&a.__R(),a&&i.__h===!0&&(i.type=null),lX&&lX(i)},(QF.prototype=new em).__c=function(i,a){var d=a.__c,p=this;p.t==null&&(p.t=[]),p.t.push(d);var v=uX(p.__v),S=!1,E=function(){S||(S=!0,d.__R=null,v?v(A):A())};d.__R=E;var A=function(){if(!--p.__u){if(p.state.__a){var L=p.state.__a;p.__v.__k[0]=cX(L,L.__c.__P,L.__c.__O)}var z;for(p.setState({__a:p.__b=null});z=p.t.pop();)z.forceUpdate()}},$=a.__h===!0;p.__u++||$||p.setState({__a:p.__b=p.__v.__k[0]}),i.then(E,E)},QF.prototype.componentWillUnmount=function(){this.t=[]},QF.prototype.render=function(i,a){if(this.__b){if(this.__v.__k){var d=document.createElement("div"),p=this.__v.__k[0].__c;this.__v.__k[0]=iX(this.__b,d,p.__O=p.__P)}this.__b=null}var v=a.__a&&Qe(ql,null,i.fallback);return v&&(v.__h=null),[Qe(ql,null,a.__a?null:i.children),v]};var dX=function(i,a,d){if(++d[1]===d[0]&&i.o.delete(a),i.props.revealOrder&&(i.props.revealOrder[0]!=="t"||!i.o.size))for(d=i.u;d;){for(;d.length>3;)d.pop()();if(d[1]<d[0])break;i.u=d=d[2]}};function hse(i){return this.getChildContext=function(){return i.context},i.children}function pse(i){var a=this,d=i.i;a.componentWillUnmount=function(){ek(null,a.l),a.l=null,a.i=null},a.i&&a.i!==d&&a.componentWillUnmount(),i.__v?(a.l||(a.i=d,a.l={nodeType:1,parentNode:d,childNodes:[],appendChild:function(p){this.childNodes.push(p),a.i.appendChild(p)},insertBefore:function(p,v){this.childNodes.push(p),a.i.appendChild(p)},removeChild:function(p){this.childNodes.splice(this.childNodes.indexOf(p)>>>1,1),a.i.removeChild(p)}}),ek(Qe(hse,{context:a.context},i.__v),a.l)):a.l&&a.componentWillUnmount()}function gse(i,a){var d=Qe(pse,{__v:i,i:a});return d.containerInfo=a,d}(p7.prototype=new em).__a=function(i){var a=this,d=uX(a.__v),p=a.o.get(i);return p[0]++,function(v){var S=function(){a.props.revealOrder?(p.push(v),dX(a,i,p)):v()};d?d(S):S()}},p7.prototype.render=function(i){this.u=null,this.o=new Map;var a=m7(i.children);i.revealOrder&&i.revealOrder[0]==="b"&&a.reverse();for(var d=a.length;d--;)this.o.set(a[d],this.u=[1,0,this.u]);return i.children},p7.prototype.componentDidUpdate=p7.prototype.componentDidMount=function(){var i=this;this.o.forEach(function(a,d){dX(i,d,a)})};var bse=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,yse=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,vse=typeof document<"u",Cse=function(i){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(i)};em.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(i){Object.defineProperty(em.prototype,i,{configurable:!0,get:function(){return this["UNSAFE_"+i]},set:function(a){Object.defineProperty(this,i,{configurable:!0,writable:!0,value:a})}})});var fX=Cs.event;function wse(){}function _se(){return this.cancelBubble}function Sse(){return this.defaultPrevented}Cs.event=function(i){return fX&&(i=fX(i)),i.persist=wse,i.isPropagationStopped=_se,i.isDefaultPrevented=Sse,i.nativeEvent=i};var mX={configurable:!0,get:function(){return this.class}},hX=Cs.vnode;Cs.vnode=function(i){var a=i.type,d=i.props,p=d;if(typeof a=="string"){var v=a.indexOf("-")===-1;for(var S in p={},d){var E=d[S];vse&&S==="children"&&a==="noscript"||S==="value"&&"defaultValue"in d&&E==null||(S==="defaultValue"&&"value"in d&&d.value==null?S="value":S==="download"&&E===!0?E="":/ondoubleclick/i.test(S)?S="ondblclick":/^onchange(textarea|input)/i.test(S+a)&&!Cse(d.type)?S="oninput":/^onfocus$/i.test(S)?S="onfocusin":/^onblur$/i.test(S)?S="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(S)?S=S.toLowerCase():v&&yse.test(S)?S=S.replace(/[A-Z0-9]/g,"-$&").toLowerCase():E===null&&(E=void 0),/^oninput$/i.test(S)&&(S=S.toLowerCase(),p[S]&&(S="oninputCapture")),p[S]=E)}a=="select"&&p.multiple&&Array.isArray(p.value)&&(p.value=m7(d.children).forEach(function(A){A.props.selected=p.value.indexOf(A.props.value)!=-1})),a=="select"&&p.defaultValue!=null&&(p.value=m7(d.children).forEach(function(A){A.props.selected=p.multiple?p.defaultValue.indexOf(A.props.value)!=-1:p.defaultValue==A.props.value})),i.props=p,d.class!=d.className&&(mX.enumerable="className"in d,d.className!=null&&(p.class=d.className),Object.defineProperty(p,"className",mX))}i.$$typeof=bse,hX&&hX(i)};var pX=Cs.__r;Cs.__r=function(i){pX&&pX(i),i.__c};const gX=[],JF=new Map;function e$(i){gX.push(i),JF.forEach(a=>{yX(a,i)})}function xse(i){i.isConnected&&i.getRootNode&&bX(i.getRootNode())}function bX(i){let a=JF.get(i);if(!a||!a.isConnected){if(a=i.querySelector("style[data-fullcalendar]"),!a){a=document.createElement("style"),a.setAttribute("data-fullcalendar","");const d=kse();d&&(a.nonce=d);const p=i===document?document.head:i,v=i===document?p.querySelector("script,link[rel=stylesheet],link[as=style],style"):p.firstChild;p.insertBefore(a,v)}JF.set(i,a),Ese(a)}}function Ese(i){for(const a of gX)yX(i,a)}function yX(i,a){const{sheet:d}=i,p=d.cssRules.length;a.split("}").forEach((v,S)=>{v=v.trim(),v&&d.insertRule(v+"}",p+S)})}let t$;function kse(){return t$===void 0&&(t$=Ase()),t$}function Ase(){const i=document.querySelector('meta[name="csp-nonce"]');if(i&&i.hasAttribute("content"))return i.getAttribute("content");const a=document.querySelector("script[nonce]");return a&&a.nonce||""}typeof document<"u"&&bX(document);var Tse=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';e$(Tse);class n${constructor(a){this.drainedOption=a,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(a){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),a==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),a))}pause(a=""){let{pauseDepths:d}=this;d[a]=(d[a]||0)+1,this.clearTimeout()}resume(a="",d){let{pauseDepths:p}=this;a in p&&(d?delete p[a]:(p[a]-=1,p[a]<=0&&delete p[a]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function o$(i){i.parentNode&&i.parentNode.removeChild(i)}function Vu(i,a){if(i.closest)return i.closest(a);if(!document.documentElement.contains(i))return null;do{if(Dse(i,a))return i;i=i.parentElement||i.parentNode}while(i!==null&&i.nodeType===1);return null}function Dse(i,a){return(i.matches||i.matchesSelector||i.msMatchesSelector).call(i,a)}function Nse(i,a){let d=i instanceof HTMLElement?[i]:i,p=[];for(let v=0;v<d.length;v+=1){let S=d[v].querySelectorAll(a);for(let E=0;E<S.length;E+=1)p.push(S[E])}return p}const Rse=/(top|left|right|bottom|width|height)$/i;function tk(i,a){for(let d in a)vX(i,d,a[d])}function vX(i,a,d){d==null?i.style[a]="":typeof d=="number"&&Rse.test(a)?i.style[a]=`${d}px`:i.style[a]=d}function CX(i){var a,d;return(d=(a=i.composedPath)===null||a===void 0?void 0:a.call(i)[0])!==null&&d!==void 0?d:i.target}let wX=0;function g7(){return wX+=1,"fc-dom-"+wX}function b7(i){i.preventDefault()}function Ose(i,a){return d=>{let p=Vu(d.target,i);p&&a.call(p,d,p)}}function _X(i,a,d,p){let v=Ose(d,p);return i.addEventListener(a,v),()=>{i.removeEventListener(a,v)}}function Bse(i,a,d,p){let v;return _X(i,"mouseover",a,(S,E)=>{if(E!==v){v=E,d(S,E);let A=$=>{v=null,p($,E),E.removeEventListener("mouseleave",A)};E.addEventListener("mouseleave",A)}})}const SX=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Mse(i,a){let d=p=>{a(p),SX.forEach(v=>{i.removeEventListener(v,d)})};SX.forEach(p=>{i.addEventListener(p,d)})}function xX(i){return Object.assign({onClick:i},EX(i))}function EX(i){return{tabIndex:0,onKeyDown(a){(a.key==="Enter"||a.key===" ")&&(i(a),a.preventDefault())}}}let kX=0;function e2(){return kX+=1,String(kX)}function s$(){document.body.classList.add("fc-not-allowed")}function r$(){document.body.classList.remove("fc-not-allowed")}function Ise(i){i.style.userSelect="none",i.style.webkitUserSelect="none",i.addEventListener("selectstart",b7)}function Pse(i){i.style.userSelect="",i.style.webkitUserSelect="",i.removeEventListener("selectstart",b7)}function Fse(i){i.addEventListener("contextmenu",b7)}function $se(i){i.removeEventListener("contextmenu",b7)}function Lse(i){let a=[],d=[],p,v;for(typeof i=="string"?d=i.split(/\s*,\s*/):typeof i=="function"?d=[i]:Array.isArray(i)&&(d=i),p=0;p<d.length;p+=1)v=d[p],typeof v=="string"?a.push(v.charAt(0)==="-"?{field:v.substring(1),order:-1}:{field:v,order:1}):typeof v=="function"&&a.push({func:v});return a}function Vse(i,a,d){let p,v;for(p=0;p<d.length;p+=1)if(v=Hse(i,a,d[p]),v)return v;return 0}function Hse(i,a,d){return d.func?d.func(i,a):zse(i[d.field],a[d.field])*(d.order||1)}function zse(i,a){return!i&&!a?0:a==null?-1:i==null?1:typeof i=="string"||typeof a=="string"?String(i).localeCompare(String(a)):i-a}function O3(i,a){let d=String(i);return"000".substr(0,a-d.length)+d}function nk(i,a,d){return typeof i=="function"?i(...a):typeof i=="string"?a.reduce((p,v,S)=>p.replace("$"+S,v||""),i):d}function Use(i,a){return i-a}function y7(i){return i%1===0}function Wse(i){let a=i.querySelector(".fc-scrollgrid-shrink-frame"),d=i.querySelector(".fc-scrollgrid-shrink-cushion");if(!a)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!d)throw new Error("needs fc-scrollgrid-shrink-cushion className");return i.getBoundingClientRect().width-a.getBoundingClientRect().width+d.getBoundingClientRect().width}const AX=["years","months","days","milliseconds"],jse=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Gr(i,a){return typeof i=="string"?Zse(i):typeof i=="object"&&i?TX(i):typeof i=="number"?TX({[a||"milliseconds"]:i}):null}function Zse(i){let a=jse.exec(i);if(a){let d=a[1]?-1:1;return{years:0,months:0,days:d*(a[2]?parseInt(a[2],10):0),milliseconds:d*((a[3]?parseInt(a[3],10):0)*60*60*1e3+(a[4]?parseInt(a[4],10):0)*60*1e3+(a[5]?parseInt(a[5],10):0)*1e3+(a[6]?parseInt(a[6],10):0))}}return null}function TX(i){let a={years:i.years||i.year||0,months:i.months||i.month||0,days:i.days||i.day||0,milliseconds:(i.hours||i.hour||0)*60*60*1e3+(i.minutes||i.minute||0)*60*1e3+(i.seconds||i.second||0)*1e3+(i.milliseconds||i.millisecond||i.ms||0)},d=i.weeks||i.week;return d&&(a.days+=d*7,a.specifiedWeeks=!0),a}function Gse(i,a){return i.years===a.years&&i.months===a.months&&i.days===a.days&&i.milliseconds===a.milliseconds}function a$(i,a){return{years:i.years+a.years,months:i.months+a.months,days:i.days+a.days,milliseconds:i.milliseconds+a.milliseconds}}function qse(i,a){return{years:i.years-a.years,months:i.months-a.months,days:i.days-a.days,milliseconds:i.milliseconds-a.milliseconds}}function Kse(i,a){return{years:i.years*a,months:i.months*a,days:i.days*a,milliseconds:i.milliseconds*a}}function Yse(i){return B3(i)/365}function Xse(i){return B3(i)/30}function B3(i){return Zh(i)/864e5}function Zh(i){return i.years*(365*864e5)+i.months*(30*864e5)+i.days*864e5+i.milliseconds}function l$(i,a){let d=null;for(let p=0;p<AX.length;p+=1){let v=AX[p];if(a[v]){let S=i[v]/a[v];if(!y7(S)||d!==null&&d!==S)return null;d=S}else if(i[v])return null}return d}function i$(i){let a=i.milliseconds;if(a){if(a%1e3!==0)return{unit:"millisecond",value:a};if(a%(1e3*60)!==0)return{unit:"second",value:a/1e3};if(a%(1e3*60*60)!==0)return{unit:"minute",value:a/(1e3*60)};if(a)return{unit:"hour",value:a/(1e3*60*60)}}return i.days?i.specifiedWeeks&&i.days%7===0?{unit:"week",value:i.days/7}:{unit:"day",value:i.days}:i.months?{unit:"month",value:i.months}:i.years?{unit:"year",value:i.years}:{unit:"millisecond",value:0}}function Mb(i,a,d){if(i===a)return!0;let p=i.length,v;if(p!==a.length)return!1;for(v=0;v<p;v+=1)if(!(d?d(i[v],a[v]):i[v]===a[v]))return!1;return!0}const Qse=["sun","mon","tue","wed","thu","fri","sat"];function DX(i,a){let d=Pb(i);return d[2]+=a*7,df(d)}function Hu(i,a){let d=Pb(i);return d[2]+=a,df(d)}function Ib(i,a){let d=Pb(i);return d[6]+=a,df(d)}function Jse(i,a){return t2(i,a)/7}function t2(i,a){return(a.valueOf()-i.valueOf())/(1e3*60*60*24)}function ere(i,a){return(a.valueOf()-i.valueOf())/(1e3*60*60)}function tre(i,a){return(a.valueOf()-i.valueOf())/(1e3*60)}function nre(i,a){return(a.valueOf()-i.valueOf())/1e3}function ore(i,a){let d=kl(i),p=kl(a);return{years:0,months:0,days:Math.round(t2(d,p)),milliseconds:a.valueOf()-p.valueOf()-(i.valueOf()-d.valueOf())}}function sre(i,a){let d=v7(i,a);return d!==null&&d%7===0?d/7:null}function v7(i,a){return Fb(i)===Fb(a)?Math.round(t2(i,a)):null}function kl(i){return df([i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()])}function rre(i){return df([i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours()])}function are(i){return df([i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes()])}function lre(i){return df([i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds()])}function ire(i,a,d){let p=i.getUTCFullYear(),v=c$(i,p,a,d);if(v<1)return c$(i,p-1,a,d);let S=c$(i,p+1,a,d);return S>=1?Math.min(v,S):v}function c$(i,a,d,p){let v=df([a,0,1+cre(a,d,p)]),S=kl(i),E=Math.round(t2(v,S));return Math.floor(E/7)+1}function cre(i,a,d){let p=7+a-d;return-((7+df([i,0,p]).getUTCDay()-a)%7)+p-1}function NX(i){return[i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()]}function RX(i){return new Date(i[0],i[1]||0,i[2]==null?1:i[2],i[3]||0,i[4]||0,i[5]||0)}function Pb(i){return[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()]}function df(i){return i.length===1&&(i=i.concat([0])),new Date(Date.UTC(...i))}function OX(i){return!isNaN(i.valueOf())}function Fb(i){return i.getUTCHours()*1e3*60*60+i.getUTCMinutes()*1e3*60+i.getUTCSeconds()*1e3+i.getUTCMilliseconds()}function BX(i,a,d=!1){let p=i.toISOString();return p=p.replace(".000",""),d&&(p=p.replace("T00:00:00Z","")),p.length>10&&(a==null?p=p.replace("Z",""):a!==0&&(p=p.replace("Z",d$(a,!0)))),p}function u$(i){return i.toISOString().replace(/T.*$/,"")}function ure(i){return i.toISOString().match(/^\d{4}-\d{2}/)[0]}function dre(i){return O3(i.getUTCHours(),2)+":"+O3(i.getUTCMinutes(),2)+":"+O3(i.getUTCSeconds(),2)}function d$(i,a=!1){let d=i<0?"-":"+",p=Math.abs(i),v=Math.floor(p/60),S=Math.round(p%60);return a?`${d+O3(v,2)}:${O3(S,2)}`:`GMT${d}${v}${S?`:${O3(S,2)}`:""}`}function Ts(i,a,d){let p,v;return function(...S){if(!p)v=i.apply(this,S);else if(!Mb(p,S)){d&&d(v);let E=i.apply(this,S);(!a||!a(E,v))&&(v=E)}return p=S,v}}function C7(i,a,d){let p,v;return S=>{if(!p)v=i.call(this,S);else if(!cg(p,S)){d&&d(v);let E=i.call(this,S);(!a||!a(E,v))&&(v=E)}return p=S,v}}const MX={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},w7={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},_7=/\s*([ap])\.?m\.?/i,fre=/,/g,mre=/\s+/g,hre=/\u200e/g,pre=/UTC|GMT/;class gre{constructor(a){let d={},p={},v=0;for(let S in a)S in MX?(p[S]=a[S],v=Math.max(MX[S],v)):(d[S]=a[S],S in w7&&(v=Math.max(w7[S],v)));this.standardDateProps=d,this.extendedSettings=p,this.severity=v,this.buildFormattingFunc=Ts(IX)}format(a,d){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,d)(a)}formatRange(a,d,p,v){let{standardDateProps:S,extendedSettings:E}=this,A=_re(a.marker,d.marker,p.calendarSystem);if(!A)return this.format(a,p);let $=A;$>1&&(S.year==="numeric"||S.year==="2-digit")&&(S.month==="numeric"||S.month==="2-digit")&&(S.day==="numeric"||S.day==="2-digit")&&($=1);let L=this.format(a,p),z=this.format(d,p);if(L===z)return L;let se=Sre(S,$),oe=IX(se,E,p),Z=oe(a),X=oe(d),le=xre(L,Z,z,X),J=E.separator||v||p.defaultSeparator||"";return le?le.before+Z+J+X+le.after:L+J+z}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function IX(i,a,d){let p=Object.keys(i).length;return p===1&&i.timeZoneName==="short"?v=>d$(v.timeZoneOffset):p===0&&a.week?v=>wre(d.computeWeekNumber(v.marker),d.weekText,d.weekTextLong,d.locale,a.week):bre(i,a,d)}function bre(i,a,d){i=Object.assign({},i),a=Object.assign({},a),yre(i,a),i.timeZone="UTC";let p=new Intl.DateTimeFormat(d.locale.codes,i),v;if(a.omitZeroMinute){let S=Object.assign({},i);delete S.minute,v=new Intl.DateTimeFormat(d.locale.codes,S)}return S=>{let{marker:E}=S,A;v&&!E.getUTCMinutes()?A=v:A=p;let $=A.format(E);return vre($,S,i,a,d)}}function yre(i,a){i.timeZoneName&&(i.hour||(i.hour="2-digit"),i.minute||(i.minute="2-digit")),i.timeZoneName==="long"&&(i.timeZoneName="short"),a.omitZeroMinute&&(i.second||i.millisecond)&&delete a.omitZeroMinute}function vre(i,a,d,p,v){return i=i.replace(hre,""),d.timeZoneName==="short"&&(i=Cre(i,v.timeZone==="UTC"||a.timeZoneOffset==null?"UTC":d$(a.timeZoneOffset))),p.omitCommas&&(i=i.replace(fre,"").trim()),p.omitZeroMinute&&(i=i.replace(":00","")),p.meridiem===!1?i=i.replace(_7,"").trim():p.meridiem==="narrow"?i=i.replace(_7,(S,E)=>E.toLocaleLowerCase()):p.meridiem==="short"?i=i.replace(_7,(S,E)=>`${E.toLocaleLowerCase()}m`):p.meridiem==="lowercase"&&(i=i.replace(_7,S=>S.toLocaleLowerCase())),i=i.replace(mre," "),i=i.trim(),i}function Cre(i,a){let d=!1;return i=i.replace(pre,()=>(d=!0,a)),d||(i+=` ${a}`),i}function wre(i,a,d,p,v){let S=[];return v==="long"?S.push(d):(v==="short"||v==="narrow")&&S.push(a),(v==="long"||v==="short")&&S.push(" "),S.push(p.simpleNumberFormat.format(i)),p.options.direction==="rtl"&&S.reverse(),S.join("")}function _re(i,a,d){return d.getMarkerYear(i)!==d.getMarkerYear(a)?5:d.getMarkerMonth(i)!==d.getMarkerMonth(a)?4:d.getMarkerDay(i)!==d.getMarkerDay(a)?2:Fb(i)!==Fb(a)?1:0}function Sre(i,a){let d={};for(let p in i)(!(p in w7)||w7[p]<=a)&&(d[p]=i[p]);return d}function xre(i,a,d,p){let v=0;for(;v<i.length;){let S=i.indexOf(a,v);if(S===-1)break;let E=i.substr(0,S);v=S+a.length;let A=i.substr(v),$=0;for(;$<d.length;){let L=d.indexOf(p,$);if(L===-1)break;let z=d.substr(0,L);$=L+p.length;let se=d.substr($);if(E===z&&A===se)return{before:E,after:A}}}return null}function PX(i,a){let d=a.markerToArray(i.marker);return{marker:i.marker,timeZoneOffset:i.timeZoneOffset,array:d,year:d[0],month:d[1],day:d[2],hour:d[3],minute:d[4],second:d[5],millisecond:d[6]}}function S7(i,a,d,p){let v=PX(i,d.calendarSystem),S=a?PX(a,d.calendarSystem):null;return{date:v,start:v,end:S,timeZone:d.timeZone,localeCodes:d.locale.codes,defaultSeparator:p||d.defaultSeparator}}class Ere{constructor(a){this.cmdStr=a}format(a,d,p){return d.cmdFormatter(this.cmdStr,S7(a,null,d,p))}formatRange(a,d,p,v){return p.cmdFormatter(this.cmdStr,S7(a,d,p,v))}}class kre{constructor(a){this.func=a}format(a,d,p){return this.func(S7(a,null,d,p))}formatRange(a,d,p,v){return this.func(S7(a,d,p,v))}}function Ci(i){return typeof i=="object"&&i?new gre(i):typeof i=="string"?new Ere(i):typeof i=="function"?new kre(i):null}const FX={navLinkDayClick:jt,navLinkWeekClick:jt,duration:Gr,bootstrapFontAwesome:jt,buttonIcons:jt,customButtons:jt,defaultAllDayEventDuration:Gr,defaultTimedEventDuration:Gr,nextDayThreshold:Gr,scrollTime:Gr,scrollTimeReset:Boolean,slotMinTime:Gr,slotMaxTime:Gr,dayPopoverFormat:Ci,slotDuration:Gr,snapDuration:Gr,headerToolbar:jt,footerToolbar:jt,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Ci,dayHeaderClassNames:jt,dayHeaderContent:jt,dayHeaderDidMount:jt,dayHeaderWillUnmount:jt,dayCellClassNames:jt,dayCellContent:jt,dayCellDidMount:jt,dayCellWillUnmount:jt,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:jt,weekNumbers:Boolean,weekNumberClassNames:jt,weekNumberContent:jt,weekNumberDidMount:jt,weekNumberWillUnmount:jt,editable:Boolean,viewClassNames:jt,viewDidMount:jt,viewWillUnmount:jt,nowIndicator:Boolean,nowIndicatorClassNames:jt,nowIndicatorContent:jt,nowIndicatorDidMount:jt,nowIndicatorWillUnmount:jt,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:jt,locale:jt,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:jt,eventOrder:Lse,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:jt,contentHeight:jt,direction:String,weekNumberFormat:Ci,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:jt,initialDate:jt,now:jt,eventDataTransform:jt,stickyHeaderDates:jt,stickyFooterScrollbar:jt,viewHeight:jt,defaultAllDay:Boolean,eventSourceFailure:jt,eventSourceSuccess:jt,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:jt,eventConstraint:jt,eventAllow:jt,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:jt,eventContent:jt,eventDidMount:jt,eventWillUnmount:jt,selectConstraint:jt,selectOverlap:jt,selectAllow:jt,droppable:Boolean,unselectCancel:String,slotLabelFormat:jt,slotLaneClassNames:jt,slotLaneContent:jt,slotLaneDidMount:jt,slotLaneWillUnmount:jt,slotLabelClassNames:jt,slotLabelContent:jt,slotLabelDidMount:jt,slotLabelWillUnmount:jt,dayMaxEvents:jt,dayMaxEventRows:jt,dayMinWidth:Number,slotLabelInterval:Gr,allDayText:String,allDayClassNames:jt,allDayContent:jt,allDayDidMount:jt,allDayWillUnmount:jt,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Ci,rerenderDelay:Number,moreLinkText:jt,moreLinkHint:jt,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:jt,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Gr,hiddenDays:jt,fixedWeekCount:Boolean,validRange:jt,visibleRange:jt,titleFormat:jt,eventInteractive:Boolean,noEventsText:String,viewHint:jt,navLinkHint:jt,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:jt,moreLinkClassNames:jt,moreLinkContent:jt,moreLinkDidMount:jt,moreLinkWillUnmount:jt,monthStartFormat:Ci,handleCustomRendering:jt,customRenderingMetaMap:jt,customRenderingReplaces:Boolean},ok={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},$X={datesSet:jt,eventsSet:jt,eventAdd:jt,eventChange:jt,eventRemove:jt,windowResize:jt,eventClick:jt,eventMouseEnter:jt,eventMouseLeave:jt,select:jt,unselect:jt,loading:jt,_unmount:jt,_beforeprint:jt,_afterprint:jt,_noEventDrop:jt,_noEventResize:jt,_resize:jt,_scrollRequest:jt},LX={buttonText:jt,buttonHints:jt,views:jt,plugins:jt,initialEvents:jt,events:jt,eventSources:jt},n2={headerToolbar:o2,footerToolbar:o2,buttonText:o2,buttonHints:o2,buttonIcons:o2,dateIncrement:o2,plugins:x7,events:x7,eventSources:x7,resources:x7};function o2(i,a){return typeof i=="object"&&typeof a=="object"&&i&&a?cg(i,a):i===a}function x7(i,a){return Array.isArray(i)&&Array.isArray(a)?Mb(i,a):i===a}const Are={type:String,component:jt,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:jt,usesMinMaxTime:Boolean,classNames:jt,content:jt,didMount:jt,willUnmount:jt};function f$(i){return h$(i,n2)}function m$(i,a){let d={},p={};for(let v in a)v in i&&(d[v]=a[v](i[v]));for(let v in i)v in a||(p[v]=i[v]);return{refined:d,extra:p}}function jt(i){return i}const{hasOwnProperty:E7}=Object.prototype;function h$(i,a){let d={};if(a){for(let p in a)if(a[p]===o2){let v=[];for(let S=i.length-1;S>=0;S-=1){let E=i[S][p];if(typeof E=="object"&&E)v.unshift(E);else if(E!==void 0){d[p]=E;break}}v.length&&(d[p]=h$(v))}}for(let p=i.length-1;p>=0;p-=1){let v=i[p];for(let S in v)S in d||(d[S]=v[S])}return d}function s2(i,a){let d={};for(let p in i)a(i[p],p)&&(d[p]=i[p]);return d}function $1(i,a){let d={};for(let p in i)d[p]=a(i[p],p);return d}function VX(i){let a={};for(let d of i)a[d]=!0;return a}function p$(i){let a=[];for(let d in i)a.push(i[d]);return a}function cg(i,a){if(i===a)return!0;for(let d in i)if(E7.call(i,d)&&!(d in a))return!1;for(let d in a)if(E7.call(a,d)&&i[d]!==a[d])return!1;return!0}const Tre=/^on[A-Z]/;function Dre(i,a){const d=g$(i,a);for(let p of d)if(!Tre.test(p))return!1;return!0}function g$(i,a){let d=[];for(let p in i)E7.call(i,p)&&(p in a||d.push(p));for(let p in a)E7.call(a,p)&&i[p]!==a[p]&&d.push(p);return d}function b$(i,a,d={}){if(i===a)return!0;for(let p in a)if(!(p in i&&Nre(i[p],a[p],d[p])))return!1;for(let p in i)if(!(p in a))return!1;return!0}function Nre(i,a,d){return i===a||d===!0?!0:d?d(i,a):!1}function Rre(i,a=0,d,p=1){let v=[];d==null&&(d=Object.keys(i).length);for(let S=a;S<d;S+=p){let E=i[S];E!==void 0&&v.push(E)}return v}let HX={};function Ore(i,a){HX[i]=a}function Bre(i){return new HX[i]}class Mre{getMarkerYear(a){return a.getUTCFullYear()}getMarkerMonth(a){return a.getUTCMonth()}getMarkerDay(a){return a.getUTCDate()}arrayToMarker(a){return df(a)}markerToArray(a){return Pb(a)}}Ore("gregory",Mre);const Ire=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Pre(i){let a=Ire.exec(i);if(a){let d=new Date(Date.UTC(Number(a[1]),a[3]?Number(a[3])-1:0,Number(a[5]||1),Number(a[7]||0),Number(a[8]||0),Number(a[10]||0),a[12]?+`0.${a[12]}`*1e3:0));if(OX(d)){let p=null;return a[13]&&(p=(a[15]==="-"?-1:1)*(Number(a[16]||0)*60+Number(a[18]||0))),{marker:d,isTimeUnspecified:!a[6],timeZoneOffset:p}}}return null}class Fre{constructor(a){let d=this.timeZone=a.timeZone,p=d!=="local"&&d!=="UTC";a.namedTimeZoneImpl&&p&&(this.namedTimeZoneImpl=new a.namedTimeZoneImpl(d)),this.canComputeOffset=!!(!p||this.namedTimeZoneImpl),this.calendarSystem=Bre(a.calendarSystem),this.locale=a.locale,this.weekDow=a.locale.week.dow,this.weekDoy=a.locale.week.doy,a.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof a.firstDay=="number"&&(this.weekDow=a.firstDay),typeof a.weekNumberCalculation=="function"&&(this.weekNumberFunc=a.weekNumberCalculation),this.weekText=a.weekText!=null?a.weekText:a.locale.options.weekText,this.weekTextLong=(a.weekTextLong!=null?a.weekTextLong:a.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=a.cmdFormatter,this.defaultSeparator=a.defaultSeparator}createMarker(a){let d=this.createMarkerMeta(a);return d===null?null:d.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):df(NX(new Date))}createMarkerMeta(a){if(typeof a=="string")return this.parse(a);let d=null;return typeof a=="number"?d=this.timestampToMarker(a):a instanceof Date?(a=a.valueOf(),isNaN(a)||(d=this.timestampToMarker(a))):Array.isArray(a)&&(d=df(a)),d===null||!OX(d)?null:{marker:d,isTimeUnspecified:!1,forcedTzo:null}}parse(a){let d=Pre(a);if(d===null)return null;let{marker:p}=d,v=null;return d.timeZoneOffset!==null&&(this.canComputeOffset?p=this.timestampToMarker(p.valueOf()-d.timeZoneOffset*60*1e3):v=d.timeZoneOffset),{marker:p,isTimeUnspecified:d.isTimeUnspecified,forcedTzo:v}}getYear(a){return this.calendarSystem.getMarkerYear(a)}getMonth(a){return this.calendarSystem.getMarkerMonth(a)}getDay(a){return this.calendarSystem.getMarkerDay(a)}add(a,d){let p=this.calendarSystem.markerToArray(a);return p[0]+=d.years,p[1]+=d.months,p[2]+=d.days,p[6]+=d.milliseconds,this.calendarSystem.arrayToMarker(p)}subtract(a,d){let p=this.calendarSystem.markerToArray(a);return p[0]-=d.years,p[1]-=d.months,p[2]-=d.days,p[6]-=d.milliseconds,this.calendarSystem.arrayToMarker(p)}addYears(a,d){let p=this.calendarSystem.markerToArray(a);return p[0]+=d,this.calendarSystem.arrayToMarker(p)}addMonths(a,d){let p=this.calendarSystem.markerToArray(a);return p[1]+=d,this.calendarSystem.arrayToMarker(p)}diffWholeYears(a,d){let{calendarSystem:p}=this;return Fb(a)===Fb(d)&&p.getMarkerDay(a)===p.getMarkerDay(d)&&p.getMarkerMonth(a)===p.getMarkerMonth(d)?p.getMarkerYear(d)-p.getMarkerYear(a):null}diffWholeMonths(a,d){let{calendarSystem:p}=this;return Fb(a)===Fb(d)&&p.getMarkerDay(a)===p.getMarkerDay(d)?p.getMarkerMonth(d)-p.getMarkerMonth(a)+(p.getMarkerYear(d)-p.getMarkerYear(a))*12:null}greatestWholeUnit(a,d){let p=this.diffWholeYears(a,d);return p!==null?{unit:"year",value:p}:(p=this.diffWholeMonths(a,d),p!==null?{unit:"month",value:p}:(p=sre(a,d),p!==null?{unit:"week",value:p}:(p=v7(a,d),p!==null?{unit:"day",value:p}:(p=ere(a,d),y7(p)?{unit:"hour",value:p}:(p=tre(a,d),y7(p)?{unit:"minute",value:p}:(p=nre(a,d),y7(p)?{unit:"second",value:p}:{unit:"millisecond",value:d.valueOf()-a.valueOf()}))))))}countDurationsBetween(a,d,p){let v;return p.years&&(v=this.diffWholeYears(a,d),v!==null)?v/Yse(p):p.months&&(v=this.diffWholeMonths(a,d),v!==null)?v/Xse(p):p.days&&(v=v7(a,d),v!==null)?v/B3(p):(d.valueOf()-a.valueOf())/Zh(p)}startOf(a,d){return d==="year"?this.startOfYear(a):d==="month"?this.startOfMonth(a):d==="week"?this.startOfWeek(a):d==="day"?kl(a):d==="hour"?rre(a):d==="minute"?are(a):d==="second"?lre(a):null}startOfYear(a){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(a)])}startOfMonth(a){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(a),this.calendarSystem.getMarkerMonth(a)])}startOfWeek(a){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(a),this.calendarSystem.getMarkerMonth(a),a.getUTCDate()-(a.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(a){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(a)):ire(a,this.weekDow,this.weekDoy)}format(a,d,p={}){return d.format({marker:a,timeZoneOffset:p.forcedTzo!=null?p.forcedTzo:this.offsetForMarker(a)},this)}formatRange(a,d,p,v={}){return v.isEndExclusive&&(d=Ib(d,-1)),p.formatRange({marker:a,timeZoneOffset:v.forcedStartTzo!=null?v.forcedStartTzo:this.offsetForMarker(a)},{marker:d,timeZoneOffset:v.forcedEndTzo!=null?v.forcedEndTzo:this.offsetForMarker(d)},this,v.defaultSeparator)}formatIso(a,d={}){let p=null;return d.omitTimeZoneOffset||(d.forcedTzo!=null?p=d.forcedTzo:p=this.offsetForMarker(a)),BX(a,p,d.omitTime)}timestampToMarker(a){return this.timeZone==="local"?df(NX(new Date(a))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(a):df(this.namedTimeZoneImpl.timestampToArray(a))}offsetForMarker(a){return this.timeZone==="local"?-RX(Pb(a)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Pb(a)):null}toDate(a,d){return this.timeZone==="local"?RX(Pb(a)):this.timeZone==="UTC"?new Date(a.valueOf()):this.namedTimeZoneImpl?new Date(a.valueOf()-this.namedTimeZoneImpl.offsetForArray(Pb(a))*1e3*60):new Date(a.valueOf()-(d||0))}}class sk{constructor(a){this.iconOverrideOption&&this.setIconOverride(a[this.iconOverrideOption])}setIconOverride(a){let d,p;if(typeof a=="object"&&a){d=Object.assign({},this.iconClasses);for(p in a)d[p]=this.applyIconOverridePrefix(a[p]);this.iconClasses=d}else a===!1&&(this.iconClasses={})}applyIconOverridePrefix(a){let d=this.iconOverridePrefix;return d&&a.indexOf(d)!==0&&(a=d+a),a}getClass(a){return this.classes[a]||""}getIconClass(a,d){let p;return d&&this.rtlIconClasses?p=this.rtlIconClasses[a]||this.iconClasses[a]:p=this.iconClasses[a],p?`${this.baseIconClass} ${p}`:""}getCustomButtonIconClass(a){let d;return this.iconOverrideCustomButtonOption&&(d=a[this.iconOverrideCustomButtonOption],d)?`${this.baseIconClass} ${this.applyIconOverridePrefix(d)}`:""}}sk.prototype.classes={},sk.prototype.iconClasses={},sk.prototype.baseIconClass="",sk.prototype.iconOverridePrefix="";function k7(i){i();let a=Cs.debounceRendering,d=[];function p(v){d.push(v)}for(Cs.debounceRendering=p,ek(Qe($re,{}),document.createElement("div"));d.length;)d.shift()();Cs.debounceRendering=a}class $re extends em{render(){return Qe("div",{})}componentDidMount(){this.setState({})}}function zX(i){let a=cse(i),d=a.Provider;return a.Provider=function(){let p=!this.getChildContext,v=d.apply(this,arguments);if(p){let S=[];this.shouldComponentUpdate=E=>{this.props.value!==E.value&&S.forEach(A=>{A.context=E.value,A.forceUpdate()})},this.sub=E=>{S.push(E);let A=E.componentWillUnmount;E.componentWillUnmount=()=>{S.splice(S.indexOf(E),1),A&&A.call(E)}}}return v},a}class Lre{constructor(a,d,p,v){this.execFunc=a,this.emitter=d,this.scrollTime=p,this.scrollTimeReset=v,this.handleScrollRequest=S=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},S),this.drain()},d.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(a){a&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const L1=zX({});function Vre(i,a,d,p,v,S,E,A,$,L,z,se,oe){return{dateEnv:v,options:d,pluginHooks:E,emitter:L,dispatch:A,getCurrentData:$,calendarApi:z,viewSpec:i,viewApi:a,dateProfileGenerator:p,theme:S,isRtl:d.direction==="rtl",addResizeHandler(Z){L.on("_resize",Z)},removeResizeHandler(Z){L.off("_resize",Z)},createScrollResponder(Z){return new Lre(Z,L,Gr(d.scrollTime),d.scrollTimeReset)},registerInteractiveComponent:se,unregisterInteractiveComponent:oe}}class r2 extends em{shouldComponentUpdate(a,d){return this.debug&&console.log(g$(a,this.props),g$(d,this.state)),!b$(this.props,a,this.propEquality)||!b$(this.state,d,this.stateEquality)}safeSetState(a){b$(this.state,Object.assign(Object.assign({},this.state),a),this.stateEquality)||this.setState(a)}}r2.addPropsEquality=Hre,r2.addStateEquality=zre,r2.contextType=L1,r2.prototype.propEquality={},r2.prototype.stateEquality={};class Da extends r2{}Da.contextType=L1;function Hre(i){let a=Object.create(this.prototype.propEquality);Object.assign(a,i),this.prototype.propEquality=a}function zre(i){let a=Object.create(this.prototype.stateEquality);Object.assign(a,i),this.prototype.stateEquality=a}function V1(i,a){typeof i=="function"?i(a):i&&(i.current=a)}class y$ extends Da{constructor(){super(...arguments),this.id=e2(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=a=>{const{options:d}=this.context,{generatorName:p}=this.props;(!d.customRenderingReplaces||!v$(p,d))&&this.updateElRef(a)},this.updateElRef=a=>{this.props.elRef&&V1(this.props.elRef,a)}}render(){const{props:a,context:d}=this,{options:p}=d,{customGenerator:v,defaultGenerator:S,renderProps:E}=a,A=UX(a,[],this.handleEl);let $=!1,L,z=[],se;if(v!=null){const oe=typeof v=="function"?v(E,Qe):v;if(oe===!0)$=!0;else{const Z=oe&&typeof oe=="object";Z&&"html"in oe?A.dangerouslySetInnerHTML={__html:oe.html}:Z&&"domNodes"in oe?z=Array.prototype.slice.call(oe.domNodes):(Z?BY(oe):typeof oe!="function")?L=oe:se=oe}}else $=!v$(a.generatorName,p);return $&&S&&(L=S(E)),this.queuedDomNodes=z,this.currentGeneratorMeta=se,Qe(a.elTag,A,L)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(a){var d;const{props:p,context:v}=this,{handleCustomRendering:S,customRenderingMetaMap:E}=v.options;if(S){const A=(d=this.currentGeneratorMeta)!==null&&d!==void 0?d:E==null?void 0:E[p.generatorName];A&&S(Object.assign(Object.assign({id:this.id,isActive:a,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:A},p),{elClasses:(p.elClasses||[]).filter(Ure)}))}}applyQueueudDomNodes(){const{queuedDomNodes:a,currentDomNodes:d}=this,p=this.base;if(!Mb(a,d)){d.forEach(o$);for(let v of a)p.appendChild(v);this.currentDomNodes=a}}}y$.addPropsEquality({elClasses:Mb,elStyle:cg,elAttrs:Dre,renderProps:cg});function v$(i,a){var d;return!!(a.handleCustomRendering&&i&&(!((d=a.customRenderingMetaMap)===null||d===void 0)&&d[i]))}function UX(i,a,d){const p=Object.assign(Object.assign({},i.elAttrs),{ref:d});return(i.elClasses||a)&&(p.className=(i.elClasses||[]).concat(a||[]).concat(p.className||[]).filter(Boolean).join(" ")),i.elStyle&&(p.style=i.elStyle),p}function Ure(i){return!!i}const WX=zX(0);class tm extends em{constructor(){super(...arguments),this.InnerContent=Wre.bind(void 0,this),this.handleEl=a=>{this.el=a,this.props.elRef&&(V1(this.props.elRef,a),a&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:a}=this,d=jre(a.classNameGenerator,a.renderProps);if(a.children){const p=UX(a,d,this.handleEl),v=a.children(this.InnerContent,a.renderProps,p);return a.elTag?Qe(a.elTag,p,v):v}else return Qe(y$,Object.assign(Object.assign({},a),{elRef:this.handleEl,elTag:a.elTag||"div",elClasses:(a.elClasses||[]).concat(d),renderId:this.context}))}componentDidMount(){var a,d;this.el?(d=(a=this.props).didMount)===null||d===void 0||d.call(a,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var a,d;(d=(a=this.props).willUnmount)===null||d===void 0||d.call(a,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}tm.contextType=WX;function Wre(i,a){const d=i.props;return Qe(y$,Object.assign({renderProps:d.renderProps,generatorName:d.generatorName,customGenerator:d.customGenerator,defaultGenerator:d.defaultGenerator,renderId:i.context},a))}function jre(i,a){const d=typeof i=="function"?i(a):i||[];return typeof d=="string"?[d]:d}class A7 extends Da{render(){let{props:a,context:d}=this,{options:p}=d,v={view:d.viewApi};return Qe(tm,Object.assign({},a,{elTag:a.elTag||"div",elClasses:[...jX(a.viewSpec),...a.elClasses||[]],renderProps:v,classNameGenerator:p.viewClassNames,generatorName:void 0,didMount:p.viewDidMount,willUnmount:p.viewWillUnmount}),()=>a.children)}}function jX(i){return[`fc-${i.type}-view`,"fc-view"]}function Zre(i,a){let d=null,p=null;return i.start&&(d=a.createMarker(i.start)),i.end&&(p=a.createMarker(i.end)),!d&&!p||d&&p&&p<d?null:{start:d,end:p}}function ZX(i,a){let d=[],{start:p}=a,v,S;for(i.sort(Gre),v=0;v<i.length;v+=1)S=i[v],S.start>p&&d.push({start:p,end:S.start}),S.end>p&&(p=S.end);return p<a.end&&d.push({start:p,end:a.end}),d}function Gre(i,a){return i.start.valueOf()-a.start.valueOf()}function a2(i,a){let{start:d,end:p}=i,v=null;return a.start!==null&&(d===null?d=a.start:d=new Date(Math.max(d.valueOf(),a.start.valueOf()))),a.end!=null&&(p===null?p=a.end:p=new Date(Math.min(p.valueOf(),a.end.valueOf()))),(d===null||p===null||d<p)&&(v={start:d,end:p}),v}function qre(i,a){return(i.start===null?null:i.start.valueOf())===(a.start===null?null:a.start.valueOf())&&(i.end===null?null:i.end.valueOf())===(a.end===null?null:a.end.valueOf())}function C$(i,a){return(i.end===null||a.start===null||i.end>a.start)&&(i.start===null||a.end===null||i.start<a.end)}function T7(i,a){return(i.start===null||a.start!==null&&a.start>=i.start)&&(i.end===null||a.end!==null&&a.end<=i.end)}function H1(i,a){return(i.start===null||a>=i.start)&&(i.end===null||a<i.end)}function Kre(i,a){return a.start!=null&&i<a.start?a.start:a.end!=null&&i>=a.end?new Date(a.end.valueOf()-1):i}function GX(i){let a=Math.floor(t2(i.start,i.end))||1,d=kl(i.start),p=Hu(d,a);return{start:d,end:p}}function qX(i,a=Gr(0)){let d=null,p=null;if(i.end){p=kl(i.end);let v=i.end.valueOf()-p.valueOf();v&&v>=Zh(a)&&(p=Hu(p,1))}return i.start&&(d=kl(i.start),p&&p<=d&&(p=Hu(d,1))),{start:d,end:p}}function M3(i,a,d,p){return p==="year"?Gr(d.diffWholeYears(i,a),"year"):p==="month"?Gr(d.diffWholeMonths(i,a),"month"):ore(i,a)}function Yre(i,a){switch(a.type){case"CHANGE_DATE":return a.dateMarker;default:return i}}function Xre(i,a){let d=i.initialDate;return d!=null?a.createMarker(d):rk(i.now,a)}function rk(i,a){return typeof i=="function"&&(i=i()),i==null?a.createNowMarker():a.createMarker(i)}class KX{constructor(a){this.props=a,this.nowDate=rk(a.nowInput,a.dateEnv),this.initHiddenDays()}buildPrev(a,d,p){let{dateEnv:v}=this.props,S=v.subtract(v.startOf(d,a.currentRangeUnit),a.dateIncrement);return this.build(S,-1,p)}buildNext(a,d,p){let{dateEnv:v}=this.props,S=v.add(v.startOf(d,a.currentRangeUnit),a.dateIncrement);return this.build(S,1,p)}build(a,d,p=!0){let{props:v}=this,S,E,A,$,L,z;return S=this.buildValidRange(),S=this.trimHiddenDays(S),p&&(a=Kre(a,S)),E=this.buildCurrentRangeInfo(a,d),A=/^(year|month|week|day)$/.test(E.unit),$=this.buildRenderRange(this.trimHiddenDays(E.range),E.unit,A),$=this.trimHiddenDays($),L=$,v.showNonCurrentDates||(L=a2(L,E.range)),L=this.adjustActiveRange(L),L=a2(L,S),z=C$(E.range,S),H1($,a)||(a=$.start),{currentDate:a,validRange:S,currentRange:E.range,currentRangeUnit:E.unit,isRangeAllDay:A,activeRange:L,renderRange:$,slotMinTime:v.slotMinTime,slotMaxTime:v.slotMaxTime,isValid:z,dateIncrement:this.buildDateIncrement(E.duration)}}buildValidRange(){let a=this.props.validRangeInput,d=typeof a=="function"?a.call(this.props.calendarApi,this.nowDate):a;return this.refineRange(d)||{start:null,end:null}}buildCurrentRangeInfo(a,d){let{props:p}=this,v=null,S=null,E=null,A;return p.duration?(v=p.duration,S=p.durationUnit,E=this.buildRangeFromDuration(a,d,v,S)):(A=this.props.dayCount)?(S="day",E=this.buildRangeFromDayCount(a,d,A)):(E=this.buildCustomVisibleRange(a))?S=p.dateEnv.greatestWholeUnit(E.start,E.end).unit:(v=this.getFallbackDuration(),S=i$(v).unit,E=this.buildRangeFromDuration(a,d,v,S)),{duration:v,unit:S,range:E}}getFallbackDuration(){return Gr({day:1})}adjustActiveRange(a){let{dateEnv:d,usesMinMaxTime:p,slotMinTime:v,slotMaxTime:S}=this.props,{start:E,end:A}=a;return p&&(B3(v)<0&&(E=kl(E),E=d.add(E,v)),B3(S)>1&&(A=kl(A),A=Hu(A,-1),A=d.add(A,S))),{start:E,end:A}}buildRangeFromDuration(a,d,p,v){let{dateEnv:S,dateAlignment:E}=this.props,A,$,L;if(!E){let{dateIncrement:se}=this.props;se&&Zh(se)<Zh(p)?E=i$(se).unit:E=v}B3(p)<=1&&this.isHiddenDay(A)&&(A=this.skipHiddenDays(A,d),A=kl(A));function z(){A=S.startOf(a,E),$=S.add(A,p),L={start:A,end:$}}return z(),this.trimHiddenDays(L)||(a=this.skipHiddenDays(a,d),z()),L}buildRangeFromDayCount(a,d,p){let{dateEnv:v,dateAlignment:S}=this.props,E=0,A=a,$;S&&(A=v.startOf(A,S)),A=kl(A),A=this.skipHiddenDays(A,d),$=A;do $=Hu($,1),this.isHiddenDay($)||(E+=1);while(E<p);return{start:A,end:$}}buildCustomVisibleRange(a){let{props:d}=this,p=d.visibleRangeInput,v=typeof p=="function"?p.call(d.calendarApi,d.dateEnv.toDate(a)):p,S=this.refineRange(v);return S&&(S.start==null||S.end==null)?null:S}buildRenderRange(a,d,p){return a}buildDateIncrement(a){let{dateIncrement:d}=this.props,p;return d||((p=this.props.dateAlignment)?Gr(1,p):a||Gr({days:1}))}refineRange(a){if(a){let d=Zre(a,this.props.dateEnv);return d&&(d=qX(d)),d}return null}initHiddenDays(){let a=this.props.hiddenDays||[],d=[],p=0,v;for(this.props.weekends===!1&&a.push(0,6),v=0;v<7;v+=1)(d[v]=a.indexOf(v)!==-1)||(p+=1);if(!p)throw new Error("invalid hiddenDays");this.isHiddenDayHash=d}trimHiddenDays(a){let{start:d,end:p}=a;return d&&(d=this.skipHiddenDays(d)),p&&(p=this.skipHiddenDays(p,-1,!0)),d==null||p==null||d<p?{start:d,end:p}:null}isHiddenDay(a){return a instanceof Date&&(a=a.getUTCDay()),this.isHiddenDayHash[a]}skipHiddenDays(a,d=1,p=!1){for(;this.isHiddenDayHash[(a.getUTCDay()+(p?d:0)+7)%7];)a=Hu(a,d);return a}}function w$(i,a,d,p){return{instanceId:e2(),defId:i,range:a,forcedStartTzo:d??null,forcedEndTzo:p??null}}function Qre(i,a,d,p){for(let v=0;v<p.length;v+=1){let S=p[v].parse(i,d);if(S){let{allDay:E}=i;return E==null&&(E=a,E==null&&(E=S.allDayGuess,E==null&&(E=!1))),{allDay:E,duration:S.duration,typeData:S.typeData,typeId:v}}}return null}function l2(i,a,d){let{dateEnv:p,pluginHooks:v,options:S}=d,{defs:E,instances:A}=i;A=s2(A,$=>!E[$.defId].recurringDef);for(let $ in E){let L=E[$];if(L.recurringDef){let{duration:z}=L.recurringDef;z||(z=L.allDay?S.defaultAllDayEventDuration:S.defaultTimedEventDuration);let se=Jre(L,z,a,p,v.recurringTypes);for(let oe of se){let Z=w$($,{start:oe,end:p.add(oe,z)});A[Z.instanceId]=Z}}}return{defs:E,instances:A}}function Jre(i,a,d,p,v){let E=v[i.recurringDef.typeId].expand(i.recurringDef.typeData,{start:p.subtract(d.start,a),end:d.end},p);return i.allDay&&(E=E.map(kl)),E}const D7={id:String,groupId:String,title:String,url:String,interactive:Boolean},YX={start:jt,end:jt,date:jt,allDay:Boolean},eae=Object.assign(Object.assign(Object.assign({},D7),YX),{extendedProps:jt});function XX(i,a,d,p,v=_$(d),S,E){let{refined:A,extra:$}=QX(i,d,v),L=nae(a,d),z=Qre(A,L,d.dateEnv,d.pluginHooks.recurringTypes);if(z){let oe=S$(A,$,a?a.sourceId:"",z.allDay,!!z.duration,d,S);return oe.recurringDef={typeId:z.typeId,typeData:z.typeData,duration:z.duration},{def:oe,instance:null}}let se=tae(A,L,d,p);if(se){let oe=S$(A,$,a?a.sourceId:"",se.allDay,se.hasEnd,d,S),Z=w$(oe.defId,se.range,se.forcedStartTzo,se.forcedEndTzo);return E&&oe.publicId&&E[oe.publicId]&&(Z.instanceId=E[oe.publicId]),{def:oe,instance:Z}}return null}function QX(i,a,d=_$(a)){return m$(i,d)}function _$(i){return Object.assign(Object.assign(Object.assign({},R7),eae),i.pluginHooks.eventRefiners)}function S$(i,a,d,p,v,S,E){let A={title:i.title||"",groupId:i.groupId||"",publicId:i.id||"",url:i.url||"",recurringDef:null,defId:(E&&i.id?E[i.id]:"")||e2(),sourceId:d,allDay:p,hasEnd:v,interactive:i.interactive,ui:O7(i,S),extendedProps:Object.assign(Object.assign({},i.extendedProps||{}),a)};for(let $ of S.pluginHooks.eventDefMemberAdders)Object.assign(A,$(i));return Object.freeze(A.ui.classNames),Object.freeze(A.extendedProps),A}function tae(i,a,d,p){let{allDay:v}=i,S,E=null,A=!1,$,L=null,z=i.start!=null?i.start:i.date;if(S=d.dateEnv.createMarkerMeta(z),S)E=S.marker;else if(!p)return null;return i.end!=null&&($=d.dateEnv.createMarkerMeta(i.end)),v==null&&(a!=null?v=a:v=(!S||S.isTimeUnspecified)&&(!$||$.isTimeUnspecified)),v&&E&&(E=kl(E)),$&&(L=$.marker,v&&(L=kl(L)),E&&L<=E&&(L=null)),L?A=!0:p||(A=d.options.forceEventDuration||!1,L=d.dateEnv.add(E,v?d.options.defaultAllDayEventDuration:d.options.defaultTimedEventDuration)),{allDay:v,hasEnd:A,range:{start:E,end:L},forcedStartTzo:S?S.forcedTzo:null,forcedEndTzo:$?$.forcedTzo:null}}function nae(i,a){let d=null;return i&&(d=i.defaultAllDay),d==null&&(d=a.options.defaultAllDay),d}function ak(i,a,d,p,v,S){let E=nm(),A=_$(d);for(let $ of i){let L=XX($,a,d,p,A,v,S);L&&x$(L,E)}return E}function x$(i,a=nm()){return a.defs[i.def.defId]=i.def,i.instance&&(a.instances[i.instance.instanceId]=i.instance),a}function E$(i,a){let d=i.instances[a];if(d){let p=i.defs[d.defId],v=N7(i,S=>oae(p,S));return v.defs[p.defId]=p,v.instances[d.instanceId]=d,v}return nm()}function oae(i,a){return!!(i.groupId&&i.groupId===a.groupId)}function nm(){return{defs:{},instances:{}}}function k$(i,a){return{defs:Object.assign(Object.assign({},i.defs),a.defs),instances:Object.assign(Object.assign({},i.instances),a.instances)}}function N7(i,a){let d=s2(i.defs,a),p=s2(i.instances,v=>d[v.defId]);return{defs:d,instances:p}}function sae(i,a){let{defs:d,instances:p}=i,v={},S={};for(let E in d)a.defs[E]||(v[E]=d[E]);for(let E in p)!a.instances[E]&&v[p[E].defId]&&(S[E]=p[E]);return{defs:v,instances:S}}function rae(i,a){return Array.isArray(i)?ak(i,null,a,!0):typeof i=="object"&&i?ak([i],null,a,!0):i!=null?String(i):null}function JX(i){return Array.isArray(i)?i:typeof i=="string"?i.split(/\s+/):[]}const R7={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:jt,overlap:jt,allow:jt,className:JX,classNames:JX,color:String,backgroundColor:String,borderColor:String,textColor:String},aae={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function O7(i,a){let d=rae(i.constraint,a);return{display:i.display||null,startEditable:i.startEditable!=null?i.startEditable:i.editable,durationEditable:i.durationEditable!=null?i.durationEditable:i.editable,constraints:d!=null?[d]:[],overlap:i.overlap!=null?i.overlap:null,allows:i.allow!=null?[i.allow]:[],backgroundColor:i.backgroundColor||i.color||"",borderColor:i.borderColor||i.color||"",textColor:i.textColor||"",classNames:(i.className||[]).concat(i.classNames||[])}}function eQ(i){return i.reduce(lae,aae)}function lae(i,a){return{display:a.display!=null?a.display:i.display,startEditable:a.startEditable!=null?a.startEditable:i.startEditable,durationEditable:a.durationEditable!=null?a.durationEditable:i.durationEditable,constraints:i.constraints.concat(a.constraints),overlap:typeof a.overlap=="boolean"?a.overlap:i.overlap,allows:i.allows.concat(a.allows),backgroundColor:a.backgroundColor||i.backgroundColor,borderColor:a.borderColor||i.borderColor,textColor:a.textColor||i.textColor,classNames:i.classNames.concat(a.classNames)}}const iae={id:String,defaultAllDay:Boolean,url:String,format:String,events:jt,eventDataTransform:jt,success:jt,failure:jt};function tQ(i,a,d=nQ(a)){let p;if(typeof i=="string"?p={url:i}:typeof i=="function"||Array.isArray(i)?p={events:i}:typeof i=="object"&&i&&(p=i),p){let{refined:v,extra:S}=m$(p,d),E=cae(v,a);if(E)return{_raw:i,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:v.defaultAllDay,eventDataTransform:v.eventDataTransform,success:v.success,failure:v.failure,publicId:v.id||"",sourceId:e2(),sourceDefId:E.sourceDefId,meta:E.meta,ui:O7(v,a),extendedProps:S}}return null}function nQ(i){return Object.assign(Object.assign(Object.assign({},R7),iae),i.pluginHooks.eventSourceRefiners)}function cae(i,a){let d=a.pluginHooks.eventSourceDefs;for(let p=d.length-1;p>=0;p-=1){let S=d[p].parseMeta(i);if(S)return{sourceDefId:p,meta:S}}return null}function uae(i,a,d,p,v){switch(a.type){case"RECEIVE_EVENTS":return dae(i,d[a.sourceId],a.fetchId,a.fetchRange,a.rawEvents,v);case"RESET_RAW_EVENTS":return fae(i,d[a.sourceId],a.rawEvents,p.activeRange,v);case"ADD_EVENTS":return mae(i,a.eventStore,p?p.activeRange:null,v);case"RESET_EVENTS":return a.eventStore;case"MERGE_EVENTS":return k$(i,a.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return p?l2(i,p.activeRange,v):i;case"REMOVE_EVENTS":return sae(i,a.eventStore);case"REMOVE_EVENT_SOURCE":return aQ(i,a.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return N7(i,S=>!S.sourceId);case"REMOVE_ALL_EVENTS":return nm();default:return i}}function dae(i,a,d,p,v,S){if(a&&d===a.latestFetchId){let E=ak(oQ(v,a,S),a,S);return p&&(E=l2(E,p,S)),k$(aQ(i,a.sourceId),E)}return i}function fae(i,a,d,p,v){const{defIdMap:S,instanceIdMap:E}=pae(i);let A=ak(oQ(d,a,v),a,v,!1,S,E);return l2(A,p,v)}function oQ(i,a,d){let p=d.options.eventDataTransform,v=a?a.eventDataTransform:null;return v&&(i=sQ(i,v)),p&&(i=sQ(i,p)),i}function sQ(i,a){let d;if(!a)d=i;else{d=[];for(let p of i){let v=a(p);v?d.push(v):v==null&&d.push(p)}}return d}function mae(i,a,d,p){return d&&(a=l2(a,d,p)),k$(i,a)}function rQ(i,a,d){let{defs:p}=i,v=$1(i.instances,S=>p[S.defId].allDay?S:Object.assign(Object.assign({},S),{range:{start:d.createMarker(a.toDate(S.range.start,S.forcedStartTzo)),end:d.createMarker(a.toDate(S.range.end,S.forcedEndTzo))},forcedStartTzo:d.canComputeOffset?null:S.forcedStartTzo,forcedEndTzo:d.canComputeOffset?null:S.forcedEndTzo}));return{defs:p,instances:v}}function aQ(i,a){return N7(i,d=>d.sourceId!==a)}function hae(i,a){return{defs:i.defs,instances:s2(i.instances,d=>!a[d.instanceId])}}function pae(i){const{defs:a,instances:d}=i,p={},v={};for(let S in a){const E=a[S],{publicId:A}=E;A&&(p[A]=S)}for(let S in d){const E=d[S],A=a[E.defId],{publicId:$}=A;$&&(v[$]=S)}return{defIdMap:p,instanceIdMap:v}}class B7{constructor(){this.handlers={},this.thisContext=null}setThisContext(a){this.thisContext=a}setOptions(a){this.options=a}on(a,d){gae(this.handlers,a,d)}off(a,d){bae(this.handlers,a,d)}trigger(a,...d){let p=this.handlers[a]||[],v=this.options&&this.options[a],S=[].concat(v||[],p);for(let E of S)E.apply(this.thisContext,d)}hasHandlers(a){return!!(this.handlers[a]&&this.handlers[a].length||this.options&&this.options[a])}}function gae(i,a,d){(i[a]||(i[a]=[])).push(d)}function bae(i,a,d){d?i[a]&&(i[a]=i[a].filter(p=>p!==d)):delete i[a]}const yae={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function vae(i,a){return ak(Cae(i),null,a)}function Cae(i){let a;return i===!0?a=[{}]:Array.isArray(i)?a=i.filter(d=>d.daysOfWeek):typeof i=="object"&&i?a=[i]:a=[],a=a.map(d=>Object.assign(Object.assign({},yae),d)),a}function lQ(i,a,d){d.emitter.trigger("select",Object.assign(Object.assign({},A$(i,d)),{jsEvent:a?a.origEvent:null,view:d.viewApi||d.calendarApi.view}))}function wae(i,a){a.emitter.trigger("unselect",{jsEvent:i?i.origEvent:null,view:a.viewApi||a.calendarApi.view})}function A$(i,a){let d={};for(let p of a.pluginHooks.dateSpanTransforms)Object.assign(d,p(i,a));return Object.assign(d,Iae(i,a.dateEnv)),d}function iQ(i,a,d){let{dateEnv:p,options:v}=d,S=a;return i?(S=kl(S),S=p.add(S,v.defaultAllDayEventDuration)):S=p.add(S,v.defaultTimedEventDuration),S}function T$(i,a,d,p){let v=M7(i.defs,a),S=nm();for(let E in i.defs){let A=i.defs[E];S.defs[E]=_ae(A,v[E],d,p)}for(let E in i.instances){let A=i.instances[E],$=S.defs[A.defId];S.instances[E]=Sae(A,$,v[A.defId],d,p)}return S}function _ae(i,a,d,p){let v=d.standardProps||{};v.hasEnd==null&&a.durationEditable&&(d.startDelta||d.endDelta)&&(v.hasEnd=!0);let S=Object.assign(Object.assign(Object.assign({},i),v),{ui:Object.assign(Object.assign({},i.ui),v.ui)});d.extendedProps&&(S.extendedProps=Object.assign(Object.assign({},S.extendedProps),d.extendedProps));for(let E of p.pluginHooks.eventDefMutationAppliers)E(S,d,p);return!S.hasEnd&&p.options.forceEventDuration&&(S.hasEnd=!0),S}function Sae(i,a,d,p,v){let{dateEnv:S}=v,E=p.standardProps&&p.standardProps.allDay===!0,A=p.standardProps&&p.standardProps.hasEnd===!1,$=Object.assign({},i);return E&&($.range=GX($.range)),p.datesDelta&&d.startEditable&&($.range={start:S.add($.range.start,p.datesDelta),end:S.add($.range.end,p.datesDelta)}),p.startDelta&&d.durationEditable&&($.range={start:S.add($.range.start,p.startDelta),end:$.range.end}),p.endDelta&&d.durationEditable&&($.range={start:$.range.start,end:S.add($.range.end,p.endDelta)}),A&&($.range={start:$.range.start,end:iQ(a.allDay,$.range.start,v)}),a.allDay&&($.range={start:kl($.range.start),end:kl($.range.end)}),$.range.end<$.range.start&&($.range.end=iQ(a.allDay,$.range.start,v)),$}class I3{constructor(a,d){this.context=a,this.internalEventSource=d}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class li{constructor(a,d,p){this._context=a,this._def=d,this._instance=p||null}setProp(a,d){if(a in YX)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(a==="id")d=D7[a](d),this.mutate({standardProps:{publicId:d}});else if(a in D7)d=D7[a](d),this.mutate({standardProps:{[a]:d}});else if(a in R7){let p=R7[a](d);a==="color"?p={backgroundColor:d,borderColor:d}:a==="editable"?p={startEditable:d,durationEditable:d}:p={[a]:d},this.mutate({standardProps:{ui:p}})}else console.warn(`Could not set prop '${a}'. Use setExtendedProp instead.`)}setExtendedProp(a,d){this.mutate({extendedProps:{[a]:d}})}setStart(a,d={}){let{dateEnv:p}=this._context,v=p.createMarker(a);if(v&&this._instance){let S=this._instance.range,E=M3(S.start,v,p,d.granularity);d.maintainDuration?this.mutate({datesDelta:E}):this.mutate({startDelta:E})}}setEnd(a,d={}){let{dateEnv:p}=this._context,v;if(!(a!=null&&(v=p.createMarker(a),!v))&&this._instance)if(v){let S=M3(this._instance.range.end,v,p,d.granularity);this.mutate({endDelta:S})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(a,d,p={}){let{dateEnv:v}=this._context,S={allDay:p.allDay},E=v.createMarker(a),A;if(E&&!(d!=null&&(A=v.createMarker(d),!A))&&this._instance){let $=this._instance.range;p.allDay===!0&&($=GX($));let L=M3($.start,E,v,p.granularity);if(A){let z=M3($.end,A,v,p.granularity);Gse(L,z)?this.mutate({datesDelta:L,standardProps:S}):this.mutate({startDelta:L,endDelta:z,standardProps:S})}else S.hasEnd=!1,this.mutate({datesDelta:L,standardProps:S})}}moveStart(a){let d=Gr(a);d&&this.mutate({startDelta:d})}moveEnd(a){let d=Gr(a);d&&this.mutate({endDelta:d})}moveDates(a){let d=Gr(a);d&&this.mutate({datesDelta:d})}setAllDay(a,d={}){let p={allDay:a},{maintainDuration:v}=d;v==null&&(v=this._context.options.allDayMaintainDuration),this._def.allDay!==a&&(p.hasEnd=v),this.mutate({standardProps:p})}formatRange(a){let{dateEnv:d}=this._context,p=this._instance,v=Ci(a);return this._def.hasEnd?d.formatRange(p.range.start,p.range.end,v,{forcedStartTzo:p.forcedStartTzo,forcedEndTzo:p.forcedEndTzo}):d.format(p.range.start,v,{forcedTzo:p.forcedStartTzo})}mutate(a){let d=this._instance;if(d){let p=this._def,v=this._context,{eventStore:S}=v.getCurrentData(),E=E$(S,d.instanceId);E=T$(E,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},a,v);let $=new li(v,p,d);this._def=E.defs[p.defId],this._instance=E.instances[d.instanceId],v.dispatch({type:"MERGE_EVENTS",eventStore:E}),v.emitter.trigger("eventChange",{oldEvent:$,event:this,relatedEvents:i2(E,v,d),revert(){v.dispatch({type:"RESET_EVENTS",eventStore:S})}})}}remove(){let a=this._context,d=cQ(this);a.dispatch({type:"REMOVE_EVENTS",eventStore:d}),a.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:d})}})}get source(){let{sourceId:a}=this._def;return a?new I3(this._context,this._context.getCurrentData().eventSources[a]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let a=this._instance;return a?this._context.dateEnv.formatIso(a.range.start,{omitTime:this._def.allDay,forcedTzo:a.forcedStartTzo}):""}get endStr(){let a=this._instance;return a&&this._def.hasEnd?this._context.dateEnv.formatIso(a.range.end,{omitTime:this._def.allDay,forcedTzo:a.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(a={}){let d=this._def,{ui:p}=d,{startStr:v,endStr:S}=this,E={allDay:d.allDay};return d.title&&(E.title=d.title),v&&(E.start=v),S&&(E.end=S),d.publicId&&(E.id=d.publicId),d.groupId&&(E.groupId=d.groupId),d.url&&(E.url=d.url),p.display&&p.display!=="auto"&&(E.display=p.display),a.collapseColor&&p.backgroundColor&&p.backgroundColor===p.borderColor?E.color=p.backgroundColor:(p.backgroundColor&&(E.backgroundColor=p.backgroundColor),p.borderColor&&(E.borderColor=p.borderColor)),p.textColor&&(E.textColor=p.textColor),p.classNames.length&&(E.classNames=p.classNames),Object.keys(d.extendedProps).length&&(a.collapseExtendedProps?Object.assign(E,d.extendedProps):E.extendedProps=d.extendedProps),E}toJSON(){return this.toPlainObject()}}function cQ(i){let a=i._def,d=i._instance;return{defs:{[a.defId]:a},instances:d?{[d.instanceId]:d}:{}}}function i2(i,a,d){let{defs:p,instances:v}=i,S=[],E=d?d.instanceId:"";for(let A in v){let $=v[A],L=p[$.defId];$.instanceId!==E&&S.push(new li(a,L,$))}return S}function uQ(i,a,d,p){let v={},S={},E={},A=[],$=[],L=M7(i.defs,a);for(let z in i.defs){let se=i.defs[z];L[se.defId].display==="inverse-background"&&(se.groupId?(v[se.groupId]=[],E[se.groupId]||(E[se.groupId]=se)):S[z]=[])}for(let z in i.instances){let se=i.instances[z],oe=i.defs[se.defId],Z=L[oe.defId],X=se.range,le=!oe.allDay&&p?qX(X,p):X,J=a2(le,d);J&&(Z.display==="inverse-background"?oe.groupId?v[oe.groupId].push(J):S[se.defId].push(J):Z.display!=="none"&&(Z.display==="background"?A:$).push({def:oe,ui:Z,instance:se,range:J,isStart:le.start&&le.start.valueOf()===J.start.valueOf(),isEnd:le.end&&le.end.valueOf()===J.end.valueOf()}))}for(let z in v){let se=v[z],oe=ZX(se,d);for(let Z of oe){let X=E[z],le=L[X.defId];A.push({def:X,ui:le,instance:null,range:Z,isStart:!1,isEnd:!1})}}for(let z in S){let se=S[z],oe=ZX(se,d);for(let Z of oe)A.push({def:i.defs[z],ui:L[z],instance:null,range:Z,isStart:!1,isEnd:!1})}return{bg:A,fg:$}}function xae(i){return i.ui.display==="background"||i.ui.display==="inverse-background"}function dQ(i,a){i.fcSeg=a}function P3(i){return i.fcSeg||i.parentNode.fcSeg||null}function M7(i,a){return $1(i,d=>fQ(d,a))}function fQ(i,a){let d=[];return a[""]&&d.push(a[""]),a[i.defId]&&d.push(a[i.defId]),d.push(i.ui),eQ(d)}function mQ(i,a){let d=i.map(Eae);return d.sort((p,v)=>Vse(p,v,a)),d.map(p=>p._seg)}function Eae(i){let{eventRange:a}=i,d=a.def,p=a.instance?a.instance.range:a.range,v=p.start?p.start.valueOf():0,S=p.end?p.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},d.extendedProps),d),{id:d.publicId,start:v,end:S,duration:S-v,allDay:Number(d.allDay),_seg:i})}function kae(i,a){let{pluginHooks:d}=a,p=d.isDraggableTransformers,{def:v,ui:S}=i.eventRange,E=S.startEditable;for(let A of p)E=A(E,v,S,a);return E}function Aae(i,a){return i.isStart&&i.eventRange.ui.durationEditable&&a.options.eventResizableFromStart}function Tae(i,a){return i.isEnd&&i.eventRange.ui.durationEditable}function hQ(i,a,d,p,v,S,E){let{dateEnv:A,options:$}=d,{displayEventTime:L,displayEventEnd:z}=$,se=i.eventRange.def,oe=i.eventRange.instance;L==null&&(L=p!==!1),z==null&&(z=v!==!1);let Z=oe.range.start,X=oe.range.end,le=S||i.start||i.eventRange.range.start,J=E||i.end||i.eventRange.range.end,me=kl(Z).valueOf()===kl(le).valueOf(),ie=kl(Ib(X,-1)).valueOf()===kl(Ib(J,-1)).valueOf();return L&&!se.allDay&&(me||ie)?(le=me?Z:le,J=ie?X:J,z&&se.hasEnd?A.formatRange(le,J,a,{forcedStartTzo:S?null:oe.forcedStartTzo,forcedEndTzo:E?null:oe.forcedEndTzo}):A.format(le,a,{forcedTzo:S?null:oe.forcedStartTzo})):""}function $b(i,a,d){let p=i.eventRange.range;return{isPast:p.end<=(d||a.start),isFuture:p.start>=(d||a.end),isToday:a&&H1(a,p.start)}}function Dae(i){let a=["fc-event"];return i.isMirror&&a.push("fc-event-mirror"),i.isDraggable&&a.push("fc-event-draggable"),(i.isStartResizable||i.isEndResizable)&&a.push("fc-event-resizable"),i.isDragging&&a.push("fc-event-dragging"),i.isResizing&&a.push("fc-event-resizing"),i.isSelected&&a.push("fc-event-selected"),i.isStart&&a.push("fc-event-start"),i.isEnd&&a.push("fc-event-end"),i.isPast&&a.push("fc-event-past"),i.isToday&&a.push("fc-event-today"),i.isFuture&&a.push("fc-event-future"),a}function pQ(i){return i.instance?i.instance.instanceId:`${i.def.defId}:${i.range.start.toISOString()}`}function gQ(i,a){let{def:d,instance:p}=i.eventRange,{url:v}=d;if(v)return{href:v};let{emitter:S,options:E}=a,{eventInteractive:A}=E;return A==null&&(A=d.interactive,A==null&&(A=!!S.hasHandlers("eventClick"))),A?EX($=>{S.trigger("eventClick",{el:$.target,event:new li(a,d,p),jsEvent:$,view:a.viewApi})}):{}}const Nae={start:jt,end:jt,allDay:Boolean};function Rae(i,a,d){let p=Oae(i,a),{range:v}=p;if(!v.start)return null;if(!v.end){if(d==null)return null;v.end=a.add(v.start,d)}return p}function Oae(i,a){let{refined:d,extra:p}=m$(i,Nae),v=d.start?a.createMarkerMeta(d.start):null,S=d.end?a.createMarkerMeta(d.end):null,{allDay:E}=d;return E==null&&(E=v&&v.isTimeUnspecified&&(!S||S.isTimeUnspecified)),Object.assign({range:{start:v?v.marker:null,end:S?S.marker:null},allDay:E},p)}function Bae(i,a){return qre(i.range,a.range)&&i.allDay===a.allDay&&Mae(i,a)}function Mae(i,a){for(let d in a)if(d!=="range"&&d!=="allDay"&&i[d]!==a[d])return!1;for(let d in i)if(!(d in a))return!1;return!0}function Iae(i,a){return Object.assign(Object.assign({},yQ(i.range,a,i.allDay)),{allDay:i.allDay})}function bQ(i,a,d){return Object.assign(Object.assign({},yQ(i,a,d)),{timeZone:a.timeZone})}function yQ(i,a,d){return{start:a.toDate(i.start),end:a.toDate(i.end),startStr:a.formatIso(i.start,{omitTime:d}),endStr:a.formatIso(i.end,{omitTime:d})}}function Pae(i,a,d){let p=QX({editable:!1},d),v=S$(p.refined,p.extra,"",i.allDay,!0,d);return{def:v,ui:fQ(v,a),instance:w$(v.defId,i.range),range:i.range,isStart:!0,isEnd:!0}}function Fae(i,a,d){let p=!1,v=function(A){p||(p=!0,a(A))},S=function(A){p||(p=!0,d(A))},E=i(v,S);E&&typeof E.then=="function"&&E.then(v,S)}class vQ extends Error{constructor(a,d){super(a),this.response=d}}function $ae(i,a,d){i=i.toUpperCase();const p={method:i};return i==="GET"?a+=(a.indexOf("?")===-1?"?":"&")+new URLSearchParams(d):(p.body=new URLSearchParams(d),p.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(a,p).then(v=>{if(v.ok)return v.json().then(S=>[S,v],()=>{throw new vQ("Failure parsing JSON",v)});throw new vQ("Request failed",v)})}let D$;function CQ(){return D$==null&&(D$=Lae()),D$}function Lae(){if(typeof document>"u")return!0;let i=document.createElement("div");i.style.position="absolute",i.style.top="0px",i.style.left="0px",i.innerHTML="<table><tr><td><div></div></td></tr></table>",i.querySelector("table").style.height="100px",i.querySelector("div").style.height="100%",document.body.appendChild(i);let d=i.querySelector("div").offsetHeight>0;return document.body.removeChild(i),d}class Vae extends Da{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{k7(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{k7(()=>{this.setState({forPrint:!1})})}}render(){let{props:a}=this,{options:d}=a,{forPrint:p}=this.state,v=p||d.height==="auto"||d.contentHeight==="auto",S=!v&&d.height!=null?d.height:"",E=["fc",p?"fc-media-print":"fc-media-screen",`fc-direction-${d.direction}`,a.theme.getClass("root")];return CQ()||E.push("fc-liquid-hack"),a.children(E,S,v,p)}componentDidMount(){let{emitter:a}=this.props;a.on("_beforeprint",this.handleBeforePrint),a.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:a}=this.props;a.off("_beforeprint",this.handleBeforePrint),a.off("_afterprint",this.handleAfterPrint)}}class F3{constructor(a){this.component=a.component,this.isHitComboAllowed=a.isHitComboAllowed||null}destroy(){}}function Hae(i,a){return{component:i,el:a.el,useEventCenter:a.useEventCenter!=null?a.useEventCenter:!0,isHitComboAllowed:a.isHitComboAllowed||null}}function N$(i){return{[i.component.uid]:i}}const R$={};class zae{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(a){this.currentDataManager.dispatch(a)}get view(){return this.getCurrentData().viewApi}batchRendering(a){a()}updateSize(){this.trigger("_resize",!0)}setOption(a,d){this.dispatch({type:"SET_OPTION",optionName:a,rawOptionValue:d})}getOption(a){return this.currentDataManager.currentCalendarOptionsInput[a]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(a,d){let{currentDataManager:p}=this;p.currentCalendarOptionsRefiners[a]?p.emitter.on(a,d):console.warn(`Unknown listener name '${a}'`)}off(a,d){this.currentDataManager.emitter.off(a,d)}trigger(a,...d){this.currentDataManager.emitter.trigger(a,...d)}changeView(a,d){this.batchRendering(()=>{if(this.unselect(),d)if(d.start&&d.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:a}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:d});else{let{dateEnv:p}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:a,dateMarker:p.createMarker(d)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:a})})}zoomTo(a,d){let p=this.getCurrentData(),v;d=d||"day",v=p.viewSpecs[d]||this.getUnitViewSpec(d),this.unselect(),v?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:v.type,dateMarker:a}):this.dispatch({type:"CHANGE_DATE",dateMarker:a})}getUnitViewSpec(a){let{viewSpecs:d,toolbarConfig:p}=this.getCurrentData(),v=[].concat(p.header?p.header.viewsWithButtons:[],p.footer?p.footer.viewsWithButtons:[]),S,E;for(let A in d)v.push(A);for(S=0;S<v.length;S+=1)if(E=d[v[S]],E&&E.singleUnit===a)return E;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let a=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:a.dateEnv.addYears(a.currentDate,-1)})}nextYear(){let a=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:a.dateEnv.addYears(a.currentDate,1)})}today(){let a=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:rk(a.calendarOptions.now,a.dateEnv)})}gotoDate(a){let d=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:d.dateEnv.createMarker(a)})}incrementDate(a){let d=this.getCurrentData(),p=Gr(a);p&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:d.dateEnv.add(d.currentDate,p)}))}getDate(){let a=this.getCurrentData();return a.dateEnv.toDate(a.currentDate)}formatDate(a,d){let{dateEnv:p}=this.getCurrentData();return p.format(p.createMarker(a),Ci(d))}formatRange(a,d,p){let{dateEnv:v}=this.getCurrentData();return v.formatRange(v.createMarker(a),v.createMarker(d),Ci(p),p)}formatIso(a,d){let{dateEnv:p}=this.getCurrentData();return p.formatIso(p.createMarker(a),{omitTime:d})}select(a,d){let p;d==null?a.start!=null?p=a:p={start:a,end:null}:p={start:a,end:d};let v=this.getCurrentData(),S=Rae(p,v.dateEnv,Gr({days:1}));S&&(this.dispatch({type:"SELECT_DATES",selection:S}),lQ(S,null,v))}unselect(a){let d=this.getCurrentData();d.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),wae(a,d))}addEvent(a,d){if(a instanceof li){let E=a._def,A=a._instance;return this.getCurrentData().eventStore.defs[E.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:x$({def:E,instance:A})}),this.triggerEventAdd(a)),a}let p=this.getCurrentData(),v;if(d instanceof I3)v=d.internalEventSource;else if(typeof d=="boolean")d&&([v]=p$(p.eventSources));else if(d!=null){let E=this.getEventSourceById(d);if(!E)return console.warn(`Could not find an event source with ID "${d}"`),null;v=E.internalEventSource}let S=XX(a,v,p,!1);if(S){let E=new li(p,S.def,S.def.recurringDef?null:S.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:x$(S)}),this.triggerEventAdd(E),E}return null}triggerEventAdd(a){let{emitter:d}=this.getCurrentData();d.trigger("eventAdd",{event:a,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:cQ(a)})}})}getEventById(a){let d=this.getCurrentData(),{defs:p,instances:v}=d.eventStore;a=String(a);for(let S in p){let E=p[S];if(E.publicId===a){if(E.recurringDef)return new li(d,E,null);for(let A in v){let $=v[A];if($.defId===E.defId)return new li(d,E,$)}}}return null}getEvents(){let a=this.getCurrentData();return i2(a.eventStore,a)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let a=this.getCurrentData(),d=a.eventSources,p=[];for(let v in d)p.push(new I3(a,d[v]));return p}getEventSourceById(a){let d=this.getCurrentData(),p=d.eventSources;a=String(a);for(let v in p)if(p[v].publicId===a)return new I3(d,p[v]);return null}addEventSource(a){let d=this.getCurrentData();if(a instanceof I3)return d.eventSources[a.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[a.internalEventSource]}),a;let p=tQ(a,d);return p?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[p]}),new I3(d,p)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(a){let d=Gr(a);d&&this.trigger("_scrollRequest",{time:d})}}function Uae(i,a){return i.left>=a.left&&i.left<a.right&&i.top>=a.top&&i.top<a.bottom}function wQ(i,a){let d={left:Math.max(i.left,a.left),right:Math.min(i.right,a.right),top:Math.max(i.top,a.top),bottom:Math.min(i.bottom,a.bottom)};return d.left<d.right&&d.top<d.bottom?d:!1}function Wae(i,a){return{left:Math.min(Math.max(i.left,a.left),a.right),top:Math.min(Math.max(i.top,a.top),a.bottom)}}function jae(i){return{left:(i.left+i.right)/2,top:(i.top+i.bottom)/2}}function Zae(i,a){return{left:i.left-a.left,top:i.top-a.top}}const O$=nm();class Gae{constructor(){this.getKeysForEventDefs=Ts(this._getKeysForEventDefs),this.splitDateSelection=Ts(this._splitDateSpan),this.splitEventStore=Ts(this._splitEventStore),this.splitIndividualUi=Ts(this._splitIndividualUi),this.splitEventDrag=Ts(this._splitInteraction),this.splitEventResize=Ts(this._splitInteraction),this.eventUiBuilders={}}splitProps(a){let d=this.getKeyInfo(a),p=this.getKeysForEventDefs(a.eventStore),v=this.splitDateSelection(a.dateSelection),S=this.splitIndividualUi(a.eventUiBases,p),E=this.splitEventStore(a.eventStore,p),A=this.splitEventDrag(a.eventDrag),$=this.splitEventResize(a.eventResize),L={};this.eventUiBuilders=$1(d,(z,se)=>this.eventUiBuilders[se]||Ts(qae));for(let z in d){let se=d[z],oe=E[z]||O$,Z=this.eventUiBuilders[z];L[z]={businessHours:se.businessHours||a.businessHours,dateSelection:v[z]||null,eventStore:oe,eventUiBases:Z(a.eventUiBases[""],se.ui,S[z]),eventSelection:oe.instances[a.eventSelection]?a.eventSelection:"",eventDrag:A[z]||null,eventResize:$[z]||null}}return L}_splitDateSpan(a){let d={};if(a){let p=this.getKeysForDateSpan(a);for(let v of p)d[v]=a}return d}_getKeysForEventDefs(a){return $1(a.defs,d=>this.getKeysForEventDef(d))}_splitEventStore(a,d){let{defs:p,instances:v}=a,S={};for(let E in p)for(let A of d[E])S[A]||(S[A]=nm()),S[A].defs[E]=p[E];for(let E in v){let A=v[E];for(let $ of d[A.defId])S[$]&&(S[$].instances[E]=A)}return S}_splitIndividualUi(a,d){let p={};for(let v in a)if(v)for(let S of d[v])p[S]||(p[S]={}),p[S][v]=a[v];return p}_splitInteraction(a){let d={};if(a){let p=this._splitEventStore(a.affectedEvents,this._getKeysForEventDefs(a.affectedEvents)),v=this._getKeysForEventDefs(a.mutatedEvents),S=this._splitEventStore(a.mutatedEvents,v),E=A=>{d[A]||(d[A]={affectedEvents:p[A]||O$,mutatedEvents:S[A]||O$,isEvent:a.isEvent})};for(let A in p)E(A);for(let A in S)E(A)}return d}}function qae(i,a,d){let p=[];i&&p.push(i),a&&p.push(a);let v={"":eQ(p)};return d&&Object.assign(v,d),v}function _Q(i,a,d,p){return{dow:i.getUTCDay(),isDisabled:!!(p&&!H1(p.activeRange,i)),isOther:!!(p&&!H1(p.currentRange,i)),isToday:!!(a&&H1(a,i)),isPast:!!(d?i<d:a&&i<a.start),isFuture:!!(d?i>d:a&&i>=a.end)}}function B$(i,a){let d=["fc-day",`fc-day-${Qse[i.dow]}`];return i.isDisabled?d.push("fc-day-disabled"):(i.isToday&&(d.push("fc-day-today"),d.push(a.getClass("today"))),i.isPast&&d.push("fc-day-past"),i.isFuture&&d.push("fc-day-future"),i.isOther&&d.push("fc-day-other")),d}const Kae=Ci({year:"numeric",month:"long",day:"numeric"}),Yae=Ci({week:"long"});function I7(i,a,d="day",p=!0){const{dateEnv:v,options:S,calendarApi:E}=i;let A=v.format(a,d==="week"?Yae:Kae);if(S.navLinks){let $=v.toDate(a);const L=z=>{let se=d==="day"?S.navLinkDayClick:d==="week"?S.navLinkWeekClick:null;typeof se=="function"?se.call(E,v.toDate(a),z):(typeof se=="string"&&(d=se),E.zoomTo(a,d))};return Object.assign({title:nk(S.navLinkHint,[A,$],A),"data-navlink":""},p?xX(L):{onClick:L})}return{"aria-label":A}}let M$=null;function Xae(){return M$===null&&(M$=Qae()),M$}function Qae(){let i=document.createElement("div");tk(i,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),i.innerHTML="<div></div>",document.body.appendChild(i);let d=i.firstChild.getBoundingClientRect().left>i.getBoundingClientRect().left;return o$(i),d}let I$;function Jae(){return I$||(I$=ele()),I$}function ele(){let i=document.createElement("div");i.style.overflow="scroll",i.style.position="absolute",i.style.top="-9999px",i.style.left="-9999px",document.body.appendChild(i);let a=SQ(i);return document.body.removeChild(i),a}function SQ(i){return{x:i.offsetHeight-i.clientHeight,y:i.offsetWidth-i.clientWidth}}function tle(i,a=!1){let d=window.getComputedStyle(i),p=parseInt(d.borderLeftWidth,10)||0,v=parseInt(d.borderRightWidth,10)||0,S=parseInt(d.borderTopWidth,10)||0,E=parseInt(d.borderBottomWidth,10)||0,A=SQ(i),$=A.y-p-v,L=A.x-S-E,z={borderLeft:p,borderRight:v,borderTop:S,borderBottom:E,scrollbarBottom:L,scrollbarLeft:0,scrollbarRight:0};return Xae()&&d.direction==="rtl"?z.scrollbarLeft=$:z.scrollbarRight=$,a&&(z.paddingLeft=parseInt(d.paddingLeft,10)||0,z.paddingRight=parseInt(d.paddingRight,10)||0,z.paddingTop=parseInt(d.paddingTop,10)||0,z.paddingBottom=parseInt(d.paddingBottom,10)||0),z}function nle(i,a=!1,d){let p=d?i.getBoundingClientRect():P$(i),v=tle(i,a),S={left:p.left+v.borderLeft+v.scrollbarLeft,right:p.right-v.borderRight-v.scrollbarRight,top:p.top+v.borderTop,bottom:p.bottom-v.borderBottom-v.scrollbarBottom};return a&&(S.left+=v.paddingLeft,S.right-=v.paddingRight,S.top+=v.paddingTop,S.bottom-=v.paddingBottom),S}function P$(i){let a=i.getBoundingClientRect();return{left:a.left+window.scrollX,top:a.top+window.scrollY,right:a.right+window.scrollX,bottom:a.bottom+window.scrollY}}function ole(i){let a=xQ(i),d=i.getBoundingClientRect();for(let p of a){let v=wQ(d,p.getBoundingClientRect());if(v)d=v;else return null}return d}function xQ(i){let a=[];for(;i instanceof HTMLElement;){let d=window.getComputedStyle(i);if(d.position==="fixed")break;/(auto|scroll)/.test(d.overflow+d.overflowY+d.overflowX)&&a.push(i),i=i.parentNode}return a}class $3{constructor(a,d,p,v){this.els=d;let S=this.originClientRect=a.getBoundingClientRect();p&&this.buildElHorizontals(S.left),v&&this.buildElVerticals(S.top)}buildElHorizontals(a){let d=[],p=[];for(let v of this.els){let S=v.getBoundingClientRect();d.push(S.left-a),p.push(S.right-a)}this.lefts=d,this.rights=p}buildElVerticals(a){let d=[],p=[];for(let v of this.els){let S=v.getBoundingClientRect();d.push(S.top-a),p.push(S.bottom-a)}this.tops=d,this.bottoms=p}leftToIndex(a){let{lefts:d,rights:p}=this,v=d.length,S;for(S=0;S<v;S+=1)if(a>=d[S]&&a<p[S])return S}topToIndex(a){let{tops:d,bottoms:p}=this,v=d.length,S;for(S=0;S<v;S+=1)if(a>=d[S]&&a<p[S])return S}getWidth(a){return this.rights[a]-this.lefts[a]}getHeight(a){return this.bottoms[a]-this.tops[a]}similarTo(a){return P7(this.tops||[],a.tops||[])&&P7(this.bottoms||[],a.bottoms||[])&&P7(this.lefts||[],a.lefts||[])&&P7(this.rights||[],a.rights||[])}}function P7(i,a){const d=i.length;if(d!==a.length)return!1;for(let p=0;p<d;p++)if(Math.round(i[p])!==Math.round(a[p]))return!1;return!0}class F${getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class sle extends F${constructor(a){super(),this.el=a}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(a){this.el.scrollTop=a}setScrollLeft(a){this.el.scrollLeft=a}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class rle extends F${getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(a){window.scroll(window.scrollX,a)}setScrollLeft(a){window.scroll(a,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class ug extends Da{constructor(){super(...arguments),this.uid=e2()}prepareHits(){}queryHit(a,d,p,v){return null}isValidSegDownEl(a){return!this.props.eventDrag&&!this.props.eventResize&&!Vu(a,".fc-event-mirror")}isValidDateDownEl(a){return!Vu(a,".fc-event:not(.fc-bg-event)")&&!Vu(a,".fc-more-link")&&!Vu(a,"a[data-navlink]")&&!Vu(a,".fc-popover")}}class EQ{constructor(a=d=>d.thickness||1){this.getEntryThickness=a,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(a){let d=[];for(let p of a)this.insertEntry(p,d);return d}insertEntry(a,d){let p=this.findInsertion(a);this.isInsertionValid(p,a)?this.insertEntryAt(a,p):this.handleInvalidInsertion(p,a,d)}isInsertionValid(a,d){return(this.maxCoord===-1||a.levelCoord+this.getEntryThickness(d)<=this.maxCoord)&&(this.maxStackCnt===-1||a.stackCnt<this.maxStackCnt)}handleInvalidInsertion(a,d,p){if(this.allowReslicing&&a.touchingEntry){const v=Object.assign(Object.assign({},d),{span:L$(d.span,a.touchingEntry.span)});p.push(v),this.splitEntry(d,a.touchingEntry,p)}else p.push(d)}splitEntry(a,d,p){let v=a.span,S=d.span;v.start<S.start&&this.insertEntry({index:a.index,thickness:a.thickness,span:{start:v.start,end:S.start}},p),v.end>S.end&&this.insertEntry({index:a.index,thickness:a.thickness,span:{start:S.end,end:v.end}},p)}insertEntryAt(a,d){let{entriesByLevel:p,levelCoords:v}=this;d.lateral===-1?(V$(v,d.level,d.levelCoord),V$(p,d.level,[a])):V$(p[d.level],d.lateral,a),this.stackCnts[c2(a)]=d.stackCnt}findInsertion(a){let{levelCoords:d,entriesByLevel:p,strictOrder:v,stackCnts:S}=this,E=d.length,A=0,$=-1,L=-1,z=null,se=0;for(let X=0;X<E;X+=1){const le=d[X];if(!v&&le>=A+this.getEntryThickness(a))break;let J=p[X],me,ie=H$(J,a.span.start,$$),G=ie[0]+ie[1];for(;(me=J[G])&&me.span.start<a.span.end;){let we=le+this.getEntryThickness(me);we>A&&(A=we,z=me,$=X,L=G),we===A&&(se=Math.max(se,S[c2(me)]+1)),G+=1}}let oe=0;if(z)for(oe=$+1;oe<E&&d[oe]<A;)oe+=1;let Z=-1;return oe<E&&d[oe]===A&&(Z=H$(p[oe],a.span.end,$$)[0]),{touchingLevel:$,touchingLateral:L,touchingEntry:z,stackCnt:se,levelCoord:A,level:oe,lateral:Z}}toRects(){let{entriesByLevel:a,levelCoords:d}=this,p=a.length,v=[];for(let S=0;S<p;S+=1){let E=a[S],A=d[S];for(let $ of E)v.push(Object.assign(Object.assign({},$),{thickness:this.getEntryThickness($),levelCoord:A}))}return v}}function $$(i){return i.span.end}function c2(i){return i.index+":"+i.span.start}function ale(i){let a=[];for(let d of i){let p=[],v={span:d.span,entries:[d]};for(let S of a)L$(S.span,v.span)?v={entries:S.entries.concat(v.entries),span:lle(S.span,v.span)}:p.push(S);p.push(v),a=p}return a}function lle(i,a){return{start:Math.min(i.start,a.start),end:Math.max(i.end,a.end)}}function L$(i,a){let d=Math.max(i.start,a.start),p=Math.min(i.end,a.end);return d<p?{start:d,end:p}:null}function V$(i,a,d){i.splice(a,0,d)}function H$(i,a,d){let p=0,v=i.length;if(!v||a<d(i[p]))return[0,0];if(a>d(i[v-1]))return[v,0];for(;p<v;){let S=Math.floor(p+(v-p)/2),E=d(i[S]);if(a<E)v=S;else if(a>E)p=S+1;else return[S,1]}return[p,0]}class ile{constructor(a,d){this.emitter=new B7}destroy(){}setMirrorIsVisible(a){}setMirrorNeedsRevert(a){}setAutoScrollEnabled(a){}}const z$={};function cle(i,a){return!i||a>10?Ci({weekday:"short"}):a>1?Ci({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):Ci({weekday:"long"})}const kQ="fc-col-header-cell";function AQ(i){return i.text}class ule extends Da{render(){let{dateEnv:a,options:d,theme:p,viewApi:v}=this.context,{props:S}=this,{date:E,dateProfile:A}=S,$=_Q(E,S.todayRange,null,A),L=[kQ].concat(B$($,p)),z=a.format(E,S.dayHeaderFormat),se=!$.isDisabled&&S.colCnt>1?I7(this.context,E):{},oe=Object.assign(Object.assign(Object.assign({date:a.toDate(E),view:v},S.extraRenderProps),{text:z}),$);return Qe(tm,{elTag:"th",elClasses:L,elAttrs:Object.assign({role:"columnheader",colSpan:S.colSpan,"data-date":$.isDisabled?void 0:u$(E)},S.extraDataAttrs),renderProps:oe,generatorName:"dayHeaderContent",customGenerator:d.dayHeaderContent,defaultGenerator:AQ,classNameGenerator:d.dayHeaderClassNames,didMount:d.dayHeaderDidMount,willUnmount:d.dayHeaderWillUnmount},Z=>Qe("div",{className:"fc-scrollgrid-sync-inner"},!$.isDisabled&&Qe(Z,{elTag:"a",elAttrs:se,elClasses:["fc-col-header-cell-cushion",S.isSticky&&"fc-sticky"]})))}}const dle=Ci({weekday:"long"});class fle extends Da{render(){let{props:a}=this,{dateEnv:d,theme:p,viewApi:v,options:S}=this.context,E=Hu(new Date(2592e5),a.dow),A={dow:a.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},$=d.format(E,a.dayHeaderFormat),L=Object.assign(Object.assign(Object.assign(Object.assign({date:E},A),{view:v}),a.extraRenderProps),{text:$});return Qe(tm,{elTag:"th",elClasses:[kQ,...B$(A,p),...a.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:a.colSpan},a.extraDataAttrs),renderProps:L,generatorName:"dayHeaderContent",customGenerator:S.dayHeaderContent,defaultGenerator:AQ,classNameGenerator:S.dayHeaderClassNames,didMount:S.dayHeaderDidMount,willUnmount:S.dayHeaderWillUnmount},z=>Qe("div",{className:"fc-scrollgrid-sync-inner"},Qe(z,{elTag:"a",elClasses:["fc-col-header-cell-cushion",a.isSticky&&"fc-sticky"],elAttrs:{"aria-label":d.format(E,dle)}})))}}class lk extends em{constructor(a,d){super(a,d),this.initialNowDate=rk(d.options.now,d.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:a,state:d}=this;return a.children(d.nowDate,d.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(a){a.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:a,context:d}=this,p=Ib(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),v=d.dateEnv.startOf(p,a.unit),S=d.dateEnv.add(v,Gr(1,a.unit)),E=S.valueOf()-p.valueOf();return E=Math.min(1e3*60*60*24,E),{currentState:{nowDate:v,todayRange:TQ(v)},nextState:{nowDate:S,todayRange:TQ(S)},waitMs:E}}setTimeout(){let{nextState:a,waitMs:d}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(a,()=>{this.setTimeout()})},d)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}lk.contextType=L1;function TQ(i){let a=kl(i),d=Hu(a,1);return{start:a,end:d}}class DQ extends Da{constructor(){super(...arguments),this.createDayHeaderFormatter=Ts(mle)}render(){let{context:a}=this,{dates:d,dateProfile:p,datesRepDistinctDays:v,renderIntro:S}=this.props,E=this.createDayHeaderFormatter(a.options.dayHeaderFormat,v,d.length);return Qe(lk,{unit:"day"},(A,$)=>Qe("tr",{role:"row"},S&&S("day"),d.map(L=>v?Qe(ule,{key:L.toISOString(),date:L,dateProfile:p,todayRange:$,colCnt:d.length,dayHeaderFormat:E}):Qe(fle,{key:L.getUTCDay(),dow:L.getUTCDay(),dayHeaderFormat:E}))))}}function mle(i,a,d){return i||cle(a,d)}class NQ{constructor(a,d){let p=a.start,{end:v}=a,S=[],E=[],A=-1;for(;p<v;)d.isHiddenDay(p)?S.push(A+.5):(A+=1,S.push(A),E.push(p)),p=Hu(p,1);this.dates=E,this.indices=S,this.cnt=E.length}sliceRange(a){let d=this.getDateDayIndex(a.start),p=this.getDateDayIndex(Hu(a.end,-1)),v=Math.max(0,d),S=Math.min(this.cnt-1,p);return v=Math.ceil(v),S=Math.floor(S),v<=S?{firstIndex:v,lastIndex:S,isStart:d===v,isEnd:p===S}:null}getDateDayIndex(a){let{indices:d}=this,p=Math.floor(t2(this.dates[0],a));return p<0?d[0]-1:p>=d.length?d[d.length-1]+1:d[p]}}class RQ{constructor(a,d){let{dates:p}=a,v,S,E;if(d){for(S=p[0].getUTCDay(),v=1;v<p.length&&p[v].getUTCDay()!==S;v+=1);E=Math.ceil(p.length/v)}else E=1,v=p.length;this.rowCnt=E,this.colCnt=v,this.daySeries=a,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let a=[];for(let d=0;d<this.rowCnt;d+=1){let p=[];for(let v=0;v<this.colCnt;v+=1)p.push(this.buildCell(d,v));a.push(p)}return a}buildCell(a,d){let p=this.daySeries.dates[a*this.colCnt+d];return{key:p.toISOString(),date:p}}buildHeaderDates(){let a=[];for(let d=0;d<this.colCnt;d+=1)a.push(this.cells[0][d].date);return a}sliceRange(a){let{colCnt:d}=this,p=this.daySeries.sliceRange(a),v=[];if(p){let{firstIndex:S,lastIndex:E}=p,A=S;for(;A<=E;){let $=Math.floor(A/d),L=Math.min(($+1)*d,E+1);v.push({row:$,firstCol:A%d,lastCol:(L-1)%d,isStart:p.isStart&&A===S,isEnd:p.isEnd&&L-1===E}),A=L}}return v}}class OQ{constructor(){this.sliceBusinessHours=Ts(this._sliceBusinessHours),this.sliceDateSelection=Ts(this._sliceDateSpan),this.sliceEventStore=Ts(this._sliceEventStore),this.sliceEventDrag=Ts(this._sliceInteraction),this.sliceEventResize=Ts(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(a,d,p,v,...S){let{eventUiBases:E}=a,A=this.sliceEventStore(a.eventStore,E,d,p,...S);return{dateSelectionSegs:this.sliceDateSelection(a.dateSelection,d,p,E,v,...S),businessHourSegs:this.sliceBusinessHours(a.businessHours,d,p,v,...S),fgEventSegs:A.fg,bgEventSegs:A.bg,eventDrag:this.sliceEventDrag(a.eventDrag,E,d,p,...S),eventResize:this.sliceEventResize(a.eventResize,E,d,p,...S),eventSelection:a.eventSelection}}sliceNowDate(a,d,p,v,...S){return this._sliceDateSpan({range:{start:a,end:Ib(a,1)},allDay:!1},d,p,{},v,...S)}_sliceBusinessHours(a,d,p,v,...S){return a?this._sliceEventStore(l2(a,F7(d,!!p),v),{},d,p,...S).bg:[]}_sliceEventStore(a,d,p,v,...S){if(a){let E=uQ(a,d,F7(p,!!v),v);return{bg:this.sliceEventRanges(E.bg,S),fg:this.sliceEventRanges(E.fg,S)}}return{bg:[],fg:[]}}_sliceInteraction(a,d,p,v,...S){if(!a)return null;let E=uQ(a.mutatedEvents,d,F7(p,!!v),v);return{segs:this.sliceEventRanges(E.fg,S),affectedInstances:a.affectedEvents.instances,isEvent:a.isEvent}}_sliceDateSpan(a,d,p,v,S,...E){if(!a)return[];let A=F7(d,!!p),$=a2(a.range,A);if($){a=Object.assign(Object.assign({},a),{range:$});let L=Pae(a,v,S),z=this.sliceRange(a.range,...E);for(let se of z)se.eventRange=L;return z}return[]}sliceEventRanges(a,d){let p=[];for(let v of a)p.push(...this.sliceEventRange(v,d));return p}sliceEventRange(a,d){let p=a.range;this.forceDayIfListItem&&a.ui.display==="list-item"&&(p={start:p.start,end:Hu(p.start,1)});let v=this.sliceRange(p,...d);for(let S of v)S.eventRange=a,S.isStart=a.isStart&&S.isStart,S.isEnd=a.isEnd&&S.isEnd;return v}}function F7(i,a){let d=i.activeRange;return a?d:{start:Ib(d.start,i.slotMinTime.milliseconds),end:Ib(d.end,i.slotMaxTime.milliseconds-864e5)}}function BQ(i,a,d){let{instances:p}=i.mutatedEvents;for(let v in p)if(!T7(a.validRange,p[v].range))return!1;return MQ({eventDrag:i},d)}function hle(i,a,d){return T7(a.validRange,i.range)?MQ({dateSelection:i},d):!1}function MQ(i,a){let d=a.getCurrentData(),p=Object.assign({businessHours:d.businessHours,dateSelection:"",eventStore:d.eventStore,eventUiBases:d.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},i);return(a.pluginHooks.isPropsValid||ple)(p,a)}function ple(i,a,d={},p){return!(i.eventDrag&&!gle(i,a,d,p)||i.dateSelection&&!ble(i,a,d,p))}function gle(i,a,d,p){let v=a.getCurrentData(),S=i.eventDrag,E=S.mutatedEvents,A=E.defs,$=E.instances,L=M7(A,S.isEvent?i.eventUiBases:{"":v.selectionConfig});p&&(L=$1(L,p));let z=hae(i.eventStore,S.affectedEvents.instances),se=z.defs,oe=z.instances,Z=M7(se,i.eventUiBases);for(let X in $){let le=$[X],J=le.range,me=L[le.defId],ie=A[le.defId];if(!IQ(me.constraints,J,z,i.businessHours,a))return!1;let{eventOverlap:G}=a.options,we=typeof G=="function"?G:null;for(let Ve in oe){let K=oe[Ve];if(C$(J,K.range)&&(Z[K.defId].overlap===!1&&S.isEvent||me.overlap===!1||we&&!we(new li(a,se[K.defId],K),new li(a,ie,le))))return!1}let wt=v.eventStore;for(let Ve of me.allows){let K=Object.assign(Object.assign({},d),{range:le.range,allDay:ie.allDay}),De=wt.defs[ie.defId],tt=wt.instances[X],lt;if(De?lt=new li(a,De,tt):lt=new li(a,ie),!Ve(A$(K,a),lt))return!1}}return!0}function ble(i,a,d,p){let v=i.eventStore,S=v.defs,E=v.instances,A=i.dateSelection,$=A.range,{selectionConfig:L}=a.getCurrentData();if(p&&(L=p(L)),!IQ(L.constraints,$,v,i.businessHours,a))return!1;let{selectOverlap:z}=a.options,se=typeof z=="function"?z:null;for(let oe in E){let Z=E[oe];if(C$($,Z.range)&&(L.overlap===!1||se&&!se(new li(a,S[Z.defId],Z),null)))return!1}for(let oe of L.allows){let Z=Object.assign(Object.assign({},d),A);if(!oe(A$(Z,a),null))return!1}return!0}function IQ(i,a,d,p,v){for(let S of i)if(!vle(yle(S,a,d,p,v),a))return!1;return!0}function yle(i,a,d,p,v){return i==="businessHours"?U$(l2(p,a,v)):typeof i=="string"?U$(N7(d,S=>S.groupId===i)):typeof i=="object"&&i?U$(l2(i,a,v)):[]}function U$(i){let{instances:a}=i,d=[];for(let p in a)d.push(a[p].range);return d}function vle(i,a){for(let d of i)if(T7(d,a))return!0;return!1}const $7=/^(visible|hidden)$/;class Cle extends Da{constructor(){super(...arguments),this.handleEl=a=>{this.el=a,V1(this.props.elRef,a)}}render(){let{props:a}=this,{liquid:d,liquidIsAbsolute:p}=a,v=d&&p,S=["fc-scroller"];return d&&(p?S.push("fc-scroller-liquid-absolute"):S.push("fc-scroller-liquid")),Qe("div",{ref:this.handleEl,className:S.join(" "),style:{overflowX:a.overflowX,overflowY:a.overflowY,left:v&&-(a.overcomeLeft||0)||"",right:v&&-(a.overcomeRight||0)||"",bottom:v&&-(a.overcomeBottom||0)||"",marginLeft:!v&&-(a.overcomeLeft||0)||"",marginRight:!v&&-(a.overcomeRight||0)||"",marginBottom:!v&&-(a.overcomeBottom||0)||"",maxHeight:a.maxHeight||""}},a.children)}needsXScrolling(){if($7.test(this.props.overflowX))return!1;let{el:a}=this,d=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:p}=a;for(let v=0;v<p.length;v+=1)if(p[v].getBoundingClientRect().width>d)return!0;return!1}needsYScrolling(){if($7.test(this.props.overflowY))return!1;let{el:a}=this,d=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:p}=a;for(let v=0;v<p.length;v+=1)if(p[v].getBoundingClientRect().height>d)return!0;return!1}getXScrollbarWidth(){return $7.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return $7.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class z1{constructor(a){this.masterCallback=a,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(d,p)=>{let{depths:v,currentMap:S}=this,E=!1,A=!1;d!==null?(E=p in S,S[p]=d,v[p]=(v[p]||0)+1,A=!0):(v[p]-=1,v[p]||(delete S[p],delete this.callbackMap[p],E=!0)),this.masterCallback&&(E&&this.masterCallback(null,String(p)),A&&this.masterCallback(d,String(p)))}}createRef(a){let d=this.callbackMap[a];return d||(d=this.callbackMap[a]=p=>{this.handleValue(p,String(a))}),d}collect(a,d,p){return Rre(this.currentMap,a,d,p)}getAll(){return p$(this.currentMap)}}function wle(i){let a=Nse(i,".fc-scrollgrid-shrink"),d=0;for(let p of a)d=Math.max(d,Wse(p));return Math.ceil(d)}function PQ(i,a){return i.liquid&&a.liquid}function _le(i,a){return a.maxHeight!=null||PQ(i,a)}function Sle(i,a,d,p){let{expandRows:v}=d;return typeof a.content=="function"?a.content(d):Qe("table",{role:"presentation",className:[a.tableClassName,i.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:d.tableMinWidth,width:d.clientWidth,height:v?d.clientHeight:""}},d.tableColGroupNode,Qe(p?"thead":"tbody",{role:"presentation"},typeof a.rowContent=="function"?a.rowContent(d):a.rowContent))}function xle(i,a){return Mb(i,a,cg)}function Ele(i,a){let d=[];for(let p of i){let v=p.span||1;for(let S=0;S<v;S+=1)d.push(Qe("col",{style:{width:p.width==="shrink"?kle(a):p.width||"",minWidth:p.minWidth||""}}))}return Qe("colgroup",{},...d)}function kle(i){return i??4}function Ale(i){for(let a of i)if(a.width==="shrink")return!0;return!1}function Tle(i,a){let d=["fc-scrollgrid",a.theme.getClass("table")];return i&&d.push("fc-scrollgrid-liquid"),d}function Dle(i,a){let d=["fc-scrollgrid-section",`fc-scrollgrid-section-${i.type}`,i.className];return a&&i.liquid&&i.maxHeight==null&&d.push("fc-scrollgrid-section-liquid"),i.isSticky&&d.push("fc-scrollgrid-section-sticky"),d}function W$(i){return Qe("div",{className:"fc-scrollgrid-sticky-shim",style:{width:i.clientWidth,minWidth:i.tableMinWidth}})}function L7(i){let{stickyHeaderDates:a}=i;return(a==null||a==="auto")&&(a=i.height==="auto"||i.viewHeight==="auto"),a}function FQ(i){let{stickyFooterScrollbar:a}=i;return(a==null||a==="auto")&&(a=i.height==="auto"||i.viewHeight==="auto"),a}class j$ extends Da{constructor(){super(...arguments),this.processCols=Ts(a=>a,xle),this.renderMicroColGroup=Ts(Ele),this.scrollerRefs=new z1,this.scrollerElRefs=new z1(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:a,state:d,context:p}=this,v=a.sections||[],S=this.processCols(a.cols),E=this.renderMicroColGroup(S,d.shrinkWidth),A=Tle(a.liquid,p);a.collapsibleWidth&&A.push("fc-scrollgrid-collapsible");let $=v.length,L=0,z,se=[],oe=[],Z=[];for(;L<$&&(z=v[L]).type==="header";)se.push(this.renderSection(z,E,!0)),L+=1;for(;L<$&&(z=v[L]).type==="body";)oe.push(this.renderSection(z,E,!1)),L+=1;for(;L<$&&(z=v[L]).type==="footer";)Z.push(this.renderSection(z,E,!0)),L+=1;let X=!CQ();const le={role:"rowgroup"};return Qe("table",{role:"grid",className:A.join(" "),style:{height:a.height}},!!(!X&&se.length)&&Qe("thead",le,...se),!!(!X&&oe.length)&&Qe("tbody",le,...oe),!!(!X&&Z.length)&&Qe("tfoot",le,...Z),X&&Qe("tbody",le,...se,...oe,...Z))}renderSection(a,d,p){return"outerContent"in a?Qe(ql,{key:a.key},a.outerContent):Qe("tr",{key:a.key,role:"presentation",className:Dle(a,this.props.liquid).join(" ")},this.renderChunkTd(a,d,a.chunk,p))}renderChunkTd(a,d,p,v){if("outerContent"in p)return p.outerContent;let{props:S}=this,{forceYScrollbars:E,scrollerClientWidths:A,scrollerClientHeights:$}=this.state,L=_le(S,a),z=PQ(S,a),se=S.liquid?E?"scroll":L?"auto":"hidden":"visible",oe=a.key,Z=Sle(a,p,{tableColGroupNode:d,tableMinWidth:"",clientWidth:!S.collapsibleWidth&&A[oe]!==void 0?A[oe]:null,clientHeight:$[oe]!==void 0?$[oe]:null,expandRows:a.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},v);return Qe(v?"th":"td",{ref:p.elRef,role:"presentation"},Qe("div",{className:`fc-scroller-harness${z?" fc-scroller-harness-liquid":""}`},Qe(Cle,{ref:this.scrollerRefs.createRef(oe),elRef:this.scrollerElRefs.createRef(oe),overflowY:se,overflowX:S.liquid?"hidden":"visible",maxHeight:a.maxHeight,liquid:z,liquidIsAbsolute:!0},Z)))}_handleScrollerEl(a,d){let p=Nle(this.props.sections,d);p&&V1(p.chunk.scrollerElRef,a)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Ale(this.props.cols)?wle(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let a=Jae(),{scrollerRefs:d,scrollerElRefs:p}=this,v=!1,S={},E={};for(let A in d.currentMap){let $=d.currentMap[A];if($&&$.needsYScrolling()){v=!0;break}}for(let A of this.props.sections){let $=A.key,L=p.currentMap[$];if(L){let z=L.parentNode;S[$]=Math.floor(z.getBoundingClientRect().width-(v?a.y:0)),E[$]=Math.floor(z.getBoundingClientRect().height)}}return{forceYScrollbars:v,scrollerClientWidths:S,scrollerClientHeights:E}}}j$.addStateEquality({scrollerClientWidths:cg,scrollerClientHeights:cg});function Nle(i,a){for(let d of i)if(d.key===a)return d;return null}class Z$ extends Da{constructor(){super(...arguments),this.handleEl=a=>{this.el=a,a&&dQ(a,this.props.seg)}}render(){const{props:a,context:d}=this,{options:p}=d,{seg:v}=a,{eventRange:S}=v,{ui:E}=S,A={event:new li(d,S.def,S.instance),view:d.viewApi,timeText:a.timeText,textColor:E.textColor,backgroundColor:E.backgroundColor,borderColor:E.borderColor,isDraggable:!a.disableDragging&&kae(v,d),isStartResizable:!a.disableResizing&&Aae(v,d),isEndResizable:!a.disableResizing&&Tae(v),isMirror:!!(a.isDragging||a.isResizing||a.isDateSelecting),isStart:!!v.isStart,isEnd:!!v.isEnd,isPast:!!a.isPast,isFuture:!!a.isFuture,isToday:!!a.isToday,isSelected:!!a.isSelected,isDragging:!!a.isDragging,isResizing:!!a.isResizing};return Qe(tm,Object.assign({},a,{elRef:this.handleEl,elClasses:[...Dae(A),...v.eventRange.ui.classNames,...a.elClasses||[]],renderProps:A,generatorName:"eventContent",customGenerator:p.eventContent,defaultGenerator:a.defaultGenerator,classNameGenerator:p.eventClassNames,didMount:p.eventDidMount,willUnmount:p.eventWillUnmount}))}componentDidUpdate(a){this.el&&this.props.seg!==a.seg&&dQ(this.el,this.props.seg)}}class $Q extends Da{render(){let{props:a,context:d}=this,{options:p}=d,{seg:v}=a,{ui:S}=v.eventRange,E=p.eventTimeFormat||a.defaultTimeFormat,A=hQ(v,E,d,a.defaultDisplayEventTime,a.defaultDisplayEventEnd);return Qe(Z$,Object.assign({},a,{elTag:"a",elStyle:{borderColor:S.borderColor,backgroundColor:S.backgroundColor},elAttrs:gQ(v,d),defaultGenerator:Rle,timeText:A}),($,L)=>Qe(ql,null,Qe($,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:L.textColor}}),!!L.isStartResizable&&Qe("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!L.isEndResizable&&Qe("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function Rle(i){return Qe("div",{className:"fc-event-main-frame"},i.timeText&&Qe("div",{className:"fc-event-time"},i.timeText),Qe("div",{className:"fc-event-title-container"},Qe("div",{className:"fc-event-title fc-sticky"},i.event.title||Qe(ql,null," "))))}const G$=i=>Qe(L1.Consumer,null,a=>{let{options:d}=a,p={isAxis:i.isAxis,date:a.dateEnv.toDate(i.date),view:a.viewApi};return Qe(tm,Object.assign({},i,{elTag:i.elTag||"div",renderProps:p,generatorName:"nowIndicatorContent",customGenerator:d.nowIndicatorContent,classNameGenerator:d.nowIndicatorClassNames,didMount:d.nowIndicatorDidMount,willUnmount:d.nowIndicatorWillUnmount}))}),Ole=Ci({day:"numeric"});class q$ extends Da{constructor(){super(...arguments),this.refineRenderProps=C7(Ble)}render(){let{props:a,context:d}=this,{options:p}=d,v=this.refineRenderProps({date:a.date,dateProfile:a.dateProfile,todayRange:a.todayRange,isMonthStart:a.isMonthStart||!1,showDayNumber:a.showDayNumber,extraRenderProps:a.extraRenderProps,viewApi:d.viewApi,dateEnv:d.dateEnv,monthStartFormat:p.monthStartFormat});return Qe(tm,Object.assign({},a,{elClasses:[...B$(v,d.theme),...a.elClasses||[]],elAttrs:Object.assign(Object.assign({},a.elAttrs),v.isDisabled?{}:{"data-date":u$(a.date)}),renderProps:v,generatorName:"dayCellContent",customGenerator:p.dayCellContent,defaultGenerator:a.defaultGenerator,classNameGenerator:v.isDisabled?void 0:p.dayCellClassNames,didMount:p.dayCellDidMount,willUnmount:p.dayCellWillUnmount}))}}function K$(i){return!!(i.dayCellContent||v$("dayCellContent",i))}function Ble(i){let{date:a,dateEnv:d,dateProfile:p,isMonthStart:v}=i,S=_Q(a,i.todayRange,null,p),E=i.showDayNumber?d.format(a,v?i.monthStartFormat:Ole):"";return Object.assign(Object.assign(Object.assign({date:d.toDate(a),view:i.viewApi},S),{isMonthStart:v,dayNumberText:E}),i.extraRenderProps)}class LQ extends Da{render(){let{props:a}=this,{seg:d}=a;return Qe(Z$,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:d.eventRange.ui.backgroundColor},defaultGenerator:Mle,seg:d,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:a.isPast,isFuture:a.isFuture,isToday:a.isToday,disableDragging:!0,disableResizing:!0})}}function Mle(i){let{title:a}=i.event;return a&&Qe("div",{className:"fc-event-title"},i.event.title)}function VQ(i){return Qe("div",{className:`fc-${i}`})}const HQ=i=>Qe(L1.Consumer,null,a=>{let{dateEnv:d,options:p}=a,{date:v}=i,S=p.weekNumberFormat||i.defaultFormat,E=d.computeWeekNumber(v),A=d.format(v,S);return Qe(tm,Object.assign({},i,{renderProps:{num:E,text:A,date:v},generatorName:"weekNumberContent",customGenerator:p.weekNumberContent,defaultGenerator:Ile,classNameGenerator:p.weekNumberClassNames,didMount:p.weekNumberDidMount,willUnmount:p.weekNumberWillUnmount}))});function Ile(i){return i.text}const Y$=10;class Ple extends Da{constructor(){super(...arguments),this.state={titleId:g7()},this.handleRootEl=a=>{this.rootEl=a,this.props.elRef&&V1(this.props.elRef,a)},this.handleDocumentMouseDown=a=>{const d=CX(a);this.rootEl.contains(d)||this.handleCloseClick()},this.handleDocumentKeyDown=a=>{a.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:a}=this.props;a&&a()}}render(){let{theme:a,options:d}=this.context,{props:p,state:v}=this,S=["fc-popover",a.getClass("popover")].concat(p.extraClassNames||[]);return gse(Qe("div",Object.assign({},p.extraAttrs,{id:p.id,className:S.join(" "),"aria-labelledby":v.titleId,ref:this.handleRootEl}),Qe("div",{className:"fc-popover-header "+a.getClass("popoverHeader")},Qe("span",{className:"fc-popover-title",id:v.titleId},p.title),Qe("span",{className:"fc-popover-close "+a.getIconClass("close"),title:d.closeHint,onClick:this.handleCloseClick})),Qe("div",{className:"fc-popover-body "+a.getClass("popoverContent")},p.children)),p.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:a}=this.context,{alignmentEl:d,alignGridTop:p}=this.props,{rootEl:v}=this,S=ole(d);if(S){let E=v.getBoundingClientRect(),A=p?Vu(d,".fc-scrollgrid").getBoundingClientRect().top:S.top,$=a?S.right-E.width:S.left;A=Math.max(A,Y$),$=Math.min($,document.documentElement.clientWidth-Y$-E.width),$=Math.max($,Y$);let L=v.offsetParent.getBoundingClientRect();tk(v,{top:A-L.top,left:$-L.left})}}}class Fle extends ug{constructor(){super(...arguments),this.handleRootEl=a=>{this.rootEl=a,a?this.context.registerInteractiveComponent(this,{el:a,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:a,dateEnv:d}=this.context,{props:p}=this,{startDate:v,todayRange:S,dateProfile:E}=p,A=d.format(v,a.dayPopoverFormat);return Qe(q$,{elRef:this.handleRootEl,date:v,dateProfile:E,todayRange:S},($,L,z)=>Qe(Ple,{elRef:z.ref,id:p.id,title:A,extraClassNames:["fc-more-popover"].concat(z.className||[]),extraAttrs:z,parentEl:p.parentEl,alignmentEl:p.alignmentEl,alignGridTop:p.alignGridTop,onClose:p.onClose},K$(a)&&Qe($,{elTag:"div",elClasses:["fc-more-popover-misc"]}),p.children))}queryHit(a,d,p,v){let{rootEl:S,props:E}=this;return a>=0&&a<p&&d>=0&&d<v?{dateProfile:E.dateProfile,dateSpan:Object.assign({allDay:!E.forceTimed,range:{start:E.startDate,end:E.endDate}},E.extraDateSpan),dayEl:S,rect:{left:0,top:0,right:p,bottom:v},layer:1}:null}}class zQ extends Da{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:g7()},this.handleLinkEl=a=>{this.linkEl=a,this.props.elRef&&V1(this.props.elRef,a)},this.handleClick=a=>{let{props:d,context:p}=this,{moreLinkClick:v}=p.options,S=UQ(d).start;function E(A){let{def:$,instance:L,range:z}=A.eventRange;return{event:new li(p,$,L),start:p.dateEnv.toDate(z.start),end:p.dateEnv.toDate(z.end),isStart:A.isStart,isEnd:A.isEnd}}typeof v=="function"&&(v=v({date:S,allDay:!!d.allDayDate,allSegs:d.allSegs.map(E),hiddenSegs:d.hiddenSegs.map(E),jsEvent:a,view:p.viewApi})),!v||v==="popover"?this.setState({isPopoverOpen:!0}):typeof v=="string"&&p.calendarApi.zoomTo(S,v)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:a,state:d}=this;return Qe(L1.Consumer,null,p=>{let{viewApi:v,options:S,calendarApi:E}=p,{moreLinkText:A}=S,{moreCnt:$}=a,L=UQ(a),z=typeof A=="function"?A.call(E,$):`+${$} ${A}`,se=nk(S.moreLinkHint,[$],z),oe={num:$,shortText:`+${$}`,text:z,view:v};return Qe(ql,null,!!a.moreCnt&&Qe(tm,{elTag:a.elTag||"a",elRef:this.handleLinkEl,elClasses:[...a.elClasses||[],"fc-more-link"],elStyle:a.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},a.elAttrs),xX(this.handleClick)),{title:se,"aria-expanded":d.isPopoverOpen,"aria-controls":d.isPopoverOpen?d.popoverId:""}),renderProps:oe,generatorName:"moreLinkContent",customGenerator:S.moreLinkContent,defaultGenerator:a.defaultGenerator||$le,classNameGenerator:S.moreLinkClassNames,didMount:S.moreLinkDidMount,willUnmount:S.moreLinkWillUnmount},a.children),d.isPopoverOpen&&Qe(Fle,{id:d.popoverId,startDate:L.start,endDate:L.end,dateProfile:a.dateProfile,todayRange:a.todayRange,extraDateSpan:a.extraDateSpan,parentEl:this.parentEl,alignmentEl:a.alignmentElRef?a.alignmentElRef.current:this.linkEl,alignGridTop:a.alignGridTop,forceTimed:a.forceTimed,onClose:this.handlePopoverClose},a.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=Vu(this.linkEl,".fc-view-harness"))}}function $le(i){return i.text}function UQ(i){if(i.allDayDate)return{start:i.allDayDate,end:Hu(i.allDayDate,1)};let{hiddenSegs:a}=i;return{start:WQ(a),end:Vle(a)}}function WQ(i){return i.reduce(Lle).eventRange.range.start}function Lle(i,a){return i.eventRange.range.start<a.eventRange.range.start?i:a}function Vle(i){return i.reduce(Hle).eventRange.range.end}function Hle(i,a){return i.eventRange.range.end>a.eventRange.range.end?i:a}class zle{constructor(){this.handlers=[]}set(a){this.currentValue=a;for(let d of this.handlers)d(a)}subscribe(a){this.handlers.push(a),this.currentValue!==void 0&&a(this.currentValue)}}class Ule extends zle{constructor(){super(...arguments),this.map=new Map}handle(a){const{map:d}=this;let p=!1;a.isActive?(d.set(a.id,a),p=!0):d.has(a.id)&&(d.delete(a.id),p=!0),p&&this.set(d)}}const Wle=[],jQ={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},ZQ=Object.assign(Object.assign({},jQ),{buttonHints:{prev:"Previous $0",next:"Next $0",today(i,a){return a==="day"?"Today":`This ${i}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(i){return`Show ${i} more event${i===1?"":"s"}`}});function jle(i){let a=i.length>0?i[0].code:"en",d=Wle.concat(i),p={en:ZQ};for(let v of d)p[v.code]=v;return{map:p,defaultCode:a}}function GQ(i,a){return typeof i=="object"&&!Array.isArray(i)?qQ(i.code,[i.code],i):Zle(i,a)}function Zle(i,a){let d=[].concat(i||[]),p=Gle(d,a)||ZQ;return qQ(i,d,p)}function Gle(i,a){for(let d=0;d<i.length;d+=1){let p=i[d].toLocaleLowerCase().split("-");for(let v=p.length;v>0;v-=1){let S=p.slice(0,v).join("-");if(a[S])return a[S]}}return null}function qQ(i,a,d){let p=h$([jQ,d],["buttonText"]);delete p.code;let{week:v}=p;return delete p.week,{codeArg:i,codes:a,week:v,simpleNumberFormat:new Intl.NumberFormat(i),options:p}}function U1(i){return{id:e2(),name:i.name,premiumReleaseDate:i.premiumReleaseDate?new Date(i.premiumReleaseDate):void 0,deps:i.deps||[],reducers:i.reducers||[],isLoadingFuncs:i.isLoadingFuncs||[],contextInit:[].concat(i.contextInit||[]),eventRefiners:i.eventRefiners||{},eventDefMemberAdders:i.eventDefMemberAdders||[],eventSourceRefiners:i.eventSourceRefiners||{},isDraggableTransformers:i.isDraggableTransformers||[],eventDragMutationMassagers:i.eventDragMutationMassagers||[],eventDefMutationAppliers:i.eventDefMutationAppliers||[],dateSelectionTransformers:i.dateSelectionTransformers||[],datePointTransforms:i.datePointTransforms||[],dateSpanTransforms:i.dateSpanTransforms||[],views:i.views||{},viewPropsTransformers:i.viewPropsTransformers||[],isPropsValid:i.isPropsValid||null,externalDefTransforms:i.externalDefTransforms||[],viewContainerAppends:i.viewContainerAppends||[],eventDropTransformers:i.eventDropTransformers||[],componentInteractions:i.componentInteractions||[],calendarInteractions:i.calendarInteractions||[],themeClasses:i.themeClasses||{},eventSourceDefs:i.eventSourceDefs||[],cmdFormatter:i.cmdFormatter,recurringTypes:i.recurringTypes||[],namedTimeZonedImpl:i.namedTimeZonedImpl,initialView:i.initialView||"",elementDraggingImpl:i.elementDraggingImpl,optionChangeHandlers:i.optionChangeHandlers||{},scrollGridImpl:i.scrollGridImpl||null,listenerRefiners:i.listenerRefiners||{},optionRefiners:i.optionRefiners||{},propSetHandlers:i.propSetHandlers||{}}}function qle(i,a){let d={},p={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function v(S){for(let E of S){const A=E.name,$=d[A];$===void 0?(d[A]=E.id,v(E.deps),p=Yle(p,E)):$!==E.id&&console.warn(`Duplicate plugin '${A}'`)}}return i&&v(i),v(a),p}function Kle(){let i=[],a=[],d;return(p,v)=>((!d||!Mb(p,i)||!Mb(v,a))&&(d=qle(p,v)),i=p,a=v,d)}function Yle(i,a){return{premiumReleaseDate:Xle(i.premiumReleaseDate,a.premiumReleaseDate),reducers:i.reducers.concat(a.reducers),isLoadingFuncs:i.isLoadingFuncs.concat(a.isLoadingFuncs),contextInit:i.contextInit.concat(a.contextInit),eventRefiners:Object.assign(Object.assign({},i.eventRefiners),a.eventRefiners),eventDefMemberAdders:i.eventDefMemberAdders.concat(a.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},i.eventSourceRefiners),a.eventSourceRefiners),isDraggableTransformers:i.isDraggableTransformers.concat(a.isDraggableTransformers),eventDragMutationMassagers:i.eventDragMutationMassagers.concat(a.eventDragMutationMassagers),eventDefMutationAppliers:i.eventDefMutationAppliers.concat(a.eventDefMutationAppliers),dateSelectionTransformers:i.dateSelectionTransformers.concat(a.dateSelectionTransformers),datePointTransforms:i.datePointTransforms.concat(a.datePointTransforms),dateSpanTransforms:i.dateSpanTransforms.concat(a.dateSpanTransforms),views:Object.assign(Object.assign({},i.views),a.views),viewPropsTransformers:i.viewPropsTransformers.concat(a.viewPropsTransformers),isPropsValid:a.isPropsValid||i.isPropsValid,externalDefTransforms:i.externalDefTransforms.concat(a.externalDefTransforms),viewContainerAppends:i.viewContainerAppends.concat(a.viewContainerAppends),eventDropTransformers:i.eventDropTransformers.concat(a.eventDropTransformers),calendarInteractions:i.calendarInteractions.concat(a.calendarInteractions),componentInteractions:i.componentInteractions.concat(a.componentInteractions),themeClasses:Object.assign(Object.assign({},i.themeClasses),a.themeClasses),eventSourceDefs:i.eventSourceDefs.concat(a.eventSourceDefs),cmdFormatter:a.cmdFormatter||i.cmdFormatter,recurringTypes:i.recurringTypes.concat(a.recurringTypes),namedTimeZonedImpl:a.namedTimeZonedImpl||i.namedTimeZonedImpl,initialView:i.initialView||a.initialView,elementDraggingImpl:i.elementDraggingImpl||a.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},i.optionChangeHandlers),a.optionChangeHandlers),scrollGridImpl:a.scrollGridImpl||i.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},i.listenerRefiners),a.listenerRefiners),optionRefiners:Object.assign(Object.assign({},i.optionRefiners),a.optionRefiners),propSetHandlers:Object.assign(Object.assign({},i.propSetHandlers),a.propSetHandlers)}}function Xle(i,a){return i===void 0?a:a===void 0?i:new Date(Math.max(i.valueOf(),a.valueOf()))}class Lb extends sk{}Lb.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Lb.prototype.baseIconClass="fc-icon",Lb.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Lb.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Lb.prototype.iconOverrideOption="buttonIcons",Lb.prototype.iconOverrideCustomButtonOption="icon",Lb.prototype.iconOverridePrefix="fc-icon-";function Qle(i,a){let d={},p;for(p in i)X$(p,d,i,a);for(p in a)X$(p,d,i,a);return d}function X$(i,a,d,p){if(a[i])return a[i];let v=Jle(i,a,d,p);return v&&(a[i]=v),v}function Jle(i,a,d,p){let v=d[i],S=p[i],E=z=>v&&v[z]!==null?v[z]:S&&S[z]!==null?S[z]:null,A=E("component"),$=E("superType"),L=null;if($){if($===i)throw new Error("Can't have a custom view type that references itself");L=X$($,a,d,p)}return!A&&L&&(A=L.component),A?{type:i,component:A,defaults:Object.assign(Object.assign({},L?L.defaults:{}),v?v.rawOptions:{}),overrides:Object.assign(Object.assign({},L?L.overrides:{}),S?S.rawOptions:{})}:null}function KQ(i){return $1(i,eie)}function eie(i){let a=typeof i=="function"?{component:i}:i,{component:d}=a;return a.content?d=YQ(a):d&&!(d.prototype instanceof Da)&&(d=YQ(Object.assign(Object.assign({},a),{content:d}))),{superType:a.type,component:d,rawOptions:a}}function YQ(i){return a=>Qe(L1.Consumer,null,d=>Qe(tm,{elTag:"div",elClasses:jX(d.viewSpec),renderProps:Object.assign(Object.assign({},a),{nextDayThreshold:d.options.nextDayThreshold}),generatorName:void 0,customGenerator:i.content,classNameGenerator:i.classNames,didMount:i.didMount,willUnmount:i.willUnmount}))}function tie(i,a,d,p){let v=KQ(i),S=KQ(a.views),E=Qle(v,S);return $1(E,A=>nie(A,S,a,d,p))}function nie(i,a,d,p,v){let S=i.overrides.duration||i.defaults.duration||p.duration||d.duration,E=null,A="",$="",L={};if(S&&(E=oie(S),E)){let oe=i$(E);A=oe.unit,oe.value===1&&($=A,L=a[A]?a[A].rawOptions:{})}let z=oe=>{let Z=oe.buttonText||{},X=i.defaults.buttonTextKey;return X!=null&&Z[X]!=null?Z[X]:Z[i.type]!=null?Z[i.type]:Z[$]!=null?Z[$]:null},se=oe=>{let Z=oe.buttonHints||{},X=i.defaults.buttonTextKey;return X!=null&&Z[X]!=null?Z[X]:Z[i.type]!=null?Z[i.type]:Z[$]!=null?Z[$]:null};return{type:i.type,component:i.component,duration:E,durationUnit:A,singleUnit:$,optionDefaults:i.defaults,optionOverrides:Object.assign(Object.assign({},L),i.overrides),buttonTextOverride:z(p)||z(d)||i.overrides.buttonText,buttonTextDefault:z(v)||i.defaults.buttonText||z(ok)||i.type,buttonTitleOverride:se(p)||se(d)||i.overrides.buttonHint,buttonTitleDefault:se(v)||i.defaults.buttonHint||se(ok)}}let XQ={};function oie(i){let a=JSON.stringify(i),d=XQ[a];return d===void 0&&(d=Gr(i),XQ[a]=d),d}function sie(i,a){switch(a.type){case"CHANGE_VIEW_TYPE":i=a.viewType}return i}function rie(i,a){switch(a.type){case"SET_OPTION":return Object.assign(Object.assign({},i),{[a.optionName]:a.rawOptionValue});default:return i}}function aie(i,a,d,p){let v;switch(a.type){case"CHANGE_VIEW_TYPE":return p.build(a.dateMarker||d);case"CHANGE_DATE":return p.build(a.dateMarker);case"PREV":if(v=p.buildPrev(i,d),v.isValid)return v;break;case"NEXT":if(v=p.buildNext(i,d),v.isValid)return v;break}return i}function lie(i,a,d){let p=a?a.activeRange:null;return JQ({},hie(i,d),p,d)}function iie(i,a,d,p){let v=d?d.activeRange:null;switch(a.type){case"ADD_EVENT_SOURCES":return JQ(i,a.sources,v,p);case"REMOVE_EVENT_SOURCE":return uie(i,a.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return d?eJ(i,v,p):i;case"FETCH_EVENT_SOURCES":return Q$(i,a.sourceIds?VX(a.sourceIds):tJ(i,p),v,a.isRefetch||!1,p);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return mie(i,a.sourceId,a.fetchId,a.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return i}}function cie(i,a,d){let p=a?a.activeRange:null;return Q$(i,tJ(i,d),p,!0,d)}function QQ(i){for(let a in i)if(i[a].isFetching)return!0;return!1}function JQ(i,a,d,p){let v={};for(let S of a)v[S.sourceId]=S;return d&&(v=eJ(v,d,p)),Object.assign(Object.assign({},i),v)}function uie(i,a){return s2(i,d=>d.sourceId!==a)}function eJ(i,a,d){return Q$(i,s2(i,p=>die(p,a,d)),a,!1,d)}function die(i,a,d){return nJ(i,d)?!d.options.lazyFetching||!i.fetchRange||i.isFetching||a.start<i.fetchRange.start||a.end>i.fetchRange.end:!i.latestFetchId}function Q$(i,a,d,p,v){let S={};for(let E in i){let A=i[E];a[E]?S[E]=fie(A,d,p,v):S[E]=A}return S}function fie(i,a,d,p){let{options:v,calendarApi:S}=p,E=p.pluginHooks.eventSourceDefs[i.sourceDefId],A=e2();return E.fetch({eventSource:i,range:a,isRefetch:d,context:p},$=>{let{rawEvents:L}=$;v.eventSourceSuccess&&(L=v.eventSourceSuccess.call(S,L,$.response)||L),i.success&&(L=i.success.call(S,L,$.response)||L),p.dispatch({type:"RECEIVE_EVENTS",sourceId:i.sourceId,fetchId:A,fetchRange:a,rawEvents:L})},$=>{let L=!1;v.eventSourceFailure&&(v.eventSourceFailure.call(S,$),L=!0),i.failure&&(i.failure($),L=!0),L||console.warn($.message,$),p.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:i.sourceId,fetchId:A,fetchRange:a,error:$})}),Object.assign(Object.assign({},i),{isFetching:!0,latestFetchId:A})}function mie(i,a,d,p){let v=i[a];return v&&d===v.latestFetchId?Object.assign(Object.assign({},i),{[a]:Object.assign(Object.assign({},v),{isFetching:!1,fetchRange:p})}):i}function tJ(i,a){return s2(i,d=>nJ(d,a))}function hie(i,a){let d=nQ(a),p=[].concat(i.eventSources||[]),v=[];i.initialEvents&&p.unshift(i.initialEvents),i.events&&p.unshift(i.events);for(let S of p){let E=tQ(S,a,d);E&&v.push(E)}return v}function nJ(i,a){return!a.pluginHooks.eventSourceDefs[i.sourceDefId].ignoreRange}function pie(i,a){switch(a.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return a.selection;default:return i}}function gie(i,a){switch(a.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return a.eventInstanceId;default:return i}}function bie(i,a){let d;switch(a.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return d=a.state,{affectedEvents:d.affectedEvents,mutatedEvents:d.mutatedEvents,isEvent:d.isEvent};default:return i}}function yie(i,a){let d;switch(a.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return d=a.state,{affectedEvents:d.affectedEvents,mutatedEvents:d.mutatedEvents,isEvent:d.isEvent};default:return i}}function vie(i,a,d,p,v){let S=i.headerToolbar?oJ(i.headerToolbar,i,a,d,p,v):null,E=i.footerToolbar?oJ(i.footerToolbar,i,a,d,p,v):null;return{header:S,footer:E}}function oJ(i,a,d,p,v,S){let E={},A=[],$=!1;for(let L in i){let z=i[L],se=Cie(z,a,d,p,v,S);E[L]=se.widgets,A.push(...se.viewsWithButtons),$=$||se.hasTitle}return{sectionWidgets:E,viewsWithButtons:A,hasTitle:$}}function Cie(i,a,d,p,v,S){let E=a.direction==="rtl",A=a.customButtons||{},$=d.buttonText||{},L=a.buttonText||{},z=d.buttonHints||{},se=a.buttonHints||{},oe=i?i.split(" "):[],Z=[],X=!1;return{widgets:oe.map(J=>J.split(",").map(me=>{if(me==="title")return X=!0,{buttonName:me};let ie,G,we,wt,Ve,K;if(ie=A[me])we=De=>{ie.click&&ie.click.call(De.target,De,De.target)},(wt=p.getCustomButtonIconClass(ie))||(wt=p.getIconClass(me,E))||(Ve=ie.text),K=ie.hint||ie.text;else if(G=v[me]){Z.push(me),we=()=>{S.changeView(me)},(Ve=G.buttonTextOverride)||(wt=p.getIconClass(me,E))||(Ve=G.buttonTextDefault);let De=G.buttonTextOverride||G.buttonTextDefault;K=nk(G.buttonTitleOverride||G.buttonTitleDefault||a.viewHint,[De,me],De)}else if(S[me])if(we=()=>{S[me]()},(Ve=$[me])||(wt=p.getIconClass(me,E))||(Ve=L[me]),me==="prevYear"||me==="nextYear"){let De=me==="prevYear"?"prev":"next";K=nk(z[De]||se[De],[L.year||"year","year"],L[me])}else K=De=>nk(z[me]||se[me],[L[De]||De,De],L[me]);return{buttonName:me,buttonClick:we,buttonIcon:wt,buttonText:Ve,buttonHint:K}})),viewsWithButtons:Z,hasTitle:X}}class wie{constructor(a,d,p){this.type=a,this.getCurrentData=d,this.dateEnv=p}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(a){return this.getCurrentData().options[a]}}const _ie=U1({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(i){return Array.isArray(i.events)?i.events:null},fetch(i,a){a({rawEvents:i.eventSource.meta})}}]}),Sie=U1({name:"func-event-source",eventSourceDefs:[{parseMeta(i){return typeof i.events=="function"?i.events:null},fetch(i,a,d){const{dateEnv:p}=i.context,v=i.eventSource.meta;Fae(v.bind(null,bQ(i.range,p)),S=>a({rawEvents:S}),d)}}]}),xie=U1({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:jt,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(i){return i.url&&(i.format==="json"||!i.format)?{url:i.url,format:"json",method:(i.method||"GET").toUpperCase(),extraParams:i.extraParams,startParam:i.startParam,endParam:i.endParam,timeZoneParam:i.timeZoneParam}:null},fetch(i,a,d){const{meta:p}=i.eventSource,v=Eie(p,i.range,i.context);$ae(p.method,p.url,v).then(([S,E])=>{a({rawEvents:S,response:E})},d)}}]});function Eie(i,a,d){let{dateEnv:p,options:v}=d,S,E,A,$,L={};return S=i.startParam,S==null&&(S=v.startParam),E=i.endParam,E==null&&(E=v.endParam),A=i.timeZoneParam,A==null&&(A=v.timeZoneParam),typeof i.extraParams=="function"?$=i.extraParams():$=i.extraParams||{},Object.assign(L,$),L[S]=p.formatIso(a.start),L[E]=p.formatIso(a.end),p.timeZone!=="local"&&(L[A]=p.timeZone),L}const kie=U1({name:"simple-recurring-event",recurringTypes:[{parse(i,a){if(i.daysOfWeek||i.startTime||i.endTime||i.startRecur||i.endRecur){let d={daysOfWeek:i.daysOfWeek||null,startTime:i.startTime||null,endTime:i.endTime||null,startRecur:i.startRecur?a.createMarker(i.startRecur):null,endRecur:i.endRecur?a.createMarker(i.endRecur):null},p;return i.duration&&(p=i.duration),!p&&i.startTime&&i.endTime&&(p=qse(i.endTime,i.startTime)),{allDayGuess:!i.startTime&&!i.endTime,duration:p,typeData:d}}return null},expand(i,a,d){let p=a2(a,{start:i.startRecur,end:i.endRecur});return p?Aie(i.daysOfWeek,i.startTime,p,d):[]}}],eventRefiners:{daysOfWeek:jt,startTime:Gr,endTime:Gr,duration:Gr,startRecur:jt,endRecur:jt}});function Aie(i,a,d,p){let v=i?VX(i):null,S=kl(d.start),E=d.end,A=[];for(;S<E;){let $;(!v||v[S.getUTCDay()])&&(a?$=p.add(S,a):$=S,A.push($)),S=Hu(S,1)}return A}const Tie=U1({name:"change-handler",optionChangeHandlers:{events(i,a){sJ([i],a)},eventSources:sJ}});function sJ(i,a){let d=p$(a.getCurrentData().eventSources);if(d.length===1&&i.length===1&&Array.isArray(d[0]._raw)&&Array.isArray(i[0])){a.dispatch({type:"RESET_RAW_EVENTS",sourceId:d[0].sourceId,rawEvents:i[0]});return}let p=[];for(let v of i){let S=!1;for(let E=0;E<d.length;E+=1)if(d[E]._raw===v){d.splice(E,1),S=!0;break}S||p.push(v)}for(let v of d)a.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:v.sourceId});for(let v of p)a.calendarApi.addEventSource(v)}function Die(i,a){a.emitter.trigger("datesSet",Object.assign(Object.assign({},bQ(i.activeRange,a.dateEnv)),{view:a.viewApi}))}function Nie(i,a){let{emitter:d}=a;d.hasHandlers("eventsSet")&&d.trigger("eventsSet",i2(i,a))}const Rie=[_ie,Sie,xie,kie,Tie,U1({name:"misc",isLoadingFuncs:[i=>QQ(i.eventSources)],propSetHandlers:{dateProfile:Die,eventStore:Nie}})];class Oie{constructor(a,d){this.runTaskOption=a,this.drainedOption=d,this.queue=[],this.delayedRunner=new n$(this.drain.bind(this))}request(a,d){this.queue.push(a),this.delayedRunner.request(d)}pause(a){this.delayedRunner.pause(a)}resume(a,d){this.delayedRunner.resume(a,d)}drain(){let{queue:a}=this;for(;a.length;){let d=[],p;for(;p=a.shift();)this.runTask(p),d.push(p);this.drained(d)}}runTask(a){this.runTaskOption&&this.runTaskOption(a)}drained(a){this.drainedOption&&this.drainedOption(a)}}function Bie(i,a,d){let p;return/^(year|month)$/.test(i.currentRangeUnit)?p=i.currentRange:p=i.activeRange,d.formatRange(p.start,p.end,Ci(a.titleFormat||Mie(i)),{isEndExclusive:i.isRangeAllDay,defaultSeparator:a.titleRangeSeparator})}function Mie(i){let{currentRangeUnit:a}=i;if(a==="year")return{year:"numeric"};if(a==="month")return{year:"numeric",month:"long"};let d=v7(i.currentRange.start,i.currentRange.end);return d!==null&&d>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class Iie{constructor(a){this.computeCurrentViewData=Ts(this._computeCurrentViewData),this.organizeRawLocales=Ts(jle),this.buildLocale=Ts(GQ),this.buildPluginHooks=Kle(),this.buildDateEnv=Ts(Pie),this.buildTheme=Ts(Fie),this.parseToolbars=Ts(vie),this.buildViewSpecs=Ts(tie),this.buildDateProfileGenerator=C7($ie),this.buildViewApi=Ts(Lie),this.buildViewUiProps=C7(zie),this.buildEventUiBySource=Ts(Vie,cg),this.buildEventUiBases=Ts(Hie),this.parseContextBusinessHours=C7(Uie),this.buildTitle=Ts(Bie),this.emitter=new B7,this.actionRunner=new Oie(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=oe=>{this.actionRunner.request(oe)},this.props=a,this.actionRunner.pause();let d={},p=this.computeOptionsData(a.optionOverrides,d,a.calendarApi),v=p.calendarOptions.initialView||p.pluginHooks.initialView,S=this.computeCurrentViewData(v,p,a.optionOverrides,d);a.calendarApi.currentDataManager=this,this.emitter.setThisContext(a.calendarApi),this.emitter.setOptions(S.options);let E=Xre(p.calendarOptions,p.dateEnv),A=S.dateProfileGenerator.build(E);H1(A.activeRange,E)||(E=A.currentRange.start);let $={dateEnv:p.dateEnv,options:p.calendarOptions,pluginHooks:p.pluginHooks,calendarApi:a.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let oe of p.pluginHooks.contextInit)oe($);let L=lie(p.calendarOptions,A,$),z={dynamicOptionOverrides:d,currentViewType:v,currentDate:E,dateProfile:A,businessHours:this.parseContextBusinessHours($),eventSources:L,eventUiBases:{},eventStore:nm(),renderableEventStore:nm(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps($).selectionConfig},se=Object.assign(Object.assign({},$),z);for(let oe of p.pluginHooks.reducers)Object.assign(z,oe(null,null,se));J$(z,$)&&this.emitter.trigger("loading",!0),this.state=z,this.updateData(),this.actionRunner.resume()}resetOptions(a,d){let{props:p}=this;d===void 0?p.optionOverrides=a:(p.optionOverrides=Object.assign(Object.assign({},p.optionOverrides||{}),a),this.optionsForRefining.push(...d)),(d===void 0||d.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(a){let{props:d,state:p,emitter:v}=this,S=rie(p.dynamicOptionOverrides,a),E=this.computeOptionsData(d.optionOverrides,S,d.calendarApi),A=sie(p.currentViewType,a),$=this.computeCurrentViewData(A,E,d.optionOverrides,S);d.calendarApi.currentDataManager=this,v.setThisContext(d.calendarApi),v.setOptions($.options);let L={dateEnv:E.dateEnv,options:E.calendarOptions,pluginHooks:E.pluginHooks,calendarApi:d.calendarApi,dispatch:this.dispatch,emitter:v,getCurrentData:this.getCurrentData},{currentDate:z,dateProfile:se}=p;this.data&&this.data.dateProfileGenerator!==$.dateProfileGenerator&&(se=$.dateProfileGenerator.build(z)),z=Yre(z,a),se=aie(se,a,z,$.dateProfileGenerator),(a.type==="PREV"||a.type==="NEXT"||!H1(se.currentRange,z))&&(z=se.currentRange.start);let oe=iie(p.eventSources,a,se,L),Z=uae(p.eventStore,a,oe,se,L),le=QQ(oe)&&!$.options.progressiveEventRendering&&p.renderableEventStore||Z,{eventUiSingleBase:J,selectionConfig:me}=this.buildViewUiProps(L),ie=this.buildEventUiBySource(oe),G=this.buildEventUiBases(le.defs,J,ie),we={dynamicOptionOverrides:S,currentViewType:A,currentDate:z,dateProfile:se,eventSources:oe,eventStore:Z,renderableEventStore:le,selectionConfig:me,eventUiBases:G,businessHours:this.parseContextBusinessHours(L),dateSelection:pie(p.dateSelection,a),eventSelection:gie(p.eventSelection,a),eventDrag:bie(p.eventDrag,a),eventResize:yie(p.eventResize,a)},wt=Object.assign(Object.assign({},L),we);for(let De of E.pluginHooks.reducers)Object.assign(we,De(p,a,wt));let Ve=J$(p,L),K=J$(we,L);!Ve&&K?v.trigger("loading",!0):Ve&&!K&&v.trigger("loading",!1),this.state=we,d.onAction&&d.onAction(a)}updateData(){let{props:a,state:d}=this,p=this.data,v=this.computeOptionsData(a.optionOverrides,d.dynamicOptionOverrides,a.calendarApi),S=this.computeCurrentViewData(d.currentViewType,v,a.optionOverrides,d.dynamicOptionOverrides),E=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(d.dateProfile,S.options,v.dateEnv),calendarApi:a.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},v),S),d),A=v.pluginHooks.optionChangeHandlers,$=p&&p.calendarOptions,L=v.calendarOptions;if($&&$!==L){$.timeZone!==L.timeZone&&(d.eventSources=E.eventSources=cie(E.eventSources,d.dateProfile,E),d.eventStore=E.eventStore=rQ(E.eventStore,p.dateEnv,E.dateEnv),d.renderableEventStore=E.renderableEventStore=rQ(E.renderableEventStore,p.dateEnv,E.dateEnv));for(let z in A)(this.optionsForHandling.indexOf(z)!==-1||$[z]!==L[z])&&A[z](L[z],E)}this.optionsForHandling=[],a.onData&&a.onData(E)}computeOptionsData(a,d,p){if(!this.optionsForRefining.length&&a===this.stableOptionOverrides&&d===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:v,pluginHooks:S,localeDefaults:E,availableLocaleData:A,extra:$}=this.processRawCalendarOptions(a,d);rJ($);let L=this.buildDateEnv(v.timeZone,v.locale,v.weekNumberCalculation,v.firstDay,v.weekText,S,A,v.defaultRangeSeparator),z=this.buildViewSpecs(S.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,E),se=this.buildTheme(v,S),oe=this.parseToolbars(v,this.stableOptionOverrides,se,z,p);return this.stableCalendarOptionsData={calendarOptions:v,pluginHooks:S,dateEnv:L,viewSpecs:z,theme:se,toolbarConfig:oe,localeDefaults:E,availableRawLocales:A.map}}processRawCalendarOptions(a,d){let{locales:p,locale:v}=f$([ok,a,d]),S=this.organizeRawLocales(p),E=S.map,A=this.buildLocale(v||S.defaultCode,E).options,$=this.buildPluginHooks(a.plugins||[],Rie),L=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},FX),$X),LX),$.listenerRefiners),$.optionRefiners),z={},se=f$([ok,A,a,d]),oe={},Z=this.currentCalendarOptionsInput,X=this.currentCalendarOptionsRefined,le=!1;for(let J in se)this.optionsForRefining.indexOf(J)===-1&&(se[J]===Z[J]||n2[J]&&J in Z&&n2[J](Z[J],se[J]))?oe[J]=X[J]:L[J]?(oe[J]=L[J](se[J]),le=!0):z[J]=Z[J];return le&&(this.currentCalendarOptionsInput=se,this.currentCalendarOptionsRefined=oe,this.stableOptionOverrides=a,this.stableDynamicOptionOverrides=d),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:$,availableLocaleData:S,localeDefaults:A,extra:z}}_computeCurrentViewData(a,d,p,v){let S=d.viewSpecs[a];if(!S)throw new Error(`viewType "${a}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:E,extra:A}=this.processRawViewOptions(S,d.pluginHooks,d.localeDefaults,p,v);rJ(A);let $=this.buildDateProfileGenerator({dateProfileGeneratorClass:S.optionDefaults.dateProfileGeneratorClass,duration:S.duration,durationUnit:S.durationUnit,usesMinMaxTime:S.optionDefaults.usesMinMaxTime,dateEnv:d.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:E.slotMinTime,slotMaxTime:E.slotMaxTime,showNonCurrentDates:E.showNonCurrentDates,dayCount:E.dayCount,dateAlignment:E.dateAlignment,dateIncrement:E.dateIncrement,hiddenDays:E.hiddenDays,weekends:E.weekends,nowInput:E.now,validRangeInput:E.validRange,visibleRangeInput:E.visibleRange,fixedWeekCount:E.fixedWeekCount}),L=this.buildViewApi(a,this.getCurrentData,d.dateEnv);return{viewSpec:S,options:E,dateProfileGenerator:$,viewApi:L}}processRawViewOptions(a,d,p,v,S){let E=f$([ok,a.optionDefaults,p,v,a.optionOverrides,S]),A=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},FX),$X),LX),Are),d.listenerRefiners),d.optionRefiners),$={},L=this.currentViewOptionsInput,z=this.currentViewOptionsRefined,se=!1,oe={};for(let Z in E)E[Z]===L[Z]||n2[Z]&&n2[Z](E[Z],L[Z])?$[Z]=z[Z]:(E[Z]===this.currentCalendarOptionsInput[Z]||n2[Z]&&n2[Z](E[Z],this.currentCalendarOptionsInput[Z])?Z in this.currentCalendarOptionsRefined&&($[Z]=this.currentCalendarOptionsRefined[Z]):A[Z]?$[Z]=A[Z](E[Z]):oe[Z]=E[Z],se=!0);return se&&(this.currentViewOptionsInput=E,this.currentViewOptionsRefined=$),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:oe}}}function Pie(i,a,d,p,v,S,E,A){let $=GQ(a||E.defaultCode,E.map);return new Fre({calendarSystem:"gregory",timeZone:i,namedTimeZoneImpl:S.namedTimeZonedImpl,locale:$,weekNumberCalculation:d,firstDay:p,weekText:v,cmdFormatter:S.cmdFormatter,defaultSeparator:A})}function Fie(i,a){let d=a.themeClasses[i.themeSystem]||Lb;return new d(i)}function $ie(i){let a=i.dateProfileGeneratorClass||KX;return new a(i)}function Lie(i,a,d){return new wie(i,a,d)}function Vie(i){return $1(i,a=>a.ui)}function Hie(i,a,d){let p={"":a};for(let v in i){let S=i[v];S.sourceId&&d[S.sourceId]&&(p[v]=d[S.sourceId])}return p}function zie(i){let{options:a}=i;return{eventUiSingleBase:O7({display:a.eventDisplay,editable:a.editable,startEditable:a.eventStartEditable,durationEditable:a.eventDurationEditable,constraint:a.eventConstraint,overlap:typeof a.eventOverlap=="boolean"?a.eventOverlap:void 0,allow:a.eventAllow,backgroundColor:a.eventBackgroundColor,borderColor:a.eventBorderColor,textColor:a.eventTextColor,color:a.eventColor},i),selectionConfig:O7({constraint:a.selectConstraint,overlap:typeof a.selectOverlap=="boolean"?a.selectOverlap:void 0,allow:a.selectAllow},i)}}function J$(i,a){for(let d of a.pluginHooks.isLoadingFuncs)if(d(i))return!0;return!1}function Uie(i){return vae(i.options.businessHours,i)}function rJ(i,a){for(let d in i)console.warn(`Unknown option '${d}'`+(a?` for view '${a}'`:""))}class Wie extends Da{render(){let a=this.props.widgetGroups.map(d=>this.renderWidgetGroup(d));return Qe("div",{className:"fc-toolbar-chunk"},...a)}renderWidgetGroup(a){let{props:d}=this,{theme:p}=this.context,v=[],S=!0;for(let E of a){let{buttonName:A,buttonClick:$,buttonText:L,buttonIcon:z,buttonHint:se}=E;if(A==="title")S=!1,v.push(Qe("h2",{className:"fc-toolbar-title",id:d.titleId},d.title));else{let oe=A===d.activeButton,Z=!d.isTodayEnabled&&A==="today"||!d.isPrevEnabled&&A==="prev"||!d.isNextEnabled&&A==="next",X=[`fc-${A}-button`,p.getClass("button")];oe&&X.push(p.getClass("buttonActive")),v.push(Qe("button",{type:"button",title:typeof se=="function"?se(d.navUnit):se,disabled:Z,"aria-pressed":oe,className:X.join(" "),onClick:$},L||(z?Qe("span",{className:z,role:"img"}):"")))}}if(v.length>1){let E=S&&p.getClass("buttonGroup")||"";return Qe("div",{className:E},...v)}return v[0]}}class aJ extends Da{render(){let{model:a,extraClassName:d}=this.props,p=!1,v,S,E=a.sectionWidgets,A=E.center;return E.left?(p=!0,v=E.left):v=E.start,E.right?(p=!0,S=E.right):S=E.end,Qe("div",{className:[d||"","fc-toolbar",p?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",v||[]),this.renderSection("center",A||[]),this.renderSection("end",S||[]))}renderSection(a,d){let{props:p}=this;return Qe(Wie,{key:a,widgetGroups:d,title:p.title,navUnit:p.navUnit,activeButton:p.activeButton,isTodayEnabled:p.isTodayEnabled,isPrevEnabled:p.isPrevEnabled,isNextEnabled:p.isNextEnabled,titleId:p.titleId})}}class jie extends Da{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=a=>{this.el=a,V1(this.props.elRef,a),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:a,state:d}=this,{aspectRatio:p}=a,v=["fc-view-harness",p||a.liquid||a.height?"fc-view-harness-active":"fc-view-harness-passive"],S="",E="";return p?d.availableWidth!==null?S=d.availableWidth/p:E=`${1/p*100}%`:S=a.height||"",Qe("div",{"aria-labelledby":a.labeledById,ref:this.handleEl,className:v.join(" "),style:{height:S,paddingBottom:E}},a.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class Zie extends F3{constructor(a){super(a),this.handleSegClick=(d,p)=>{let{component:v}=this,{context:S}=v,E=P3(p);if(E&&v.isValidSegDownEl(d.target)){let A=Vu(d.target,".fc-event-forced-url"),$=A?A.querySelector("a[href]").href:"";S.emitter.trigger("eventClick",{el:p,event:new li(v.context,E.eventRange.def,E.eventRange.instance),jsEvent:d,view:S.viewApi}),$&&!d.defaultPrevented&&(window.location.href=$)}},this.destroy=_X(a.el,"click",".fc-event",this.handleSegClick)}}class Gie extends F3{constructor(a){super(a),this.handleEventElRemove=d=>{d===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(d,p)=>{P3(p)&&(this.currentSegEl=p,this.triggerEvent("eventMouseEnter",d,p))},this.handleSegLeave=(d,p)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",d,p))},this.removeHoverListeners=Bse(a.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(a,d,p){let{component:v}=this,{context:S}=v,E=P3(p);(!d||v.isValidSegDownEl(d.target))&&S.emitter.trigger(a,{el:p,event:new li(S,E.eventRange.def,E.eventRange.instance),jsEvent:d,view:S.viewApi})}}class qie extends r2{constructor(){super(...arguments),this.buildViewContext=Ts(Vre),this.buildViewPropTransformers=Ts(Yie),this.buildToolbarProps=Ts(Kie),this.headerRef=kd(),this.footerRef=kd(),this.interactionsStore={},this.state={viewLabelId:g7()},this.registerInteractiveComponent=(a,d)=>{let p=Hae(a,d),E=[Zie,Gie].concat(this.props.pluginHooks.componentInteractions).map(A=>new A(p));this.interactionsStore[a.uid]=E,R$[a.uid]=p},this.unregisterInteractiveComponent=a=>{let d=this.interactionsStore[a.uid];if(d){for(let p of d)p.destroy();delete this.interactionsStore[a.uid]}delete R$[a.uid]},this.resizeRunner=new n$(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=a=>{let{options:d}=this.props;d.handleWindowResize&&a.target===window&&this.resizeRunner.request(d.windowResizeDelay)}}render(){let{props:a}=this,{toolbarConfig:d,options:p}=a,v=this.buildToolbarProps(a.viewSpec,a.dateProfile,a.dateProfileGenerator,a.currentDate,rk(a.options.now,a.dateEnv),a.viewTitle),S=!1,E="",A;a.isHeightAuto||a.forPrint?E="":p.height!=null?S=!0:p.contentHeight!=null?E=p.contentHeight:A=Math.max(p.aspectRatio,.5);let $=this.buildViewContext(a.viewSpec,a.viewApi,a.options,a.dateProfileGenerator,a.dateEnv,a.theme,a.pluginHooks,a.dispatch,a.getCurrentData,a.emitter,a.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),L=d.header&&d.header.hasTitle?this.state.viewLabelId:void 0;return Qe(L1.Provider,{value:$},d.header&&Qe(aJ,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:d.header,titleId:L},v)),Qe(jie,{liquid:S,height:E,aspectRatio:A,labeledById:L},this.renderView(a),this.buildAppendContent()),d.footer&&Qe(aJ,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:d.footer,titleId:""},v)))}componentDidMount(){let{props:a}=this;this.calendarInteractions=a.pluginHooks.calendarInteractions.map(p=>new p(a)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:d}=a.pluginHooks;for(let p in d)d[p](a[p],a)}componentDidUpdate(a){let{props:d}=this,{propSetHandlers:p}=d.pluginHooks;for(let v in p)d[v]!==a[v]&&p[v](d[v],d)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let a of this.calendarInteractions)a.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:a}=this,d=a.pluginHooks.viewContainerAppends.map(p=>p(a));return Qe(ql,{},...d)}renderView(a){let{pluginHooks:d}=a,{viewSpec:p}=a,v={dateProfile:a.dateProfile,businessHours:a.businessHours,eventStore:a.renderableEventStore,eventUiBases:a.eventUiBases,dateSelection:a.dateSelection,eventSelection:a.eventSelection,eventDrag:a.eventDrag,eventResize:a.eventResize,isHeightAuto:a.isHeightAuto,forPrint:a.forPrint},S=this.buildViewPropTransformers(d.viewPropsTransformers);for(let A of S)Object.assign(v,A.transform(v,a));let E=p.component;return Qe(E,Object.assign({},v))}}function Kie(i,a,d,p,v,S){let E=d.build(v,void 0,!1),A=d.buildPrev(a,p,!1),$=d.buildNext(a,p,!1);return{title:S,activeButton:i.type,navUnit:i.singleUnit,isTodayEnabled:E.isValid&&!H1(a.currentRange,v),isPrevEnabled:A.isValid,isNextEnabled:$.isValid}}function Yie(i){return i.map(a=>new a)}let Xie=class extends zae{constructor(a,d={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=p=>{switch(p.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=p=>{this.currentData=p,this.renderRunner.request(p.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:p}=this;k7(()=>{ek(Qe(Vae,{options:p.calendarOptions,theme:p.theme,emitter:p.emitter},(v,S,E,A)=>(this.setClassNames(v),this.setHeight(S),Qe(WX.Provider,{value:this.customContentRenderId},Qe(qie,Object.assign({isHeightAuto:E,forPrint:A},p))))),this.el)})}else this.isRendered&&(this.isRendered=!1,ek(null,this.el),this.setClassNames([]),this.setHeight(""))},xse(a),this.el=a,this.renderRunner=new n$(this.handleRenderRequest),new Iie({optionOverrides:d,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let a=this.isRendering;a?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),a&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){k7(()=>{super.updateSize()})}batchRendering(a){this.renderRunner.pause("batchRendering"),a(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(a,d){this.currentDataManager.resetOptions(a,d)}setClassNames(a){if(!Mb(a,this.currentClassNames)){let{classList:d}=this.el;for(let p of this.currentClassNames)d.remove(p);for(let p of a)d.add(p);this.currentClassNames=a}}setHeight(a){vX(this.el,"height",a)}};const Qie={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},lJ=u.defineComponent({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(i){return{...i,customRenderingMetaMap:tce(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const i=[];for(const a of this.customRenderingMap.values())i.push(u.h(Jie,{key:a.id,customRendering:a}));return u.h("div",{attrs:{"data-fc-render-id":this.renderId}},u.h(u.Fragment,i))},mounted(){const i=new Ule;this.handleCustomRendering=i.handle.bind(i);const a=this.buildOptions(this.options),d=new Xie(this.$el,a);this.calendar=d,d.render(),i.subscribe(p=>{this.customRenderingMap=p,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:ece()}),Jie=u.defineComponent({props:{customRendering:Object},render(){const i=this.customRendering,a=typeof i.generatorMeta=="function"?i.generatorMeta(i.renderProps):i.generatorMeta;return u.h(u.Teleport,{to:i.containerEl},a)}});function pbe(i){return i}function ece(){let i={options:{deep:!0,handler(a){let d=this.getApi();d.pauseRendering();let p=this.buildOptions(a);d.resetOptions(p),this.renderId++}}};for(let a in Qie)i[`options.${a}`]={deep:!0,handler(d){if(d!==void 0){let p=this.getApi();p.pauseRendering(),p.resetOptions({[a]:d},[a]),this.renderId++}}};return i}function tce(i){const a={};for(const d in i)a[nce(d)]=i[d];return a}function nce(i){return i.split("-").map((a,d)=>d?oce(a):a).join("")}function oce(i){return i.charAt(0).toUpperCase()+i.slice(1)}class sce extends ug{constructor(){super(...arguments),this.headerElRef=kd()}renderSimpleLayout(a,d){let{props:p,context:v}=this,S=[],E=L7(v.options);return a&&S.push({type:"header",key:"header",isSticky:E,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:a}}),S.push({type:"body",key:"body",liquid:!0,chunk:{content:d}}),Qe(A7,{elClasses:["fc-daygrid"],viewSpec:v.viewSpec},Qe(j$,{liquid:!p.isHeightAuto&&!p.forPrint,collapsibleWidth:p.forPrint,cols:[],sections:S}))}renderHScrollLayout(a,d,p,v){let S=this.context.pluginHooks.scrollGridImpl;if(!S)throw new Error("No ScrollGrid implementation");let{props:E,context:A}=this,$=!E.forPrint&&L7(A.options),L=!E.forPrint&&FQ(A.options),z=[];return a&&z.push({type:"header",key:"header",isSticky:$,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:a}]}),z.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:d}]}),L&&z.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:W$}]}),Qe(A7,{elClasses:["fc-daygrid"],viewSpec:A.viewSpec},Qe(S,{liquid:!E.isHeightAuto&&!E.forPrint,forPrint:E.forPrint,collapsibleWidth:E.forPrint,colGroups:[{cols:[{span:p,minWidth:v}]}],sections:z}))}}function V7(i,a){let d=[];for(let p=0;p<a;p+=1)d[p]=[];for(let p of i)d[p.row].push(p);return d}function H7(i,a){let d=[];for(let p=0;p<a;p+=1)d[p]=[];for(let p of i)d[p.firstCol].push(p);return d}function iJ(i,a){let d=[];if(i){for(let p=0;p<a;p+=1)d[p]={affectedInstances:i.affectedInstances,isEvent:i.isEvent,segs:[]};for(let p of i.segs)d[p.row].segs.push(p)}else for(let p=0;p<a;p+=1)d[p]=null;return d}const cJ=Ci({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function uJ(i){let{display:a}=i.eventRange.ui;return a==="list-item"||a==="auto"&&!i.eventRange.def.allDay&&i.firstCol===i.lastCol&&i.isStart&&i.isEnd}class dJ extends Da{render(){let{props:a}=this;return Qe($Q,Object.assign({},a,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:cJ,defaultDisplayEventEnd:a.defaultDisplayEventEnd,disableResizing:!a.seg.eventRange.def.allDay}))}}class fJ extends Da{render(){let{props:a,context:d}=this,{options:p}=d,{seg:v}=a,S=p.eventTimeFormat||cJ,E=hQ(v,S,d,!0,a.defaultDisplayEventEnd);return Qe(Z$,Object.assign({},a,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:gQ(a.seg,d),defaultGenerator:rce,timeText:E,isResizing:!1,isDateSelecting:!1}))}}function rce(i){return Qe(ql,null,Qe("div",{className:"fc-daygrid-event-dot",style:{borderColor:i.borderColor||i.backgroundColor}}),i.timeText&&Qe("div",{className:"fc-event-time"},i.timeText),Qe("div",{className:"fc-event-title"},i.event.title||Qe(ql,null," ")))}class ace extends Da{constructor(){super(...arguments),this.compileSegs=Ts(lce)}render(){let{props:a}=this,{allSegs:d,invisibleSegs:p}=this.compileSegs(a.singlePlacements);return Qe(zQ,{elClasses:["fc-daygrid-more-link"],dateProfile:a.dateProfile,todayRange:a.todayRange,allDayDate:a.allDayDate,moreCnt:a.moreCnt,allSegs:d,hiddenSegs:p,alignmentElRef:a.alignmentElRef,alignGridTop:a.alignGridTop,extraDateSpan:a.extraDateSpan,popoverContent:()=>{let v=(a.eventDrag?a.eventDrag.affectedInstances:null)||(a.eventResize?a.eventResize.affectedInstances:null)||{};return Qe(ql,null,d.map(S=>{let E=S.eventRange.instance.instanceId;return Qe("div",{className:"fc-daygrid-event-harness",key:E,style:{visibility:v[E]?"hidden":""}},uJ(S)?Qe(fJ,Object.assign({seg:S,isDragging:!1,isSelected:E===a.eventSelection,defaultDisplayEventEnd:!1},$b(S,a.todayRange))):Qe(dJ,Object.assign({seg:S,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:E===a.eventSelection,defaultDisplayEventEnd:!1},$b(S,a.todayRange))))}))}})}}function lce(i){let a=[],d=[];for(let p of i)a.push(p.seg),p.isVisible||d.push(p.seg);return{allSegs:a,invisibleSegs:d}}const ice=Ci({week:"narrow"});class cce extends ug{constructor(){super(...arguments),this.rootElRef=kd(),this.state={dayNumberId:g7()},this.handleRootEl=a=>{V1(this.rootElRef,a),V1(this.props.elRef,a)}}render(){let{context:a,props:d,state:p,rootElRef:v}=this,{options:S,dateEnv:E}=a,{date:A,dateProfile:$}=d;const L=d.showDayNumber&&dce(A,$.currentRange,E);return Qe(q$,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...d.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},d.extraDataAttrs),d.showDayNumber?{"aria-labelledby":p.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:uce,date:A,dateProfile:$,todayRange:d.todayRange,showDayNumber:d.showDayNumber,isMonthStart:L,extraRenderProps:d.extraRenderProps},(z,se)=>Qe("div",{ref:d.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:d.minHeight}},d.showWeekNumber&&Qe(HQ,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:I7(a,A,"week"),date:A,defaultFormat:ice}),!se.isDisabled&&(d.showDayNumber||K$(S)||d.forceDayTop)?Qe("div",{className:"fc-daygrid-day-top"},Qe(z,{elTag:"a",elClasses:["fc-daygrid-day-number",L&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},I7(a,A)),{id:p.dayNumberId})})):d.showDayNumber?Qe("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},Qe("a",{className:"fc-daygrid-day-number"}," ")):void 0,Qe("div",{className:"fc-daygrid-day-events",ref:d.fgContentElRef},d.fgContent,Qe("div",{className:"fc-daygrid-day-bottom",style:{marginTop:d.moreMarginTop}},Qe(ace,{allDayDate:A,singlePlacements:d.singlePlacements,moreCnt:d.moreCnt,alignmentElRef:v,alignGridTop:!d.showDayNumber,extraDateSpan:d.extraDateSpan,dateProfile:d.dateProfile,eventSelection:d.eventSelection,eventDrag:d.eventDrag,eventResize:d.eventResize,todayRange:d.todayRange}))),Qe("div",{className:"fc-daygrid-day-bg"},d.bgContent)))}}function uce(i){return i.dayNumberText||Qe(ql,null," ")}function dce(i,a,d){const{start:p,end:v}=a,S=Ib(v,-1),E=d.getYear(p),A=d.getMonth(p),$=d.getYear(S),L=d.getMonth(S);return!(E===$&&A===L)&&(i.valueOf()===p.valueOf()||d.getDay(i)===1&&i.valueOf()<v.valueOf())}function mJ(i){return i.eventRange.instance.instanceId+":"+i.firstCol}function hJ(i){return mJ(i)+":"+i.lastCol}function fce(i,a,d,p,v,S,E){let A=new pce(me=>{let ie=i[me.index].eventRange.instance.instanceId+":"+me.span.start+":"+(me.span.end-1);return v[ie]||1});A.allowReslicing=!0,A.strictOrder=p,a===!0||d===!0?(A.maxCoord=S,A.hiddenConsumes=!0):typeof a=="number"?A.maxStackCnt=a:typeof d=="number"&&(A.maxStackCnt=d,A.hiddenConsumes=!0);let $=[],L=[];for(let me=0;me<i.length;me+=1){let ie=i[me],G=hJ(ie);v[G]!=null?$.push({index:me,span:{start:ie.firstCol,end:ie.lastCol+1}}):L.push(ie)}let z=A.addSegs($),se=A.toRects(),{singleColPlacements:oe,multiColPlacements:Z,leftoverMargins:X}=mce(se,i,E),le=[],J=[];for(let me of L){Z[me.firstCol].push({seg:me,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let ie=me.firstCol;ie<=me.lastCol;ie+=1)oe[ie].push({seg:L3(me,ie,ie+1,E),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let me=0;me<E.length;me+=1)le.push(0);for(let me of z){let ie=i[me.index],G=me.span;Z[G.start].push({seg:L3(ie,G.start,G.end,E),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let we=G.start;we<G.end;we+=1)le[we]+=1,oe[we].push({seg:L3(ie,we,we+1,E),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let me=0;me<E.length;me+=1)J.push(X[me]);return{singleColPlacements:oe,multiColPlacements:Z,moreCnts:le,moreMarginTops:J}}function mce(i,a,d){let p=hce(i,d.length),v=[],S=[],E=[];for(let A=0;A<d.length;A+=1){let $=p[A],L=[],z=0,se=0;for(let Z of $){let X=a[Z.index];L.push({seg:L3(X,A,A+1,d),isVisible:!0,isAbsolute:!1,absoluteTop:Z.levelCoord,marginTop:Z.levelCoord-z}),z=Z.levelCoord+Z.thickness}let oe=[];z=0,se=0;for(let Z of $){let X=a[Z.index],le=Z.span.end-Z.span.start>1,J=Z.span.start===A;se+=Z.levelCoord-z,z=Z.levelCoord+Z.thickness,le?(se+=Z.thickness,J&&oe.push({seg:L3(X,Z.span.start,Z.span.end,d),isVisible:!0,isAbsolute:!0,absoluteTop:Z.levelCoord,marginTop:0})):J&&(oe.push({seg:L3(X,Z.span.start,Z.span.end,d),isVisible:!0,isAbsolute:!1,absoluteTop:Z.levelCoord,marginTop:se}),se=0)}v.push(L),S.push(oe),E.push(se)}return{singleColPlacements:v,multiColPlacements:S,leftoverMargins:E}}function hce(i,a){let d=[];for(let p=0;p<a;p+=1)d.push([]);for(let p of i)for(let v=p.span.start;v<p.span.end;v+=1)d[v].push(p);return d}function L3(i,a,d,p){if(i.firstCol===a&&i.lastCol===d-1)return i;let v=i.eventRange,S=v.range,E=a2(S,{start:p[a].date,end:Hu(p[d-1].date,1)});return Object.assign(Object.assign({},i),{firstCol:a,lastCol:d-1,eventRange:{def:v.def,ui:Object.assign(Object.assign({},v.ui),{durationEditable:!1}),instance:v.instance,range:E},isStart:i.isStart&&E.start.valueOf()===S.start.valueOf(),isEnd:i.isEnd&&E.end.valueOf()===S.end.valueOf()})}class pce extends EQ{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(a){const d=super.addSegs(a),{entriesByLevel:p}=this,v=S=>!this.forceHidden[c2(S)];for(let S=0;S<p.length;S+=1)p[S]=p[S].filter(v);return d}handleInvalidInsertion(a,d,p){const{entriesByLevel:v,forceHidden:S}=this,{touchingEntry:E,touchingLevel:A,touchingLateral:$}=a;if(this.hiddenConsumes&&E){const L=c2(E);if(!S[L])if(this.allowReslicing){const z=Object.assign(Object.assign({},E),{span:L$(E.span,d.span)}),se=c2(z);S[se]=!0,v[A][$]=z,p.push(z),this.splitEntry(E,d,p)}else S[L]=!0,p.push(E)}super.handleInvalidInsertion(a,d,p)}}class pJ extends ug{constructor(){super(...arguments),this.cellElRefs=new z1,this.frameElRefs=new z1,this.fgElRefs=new z1,this.segHarnessRefs=new z1,this.rootElRef=kd(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=a=>{a&&this.updateSizing(!0)}}render(){let{props:a,state:d,context:p}=this,{options:v}=p,S=a.cells.length,E=H7(a.businessHourSegs,S),A=H7(a.bgEventSegs,S),$=H7(this.getHighlightSegs(),S),L=H7(this.getMirrorSegs(),S),{singleColPlacements:z,multiColPlacements:se,moreCnts:oe,moreMarginTops:Z}=fce(mQ(a.fgEventSegs,v.eventOrder),a.dayMaxEvents,a.dayMaxEventRows,v.eventOrderStrict,d.segHeights,d.maxContentHeight,a.cells),X=a.eventDrag&&a.eventDrag.affectedInstances||a.eventResize&&a.eventResize.affectedInstances||{};return Qe("tr",{ref:this.rootElRef,role:"row"},a.renderIntro&&a.renderIntro(),a.cells.map((le,J)=>{let me=this.renderFgSegs(J,a.forPrint?z[J]:se[J],a.todayRange,X),ie=this.renderFgSegs(J,gce(L[J],se),a.todayRange,{},!!a.eventDrag,!!a.eventResize,!1);return Qe(cce,{key:le.key,elRef:this.cellElRefs.createRef(le.key),innerElRef:this.frameElRefs.createRef(le.key),dateProfile:a.dateProfile,date:le.date,showDayNumber:a.showDayNumbers,showWeekNumber:a.showWeekNumbers&&J===0,forceDayTop:a.showWeekNumbers,todayRange:a.todayRange,eventSelection:a.eventSelection,eventDrag:a.eventDrag,eventResize:a.eventResize,extraRenderProps:le.extraRenderProps,extraDataAttrs:le.extraDataAttrs,extraClassNames:le.extraClassNames,extraDateSpan:le.extraDateSpan,moreCnt:oe[J],moreMarginTop:Z[J],singlePlacements:z[J],fgContentElRef:this.fgElRefs.createRef(le.key),fgContent:Qe(ql,null,Qe(ql,null,me),Qe(ql,null,ie)),bgContent:Qe(ql,null,this.renderFillSegs($[J],"highlight"),this.renderFillSegs(E[J],"non-business"),this.renderFillSegs(A[J],"bg-event")),minHeight:a.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(a,d){let p=this.props;this.updateSizing(!cg(a,p))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:a}=this;return a.eventDrag&&a.eventDrag.segs.length?a.eventDrag.segs:a.eventResize&&a.eventResize.segs.length?a.eventResize.segs:a.dateSelectionSegs}getMirrorSegs(){let{props:a}=this;return a.eventResize&&a.eventResize.segs.length?a.eventResize.segs:[]}renderFgSegs(a,d,p,v,S,E,A){let{context:$}=this,{eventSelection:L}=this.props,{framePositions:z}=this.state,se=this.props.cells.length===1,oe=S||E||A,Z=[];if(z)for(let X of d){let{seg:le}=X,{instanceId:J}=le.eventRange.instance,me=X.isVisible&&!v[J],ie=X.isAbsolute,G="",we="";ie&&($.isRtl?(we=0,G=z.lefts[le.lastCol]-z.lefts[le.firstCol]):(G=0,we=z.rights[le.firstCol]-z.rights[le.lastCol])),Z.push(Qe("div",{className:"fc-daygrid-event-harness"+(ie?" fc-daygrid-event-harness-abs":""),key:mJ(le),ref:oe?null:this.segHarnessRefs.createRef(hJ(le)),style:{visibility:me?"":"hidden",marginTop:ie?"":X.marginTop,top:ie?X.absoluteTop:"",left:G,right:we}},uJ(le)?Qe(fJ,Object.assign({seg:le,isDragging:S,isSelected:J===L,defaultDisplayEventEnd:se},$b(le,p))):Qe(dJ,Object.assign({seg:le,isDragging:S,isResizing:E,isDateSelecting:A,isSelected:J===L,defaultDisplayEventEnd:se},$b(le,p)))))}return Z}renderFillSegs(a,d){let{isRtl:p}=this.context,{todayRange:v}=this.props,{framePositions:S}=this.state,E=[];if(S)for(let A of a){let $=p?{right:0,left:S.lefts[A.lastCol]-S.lefts[A.firstCol]}:{left:0,right:S.rights[A.firstCol]-S.rights[A.lastCol]};E.push(Qe("div",{key:pQ(A.eventRange),className:"fc-daygrid-bg-harness",style:$},d==="bg-event"?Qe(LQ,Object.assign({seg:A},$b(A,v))):VQ(d)))}return Qe(ql,{},...E)}updateSizing(a){let{props:d,state:p,frameElRefs:v}=this;if(!d.forPrint&&d.clientWidth!==null){if(a){let $=d.cells.map(L=>v.currentMap[L.key]);if($.length){let L=this.rootElRef.current,z=new $3(L,$,!0,!1);(!p.framePositions||!p.framePositions.similarTo(z))&&this.setState({framePositions:new $3(L,$,!0,!1)})}}const S=this.state.segHeights,E=this.querySegHeights(),A=d.dayMaxEvents===!0||d.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},S),E),maxContentHeight:A?this.computeMaxContentHeight():null})}}querySegHeights(){let a=this.segHarnessRefs.currentMap,d={};for(let p in a){let v=Math.round(a[p].getBoundingClientRect().height);d[p]=Math.max(d[p]||0,v)}return d}computeMaxContentHeight(){let a=this.props.cells[0].key,d=this.cellElRefs.currentMap[a],p=this.fgElRefs.currentMap[a];return d.getBoundingClientRect().bottom-p.getBoundingClientRect().top}getCellEls(){let a=this.cellElRefs.currentMap;return this.props.cells.map(d=>a[d.key])}}pJ.addStateEquality({segHeights:cg});function gce(i,a){if(!i.length)return[];let d=bce(a);return i.map(p=>({seg:p,isVisible:!0,isAbsolute:!0,absoluteTop:d[p.eventRange.instance.instanceId],marginTop:0}))}function bce(i){let a={};for(let d of i)for(let p of d)a[p.seg.eventRange.instance.instanceId]=p.absoluteTop;return a}class yce extends ug{constructor(){super(...arguments),this.splitBusinessHourSegs=Ts(V7),this.splitBgEventSegs=Ts(V7),this.splitFgEventSegs=Ts(V7),this.splitDateSelectionSegs=Ts(V7),this.splitEventDrag=Ts(iJ),this.splitEventResize=Ts(iJ),this.rowRefs=new z1}render(){let{props:a,context:d}=this,p=a.cells.length,v=this.splitBusinessHourSegs(a.businessHourSegs,p),S=this.splitBgEventSegs(a.bgEventSegs,p),E=this.splitFgEventSegs(a.fgEventSegs,p),A=this.splitDateSelectionSegs(a.dateSelectionSegs,p),$=this.splitEventDrag(a.eventDrag,p),L=this.splitEventResize(a.eventResize,p),z=p>=7&&a.clientWidth?a.clientWidth/d.options.aspectRatio/6:null;return Qe(lk,{unit:"day"},(se,oe)=>Qe(ql,null,a.cells.map((Z,X)=>Qe(pJ,{ref:this.rowRefs.createRef(X),key:Z.length?Z[0].date.toISOString():X,showDayNumbers:p>1,showWeekNumbers:a.showWeekNumbers,todayRange:oe,dateProfile:a.dateProfile,cells:Z,renderIntro:a.renderRowIntro,businessHourSegs:v[X],eventSelection:a.eventSelection,bgEventSegs:S[X].filter(vce),fgEventSegs:E[X],dateSelectionSegs:A[X],eventDrag:$[X],eventResize:L[X],dayMaxEvents:a.dayMaxEvents,dayMaxEventRows:a.dayMaxEventRows,clientWidth:a.clientWidth,clientHeight:a.clientHeight,cellMinHeight:z,forPrint:a.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const a=this.rowRefs.currentMap[0].getCellEls()[0],d=a?a.closest(".fc-daygrid-body"):null;d&&(this.rootEl=d,this.context.registerInteractiveComponent(this,{el:d,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new $3(this.rootEl,this.rowRefs.collect().map(a=>a.getCellEls()[0]),!1,!0),this.colPositions=new $3(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(a,d){let{colPositions:p,rowPositions:v}=this,S=p.leftToIndex(a),E=v.topToIndex(d);if(E!=null&&S!=null){let A=this.props.cells[E][S];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(E,S),allDay:!0},A.extraDateSpan),dayEl:this.getCellEl(E,S),rect:{left:p.lefts[S],right:p.rights[S],top:v.tops[E],bottom:v.bottoms[E]},layer:0}}return null}getCellEl(a,d){return this.rowRefs.currentMap[a].getCellEls()[d]}getCellRange(a,d){let p=this.props.cells[a][d].date,v=Hu(p,1);return{start:p,end:v}}}function vce(i){return i.eventRange.def.allDay}class Cce extends ug{constructor(){super(...arguments),this.elRef=kd(),this.needsScrollReset=!1}render(){let{props:a}=this,{dayMaxEventRows:d,dayMaxEvents:p,expandRows:v}=a,S=p===!0||d===!0;S&&!v&&(S=!1,d=null,p=null);let E=["fc-daygrid-body",S?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",v?"":"fc-daygrid-body-natural"];return Qe("div",{ref:this.elRef,className:E.join(" "),style:{width:a.clientWidth,minWidth:a.tableMinWidth}},Qe("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:a.clientWidth,minWidth:a.tableMinWidth,height:v?a.clientHeight:""}},a.colGroupNode,Qe("tbody",{role:"presentation"},Qe(yce,{dateProfile:a.dateProfile,cells:a.cells,renderRowIntro:a.renderRowIntro,showWeekNumbers:a.showWeekNumbers,clientWidth:a.clientWidth,clientHeight:a.clientHeight,businessHourSegs:a.businessHourSegs,bgEventSegs:a.bgEventSegs,fgEventSegs:a.fgEventSegs,dateSelectionSegs:a.dateSelectionSegs,eventSelection:a.eventSelection,eventDrag:a.eventDrag,eventResize:a.eventResize,dayMaxEvents:p,dayMaxEventRows:d,forPrint:a.forPrint,isHitComboAllowed:a.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(a){a.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const a=wce(this.elRef.current,this.props.dateProfile);if(a){const d=a.closest(".fc-daygrid-body"),p=d.closest(".fc-scroller"),v=a.getBoundingClientRect().top-d.getBoundingClientRect().top;p.scrollTop=v?v+1:0}this.needsScrollReset=!1}}}function wce(i,a){let d;return a.currentRangeUnit.match(/year|month/)&&(d=i.querySelector(`[data-date="${ure(a.currentDate)}-01"]`)),d||(d=i.querySelector(`[data-date="${u$(a.currentDate)}"]`)),d}class _ce extends OQ{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(a,d){return d.sliceRange(a)}}class gJ extends ug{constructor(){super(...arguments),this.slicer=new _ce,this.tableRef=kd()}render(){let{props:a,context:d}=this;return Qe(Cce,Object.assign({ref:this.tableRef},this.slicer.sliceProps(a,a.dateProfile,a.nextDayThreshold,d,a.dayTableModel),{dateProfile:a.dateProfile,cells:a.dayTableModel.cells,colGroupNode:a.colGroupNode,tableMinWidth:a.tableMinWidth,renderRowIntro:a.renderRowIntro,dayMaxEvents:a.dayMaxEvents,dayMaxEventRows:a.dayMaxEventRows,showWeekNumbers:a.showWeekNumbers,expandRows:a.expandRows,headerAlignElRef:a.headerAlignElRef,clientWidth:a.clientWidth,clientHeight:a.clientHeight,forPrint:a.forPrint}))}}class Sce extends sce{constructor(){super(...arguments),this.buildDayTableModel=Ts(xce),this.headerRef=kd(),this.tableRef=kd()}render(){let{options:a,dateProfileGenerator:d}=this.context,{props:p}=this,v=this.buildDayTableModel(p.dateProfile,d),S=a.dayHeaders&&Qe(DQ,{ref:this.headerRef,dateProfile:p.dateProfile,dates:v.headerDates,datesRepDistinctDays:v.rowCnt===1}),E=A=>Qe(gJ,{ref:this.tableRef,dateProfile:p.dateProfile,dayTableModel:v,businessHours:p.businessHours,dateSelection:p.dateSelection,eventStore:p.eventStore,eventUiBases:p.eventUiBases,eventSelection:p.eventSelection,eventDrag:p.eventDrag,eventResize:p.eventResize,nextDayThreshold:a.nextDayThreshold,colGroupNode:A.tableColGroupNode,tableMinWidth:A.tableMinWidth,dayMaxEvents:a.dayMaxEvents,dayMaxEventRows:a.dayMaxEventRows,showWeekNumbers:a.weekNumbers,expandRows:!p.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:A.clientWidth,clientHeight:A.clientHeight,forPrint:p.forPrint});return a.dayMinWidth?this.renderHScrollLayout(S,E,v.colCnt,a.dayMinWidth):this.renderSimpleLayout(S,E)}}function xce(i,a){let d=new NQ(i.renderRange,a);return new RQ(d,/year|month|week/.test(i.currentRangeUnit))}class Ece extends KX{buildRenderRange(a,d,p){let v=super.buildRenderRange(a,d,p),{props:S}=this;return kce({currentRange:v,snapToWeek:/^(year|month)$/.test(d),fixedWeekCount:S.fixedWeekCount,dateEnv:S.dateEnv})}}function kce(i){let{dateEnv:a,currentRange:d}=i,{start:p,end:v}=d,S;if(i.snapToWeek&&(p=a.startOfWeek(p),S=a.startOfWeek(v),S.valueOf()!==v.valueOf()&&(v=DX(S,1))),i.fixedWeekCount){let E=a.startOfWeek(a.startOfMonth(Hu(d.end,-1))),A=Math.ceil(Jse(E,v));v=DX(v,6-A)}return{start:p,end:v}}var Ace=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';e$(Ace);var bJ=U1({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Sce,dateProfileGeneratorClass:Ece},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});class Tce extends Gae{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(a){return a.allDay?["allDay"]:["timed"]}getKeysForEventDef(a){return a.allDay?xae(a)?["timed","allDay"]:["allDay"]:["timed"]}}const Dce=Ci({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function yJ(i){let a=["fc-timegrid-slot","fc-timegrid-slot-label",i.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return Qe(L1.Consumer,null,d=>{if(!i.isLabeled)return Qe("td",{className:a.join(" "),"data-time":i.isoTimeStr});let{dateEnv:p,options:v,viewApi:S}=d,E=v.slotLabelFormat==null?Dce:Array.isArray(v.slotLabelFormat)?Ci(v.slotLabelFormat[0]):Ci(v.slotLabelFormat),A={level:0,time:i.time,date:p.toDate(i.date),view:S,text:p.format(i.date,E)};return Qe(tm,{elTag:"td",elClasses:a,elAttrs:{"data-time":i.isoTimeStr},renderProps:A,generatorName:"slotLabelContent",customGenerator:v.slotLabelContent,defaultGenerator:Nce,classNameGenerator:v.slotLabelClassNames,didMount:v.slotLabelDidMount,willUnmount:v.slotLabelWillUnmount},$=>Qe("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},Qe($,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function Nce(i){return i.text}class Rce extends Da{render(){return this.props.slatMetas.map(a=>Qe("tr",{key:a.key},Qe(yJ,Object.assign({},a))))}}const Oce=Ci({week:"short"}),Bce=5;class Mce extends ug{constructor(){super(...arguments),this.allDaySplitter=new Tce,this.headerElRef=kd(),this.rootElRef=kd(),this.scrollerElRef=kd(),this.state={slatCoords:null},this.handleScrollTopRequest=a=>{let d=this.scrollerElRef.current;d&&(d.scrollTop=a)},this.renderHeadAxis=(a,d="")=>{let{options:p}=this.context,{dateProfile:v}=this.props,S=v.renderRange,A=t2(S.start,S.end)===1?I7(this.context,S.start,"week"):{};return p.weekNumbers&&a==="day"?Qe(HQ,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:S.start,defaultFormat:Oce},$=>Qe("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:d}},Qe($,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:A}))):Qe("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},Qe("div",{className:"fc-timegrid-axis-frame",style:{height:d}}))},this.renderTableRowAxis=a=>{let{options:d,viewApi:p}=this.context,v={text:d.allDayText,view:p};return Qe(tm,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:v,generatorName:"allDayContent",customGenerator:d.allDayContent,defaultGenerator:Ice,classNameGenerator:d.allDayClassNames,didMount:d.allDayDidMount,willUnmount:d.allDayWillUnmount},S=>Qe("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",a==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:a}},Qe(S,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=a=>{this.setState({slatCoords:a})}}renderSimpleLayout(a,d,p){let{context:v,props:S}=this,E=[],A=L7(v.options);return a&&E.push({type:"header",key:"header",isSticky:A,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:a}}),d&&(E.push({type:"body",key:"all-day",chunk:{content:d}}),E.push({type:"body",key:"all-day-divider",outerContent:Qe("tr",{role:"presentation",className:"fc-scrollgrid-section"},Qe("td",{className:"fc-timegrid-divider "+v.theme.getClass("tableCellShaded")}))})),E.push({type:"body",key:"body",liquid:!0,expandRows:!!v.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:p}}),Qe(A7,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:v.viewSpec},Qe(j$,{liquid:!S.isHeightAuto&&!S.forPrint,collapsibleWidth:S.forPrint,cols:[{width:"shrink"}],sections:E}))}renderHScrollLayout(a,d,p,v,S,E,A){let $=this.context.pluginHooks.scrollGridImpl;if(!$)throw new Error("No ScrollGrid implementation");let{context:L,props:z}=this,se=!z.forPrint&&L7(L.options),oe=!z.forPrint&&FQ(L.options),Z=[];a&&Z.push({type:"header",key:"header",isSticky:se,syncRowHeights:!0,chunks:[{key:"axis",rowContent:le=>Qe("tr",{role:"presentation"},this.renderHeadAxis("day",le.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:a}]}),d&&(Z.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:le=>Qe("tr",{role:"presentation"},this.renderTableRowAxis(le.rowSyncHeights[0]))},{key:"cols",content:d}]}),Z.push({key:"all-day-divider",type:"body",outerContent:Qe("tr",{role:"presentation",className:"fc-scrollgrid-section"},Qe("td",{colSpan:2,className:"fc-timegrid-divider "+L.theme.getClass("tableCellShaded")}))}));let X=L.options.nowIndicator;return Z.push({type:"body",key:"body",liquid:!0,expandRows:!!L.options.expandRows,chunks:[{key:"axis",content:le=>Qe("div",{className:"fc-timegrid-axis-chunk"},Qe("table",{"aria-hidden":!0,style:{height:le.expandRows?le.clientHeight:""}},le.tableColGroupNode,Qe("tbody",null,Qe(Rce,{slatMetas:E}))),Qe("div",{className:"fc-timegrid-now-indicator-container"},Qe(lk,{unit:X?"minute":"day"},J=>{let me=X&&A&&A.safeComputeTop(J);return typeof me=="number"?Qe(G$,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:me},isAxis:!0,date:J}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:p}]}),oe&&Z.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:W$},{key:"cols",content:W$}]}),Qe(A7,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:L.viewSpec},Qe($,{liquid:!z.isHeightAuto&&!z.forPrint,forPrint:z.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:v,minWidth:S}]}],sections:Z}))}getAllDayMaxEventProps(){let{dayMaxEvents:a,dayMaxEventRows:d}=this.context.options;return(a===!0||d===!0)&&(a=void 0,d=Bce),{dayMaxEvents:a,dayMaxEventRows:d}}}function Ice(i){return i.text}class Pce{constructor(a,d,p){this.positions=a,this.dateProfile=d,this.slotDuration=p}safeComputeTop(a){let{dateProfile:d}=this;if(H1(d.currentRange,a)){let p=kl(a),v=a.valueOf()-p.valueOf();if(v>=Zh(d.slotMinTime)&&v<Zh(d.slotMaxTime))return this.computeTimeTop(Gr(v))}return null}computeDateTop(a,d){return d||(d=kl(a)),this.computeTimeTop(Gr(a.valueOf()-d.valueOf()))}computeTimeTop(a){let{positions:d,dateProfile:p}=this,v=d.els.length,S=(a.milliseconds-Zh(p.slotMinTime))/Zh(this.slotDuration),E,A;return S=Math.max(0,S),S=Math.min(v,S),E=Math.floor(S),E=Math.min(E,v-1),A=S-E,d.tops[E]+d.getHeight(E)*A}}class Fce extends Da{render(){let{props:a,context:d}=this,{options:p}=d,{slatElRefs:v}=a;return Qe("tbody",null,a.slatMetas.map((S,E)=>{let A={time:S.time,date:d.dateEnv.toDate(S.date),view:d.viewApi};return Qe("tr",{key:S.key,ref:v.createRef(S.key)},a.axis&&Qe(yJ,Object.assign({},S)),Qe(tm,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!S.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":S.isoTimeStr},renderProps:A,generatorName:"slotLaneContent",customGenerator:p.slotLaneContent,classNameGenerator:p.slotLaneClassNames,didMount:p.slotLaneDidMount,willUnmount:p.slotLaneWillUnmount}))}))}}class $ce extends Da{constructor(){super(...arguments),this.rootElRef=kd(),this.slatElRefs=new z1}render(){let{props:a,context:d}=this;return Qe("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},Qe("table",{"aria-hidden":!0,className:d.theme.getClass("table"),style:{minWidth:a.tableMinWidth,width:a.clientWidth,height:a.minHeight}},a.tableColGroupNode,Qe(Fce,{slatElRefs:this.slatElRefs,axis:a.axis,slatMetas:a.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:a,props:d}=this;d.onCoords&&d.clientWidth!==null&&this.rootElRef.current.offsetHeight&&d.onCoords(new Pce(new $3(this.rootElRef.current,Lce(this.slatElRefs.currentMap,d.slatMetas),!1,!0),this.props.dateProfile,a.options.slotDuration))}}function Lce(i,a){return a.map(d=>i[d.key])}function ik(i,a){let d=[],p;for(p=0;p<a;p+=1)d.push([]);if(i)for(p=0;p<i.length;p+=1)d[i[p].col].push(i[p]);return d}function vJ(i,a){let d=[];if(i){for(let p=0;p<a;p+=1)d[p]={affectedInstances:i.affectedInstances,isEvent:i.isEvent,segs:[]};for(let p of i.segs)d[p.col].segs.push(p)}else for(let p=0;p<a;p+=1)d[p]=null;return d}class Vce extends Da{render(){let{props:a}=this;return Qe(zQ,{elClasses:["fc-timegrid-more-link"],elStyle:{top:a.top,bottom:a.bottom},allDayDate:null,moreCnt:a.hiddenSegs.length,allSegs:a.hiddenSegs,hiddenSegs:a.hiddenSegs,extraDateSpan:a.extraDateSpan,dateProfile:a.dateProfile,todayRange:a.todayRange,popoverContent:()=>SJ(a.hiddenSegs,a),defaultGenerator:Hce,forceTimed:!0},d=>Qe(d,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function Hce(i){return i.shortText}function zce(i,a,d){let p=new EQ;a!=null&&(p.strictOrder=a),d!=null&&(p.maxStackCnt=d);let v=p.addSegs(i),S=ale(v),E=Uce(p);return E=Gce(E,1),{segRects:qce(E),hiddenGroups:S}}function Uce(i){const{entriesByLevel:a}=i,d=eL((p,v)=>p+":"+v,(p,v)=>{let S=Zce(i,p,v),E=CJ(S,d),A=a[p][v];return[Object.assign(Object.assign({},A),{nextLevelNodes:E[0]}),A.thickness+E[1]]});return CJ(a.length?{level:0,lateralStart:0,lateralEnd:a[0].length}:null,d)[0]}function CJ(i,a){if(!i)return[[],0];let{level:d,lateralStart:p,lateralEnd:v}=i,S=p,E=[];for(;S<v;)E.push(a(d,S)),S+=1;return E.sort(Wce),[E.map(jce),E[0][1]]}function Wce(i,a){return a[1]-i[1]}function jce(i){return i[0]}function Zce(i,a,d){let{levelCoords:p,entriesByLevel:v}=i,S=v[a][d],E=p[a]+S.thickness,A=p.length,$=a;for(;$<A&&p[$]<E;$+=1);for(;$<A;$+=1){let L=v[$],z,se=H$(L,S.span.start,$$),oe=se[0]+se[1],Z=oe;for(;(z=L[Z])&&z.span.start<S.span.end;)Z+=1;if(oe<Z)return{level:$,lateralStart:oe,lateralEnd:Z}}return null}function Gce(i,a){const d=eL((p,v,S)=>c2(p),(p,v,S)=>{let{nextLevelNodes:E,thickness:A}=p,$=A+S,L=A/$,z,se=[];if(!E.length)z=a;else for(let Z of E)if(z===void 0){let X=d(Z,v,$);z=X[0],se.push(X[1])}else{let X=d(Z,z,0);se.push(X[1])}let oe=(z-v)*L;return[z-oe,Object.assign(Object.assign({},p),{thickness:oe,nextLevelNodes:se})]});return i.map(p=>d(p,0,0)[1])}function qce(i){let a=[];const d=eL((v,S,E)=>c2(v),(v,S,E)=>{let A=Object.assign(Object.assign({},v),{levelCoord:S,stackDepth:E,stackForward:0});return a.push(A),A.stackForward=p(v.nextLevelNodes,S+v.thickness,E+1)+1});function p(v,S,E){let A=0;for(let $ of v)A=Math.max(d($,S,E),A);return A}return p(i,0,0),a}function eL(i,a){const d={};return(...p)=>{let v=i(...p);return v in d?d[v]:d[v]=a(...p)}}function wJ(i,a,d=null,p=0){let v=[];if(d)for(let S=0;S<i.length;S+=1){let E=i[S],A=d.computeDateTop(E.start,a),$=Math.max(A+(p||0),d.computeDateTop(E.end,a));v.push({start:Math.round(A),end:Math.round($)})}return v}function Kce(i,a,d,p){let v=[],S=[];for(let L=0;L<i.length;L+=1){let z=a[L];z?v.push({index:L,thickness:1,span:z}):S.push(i[L])}let{segRects:E,hiddenGroups:A}=zce(v,d,p),$=[];for(let L of E)$.push({seg:i[L.index],rect:L});for(let L of S)$.push({seg:L,rect:null});return{segPlacements:$,hiddenGroups:A}}const Yce=Ci({hour:"numeric",minute:"2-digit",meridiem:!1});class _J extends Da{render(){return Qe($Q,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:Yce}))}}class Xce extends Da{constructor(){super(...arguments),this.sortEventSegs=Ts(mQ)}render(){let{props:a,context:d}=this,{options:p}=d,v=p.selectMirror,S=a.eventDrag&&a.eventDrag.segs||a.eventResize&&a.eventResize.segs||v&&a.dateSelectionSegs||[],E=a.eventDrag&&a.eventDrag.affectedInstances||a.eventResize&&a.eventResize.affectedInstances||{},A=this.sortEventSegs(a.fgEventSegs,p.eventOrder);return Qe(q$,{elTag:"td",elRef:a.elRef,elClasses:["fc-timegrid-col",...a.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},a.extraDataAttrs),date:a.date,dateProfile:a.dateProfile,todayRange:a.todayRange,extraRenderProps:a.extraRenderProps},$=>Qe("div",{className:"fc-timegrid-col-frame"},Qe("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(a.businessHourSegs,"non-business"),this.renderFillSegs(a.bgEventSegs,"bg-event"),this.renderFillSegs(a.dateSelectionSegs,"highlight")),Qe("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(A,E,!1,!1,!1)),Qe("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(S,{},!!a.eventDrag,!!a.eventResize,!!v,"mirror")),Qe("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(a.nowIndicatorSegs)),K$(p)&&Qe($,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(a,d,p,v,S,E){let{props:A}=this;return A.forPrint?SJ(a,A):this.renderPositionedFgSegs(a,d,p,v,S,E)}renderPositionedFgSegs(a,d,p,v,S,E){let{eventMaxStack:A,eventShortHeight:$,eventOrderStrict:L,eventMinHeight:z}=this.context.options,{date:se,slatCoords:oe,eventSelection:Z,todayRange:X,nowDate:le}=this.props,J=p||v||S,me=wJ(a,se,oe,z),{segPlacements:ie,hiddenGroups:G}=Kce(a,me,L,A);return Qe(ql,null,this.renderHiddenGroups(G,a),ie.map(we=>{let{seg:wt,rect:Ve}=we,K=wt.eventRange.instance.instanceId,De=J||!!(!d[K]&&Ve),tt=tL(Ve&&Ve.span),lt=!J&&Ve?this.computeSegHStyle(Ve):{left:0,right:0},Ge=!!Ve&&Ve.stackForward>0,he=!!Ve&&Ve.span.end-Ve.span.start<$;return Qe("div",{className:"fc-timegrid-event-harness"+(Ge?" fc-timegrid-event-harness-inset":""),key:E||K,style:Object.assign(Object.assign({visibility:De?"":"hidden"},tt),lt)},Qe(_J,Object.assign({seg:wt,isDragging:p,isResizing:v,isDateSelecting:S,isSelected:K===Z,isShort:he},$b(wt,X,le))))}))}renderHiddenGroups(a,d){let{extraDateSpan:p,dateProfile:v,todayRange:S,nowDate:E,eventSelection:A,eventDrag:$,eventResize:L}=this.props;return Qe(ql,null,a.map(z=>{let se=tL(z.span),oe=Qce(z.entries,d);return Qe(Vce,{key:BX(WQ(oe)),hiddenSegs:oe,top:se.top,bottom:se.bottom,extraDateSpan:p,dateProfile:v,todayRange:S,nowDate:E,eventSelection:A,eventDrag:$,eventResize:L})}))}renderFillSegs(a,d){let{props:p,context:v}=this,E=wJ(a,p.date,p.slatCoords,v.options.eventMinHeight).map((A,$)=>{let L=a[$];return Qe("div",{key:pQ(L.eventRange),className:"fc-timegrid-bg-harness",style:tL(A)},d==="bg-event"?Qe(LQ,Object.assign({seg:L},$b(L,p.todayRange,p.nowDate))):VQ(d))});return Qe(ql,null,E)}renderNowIndicator(a){let{slatCoords:d,date:p}=this.props;return d?a.map((v,S)=>Qe(G$,{key:S,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:d.computeDateTop(v.start,p)},isAxis:!1,date:p})):null}computeSegHStyle(a){let{isRtl:d,options:p}=this.context,v=p.slotEventOverlap,S=a.levelCoord,E=a.levelCoord+a.thickness,A,$;v&&(E=Math.min(1,S+(E-S)*2)),d?(A=1-E,$=S):(A=S,$=1-E);let L={zIndex:a.stackDepth+1,left:A*100+"%",right:$*100+"%"};return v&&!a.stackForward&&(L[d?"marginLeft":"marginRight"]=10*2),L}}function SJ(i,{todayRange:a,nowDate:d,eventSelection:p,eventDrag:v,eventResize:S}){let E=(v?v.affectedInstances:null)||(S?S.affectedInstances:null)||{};return Qe(ql,null,i.map(A=>{let $=A.eventRange.instance.instanceId;return Qe("div",{key:$,style:{visibility:E[$]?"hidden":""}},Qe(_J,Object.assign({seg:A,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:$===p,isShort:!1},$b(A,a,d))))}))}function tL(i){return i?{top:i.start,bottom:-i.end}:{top:"",bottom:""}}function Qce(i,a){return i.map(d=>a[d.index])}class Jce extends Da{constructor(){super(...arguments),this.splitFgEventSegs=Ts(ik),this.splitBgEventSegs=Ts(ik),this.splitBusinessHourSegs=Ts(ik),this.splitNowIndicatorSegs=Ts(ik),this.splitDateSelectionSegs=Ts(ik),this.splitEventDrag=Ts(vJ),this.splitEventResize=Ts(vJ),this.rootElRef=kd(),this.cellElRefs=new z1}render(){let{props:a,context:d}=this,p=d.options.nowIndicator&&a.slatCoords&&a.slatCoords.safeComputeTop(a.nowDate),v=a.cells.length,S=this.splitFgEventSegs(a.fgEventSegs,v),E=this.splitBgEventSegs(a.bgEventSegs,v),A=this.splitBusinessHourSegs(a.businessHourSegs,v),$=this.splitNowIndicatorSegs(a.nowIndicatorSegs,v),L=this.splitDateSelectionSegs(a.dateSelectionSegs,v),z=this.splitEventDrag(a.eventDrag,v),se=this.splitEventResize(a.eventResize,v);return Qe("div",{className:"fc-timegrid-cols",ref:this.rootElRef},Qe("table",{role:"presentation",style:{minWidth:a.tableMinWidth,width:a.clientWidth}},a.tableColGroupNode,Qe("tbody",{role:"presentation"},Qe("tr",{role:"row"},a.axis&&Qe("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},Qe("div",{className:"fc-timegrid-col-frame"},Qe("div",{className:"fc-timegrid-now-indicator-container"},typeof p=="number"&&Qe(G$,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:p},isAxis:!0,date:a.nowDate})))),a.cells.map((oe,Z)=>Qe(Xce,{key:oe.key,elRef:this.cellElRefs.createRef(oe.key),dateProfile:a.dateProfile,date:oe.date,nowDate:a.nowDate,todayRange:a.todayRange,extraRenderProps:oe.extraRenderProps,extraDataAttrs:oe.extraDataAttrs,extraClassNames:oe.extraClassNames,extraDateSpan:oe.extraDateSpan,fgEventSegs:S[Z],bgEventSegs:E[Z],businessHourSegs:A[Z],nowIndicatorSegs:$[Z],dateSelectionSegs:L[Z],eventDrag:z[Z],eventResize:se[Z],slatCoords:a.slatCoords,eventSelection:a.eventSelection,forPrint:a.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:a}=this;a.onColCoords&&a.clientWidth!==null&&a.onColCoords(new $3(this.rootElRef.current,eue(this.cellElRefs.currentMap,a.cells),!0,!1))}}function eue(i,a){return a.map(d=>i[d.key])}class tue extends ug{constructor(){super(...arguments),this.processSlotOptions=Ts(nue),this.state={slatCoords:null},this.handleRootEl=a=>{a?this.context.registerInteractiveComponent(this,{el:a,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=a=>{let{onScrollTopRequest:d}=this.props,{slatCoords:p}=this.state;if(d&&p){if(a.time){let v=p.computeTimeTop(a.time);v=Math.ceil(v),v&&(v+=1),d(v)}return!0}return!1},this.handleColCoords=a=>{this.colCoords=a},this.handleSlatCoords=a=>{this.setState({slatCoords:a}),this.props.onSlatCoords&&this.props.onSlatCoords(a)}}render(){let{props:a,state:d}=this;return Qe("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:a.clientWidth,minWidth:a.tableMinWidth}},Qe($ce,{axis:a.axis,dateProfile:a.dateProfile,slatMetas:a.slatMetas,clientWidth:a.clientWidth,minHeight:a.expandRows?a.clientHeight:"",tableMinWidth:a.tableMinWidth,tableColGroupNode:a.axis?a.tableColGroupNode:null,onCoords:this.handleSlatCoords}),Qe(Jce,{cells:a.cells,axis:a.axis,dateProfile:a.dateProfile,businessHourSegs:a.businessHourSegs,bgEventSegs:a.bgEventSegs,fgEventSegs:a.fgEventSegs,dateSelectionSegs:a.dateSelectionSegs,eventSelection:a.eventSelection,eventDrag:a.eventDrag,eventResize:a.eventResize,todayRange:a.todayRange,nowDate:a.nowDate,nowIndicatorSegs:a.nowIndicatorSegs,clientWidth:a.clientWidth,tableMinWidth:a.tableMinWidth,tableColGroupNode:a.tableColGroupNode,slatCoords:d.slatCoords,onColCoords:this.handleColCoords,forPrint:a.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(a){this.scrollResponder.update(a.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(a,d){let{dateEnv:p,options:v}=this.context,{colCoords:S}=this,{dateProfile:E}=this.props,{slatCoords:A}=this.state,{snapDuration:$,snapsPerSlot:L}=this.processSlotOptions(this.props.slotDuration,v.snapDuration),z=S.leftToIndex(a),se=A.positions.topToIndex(d);if(z!=null&&se!=null){let oe=this.props.cells[z],Z=A.positions.tops[se],X=A.positions.getHeight(se),le=(d-Z)/X,J=Math.floor(le*L),me=se*L+J,ie=this.props.cells[z].date,G=a$(E.slotMinTime,Kse($,me)),we=p.add(ie,G),wt=p.add(we,$);return{dateProfile:E,dateSpan:Object.assign({range:{start:we,end:wt},allDay:!1},oe.extraDateSpan),dayEl:S.els[z],rect:{left:S.lefts[z],right:S.rights[z],top:Z,bottom:Z+X},layer:0}}return null}}function nue(i,a){let d=a||i,p=l$(i,d);return p===null&&(d=i,p=1),{snapDuration:d,snapsPerSlot:p}}class oue extends OQ{sliceRange(a,d){let p=[];for(let v=0;v<d.length;v+=1){let S=a2(a,d[v]);S&&p.push({start:S.start,end:S.end,isStart:S.start.valueOf()===a.start.valueOf(),isEnd:S.end.valueOf()===a.end.valueOf(),col:v})}return p}}class sue extends ug{constructor(){super(...arguments),this.buildDayRanges=Ts(rue),this.slicer=new oue,this.timeColsRef=kd()}render(){let{props:a,context:d}=this,{dateProfile:p,dayTableModel:v}=a,{nowIndicator:S,nextDayThreshold:E}=d.options,A=this.buildDayRanges(v,p,d.dateEnv);return Qe(lk,{unit:S?"minute":"day"},($,L)=>Qe(tue,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(a,p,null,d,A),{forPrint:a.forPrint,axis:a.axis,dateProfile:p,slatMetas:a.slatMetas,slotDuration:a.slotDuration,cells:v.cells[0],tableColGroupNode:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,clientWidth:a.clientWidth,clientHeight:a.clientHeight,expandRows:a.expandRows,nowDate:$,nowIndicatorSegs:S&&this.slicer.sliceNowDate($,p,E,d,A),todayRange:L,onScrollTopRequest:a.onScrollTopRequest,onSlatCoords:a.onSlatCoords})))}}function rue(i,a,d){let p=[];for(let v of i.headerDates)p.push({start:d.add(v,a.slotMinTime),end:d.add(v,a.slotMaxTime)});return p}const xJ=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function aue(i,a,d,p,v){let S=new Date(0),E=i,A=Gr(0),$=d||lue(p),L=[];for(;Zh(E)<Zh(a);){let z=v.add(S,E),se=l$(A,$)!==null;L.push({date:z,time:E,key:z.toISOString(),isoTimeStr:dre(z),isLabeled:se}),E=a$(E,p),A=a$(A,p)}return L}function lue(i){let a,d,p;for(a=xJ.length-1;a>=0;a-=1)if(d=Gr(xJ[a]),p=l$(d,i),p!==null&&p>1)return d;return i}class iue extends Mce{constructor(){super(...arguments),this.buildTimeColsModel=Ts(cue),this.buildSlatMetas=Ts(aue)}render(){let{options:a,dateEnv:d,dateProfileGenerator:p}=this.context,{props:v}=this,{dateProfile:S}=v,E=this.buildTimeColsModel(S,p),A=this.allDaySplitter.splitProps(v),$=this.buildSlatMetas(S.slotMinTime,S.slotMaxTime,a.slotLabelInterval,a.slotDuration,d),{dayMinWidth:L}=a,z=!L,se=L,oe=a.dayHeaders&&Qe(DQ,{dates:E.headerDates,dateProfile:S,datesRepDistinctDays:!0,renderIntro:z?this.renderHeadAxis:null}),Z=a.allDaySlot!==!1&&(le=>Qe(gJ,Object.assign({},A.allDay,{dateProfile:S,dayTableModel:E,nextDayThreshold:a.nextDayThreshold,tableMinWidth:le.tableMinWidth,colGroupNode:le.tableColGroupNode,renderRowIntro:z?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:le.clientWidth,clientHeight:le.clientHeight,forPrint:v.forPrint},this.getAllDayMaxEventProps()))),X=le=>Qe(sue,Object.assign({},A.timed,{dayTableModel:E,dateProfile:S,axis:z,slotDuration:a.slotDuration,slatMetas:$,forPrint:v.forPrint,tableColGroupNode:le.tableColGroupNode,tableMinWidth:le.tableMinWidth,clientWidth:le.clientWidth,clientHeight:le.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:le.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return se?this.renderHScrollLayout(oe,Z,X,E.colCnt,L,$,this.state.slatCoords):this.renderSimpleLayout(oe,Z,X)}}function cue(i,a){let d=new NQ(i.renderRange,a);return new RQ(d,!1)}var uue='.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}';e$(uue);var EJ=U1({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:iue,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});z$.touchMouseIgnoreWait=500;let nL=0,z7=0,oL=!1;class kJ{constructor(a){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=d=>{if(!this.shouldIgnoreMouse()&&due(d)&&this.tryStart(d)){let p=this.createEventFromMouse(d,!0);this.emitter.trigger("pointerdown",p),this.initScrollWatch(p),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=d=>{let p=this.createEventFromMouse(d);this.recordCoords(p),this.emitter.trigger("pointermove",p)},this.handleMouseUp=d=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(d)),this.cleanup()},this.handleTouchStart=d=>{if(this.tryStart(d)){this.isTouchDragging=!0;let p=this.createEventFromTouch(d,!0);this.emitter.trigger("pointerdown",p),this.initScrollWatch(p);let v=d.target;this.shouldIgnoreMove||v.addEventListener("touchmove",this.handleTouchMove),v.addEventListener("touchend",this.handleTouchEnd),v.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=d=>{let p=this.createEventFromTouch(d);this.recordCoords(p),this.emitter.trigger("pointermove",p)},this.handleTouchEnd=d=>{if(this.isDragging){let p=d.target;p.removeEventListener("touchmove",this.handleTouchMove),p.removeEventListener("touchend",this.handleTouchEnd),p.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(d)),this.cleanup(),this.isTouchDragging=!1,fue()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=d=>{if(!this.shouldIgnoreMove){let p=window.scrollX-this.prevScrollX+this.prevPageX,v=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:d,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:p,pageY:v,deltaX:p-this.origPageX,deltaY:v-this.origPageY})}},this.containerEl=a,this.emitter=new B7,a.addEventListener("mousedown",this.handleMouseDown),a.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),mue()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),hue()}tryStart(a){let d=this.querySubjectEl(a),p=a.target;return d&&(!this.handleSelector||Vu(p,this.handleSelector))?(this.subjectEl=d,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){oL=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(a){return this.selector?Vu(a.target,this.selector):this.containerEl}shouldIgnoreMouse(){return nL||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(oL=!0)}initScrollWatch(a){this.shouldWatchScroll&&(this.recordCoords(a),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(a){this.shouldWatchScroll&&(this.prevPageX=a.pageX,this.prevPageY=a.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(a,d){let p=0,v=0;return d?(this.origPageX=a.pageX,this.origPageY=a.pageY):(p=a.pageX-this.origPageX,v=a.pageY-this.origPageY),{origEvent:a,isTouch:!1,subjectEl:this.subjectEl,pageX:a.pageX,pageY:a.pageY,deltaX:p,deltaY:v}}createEventFromTouch(a,d){let p=a.touches,v,S,E=0,A=0;return p&&p.length?(v=p[0].pageX,S=p[0].pageY):(v=a.pageX,S=a.pageY),d?(this.origPageX=v,this.origPageY=S):(E=v-this.origPageX,A=S-this.origPageY),{origEvent:a,isTouch:!0,subjectEl:this.subjectEl,pageX:v,pageY:S,deltaX:E,deltaY:A}}}function due(i){return i.button===0&&!i.ctrlKey}function fue(){nL+=1,setTimeout(()=>{nL-=1},z$.touchMouseIgnoreWait)}function mue(){z7+=1,z7===1&&window.addEventListener("touchmove",AJ,{passive:!1})}function hue(){z7-=1,z7||window.removeEventListener("touchmove",AJ,{passive:!1})}function AJ(i){oL&&i.preventDefault()}class pue{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(a,d,p){this.sourceEl=a,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=d-window.scrollX,this.origScreenY=p-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(a,d){this.deltaX=a-window.scrollX-this.origScreenX,this.deltaY=d-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(a){a?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=a,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=a)}stop(a,d){let p=()=>{this.cleanup(),d()};a&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(p,this.revertDuration):setTimeout(p,0)}doRevertAnimation(a,d){let p=this.mirrorEl,v=this.sourceEl.getBoundingClientRect();p.style.transition="top "+d+"ms,left "+d+"ms",tk(p,{left:v.left,top:v.top}),Mse(p,()=>{p.style.transition="",a()})}cleanup(){this.mirrorEl&&(o$(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&tk(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let a=this.sourceElRect,d=this.mirrorEl;return d||(d=this.mirrorEl=this.sourceEl.cloneNode(!0),d.style.userSelect="none",d.style.webkitUserSelect="none",d.style.pointerEvents="none",d.classList.add("fc-event-dragging"),tk(d,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:a.right-a.left,height:a.bottom-a.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(d)),d}}class TJ extends F${constructor(a,d){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=a,this.doesListening=d,this.scrollTop=this.origScrollTop=a.getScrollTop(),this.scrollLeft=this.origScrollLeft=a.getScrollLeft(),this.scrollWidth=a.getScrollWidth(),this.scrollHeight=a.getScrollHeight(),this.clientWidth=a.getClientWidth(),this.clientHeight=a.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(a){this.scrollController.setScrollTop(a),this.doesListening||(this.scrollTop=Math.max(Math.min(a,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(a){this.scrollController.setScrollLeft(a),this.doesListening||(this.scrollLeft=Math.max(Math.min(a,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class DJ extends TJ{constructor(a,d){super(new sle(a),d)}getEventTarget(){return this.scrollController.el}computeClientRect(){return nle(this.scrollController.el)}}class gue extends TJ{constructor(a){super(new rle,a)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const NJ=typeof performance=="function"?performance.now:Date.now;class bue{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let a=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(a){let d=NJ();this.handleSide(a,(d-this.msSinceRequest)/1e3),this.requestAnimation(d)}else this.isAnimating=!1}}}start(a,d,p){this.isEnabled&&(this.scrollCaches=this.buildCaches(p),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(a,d))}handleMove(a,d){if(this.isEnabled){let p=a-window.scrollX,v=d-window.scrollY,S=this.pointerScreenY===null?0:v-this.pointerScreenY,E=this.pointerScreenX===null?0:p-this.pointerScreenX;S<0?this.everMovedUp=!0:S>0&&(this.everMovedDown=!0),E<0?this.everMovedLeft=!0:E>0&&(this.everMovedRight=!0),this.pointerScreenX=p,this.pointerScreenY=v,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(NJ()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let a of this.scrollCaches)a.destroy();this.scrollCaches=null}}requestAnimation(a){this.msSinceRequest=a,requestAnimationFrame(this.animate)}handleSide(a,d){let{scrollCache:p}=a,{edgeThreshold:v}=this,S=v-a.distance,E=S*S/(v*v)*this.maxVelocity*d,A=1;switch(a.name){case"left":A=-1;case"right":p.setScrollLeft(p.getScrollLeft()+E*A);break;case"top":A=-1;case"bottom":p.setScrollTop(p.getScrollTop()+E*A);break}}computeBestEdge(a,d){let{edgeThreshold:p}=this,v=null,S=this.scrollCaches||[];for(let E of S){let A=E.clientRect,$=a-A.left,L=A.right-a,z=d-A.top,se=A.bottom-d;$>=0&&L>=0&&z>=0&&se>=0&&(z<=p&&this.everMovedUp&&E.canScrollUp()&&(!v||v.distance>z)&&(v={scrollCache:E,name:"top",distance:z}),se<=p&&this.everMovedDown&&E.canScrollDown()&&(!v||v.distance>se)&&(v={scrollCache:E,name:"bottom",distance:se}),$<=p&&this.everMovedLeft&&E.canScrollLeft()&&(!v||v.distance>$)&&(v={scrollCache:E,name:"left",distance:$}),L<=p&&this.everMovedRight&&E.canScrollRight()&&(!v||v.distance>L)&&(v={scrollCache:E,name:"right",distance:L}))}return v}buildCaches(a){return this.queryScrollEls(a).map(d=>d===window?new gue(!1):new DJ(d,!1))}queryScrollEls(a){let d=[];for(let p of this.scrollQuery)typeof p=="object"?d.push(p):d.push(...Array.prototype.slice.call(a.getRootNode().querySelectorAll(p)));return d}}class ck extends ile{constructor(a,d){super(a),this.containerEl=a,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=v=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,Ise(document.body),Fse(document.body),v.isTouch||v.origEvent.preventDefault(),this.emitter.trigger("pointerdown",v),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(v.subjectEl,v.pageX,v.pageY),this.startDelay(v),this.minDistance||this.handleDistanceSurpassed(v)))},this.onPointerMove=v=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",v),!this.isDistanceSurpassed){let S=this.minDistance,E,{deltaX:A,deltaY:$}=v;E=A*A+$*$,E>=S*S&&this.handleDistanceSurpassed(v)}this.isDragging&&(v.origEvent.type!=="scroll"&&(this.mirror.handleMove(v.pageX,v.pageY),this.autoScroller.handleMove(v.pageX,v.pageY)),this.emitter.trigger("dragmove",v))}},this.onPointerUp=v=>{this.isInteracting&&(this.isInteracting=!1,Pse(document.body),$se(document.body),this.emitter.trigger("pointerup",v),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(v)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let p=this.pointer=new kJ(a);p.emitter.on("pointerdown",this.onPointerDown),p.emitter.on("pointermove",this.onPointerMove),p.emitter.on("pointerup",this.onPointerUp),d&&(p.selector=d),this.mirror=new pue,this.autoScroller=new bue}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(a){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(a)},this.delay):this.handleDelayEnd(a)}handleDelayEnd(a){this.isDelayEnded=!0,this.tryStartDrag(a)}handleDistanceSurpassed(a){this.isDistanceSurpassed=!0,this.tryStartDrag(a)}tryStartDrag(a){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(a.pageX,a.pageY,this.containerEl),this.emitter.trigger("dragstart",a),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(a){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,a))}stopDrag(a){this.isDragging=!1,this.emitter.trigger("dragend",a)}setIgnoreMove(a){this.pointer.shouldIgnoreMove=a}setMirrorIsVisible(a){this.mirror.setIsVisible(a)}setMirrorNeedsRevert(a){this.mirrorNeedsRevert=a}setAutoScrollEnabled(a){this.autoScroller.isEnabled=a}}class yue{constructor(a){this.el=a,this.origRect=P$(a),this.scrollCaches=xQ(a).map(d=>new DJ(d,!0))}destroy(){for(let a of this.scrollCaches)a.destroy()}computeLeft(){let a=this.origRect.left;for(let d of this.scrollCaches)a+=d.origScrollLeft-d.getScrollLeft();return a}computeTop(){let a=this.origRect.top;for(let d of this.scrollCaches)a+=d.origScrollTop-d.getScrollTop();return a}isWithinClipping(a,d){let p={left:a,top:d};for(let v of this.scrollCaches)if(!vue(v.getEventTarget())&&!Uae(p,v.clientRect))return!1;return!0}}function vue(i){let a=i.tagName;return a==="HTML"||a==="BODY"}class U7{constructor(a,d){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=p=>{let{dragging:v}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(p),this.initialHit||!this.requireInitial?(v.setIgnoreMove(!1),this.emitter.trigger("pointerdown",p)):v.setIgnoreMove(!0)},this.handleDragStart=p=>{this.emitter.trigger("dragstart",p),this.handleMove(p,!0)},this.handleDragMove=p=>{this.emitter.trigger("dragmove",p),this.handleMove(p)},this.handlePointerUp=p=>{this.releaseHits(),this.emitter.trigger("pointerup",p)},this.handleDragEnd=p=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,p),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",p)},this.droppableStore=d,a.emitter.on("pointerdown",this.handlePointerDown),a.emitter.on("dragstart",this.handleDragStart),a.emitter.on("dragmove",this.handleDragMove),a.emitter.on("pointerup",this.handlePointerUp),a.emitter.on("dragend",this.handleDragEnd),this.dragging=a,this.emitter=new B7}processFirstCoord(a){let d={left:a.pageX,top:a.pageY},p=d,v=a.subjectEl,S;v instanceof HTMLElement&&(S=P$(v),p=Wae(p,S));let E=this.initialHit=this.queryHitForOffset(p.left,p.top);if(E){if(this.useSubjectCenter&&S){let A=wQ(S,E.rect);A&&(p=jae(A))}this.coordAdjust=Zae(p,d)}else this.coordAdjust={left:0,top:0}}handleMove(a,d){let p=this.queryHitForOffset(a.pageX+this.coordAdjust.left,a.pageY+this.coordAdjust.top);(d||!W7(this.movingHit,p))&&(this.movingHit=p,this.emitter.trigger("hitupdate",p,!1,a))}prepareHits(){this.offsetTrackers=$1(this.droppableStore,a=>(a.component.prepareHits(),new yue(a.el)))}releaseHits(){let{offsetTrackers:a}=this;for(let d in a)a[d].destroy();this.offsetTrackers={}}queryHitForOffset(a,d){let{droppableStore:p,offsetTrackers:v}=this,S=null;for(let E in p){let A=p[E].component,$=v[E];if($&&$.isWithinClipping(a,d)){let L=$.computeLeft(),z=$.computeTop(),se=a-L,oe=d-z,{origRect:Z}=$,X=Z.right-Z.left,le=Z.bottom-Z.top;if(se>=0&&se<X&&oe>=0&&oe<le){let J=A.queryHit(se,oe,X,le);J&&T7(J.dateProfile.activeRange,J.dateSpan.range)&&(this.disablePointCheck||$.el.contains(document.elementFromPoint(se+L-window.scrollX,oe+z-window.scrollY)))&&(!S||J.layer>S.layer)&&(J.componentId=E,J.context=A.context,J.rect.left+=L,J.rect.right+=L,J.rect.top+=z,J.rect.bottom+=z,S=J)}}}return S}}function W7(i,a){return!i&&!a?!0:!!i!=!!a?!1:Bae(i.dateSpan,a.dateSpan)}function RJ(i,a){let d={};for(let p of a.pluginHooks.datePointTransforms)Object.assign(d,p(i,a));return Object.assign(d,Cue(i,a.dateEnv)),d}function Cue(i,a){return{date:a.toDate(i.range.start),dateStr:a.formatIso(i.range.start,{omitTime:i.allDay}),allDay:i.allDay}}class wue extends F3{constructor(a){super(a),this.handlePointerDown=p=>{let{dragging:v}=this,S=p.origEvent.target;v.setIgnoreMove(!this.component.isValidDateDownEl(S))},this.handleDragEnd=p=>{let{component:v}=this,{pointer:S}=this.dragging;if(!S.wasTouchScroll){let{initialHit:E,finalHit:A}=this.hitDragging;if(E&&A&&W7(E,A)){let{context:$}=v,L=Object.assign(Object.assign({},RJ(E.dateSpan,$)),{dayEl:E.dayEl,jsEvent:p.origEvent,view:$.viewApi||$.calendarApi.view});$.emitter.trigger("dateClick",L)}}},this.dragging=new ck(a.el),this.dragging.autoScroller.isEnabled=!1;let d=this.hitDragging=new U7(this.dragging,N$(a));d.emitter.on("pointerdown",this.handlePointerDown),d.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class _ue extends F3{constructor(a){super(a),this.dragSelection=null,this.handlePointerDown=E=>{let{component:A,dragging:$}=this,{options:L}=A.context,z=L.selectable&&A.isValidDateDownEl(E.origEvent.target);$.setIgnoreMove(!z),$.delay=E.isTouch?Sue(A):null},this.handleDragStart=E=>{this.component.context.calendarApi.unselect(E)},this.handleHitUpdate=(E,A)=>{let{context:$}=this.component,L=null,z=!1;if(E){let se=this.hitDragging.initialHit;E.componentId===se.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(se,E)||(L=xue(se,E,$.pluginHooks.dateSelectionTransformers)),(!L||!hle(L,E.dateProfile,$))&&(z=!0,L=null)}L?$.dispatch({type:"SELECT_DATES",selection:L}):A||$.dispatch({type:"UNSELECT_DATES"}),z?s$():r$(),A||(this.dragSelection=L)},this.handlePointerUp=E=>{this.dragSelection&&(lQ(this.dragSelection,E,this.component.context),this.dragSelection=null)};let{component:d}=a,{options:p}=d.context,v=this.dragging=new ck(a.el);v.touchScrollAllowed=!1,v.minDistance=p.selectMinDistance||0,v.autoScroller.isEnabled=p.dragScroll;let S=this.hitDragging=new U7(this.dragging,N$(a));S.emitter.on("pointerdown",this.handlePointerDown),S.emitter.on("dragstart",this.handleDragStart),S.emitter.on("hitupdate",this.handleHitUpdate),S.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function Sue(i){let{options:a}=i.context,d=a.selectLongPressDelay;return d==null&&(d=a.longPressDelay),d}function xue(i,a,d){let p=i.dateSpan,v=a.dateSpan,S=[p.range.start,p.range.end,v.range.start,v.range.end];S.sort(Use);let E={};for(let A of d){let $=A(i,a);if($===!1)return null;$&&Object.assign(E,$)}return E.range={start:S[0],end:S[3]},E.allDay=p.allDay,E}class uk extends F3{constructor(a){super(a),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=E=>{let A=E.origEvent.target,{component:$,dragging:L}=this,{mirror:z}=L,{options:se}=$.context,oe=$.context;this.subjectEl=E.subjectEl;let Z=this.subjectSeg=P3(E.subjectEl),le=(this.eventRange=Z.eventRange).instance.instanceId;this.relevantEvents=E$(oe.getCurrentData().eventStore,le),L.minDistance=E.isTouch?0:se.eventDragMinDistance,L.delay=E.isTouch&&le!==$.props.eventSelection?kue($):null,se.fixedMirrorParent?z.parentNode=se.fixedMirrorParent:z.parentNode=Vu(A,".fc"),z.revertDuration=se.dragRevertDuration;let J=$.isValidSegDownEl(A)&&!Vu(A,".fc-event-resizer");L.setIgnoreMove(!J),this.isDragging=J&&E.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=E=>{let A=this.component.context,$=this.eventRange,L=$.instance.instanceId;E.isTouch?L!==this.component.props.eventSelection&&A.dispatch({type:"SELECT_EVENT",eventInstanceId:L}):A.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(A.calendarApi.unselect(E),A.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new li(A,$.def,$.instance),jsEvent:E.origEvent,view:A.viewApi}))},this.handleHitUpdate=(E,A)=>{if(!this.isDragging)return;let $=this.relevantEvents,L=this.hitDragging.initialHit,z=this.component.context,se=null,oe=null,Z=null,X=!1,le={affectedEvents:$,mutatedEvents:nm(),isEvent:!0};if(E){se=E.context;let J=se.options;z===se||J.editable&&J.droppable?(oe=Eue(L,E,this.eventRange.instance.range.start,se.getCurrentData().pluginHooks.eventDragMutationMassagers),oe&&(Z=T$($,se.getCurrentData().eventUiBases,oe,se),le.mutatedEvents=Z,BQ(le,E.dateProfile,se)||(X=!0,oe=null,Z=null,le.mutatedEvents=nm()))):se=null}this.displayDrag(se,le),X?s$():r$(),A||(z===se&&W7(L,E)&&(oe=null),this.dragging.setMirrorNeedsRevert(!oe),this.dragging.setMirrorIsVisible(!E||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=se,this.validMutation=oe,this.mutatedRelevantEvents=Z)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=E=>{if(this.isDragging){let A=this.component.context,$=A.viewApi,{receivingContext:L,validMutation:z}=this,se=this.eventRange.def,oe=this.eventRange.instance,Z=new li(A,se,oe),X=this.relevantEvents,le=this.mutatedRelevantEvents,{finalHit:J}=this.hitDragging;if(this.clearDrag(),A.emitter.trigger("eventDragStop",{el:this.subjectEl,event:Z,jsEvent:E.origEvent,view:$}),z){if(L===A){let me=new li(A,le.defs[se.defId],oe?le.instances[oe.instanceId]:null);A.dispatch({type:"MERGE_EVENTS",eventStore:le});let ie={oldEvent:Z,event:me,relatedEvents:i2(le,A,oe),revert(){A.dispatch({type:"MERGE_EVENTS",eventStore:X})}},G={};for(let we of A.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(G,we(z,A));A.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},ie),G),{el:E.subjectEl,delta:z.datesDelta,jsEvent:E.origEvent,view:$})),A.emitter.trigger("eventChange",ie)}else if(L){let me={event:Z,relatedEvents:i2(X,A,oe),revert(){A.dispatch({type:"MERGE_EVENTS",eventStore:X})}};A.emitter.trigger("eventLeave",Object.assign(Object.assign({},me),{draggedEl:E.subjectEl,view:$})),A.dispatch({type:"REMOVE_EVENTS",eventStore:X}),A.emitter.trigger("eventRemove",me);let ie=le.defs[se.defId],G=le.instances[oe.instanceId],we=new li(L,ie,G);L.dispatch({type:"MERGE_EVENTS",eventStore:le});let wt={event:we,relatedEvents:i2(le,L,G),revert(){L.dispatch({type:"REMOVE_EVENTS",eventStore:le})}};L.emitter.trigger("eventAdd",wt),E.isTouch&&L.dispatch({type:"SELECT_EVENT",eventInstanceId:oe.instanceId}),L.emitter.trigger("drop",Object.assign(Object.assign({},RJ(J.dateSpan,L)),{draggedEl:E.subjectEl,jsEvent:E.origEvent,view:J.context.viewApi})),L.emitter.trigger("eventReceive",Object.assign(Object.assign({},wt),{draggedEl:E.subjectEl,view:J.context.viewApi}))}}else A.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:d}=this,{options:p}=d.context,v=this.dragging=new ck(a.el);v.pointer.selector=uk.SELECTOR,v.touchScrollAllowed=!1,v.autoScroller.isEnabled=p.dragScroll;let S=this.hitDragging=new U7(this.dragging,R$);S.useSubjectCenter=a.useEventCenter,S.emitter.on("pointerdown",this.handlePointerDown),S.emitter.on("dragstart",this.handleDragStart),S.emitter.on("hitupdate",this.handleHitUpdate),S.emitter.on("pointerup",this.handlePointerUp),S.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(a,d){let p=this.component.context,v=this.receivingContext;v&&v!==a&&(v===p?v.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:d.affectedEvents,mutatedEvents:nm(),isEvent:!0}}):v.dispatch({type:"UNSET_EVENT_DRAG"})),a&&a.dispatch({type:"SET_EVENT_DRAG",state:d})}clearDrag(){let a=this.component.context,{receivingContext:d}=this;d&&d.dispatch({type:"UNSET_EVENT_DRAG"}),a!==d&&a.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}uk.SELECTOR=".fc-event-draggable, .fc-event-resizable";function Eue(i,a,d,p){let v=i.dateSpan,S=a.dateSpan,E=v.range.start,A=S.range.start,$={};v.allDay!==S.allDay&&($.allDay=S.allDay,$.hasEnd=a.context.options.allDayMaintainDuration,S.allDay?E=kl(d):E=d);let L=M3(E,A,i.context.dateEnv,i.componentId===a.componentId?i.largeUnit:null);L.milliseconds&&($.allDay=!1);let z={datesDelta:L,standardProps:$};for(let se of p)se(z,i,a);return z}function kue(i){let{options:a}=i.context,d=a.eventLongPressDelay;return d==null&&(d=a.longPressDelay),d}class Aue extends F3{constructor(a){super(a),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=S=>{let{component:E}=this,A=this.querySegEl(S),$=P3(A),L=this.eventRange=$.eventRange;this.dragging.minDistance=E.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(S.origEvent.target)||S.isTouch&&this.component.props.eventSelection!==L.instance.instanceId)},this.handleDragStart=S=>{let{context:E}=this.component,A=this.eventRange;this.relevantEvents=E$(E.getCurrentData().eventStore,this.eventRange.instance.instanceId);let $=this.querySegEl(S);this.draggingSegEl=$,this.draggingSeg=P3($),E.calendarApi.unselect(),E.emitter.trigger("eventResizeStart",{el:$,event:new li(E,A.def,A.instance),jsEvent:S.origEvent,view:E.viewApi})},this.handleHitUpdate=(S,E,A)=>{let{context:$}=this.component,L=this.relevantEvents,z=this.hitDragging.initialHit,se=this.eventRange.instance,oe=null,Z=null,X=!1,le={affectedEvents:L,mutatedEvents:nm(),isEvent:!0};S&&(S.componentId===z.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(z,S)||(oe=Tue(z,S,A.subjectEl.classList.contains("fc-event-resizer-start"),se.range))),oe&&(Z=T$(L,$.getCurrentData().eventUiBases,oe,$),le.mutatedEvents=Z,BQ(le,S.dateProfile,$)||(X=!0,oe=null,Z=null,le.mutatedEvents=null)),Z?$.dispatch({type:"SET_EVENT_RESIZE",state:le}):$.dispatch({type:"UNSET_EVENT_RESIZE"}),X?s$():r$(),E||(oe&&W7(z,S)&&(oe=null),this.validMutation=oe,this.mutatedRelevantEvents=Z)},this.handleDragEnd=S=>{let{context:E}=this.component,A=this.eventRange.def,$=this.eventRange.instance,L=new li(E,A,$),z=this.relevantEvents,se=this.mutatedRelevantEvents;if(E.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:L,jsEvent:S.origEvent,view:E.viewApi}),this.validMutation){let oe=new li(E,se.defs[A.defId],$?se.instances[$.instanceId]:null);E.dispatch({type:"MERGE_EVENTS",eventStore:se});let Z={oldEvent:L,event:oe,relatedEvents:i2(se,E,$),revert(){E.dispatch({type:"MERGE_EVENTS",eventStore:z})}};E.emitter.trigger("eventResize",Object.assign(Object.assign({},Z),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||Gr(0),endDelta:this.validMutation.endDelta||Gr(0),jsEvent:S.origEvent,view:E.viewApi})),E.emitter.trigger("eventChange",Z)}else E.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:d}=a,p=this.dragging=new ck(a.el);p.pointer.selector=".fc-event-resizer",p.touchScrollAllowed=!1,p.autoScroller.isEnabled=d.context.options.dragScroll;let v=this.hitDragging=new U7(this.dragging,N$(a));v.emitter.on("pointerdown",this.handlePointerDown),v.emitter.on("dragstart",this.handleDragStart),v.emitter.on("hitupdate",this.handleHitUpdate),v.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(a){return Vu(a.subjectEl,".fc-event")}}function Tue(i,a,d,p){let v=i.context.dateEnv,S=i.dateSpan.range.start,E=a.dateSpan.range.start,A=M3(S,E,v,i.largeUnit);if(d){if(v.add(p.start,A)<p.end)return{startDelta:A}}else if(v.add(p.end,A)>p.start)return{endDelta:A};return null}class Due{constructor(a){this.context=a,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=p=>{p.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=p=>{let v=this.context.options.unselectCancel,S=CX(p.origEvent);this.matchesCancel=!!Vu(S,v),this.matchesEvent=!!Vu(S,uk.SELECTOR)},this.onDocumentPointerUp=p=>{let{context:v}=this,{documentPointer:S}=this,E=v.getCurrentData();if(!S.wasTouchScroll){if(E.dateSelection&&!this.isRecentPointerDateSelect){let A=v.options.unselectAuto;A&&(!A||!this.matchesCancel)&&v.calendarApi.unselect(p)}E.eventSelection&&!this.matchesEvent&&v.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let d=this.documentPointer=new kJ(document);d.shouldIgnoreMove=!0,d.shouldWatchScroll=!1,d.emitter.on("pointerdown",this.onDocumentPointerDown),d.emitter.on("pointerup",this.onDocumentPointerUp),a.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const Nue={fixedMirrorParent:jt},Rue={dateClick:jt,eventDragStart:jt,eventDragStop:jt,eventDrop:jt,eventResizeStart:jt,eventResizeStop:jt,eventResize:jt,drop:jt,eventReceive:jt,eventLeave:jt};z$.dataAttrPrefix="";var OJ=U1({name:"@fullcalendar/interaction",componentInteractions:[wue,_ue,uk,Aue],calendarInteractions:[Due],elementDraggingImpl:ck,optionRefiners:Nue,listenerRefiners:Rue});let Oue=0,Bue=new Date().toISOString().replace(/T.*$/,"");const Mue=[{id:Iue(),title:"All-day event",start:Bue}];function Iue(){return String(Oue++)}const dk=i=>(u.pushScopeId("data-v-1fa0e0e1"),i=i(),u.popScopeId(),i),Pue={class:"demo-app"},Fue={class:"demo-app-main"},$ue={class:"title-line"},Lue=["title","onClick"],Vue={key:0,style:{width:"90%"}},Hue=dk(()=>u.createElementVNode("span",{class:"to"},"至",-1)),zue={key:1,style:{width:"90%"}},Uue=dk(()=>u.createElementVNode("span",{class:"to"},"至",-1)),Wue={key:2,style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},jue={key:0,style:{"margin-left":"2%"}},Zue=dk(()=>u.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),Gue={key:1},que=dk(()=>u.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),Kue={key:0,class:"placeholder"},Yue={class:"info"},Xue=dk(()=>u.createElementVNode("img",{src:"https://img1.baidu.com/it/u=1960110688,1786190632&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=281",alt:""},null,-1)),Que={class:"dialog-footer"},Jue={name:"IkApprovalProcess"},ede=u.defineComponent({...Jue,props:{dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},emits:["delete","success"],setup(i,{emit:a}){const d=a,p=le=>{if(A.selectInfo=le,S(),le.view.type=="dayGridMonth"){let me=le.end.getTime()-864e5;A.timeType="month",A.form.startDate=Io.ikDate.toYMD(le.start),A.form.endDate=Io.ikDate.toYMD(new Date(me))}else le.view.type=="timeGridWeek"?(A.timeType="week",A.form.startDate=Io.ikDate.toYMDHM(le.start),A.form.endDate=Io.ikDate.toYMDHM(le.end)):le.view.type=="timeGridDay"&&(A.timeType="day",A.form.startDate=Io.ikDate.toYMD(le.start),A.form.endDate=Io.ikDate.toYMD(le.start),A.form.startTime=Io.ikDate.toDateTime(le.start),A.form.endTime=Io.ikDate.toDateTime(le.end));le.view.calendar.unselect(),u.nextTick(()=>{A.title="新建日程",A.dialogVisible=!0})},v=(le,J)=>{A.title="修改日程",A.dialogVisible=!0},S=le=>{fetch("http://192.168.2.45:6002/component/pick/mix",{method:"POST",body:JSON.stringify({parentDepartmentId:le||"",name:""}),headers:{Authorization:"Bearer iking","Content-Type":"application/json"}}).then(ie=>{ie.json().then(G=>{const{success:we,data:wt}=G;if(!we)return;const{departments:Ve,users:K,roles:De,posts:tt}=wt;A.depList=Ve,A.userList=K,A.roleList=De,A.postList=tt})}).catch(ie=>{console.info("error: ",ie)})},E=le=>{A.currentEvents=le},A=u.reactive({allDay:!1,dialogVisible:!1,form:{title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},formRef:null,title:"新建日程",timeType:"month",handList:[],isShow:!1,depList:[],userList:[],roleList:[],postList:[],selectInfo:{},calendarOptions:{locale:RY,plugins:[bJ,EJ,OJ],headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},firstDay:1,initialView:"dayGridMonth",initialEvents:Mue,editable:!0,selectable:!0,selectMirror:!0,dayMaxEvents:!0,weekends:!0,select:p,eventClick:le=>v(),eventsSet:E},currentEvents:[]}),$=()=>{var le;(le=A.formRef)==null||le.resetFields(),A.form={title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},A.dialogVisible=!1},L=async()=>{var me,ie,G,we;let le=(ie=(me=A.selectInfo)==null?void 0:me.view)==null?void 0:ie.calendar,J={id:new Date().getTime(),title:A.form.title,start:(G=A.selectInfo)==null?void 0:G.startStr,end:(we=A.selectInfo)==null?void 0:we.endStr,allDay:A.allDay};await le.addEvent(J),d("success",J),$()},z=le=>{Zt.ElMessageBox.confirm(`你确定删除事件'${le.event.title}'?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{Zt.ElMessage({type:"success",message:"删除成功"}),le.event.remove(),d("delete",le.event)})},se=le=>{A.handList=le.list,A.form.personList=le.list},oe=()=>{A.isShow=!0},Z=le=>{S(le==null?void 0:le.elementId)},X=le=>{A.form.personList.splice(le,1),A.handList=A.form.personList};return(le,J)=>{const me=u.resolveComponent("el-checkbox");return u.openBlock(),u.createElementBlock("div",Pue,[u.createElementVNode("div",Fue,[u.createVNode(u.unref(lJ),{class:"demo-app-calendar",options:A.calendarOptions},{eventContent:u.withCtx(ie=>[u.createElementVNode("div",$ue,[u.createElementVNode("span",{class:"title",title:ie.event.title,onClick:u.withModifiers(G=>v(),["stop"])},u.toDisplayString(ie.event.title),9,Lue),u.createVNode(u.unref(Zt.ElIcon),{size:16,onClick:u.withModifiers(G=>z(ie),["stop"])},{default:u.withCtx(()=>[u.createVNode(u.unref(wY))]),_:2},1032,["onClick"])])]),_:1},8,["options"])]),u.createCommentVNode(" 新建日程 "),u.createVNode(u.unref(Zt.ElDialog),{modelValue:A.dialogVisible,"onUpdate:modelValue":J[12]||(J[12]=ie=>A.dialogVisible=ie),title:A.title,width:"30%",ref:"formRef",onClose:$},{footer:u.withCtx(()=>[u.createElementVNode("span",Que,[u.createVNode(u.unref(Zt.ElButton),{onClick:$},{default:u.withCtx(()=>[u.createTextVNode("取消")]),_:1}),u.createVNode(u.unref(Zt.ElButton),{type:"primary",onClick:L},{default:u.withCtx(()=>[u.createTextVNode("确定")]),_:1})])]),default:u.withCtx(()=>[u.createVNode(u.unref(Zt.ElForm),{model:A.form},{default:u.withCtx(()=>[u.createVNode(u.unref(Zt.ElFormItem),null,{default:u.withCtx(()=>[u.createVNode(u.unref(Zt.ElIcon),{class:"icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(yY))]),_:1}),u.createVNode(u.unref(Zt.ElInput),{modelValue:A.form.title,"onUpdate:modelValue":J[0]||(J[0]=ie=>A.form.title=ie),placeholder:`添加${A.form.type==1?"会议":"活动"}标题`,style:{width:"70%"},clearable:""},null,8,["modelValue","placeholder"]),u.createVNode(u.unref(Zt.ElSelect),{modelValue:A.form.type,"onUpdate:modelValue":J[1]||(J[1]=ie=>A.form.type=ie),style:{width:"20%"}},{default:u.withCtx(()=>[u.createVNode(u.unref(Zt.ElOption),{label:"会议",value:1}),u.createVNode(u.unref(Zt.ElOption),{label:"活动",value:2})]),_:1},8,["modelValue"])]),_:1}),u.createVNode(u.unref(Zt.ElFormItem),null,{default:u.withCtx(()=>[u.createVNode(u.unref(Zt.ElIcon),{class:"icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(vY))]),_:1}),A.timeType=="month"?(u.openBlock(),u.createElementBlock("div",Vue,[u.createVNode(u.unref(Zt.ElDatePicker),{modelValue:A.form.startDate,"onUpdate:modelValue":J[2]||(J[2]=ie=>A.form.startDate=ie),type:"date",placeholder:"开始日期",style:{width:"48%"}},null,8,["modelValue"]),Hue,u.createVNode(u.unref(Zt.ElDatePicker),{modelValue:A.form.endDate,"onUpdate:modelValue":J[3]||(J[3]=ie=>A.form.endDate=ie),type:"date",placeholder:"结束日期",style:{width:"48%"}},null,8,["modelValue"])])):u.createCommentVNode("v-if",!0),A.timeType=="week"?(u.openBlock(),u.createElementBlock("div",zue,[u.createVNode(u.unref(Zt.ElDatePicker),{modelValue:A.form.startDate,"onUpdate:modelValue":J[4]||(J[4]=ie=>A.form.startDate=ie),type:"datetime",placeholder:"开始日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"]),Uue,u.createVNode(u.unref(Zt.ElDatePicker),{modelValue:A.form.endDate,"onUpdate:modelValue":J[5]||(J[5]=ie=>A.form.endDate=ie),type:"datetime",placeholder:"结束日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"])])):u.createCommentVNode("v-if",!0),A.timeType=="day"?(u.openBlock(),u.createElementBlock("div",Wue,[u.createVNode(u.unref(Zt.ElDatePicker),{modelValue:A.form.startDate,"onUpdate:modelValue":J[6]||(J[6]=ie=>A.form.startDate=ie),type:"date",placeholder:"开始日期",style:u.normalizeStyle({width:A.allDay?"45%":"90%"})},null,8,["modelValue","style"]),A.allDay?(u.openBlock(),u.createElementBlock("div",Gue,[que,u.createVNode(u.unref(Zt.ElDatePicker),{modelValue:A.form.endDate,"onUpdate:modelValue":J[9]||(J[9]=ie=>A.form.endDate=ie),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(u.openBlock(),u.createElementBlock("div",jue,[u.createVNode(u.unref(Zt.ElTimePicker),{modelValue:A.form.startTime,"onUpdate:modelValue":J[7]||(J[7]=ie=>A.form.startTime=ie),type:"datetime",placeholder:"开始日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),Zue,u.createVNode(u.unref(Zt.ElTimePicker),{modelValue:A.form.endTime,"onUpdate:modelValue":J[8]||(J[8]=ie=>A.form.endTime=ie),type:"datetime",placeholder:"结束日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),u.createVNode(me,{modelValue:A.allDay,"onUpdate:modelValue":J[10]||(J[10]=ie=>A.allDay=ie),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])):u.createCommentVNode("v-if",!0)]),_:1}),u.createVNode(u.unref(Zt.ElFormItem),null,{default:u.withCtx(()=>[u.createVNode(u.unref(Zt.ElIcon),{class:"icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(lne))]),_:1}),u.createElementVNode("div",{class:"personBlock",onClick:u.withModifiers(oe,["stop"])},[A.form.personList.length?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:1},u.renderList(A.form.personList,(ie,G)=>(u.openBlock(),u.createElementBlock("div",{key:G,class:"nameBlock"},[u.createElementVNode("div",Yue,[Xue,u.createElementVNode("div",null,u.toDisplayString(ie.elementName),1)]),u.createVNode(u.unref(Zt.ElIcon),{class:"close",onClick:u.withModifiers(we=>X(G),["stop"])},{default:u.withCtx(()=>[u.createVNode(u.unref(CY))]),_:2},1032,["onClick"])]))),128)):(u.openBlock(),u.createElementBlock("span",Kue,"添加参与人"))])]),_:1}),u.createVNode(u.unref(Zt.ElFormItem),null,{default:u.withCtx(()=>[u.createVNode(u.unref(Zt.ElIcon),{class:"icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(Jte))]),_:1}),u.createVNode(u.unref(Zt.ElInput),{modelValue:A.form.location,"onUpdate:modelValue":J[11]||(J[11]=ie=>A.form.location=ie),placeholder:"添加地点",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),u.createCommentVNode(" 选人组件 "),u.createVNode(u.unref(mk),{modelValue:A.handList,"onUpdate:modelValue":J[13]||(J[13]=ie=>A.handList=ie),show:A.isShow,"onUpdate:show":J[14]||(J[14]=ie=>A.isShow=ie),onOk:se,multiple:!0,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},"dep-list":A.depList,"user-list":A.userList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:["user"],onHandChild:Z},null,8,["modelValue","show","dep-list","user-list"])])}}}),bbe="",tde=or(Ls(ede,[["__scopeId","data-v-1fa0e0e1"]])),nde={class:"ik-hor-step-content"},ode={class:"flex"},sde=["onClick"],rde=["id","onClick"],ade=u.defineComponent({__name:"IKHorizontalStepBar",props:{spaceNum:{type:String,default:"58px"},active:{type:Number,default:null},activeColor:{type:String,default:""},needClick:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},propsField:{type:Object,default:()=>({title:"title",value:"value"})}},emits:["click","update:active"],setup(i,{emit:a}){const d=i,p=a,v=u.ref(!1),S=u.ref(),E=u.ref(),A=u.ref(!1);u.watch(()=>d.active,le=>{let J=document.getElementById("stepItemContent"),me=document.getElementById(`stepItem${le}`),ie=document.getElementById("stepItem0");const G=me&&ie?(me==null?void 0:me.offsetLeft)-(ie==null?void 0:ie.offsetLeft):0;J&&me&&(J.scrollLeft=G>(J==null?void 0:J.clientWidth)?G-(J==null?void 0:J.offsetLeft):0)}),u.onMounted(()=>{u.nextTick(()=>{let J=document.getElementById("stepItemContent"),me=(J==null?void 0:J.scrollWidth)>(J==null?void 0:J.clientWidth);v.value=me,window.addEventListener("resize",le,!0)});const le=()=>{let J=document.getElementById("stepItemContent"),me=(J==null?void 0:J.scrollWidth)>(J==null?void 0:J.clientWidth);v.value=me}});const $=(le,J)=>{if(!d.needClick)return;p("update:active",J),p("click",le);let me=document.getElementById("stepItemContent"),ie=document.getElementById(`stepItem${J}`),G=document.getElementById("stepItem0");const we=ie&&G?(ie==null?void 0:ie.offsetLeft)-(G==null?void 0:G.offsetLeft):0;me&&ie&&(me.scrollLeft=we>(me==null?void 0:me.clientWidth)?we-(me==null?void 0:me.offsetLeft):0)},L=()=>{let le=document.getElementById("stepItemContent");le&&(le.scrollLeft=le.scrollLeft-20)},z=()=>{let le=document.getElementById("stepItemContent");le&&(le.scrollLeft=le.scrollLeft+20)},se=()=>{clearInterval(E.value);let le=document.getElementById("stepItemContent");A.value=!1,E.value=setInterval(()=>{A.value=!0,le&&(le.scrollLeft=le.scrollLeft-20)},100)},oe=()=>{clearInterval(E.value),A.value||L()},Z=()=>{clearInterval(S.value);let le=document.getElementById("stepItemContent");A.value=!1,S.value=setInterval(()=>{A.value=!0,le&&(le.scrollLeft=le.scrollLeft+20)},100)},X=()=>{clearInterval(S.value),A.value||z()};return(le,J)=>{const me=u.resolveComponent("el-icon");return u.openBlock(),u.createElementBlock("div",nde,[u.createElementVNode("div",ode,[v.value?(u.openBlock(),u.createElementBlock("div",{key:0,class:"icon-left",onMousedown:se,onMouseup:oe,onClick:L},[u.createVNode(me,{class:"operation-icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(gY),{size:"26px"})]),_:1})],32)):u.createCommentVNode("v-if",!0),u.createElementVNode("div",{class:"step-item-content",id:"stepItemContent",style:u.normalizeStyle({justifyContent:v.value?"flex-start":"center"})},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.list,(ie,G)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(`step-item ${G<=i.active?"step-item-active":""}`),key:G},[G!=0?(u.openBlock(),u.createElementBlock("span",{key:0,class:u.normalizeClass(`step-border ${G<=i.active?"step-border-greater-than":""}`),style:u.normalizeStyle({width:`${i.spaceNum.indexOf("px")!=-1?i.spaceNum:`${i.spaceNum}px`}`})},null,6)):u.createCommentVNode("v-if",!0),u.createElementVNode("span",{class:u.normalizeClass(`step-num ${G===i.active?"step-num-active":G<i.active?"step-num-greater-than":""}`),onClick:we=>$(ie,G),style:u.normalizeStyle({backgroundColor:G===i.active&&i.activeColor?i.activeColor:"",cursor:ie&&ie.disabled?"not-allowed":i.needClick?"pointer":"context-menu"})},[u.renderSlot(le.$slots,"icon",{data:{item:ie,index:G}},()=>[u.createTextVNode(u.toDisplayString(G+1),1)],!0)],14,sde),u.createElementVNode("span",{id:`stepItem${G}`,class:u.normalizeClass(`step-label ${i.active===G?"step-label-active":G<i.active?"step-label-greater-than":""} step-item-${G}`),style:u.normalizeStyle({color:G===i.active&&i.activeColor?i.activeColor:"",cursor:ie&&ie.disabled?"not-allowed":i.needClick?"pointer":"context-menu"}),onClick:we=>$(ie,G)},u.toDisplayString(ie[i.propsField.title]),15,rde)],2))),128))],4),v.value?(u.openBlock(),u.createElementBlock("div",{key:1,class:"icon-right",onMousedown:Z,onMouseup:X,onClick:z},[u.createVNode(me,{class:"operation-icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(bY))]),_:1})],32)):u.createCommentVNode("v-if",!0)])])}}}),vbe="",lde=or(Ls(ade,[["__scopeId","data-v-f390d7ac"]])),Ac=(i,a)=>{var S,E,A,$;const d=(S=i==null?void 0:i.response)!=null&&S.data?BJ((A=(E=i==null?void 0:i.response)==null?void 0:E.data)==null?void 0:A.suffix):(($=i.raw)==null?void 0:$.type)||BJ(i[a.suffix]),p=d==null?void 0:d.toLowerCase(),v={sheet:"excel",excel:"excel",zip:"zip","application/x-compressed":"zip",image:"image",video:"video",audio:"audio",pdf:"pdf",text:"txt",txt:"txt",word:"word",ppt:"ppt",exe:"exe",json:"json"};for(let L in v)if(typeof p=="string"&&(p.includes(L)||p===L))return v[L];return"unknown"},ide={".doc":"word",".docx":"word",".docxf":"word",".docm":"word",".dot":"word",".dotm":"word",".dotx":"word",".epub":"word",".fodt":"word",".htm":"word",".html":"word",".mht":"word",".odt":"word",".ott":"word",".rtf":"word",".djvu":"word",".oxps":"word",".oform":"word",".fb2":"word",".xml":"word",".xps":"word",".csv":"excel",".xls":"excel",".xlsx":"excel",".fods":"excel",".ods":"excel",".ots":"excel",".xlsb":"excel",".xlsm":"excel",".xlt":"excel",".xltm":"excel",".xltx":"excel",".fodp":"ppt",".odp":"ppt",".otp":"ppt",".pot":"ppt",".potm":"ppt",".potx":"ppt",".pps":"ppt",".ppsm":"ppt",".ppsx":"ppt",".ppt":"ppt",".pptm":"ppt",".pptx":"ppt",".zip":"zip",".rar":"zip",".7z":"zip",".apz":"zip",".ar":"zip",".bz":"zip",".car":"zip",".dar":"zip",".cpgz":"zip",".f":"zip",".ha":"zip",".hbc":"zip",".hbc2":"zip",".hbe":"zip",".hpk":"zip",".hyp":"zip",".png":"image",".jpg":"image",".jpeg":"image",".bmp":"image",".gif":"image",".webp":"image",".psd":"image",".svg":"image",".tiff":"image",".avi":"video",".wmv":"video",".mpeg":"video",".mp4":"video",".mpm4v":"video",".mov":"video",".asf":"video",".flv":"video",".f4v":"video",".rmvb":"video",".rm":"video",".3gp":"video",".vob":"video",".txt":"txt",".pdf":"pdf"},BJ=i=>{const a=i==null?void 0:i.toLocaleLowerCase(),d=a!=null&&a.startsWith(".")?a:`.${a}`;return d&&ide[d]||"unknow"},cde=i=>{let a="",d=["doc","docx"],p=["xls","xlsx"],v=["ppt","pptx"],S=["pdf"];return d.includes(i)&&(a="word"),p.includes(i)&&(a="cell"),v.includes(i)&&(a="slide"),S.includes(i)&&(a="text-pdf"),a},ude={key:0,t:"1686300059786",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7671",width:"200",height:"200"},dde=[u.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#50CD89","p-id":"7672"},null,-1),u.createElementVNode("path",{d:"M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",fill:"#FFF7F7","p-id":"7673"},null,-1),u.createElementVNode("path",{d:"M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",fill:"#FFFFFF","p-id":"7674"},null,-1),u.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)],fde={key:1,t:"1686301531714",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9067",width:"200",height:"200"},mde=[u.createElementVNode("path",{d:"M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",fill:"#FFA621","p-id":"9068"},null,-1),u.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"9069"},null,-1)],hde={key:2,t:"1686300141125",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8137",width:"200",height:"200"},pde=[u.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",fill:"#F1416C","p-id":"8138"},null,-1),u.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8139"},null,-1)],gde={key:3,t:"1686300157181",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8292",width:"200",height:"200"},bde=[u.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",fill:"#029EF7","p-id":"8293"},null,-1),u.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8294"},null,-1)],yde={key:4,t:"1686300180947",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8447",width:"200",height:"200"},vde=[u.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",fill:"#F1416C","p-id":"8448"},null,-1),u.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8449"},null,-1)],Cde={key:5,t:"1686300195363",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8602",width:"200",height:"200"},wde=[u.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",fill:"#029EF7","p-id":"8603"},null,-1),u.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8604"},null,-1)],_de={key:6,t:"1686300209288",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8757",width:"200",height:"200"},Sde=[u.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",fill:"#FFA621","p-id":"8758"},null,-1),u.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8759"},null,-1)],xde={key:7,t:"1686300225262",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8912",width:"200",height:"200"},Ede=[u.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",fill:"#FFA621","p-id":"8913"},null,-1),u.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8914"},null,-1)],kde={key:8,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},Ade=[u.createElementVNode("path",{d:"M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",fill:"#00BD76","p-id":"4337"},null,-1),u.createElementVNode("path",{d:"M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",fill:"#FFFFFF",opacity:".9","p-id":"4338"},null,-1),u.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)],Tde={key:9,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},Dde=[u.createElementVNode("path",{d:"M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z",fill:"#8199AF","p-id":"8002"},null,-1),u.createElementVNode("path",{d:"M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",fill:"#617F9B","p-id":"8003"},null,-1),u.createElementVNode("path",{d:"M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",fill:"#FFFFFF",opacity:".5","p-id":"8004"},null,-1),u.createElementVNode("path",{d:"M344 862.4h-100.8c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h100.8c4.8 0 9.6 4.8 9.6 11.2 0 6.4-4.8 9.6-9.6 9.6h-94.4v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h94.4c4.8 0 9.6 4.8 9.6 9.6 0 6.4-4.8 11.2-9.6 11.2z m193.6 1.6c-4.8 0-8 0-9.6-3.2l-59.2-80-60.8 80c-1.6 3.2-4.8 3.2-8 3.2-6.4 0-11.2-4.8-11.2-11.2 0-1.6 0-4.8 1.6-6.4l62.4-81.6-57.6-78.4c-1.6-1.6-3.2-3.2-3.2-6.4 0-4.8 4.8-11.2 12.8-11.2 3.2 0 6.4 1.6 8 4.8l56 73.6 54.4-73.6c1.6-3.2 4.8-4.8 9.6-4.8s11.2 4.8 11.2 11.2c0 3.2 0 4.8-1.6 6.4l-57.6 76.8 60.8 83.2c1.6 1.6 3.2 4.8 3.2 6.4 0 6.4-6.4 11.2-11.2 11.2z m171.2-1.6h-99.2c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h99.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-92.8v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h92.8c6.4 0 11.2 4.8 11.2 9.6 0 6.4-4.8 11.2-11.2 11.2z",fill:"#FFFFFF","p-id":"8005"},null,-1)],Nde={key:10,t:"1714099890925",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2271",width:"200",height:"200"},Rde=[u.createElementVNode("path",{d:"M227.555556 28.444444h389.404444a19.911111 19.911111 0 0 1 14.734222 6.542223l271.132445 298.211555a28.444444 28.444444 0 0 1 7.395555 19.143111V938.666667a56.888889 56.888889 0 0 1-56.888889 56.888889H227.555556a56.888889 56.888889 0 0 1-56.888889-56.888889V85.333333a56.888889 56.888889 0 0 1 56.888889-56.888889z",fill:"#0DD59D","p-id":"2272"},null,-1),u.createElementVNode("path",{d:"M625.777778 30.492444a19.911111 19.911111 0 0 1 5.916444 4.465778l271.132445 298.24a28.444444 28.444444 0 0 1 5.176889 8.135111H682.666667a56.888889 56.888889 0 0 1-56.888889-56.888889V30.492444z",fill:"#FFFFFF","fill-opacity":".65","p-id":"2273"},null,-1),u.createElementVNode("path",{d:"M396.288 645.176889c0 5.461333-0.796444 10.865778-2.389333 16.156444-1.592889 5.319111-4.266667 10.069333-7.964445 14.222223-3.697778 4.181333-8.647111 7.509333-14.791111 10.012444a60.871111 60.871111 0 0 1-22.869333 3.754667c-15.160889 0-26.851556-3.982222-35.043556-11.946667-8.192-7.964444-12.288-19.683556-12.288-35.157333v-10.012445h21.617778v6.826667c0 4.721778 0.369778 9.045333 1.137778 12.970667a28.074667 28.074667 0 0 0 3.982222 10.24 18.773333 18.773333 0 0 0 7.964444 6.712888c3.413333 1.592889 7.765333 2.389333 13.084445 2.389334 9.870222 0 16.64-2.645333 20.366222-7.964445 3.697778-5.290667 5.575111-12.430222 5.575111-21.390222v-118.784h21.617778v121.969778z m44.145778 3.413333c0.142222 4.266667 1.137778 7.850667 2.958222 10.808889a20.593778 20.593778 0 0 0 7.168 7.054222c2.958222 1.763556 6.286222 3.015111 10.012444 3.754667 3.697778 0.768 7.537778 1.137778 11.491556 1.137778 3.043556 0 6.229333-0.227556 9.557333-0.682667 3.328-0.455111 6.4-1.28 9.216-2.503111a17.294222 17.294222 0 0 0 6.940445-5.347556 14.250667 14.250667 0 0 0 2.730666-8.988444 12.885333 12.885333 0 0 0-5.688888-11.377778c-3.783111-2.56-8.533333-4.664889-14.222223-6.257778a232.561778 232.561778 0 0 0-18.545777-4.323555 96.227556 96.227556 0 0 1-18.545778-5.461333 38.4 38.4 0 0 1-14.222222-9.898667c-3.783111-4.266667-5.688889-10.154667-5.688889-17.749333a28.16 28.16 0 0 1 3.982222-15.246223c2.645333-4.266667 6.058667-7.68 10.24-10.353777 4.181333-2.645333 8.874667-4.608 14.108444-5.916445 5.233778-1.28 10.439111-1.934222 15.587556-1.934222 6.684444 0 12.8 0.568889 18.432 1.706667 5.603556 1.137778 10.581333 3.128889 14.904889 5.916444 4.323556 2.816 7.765333 6.599111 10.353778 11.377778 2.56 4.778667 4.096 10.752 4.551111 17.863111h-19.342223a19.569778 19.569778 0 0 0-2.958222-9.443556 19.370667 19.370667 0 0 0-6.371555-6.030222 28.956444 28.956444 0 0 0-8.533334-3.299555 43.918222 43.918222 0 0 0-9.443555-1.024c-2.872889 0-5.802667 0.227556-8.760889 0.682666a29.496889 29.496889 0 0 0-8.078222 2.389334 16.270222 16.270222 0 0 0-5.916445 4.551111 11.463111 11.463111 0 0 0-2.275555 7.395555c0 3.356444 1.166222 6.115556 3.527111 8.305778a28.16 28.16 0 0 0 8.988444 5.461333c3.640889 1.422222 7.736889 2.673778 12.288 3.640889 4.551111 0.995556 9.102222 1.991111 13.653334 3.072 4.835556 1.080889 9.585778 2.360889 14.222222 3.868445 4.636444 1.536 8.732444 3.527111 12.288 6.030222s6.456889 5.660444 8.647111 9.443555a27.733333 27.733333 0 0 1 3.299555 14.108445c0 7.111111-1.479111 13.056-4.437333 17.749333a34.702222 34.702222 0 0 1-11.605333 11.377778 48.497778 48.497778 0 0 1-16.156445 6.030222c-5.973333 1.137778-11.946667 1.706667-17.863111 1.706667a82.773333 82.773333 0 0 1-18.659555-2.048 45.795556 45.795556 0 0 1-15.701334-6.712889 34.218667 34.218667 0 0 1-10.922666-12.288 42.581333 42.581333 0 0 1-4.551111-18.545778h19.342222z m116.053333-21.617778c0 7.111111 0.938667 13.482667 2.844445 19.000889 1.905778 5.546667 4.522667 10.183111 7.850666 13.880889a34.076444 34.076444 0 0 0 25.941334 11.491556 34.076444 34.076444 0 0 0 25.941333-11.491556c3.328-3.697778 5.973333-8.334222 7.850667-13.880889 1.905778-5.518222 2.844444-11.861333 2.844444-19.000889 0-7.111111-0.938667-13.454222-2.844444-19.000888a41.016889 41.016889 0 0 0-7.850667-13.994667 33.422222 33.422222 0 0 0-11.719111-8.647111 34.872889 34.872889 0 0 0-14.222222-2.958222c-5.006222 0-9.756444 0.995556-14.222223 2.958222-4.465778 1.991111-8.391111 4.835556-11.719111 8.647111-3.328 3.811556-5.973333 8.476444-7.850666 13.994667-1.905778 5.546667-2.844444 11.889778-2.844445 19.000888z m-20.48 0c0-8.647111 1.223111-16.725333 3.640889-24.234666a54.897778 54.897778 0 0 1 10.922667-19.569778c4.835556-5.518222 10.837333-9.898667 17.976889-13.084444 7.111111-3.185778 15.331556-4.778667 24.576-4.778667 9.386667 0 17.635556 1.592889 24.689777 4.778667 7.054222 3.185778 12.999111 7.566222 17.863111 13.084444 4.835556 5.546667 8.504889 12.060444 10.922667 19.569778 2.417778 7.509333 3.640889 15.587556 3.640889 24.234666 0 8.647111-1.223111 16.696889-3.640889 24.120889-2.417778 7.452444-6.058667 13.937778-10.922667 19.456-4.835556 5.546667-10.808889 9.870222-17.863111 12.970667-7.054222 3.128889-15.274667 4.664889-24.689777 4.664889-9.244444 0-17.436444-1.536-24.576-4.664889a50.261333 50.261333 0 0 1-17.976889-12.970667 55.068444 55.068444 0 0 1-10.922667-19.456 77.283556 77.283556 0 0 1-3.640889-24.120889z m136.988445-58.936888h18.204444v18.659555h0.455111c8.049778-14.250667 20.764444-21.390222 38.229333-21.390222 7.736889 0 14.193778 1.080889 19.342223 3.185778 5.148444 2.133333 9.329778 5.091556 12.515555 8.874666 3.185778 3.811556 5.404444 8.305778 6.712889 13.539556 1.28 5.233778 1.934222 11.036444 1.934222 17.408v77.368889h-19.342222v-79.644445c0-7.281778-2.133333-13.027556-6.371555-17.294222-4.266667-4.266667-10.097778-6.371556-17.521778-6.371555-5.916444 0-11.036444 0.910222-15.36 2.730666a28.814222 28.814222 0 0 0-10.808889 7.736889 33.336889 33.336889 0 0 0-6.485333 11.719111c-1.422222 4.494222-2.161778 9.386667-2.161778 14.677334v66.446222h-19.342222V568.035556z",fill:"#FFFFFF","p-id":"2274"},null,-1)],Ode={key:11,t:"1686300037564",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7515",width:"200",height:"200"},Bde=[u.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#029EF7","p-id":"7516"},null,-1),u.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),u.createElementVNode("path",{d:"M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",fill:"#FFFFFF","p-id":"7518"},null,-1)],sL=u.defineComponent({__name:"FileIcon",props:{type:{type:String,default:"unknow"},file:{type:Object,default:()=>null},fields:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})}},setup(i){const a=i,d=u.computed(()=>a.file?Ac(a.file,a.fields):a.type);return(p,v)=>d.value==="image"?(u.openBlock(),u.createElementBlock("svg",ude,dde)):d.value==="zip"?(u.openBlock(),u.createElementBlock("svg",fde,mde)):d.value==="ppt"?(u.openBlock(),u.createElementBlock("svg",hde,pde)):d.value==="word"?(u.openBlock(),u.createElementBlock("svg",gde,bde)):d.value==="pdf"?(u.openBlock(),u.createElementBlock("svg",yde,vde)):d.value==="txt"?(u.openBlock(),u.createElementBlock("svg",Cde,wde)):d.value==="audio"?(u.openBlock(),u.createElementBlock("svg",_de,Sde)):d.value==="video"?(u.openBlock(),u.createElementBlock("svg",xde,Ede)):d.value==="excel"?(u.openBlock(),u.createElementBlock("svg",kde,Ade)):d.value==="exe"?(u.openBlock(),u.createElementBlock("svg",Tde,Dde)):d.value==="json"?(u.openBlock(),u.createElementBlock("svg",Nde,Rde)):(u.openBlock(),u.createElementBlock("svg",Ode,Bde))}}),Mde=["onClick"],Ide={class:"fileName simple"},Pde=["onClick"],Fde={class:"text"},$de={class:"fileName"},Lde={class:"size"},Vde=u.defineComponent({__name:"IkPreviewFile",props:{list:{type:Array,default:()=>[]},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},field:{required:!0,type:Object,default:()=>({})},iconSize:{type:Number,default:40},showBg:{type:Boolean,default:!0},width:{type:Number||String,default:"100%"},iconHoverShow:{type:Boolean,default:!1},isOnlyOfficePreview:{type:Boolean,default:!0},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},jwtToken:{type:String,default:""},simple:{type:Boolean,default:!1}},setup(i){const a=i,{cLoadUrl:d,cOnlyofficeConfig:p}=l7(a),v=u.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...a.field})),S=u.ref({}),E=u.ref(!1),A=se=>{var oe,Z;S.value={...se,name:se.name,url:N3(d.value,se.url||((Z=(oe=se==null?void 0:se.response)==null?void 0:oe.data)==null?void 0:Z.id)||(se==null?void 0:se.id))},E.value=!0},$=se=>{Io.ikFile.downloadFile(N3(d.value,se[v.value.url]||se.attachmentId||se.id),se[v.value.name]||se.attachmentName)},L=u.computed(()=>Io.paramType.isNumber(a.width)?`${a.width}px`:a.width),z=u.computed(()=>a.list.map(se=>({...se,name:se[v.value.name]||se.attachmentName,size:se[v.value.size]||se.fileSize||se.attachmentSize,suffix:se[v.value.suffix]||se.attachmentSuffix})));return(se,oe)=>{var X,le,J;const Z=u.resolveComponent("tmplate");return u.openBlock(),u.createElementBlock(u.Fragment,null,[(X=i.list)!=null&&X.length?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[i.simple?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(z.value,(me,ie)=>(u.openBlock(),u.createElementBlock("div",{class:"iking-privew-annex simple",onClick:G=>A(me),style:u.normalizeStyle({width:L.value})},[u.createElementVNode("div",Ide,u.toDisplayString(me.name),1),u.createElementVNode("div",{class:u.normalizeClass(["flex flex-center",{"hover-show":i.iconHoverShow}])},[u.createVNode(u.unref(sr),{name:"iksvg_daochu",onClick:u.withModifiers(G=>$(me),["stop"]),size:20,active:""},null,8,["onClick"]),u.createVNode(u.unref(sr),{name:"iksvg_yulan",size:20,active:""}),u.renderSlot(se.$slots,"operation",{data:{...me,findex:ie}})],2)],12,Mde))),256)):(u.openBlock(),u.createBlock(Z,{key:1},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(z.value,(me,ie)=>{var G;return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["iking-privew-annex",{"is-bg":i.showBg}]),key:ie,style:u.normalizeStyle({marginBottom:ie==((G=i.list)==null?void 0:G.length)-1?"0":"10px",width:L.value})},[u.createElementVNode("div",{class:"file-card",onClick:we=>A(me)},[u.createVNode(sL,{file:me,style:u.normalizeStyle({height:`${i.iconSize}px`}),class:"ikui-w-auto",fields:v.value},null,8,["file","style","fields"]),u.createElementVNode("div",Fde,[u.createElementVNode("div",$de,u.toDisplayString(me.name),1),u.createElementVNode("div",Lde,u.toDisplayString(u.unref(Nne)(me.size)),1)]),u.createElementVNode("div",{class:u.normalizeClass(["flex flex-center",{"hover-show":i.iconHoverShow}])},[u.createVNode(u.unref(sr),{name:"iksvg_daochu",onClick:u.withModifiers(we=>$(me),["stop"]),bg:i.showBg,size:i.showBg?"default":20},null,8,["onClick","bg","size"]),u.createVNode(u.unref(sr),{name:"iksvg_yulan",bg:i.showBg,size:i.showBg?"default":20},null,8,["bg","size"]),u.renderSlot(se.$slots,"operation",{data:{...me,findex:ie}})],2)],8,Pde)],6)}),128))]),_:3}))],64)):u.createCommentVNode("v-if",!0),u.createVNode(u.unref(rL),{show:E.value,"onUpdate:show":oe[0]||(oe[0]=me=>E.value=me),loadUrl:u.unref(d),file:S.value,onlyofficeServer:((le=u.unref(p))==null?void 0:le.serverUrl)||i.onlyofficeServer,onlyOfficeConfig:u.unref(p),onlyOfficeAccept:((J=u.unref(p))==null?void 0:J.accept)||i.onlyOfficeAccept},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig","onlyOfficeAccept"])],64)}}}),Qbe="",j7=or(Vde),Hde=u.defineComponent({__name:"IkPreviewFileDialog",props:u.mergeModels({file:{type:Object,default:()=>[]},loadUrl:{type:String,default:""},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},field:{type:Object,default:()=>({})}},{show:{default:!1},showModifiers:{}}),emits:["update:show"],setup(i){const a=i,d=u.useModel(i,"show"),p=u.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize",...a.field})),v=u.ref(null),S=u.ref(null),E=u.reactive({image:!1,office:!1,video:!1}),A=L=>{var z,se,oe,Z,X,le,J;try{const me=((z=L==null?void 0:L.response)==null?void 0:z.data)||L,ie=me[p.value.url]||(me==null?void 0:me.id)||me.attachmentId,G=(se=me[p.value.suffix]||me.attachmentSuffix)==null?void 0:se.toLowerCase(),we=me[p.value.name]||(me==null?void 0:me.attachmentName)||(me==null?void 0:me.originName);if(S.value={...L,name:L[p.value.name],url:N3(a.loadUrl,ie)},L&&Ac(L,p.value)==="image"){E.image=!0;return}else if(L&&Ac(L,p.value)==="video"){E.video=!0,console.log("modal.video = true;",E.video);return}else if((((oe=a.onlyOfficeConfig)==null?void 0:oe.accept)||a.onlyOfficeAccept).includes(G)){E.office=!0,v.value={...a.onlyOfficeConfig,editorConfig:{...((Z=a.onlyOfficeConfig)==null?void 0:Z.editorConfig)||{},customization:{...((le=(X=a.onlyOfficeConfig)==null?void 0:X.editorConfig)==null?void 0:le.customization)||{},review:{reviewDisplay:"final"}}},document:{key:Io.buildUUID(),title:we,url:N3(a.loadUrl,ie),fileType:G,...((J=a.onlyOfficeConfig)==null?void 0:J.document)||{}},documentType:cde(G)};return}}catch(me){console.info("预览错误: ",me)}};u.watch([d,a.file],([L,z])=>{L&&u.nextTick(()=>{A(a.file)})});const $=()=>{d.value=!1,E.office=!1,E.image=!1,E.video=!1,S.value=null};return(L,z)=>{var oe,Z;const se=u.resolveComponent("el-image-viewer");return d.value?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[(oe=S.value)!=null&&oe.url&&E.image?(u.openBlock(),u.createBlock(se,{key:0,onClose:z[0]||(z[0]=X=>$()),ref:"previewImgRef","url-list":[(Z=S.value)==null?void 0:Z.url],teleported:""},null,8,["url-list"])):u.createCommentVNode("v-if",!0),u.createCommentVNode(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),u.createCommentVNode(" 文档类 "),u.createVNode(u.unref(UJ),{modelValue:E.office,"onUpdate:modelValue":z[1]||(z[1]=X=>E.office=X),draggable:"","no-footer":"","no-header":"",fullscreen:"","show-close-bg":"","destroy-on-close":"","close-on-click-modal":"","close-on-press-escape":!1,"append-to-body":"",onClose:$,"modal-class":"ik-only-preview-dialog"},{default:u.withCtx(()=>{var X;return[u.createVNode(u.unref(cee),{"config-options":v.value,"document-server-url":((X=i.onlyOfficeConfig)==null?void 0:X.serverUrl)||i.onlyofficeServer},null,8,["config-options","document-server-url"])]}),_:1},8,["modelValue"])],64)):u.createCommentVNode("v-if",!0)}}}),Jbe="",rL=or(Hde),zde="data:image/webp;base64,UklGRnoEAABXRUJQVlA4WAoAAAAwAAAALwAALwAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBImAAAAA2AYm3bsuhFm7u72wZoTrbGIcoKaKyAROJQbQmW2IVb/WkW3ZmPd3ymRMQEwJfV56QRo5pHErkUkFdQWRJpeGW6SoL9EvaWxAdbAeiVd5gyAK5NAdOtv4uNfsT21TUukBVjgFubBOQS+Ip7G/k2LpatkF2hAuBI5siAdsL2j3DHQrJ7NKDbUIyOj3bhqADBsgNPUqUlgncLVlA4IOwBAABwDQCdASowADAAPm0yk0ckIyGhJzgMkIANiWwArDM9tzexcZ3vwYZdKHIB749Ap5gP1E/YD34/QB6AH+A9F//S+w1z2/sz/5DzdDABM7ldHg1iMkeWX8LH9T1VzicAWGJgnNq4e/5P/NObJOBUhFC8dPnhmAD+9wGzP9Zfeg5ENi90xn4awZvrlCLnfwvZX//s4u6n2Pa2TF/r8wh0GtdNNJIBMRbrMaCBwyl6z86DqQgvpixbIdOVbwZFf/7KjC+uzJ5nNRyJ1Rpab8pIf2m1+SBOfX9w7EFXUErK8NSCsePMPazMXKH5y9Wl+nfiSrmsv079Fk6NkDF3Dxr+C+Rp4UdG/f3kP8PZfd/FyRupWURiDOrAjLamuF4OPo2BylwD7ulmdgDn4BEMXuvpYCACy4yCVjgsOzqToG2rSfJOtxy6Hh1/B2gu7X1MdJpHsdHdUrlRzTLKyV3wZG5a64SKKB2/QGk8IRZT0veUdDeo579/WyTU3ujQZeKNBS9ANlv1muyN9Kf5bm1f3UoPm/KnDkqf/1f2jf6aQJ7IYNod25fVfhRX+l1u9qBzs/bVezF7ZgC2LOuuJl1Tvwgeujpg9Uc/m0A9X878DzEkgxP/sPGviOfCElM1J/Kr3TTCwCkfW+K3oZuMB7HAAAA=",Ude=i=>(u.pushScopeId("data-v-cbfa5eb9"),i=i(),u.popScopeId(),i),Wde={class:"ik-flie-list"},jde={class:"name"},Zde={key:1},Gde=["src"],qde={class:"file-icon"},Kde={class:"file-name-loading"},Yde={class:"file-name"},Xde={key:0},Qde={key:0,class:"file-size"},Jde={class:"name"},efe={class:"file-name-loading"},tfe={class:"file-name"},nfe={class:"file-size"},ofe={class:"operate-btn"},sfe={class:"card"},rfe={class:"title"},afe=Ude(()=>u.createElementVNode("img",{src:zde,class:"w-[48px] h-[48px]"},null,-1)),lfe={class:"ik-flie-list"},ife={class:"name"},cfe={key:1},ufe=["src"],dfe={class:"file-icon"},ffe={class:"file-name-loading"},mfe={class:"file-name"},hfe={key:0},pfe={key:0,class:"file-size"},gfe={key:0},bfe=u.defineComponent({__name:"index",props:u.mergeModels({showIcon:{type:Boolean,default:!0},title:{type:String,default:"上传文件"},action:{type:String,default:""},type:{type:String,default:"button"},headers:{type:Object,default:()=>({})},loadUrl:{type:String,default:""},limit:{type:Number,default:1},size:{type:Number,default:50},accept:{type:String,default:"*"},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""},limitText:{type:String,default:""},defaultFileds:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize"})},preview:{type:Boolean,default:!1},customIconData:{type:Object,default:()=>({})},customIconFields:{type:Object,default:()=>({type:"type",icon:"icon"})},disabled:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},imageMode:{type:Boolean,default:!1},isOnlyOfficePreview:{type:Boolean,default:!1},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},jwtToken:{type:String,default:""}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:u.mergeModels(["delete","exceed","success","error","outSize"],["update:modelValue"]),setup(i,{emit:a}){const d=i,p=a,v=u.useModel(i,"modelValue"),E={...{name:"name",url:"url",suffix:"suffix",size:"size"},...d.defaultFileds},{cLoadUrl:A,cUploadUrl:$,cOnlyofficeConfig:L}=l7(d),z=u.computed(()=>d.size),se=u.ref(null),oe=u.ref([]),Z=u.ref({}),X=u.ref(!1),le=he=>{const St=he.size/1024/1024;return St<z.value?!0:(p("outSize"),Zt.ElMessage({message:`上传文件大小(${St.toFixed(4)}MB)超出允许最大值(${d.size}MB),请重新选择`,type:"warning",showClose:!0,duration:5e3}),!1)},J=(he,St)=>{var F;he.size/1024/1024<z.value||u.nextTick(()=>{v.value.pop()}),d.accept!=="*"&&!d.accept.split(",").includes((F=he==null?void 0:he.raw)==null?void 0:F.type)&&!d.accept.split(",").includes(`.${he.name.split(".").pop()}`)&&(Zt.ElMessage({message:`不允许的上传文件格式(${he.name}),请重新选择`,type:"warning",showClose:!0,duration:5e3}),u.nextTick(()=>{v.value.pop()}))},me=()=>!1,ie=(he,St)=>{var Ot,Ze;he.status="ready",St!==void 0&&oe.value.splice(St,1),(Ot=se.value)==null||Ot.handleStart(he.raw),(Ze=se.value)==null||Ze.submit()},G=(he,St)=>{var jn,Tt;const Ot=v.value.length,Ze=d.limit-Ot;let F=0;for(;F<Ze&&F<he.length;)(jn=se.value)==null||jn.handleStart(he[F]),(Tt=se.value)==null||Tt.submit(),F++;Zt.ElMessage({message:(d==null?void 0:d.limitText)||`最大可上传${d.limit}个文件,已忽略超出文件`,type:"warning",showClose:!0,duration:5e3}),p("exceed",he)},we=(he,St,Ot)=>{p("success",he,St,Ot)},wt=(he,St,Ot)=>{oe.value.push(St),p("error",he,St,Ot)},Ve=he=>{var St,Ot;Z.value={...he,name:he[E.name],url:N3(A.value,he[E.url]||((Ot=(St=he==null?void 0:he.response)==null?void 0:St.data)==null?void 0:Ot.id))},X.value=!0},K=he=>{Io.ikFile.downloadByOnlineUrl(he[E.url],he[E.name])},De=(he,St=!1)=>{var Ot;(Ot=se.value)==null||Ot.abort(he)},tt=he=>{var St,Ot;try{he.status!=="success"&&De(he),(St=se.value)==null||St.handleRemove(he),v.value=v.value.filter(Ze=>Ze.uid!==he.uid),p("delete",he)}catch(Ze){(Ot=se.value)==null||Ot.handleRemove(he),v.value=v.value.filter(F=>F.uid!==he.uid),p("delete",he),console.error(Ze)}},lt=(he,St)=>{oe.value.splice(St,1)},Ge=u.computed(()=>v.value.length>=d.limit||d.disabled);return(he,St)=>{var Ot;return u.openBlock(),u.createElementBlock(u.Fragment,null,[i.preview?u.createCommentVNode("v-if",!0):(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[i.type==="button"?(u.openBlock(),u.createBlock(u.unref(Zt.ElUpload),u.mergeProps({key:0,class:"ik-file-upload"},he.$attrs,{accept:i.accept,action:u.unref($),"file-list":v.value,"onUpdate:fileList":St[0]||(St[0]=Ze=>v.value=Ze),ref_key:"refUpload",ref:se,"before-upload":le,"before-remove":me,"on-exceed":G,"on-change":J,multiple:i.multiple,headers:i.headers,limit:i.limit,"on-success":we,"on-error":wt}),{trigger:u.withCtx(()=>[he.$slots.trigger?u.renderSlot(he.$slots,"trigger",{key:0},void 0,!0):(u.openBlock(),u.createBlock(u.unref(Zt.ElButton),{key:1,disabled:Ge.value},u.createSlots({default:u.withCtx(()=>[u.createTextVNode(" "+u.toDisplayString(i.title),1)]),_:2},[i.showIcon?{name:"icon",fn:u.withCtx(()=>[u.createVNode(u.unref(sr),{name:"iksvg_daoru",disabled:Ge.value},null,8,["disabled"])]),key:"0"}:void 0]),1032,["disabled"]))]),file:u.withCtx(({file:Ze})=>[u.createElementVNode("div",Wde,[u.createElementVNode("div",jde,[!he.$slots.fileIcon&&(!i.customIconData[u.unref(Ac)(Ze,E)]||!i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.icon])?(u.openBlock(),u.createBlock(sL,{key:0,type:u.unref(Ac)(Ze,E)},null,8,["type"])):!he.$slots.fileIcon&&i.customIconData[u.unref(Ac)(Ze,E)]&&i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.icon]?(u.openBlock(),u.createElementBlock("div",Zde,[i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.type]==="img"?(u.openBlock(),u.createElementBlock("img",{key:0,src:i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,Gde)):(u.openBlock(),u.createElementBlock("span",{key:1,class:u.normalizeClass([i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.icon],"file-icon-size"])},null,2))])):u.createCommentVNode("v-if",!0),u.createElementVNode("div",qde,[u.renderSlot(he.$slots,"fileIcon",{file:Ze},void 0,!0)]),u.createElementVNode("div",Kde,[u.createElementVNode("p",Yde,[u.createTextVNode(u.toDisplayString(Ze[E.name]||Ze.name)+" ",1),Ze.percentage&&Ze.status==="uploading"?(u.openBlock(),u.createElementBlock("span",Xde,"("+u.toDisplayString(Ze.percentage)+"%)",1)):u.createCommentVNode("v-if",!0)]),Ze.status==="success"?(u.openBlock(),u.createElementBlock("p",Qde,u.toDisplayString(u.unref(jF)(Ze.size/1024/1024))+"MB ",1)):u.createCommentVNode("v-if",!0),Ze.percentage&&Ze.status==="uploading"?(u.openBlock(),u.createBlock(u.unref(Zt.ElProgress),{key:1,"text-inside":"",percentage:Ze.percentage,color:"var(--el-color-primary)","show-text":!1},null,8,["percentage"])):u.createCommentVNode("v-if",!0)])]),u.createElementVNode("div",null,[Ze.status==="success"?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createVNode(u.unref(sr),{onClick:F=>Ve(Ze),name:"iksvg_yulan",title:"预览",bg:"",size:"default"},null,8,["onClick"]),u.createVNode(u.unref(sr),{onClick:F=>tt(Ze),error:"",name:"iksvg_shanchu",title:"删除",bg:"",size:"default"},null,8,["onClick"])],64)):(u.openBlock(),u.createBlock(u.unref(sr),{key:1,onClick:F=>tt(Ze),error:"",name:"iksvg_guanbi",size:"default",bg:"",title:"取消上传"},null,8,["onClick"]))])])]),default:u.withCtx(()=>{var Ze;return[!i.preview&&i.tip?(u.openBlock(),u.createBlock(u.unref(Zt.ElTooltip),{key:0,effect:"dark",content:d.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:u.withCtx(()=>[u.createVNode(u.unref(Zt.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(xY))]),_:1})]),_:1},8,["content"])):u.createCommentVNode("v-if",!0),(Ze=oe.value)!=null&&Ze.length?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:1},u.renderList(oe.value,(F,jn)=>(u.openBlock(),u.createElementBlock("div",{class:"ik-error-flie-list",key:F.uid},[u.createElementVNode("div",Jde,[u.createVNode(u.unref(Zt.ElIcon),{size:32,class:"info",style:{"vertical-align":"middle"}},{default:u.withCtx(()=>[u.createVNode(u.unref(dne))]),_:1}),u.createElementVNode("div",efe,[u.createElementVNode("p",tfe,u.toDisplayString(F[E.name]||F.name),1),u.createElementVNode("p",nfe,u.toDisplayString(u.unref(jF)(F.size/1024/1024))+"MB ",1)])]),u.withDirectives(u.createElementVNode("div",ofe,[u.createVNode(u.unref(Zt.ElIcon),{style:{"vertical-align":"middle"},onClick:Tt=>ie(F,jn),title:"重新上传",class:"primary"},{default:u.withCtx(()=>[u.createVNode(u.unref(WF))]),_:2},1032,["onClick"]),u.createVNode(u.unref(Zt.ElIcon),{class:"error",onClick:Tt=>lt(F,jn),title:"删除"},{default:u.withCtx(()=>[u.createVNode(u.unref(UF))]),_:2},1032,["onClick"])],512),[[u.vShow,(F==null?void 0:F.status)==="fail"]])]))),128)):u.createCommentVNode("v-if",!0)]}),_:3},16,["accept","action","file-list","multiple","headers","limit"])):(u.openBlock(),u.createBlock(u.unref(Zt.ElUpload),u.mergeProps({key:1,"file-list":v.value,"onUpdate:fileList":St[1]||(St[1]=Ze=>v.value=Ze),class:["ik-file-pload-card",{plain:i.plain}]},he.$attrs,{accept:i.accept,action:u.unref($),disabled:Ge.value,ref_key:"refUpload",ref:se,"before-upload":le,"before-remove":me,"on-exceed":G,multiple:i.multiple,headers:i.headers,limit:i.limit,"on-success":we,"on-error":wt,"on-change":J}),{file:u.withCtx(({file:Ze})=>[u.createElementVNode("div",lfe,[u.createElementVNode("div",ife,[!he.$slots.fileIcon&&(!i.customIconData[u.unref(Ac)(Ze,E)]||!i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.icon])?(u.openBlock(),u.createBlock(sL,{key:0,type:u.unref(Ac)(Ze,E)},null,8,["type"])):!he.$slots.fileIcon&&i.customIconData[u.unref(Ac)(Ze,E)]&&i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.icon]?(u.openBlock(),u.createElementBlock("div",cfe,[i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.type]==="img"?(u.openBlock(),u.createElementBlock("img",{key:0,src:i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,ufe)):(u.openBlock(),u.createElementBlock("span",{key:1,class:u.normalizeClass([i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.icon],"file-icon-size"])},null,2))])):u.createCommentVNode("v-if",!0),u.createElementVNode("div",dfe,[u.renderSlot(he.$slots,"fileIcon",{file:Ze},void 0,!0)]),u.createElementVNode("div",ffe,[u.createElementVNode("p",mfe,[u.createTextVNode(u.toDisplayString(Ze[E.name]||Ze.name)+" ",1),Ze.percentage&&Ze.status==="uploading"?(u.openBlock(),u.createElementBlock("span",hfe,"("+u.toDisplayString(Ze.percentage)+"%)",1)):u.createCommentVNode("v-if",!0)]),Ze.status==="success"?(u.openBlock(),u.createElementBlock("p",pfe,u.toDisplayString(u.unref(jF)(Ze.size/1024/1024))+"MB ",1)):u.createCommentVNode("v-if",!0),Ze.percentage&&Ze.status==="uploading"?(u.openBlock(),u.createBlock(u.unref(Zt.ElProgress),{key:1,"text-inside":"",percentage:Ze.percentage,color:"var(--el-color-primary)","show-text":!1},null,8,["percentage"])):u.createCommentVNode("v-if",!0)])]),i.preview?(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[i.preview||Ze.percentage===100?(u.openBlock(),u.createBlock(u.unref(Zt.ElIcon),{key:0,title:"预览",class:"primary"},{default:u.withCtx(()=>[u.createVNode(u.unref(cne),{onClick:F=>Ve(Ze)},null,8,["onClick"])]),_:2},1024)):u.createCommentVNode("v-if",!0),u.createVNode(u.unref(Zt.ElIcon),{title:"下载",class:"primary"},{default:u.withCtx(()=>[u.createVNode(u.unref(_Y),{onClick:F=>K(Ze)},null,8,["onClick"])]),_:2},1024)],64)):(u.openBlock(),u.createElementBlock("div",gfe,[Ze.status==="success"?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createVNode(u.unref(sr),{onClick:F=>Ve(Ze),name:"iksvg_yulan",title:"预览",bg:"",size:"default"},null,8,["onClick"]),u.createVNode(u.unref(sr),{onClick:F=>tt(Ze),error:"",name:"iksvg_shanchu",title:"删除",bg:"",size:"default"},null,8,["onClick"])],64)):(u.openBlock(),u.createBlock(u.unref(sr),{key:1,onClick:F=>tt(Ze),error:"",name:"iksvg_guanbi",size:"default",bg:"",title:"取消上传"},null,8,["onClick"]))]))])]),default:u.withCtx(()=>[u.createElementVNode("div",sfe,[u.createElementVNode("div",rfe,[i.imageMode?u.renderSlot(he.$slots,"image",{key:0},()=>[afe],!0):i.showIcon?(u.openBlock(),u.createBlock(u.unref(sr),{key:1,name:"iksvg_img_shangchuanhetongfujianbeifen",type:"primary",bg:"",size:40})):u.createCommentVNode("v-if",!0),u.createElementVNode("span",null,[u.createTextVNode(u.toDisplayString(i.title)+" ",1),!i.preview&&i.tip?(u.openBlock(),u.createBlock(u.unref(Zt.ElTooltip),{key:0,effect:"dark",content:d.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:u.withCtx(()=>[u.createVNode(u.unref(Zt.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(xY))]),_:1})]),_:1},8,["content"])):u.createCommentVNode("v-if",!0)])]),u.createVNode(u.unref(sr),{name:"iksvg_daoru",bg:"",size:24,width:40,padding:"0"})])]),_:3},16,["file-list","class","accept","action","disabled","multiple","headers","limit"]))],64)),u.createVNode(u.unref(rL),{show:X.value,"onUpdate:show":St[2]||(St[2]=Ze=>X.value=Ze),loadUrl:u.unref(A),file:Z.value,onlyofficeServer:((Ot=u.unref(L))==null?void 0:Ot.serverUrl)||i.onlyofficeServer,onlyOfficeConfig:u.unref(L)},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig"])],64)}}}),eye="",tye="",yfe=or(Ls(bfe,[["__scopeId","data-v-cbfa5eb9"]])),vfe={},Cfe={t:"1686214149488",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8490",width:"200",height:"200"},wfe=[u.createElementVNode("path",{d:"M369.569592 512.011256c0-14.328333-11.010775-25.945929-24.591071-25.945929L86.980515 486.065328c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.998005 0C358.55984 537.959232 369.569592 526.341636 369.569592 512.011256z","p-id":"8491"},null,-1),u.createElementVNode("path",{d:"M937.019485 486.064304 679.020456 486.064304c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.999029 0c13.580297 0 24.590048-11.618619 24.590048-25.947975C961.609533 497.682923 950.598758 486.064304 937.019485 486.064304z","p-id":"8492"},null,-1),u.createElementVNode("path",{d:"M512.011768 62.389956c-13.580297 0-24.590048 11.618619-24.590048 25.945929l0 257.170151c0 14.329357 11.010775 25.946952 24.590048 25.946952s24.591071-11.618619 24.591071-25.946952L536.602839 88.335884C536.602839 74.008574 525.591041 62.389956 512.011768 62.389956z","p-id":"8493"},null,-1),u.createElementVNode("path",{d:"M512.011768 652.544967c-13.580297 0-24.590048 11.618619-24.590048 25.946952l0 257.169127c0 14.33038 11.010775 25.947975 24.590048 25.947975s24.591071-11.618619 24.591071-25.947975L536.602839 678.491918C536.602839 664.162562 525.591041 652.544967 512.011768 652.544967z","p-id":"8494"},null,-1),u.createElementVNode("path",{d:"M377.001865 413.125085c4.744048 4.737908 10.818393 7.082302 16.882506 7.082302 6.519484 0 13.039991-2.724041 17.879206-8.134261 9.317203-10.414187 8.885368-26.834158-0.9967-36.678364L228.341057 193.559391c-9.832949-9.830903-25.406646-9.388834-34.760688 1.050935-9.317203 10.414187-8.885368 26.834158 0.9967 36.678364L377.001865 413.125085z","p-id":"8495"},null,-1),u.createElementVNode("path",{d:"M646.997112 610.873892c-9.846252-9.831926-25.419949-9.388834-34.761712 1.051959-9.317203 10.414187-8.885368 26.834158 0.997724 36.678364l182.41354 181.834348c4.743024 4.738931 10.818393 7.083326 16.881482 7.083326 6.520507 0 13.039991-2.723018 17.879206-8.134261 9.317203-10.41521 8.886391-26.834158-0.9967-36.678364L646.997112 610.873892z","p-id":"8496"},null,-1),u.createElementVNode("path",{d:"M630.114606 420.207387c6.064113 0 12.139481-2.344395 16.882506-7.082302l182.425819-181.836395c9.882068-9.844206 10.313903-26.264177 0.9967-36.678364-9.341762-10.43977-24.915459-10.882861-34.760688-1.050935L613.233124 375.394762c-9.882068 9.844206-10.314926 26.264177-0.997724 36.678364C617.074615 417.483346 623.595123 420.207387 630.114606 420.207387z","p-id":"8497"},null,-1),u.createElementVNode("path",{d:"M377.025401 610.873892 194.600605 792.710286c-9.881045 9.844206-10.313903 26.263154-0.9967 36.678364 4.839215 5.411243 11.358699 8.134261 17.879206 8.134261 6.064113 0 12.138458-2.344395 16.881482-7.083326l182.425819-181.834348c9.881045-9.844206 10.313903-26.264177 0.9967-36.678364C402.469909 601.485057 386.872676 601.041966 377.025401 610.873892z","p-id":"8498"},null,-1)];function _fe(i,a){return u.openBlock(),u.createElementBlock("svg",Cfe,wfe)}const Sfe=Ls(vfe,[["render",_fe]]),MJ=i=>(u.pushScopeId("data-v-127175a6"),i=i(),u.popScopeId(),i),xfe={key:1,class:"upload-btn"},Efe={class:"tip"},kfe={class:"loading-statu"},Afe={class:"operate-btn"},Tfe={key:0},Dfe={class:"el-upload-list el-upload-list--picture-card",style:{float:"left"}},Nfe=["onClick"],Rfe=MJ(()=>u.createElementVNode("span",{class:"error"},"上传错误",-1)),Ofe=MJ(()=>u.createElementVNode("p",null,"点击重新上传",-1)),Bfe=["src"],Mfe={class:"demo-image__preview"},Ife=u.defineComponent({__name:"index",props:u.mergeModels({title:{type:String,default:"上传图片"},loadUrl:{type:String,default:""},action:{type:String,default:""},headers:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},limit:{type:Number,default:50},size:{type:Number,default:50},accept:{type:String,default:"image/*"},fit:{type:String,default:"contain"},preview:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""},disabled:{type:Boolean,default:!1}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:u.mergeModels(["delete","success"],["update:modelValue"]),setup(i,{emit:a}){const d=i,p=u.useModel(i,"modelValue"),v=St=>Array.isArray(St)?St.map(Ot=>{var jn,Tt;const Ze=((jn=Ot.url)==null?void 0:jn.startsWith("http"))||((Tt=Ot.url)==null?void 0:Tt.startsWith("blob")),F=(Ot==null?void 0:Ot.url)||Ot;return{...Ot.url?Ot:{url:F},__url:Ze?F:`${E.value}${F}`}}):St?[{url:St,__url:St!=null&&St.startsWith("http")||St!=null&&St.startsWith("blob")?St:`${E.value}${St}`}]:[];u.watch(()=>p.value,St=>{!St||!St.length?z.value=[]:z.value=Io._.cloneDeep(v(St))},{deep:!0});const S=a,{cLoadUrl:E,cUploadUrl:A}=l7(d),$=u.computed(()=>d.size),L=u.ref(null),z=u.ref(v(p.value)),se=u.ref([]),oe=u.ref(!1),Z=u.ref(0),X=u.computed(()=>d.tipText||`最多可上传${d.limit}张图片, 每张图片不能超过${d.size}MB`),le=(St,Ot)=>{},J=St=>{if(!St.type.includes("image")){Zt.ElMessage.warning("只允许上传图片!");try{z.value.pop()}catch{}return!1}if(!(St.size/1024/1024<$.value)){Zt.ElMessage.warning("图片大小超出限制!");try{z.value.pop()}catch{}return!1}return!0},me=()=>!1,ie=(St,Ot)=>{var Ze,F;St.status="ready",Ot!==void 0&&se.value.splice(Ot,1),(Ze=L.value)==null||Ze.handleStart(St.raw),(F=L.value)==null||F.submit()},G=(St,Ot)=>{var Tt,Oo;const Ze=p.value.length,F=d.limit-Ze;let jn=0;for(;jn<F&&jn<(St==null?void 0:St.length);)(Tt=L.value)==null||Tt.handleStart(St==null?void 0:St[jn]),(Oo=L.value)==null||Oo.submit(),jn++},we=(St,Ot,Ze)=>{S("success",St,Ot,Ze),p.value=z.value},wt=(St,Ot,Ze)=>{se.value.push({...Ot,__url:Ot.url})},Ve=St=>{var Ot;oe.value=!0,Z.value=(Ot=p.value)==null?void 0:Ot.findIndex(Ze=>Ze.url===St.url)},K=St=>{Io.ikFile.downloadByOnlineUrl(St.__url||St.url,St.name)},De=St=>{var Ot;(Ot=L.value)==null||Ot.abort(St)},tt=St=>{var Ot;St.status!=="success"&&De(St),p.value=(Ot=z.value)==null?void 0:Ot.filter(Ze=>Ze.uid!==St.uid),S("delete",St)},lt=(St,Ot)=>{se.value.splice(Ot,1)},Ge=u.computed(()=>z.value.length+se.value.length<d.limit),he=u.computed(()=>p.value.length>=d.limit||d.disabled);return(St,Ot)=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createVNode(u.unref(Zt.ElUpload),u.mergeProps({class:["ik-image-upload",{preview:i.preview,"hide-upload":!Ge.value,disabled:he.value}],ref_key:"refUpload",ref:L,"list-type":"picture-card",accept:i.accept,action:u.unref(A),headers:i.headers,data:i.data,"file-list":z.value,"onUpdate:fileList":Ot[0]||(Ot[0]=Ze=>z.value=Ze),multiple:i.multiple,limit:i.limit,"on-change":le,"before-upload":J,"before-remove":me,"on-exceed":G,"on-success":we,"on-error":wt,drag:""},St.$attrs,{disabled:he.value}),u.createSlots({trigger:u.withCtx(()=>[St.$slots.trigger?u.renderSlot(St.$slots,"trigger",{key:0},void 0,!0):(u.openBlock(),u.createElementBlock("div",xfe,[u.createVNode(u.unref(Zt.ElIcon),{size:20},{default:u.withCtx(()=>[u.createVNode(u.unref(sr),{name:"iksvg_guanbibeifen",disabled:he.value},null,8,["disabled"])]),_:1}),u.createElementVNode("span",null,u.toDisplayString(i.title),1)]))]),file:u.withCtx(({file:Ze})=>[u.createElementVNode("div",{class:u.normalizeClass(["load-list",{loading:Ze.status==="uploading"}]),"element-loading-background":"var(--ik-upload-bg)"},[u.withDirectives(u.createElementVNode("div",kfe,[u.createVNode(Sfe),u.createTextVNode(" 上传"+u.toDisplayString(Ze.percentage)+"% ",1)],512),[[u.vShow,Ze.status==="uploading"]]),u.createCommentVNode(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),u.createVNode(u.unref(Zt.ElImage),{style:{width:"100%",height:"100%"},src:Ze.__url||Ze.url,"zoom-rate":1.2,"initial-index":0,fit:"contain"},null,8,["src"]),u.createElementVNode("span",Afe,[u.createElementVNode("span",null,[u.createVNode(u.unref(Zt.ElIcon),{onClick:F=>Ve(Ze)},{default:u.withCtx(()=>[u.createVNode(u.unref(mne))]),_:2},1032,["onClick"])]),u.createElementVNode("span",null,[u.createVNode(u.unref(Zt.ElIcon),{onClick:F=>K(Ze)},{default:u.withCtx(()=>[u.createVNode(u.unref(_Y))]),_:2},1032,["onClick"])]),i.preview?u.createCommentVNode("v-if",!0):(u.openBlock(),u.createElementBlock("span",Tfe,[u.createVNode(u.unref(Zt.ElIcon),{type:"warning",onClick:F=>tt(Ze)},{default:u.withCtx(()=>[u.createVNode(u.unref(UF))]),_:2},1032,["onClick"])]))])],2)]),default:u.withCtx(()=>[u.createElementVNode("ul",Dfe,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(se.value,(Ze,F)=>(u.openBlock(),u.createElementBlock("li",{class:"el-upload-list__item",key:Ze.uid},[u.createElementVNode("span",null,[u.createVNode(u.unref(Zt.ElIcon),{onClick:jn=>lt(Ze,F)},{default:u.withCtx(()=>[u.createVNode(u.unref(CY))]),_:2},1032,["onClick"])]),u.createElementVNode("div",{class:u.normalizeClass(["load-list",{loading:Ze.status==="uploading",fail:Ze.status==="fail"}]),"element-loading-background":"var(--ik-upload-bg)"},[u.withDirectives(u.createElementVNode("div",{class:"loading-statu",onClick:jn=>ie(Ze,F)},[u.createVNode(u.unref(Zt.ElIcon),{size:24},{default:u.withCtx(()=>[u.createVNode(u.unref(WF))]),_:1}),Rfe,Ofe],8,Nfe),[[u.vShow,Ze.status==="fail"]]),u.createElementVNode("img",{src:Ze.__url,alt:"",style:u.normalizeStyle({"object-fit":i.fit})},null,12,Bfe)],2)]))),128))])]),_:2},[i.tip?{name:"tip",fn:u.withCtx(()=>[u.createElementVNode("span",Efe,u.toDisplayString(X.value),1)]),key:"0"}:void 0]),1040,["class","accept","action","headers","data","file-list","multiple","limit","disabled"]),u.createCommentVNode(" 文件预览 "),u.createElementVNode("div",Mfe,[oe.value?(u.openBlock(),u.createBlock(u.unref(Zt.ElImageViewer),{key:0,"lock-scroll":"","hide-on-click-modal":"",onClose:Ot[1]||(Ot[1]=()=>{oe.value=!1}),"url-list":v(z.value).map(Ze=>Ze.__url),"initial-index":Z.value},null,8,["url-list","initial-index"])):u.createCommentVNode("v-if",!0)])],64))}}),dye="",Pfe=or(Ls(Ife,[["__scopeId","data-v-127175a6"]])),Ffe=["src"],$fe={name:"IkPrintConfig"},Lfe=u.defineComponent({...$fe,props:{id:{},srcPrefix:{default:""},token:{}},emits:["created"],setup(i,{emit:a}){const d=i,p=a,v=u.computed(()=>!!d.id),S=u.reactive({currentId:d.id,loading:!0,src:""}),E=async()=>{fetch(`${d.srcPrefix??""}/jmreport/save`,{method:"POST",body:JSON.stringify({}),headers:{"Content-Type":"application/json",Authorization:d.token??""}}).then($=>$.json()).then(({code:$,result:L})=>{if($===200){const z=L.id;S.currentId=z,S.src=`${d.srcPrefix??""}/jmreport/index/${S.currentId}?token=${d.token}&menuType=printinfo`,p("created",S.currentId)}}).catch($=>{console.error($)})},A=()=>{if(!v.value){E();return}S.src=`${d.srcPrefix??""}/jmreport/index/${S.currentId}?token=${d.token}`};return u.onMounted(()=>{A()}),($,L)=>S.src?(u.openBlock(),u.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:S.src,frameborder:"0"},null,8,Ffe)):u.createCommentVNode("v-if",!0)}}),Vfe=or(Lfe),Hfe=["src"],zfe={name:"IkPrintView"},Ufe=u.defineComponent({...zfe,props:{modelValue:{type:Boolean,default:!1},templateId:{},dataId:{},srcPrefix:{default:""},token:{},idKey:{default:"id"},width:{default:"100%"},height:{default:"calc(100vh - 186px)"}},emits:["update:modelValue"],setup(i,{emit:a}){const d=i,p=a,v=u.computed({get:()=>d.modelValue,set:A=>{p("update:modelValue",A)}}),S=u.reactive({src:"",showIframe:!1}),E=()=>{S.showIframe=!1,S.src=`${d.srcPrefix}/jmreport/view/${d.templateId}?token=${d.token??""}&${d.idKey}=${d.dataId}`,setTimeout(()=>{S.showIframe=!0},300)};return u.watch(()=>v.value,A=>{A&&E()}),u.onMounted(()=>{v.value&&E()}),(A,$)=>{const L=u.resolveComponent("el-dialog");return u.openBlock(),u.createBlock(L,{modelValue:v.value,"onUpdate:modelValue":$[0]||($[0]=z=>v.value=z),fullscreen:"",title:"预览"},{default:u.withCtx(()=>[u.createElementVNode("div",{style:u.normalizeStyle({width:d.width,height:d.height})},[S.showIframe?(u.openBlock(),u.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:S.src,frameborder:"0"},null,8,Hfe)):u.createCommentVNode("v-if",!0)],4)]),_:1},8,["modelValue"])}}}),Wfe=or(Ufe),jfe={class:"ik-full-calendar"},Zfe=["onClick"],Gfe={key:0,class:"event-title allday"},qfe={key:0,class:"event-title-time"},Kfe={key:1,class:"event-title no-allday"},Yfe={class:"event-title-time"},Xfe={class:"event-title-text"},Qfe={name:"IkFullCalendar"},Jfe=u.defineComponent({...Qfe,props:{options:{default:{}},removable:{type:Boolean,default:!0},modelValue:{default:[]},tooltipFieldName:{default:"remark"}},emits:["added","deleted","update:modelValue","eventClick","deleteClick","dateSelect"],setup(i,{expose:a,emit:d}){const p=i,v=u.computed({get:()=>p.modelValue,set:ie=>S("update:modelValue",ie)}),S=d,E=u.ref(null),A=ie=>{},$=u.ref("dayGridMonth"),L=ie=>{S("dateSelect",ie)},z=ie=>{S("eventClick",ie)},se=ie=>{S("deleteClick",ie)},oe=()=>({locale:RY,plugins:[bJ,OJ,EJ],headerToolbar:{left:"dayGridMonth,timeGridWeek,timeGridDay prev,today,next",center:"title",right:""},firstDay:1,initialView:"dayGridMonth",weekends:!0,editable:!0,selectable:!0,selectMirror:!0,dateClick:A,select:L,...p.options,events:v.value}),Z=u.reactive({timeType:"month",options:oe()}),X=u.ref(null),le=()=>{var ie;Z.options=oe(),(ie=E.value)==null||ie.buildOptions(Z.options)};a({...{prev:()=>{var ie;(ie=X.value)==null||ie.prev()},next:()=>{var ie;(ie=X.value)==null||ie.next()},today:()=>{var ie;(ie=X.value)==null||ie.today()},changeView:ie=>{var G;(G=X.value)==null||G.changeView(ie),$.value=ie},getDate:()=>{var ie;return(ie=X.value)==null?void 0:ie.getDate()},getView:()=>{var ie;return(ie=X.value)==null?void 0:ie.view},unselect:()=>{var ie;return(ie=X.value)==null?void 0:ie.unselect()}}}),u.watch(()=>v.value,()=>{le()});const me=()=>{var ie;X.value=(ie=E.value)==null?void 0:ie.getApi()};return u.onMounted(()=>{me()}),(ie,G)=>{const we=u.resolveComponent("el-tooltip"),wt=u.resolveComponent("el-icon");return u.openBlock(),u.createElementBlock("div",jfe,[u.createVNode(u.unref(lJ),{ref_key:"_ref",ref:E,options:Z.options,style:{height:"100%"}},{eventContent:u.withCtx(Ve=>[u.createElementVNode("div",{class:"title-line",onClick:K=>z(Ve)},[u.createVNode(we,null,{content:u.withCtx(()=>{var K,De;return[u.createCommentVNode(" {{arg}} "),u.createTextVNode(" "+u.toDisplayString((De=(K=Ve.event)==null?void 0:K.extendedProps)==null?void 0:De[p.tooltipFieldName]),1)]}),default:u.withCtx(()=>[Ve.event.allDay?(u.openBlock(),u.createElementBlock("span",Gfe,[$.value==="dayGridMonth"?(u.openBlock(),u.createElementBlock("span",qfe,u.toDisplayString("(全天)"))):u.createCommentVNode("v-if",!0),u.createElementVNode("span",null,u.toDisplayString(Ve.event.title),1)])):(u.openBlock(),u.createElementBlock("span",Kfe,[u.createElementVNode("span",Yfe,u.toDisplayString(u.unref(Io.ikDate).toDateTime(Ve.event.startStr,"HH:mm")),1),u.createElementVNode("span",Xfe,u.toDisplayString(Ve.event.title),1)]))]),_:2},1024),p.removable?(u.openBlock(),u.createBlock(wt,{key:0,size:16,onClick:u.withModifiers(K=>se(Ve),["stop"])},{default:u.withCtx(()=>[u.createVNode(u.unref(wY))]),_:2},1032,["onClick"])):u.createCommentVNode("v-if",!0)],8,Zfe)]),_:1},8,["options"])])}}}),mye="",eme=Ls(Jfe,[["__scopeId","data-v-f0925ff8"]]);let tme=class{constructor(){D3(this,"id",new Date().getTime());D3(this,"title","");D3(this,"start","");D3(this,"end","");D3(this,"allDay",!1);D3(this,"extendedProps",{})}};const IJ=or(eme),nme={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},ome={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},sme=["xlink:href"],rme=["src"],ame={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},lme=["xlink:href"],ime=["src"],cme=u.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{}},setup(i){const a=i,d=u.inject("iconConfig"),p=u.computed(()=>({...(d==null?void 0:d.value)||{},...a})),v=u.computed(()=>{const{name:E}=p.value;return/^http?:\/\//.test(E)?"img":/i-[^:]+:[^:]+/.test(E)?"unocss":E!=null&&E.startsWith("iksig")?"iksig":E!=null&&E.includes(":")?"iconify":E!=null&&E.startsWith("iksvg")?"svg":"i"}),S=u.computed(()=>{const E=[];if(p.value.flip)switch(p.value.flip){case"horizontal":E.push("rotateY(180deg)");break;case"vertical":E.push("rotateX(180deg)");break;case"both":E.push("rotateX(180deg)"),E.push("rotateY(180deg)");break}p.value.rotate&&E.push(`rotate(${p.value.rotate%360}deg)`);const A={...p.value.color&&{color:p.value.color},...p.value.size&&{fontSize:typeof p.value.size=="number"?`${p.value.size}px`:p.value.size},...E.length&&{transform:E.join(" ")},padding:p.value.showBg||p.value.bg?p.value.padding:0,...p.value.color&&v.value!=="iksig"?{"--ik-color-icon-dark":p.value.color,"--ik-color-icon-light":p.value.colorLight||Io.ikColor.setOpacity(p.value.color,p.value.opacity)}:{}};return p.value.width&&(A.width=A.height=typeof p.value.width=="number"?`${p.value.width}px`:p.value.width),A});return(E,A)=>{const $=u.resolveComponent("el-tooltip"),L=u.resolveComponent("el-button");return p.value.tableIconType==="icon"||!p.value.tableIconType?(u.openBlock(),u.createElementBlock("span",nme,[p.value.notip||!p.value.title?(u.openBlock(),u.createElementBlock("i",{key:0,class:u.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[E.name]:v.value==="unocss","show-bg":p.value.showBg||p.value.bg,default:p.value.size==="default",small:p.value.size==="small",big:p.value.size==="big",warning:p.value.warning||p.value.type==="warning",primary:p.value.primary||p.value.type==="primary",success:E.success||p.value.type==="success",error:p.value.error||p.value.type==="error",active:p.value.active,disabled:p.value.disabled}]),style:u.normalizeStyle(S.value)},[u.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),v.value==="iksig"?(u.openBlock(),u.createElementBlock("i",{key:0,class:u.normalizeClass(`iksig ${p.value.name}`),style:u.normalizeStyle(S.value)},null,6)):v.value==="svg"?(u.openBlock(),u.createElementBlock("svg",ome,[u.createElementVNode("use",{"xlink:href":`#${p.value.name}`},null,8,sme)])):v.value==="img"?(u.openBlock(),u.createElementBlock("img",{key:2,src:p.value.name,class:"h-[1em] w-[1em]"},null,8,rme)):(u.openBlock(),u.createElementBlock("i",{key:3,class:u.normalizeClass(p.value.name),style:u.normalizeStyle(S.value)},null,6))],6)):(u.openBlock(),u.createBlock($,{key:1,content:p.value.title,placement:"top"},{default:u.withCtx(()=>[u.createElementVNode("i",{class:u.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[E.name]:v.value==="unocss","show-bg":p.value.showBg||p.value.bg,default:p.value.size==="default",small:p.value.size==="small",big:p.value.size==="big",warning:p.value.warning||p.value.type==="warning",primary:E.primary||p.value.type==="primary",success:E.success||p.value.type==="success",error:p.value.error||p.value.type==="error",active:p.value.active}]),style:u.normalizeStyle(S.value)},[v.value==="iksig"?(u.openBlock(),u.createElementBlock("i",{key:0,class:u.normalizeClass(`iksig ${p.value.name}`),style:u.normalizeStyle(S.value)},null,6)):v.value==="svg"?(u.openBlock(),u.createElementBlock("svg",ame,[u.createElementVNode("use",{"xlink:href":`#${p.value.name}`},null,8,lme)])):v.value==="img"?(u.openBlock(),u.createElementBlock("img",{key:2,src:p.value.name,class:"h-[1em] w-[1em]"},null,8,ime)):(u.openBlock(),u.createElementBlock("i",{key:3,class:u.normalizeClass(p.value.name),style:u.normalizeStyle(S.value)},null,6))],6)]),_:1},8,["content"]))])):(u.openBlock(),u.createBlock(L,{key:1,type:["warning","error"].includes(p.value.type)?"danger":""},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(p.value.title),1)]),_:1},8,["type"]))}}}),hye="",sr=or(Ls(cme,[["__scopeId","data-v-76d7e119"]])),aL=i=>(u.pushScopeId("data-v-e308f501"),i=i(),u.popScopeId(),i),ume={class:"ik-schedule"},dme={class:"ik-schedule__left"},fme={class:"ik-schedule__header"},mme={class:"ik-schedule__title"},hme=aL(()=>u.createElementVNode("div",{class:"ik-schedule__header-right"},null,-1)),pme={class:"ik-schedule__body"},gme={style:{"font-size":"18px"}},bme={key:0},yme={style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},vme={key:0,style:{"margin-left":"2%"}},Cme=aL(()=>u.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),wme={key:1},_me=aL(()=>u.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),Sme={class:"dialog-footer"},xme={name:"IkSchedule"},Eme=u.defineComponent({...xme,props:{modelValue:{default:[]},options:{default:{initialView:"dayGridMonth"}},editVisible:{type:Boolean},removable:{type:Boolean,default:!0}},emits:["update:modelValue","added","updated","deleted","editOpen","submit","update:editVisible","submitAdd","submitUpdate","submitDelete"],setup(i,{expose:a,emit:d}){var K;const p=i,v=d,S=!!u.useSlots().form,E=u.computed({get:()=>p.modelValue,set:De=>{v("update:modelValue",De)}}),A=u.computed(()=>({...p.options,headerToolbar:!1})),$=u.reactive({currentView:(K=p.options)==null?void 0:K.initialView,viewTitle:"",rightLabel:"今日",timeType:"month",currentDate:null}),L=u.ref(null),z=De=>{var tt;(tt=L.value)==null||tt.changeView(De),$.currentView=De,se()},se=()=>{var tt;const De=(tt=L.value)==null?void 0:tt.getView();$.viewTitle=De==null?void 0:De.title},oe=()=>{var De;(De=L.value)==null||De.prev(),se()},Z=()=>{var De;(De=L.value)==null||De.next(),se()},X=()=>{var De;(De=L.value)==null||De.today(),se()},le=De=>$.currentView===De,J=u.ref(null),me={createDefaultForm:()=>({title:"",allDay:!1,type:1,startDate:"",endDate:"",startTime:"",endTime:"",location:"",remark:""}),close:()=>{G.value=!1},customSubmit:De=>{var lt,Ge;let tt={...De,id:void 0,allDay:ie.form.allDay,start:(lt=ie.selectInfo)==null?void 0:lt.startStr,end:(Ge=ie.selectInfo)==null?void 0:Ge.endStr};me.operation(tt),me.close()},operation:De=>{var tt;ie.operation==="add"?v("submitAdd",De):(De.id=(tt=ie.editEvent)==null?void 0:tt.id,v("submitUpdate",De))},submit:async()=>{var tt,lt;if(S){v("submit");return}if(!ie.form.title){Zt.ElMessage.info("标题不能为空");return}if(!ie.form.allDay&&(!ie.form.startTime||!ie.form.endTime)){Zt.ElMessage.info("时间不能为空");return}let De={id:void 0,title:ie.form.title,allDay:ie.form.allDay,start:(tt=ie.selectInfo)==null?void 0:tt.startStr,end:(lt=ie.selectInfo)==null?void 0:lt.endStr,extendedProps:{...ie.form}};if(De.allDay)De.start=Io.ikDate.toDate(ie.form.startDate),De.end=Io.ikDate.toDate(ie.form.endDate);else{const Ge=Io.ikDate.toDate(ie.form.startDate),he=Io.ikDate.toDateTime(ie.form.startTime).substring(10),St=Io.ikDate.toDateTime(ie.form.endTime).substring(10);De.start=`${Ge}${he}`,De.end=`${Ge}${St}`,De.extendedProps.startTime=De.start,De.extendedProps.endTime=De.end}me.operation(De),me.close()},reset:()=>{var De;ie.form=me.createDefaultForm(),(De=J.value)==null||De.clearValidate()},edit:()=>{ie.editable=!0,ie.title="编辑日程"},cancelEdit:()=>{ie.editable=!1,ie.title="日程信息"},del:()=>{Ve(ie.clickInfo)}},ie=u.reactive({operation:"update",selectInfo:{},editEvent:void 0,title:"",visible:!1,allDay:!1,form:me.createDefaultForm(),editable:!1,clickInfo:null}),G=u.computed({get:()=>ie.visible,set:De=>{ie.visible=De}}),we=De=>{var tt;if(ie.form.allDay=De.allDay,ie.selectInfo=De,me.reset(),De.view.type=="dayGridMonth"){let lt=De.end.getTime()-864e5;$.timeType="month",ie.form.startDate=Io.ikDate.toYMD(De.start),ie.form.endDate=Io.ikDate.toYMD(new Date(lt)),ie.form.allDay=!0}else De.view.type=="timeGridWeek"?$.timeType="week":De.view.type=="timeGridDay"&&($.timeType="day"),ie.form.startDate=Io.ikDate.toYMD(De.start),ie.form.endDate=Io.ikDate.toYMD(De.start),ie.form.startTime=Io.ikDate.toDateTime(De.start),ie.form.endTime=Io.ikDate.toDateTime(De.end);(tt=L.value)==null||tt.unselect(),u.nextTick(()=>{ie.title="新建日程",ie.operation="add",ie.editable=!0,G.value=!0,v("editOpen",JSON.parse(JSON.stringify(ie)))})},wt=De=>{ie.title="日程信息",ie.operation="update",ie.clickInfo=De,ie.editEvent=De.event;debugger;ie.editEvent.allDay?(ie.form.startDate=ie.editEvent.startStr,ie.form.endDate=ie.editEvent.startStr):(ie.form.startDate=ie.editEvent.startStr,ie.form.startTime=ie.editEvent.start,ie.form.endTime=ie.editEvent.end),ie.form.title=ie.editEvent.title,ie.form.allDay=ie.editEvent.allDay,Ite.copyValue(ie.form,ie.editEvent.extendedProps),me.cancelEdit(),G.value=!0,v("editOpen",JSON.parse(JSON.stringify(ie)))},Ve=De=>{Zt.ElMessageBox.confirm(`你确定删除事件 ${De.event.title} ?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{me.close(),v("submitDelete",De.event.id)})};return a({customSubmit:De=>me.customSubmit(De)}),u.onMounted(()=>{se()}),(De,tt)=>{const lt=u.resolveComponent("el-button"),Ge=u.resolveComponent("el-button-group"),he=u.resolveComponent("el-icon"),St=u.resolveComponent("el-space"),Ot=u.resolveComponent("el-input"),Ze=u.resolveComponent("el-form-item"),F=u.resolveComponent("el-date-picker"),jn=u.resolveComponent("el-time-picker"),Tt=u.resolveComponent("el-checkbox"),Oo=u.resolveComponent("el-form"),Cn=u.resolveComponent("el-dialog");return u.openBlock(),u.createElementBlock("div",ume,[u.createElementVNode("div",dme,[u.createElementVNode("div",fme,[u.createVNode(St,{style:{"flex-shrink":"0"},size:24},{default:u.withCtx(()=>[u.createVNode(Ge,null,{default:u.withCtx(()=>[u.createVNode(lt,{onClick:tt[0]||(tt[0]=at=>z("dayGridMonth")),type:le("dayGridMonth")?"primary":""},{default:u.withCtx(()=>[u.createTextVNode("月")]),_:1},8,["type"]),u.createVNode(lt,{onClick:tt[1]||(tt[1]=at=>z("timeGridWeek")),type:le("timeGridWeek")?"primary":""},{default:u.withCtx(()=>[u.createTextVNode("周")]),_:1},8,["type"]),u.createVNode(lt,{onClick:tt[2]||(tt[2]=at=>z("timeGridDay")),type:le("timeGridDay")?"primary":""},{default:u.withCtx(()=>[u.createTextVNode("日")]),_:1},8,["type"])]),_:1}),u.createElementVNode("span",mme,u.toDisplayString($.viewTitle),1),u.createVNode(Ge,{style:{"flex-shrink":"0"}},{default:u.withCtx(()=>[u.createVNode(lt,{onClick:oe},{default:u.withCtx(()=>[u.createVNode(he,null,{default:u.withCtx(()=>[u.createVNode(u.unref(gY))]),_:1})]),_:1}),u.createVNode(lt,{onClick:X},{default:u.withCtx(()=>[u.createTextVNode("今天")]),_:1}),u.createVNode(lt,{onClick:Z},{default:u.withCtx(()=>[u.createVNode(he,null,{default:u.withCtx(()=>[u.createVNode(u.unref(bY))]),_:1})]),_:1})]),_:1})]),_:1}),hme]),u.createElementVNode("div",pme,[u.createVNode(u.unref(IJ),{removable:De.removable,onDateSelect:we,onDeleteClick:Ve,onEventClick:wt,ref_key:"_refCalendar",ref:L,options:A.value,modelValue:E.value,"onUpdate:modelValue":tt[3]||(tt[3]=at=>E.value=at)},null,8,["removable","options","modelValue"])])]),u.createCommentVNode(" 新建/修改对话框 "),u.createVNode(Cn,{width:"700px",modelValue:G.value,"onUpdate:modelValue":tt[11]||(tt[11]=at=>G.value=at)},{header:u.withCtx(()=>[u.createElementVNode("div",null,[u.createElementVNode("span",gme,u.toDisplayString(ie.title),1),ie.operation==="update"?(u.openBlock(),u.createElementBlock("span",bme,[ie.editable?(u.openBlock(),u.createBlock(u.unref(sr),{key:1,style:{"margin-left":"4px"},name:"iksvg_qiehuan-daohang",onClick:me.cancelEdit},null,8,["onClick"])):(u.openBlock(),u.createBlock(u.unref(sr),{key:0,style:{"margin-left":"4px"},name:"iksvg_xiugai",onClick:me.edit},null,8,["onClick"]))])):u.createCommentVNode("v-if",!0)])]),footer:u.withCtx(()=>[u.createElementVNode("span",Sme,[u.renderSlot(De.$slots,"form-footer",{},()=>[u.createElementVNode("span",null,[u.createVNode(lt,{onClick:me.close},{default:u.withCtx(()=>[u.createTextVNode("取消")]),_:1},8,["onClick"]),u.createVNode(lt,{onClick:me.del},{default:u.withCtx(()=>[u.createTextVNode("删除")]),_:1},8,["onClick"]),u.createVNode(lt,{type:"primary",onClick:me.submit},{default:u.withCtx(()=>[u.createTextVNode("确定")]),_:1},8,["onClick"])])],!0)])]),default:u.withCtx(()=>[u.renderSlot(De.$slots,"form",{},()=>[u.createVNode(Oo,{ref_key:"_editFormRef",ref:J,model:ie.form,disabled:!ie.editable},{default:u.withCtx(()=>[u.createVNode(Ze,null,{default:u.withCtx(()=>[u.createVNode(he,{class:"icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(yY))]),_:1}),u.createVNode(Ot,{modelValue:ie.form.title,"onUpdate:modelValue":tt[4]||(tt[4]=at=>ie.form.title=at),placeholder:"请输入标题",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1}),u.createVNode(Ze,null,{default:u.withCtx(()=>[u.createVNode(he,{class:"icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(vY))]),_:1}),u.createElementVNode("div",yme,[u.createVNode(F,{disabled:"",modelValue:ie.form.startDate,"onUpdate:modelValue":tt[5]||(tt[5]=at=>ie.form.startDate=at),type:"date",placeholder:"开始日期",style:u.normalizeStyle({width:ie.form.allDay?"45%":"90%"})},null,8,["modelValue","style"]),ie.form.allDay?(u.openBlock(),u.createElementBlock("div",wme,[_me,u.createVNode(F,{disabled:"",modelValue:ie.form.endDate,"onUpdate:modelValue":tt[8]||(tt[8]=at=>ie.form.endDate=at),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(u.openBlock(),u.createElementBlock("div",vme,[u.createVNode(jn,{modelValue:ie.form.startTime,"onUpdate:modelValue":tt[6]||(tt[6]=at=>ie.form.startTime=at),type:"datetime",placeholder:"开始时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),Cme,u.createVNode(jn,{modelValue:ie.form.endTime,"onUpdate:modelValue":tt[7]||(tt[7]=at=>ie.form.endTime=at),type:"datetime",placeholder:"结束时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),u.createVNode(Tt,{modelValue:ie.form.allDay,"onUpdate:modelValue":tt[9]||(tt[9]=at=>ie.form.allDay=at),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])]),_:1}),u.createVNode(Ze,null,{default:u.withCtx(()=>[u.createVNode(he,{class:"icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(Yte))]),_:1}),u.createVNode(Ot,{type:"textarea",modelValue:ie.form.remark,"onUpdate:modelValue":tt[10]||(tt[10]=at=>ie.form.remark=at),placeholder:"描述",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","disabled"])],!0)]),_:3},8,["modelValue"])])}}}),gye="",kme=or(Ls(Eme,[["__scopeId","data-v-e308f501"]])),Ame={key:0,class:"ik-tabs-split overflow-overlay gl-padding"},Tme=u.defineComponent({__name:"IkPageTabs",props:u.mergeModels({tabs:{type:Array,default:()=>[]},defaultSlot:{type:Boolean,default:!0},lazyTab:{type:Boolean,default:!1},split:{type:Boolean,default:!1}},{modelValue:{type:String||Number,default:""},modelModifiers:{}}),emits:u.mergeModels(["tabClick","search"],["update:modelValue"]),setup(i,{emit:a}){const d=i,p=a,v=u.useModel(i,"modelValue"),S=u.ref(new Map);for(const A of d.tabs)S.value.set(A.id,d.lazyTab?A.id!==v.value:!1);const E=A=>{v.value=A.paneName,S.value.get(A.paneName)||p("tabClick",A.paneName,A),S.value.set(A.paneName,!1)};return(A,$)=>{const L=u.resolveComponent("el-tab-pane"),z=u.resolveComponent("el-tabs");return u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createCommentVNode(' <div class="flex-1 contents"> '),u.createVNode(z,{modelValue:v.value,"onUpdate:modelValue":$[0]||($[0]=se=>v.value=se),class:u.normalizeClass(["ik-tabs",{"is-default":A.$slots.default,"split gl-padding gl-container":i.split}]),onTabClick:E},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.tabs,se=>(u.openBlock(),u.createBlock(L,{key:se.id,disabled:se==null?void 0:se.disabled,name:se.id},{label:u.withCtx(()=>[u.createElementVNode("span",null,u.toDisplayString(se.label),1)]),default:u.withCtx(()=>[!A.$slots.default&&!S.value.get(se.id)&&!i.split?u.renderSlot(A.$slots,se.id,{key:0},void 0,!0):u.createCommentVNode("v-if",!0)]),_:2},1032,["disabled","name"]))),128)),u.createCommentVNode(" 当存在默认slot且需要展示默认slot时 "),A.$slots.default&&i.defaultSlot&&!i.split?u.renderSlot(A.$slots,"default",{key:0},void 0,!0):u.createCommentVNode("v-if",!0)]),_:3},8,["modelValue","class"]),i.split?(u.openBlock(),u.createElementBlock("div",Ame,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.tabs,se=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[!A.$slots.default&&!S.value.get(se.id)?u.renderSlot(A.$slots,se.id,{key:0},void 0,!0):u.createCommentVNode("v-if",!0)],64))),256)),A.$slots.default&&i.defaultSlot?u.renderSlot(A.$slots,"default",{key:0},void 0,!0):u.createCommentVNode("v-if",!0)])):u.createCommentVNode("v-if",!0),u.createCommentVNode(" </div> ")],64)}}}),yye="",Dme=or(Ls(Tme,[["__scopeId","data-v-e282a7f2"]]));var W1=(i=>(i.input="input",i.area="area",i.number="number",i.select="select",i.date="date",i.datetime="datetime",i.checkbox="checkbox",i.radio="radio",i.treeselect="treeselect",i.choosePerson="choosePerson",i))(W1||{}),u2=(i=>(i.year="year",i.month="month",i.date="date",i.dates="dates",i.datetime="datetime",i.week="week",i.datetimerange="datetimerange",i.daterange="daterange",i.monthrange="monthrange",i))(u2||{});function PJ(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!u.isVNode(i)}const Nme=u.defineComponent({name:"IkSearchAuto",props:{list:{required:!0,type:Array,default:()=>[]},shadow:{type:String,default:"never"},immediate:{type:Boolean,default:!0},tab:{type:String,default:""},search:{type:Function,default:null},loading:{type:Boolean,default:!1}},emits:["search","pickerChange"],setup(i,{emit:a,expose:d}){const p=u.ref(),v={},S=u.ref({}),E=u.ref([]),A=u.ref({...S.value});u.watch(E,(Ft,ao)=>{const ht=ao.filter(Ut=>!Ft.includes(Ut));if(ht.length){let Ut=!1;ht.forEach(qe=>{A.value[qe]!==void 0&&(Ut=!0),A.value[qe]=void 0}),Ut&&a("search",A.value)}});const $=()=>{E.value=[],i.list.forEach(Ft=>{var ao,ht;S.value[Ft.key]=S.value[Ft.value],v[Ft.key]=v[Ft.value],E.value.push(Ft.key),(ao=A.value)[ht=Ft.key]??(ao[ht]=Ft.value||null)})};$(),u.watch(()=>i.list,()=>{$()});const L=u.computed(()=>E.value.map(Ft=>i.list.find(ao=>ao.key===Ft))),z=()=>{var Ft;A.value.page=1,(Ft=i.search)==null||Ft.call(i,A.value),a("search",A.value)};d({resetForm:()=>{var Ft,ao;(ao=(Ft=p.value)==null?void 0:Ft.resetFields)==null||ao.call(Ft),z()},reRequest:()=>{z()}});const Z=()=>{var Ft;a("search",A.value),(Ft=i.search)==null||Ft.call(i,A.value)},X=Ft=>{Ft.key==="Enter"&&z()},le=()=>{var Ft;(Ft=p.value)==null||Ft.resetFields(),z()};i.immediate&&z();const J=({maxlength:Ft,minlength:ao,key:ht,disabled:Ut,placeholder:qe,formProp:it={},value:Q,label:uo})=>u.createVNode(Zt.ElInput,u.mergeProps({modelValue:A.value[ht],"onUpdate:modelValue":[An=>A.value[ht]=An,An=>A.value[ht]=An],clearable:!0,maxlength:Ft,minlength:ao,disabled:Ut,onBlur:()=>Z()},it,{placeholder:(it==null?void 0:it.placeholder)||qe||`请输入${uo||""}`}),null),me=({key:Ft,placeholder:ao,max:ht,min:Ut,disabled:qe,precision:it,step:Q=1,label:uo,formProp:An={}})=>u.createVNode(Zt.ElInputNumber,u.mergeProps({modelValue:A.value[Ft],"onUpdate:modelValue":vo=>A.value[Ft]=vo,clearable:!0,max:ht,min:Ut,disabled:qe,precision:it,step:Q,onChange:()=>Z()},An,{placeholder:(An==null?void 0:An.placeholder)||ao||`请输入${uo||""}`}),null),ie=({key:Ft,placeholder:ao,disabled:ht,options:Ut,label:qe,multiple:it=!1,filterable:Q=!0,formProp:uo={}})=>u.createVNode(Zt.ElSelect,u.mergeProps({modelValue:A.value[Ft],"onUpdate:modelValue":An=>A.value[Ft]=An,clearable:!0,disabled:ht,multiple:it,filterable:Q,onChange:()=>Z()},uo,{placeholder:(uo==null?void 0:uo.placeholder)||ao||`请选择${qe||""}`}),{default:()=>[Ut==null?void 0:Ut.map(An=>u.createVNode(Zt.ElOption,{key:An.value,label:An.label,value:An.value},null))]}),G=({key:Ft,disabled:ao,options:ht,formProp:Ut={}})=>u.createVNode(Zt.ElRadioGroup,u.mergeProps({modelValue:A.value[Ft],"onUpdate:modelValue":qe=>A.value[Ft]=qe,disabled:ao,onChange:()=>Z()},Ut),{default:()=>[ht==null?void 0:ht.map(qe=>(Ut==null?void 0:Ut.radioType)==="button"?u.createVNode(Zt.ElRadioButton,{key:qe.value,label:qe.value,name:qe.label},null):u.createVNode(Zt.ElRadio,{key:qe.value,label:qe.value,name:qe.label},null))]}),we=({key:Ft,disabled:ao,options:ht,min:Ut,max:qe,formProp:it={}})=>u.createVNode(Zt.ElCheckboxGroup,u.mergeProps({modelValue:A.value[Ft],"onUpdate:modelValue":Q=>A.value[Ft]=Q,disabled:ao,max:qe,min:Ut,onChange:()=>Z()},it),{default:()=>[ht==null?void 0:ht.map(Q=>u.createVNode(Zt.ElCheckbox,{key:Q.value,label:Q.label,value:Q.value},null))]}),wt=({key:Ft,label:ao,formProp:ht={},placeholder:Ut})=>u.createVNode(Zt.ElDatePicker,u.mergeProps({modelValue:A.value[Ft],"onUpdate:modelValue":qe=>A.value[Ft]=qe,onChange:()=>Z()},ht,{placeholder:(ht==null?void 0:ht.placeholder)||Ut||`请选择${ao}时间`}),null),Ve=({key:Ft,disabled:ao,editable:ht=!0,startPlaceholder:Ut="开始日期",endplaceholder:qe="结束日期",dateType:it=u2.date,format:Q,placeholder:uo="请选择日期",popperclass:An,rangeSeparator:vo="-",defaultValue:Ro,defaultTime:ta,valueFormat:pt,disabledDate:Gt=()=>!1,formProp:ct={}})=>{let ze=Q;if(ze)switch(it){case u2.date:case u2.dates:ze="YYYY-MM-DD";break;case u2.year:ze="YYYY";break;case u2.month:ze="YYYY-MM";break;case u2.week:ze="YYYY-MM-DD";break;default:ze=""}return u.createVNode(Zt.ElDatePicker,u.mergeProps({modelValue:A.value[Ft],"onUpdate:modelValue":En=>A.value[Ft]=En,onChange:()=>Z(),disabled:ao,type:it,editable:ht,startPlaceholder:Ut,endPlaceholder:qe,rangeSeparator:vo,format:ze,popperClass:An,defaultValue:Ro,defaultTime:ta,valueFormat:pt,disabledDate:Gt},ct,{placeholder:(ct==null?void 0:ct.placeholder)||uo||"请选择日期"}),null)},K=({key:Ft,options:ao,multiple:ht=!1,filterable:Ut=!0,nodeKey:qe="id",props:it,highlightCurrent:Q=!0,defaultExpandAll:uo=!1,expandOnClickNode:An=!1,placeholder:vo="全部",checkOnClickNode:Ro=!1,showCheckbox:ta=!1,checkStrictly:pt=!0,defaultCheckedKeys:Gt=[],currentNodeKey:ct="",accordion:ze=!1,formProp:En={},label:kt})=>u.createVNode(Zt.ElTreeSelect,u.mergeProps({modelValue:A.value[Ft],"onUpdate:modelValue":gt=>A.value[Ft]=gt,data:ao,onChange:()=>Z(),clearable:!0,multiple:ht,props:it,placeholder:vo,filterable:Ut,nodeKey:qe,highlightCurrent:Q,defaultExpandAll:uo,expandOnClickNode:An,checkOnClickNode:Ro,showCheckbox:ta,checkStrictly:pt,defaultCheckedKeys:Gt,currentNodeKey:ct,accordion:ze},En,{placeholder:(En==null?void 0:En.placeholder)||vo||`请选择${kt||""}`}),null),De=({key:Ft,selectKey:ao,placeholder:ht,disabled:Ut,options:qe,multiple:it=!1,filterable:Q=!0,formProp:uo={}})=>u.createVNode(Zt.ElInput,u.mergeProps({disabled:Ut,modelValue:A.value[Ft],"onUpdate:modelValue":An=>A.value[Ft]=An,onBlur:()=>Z()},uo,{placeholder:(uo==null?void 0:uo.placeholder)||ht||"全部"}),{prepend:()=>u.createVNode(Zt.ElSelect,u.mergeProps({disabled:Ut,multiple:it,filterable:Q,modelValue:A.value[ao],"onUpdate:modelValue":An=>A.value[ao]=An,onChange:()=>Z()},uo),{default:()=>[qe==null?void 0:qe.map(An=>u.createVNode(Zt.ElOption,{key:An.value,label:An.label,value:An.value},null))]})}),tt="",lt="iking",Ge=u.ref(null),he=u.ref([]),St=u.ref(!1),Ot=u.ref(""),Ze=new Map,F=Ft=>{St.value=!0,he.value=Ze.has(Ft)?Ze.get(Ft):A.value[Ft],Ot.value=Ft},jn=()=>{Ze.set(Ot.value,[]),Ot.value="",Z()},Tt=Ft=>{var ao,ht;A.value[Ot.value]=(ao=Ft.list.map(Ut=>Ut.elementName))==null?void 0:ao.join(","),Ze.set(Ot.value,Ft.list),a("search",A.value),a("pickerChange",Ft),(ht=i.search)==null||ht.call(i,A.value)},Oo=({key:Ft,placeholder:ao,typeOption:ht,_list:Ut,maxlength:qe,minlength:it,disabled:Q,formProp:uo})=>u.createVNode(Zt.ElInput,u.mergeProps({modelValue:A.value[Ft],"onUpdate:modelValue":An=>A.value[Ft]=An,clearable:!0,maxlength:qe,minlength:it,disabled:Q},uo,{onClick:()=>F(Ft),onClear:()=>jn(),placeholder:(uo==null?void 0:uo.placeholder)||ao||`点击选择${label||"人员"}`}),null),Cn=Ft=>{switch(Ft.type){case"":case void 0:case W1.input:case"el-input":return J(Ft);case W1.number:case"el-input-number":return me(Ft);case W1.select:case"el-select":return ie(Ft);case W1.checkbox:case"el-checkbox":return we(Ft);case W1.radio:case"el-radio-group":case"el-radio":return G(Ft);case W1.date:case"el-date-picker":return Ve(Ft);case"el-time-select":return wt(Ft);case W1.treeselect:case"el-tree-select":return K(Ft);case W1.choosePerson:return Oo(Ft);case"select-input":return De(Ft);default:return u.createVNode(u.Fragment,null,null)}},at=u.computed(()=>{var ht;const Ft=[],ao=L.value.length-1;return(ht=L.value)==null||ht.forEach((Ut,qe)=>{let it,Q;if(!Ut)return[];const uo=Ut.col||1;Ft.push(u.createVNode(Zt.ElCol,{xl:{span:uo*6},lg:{span:uo*6},md:{span:uo*12},sm:{span:uo*24}},{default:()=>[qe===ao?u.createVNode("div",{class:"last-form"},[u.createVNode(Zt.ElFormItem,{label:Ut.type==="select-input"?"":Ut.label,prop:Ut.key},PJ(it=Cn(Ut))?it:{default:()=>[it]}),u.createVNode(sr,{name:"icon-sousuo1",pop:!0,title:"搜索",size:"big","show-bg":!0,width:40,onClick:()=>Z()},null),u.createVNode(sr,{name:"icon-zhongzhi",pop:!0,title:"重置并搜索",size:"big","show-bg":!0,width:40,onClick:()=>le()},null)]):u.createVNode(Zt.ElFormItem,{label:Ut.type==="select-input"?"":Ut.label,prop:Ut.key},PJ(Q=Cn(Ut))?Q:{default:()=>[Q]})]}))}),Ft});return()=>u.createVNode(u.Fragment,null,[u.createVNode(Zt.ElCard,{class:"gl-search-card",shadow:i.shadow},{default:()=>[u.createVNode(Zt.ElForm,{class:"auto-search-form",onKeyup:X,ref:p,model:A.value},{default:()=>[u.createVNode(Zt.ElRow,{gutter:16},{default:()=>[at.value]})]})]}),u.createVNode(mk,{ref:Ge.value,modelValue:he.value,"onUpdate:modelValue":Ft=>he.value=Ft,show:St.value,"onUpdate:show":Ft=>St.value=Ft,"append-to-body":!0,api:{methods:"post",url:`${tt}/server/component/pick/mix`,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:lt}},tabs:["group","role","post"],chooseType:["user"],typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},propOption:{name:"elementName",id:"elementId",type:"elementType"},onOk:Ft=>Tt(Ft)},null)])}}),Rme={class:"header-left"},Ome={class:"title"},Bme={class:"flex items-center"},Mme=u.defineComponent({__name:"IkPageHead",props:u.mergeModels({headerTitle:{type:String,default:""},headerBorder:{type:Boolean,default:!1},fields:{required:!0,type:Array,default:()=>[]},search:{type:Function,default:null},loading:{type:Boolean,default:!1},tabId:{type:Number||String,default:0},exportBtn:{type:Boolean,default:!1},refreshBtn:{type:Boolean,default:!1},settingBtn:{type:Boolean,default:!0},defaultShow:{type:Boolean,default:!1},headerHeight:{type:Number,default:66}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(i){u.useCssVars(L=>({"59e2b6b4":$}));const a=i,d=u.useModel(i,"modelValue"),p=u.ref(a.defaultShow),v=()=>{p.value=!p.value},S=u.computed(()=>a.fields.filter(L=>!L.onlyForm)),E=u.computed(()=>{var L;return(L=a.fields)==null?void 0:L.filter(z=>z.search)}),A=u.computed(()=>E.value.length),$=`${a.headerHeight}px`;return(L,z)=>{const se=u.resolveComponent("el-card");return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["ik-page-header",{"show-search":p.value}])},[u.createElementVNode("div",{class:"header",style:u.normalizeStyle({borderColor:i.headerBorder?"var(--ik-border-color)":"transparent",marginBottom:i.headerBorder?"8px":"0"})},[u.createElementVNode("div",Rme,[u.createCommentVNode(' 左侧标题、tab页或自定义内容 v-if="!$slots.headerLeft" '),u.createElementVNode("span",Ome,u.toDisplayString(i.headerTitle),1),u.renderSlot(L.$slots,"headerLeft",{},void 0,!0)]),u.createCommentVNode(" 默认按钮 "),u.createElementVNode("div",Bme,[u.createCommentVNode(" 右侧操作或自定义内容 "),u.renderSlot(L.$slots,"headerRight",{},void 0,!0),i.exportBtn?(u.openBlock(),u.createBlock(u.unref(sr),{key:0,name:"iksvg_xiazai",type:"primary",title:"导出","show-bg":"",size:"default"})):u.createCommentVNode("v-if",!0),A.value?(u.openBlock(),u.createBlock(u.unref(sr),{key:1,name:"iksvg_shaixuan1",size:"default",title:p.value?"收起筛选条件":"展开筛选条件","show-bg":"",onClick:v},null,8,["title"])):u.createCommentVNode("v-if",!0),i.refreshBtn?(u.openBlock(),u.createBlock(u.unref(sr),{key:2,name:"iksvg_zhongzhi1",title:"保留搜索条件刷新","show-bg":"",size:"default",onClick:i.search},null,8,["onClick"])):u.createCommentVNode("v-if",!0),u.createCommentVNode(` <IkSvgIcon\r
34
+ ></i> `),(me=X[i.propsField.children])!=null&&me.length&&X.show?(u.openBlock(),u.createBlock(u.unref(sr),{key:1,class:"ikapprove",onClick:ie=>se(X,le),name:"iksvg_shouqi"},null,8,["onClick"])):u.createCommentVNode("v-if",!0)],14,Ene)]),u.createElementVNode("ul",{class:u.normalizeClass($(le))},[u.createElementVNode("div",{id:`children${le}`},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(X[i.propsField.children],(ie,G)=>(u.openBlock(),u.createElementBlock("li",{class:u.normalizeClass(L(le,G)),style:u.normalizeStyle(i.needClick?"cursor: pointer;":""),key:G,onClick:we=>z(ie,le+1+"-"+(G+1))},u.toDisplayString(ie.name),15,Ane))),128))],8,kne)],2)])}),128))]))}}),tbe="",Dne=or(Ls(Tne,[["__scopeId","data-v-240cff4f"]])),jF=i=>i%1===0?i.toString():i.toFixed(2),Nne=(i,a=2)=>{if(i===void 0)return"";if(i===0)return"0 B";const d=["B","KB","MB","GB","TB"],p=Math.floor(Math.log(i)/Math.log(1024));let v=i/Math.pow(1024,p);return(v%1===0?v.toFixed(a||0):v.toFixed(a))+" "+d[p]},N3=(i,a)=>a?a.startsWith("http")?a:`${i||location.origin}${a}`:"",obe="",TY=i=>({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",并行分支:"PARALLEL",子流程:"SUB_PROCESS",...i.defaultNodeType},defaultFile:{id:"id",parallelInstances:"parallelInstances",nodeId:"sortOrder",nodeType:"type",nodeTypeName:"name",approveStatus:"status",approveStatusName:"statusName",approveType:"approveType",multiExecutorType:"multiExecutorType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approvalCategory:"approvalCategory",isShowAdd:"initiatorSpecify",isShowAddCopy:"initiatorSpecifyCarbonCopy",executorEmpty:"executorEmpty",executorEmptyStrategy:"executorEmptyStrategy",reserveExecutorUsers:"reserveExecutorUsers",approvePersonList:"executorUsers",initiatorSpecifiedScope:"initiatorSpecifiedScope",initiatorSpecifiedScopeType:"initiatorSpecifiedScopeType",singleApproval:"singleApproval",originator:"username",...i.defaultFieldMap},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...i.statusWithoutApprover},multiple:!1,chooseType:[],statusOption:{发起:"INITIATE",等待:"WAIT",同意:"PASS",撤销:"REVOKE",拒绝:"REJECT",转交:"TRANSFER",加签:"APPEND",退回:"BACK",评论:"COMMENT",待执行:"WAITING",执行中:"RUNNING",...i.defaultStatus},listData:[]}),DY=(i,a,d)=>{let p="";switch(a){case i.nodeType.审批节点:d&&d.length==1?p="ikapprove-ziyuan":p="ikapprove-shenpi";break;case i.nodeType.办理节点:p="ikapprove-bianji";break;case i.nodeType.抄送节点:p="ikapprove-chaosong";break;case i.nodeType.并行分支:p="ikapprove-fenzhi";break;case i.nodeType.子流程:p="ikapprove-ziliucheng1";break;default:p="ikapprove-ziyuan"}return`ikapprove ${p}`},l7=i=>{const a=u.inject("loadUrl"),d=u.computed(()=>i.loadUrl||i.fileUrl||(a==null?void 0:a.value)),p=u.inject("uploadUrl"),v=u.computed(()=>i.action||i.uploadUrl||(p==null?void 0:p.value)),S=u.inject("token"),E=u.computed(()=>i.token||(S==null?void 0:S.value)),A=u.inject("onlyofficeConfig"),$=u.computed(()=>i.onlyofficeConfig||(A==null?void 0:A.value)),L=u.inject("userInfo"),z=u.computed(()=>i.userInfo||(L==null?void 0:L.value));return{cLoadUrl:d,cUploadUrl:v,cToken:E,cOnlyofficeConfig:$,cUserInfo:z}},ZF=i=>(u.pushScopeId("data-v-586207eb"),i=i(),u.popScopeId(),i),Rne={class:"approveProcess",id:"approveProcess"},One=["id"],Bne={class:"topBlock"},Mne={class:"left"},Ine={class:"nodeBg"},Pne=["src"],Fne={class:"right"},$ne={class:"topInfo"},Lne={key:0},Vne={key:0,class:"main-text"},Hne={class:"name"},zne={key:0},Une={key:0},Wne={key:1},jne=ZF(()=>u.createElementVNode("span",{class:"red",style:{margin:"0px 5px"}},"退回至",-1)),Zne={key:0},Gne={key:0},qne={key:1},Kne={key:1},Yne=ZF(()=>u.createElementVNode("div",{class:"main-text"},"抄送人员",-1)),Xne={class:"name"},Qne={key:0},Jne={style:{color:"#000"}},eoe={class:"blue",style:{"margin-left":"5px","font-size":"12px"}},toe={key:1},noe={key:0,class:"blue",style:{"font-size":"12px"}},ooe={key:1},soe={key:0,class:"blue",style:{"font-size":"12px"}},roe={key:1,class:"blue",style:{"font-size":"12px"}},aoe={class:"time"},loe={key:0},ioe={key:1},coe=["onClick"],uoe=["onClick"],doe={key:0,class:"opinion"},foe={key:0},moe={key:1},hoe=ZF(()=>u.createElementVNode("span",{class:"ik-text-primary"},"添加审批人",-1)),poe={style:{color:"var(--el-text-color-primary)","margin-left":"8px"}},goe={key:2,class:"annexImage"},boe={key:3,class:"approveList"},yoe={class:"nodeBg-list"},voe=["src"],Coe={key:1},woe={key:2,class:"ikapprove ikapprove-duihao2 green read"},_oe=["title"],Soe={key:0,class:"branch"},xoe={class:"branch-card"},Eoe={class:"branch-name"},koe={name:"IkingApprovalProcessDetail"},Aoe=u.defineComponent({...koe,props:{local:{type:Boolean,default:!1},defaultStatus:{type:Object,default:()=>({})},defaultNodeType:{type:Object,default:()=>({})},dataList:{type:Array,default:()=>[]},defaultFieldMap:{type:Object,default:()=>({})},returnNode:{type:Array,default:()=>[]},fileUrl:{type:String,default:""},kkUrl:{type:String,default:""},isOnlyOfficePreview:{type:Boolean,default:!1},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""}},emits:["preview"],setup(i,{emit:a}){const d=i,{cLoadUrl:p}=l7(d),v=u.reactive(TY(d));u.watch(()=>d.dataList,z=>{z&&(u.nextTick(()=>{v.listData=z}),setTimeout(()=>{d.returnNode.length&&S()},500))},{deep:!0}),u.onMounted(()=>{d.dataList.length&&(v.listData=d.dataList,setTimeout(()=>{d.returnNode.length&&S()},500))});const S=()=>{let z=null;if(d!=null&&d.returnNode)for(z of d==null?void 0:d.returnNode){if(isNaN(z[1]))return;let se=Array.from(new Array(z[1]+1).keys()).slice(z[0]);u.nextTick(()=>{E(se)})}},E=z=>{var me,ie,G;let se=document.createElement("div"),oe=document.getElementById("approveProcess"),Z=0,X=(me=document.getElementById(`${z[0]}`))==null?void 0:me.offsetWidth,le=(ie=document.getElementById(`${z[0]}`))==null?void 0:ie.offsetLeft,J=(G=document.getElementById(`${z[0]}`))==null?void 0:G.offsetTop;z.forEach(we=>{let wt=document.getElementById(`${we}`);Z+=wt.offsetHeight}),setTimeout(()=>{se.style.width=X+32+"px",se.style.height=Z+"px",se.style.background="#f9f9f9",se.style.position="absolute",se.style.top=J-16+"px",se.style.left=le-16+"px",se.style.zIndex=-1,oe==null||oe.appendChild(se)})},A=(z,se,oe)=>{var le,J;let Z=(le=v.listData)==null?void 0:le.findIndex(me=>me.lineType=="dashed"),X="";if(oe&&((J=oe[v.defaultFile.approvePersonList])==null?void 0:J.findIndex(ie=>ie[v.defaultFile.approveStatus]===v.statusOption.执行中))>-1)return"ikapprove ikapprove-dengdai orange";switch(z){case v.statusOption.发起:X="ikapprove-duihao2 green";break;case v.statusOption.执行中:X=Z==se?"ikapprove-dengdai orange":"";break;case v.statusOption.同意:X="ikapprove-duihao2 green";break;case v.statusOption.拒绝:X="ikapprove-jujue red";break;case v.statusOption.转交:X="ikapprove-zhuanjiao blue";break;case v.statusOption.加签:X="ikapprove-tianjia blue";break;case v.statusOption.退回:X="ikapprove-s_fanhui2 red";break;case v.statusOption.评论:X="ikapprove-pinglun1 blue";break}return`ikapprove ${X}`},$=(z,se)=>{z.show=!z.show;let oe=document.getElementById(`${z[v.defaultFile.nodeId]}`),Z=Array.from(oe==null?void 0:oe.getElementsByClassName("approveList"));for(let X of Z)X.style.display=se},L=z=>N3(p.value,z);return(z,se)=>{const oe=u.resolveComponent("el-image"),Z=u.resolveComponent("IkingApprovalProcessDetail");return u.openBlock(),u.createElementBlock("div",Rne,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(v.listData,(X,le)=>{var J,me,ie,G,we,wt,Ve,K,De,tt;return u.openBlock(),u.createElementBlock("div",{class:"approveBlock",id:X[v.defaultFile.nodeId],key:X[v.defaultFile.nodeId]},[u.createElementVNode("div",Bne,[u.createElementVNode("div",Mne,[u.createElementVNode("span",Ine,[u.createCommentVNode(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),((J=X[v.defaultFile.approvePersonList])==null?void 0:J.length)==1&&X[v.defaultFile.approvePersonList][0].userAvatar?(u.openBlock(),u.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"10px"},src:L(X[v.defaultFile.approvePersonList][0].userAvatar),alt:""},null,8,Pne)):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createCommentVNode(" 否则显示对应节点 "),u.createElementVNode("i",{class:u.normalizeClass(u.unref(DY)(v,X[v.defaultFile.nodeType],X[v.defaultFile.approvePersonList]))},null,2)],2112)),u.createCommentVNode(" 审批状态图标 "),u.createElementVNode("i",{class:u.normalizeClass(A(X[v.defaultFile.approveStatus],le,X))},null,2)])]),u.createElementVNode("div",Fne,[u.createElementVNode("div",$ne,[u.createElementVNode("div",null,[u.createCommentVNode(" 不是抄送节点 "),v.nodeType.抄送节点!==X[v.defaultFile.nodeType]?(u.openBlock(),u.createElementBlock("div",Lne,[u.createCommentVNode(" 撤销,评论不显示节点名称 "),X[v.defaultFile.approveStatus]!=v.statusOption.撤销&&X[v.defaultFile.approveStatus]!=v.statusOption.评论&&X[v.defaultFile.nodeType]!==v.nodeType.并行分支?(u.openBlock(),u.createElementBlock("div",Vne,u.toDisplayString(X[v.defaultFile.nodeTypeName]),1)):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 名字+审批状态 "),u.createElementVNode("div",Hne,[u.createCommentVNode(" 已审批节点文本 "),X[v.defaultFile.lineType]=="solid"?(u.openBlock(),u.createElementBlock("div",zne,[u.createElementVNode("span",{style:u.normalizeStyle({color:X[v.defaultFile.approveStatus]==v.statusOption.评论?"#000":""})},u.toDisplayString(X[v.defaultFile.originator]),5),u.createCommentVNode(" 发起,退回不显示状态 "),X[v.defaultFile.approveStatusName]&&X[v.defaultFile.approveStatus]!=v.statusOption.发起&&X[v.defaultFile.approveStatus]!=v.statusOption.退回?(u.openBlock(),u.createElementBlock("span",Une,u.toDisplayString(X[v.defaultFile.approveStatus]==v.statusOption.评论?" 添加了评论":"("+X[v.defaultFile.approveStatusName]+")"),1)):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 退回状态显示 "),X[v.defaultFile.approveStatus]==v.statusOption.退回?(u.openBlock(),u.createElementBlock("span",Wne,[jne,u.createTextVNode(u.toDisplayString(X[v.defaultFile.backToRecordNodeName]),1)])):u.createCommentVNode("v-if",!0)])):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createCommentVNode(" 待审批节点 "),u.createElementVNode("div",null,[((me=X[v.defaultFile.approvePersonList])==null?void 0:me.length)==1?(u.openBlock(),u.createElementBlock("span",Zne,[u.createTextVNode(u.toDisplayString(X[v.defaultFile.originator])+" ",1),X[v.defaultFile.approveStatus]==v.statusOption.等待?(u.openBlock(),u.createElementBlock("span",Gne,u.toDisplayString(`(${X[v.defaultFile.approveStatusName]})`),1)):u.createCommentVNode("v-if",!0)])):X[v.defaultFile.approvePersonList]?(u.openBlock(),u.createElementBlock("span",qne,u.toDisplayString(`${(ie=X[v.defaultFile.approvePersonList])==null?void 0:ie.length}人${X[v.defaultFile.approveTypeName]}`),1)):u.createCommentVNode("v-if",!0)])],2112))])])):(u.openBlock(),u.createElementBlock("div",Kne,[Yne,u.createElementVNode("div",Xne,[u.createCommentVNode(" 抄送一人时 "),((G=X[v.defaultFile.approvePersonList])==null?void 0:G.length)==1?(u.openBlock(),u.createElementBlock("span",Qne,[u.createElementVNode("span",null,[u.createTextVNode("已抄送给 "),u.createElementVNode("span",Jne,u.toDisplayString(X[v.defaultFile.approvePersonList][0].userName),1)]),u.createElementVNode("span",eoe,u.toDisplayString(X[v.defaultFile.approvePersonList][0].status==="END"?"已读":"未读"),1)])):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 抄送多人时 "),((we=X[v.defaultFile.approvePersonList])==null?void 0:we.length)>1?(u.openBlock(),u.createElementBlock("span",toe,[u.createTextVNode(u.toDisplayString(`已抄送${(wt=X[v.defaultFile.approvePersonList])==null?void 0:wt.length}人`)+" ",1),X[v.defaultFile.allRead]?(u.openBlock(),u.createElementBlock("span",noe," 全部已读 ")):(u.openBlock(),u.createElementBlock("span",ooe,[X[v.defaultFile.read]?u.createCommentVNode("v-if",!0):(u.openBlock(),u.createElementBlock("span",soe," 全部未读 ")),X[v.defaultFile.read]?(u.openBlock(),u.createElementBlock("span",roe,u.toDisplayString(X[v.defaultFile.read])+"人已读 ",1)):u.createCommentVNode("v-if",!0)]))])):u.createCommentVNode("v-if",!0)])]))]),u.createElementVNode("div",aoe,[u.createCommentVNode(" 不是抄送节点,展示时间 "),X[v.defaultFile.nodeType]!=v.nodeType.抄送节点&&X[v.defaultFile.approveStatus]!==v.statusOption.等待?(u.openBlock(),u.createElementBlock("span",loe,u.toDisplayString(u.unref(Io.ikDate).toDateTime(X[v.defaultFile.operationTime],"MM/DD HH:mm")),1)):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 是抄送节点,并且抄送人员大于1时,展示图标 "),X[v.defaultFile.nodeType]==v.nodeType.抄送节点&&((Ve=X[v.defaultFile.approvePersonList])==null?void 0:Ve.length)>1?(u.openBlock(),u.createElementBlock("span",ioe,[X!=null&&X.show?(u.openBlock(),u.createElementBlock("i",{key:0,class:"ikapprove ikapprove-a-putongjiantouzhankai",onClick:lt=>$(X,"grid")},null,8,coe)):(u.openBlock(),u.createElementBlock("i",{key:1,onClick:lt=>$(X,"none"),class:"ikapprove ikapprove-a-putongjiantoushouqi"},null,8,uoe))])):u.createCommentVNode("v-if",!0)])])])]),u.createElementVNode("div",{class:"bottomBlock",style:u.normalizeStyle({borderLeft:le==v.listData.length-1?"":`2px ${X[v.defaultFile.lineType]||"dashed"} var(--el-border-color)`})},[u.createCommentVNode(" 审批意见 "),X[v.defaultFile.approveOpinion]||X[v.defaultFile.approveStatus]==v.statusOption.加签?(u.openBlock(),u.createElementBlock("div",doe,[X[v.defaultFile.approveOpinion]?(u.openBlock(),u.createElementBlock("span",foe,u.toDisplayString(X[v.defaultFile.approveOpinion]),1)):u.createCommentVNode("v-if",!0),X[v.defaultFile.approveStatus]==v.statusOption.加签?(u.openBlock(),u.createElementBlock("span",moe,[hoe,(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(X[v.defaultFile.countersignPer],(lt,Ge)=>(u.openBlock(),u.createElementBlock("span",poe,u.toDisplayString(lt==null?void 0:lt.userName)+u.toDisplayString(Ge<X[v.defaultFile.countersignPer].length-1?"、":""),1))),256))])):u.createCommentVNode("v-if",!0)])):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 附件 "),(K=X[v.defaultFile.attachment])!=null&&K.length?(u.openBlock(),u.createBlock(u.unref(j7),{key:1,list:X[v.defaultFile.attachment]},null,8,["list"])):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 附件图片 "),(De=X[v.defaultFile.attachmentImg])!=null&&De.length?(u.openBlock(),u.createElementBlock("div",goe,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(X[v.defaultFile.attachmentImg],(lt,Ge)=>(u.openBlock(),u.createElementBlock("div",{class:"image",key:Ge},[u.createVNode(oe,{src:L(lt),"preview-src-list":X[v.defaultFile.attachmentImg].map(he=>L(he)),fit:"cover","z-index":"9999","zoom-rate":1.2,alt:L(lt)},null,8,["src","preview-src-list","alt"])]))),128))])):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 抄送节点或是等待审批状态并且列表长度大于1 "),(X[v.defaultFile.nodeType]==v.nodeType.抄送节点||X[v.defaultFile.approveStatus]==v.statusOption.等待)&&((tt=X[v.defaultFile.approvePersonList])==null?void 0:tt.length)>1?(u.openBlock(),u.createElementBlock("div",boe,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(X[v.defaultFile.approvePersonList],lt=>(u.openBlock(),u.createElementBlock("div",{class:"perBlock",key:lt.userName},[u.createElementVNode("span",yoe,[lt.userAvatar?(u.openBlock(),u.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:L(lt.userAvatar),alt:""},null,8,voe)):(u.openBlock(),u.createElementBlock("span",Coe,u.toDisplayString(lt.userName.slice(-2)),1)),lt.status==="END"?(u.openBlock(),u.createElementBlock("i",woe)):u.createCommentVNode("v-if",!0)]),u.createElementVNode("div",{class:"main-text",title:lt.userName},u.toDisplayString(lt.userName),9,_oe)]))),128))])):u.createCommentVNode("v-if",!0)],4),X[v.defaultFile.nodeType]===v.nodeType.并行分支?(u.openBlock(),u.createElementBlock("div",Soe,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(X[v.defaultFile.parallelInstances],lt=>(u.openBlock(),u.createElementBlock("div",xoe,[u.createElementVNode("div",Eoe,u.toDisplayString(lt.name),1),u.createVNode(Z,u.mergeProps({ref_for:!0},d,{"data-list":(lt==null?void 0:lt.processInstanceNodes)||[]}),null,16,["data-list"])]))),256))])):u.createCommentVNode("v-if",!0)],8,One)}),128))])}}}),sbe="",Toe=or(Ls(Aoe,[["__scopeId","data-v-586207eb"]])),NY=i=>(u.pushScopeId("data-v-5753728e"),i=i(),u.popScopeId(),i),Doe={class:"approveProcess",id:"approveProcess"},Noe={class:"node"},Roe={class:"nodeBg"},Ooe={key:0,class:"info"},Boe={class:"explain"},Moe={key:0},Ioe={key:0},Poe={key:1},Foe={key:0},$oe={key:1},Loe={class:"personlist"},Voe={style:{width:"58px"}},Hoe={class:"avatar"},zoe=["src"],Uoe={key:1,class:"nodeBg"},Woe=["onClick"],joe=["title"],Zoe={key:0,class:"sign"},Goe={key:0},qoe=["onClick"],Koe={key:0,class:"required"},Yoe=NY(()=>u.createElementVNode("i",{class:"ikapprove ikapprove-xinzeng"},null,-1)),Xoe={key:1,class:"node-branchs"},Qoe=NY(()=>u.createElementVNode("div",{class:"branch-line"},null,-1)),Joe={style:{flex:"1"}},ese={class:"node-branch"},tse={name:"IkApprovalProcess"},nse=u.defineComponent({...tse,props:{pickerUrl:{type:String,default:""},loadUrl:{type:String,default:""},dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},setup(i,{expose:a}){const d=i,p=Io.ikStore.local.getItem("token")||"Bearer 841b7a7b0d9c4021b1655192c28ac61b",v=u.ref("sys");function S(X){const le=window.location.search;return new URLSearchParams(le).get(X)}function E(){var le;const X=S("xTenant")||((le=Io.ikStore.local.getItem("tenant"))==null?void 0:le.code);X&&(v.value=X)}E();const A=u.reactive(TY(d)),$=async X=>{var le;if(X.multiple=!X[A.defaultFile.singleApproval]||X[A.defaultFile.isShowAddCopy],X.handList=X[A.defaultFile.approvePersonList]?X[A.defaultFile.approvePersonList]:[],X[A.defaultFile.nodeType]===A.nodeType.抄送节点)X.handList.forEach(J=>{J.elementName||(J.elementName=J.userName,J.elementId=J.userId,J.avatar=J.userAvatar),J.elementType="USER",J.disabled=!0}),X.chooseType=["user"],X.userList=[],X.depList=[];else switch(X[A.defaultFile.initiatorSpecifiedScopeType]){case"ALL":X.chooseType=["dep_user"],X.userList=[],X.depList=[];break;default:X.chooseType=["user"],X.userList=X.userList?X.userList:(le=X[A.defaultFile.initiatorSpecifiedScope])==null?void 0:le.map(J=>({...J,elementName:(J==null?void 0:J.executorName)||(J==null?void 0:J.userName),elementId:(J==null?void 0:J.executorId)||(J==null?void 0:J.userId),avatar:((J==null?void 0:J.executorAvatar)||(J==null?void 0:J.userAvatar))&&L((J==null?void 0:J.executorAvatar)||(J==null?void 0:J.userAvatar))||"",elementType:"USER"}))}u.nextTick(()=>{X.isShow=!0})},L=X=>{let le="";return X.includes("http")||X.includes("https")?le=X:le=d.loadUrl?`${d.loadUrl}${X}`:`${location.origin+location.pathname}server/oss/download?fileUrl=${X}`,le},z=(X,le)=>{d.dataList[le].handList=X.list;let me=(d.dataList[le][A.defaultFile.approvePersonList]||[]).filter(G=>!G.canDele),ie=X.list.map(G=>({...G,userName:G.elementName,userAvatar:G.avatar,canDele:!0}));d.dataList[le][A.defaultFile.approvePersonList]=me.concat(ie)},se=(X,le)=>{d.dataList[X][A.defaultFile.approvePersonList].splice(le,1),d.dataList[X].handList=d.dataList[X][A.defaultFile.approvePersonList]},oe=()=>{let X=!0;return d.dataList.forEach(le=>{var J;le.required=!1,le[A.defaultFile.nodeType]==A.nodeType.审批节点&&le[A.defaultFile.isShowAdd]&&((J=le[A.defaultFile.approvePersonList])!=null&&J.length||(X=!1,le.required=!0))}),X},Z=u.computed(()=>({propOption:{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},api:{methods:"post",url:d.pickerUrl,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:p,"X-Tenant":v.value}}}));return a({requiredVerification:oe}),(X,le)=>{const J=u.resolveComponent("IkApprovalProcess");return u.openBlock(),u.createElementBlock("div",Doe,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(d.dataList,(me,ie)=>{var G,we,wt,Ve;return u.openBlock(),u.createElementBlock("div",{class:"content",key:me.id},[u.createCommentVNode(" 审批节点类型 "),u.createElementVNode("div",Noe,[u.createElementVNode("span",Roe,[u.createElementVNode("i",{class:u.normalizeClass(u.unref(DY)(A,me[A.defaultFile.nodeType]))},null,2)]),u.createElementVNode("div",{class:"line",style:u.normalizeStyle({"border-left":ie===d.dataList.length-1?"":"2px solid var(--el-border-color)"})},null,4)]),me[A.defaultFile.nodeType]!==A.nodeType.并行分支?(u.openBlock(),u.createElementBlock("div",Ooe,[u.createElementVNode("div",null,[u.createElementVNode("div",null,u.toDisplayString(me[A.defaultFile.nodeTypeName]),1),u.createElementVNode("div",Boe,[u.createCommentVNode(" 抄送节点 "),me[A.defaultFile.nodeType]==A.nodeType.抄送节点?(u.openBlock(),u.createElementBlock("span",Moe,[me[A.defaultFile.approvePersonList].length?(u.openBlock(),u.createElementBlock("span",Ioe,u.toDisplayString(`抄送${me[A.defaultFile.approvePersonList].length}人`),1)):u.createCommentVNode("v-if",!0),me[A.defaultFile.isShowAdd]?(u.openBlock(),u.createElementBlock("span",Poe,",可添加抄送人")):u.createCommentVNode("v-if",!0)])):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createCommentVNode(" 审批节点 "),u.createElementVNode("span",null,[u.createCommentVNode(" 存在审批人时 "),(G=me[A.defaultFile.approvePersonList])!=null&&G.length?(u.openBlock(),u.createElementBlock("span",Foe,u.toDisplayString(((we=me[A.defaultFile.approvePersonList])==null?void 0:we.length)==1?"1人审批":`${(wt=me[A.defaultFile.approvePersonList])==null?void 0:wt.length}人${me[A.defaultFile.multiExecutorTypeName]}`),1)):[A.statusWithoutApprover.自动通过,A.statusWithoutApprover.自动拒绝].includes(me[A.defaultFile.approveType])?(u.openBlock(),u.createElementBlock("span",$oe,u.toDisplayString(me[A.defaultFile.approveTypeName]),1)):me[A.defaultFile.executorEmptyStrategy]&&me[A.defaultFile.executorEmpty]?(u.openBlock(),u.createElementBlock(u.Fragment,{key:2},[u.createCommentVNode(" 没有审批人,并且有指定默认审批方式 "),u.createElementVNode("span",null,[u.createTextVNode(" 未找到审批人,"),u.createElementVNode("span",null,u.toDisplayString(me[A.defaultFile.executorEmptyStrategy]==A.statusWithoutApprover.自动通过?"将自动通过":me[A.defaultFile.executorEmptyStrategy]==A.statusWithoutApprover.自动转交管理员?"自动转交给管理员":me[A.defaultFile.executorEmptyStrategy]==A.statusWithoutApprover.指定人员审批?`将自动转给指定成员${me[A.defaultFile.reserveExecutorUsers]&&me[A.defaultFile.reserveExecutorUsers][0].userName}`:""),1)])],2112)):[A.nodeType.并行分支,A.nodeType.子流程].includes(me[A.defaultFile.nodeType])?u.createCommentVNode("v-if",!0):(u.openBlock(),u.createElementBlock("span",{key:3,class:u.normalizeClass(me.required?"warn":"")}," 请选择"+u.toDisplayString(me[A.defaultFile.nodeType]===A.nodeType.办理节点?"办理人":"审批人"),3))])],2112))])]),u.createElementVNode("div",Loe,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(me[A.defaultFile.approvePersonList],(K,De)=>{var tt;return u.openBlock(),u.createElementBlock("div",{class:"list",key:K.userId},[u.createElementVNode("div",Voe,[u.createElementVNode("div",Hoe,[K.userAvatar?(u.openBlock(),u.createElementBlock("img",{key:0,src:L(K.userAvatar),alt:""},null,8,zoe)):(u.openBlock(),u.createElementBlock("div",Uoe,[u.createElementVNode("span",null,u.toDisplayString(K.userName.slice(-2)),1)])),K.canDele?(u.openBlock(),u.createElementBlock("i",{key:2,onClick:lt=>se(ie,De),class:"ikapprove ikapprove-shanchu1"},null,8,Woe)):u.createCommentVNode("v-if",!0)]),u.createElementVNode("div",{class:"name",title:K.userName},u.toDisplayString(K.userName),9,joe)]),u.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),me[A.defaultFile.isShowAdd]&&!(me[A.defaultFile.singleApproval]&&((tt=me[A.defaultFile.approvePersonList])==null?void 0:tt.length)==1)?(u.openBlock(),u.createElementBlock("span",Zoe,[u.createCommentVNode(" 抄送默认 "),me[A.defaultFile.nodeType]==A.nodeType.抄送节点?(u.openBlock(),u.createElementBlock("span",Goe,"+")):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createCommentVNode(" 审批 "),u.createElementVNode("span",null,u.toDisplayString(me[A.defaultFile.multiExecutorType]=="ANY"?"/":me[A.defaultFile.multiExecutorType]=="ALL"?"+":">"),1)],2112))])):u.createCommentVNode("v-if",!0)])}),128)),u.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 (item[state.defaultFile.isShowAdd] && "),me[A.defaultFile.isShowAdd]&&!(me[A.defaultFile.singleApproval]&&((Ve=me[A.defaultFile.approvePersonList])==null?void 0:Ve.length)==1)||me[A.defaultFile.isShowAddCopy]?(u.openBlock(),u.createElementBlock("span",{key:0,class:"addBg",onClick:K=>$(me)},[me[A.defaultFile.nodeType]==A.nodeType.审批节点?(u.openBlock(),u.createElementBlock("span",Koe)):u.createCommentVNode("v-if",!0),Yoe],8,qoe)):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 添加人组件 "),u.createVNode(u.unref(mk),u.mergeProps({modelValue:me.handList,"onUpdate:modelValue":K=>me.handList=K,show:me.isShow,"onUpdate:show":K=>me.isShow=K,onOk:K=>z(K,ie),multiple:me.multiple,"dep-list":me.depList,"user-list":me.userList,"organization-list":me.organizationList,ref_for:!0},Z.value,{chooseType:me.chooseType}),null,16,["modelValue","onUpdate:modelValue","show","onUpdate:show","onOk","multiple","dep-list","user-list","organization-list","chooseType"])])])):(u.openBlock(),u.createElementBlock("div",Xoe,[Qoe,u.createElementVNode("div",Joe,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(me.parallelInstances,(K,De)=>(u.openBlock(),u.createElementBlock("div",{key:De,class:u.normalizeClass(`branch branch-${De}`)},[u.createElementVNode("div",ese,u.toDisplayString(K.name),1),u.createVNode(J,u.mergeProps({ref_for:!0},d,{dataList:K.processInstanceNodes,style:{"margin-left":"20px"}}),null,16,["dataList"])],2))),128))])]))])}),128))])}}}),abe="",ose=or(Ls(nse,[["__scopeId","data-v-5753728e"]]));var RY={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(i){return"另外 "+i+" 个"},noEventsText:"没有事件显示"},i7,Cs,OY,BY,R3,Jv,MY,IY,PY,c7={},FY=[],sse=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Bb(i,a){for(var d in a)i[d]=a[d];return i}function $Y(i){var a=i.parentNode;a&&a.removeChild(i)}function Qe(i,a,d){var p,v,S,E={};for(S in a)S=="key"?p=a[S]:S=="ref"?v=a[S]:E[S]=a[S];if(arguments.length>2&&(E.children=arguments.length>3?i7.call(arguments,2):d),typeof i=="function"&&i.defaultProps!=null)for(S in i.defaultProps)E[S]===void 0&&(E[S]=i.defaultProps[S]);return u7(i,E,p,v,null)}function u7(i,a,d,p,v){var S={type:i,props:a,key:d,ref:p,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:v??++OY};return v==null&&Cs.vnode!=null&&Cs.vnode(S),S}function kd(){return{current:null}}function ql(i){return i.children}function rse(i,a,d,p,v){var S;for(S in d)S==="children"||S==="key"||S in a||d7(i,S,null,d[S],p);for(S in a)v&&typeof a[S]!="function"||S==="children"||S==="key"||S==="value"||S==="checked"||d[S]===a[S]||d7(i,S,a[S],d[S],p)}function LY(i,a,d){a[0]==="-"?i.setProperty(a,d??""):i[a]=d==null?"":typeof d!="number"||sse.test(a)?d:d+"px"}function d7(i,a,d,p,v){var S;e:if(a==="style")if(typeof d=="string")i.style.cssText=d;else{if(typeof p=="string"&&(i.style.cssText=p=""),p)for(a in p)d&&a in d||LY(i.style,a,"");if(d)for(a in d)p&&d[a]===p[a]||LY(i.style,a,d[a])}else if(a[0]==="o"&&a[1]==="n")S=a!==(a=a.replace(/Capture$/,"")),a=a.toLowerCase()in i?a.toLowerCase().slice(2):a.slice(2),i.l||(i.l={}),i.l[a+S]=d,d?p||i.addEventListener(a,S?HY:VY,S):i.removeEventListener(a,S?HY:VY,S);else if(a!=="dangerouslySetInnerHTML"){if(v)a=a.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(a!=="width"&&a!=="height"&&a!=="href"&&a!=="list"&&a!=="form"&&a!=="tabIndex"&&a!=="download"&&a in i)try{i[a]=d??"";break e}catch{}typeof d=="function"||(d==null||d===!1&&a.indexOf("-")==-1?i.removeAttribute(a):i.setAttribute(a,d))}}function VY(i){R3=!0;try{return this.l[i.type+!1](Cs.event?Cs.event(i):i)}finally{R3=!1}}function HY(i){R3=!0;try{return this.l[i.type+!0](Cs.event?Cs.event(i):i)}finally{R3=!1}}function em(i,a){this.props=i,this.context=a}function J6(i,a){if(a==null)return i.__?J6(i.__,i.__.__k.indexOf(i)+1):null;for(var d;a<i.__k.length;a++)if((d=i.__k[a])!=null&&d.__e!=null)return d.__e;return typeof i.type=="function"?J6(i):null}function zY(i){var a,d;if((i=i.__)!=null&&i.__c!=null){for(i.__e=i.__c.base=null,a=0;a<i.__k.length;a++)if((d=i.__k[a])!=null&&d.__e!=null){i.__e=i.__c.base=d.__e;break}return zY(i)}}function ase(i){R3?setTimeout(i):IY(i)}function GF(i){(!i.__d&&(i.__d=!0)&&Jv.push(i)&&!f7.__r++||MY!==Cs.debounceRendering)&&((MY=Cs.debounceRendering)||ase)(f7)}function f7(){var i,a,d,p,v,S,E,A;for(Jv.sort(function($,L){return $.__v.__b-L.__v.__b});i=Jv.shift();)i.__d&&(a=Jv.length,p=void 0,v=void 0,E=(S=(d=i).__v).__e,(A=d.__P)&&(p=[],(v=Bb({},S)).__v=S.__v+1,qF(A,S,v,d.__n,A.ownerSVGElement!==void 0,S.__h!=null?[E]:null,p,E??J6(S),S.__h),GY(p,S),S.__e!=E&&zY(S)),Jv.length>a&&Jv.sort(function($,L){return $.__v.__b-L.__v.__b}));f7.__r=0}function UY(i,a,d,p,v,S,E,A,$,L){var z,se,oe,Z,X,le,J,me=p&&p.__k||FY,ie=me.length;for(d.__k=[],z=0;z<a.length;z++)if((Z=d.__k[z]=(Z=a[z])==null||typeof Z=="boolean"?null:typeof Z=="string"||typeof Z=="number"||typeof Z=="bigint"?u7(null,Z,null,null,Z):Array.isArray(Z)?u7(ql,{children:Z},null,null,null):Z.__b>0?u7(Z.type,Z.props,Z.key,Z.ref?Z.ref:null,Z.__v):Z)!=null){if(Z.__=d,Z.__b=d.__b+1,(oe=me[z])===null||oe&&Z.key==oe.key&&Z.type===oe.type)me[z]=void 0;else for(se=0;se<ie;se++){if((oe=me[se])&&Z.key==oe.key&&Z.type===oe.type){me[se]=void 0;break}oe=null}qF(i,Z,oe=oe||c7,v,S,E,A,$,L),X=Z.__e,(se=Z.ref)&&oe.ref!=se&&(J||(J=[]),oe.ref&&J.push(oe.ref,null,Z),J.push(se,Z.__c||X,Z)),X!=null?(le==null&&(le=X),typeof Z.type=="function"&&Z.__k===oe.__k?Z.__d=$=WY(Z,$,i):$=jY(i,Z,oe,me,X,$),typeof d.type=="function"&&(d.__d=$)):$&&oe.__e==$&&$.parentNode!=i&&($=J6(oe))}for(d.__e=le,z=ie;z--;)me[z]!=null&&(typeof d.type=="function"&&me[z].__e!=null&&me[z].__e==d.__d&&(d.__d=ZY(p).nextSibling),KY(me[z],me[z]));if(J)for(z=0;z<J.length;z++)qY(J[z],J[++z],J[++z])}function WY(i,a,d){for(var p,v=i.__k,S=0;v&&S<v.length;S++)(p=v[S])&&(p.__=i,a=typeof p.type=="function"?WY(p,a,d):jY(d,p,p,v,p.__e,a));return a}function m7(i,a){return a=a||[],i==null||typeof i=="boolean"||(Array.isArray(i)?i.some(function(d){m7(d,a)}):a.push(i)),a}function jY(i,a,d,p,v,S){var E,A,$;if(a.__d!==void 0)E=a.__d,a.__d=void 0;else if(d==null||v!=S||v.parentNode==null)e:if(S==null||S.parentNode!==i)i.appendChild(v),E=null;else{for(A=S,$=0;(A=A.nextSibling)&&$<p.length;$+=1)if(A==v)break e;i.insertBefore(v,S),E=S}return E!==void 0?E:v.nextSibling}function ZY(i){var a,d,p;if(i.type==null||typeof i.type=="string")return i.__e;if(i.__k){for(a=i.__k.length-1;a>=0;a--)if((d=i.__k[a])&&(p=ZY(d)))return p}return null}function qF(i,a,d,p,v,S,E,A,$){var L,z,se,oe,Z,X,le,J,me,ie,G,we,wt,Ve,K,De=a.type;if(a.constructor!==void 0)return null;d.__h!=null&&($=d.__h,A=a.__e=d.__e,a.__h=null,S=[A]),(L=Cs.__b)&&L(a);try{e:if(typeof De=="function"){if(J=a.props,me=(L=De.contextType)&&p[L.__c],ie=L?me?me.props.value:L.__:p,d.__c?le=(z=a.__c=d.__c).__=z.__E:("prototype"in De&&De.prototype.render?a.__c=z=new De(J,ie):(a.__c=z=new em(J,ie),z.constructor=De,z.render=ise),me&&me.sub(z),z.props=J,z.state||(z.state={}),z.context=ie,z.__n=p,se=z.__d=!0,z.__h=[],z._sb=[]),z.__s==null&&(z.__s=z.state),De.getDerivedStateFromProps!=null&&(z.__s==z.state&&(z.__s=Bb({},z.__s)),Bb(z.__s,De.getDerivedStateFromProps(J,z.__s))),oe=z.props,Z=z.state,z.__v=a,se)De.getDerivedStateFromProps==null&&z.componentWillMount!=null&&z.componentWillMount(),z.componentDidMount!=null&&z.__h.push(z.componentDidMount);else{if(De.getDerivedStateFromProps==null&&J!==oe&&z.componentWillReceiveProps!=null&&z.componentWillReceiveProps(J,ie),!z.__e&&z.shouldComponentUpdate!=null&&z.shouldComponentUpdate(J,z.__s,ie)===!1||a.__v===d.__v){for(a.__v!==d.__v&&(z.props=J,z.state=z.__s,z.__d=!1),a.__e=d.__e,a.__k=d.__k,a.__k.forEach(function(tt){tt&&(tt.__=a)}),G=0;G<z._sb.length;G++)z.__h.push(z._sb[G]);z._sb=[],z.__h.length&&E.push(z);break e}z.componentWillUpdate!=null&&z.componentWillUpdate(J,z.__s,ie),z.componentDidUpdate!=null&&z.__h.push(function(){z.componentDidUpdate(oe,Z,X)})}if(z.context=ie,z.props=J,z.__P=i,we=Cs.__r,wt=0,"prototype"in De&&De.prototype.render){for(z.state=z.__s,z.__d=!1,we&&we(a),L=z.render(z.props,z.state,z.context),Ve=0;Ve<z._sb.length;Ve++)z.__h.push(z._sb[Ve]);z._sb=[]}else do z.__d=!1,we&&we(a),L=z.render(z.props,z.state,z.context),z.state=z.__s;while(z.__d&&++wt<25);z.state=z.__s,z.getChildContext!=null&&(p=Bb(Bb({},p),z.getChildContext())),se||z.getSnapshotBeforeUpdate==null||(X=z.getSnapshotBeforeUpdate(oe,Z)),K=L!=null&&L.type===ql&&L.key==null?L.props.children:L,UY(i,Array.isArray(K)?K:[K],a,d,p,v,S,E,A,$),z.base=a.__e,a.__h=null,z.__h.length&&E.push(z),le&&(z.__E=z.__=null),z.__e=!1}else S==null&&a.__v===d.__v?(a.__k=d.__k,a.__e=d.__e):a.__e=lse(d.__e,a,d,p,v,S,E,$);(L=Cs.diffed)&&L(a)}catch(tt){a.__v=null,($||S!=null)&&(a.__e=A,a.__h=!!$,S[S.indexOf(A)]=null),Cs.__e(tt,a,d)}}function GY(i,a){Cs.__c&&Cs.__c(a,i),i.some(function(d){try{i=d.__h,d.__h=[],i.some(function(p){p.call(d)})}catch(p){Cs.__e(p,d.__v)}})}function lse(i,a,d,p,v,S,E,A){var $,L,z,se=d.props,oe=a.props,Z=a.type,X=0;if(Z==="svg"&&(v=!0),S!=null){for(;X<S.length;X++)if(($=S[X])&&"setAttribute"in $==!!Z&&(Z?$.localName===Z:$.nodeType===3)){i=$,S[X]=null;break}}if(i==null){if(Z===null)return document.createTextNode(oe);i=v?document.createElementNS("http://www.w3.org/2000/svg",Z):document.createElement(Z,oe.is&&oe),S=null,A=!1}if(Z===null)se===oe||A&&i.data===oe||(i.data=oe);else{if(S=S&&i7.call(i.childNodes),L=(se=d.props||c7).dangerouslySetInnerHTML,z=oe.dangerouslySetInnerHTML,!A){if(S!=null)for(se={},X=0;X<i.attributes.length;X++)se[i.attributes[X].name]=i.attributes[X].value;(z||L)&&(z&&(L&&z.__html==L.__html||z.__html===i.innerHTML)||(i.innerHTML=z&&z.__html||""))}if(rse(i,oe,se,v,A),z)a.__k=[];else if(X=a.props.children,UY(i,Array.isArray(X)?X:[X],a,d,p,v&&Z!=="foreignObject",S,E,S?S[0]:d.__k&&J6(d,0),A),S!=null)for(X=S.length;X--;)S[X]!=null&&$Y(S[X]);A||("value"in oe&&(X=oe.value)!==void 0&&(X!==i.value||Z==="progress"&&!X||Z==="option"&&X!==se.value)&&d7(i,"value",X,se.value,!1),"checked"in oe&&(X=oe.checked)!==void 0&&X!==i.checked&&d7(i,"checked",X,se.checked,!1))}return i}function qY(i,a,d){try{typeof i=="function"?i(a):i.current=a}catch(p){Cs.__e(p,d)}}function KY(i,a,d){var p,v;if(Cs.unmount&&Cs.unmount(i),(p=i.ref)&&(p.current&&p.current!==i.__e||qY(p,null,a)),(p=i.__c)!=null){if(p.componentWillUnmount)try{p.componentWillUnmount()}catch(S){Cs.__e(S,a)}p.base=p.__P=null,i.__c=void 0}if(p=i.__k)for(v=0;v<p.length;v++)p[v]&&KY(p[v],a,d||typeof i.type!="function");d||i.__e==null||$Y(i.__e),i.__=i.__e=i.__d=void 0}function ise(i,a,d){return this.constructor(i,d)}function ek(i,a,d){var p,v,S;Cs.__&&Cs.__(i,a),v=(p=typeof d=="function")?null:d&&d.__k||a.__k,S=[],qF(a,i=(!p&&d||a).__k=Qe(ql,null,[i]),v||c7,c7,a.ownerSVGElement!==void 0,!p&&d?[d]:v?null:a.firstChild?i7.call(a.childNodes):null,S,!p&&d?d:v?v.__e:a.firstChild,p),GY(S,i)}function cse(i,a){var d={__c:a="__cC"+PY++,__:i,Consumer:function(p,v){return p.children(v)},Provider:function(p){var v,S;return this.getChildContext||(v=[],(S={})[a]=this,this.getChildContext=function(){return S},this.shouldComponentUpdate=function(E){this.props.value!==E.value&&v.some(function(A){A.__e=!0,GF(A)})},this.sub=function(E){v.push(E);var A=E.componentWillUnmount;E.componentWillUnmount=function(){v.splice(v.indexOf(E),1),A&&A.call(E)}}),p.children}};return d.Provider.__=d.Consumer.contextType=d}i7=FY.slice,Cs={__e:function(i,a,d,p){for(var v,S,E;a=a.__;)if((v=a.__c)&&!v.__)try{if((S=v.constructor)&&S.getDerivedStateFromError!=null&&(v.setState(S.getDerivedStateFromError(i)),E=v.__d),v.componentDidCatch!=null&&(v.componentDidCatch(i,p||{}),E=v.__d),E)return v.__E=v}catch(A){i=A}throw i}},OY=0,BY=function(i){return i!=null&&i.constructor===void 0},R3=!1,em.prototype.setState=function(i,a){var d;d=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Bb({},this.state),typeof i=="function"&&(i=i(Bb({},d),this.props)),i&&Bb(d,i),i!=null&&this.__v&&(a&&this._sb.push(a),GF(this))},em.prototype.forceUpdate=function(i){this.__v&&(this.__e=!0,i&&this.__h.push(i),GF(this))},em.prototype.render=ql,Jv=[],IY=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f7.__r=0,PY=0;var ig,KF,YY,XY=[],YF=[],QY=Cs.__b,JY=Cs.__r,eX=Cs.diffed,tX=Cs.__c,nX=Cs.unmount;function use(){for(var i;i=XY.shift();)if(i.__P&&i.__H)try{i.__H.__h.forEach(h7),i.__H.__h.forEach(XF),i.__H.__h=[]}catch(a){i.__H.__h=[],Cs.__e(a,i.__v)}}Cs.__b=function(i){ig=null,QY&&QY(i)},Cs.__r=function(i){JY&&JY(i);var a=(ig=i.__c).__H;a&&(KF===ig?(a.__h=[],ig.__h=[],a.__.forEach(function(d){d.__N&&(d.__=d.__N),d.__V=YF,d.__N=d.i=void 0})):(a.__h.forEach(h7),a.__h.forEach(XF),a.__h=[])),KF=ig},Cs.diffed=function(i){eX&&eX(i);var a=i.__c;a&&a.__H&&(a.__H.__h.length&&(XY.push(a)!==1&&YY===Cs.requestAnimationFrame||((YY=Cs.requestAnimationFrame)||dse)(use)),a.__H.__.forEach(function(d){d.i&&(d.__H=d.i),d.__V!==YF&&(d.__=d.__V),d.i=void 0,d.__V=YF})),KF=ig=null},Cs.__c=function(i,a){a.some(function(d){try{d.__h.forEach(h7),d.__h=d.__h.filter(function(p){return!p.__||XF(p)})}catch(p){a.some(function(v){v.__h&&(v.__h=[])}),a=[],Cs.__e(p,d.__v)}}),tX&&tX(i,a)},Cs.unmount=function(i){nX&&nX(i);var a,d=i.__c;d&&d.__H&&(d.__H.__.forEach(function(p){try{h7(p)}catch(v){a=v}}),d.__H=void 0,a&&Cs.__e(a,d.__v))};var oX=typeof requestAnimationFrame=="function";function dse(i){var a,d=function(){clearTimeout(p),oX&&cancelAnimationFrame(a),setTimeout(i)},p=setTimeout(d,100);oX&&(a=requestAnimationFrame(d))}function h7(i){var a=ig,d=i.__c;typeof d=="function"&&(i.__c=void 0,d()),ig=a}function XF(i){var a=ig;i.__c=i.__(),ig=a}function fse(i,a){for(var d in a)i[d]=a[d];return i}function sX(i,a){for(var d in i)if(d!=="__source"&&!(d in a))return!0;for(var p in a)if(p!=="__source"&&i[p]!==a[p])return!0;return!1}function rX(i){this.props=i}(rX.prototype=new em).isPureReactComponent=!0,rX.prototype.shouldComponentUpdate=function(i,a){return sX(this.props,i)||sX(this.state,a)};var aX=Cs.__b;Cs.__b=function(i){i.type&&i.type.__f&&i.ref&&(i.props.ref=i.ref,i.ref=null),aX&&aX(i)};var mse=Cs.__e;Cs.__e=function(i,a,d,p){if(i.then){for(var v,S=a;S=S.__;)if((v=S.__c)&&v.__c)return a.__e==null&&(a.__e=d.__e,a.__k=d.__k),v.__c(i,a)}mse(i,a,d,p)};var lX=Cs.unmount;function iX(i,a,d){return i&&(i.__c&&i.__c.__H&&(i.__c.__H.__.forEach(function(p){typeof p.__c=="function"&&p.__c()}),i.__c.__H=null),(i=fse({},i)).__c!=null&&(i.__c.__P===d&&(i.__c.__P=a),i.__c=null),i.__k=i.__k&&i.__k.map(function(p){return iX(p,a,d)})),i}function cX(i,a,d){return i&&(i.__v=null,i.__k=i.__k&&i.__k.map(function(p){return cX(p,a,d)}),i.__c&&i.__c.__P===a&&(i.__e&&d.insertBefore(i.__e,i.__d),i.__c.__e=!0,i.__c.__P=d)),i}function QF(){this.__u=0,this.t=null,this.__b=null}function uX(i){var a=i.__.__c;return a&&a.__a&&a.__a(i)}function p7(){this.u=null,this.o=null}Cs.unmount=function(i){var a=i.__c;a&&a.__R&&a.__R(),a&&i.__h===!0&&(i.type=null),lX&&lX(i)},(QF.prototype=new em).__c=function(i,a){var d=a.__c,p=this;p.t==null&&(p.t=[]),p.t.push(d);var v=uX(p.__v),S=!1,E=function(){S||(S=!0,d.__R=null,v?v(A):A())};d.__R=E;var A=function(){if(!--p.__u){if(p.state.__a){var L=p.state.__a;p.__v.__k[0]=cX(L,L.__c.__P,L.__c.__O)}var z;for(p.setState({__a:p.__b=null});z=p.t.pop();)z.forceUpdate()}},$=a.__h===!0;p.__u++||$||p.setState({__a:p.__b=p.__v.__k[0]}),i.then(E,E)},QF.prototype.componentWillUnmount=function(){this.t=[]},QF.prototype.render=function(i,a){if(this.__b){if(this.__v.__k){var d=document.createElement("div"),p=this.__v.__k[0].__c;this.__v.__k[0]=iX(this.__b,d,p.__O=p.__P)}this.__b=null}var v=a.__a&&Qe(ql,null,i.fallback);return v&&(v.__h=null),[Qe(ql,null,a.__a?null:i.children),v]};var dX=function(i,a,d){if(++d[1]===d[0]&&i.o.delete(a),i.props.revealOrder&&(i.props.revealOrder[0]!=="t"||!i.o.size))for(d=i.u;d;){for(;d.length>3;)d.pop()();if(d[1]<d[0])break;i.u=d=d[2]}};function hse(i){return this.getChildContext=function(){return i.context},i.children}function pse(i){var a=this,d=i.i;a.componentWillUnmount=function(){ek(null,a.l),a.l=null,a.i=null},a.i&&a.i!==d&&a.componentWillUnmount(),i.__v?(a.l||(a.i=d,a.l={nodeType:1,parentNode:d,childNodes:[],appendChild:function(p){this.childNodes.push(p),a.i.appendChild(p)},insertBefore:function(p,v){this.childNodes.push(p),a.i.appendChild(p)},removeChild:function(p){this.childNodes.splice(this.childNodes.indexOf(p)>>>1,1),a.i.removeChild(p)}}),ek(Qe(hse,{context:a.context},i.__v),a.l)):a.l&&a.componentWillUnmount()}function gse(i,a){var d=Qe(pse,{__v:i,i:a});return d.containerInfo=a,d}(p7.prototype=new em).__a=function(i){var a=this,d=uX(a.__v),p=a.o.get(i);return p[0]++,function(v){var S=function(){a.props.revealOrder?(p.push(v),dX(a,i,p)):v()};d?d(S):S()}},p7.prototype.render=function(i){this.u=null,this.o=new Map;var a=m7(i.children);i.revealOrder&&i.revealOrder[0]==="b"&&a.reverse();for(var d=a.length;d--;)this.o.set(a[d],this.u=[1,0,this.u]);return i.children},p7.prototype.componentDidUpdate=p7.prototype.componentDidMount=function(){var i=this;this.o.forEach(function(a,d){dX(i,d,a)})};var bse=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,yse=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,vse=typeof document<"u",Cse=function(i){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(i)};em.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(i){Object.defineProperty(em.prototype,i,{configurable:!0,get:function(){return this["UNSAFE_"+i]},set:function(a){Object.defineProperty(this,i,{configurable:!0,writable:!0,value:a})}})});var fX=Cs.event;function wse(){}function _se(){return this.cancelBubble}function Sse(){return this.defaultPrevented}Cs.event=function(i){return fX&&(i=fX(i)),i.persist=wse,i.isPropagationStopped=_se,i.isDefaultPrevented=Sse,i.nativeEvent=i};var mX={configurable:!0,get:function(){return this.class}},hX=Cs.vnode;Cs.vnode=function(i){var a=i.type,d=i.props,p=d;if(typeof a=="string"){var v=a.indexOf("-")===-1;for(var S in p={},d){var E=d[S];vse&&S==="children"&&a==="noscript"||S==="value"&&"defaultValue"in d&&E==null||(S==="defaultValue"&&"value"in d&&d.value==null?S="value":S==="download"&&E===!0?E="":/ondoubleclick/i.test(S)?S="ondblclick":/^onchange(textarea|input)/i.test(S+a)&&!Cse(d.type)?S="oninput":/^onfocus$/i.test(S)?S="onfocusin":/^onblur$/i.test(S)?S="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(S)?S=S.toLowerCase():v&&yse.test(S)?S=S.replace(/[A-Z0-9]/g,"-$&").toLowerCase():E===null&&(E=void 0),/^oninput$/i.test(S)&&(S=S.toLowerCase(),p[S]&&(S="oninputCapture")),p[S]=E)}a=="select"&&p.multiple&&Array.isArray(p.value)&&(p.value=m7(d.children).forEach(function(A){A.props.selected=p.value.indexOf(A.props.value)!=-1})),a=="select"&&p.defaultValue!=null&&(p.value=m7(d.children).forEach(function(A){A.props.selected=p.multiple?p.defaultValue.indexOf(A.props.value)!=-1:p.defaultValue==A.props.value})),i.props=p,d.class!=d.className&&(mX.enumerable="className"in d,d.className!=null&&(p.class=d.className),Object.defineProperty(p,"className",mX))}i.$$typeof=bse,hX&&hX(i)};var pX=Cs.__r;Cs.__r=function(i){pX&&pX(i),i.__c};const gX=[],JF=new Map;function e$(i){gX.push(i),JF.forEach(a=>{yX(a,i)})}function xse(i){i.isConnected&&i.getRootNode&&bX(i.getRootNode())}function bX(i){let a=JF.get(i);if(!a||!a.isConnected){if(a=i.querySelector("style[data-fullcalendar]"),!a){a=document.createElement("style"),a.setAttribute("data-fullcalendar","");const d=kse();d&&(a.nonce=d);const p=i===document?document.head:i,v=i===document?p.querySelector("script,link[rel=stylesheet],link[as=style],style"):p.firstChild;p.insertBefore(a,v)}JF.set(i,a),Ese(a)}}function Ese(i){for(const a of gX)yX(i,a)}function yX(i,a){const{sheet:d}=i,p=d.cssRules.length;a.split("}").forEach((v,S)=>{v=v.trim(),v&&d.insertRule(v+"}",p+S)})}let t$;function kse(){return t$===void 0&&(t$=Ase()),t$}function Ase(){const i=document.querySelector('meta[name="csp-nonce"]');if(i&&i.hasAttribute("content"))return i.getAttribute("content");const a=document.querySelector("script[nonce]");return a&&a.nonce||""}typeof document<"u"&&bX(document);var Tse=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';e$(Tse);class n${constructor(a){this.drainedOption=a,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(a){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),a==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),a))}pause(a=""){let{pauseDepths:d}=this;d[a]=(d[a]||0)+1,this.clearTimeout()}resume(a="",d){let{pauseDepths:p}=this;a in p&&(d?delete p[a]:(p[a]-=1,p[a]<=0&&delete p[a]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function o$(i){i.parentNode&&i.parentNode.removeChild(i)}function Vu(i,a){if(i.closest)return i.closest(a);if(!document.documentElement.contains(i))return null;do{if(Dse(i,a))return i;i=i.parentElement||i.parentNode}while(i!==null&&i.nodeType===1);return null}function Dse(i,a){return(i.matches||i.matchesSelector||i.msMatchesSelector).call(i,a)}function Nse(i,a){let d=i instanceof HTMLElement?[i]:i,p=[];for(let v=0;v<d.length;v+=1){let S=d[v].querySelectorAll(a);for(let E=0;E<S.length;E+=1)p.push(S[E])}return p}const Rse=/(top|left|right|bottom|width|height)$/i;function tk(i,a){for(let d in a)vX(i,d,a[d])}function vX(i,a,d){d==null?i.style[a]="":typeof d=="number"&&Rse.test(a)?i.style[a]=`${d}px`:i.style[a]=d}function CX(i){var a,d;return(d=(a=i.composedPath)===null||a===void 0?void 0:a.call(i)[0])!==null&&d!==void 0?d:i.target}let wX=0;function g7(){return wX+=1,"fc-dom-"+wX}function b7(i){i.preventDefault()}function Ose(i,a){return d=>{let p=Vu(d.target,i);p&&a.call(p,d,p)}}function _X(i,a,d,p){let v=Ose(d,p);return i.addEventListener(a,v),()=>{i.removeEventListener(a,v)}}function Bse(i,a,d,p){let v;return _X(i,"mouseover",a,(S,E)=>{if(E!==v){v=E,d(S,E);let A=$=>{v=null,p($,E),E.removeEventListener("mouseleave",A)};E.addEventListener("mouseleave",A)}})}const SX=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Mse(i,a){let d=p=>{a(p),SX.forEach(v=>{i.removeEventListener(v,d)})};SX.forEach(p=>{i.addEventListener(p,d)})}function xX(i){return Object.assign({onClick:i},EX(i))}function EX(i){return{tabIndex:0,onKeyDown(a){(a.key==="Enter"||a.key===" ")&&(i(a),a.preventDefault())}}}let kX=0;function e2(){return kX+=1,String(kX)}function s$(){document.body.classList.add("fc-not-allowed")}function r$(){document.body.classList.remove("fc-not-allowed")}function Ise(i){i.style.userSelect="none",i.style.webkitUserSelect="none",i.addEventListener("selectstart",b7)}function Pse(i){i.style.userSelect="",i.style.webkitUserSelect="",i.removeEventListener("selectstart",b7)}function Fse(i){i.addEventListener("contextmenu",b7)}function $se(i){i.removeEventListener("contextmenu",b7)}function Lse(i){let a=[],d=[],p,v;for(typeof i=="string"?d=i.split(/\s*,\s*/):typeof i=="function"?d=[i]:Array.isArray(i)&&(d=i),p=0;p<d.length;p+=1)v=d[p],typeof v=="string"?a.push(v.charAt(0)==="-"?{field:v.substring(1),order:-1}:{field:v,order:1}):typeof v=="function"&&a.push({func:v});return a}function Vse(i,a,d){let p,v;for(p=0;p<d.length;p+=1)if(v=Hse(i,a,d[p]),v)return v;return 0}function Hse(i,a,d){return d.func?d.func(i,a):zse(i[d.field],a[d.field])*(d.order||1)}function zse(i,a){return!i&&!a?0:a==null?-1:i==null?1:typeof i=="string"||typeof a=="string"?String(i).localeCompare(String(a)):i-a}function O3(i,a){let d=String(i);return"000".substr(0,a-d.length)+d}function nk(i,a,d){return typeof i=="function"?i(...a):typeof i=="string"?a.reduce((p,v,S)=>p.replace("$"+S,v||""),i):d}function Use(i,a){return i-a}function y7(i){return i%1===0}function Wse(i){let a=i.querySelector(".fc-scrollgrid-shrink-frame"),d=i.querySelector(".fc-scrollgrid-shrink-cushion");if(!a)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!d)throw new Error("needs fc-scrollgrid-shrink-cushion className");return i.getBoundingClientRect().width-a.getBoundingClientRect().width+d.getBoundingClientRect().width}const AX=["years","months","days","milliseconds"],jse=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Gr(i,a){return typeof i=="string"?Zse(i):typeof i=="object"&&i?TX(i):typeof i=="number"?TX({[a||"milliseconds"]:i}):null}function Zse(i){let a=jse.exec(i);if(a){let d=a[1]?-1:1;return{years:0,months:0,days:d*(a[2]?parseInt(a[2],10):0),milliseconds:d*((a[3]?parseInt(a[3],10):0)*60*60*1e3+(a[4]?parseInt(a[4],10):0)*60*1e3+(a[5]?parseInt(a[5],10):0)*1e3+(a[6]?parseInt(a[6],10):0))}}return null}function TX(i){let a={years:i.years||i.year||0,months:i.months||i.month||0,days:i.days||i.day||0,milliseconds:(i.hours||i.hour||0)*60*60*1e3+(i.minutes||i.minute||0)*60*1e3+(i.seconds||i.second||0)*1e3+(i.milliseconds||i.millisecond||i.ms||0)},d=i.weeks||i.week;return d&&(a.days+=d*7,a.specifiedWeeks=!0),a}function Gse(i,a){return i.years===a.years&&i.months===a.months&&i.days===a.days&&i.milliseconds===a.milliseconds}function a$(i,a){return{years:i.years+a.years,months:i.months+a.months,days:i.days+a.days,milliseconds:i.milliseconds+a.milliseconds}}function qse(i,a){return{years:i.years-a.years,months:i.months-a.months,days:i.days-a.days,milliseconds:i.milliseconds-a.milliseconds}}function Kse(i,a){return{years:i.years*a,months:i.months*a,days:i.days*a,milliseconds:i.milliseconds*a}}function Yse(i){return B3(i)/365}function Xse(i){return B3(i)/30}function B3(i){return Zh(i)/864e5}function Zh(i){return i.years*(365*864e5)+i.months*(30*864e5)+i.days*864e5+i.milliseconds}function l$(i,a){let d=null;for(let p=0;p<AX.length;p+=1){let v=AX[p];if(a[v]){let S=i[v]/a[v];if(!y7(S)||d!==null&&d!==S)return null;d=S}else if(i[v])return null}return d}function i$(i){let a=i.milliseconds;if(a){if(a%1e3!==0)return{unit:"millisecond",value:a};if(a%(1e3*60)!==0)return{unit:"second",value:a/1e3};if(a%(1e3*60*60)!==0)return{unit:"minute",value:a/(1e3*60)};if(a)return{unit:"hour",value:a/(1e3*60*60)}}return i.days?i.specifiedWeeks&&i.days%7===0?{unit:"week",value:i.days/7}:{unit:"day",value:i.days}:i.months?{unit:"month",value:i.months}:i.years?{unit:"year",value:i.years}:{unit:"millisecond",value:0}}function Mb(i,a,d){if(i===a)return!0;let p=i.length,v;if(p!==a.length)return!1;for(v=0;v<p;v+=1)if(!(d?d(i[v],a[v]):i[v]===a[v]))return!1;return!0}const Qse=["sun","mon","tue","wed","thu","fri","sat"];function DX(i,a){let d=Pb(i);return d[2]+=a*7,df(d)}function Hu(i,a){let d=Pb(i);return d[2]+=a,df(d)}function Ib(i,a){let d=Pb(i);return d[6]+=a,df(d)}function Jse(i,a){return t2(i,a)/7}function t2(i,a){return(a.valueOf()-i.valueOf())/(1e3*60*60*24)}function ere(i,a){return(a.valueOf()-i.valueOf())/(1e3*60*60)}function tre(i,a){return(a.valueOf()-i.valueOf())/(1e3*60)}function nre(i,a){return(a.valueOf()-i.valueOf())/1e3}function ore(i,a){let d=kl(i),p=kl(a);return{years:0,months:0,days:Math.round(t2(d,p)),milliseconds:a.valueOf()-p.valueOf()-(i.valueOf()-d.valueOf())}}function sre(i,a){let d=v7(i,a);return d!==null&&d%7===0?d/7:null}function v7(i,a){return Fb(i)===Fb(a)?Math.round(t2(i,a)):null}function kl(i){return df([i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()])}function rre(i){return df([i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours()])}function are(i){return df([i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes()])}function lre(i){return df([i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds()])}function ire(i,a,d){let p=i.getUTCFullYear(),v=c$(i,p,a,d);if(v<1)return c$(i,p-1,a,d);let S=c$(i,p+1,a,d);return S>=1?Math.min(v,S):v}function c$(i,a,d,p){let v=df([a,0,1+cre(a,d,p)]),S=kl(i),E=Math.round(t2(v,S));return Math.floor(E/7)+1}function cre(i,a,d){let p=7+a-d;return-((7+df([i,0,p]).getUTCDay()-a)%7)+p-1}function NX(i){return[i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()]}function RX(i){return new Date(i[0],i[1]||0,i[2]==null?1:i[2],i[3]||0,i[4]||0,i[5]||0)}function Pb(i){return[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()]}function df(i){return i.length===1&&(i=i.concat([0])),new Date(Date.UTC(...i))}function OX(i){return!isNaN(i.valueOf())}function Fb(i){return i.getUTCHours()*1e3*60*60+i.getUTCMinutes()*1e3*60+i.getUTCSeconds()*1e3+i.getUTCMilliseconds()}function BX(i,a,d=!1){let p=i.toISOString();return p=p.replace(".000",""),d&&(p=p.replace("T00:00:00Z","")),p.length>10&&(a==null?p=p.replace("Z",""):a!==0&&(p=p.replace("Z",d$(a,!0)))),p}function u$(i){return i.toISOString().replace(/T.*$/,"")}function ure(i){return i.toISOString().match(/^\d{4}-\d{2}/)[0]}function dre(i){return O3(i.getUTCHours(),2)+":"+O3(i.getUTCMinutes(),2)+":"+O3(i.getUTCSeconds(),2)}function d$(i,a=!1){let d=i<0?"-":"+",p=Math.abs(i),v=Math.floor(p/60),S=Math.round(p%60);return a?`${d+O3(v,2)}:${O3(S,2)}`:`GMT${d}${v}${S?`:${O3(S,2)}`:""}`}function Ts(i,a,d){let p,v;return function(...S){if(!p)v=i.apply(this,S);else if(!Mb(p,S)){d&&d(v);let E=i.apply(this,S);(!a||!a(E,v))&&(v=E)}return p=S,v}}function C7(i,a,d){let p,v;return S=>{if(!p)v=i.call(this,S);else if(!cg(p,S)){d&&d(v);let E=i.call(this,S);(!a||!a(E,v))&&(v=E)}return p=S,v}}const MX={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},w7={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},_7=/\s*([ap])\.?m\.?/i,fre=/,/g,mre=/\s+/g,hre=/\u200e/g,pre=/UTC|GMT/;class gre{constructor(a){let d={},p={},v=0;for(let S in a)S in MX?(p[S]=a[S],v=Math.max(MX[S],v)):(d[S]=a[S],S in w7&&(v=Math.max(w7[S],v)));this.standardDateProps=d,this.extendedSettings=p,this.severity=v,this.buildFormattingFunc=Ts(IX)}format(a,d){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,d)(a)}formatRange(a,d,p,v){let{standardDateProps:S,extendedSettings:E}=this,A=_re(a.marker,d.marker,p.calendarSystem);if(!A)return this.format(a,p);let $=A;$>1&&(S.year==="numeric"||S.year==="2-digit")&&(S.month==="numeric"||S.month==="2-digit")&&(S.day==="numeric"||S.day==="2-digit")&&($=1);let L=this.format(a,p),z=this.format(d,p);if(L===z)return L;let se=Sre(S,$),oe=IX(se,E,p),Z=oe(a),X=oe(d),le=xre(L,Z,z,X),J=E.separator||v||p.defaultSeparator||"";return le?le.before+Z+J+X+le.after:L+J+z}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function IX(i,a,d){let p=Object.keys(i).length;return p===1&&i.timeZoneName==="short"?v=>d$(v.timeZoneOffset):p===0&&a.week?v=>wre(d.computeWeekNumber(v.marker),d.weekText,d.weekTextLong,d.locale,a.week):bre(i,a,d)}function bre(i,a,d){i=Object.assign({},i),a=Object.assign({},a),yre(i,a),i.timeZone="UTC";let p=new Intl.DateTimeFormat(d.locale.codes,i),v;if(a.omitZeroMinute){let S=Object.assign({},i);delete S.minute,v=new Intl.DateTimeFormat(d.locale.codes,S)}return S=>{let{marker:E}=S,A;v&&!E.getUTCMinutes()?A=v:A=p;let $=A.format(E);return vre($,S,i,a,d)}}function yre(i,a){i.timeZoneName&&(i.hour||(i.hour="2-digit"),i.minute||(i.minute="2-digit")),i.timeZoneName==="long"&&(i.timeZoneName="short"),a.omitZeroMinute&&(i.second||i.millisecond)&&delete a.omitZeroMinute}function vre(i,a,d,p,v){return i=i.replace(hre,""),d.timeZoneName==="short"&&(i=Cre(i,v.timeZone==="UTC"||a.timeZoneOffset==null?"UTC":d$(a.timeZoneOffset))),p.omitCommas&&(i=i.replace(fre,"").trim()),p.omitZeroMinute&&(i=i.replace(":00","")),p.meridiem===!1?i=i.replace(_7,"").trim():p.meridiem==="narrow"?i=i.replace(_7,(S,E)=>E.toLocaleLowerCase()):p.meridiem==="short"?i=i.replace(_7,(S,E)=>`${E.toLocaleLowerCase()}m`):p.meridiem==="lowercase"&&(i=i.replace(_7,S=>S.toLocaleLowerCase())),i=i.replace(mre," "),i=i.trim(),i}function Cre(i,a){let d=!1;return i=i.replace(pre,()=>(d=!0,a)),d||(i+=` ${a}`),i}function wre(i,a,d,p,v){let S=[];return v==="long"?S.push(d):(v==="short"||v==="narrow")&&S.push(a),(v==="long"||v==="short")&&S.push(" "),S.push(p.simpleNumberFormat.format(i)),p.options.direction==="rtl"&&S.reverse(),S.join("")}function _re(i,a,d){return d.getMarkerYear(i)!==d.getMarkerYear(a)?5:d.getMarkerMonth(i)!==d.getMarkerMonth(a)?4:d.getMarkerDay(i)!==d.getMarkerDay(a)?2:Fb(i)!==Fb(a)?1:0}function Sre(i,a){let d={};for(let p in i)(!(p in w7)||w7[p]<=a)&&(d[p]=i[p]);return d}function xre(i,a,d,p){let v=0;for(;v<i.length;){let S=i.indexOf(a,v);if(S===-1)break;let E=i.substr(0,S);v=S+a.length;let A=i.substr(v),$=0;for(;$<d.length;){let L=d.indexOf(p,$);if(L===-1)break;let z=d.substr(0,L);$=L+p.length;let se=d.substr($);if(E===z&&A===se)return{before:E,after:A}}}return null}function PX(i,a){let d=a.markerToArray(i.marker);return{marker:i.marker,timeZoneOffset:i.timeZoneOffset,array:d,year:d[0],month:d[1],day:d[2],hour:d[3],minute:d[4],second:d[5],millisecond:d[6]}}function S7(i,a,d,p){let v=PX(i,d.calendarSystem),S=a?PX(a,d.calendarSystem):null;return{date:v,start:v,end:S,timeZone:d.timeZone,localeCodes:d.locale.codes,defaultSeparator:p||d.defaultSeparator}}class Ere{constructor(a){this.cmdStr=a}format(a,d,p){return d.cmdFormatter(this.cmdStr,S7(a,null,d,p))}formatRange(a,d,p,v){return p.cmdFormatter(this.cmdStr,S7(a,d,p,v))}}class kre{constructor(a){this.func=a}format(a,d,p){return this.func(S7(a,null,d,p))}formatRange(a,d,p,v){return this.func(S7(a,d,p,v))}}function Ci(i){return typeof i=="object"&&i?new gre(i):typeof i=="string"?new Ere(i):typeof i=="function"?new kre(i):null}const FX={navLinkDayClick:jt,navLinkWeekClick:jt,duration:Gr,bootstrapFontAwesome:jt,buttonIcons:jt,customButtons:jt,defaultAllDayEventDuration:Gr,defaultTimedEventDuration:Gr,nextDayThreshold:Gr,scrollTime:Gr,scrollTimeReset:Boolean,slotMinTime:Gr,slotMaxTime:Gr,dayPopoverFormat:Ci,slotDuration:Gr,snapDuration:Gr,headerToolbar:jt,footerToolbar:jt,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Ci,dayHeaderClassNames:jt,dayHeaderContent:jt,dayHeaderDidMount:jt,dayHeaderWillUnmount:jt,dayCellClassNames:jt,dayCellContent:jt,dayCellDidMount:jt,dayCellWillUnmount:jt,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:jt,weekNumbers:Boolean,weekNumberClassNames:jt,weekNumberContent:jt,weekNumberDidMount:jt,weekNumberWillUnmount:jt,editable:Boolean,viewClassNames:jt,viewDidMount:jt,viewWillUnmount:jt,nowIndicator:Boolean,nowIndicatorClassNames:jt,nowIndicatorContent:jt,nowIndicatorDidMount:jt,nowIndicatorWillUnmount:jt,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:jt,locale:jt,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:jt,eventOrder:Lse,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:jt,contentHeight:jt,direction:String,weekNumberFormat:Ci,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:jt,initialDate:jt,now:jt,eventDataTransform:jt,stickyHeaderDates:jt,stickyFooterScrollbar:jt,viewHeight:jt,defaultAllDay:Boolean,eventSourceFailure:jt,eventSourceSuccess:jt,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:jt,eventConstraint:jt,eventAllow:jt,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:jt,eventContent:jt,eventDidMount:jt,eventWillUnmount:jt,selectConstraint:jt,selectOverlap:jt,selectAllow:jt,droppable:Boolean,unselectCancel:String,slotLabelFormat:jt,slotLaneClassNames:jt,slotLaneContent:jt,slotLaneDidMount:jt,slotLaneWillUnmount:jt,slotLabelClassNames:jt,slotLabelContent:jt,slotLabelDidMount:jt,slotLabelWillUnmount:jt,dayMaxEvents:jt,dayMaxEventRows:jt,dayMinWidth:Number,slotLabelInterval:Gr,allDayText:String,allDayClassNames:jt,allDayContent:jt,allDayDidMount:jt,allDayWillUnmount:jt,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Ci,rerenderDelay:Number,moreLinkText:jt,moreLinkHint:jt,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:jt,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Gr,hiddenDays:jt,fixedWeekCount:Boolean,validRange:jt,visibleRange:jt,titleFormat:jt,eventInteractive:Boolean,noEventsText:String,viewHint:jt,navLinkHint:jt,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:jt,moreLinkClassNames:jt,moreLinkContent:jt,moreLinkDidMount:jt,moreLinkWillUnmount:jt,monthStartFormat:Ci,handleCustomRendering:jt,customRenderingMetaMap:jt,customRenderingReplaces:Boolean},ok={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},$X={datesSet:jt,eventsSet:jt,eventAdd:jt,eventChange:jt,eventRemove:jt,windowResize:jt,eventClick:jt,eventMouseEnter:jt,eventMouseLeave:jt,select:jt,unselect:jt,loading:jt,_unmount:jt,_beforeprint:jt,_afterprint:jt,_noEventDrop:jt,_noEventResize:jt,_resize:jt,_scrollRequest:jt},LX={buttonText:jt,buttonHints:jt,views:jt,plugins:jt,initialEvents:jt,events:jt,eventSources:jt},n2={headerToolbar:o2,footerToolbar:o2,buttonText:o2,buttonHints:o2,buttonIcons:o2,dateIncrement:o2,plugins:x7,events:x7,eventSources:x7,resources:x7};function o2(i,a){return typeof i=="object"&&typeof a=="object"&&i&&a?cg(i,a):i===a}function x7(i,a){return Array.isArray(i)&&Array.isArray(a)?Mb(i,a):i===a}const Are={type:String,component:jt,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:jt,usesMinMaxTime:Boolean,classNames:jt,content:jt,didMount:jt,willUnmount:jt};function f$(i){return h$(i,n2)}function m$(i,a){let d={},p={};for(let v in a)v in i&&(d[v]=a[v](i[v]));for(let v in i)v in a||(p[v]=i[v]);return{refined:d,extra:p}}function jt(i){return i}const{hasOwnProperty:E7}=Object.prototype;function h$(i,a){let d={};if(a){for(let p in a)if(a[p]===o2){let v=[];for(let S=i.length-1;S>=0;S-=1){let E=i[S][p];if(typeof E=="object"&&E)v.unshift(E);else if(E!==void 0){d[p]=E;break}}v.length&&(d[p]=h$(v))}}for(let p=i.length-1;p>=0;p-=1){let v=i[p];for(let S in v)S in d||(d[S]=v[S])}return d}function s2(i,a){let d={};for(let p in i)a(i[p],p)&&(d[p]=i[p]);return d}function $1(i,a){let d={};for(let p in i)d[p]=a(i[p],p);return d}function VX(i){let a={};for(let d of i)a[d]=!0;return a}function p$(i){let a=[];for(let d in i)a.push(i[d]);return a}function cg(i,a){if(i===a)return!0;for(let d in i)if(E7.call(i,d)&&!(d in a))return!1;for(let d in a)if(E7.call(a,d)&&i[d]!==a[d])return!1;return!0}const Tre=/^on[A-Z]/;function Dre(i,a){const d=g$(i,a);for(let p of d)if(!Tre.test(p))return!1;return!0}function g$(i,a){let d=[];for(let p in i)E7.call(i,p)&&(p in a||d.push(p));for(let p in a)E7.call(a,p)&&i[p]!==a[p]&&d.push(p);return d}function b$(i,a,d={}){if(i===a)return!0;for(let p in a)if(!(p in i&&Nre(i[p],a[p],d[p])))return!1;for(let p in i)if(!(p in a))return!1;return!0}function Nre(i,a,d){return i===a||d===!0?!0:d?d(i,a):!1}function Rre(i,a=0,d,p=1){let v=[];d==null&&(d=Object.keys(i).length);for(let S=a;S<d;S+=p){let E=i[S];E!==void 0&&v.push(E)}return v}let HX={};function Ore(i,a){HX[i]=a}function Bre(i){return new HX[i]}class Mre{getMarkerYear(a){return a.getUTCFullYear()}getMarkerMonth(a){return a.getUTCMonth()}getMarkerDay(a){return a.getUTCDate()}arrayToMarker(a){return df(a)}markerToArray(a){return Pb(a)}}Ore("gregory",Mre);const Ire=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Pre(i){let a=Ire.exec(i);if(a){let d=new Date(Date.UTC(Number(a[1]),a[3]?Number(a[3])-1:0,Number(a[5]||1),Number(a[7]||0),Number(a[8]||0),Number(a[10]||0),a[12]?+`0.${a[12]}`*1e3:0));if(OX(d)){let p=null;return a[13]&&(p=(a[15]==="-"?-1:1)*(Number(a[16]||0)*60+Number(a[18]||0))),{marker:d,isTimeUnspecified:!a[6],timeZoneOffset:p}}}return null}class Fre{constructor(a){let d=this.timeZone=a.timeZone,p=d!=="local"&&d!=="UTC";a.namedTimeZoneImpl&&p&&(this.namedTimeZoneImpl=new a.namedTimeZoneImpl(d)),this.canComputeOffset=!!(!p||this.namedTimeZoneImpl),this.calendarSystem=Bre(a.calendarSystem),this.locale=a.locale,this.weekDow=a.locale.week.dow,this.weekDoy=a.locale.week.doy,a.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof a.firstDay=="number"&&(this.weekDow=a.firstDay),typeof a.weekNumberCalculation=="function"&&(this.weekNumberFunc=a.weekNumberCalculation),this.weekText=a.weekText!=null?a.weekText:a.locale.options.weekText,this.weekTextLong=(a.weekTextLong!=null?a.weekTextLong:a.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=a.cmdFormatter,this.defaultSeparator=a.defaultSeparator}createMarker(a){let d=this.createMarkerMeta(a);return d===null?null:d.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):df(NX(new Date))}createMarkerMeta(a){if(typeof a=="string")return this.parse(a);let d=null;return typeof a=="number"?d=this.timestampToMarker(a):a instanceof Date?(a=a.valueOf(),isNaN(a)||(d=this.timestampToMarker(a))):Array.isArray(a)&&(d=df(a)),d===null||!OX(d)?null:{marker:d,isTimeUnspecified:!1,forcedTzo:null}}parse(a){let d=Pre(a);if(d===null)return null;let{marker:p}=d,v=null;return d.timeZoneOffset!==null&&(this.canComputeOffset?p=this.timestampToMarker(p.valueOf()-d.timeZoneOffset*60*1e3):v=d.timeZoneOffset),{marker:p,isTimeUnspecified:d.isTimeUnspecified,forcedTzo:v}}getYear(a){return this.calendarSystem.getMarkerYear(a)}getMonth(a){return this.calendarSystem.getMarkerMonth(a)}getDay(a){return this.calendarSystem.getMarkerDay(a)}add(a,d){let p=this.calendarSystem.markerToArray(a);return p[0]+=d.years,p[1]+=d.months,p[2]+=d.days,p[6]+=d.milliseconds,this.calendarSystem.arrayToMarker(p)}subtract(a,d){let p=this.calendarSystem.markerToArray(a);return p[0]-=d.years,p[1]-=d.months,p[2]-=d.days,p[6]-=d.milliseconds,this.calendarSystem.arrayToMarker(p)}addYears(a,d){let p=this.calendarSystem.markerToArray(a);return p[0]+=d,this.calendarSystem.arrayToMarker(p)}addMonths(a,d){let p=this.calendarSystem.markerToArray(a);return p[1]+=d,this.calendarSystem.arrayToMarker(p)}diffWholeYears(a,d){let{calendarSystem:p}=this;return Fb(a)===Fb(d)&&p.getMarkerDay(a)===p.getMarkerDay(d)&&p.getMarkerMonth(a)===p.getMarkerMonth(d)?p.getMarkerYear(d)-p.getMarkerYear(a):null}diffWholeMonths(a,d){let{calendarSystem:p}=this;return Fb(a)===Fb(d)&&p.getMarkerDay(a)===p.getMarkerDay(d)?p.getMarkerMonth(d)-p.getMarkerMonth(a)+(p.getMarkerYear(d)-p.getMarkerYear(a))*12:null}greatestWholeUnit(a,d){let p=this.diffWholeYears(a,d);return p!==null?{unit:"year",value:p}:(p=this.diffWholeMonths(a,d),p!==null?{unit:"month",value:p}:(p=sre(a,d),p!==null?{unit:"week",value:p}:(p=v7(a,d),p!==null?{unit:"day",value:p}:(p=ere(a,d),y7(p)?{unit:"hour",value:p}:(p=tre(a,d),y7(p)?{unit:"minute",value:p}:(p=nre(a,d),y7(p)?{unit:"second",value:p}:{unit:"millisecond",value:d.valueOf()-a.valueOf()}))))))}countDurationsBetween(a,d,p){let v;return p.years&&(v=this.diffWholeYears(a,d),v!==null)?v/Yse(p):p.months&&(v=this.diffWholeMonths(a,d),v!==null)?v/Xse(p):p.days&&(v=v7(a,d),v!==null)?v/B3(p):(d.valueOf()-a.valueOf())/Zh(p)}startOf(a,d){return d==="year"?this.startOfYear(a):d==="month"?this.startOfMonth(a):d==="week"?this.startOfWeek(a):d==="day"?kl(a):d==="hour"?rre(a):d==="minute"?are(a):d==="second"?lre(a):null}startOfYear(a){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(a)])}startOfMonth(a){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(a),this.calendarSystem.getMarkerMonth(a)])}startOfWeek(a){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(a),this.calendarSystem.getMarkerMonth(a),a.getUTCDate()-(a.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(a){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(a)):ire(a,this.weekDow,this.weekDoy)}format(a,d,p={}){return d.format({marker:a,timeZoneOffset:p.forcedTzo!=null?p.forcedTzo:this.offsetForMarker(a)},this)}formatRange(a,d,p,v={}){return v.isEndExclusive&&(d=Ib(d,-1)),p.formatRange({marker:a,timeZoneOffset:v.forcedStartTzo!=null?v.forcedStartTzo:this.offsetForMarker(a)},{marker:d,timeZoneOffset:v.forcedEndTzo!=null?v.forcedEndTzo:this.offsetForMarker(d)},this,v.defaultSeparator)}formatIso(a,d={}){let p=null;return d.omitTimeZoneOffset||(d.forcedTzo!=null?p=d.forcedTzo:p=this.offsetForMarker(a)),BX(a,p,d.omitTime)}timestampToMarker(a){return this.timeZone==="local"?df(NX(new Date(a))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(a):df(this.namedTimeZoneImpl.timestampToArray(a))}offsetForMarker(a){return this.timeZone==="local"?-RX(Pb(a)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Pb(a)):null}toDate(a,d){return this.timeZone==="local"?RX(Pb(a)):this.timeZone==="UTC"?new Date(a.valueOf()):this.namedTimeZoneImpl?new Date(a.valueOf()-this.namedTimeZoneImpl.offsetForArray(Pb(a))*1e3*60):new Date(a.valueOf()-(d||0))}}class sk{constructor(a){this.iconOverrideOption&&this.setIconOverride(a[this.iconOverrideOption])}setIconOverride(a){let d,p;if(typeof a=="object"&&a){d=Object.assign({},this.iconClasses);for(p in a)d[p]=this.applyIconOverridePrefix(a[p]);this.iconClasses=d}else a===!1&&(this.iconClasses={})}applyIconOverridePrefix(a){let d=this.iconOverridePrefix;return d&&a.indexOf(d)!==0&&(a=d+a),a}getClass(a){return this.classes[a]||""}getIconClass(a,d){let p;return d&&this.rtlIconClasses?p=this.rtlIconClasses[a]||this.iconClasses[a]:p=this.iconClasses[a],p?`${this.baseIconClass} ${p}`:""}getCustomButtonIconClass(a){let d;return this.iconOverrideCustomButtonOption&&(d=a[this.iconOverrideCustomButtonOption],d)?`${this.baseIconClass} ${this.applyIconOverridePrefix(d)}`:""}}sk.prototype.classes={},sk.prototype.iconClasses={},sk.prototype.baseIconClass="",sk.prototype.iconOverridePrefix="";function k7(i){i();let a=Cs.debounceRendering,d=[];function p(v){d.push(v)}for(Cs.debounceRendering=p,ek(Qe($re,{}),document.createElement("div"));d.length;)d.shift()();Cs.debounceRendering=a}class $re extends em{render(){return Qe("div",{})}componentDidMount(){this.setState({})}}function zX(i){let a=cse(i),d=a.Provider;return a.Provider=function(){let p=!this.getChildContext,v=d.apply(this,arguments);if(p){let S=[];this.shouldComponentUpdate=E=>{this.props.value!==E.value&&S.forEach(A=>{A.context=E.value,A.forceUpdate()})},this.sub=E=>{S.push(E);let A=E.componentWillUnmount;E.componentWillUnmount=()=>{S.splice(S.indexOf(E),1),A&&A.call(E)}}}return v},a}class Lre{constructor(a,d,p,v){this.execFunc=a,this.emitter=d,this.scrollTime=p,this.scrollTimeReset=v,this.handleScrollRequest=S=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},S),this.drain()},d.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(a){a&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const L1=zX({});function Vre(i,a,d,p,v,S,E,A,$,L,z,se,oe){return{dateEnv:v,options:d,pluginHooks:E,emitter:L,dispatch:A,getCurrentData:$,calendarApi:z,viewSpec:i,viewApi:a,dateProfileGenerator:p,theme:S,isRtl:d.direction==="rtl",addResizeHandler(Z){L.on("_resize",Z)},removeResizeHandler(Z){L.off("_resize",Z)},createScrollResponder(Z){return new Lre(Z,L,Gr(d.scrollTime),d.scrollTimeReset)},registerInteractiveComponent:se,unregisterInteractiveComponent:oe}}class r2 extends em{shouldComponentUpdate(a,d){return this.debug&&console.log(g$(a,this.props),g$(d,this.state)),!b$(this.props,a,this.propEquality)||!b$(this.state,d,this.stateEquality)}safeSetState(a){b$(this.state,Object.assign(Object.assign({},this.state),a),this.stateEquality)||this.setState(a)}}r2.addPropsEquality=Hre,r2.addStateEquality=zre,r2.contextType=L1,r2.prototype.propEquality={},r2.prototype.stateEquality={};class Da extends r2{}Da.contextType=L1;function Hre(i){let a=Object.create(this.prototype.propEquality);Object.assign(a,i),this.prototype.propEquality=a}function zre(i){let a=Object.create(this.prototype.stateEquality);Object.assign(a,i),this.prototype.stateEquality=a}function V1(i,a){typeof i=="function"?i(a):i&&(i.current=a)}class y$ extends Da{constructor(){super(...arguments),this.id=e2(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=a=>{const{options:d}=this.context,{generatorName:p}=this.props;(!d.customRenderingReplaces||!v$(p,d))&&this.updateElRef(a)},this.updateElRef=a=>{this.props.elRef&&V1(this.props.elRef,a)}}render(){const{props:a,context:d}=this,{options:p}=d,{customGenerator:v,defaultGenerator:S,renderProps:E}=a,A=UX(a,[],this.handleEl);let $=!1,L,z=[],se;if(v!=null){const oe=typeof v=="function"?v(E,Qe):v;if(oe===!0)$=!0;else{const Z=oe&&typeof oe=="object";Z&&"html"in oe?A.dangerouslySetInnerHTML={__html:oe.html}:Z&&"domNodes"in oe?z=Array.prototype.slice.call(oe.domNodes):(Z?BY(oe):typeof oe!="function")?L=oe:se=oe}}else $=!v$(a.generatorName,p);return $&&S&&(L=S(E)),this.queuedDomNodes=z,this.currentGeneratorMeta=se,Qe(a.elTag,A,L)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(a){var d;const{props:p,context:v}=this,{handleCustomRendering:S,customRenderingMetaMap:E}=v.options;if(S){const A=(d=this.currentGeneratorMeta)!==null&&d!==void 0?d:E==null?void 0:E[p.generatorName];A&&S(Object.assign(Object.assign({id:this.id,isActive:a,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:A},p),{elClasses:(p.elClasses||[]).filter(Ure)}))}}applyQueueudDomNodes(){const{queuedDomNodes:a,currentDomNodes:d}=this,p=this.base;if(!Mb(a,d)){d.forEach(o$);for(let v of a)p.appendChild(v);this.currentDomNodes=a}}}y$.addPropsEquality({elClasses:Mb,elStyle:cg,elAttrs:Dre,renderProps:cg});function v$(i,a){var d;return!!(a.handleCustomRendering&&i&&(!((d=a.customRenderingMetaMap)===null||d===void 0)&&d[i]))}function UX(i,a,d){const p=Object.assign(Object.assign({},i.elAttrs),{ref:d});return(i.elClasses||a)&&(p.className=(i.elClasses||[]).concat(a||[]).concat(p.className||[]).filter(Boolean).join(" ")),i.elStyle&&(p.style=i.elStyle),p}function Ure(i){return!!i}const WX=zX(0);class tm extends em{constructor(){super(...arguments),this.InnerContent=Wre.bind(void 0,this),this.handleEl=a=>{this.el=a,this.props.elRef&&(V1(this.props.elRef,a),a&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:a}=this,d=jre(a.classNameGenerator,a.renderProps);if(a.children){const p=UX(a,d,this.handleEl),v=a.children(this.InnerContent,a.renderProps,p);return a.elTag?Qe(a.elTag,p,v):v}else return Qe(y$,Object.assign(Object.assign({},a),{elRef:this.handleEl,elTag:a.elTag||"div",elClasses:(a.elClasses||[]).concat(d),renderId:this.context}))}componentDidMount(){var a,d;this.el?(d=(a=this.props).didMount)===null||d===void 0||d.call(a,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var a,d;(d=(a=this.props).willUnmount)===null||d===void 0||d.call(a,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}tm.contextType=WX;function Wre(i,a){const d=i.props;return Qe(y$,Object.assign({renderProps:d.renderProps,generatorName:d.generatorName,customGenerator:d.customGenerator,defaultGenerator:d.defaultGenerator,renderId:i.context},a))}function jre(i,a){const d=typeof i=="function"?i(a):i||[];return typeof d=="string"?[d]:d}class A7 extends Da{render(){let{props:a,context:d}=this,{options:p}=d,v={view:d.viewApi};return Qe(tm,Object.assign({},a,{elTag:a.elTag||"div",elClasses:[...jX(a.viewSpec),...a.elClasses||[]],renderProps:v,classNameGenerator:p.viewClassNames,generatorName:void 0,didMount:p.viewDidMount,willUnmount:p.viewWillUnmount}),()=>a.children)}}function jX(i){return[`fc-${i.type}-view`,"fc-view"]}function Zre(i,a){let d=null,p=null;return i.start&&(d=a.createMarker(i.start)),i.end&&(p=a.createMarker(i.end)),!d&&!p||d&&p&&p<d?null:{start:d,end:p}}function ZX(i,a){let d=[],{start:p}=a,v,S;for(i.sort(Gre),v=0;v<i.length;v+=1)S=i[v],S.start>p&&d.push({start:p,end:S.start}),S.end>p&&(p=S.end);return p<a.end&&d.push({start:p,end:a.end}),d}function Gre(i,a){return i.start.valueOf()-a.start.valueOf()}function a2(i,a){let{start:d,end:p}=i,v=null;return a.start!==null&&(d===null?d=a.start:d=new Date(Math.max(d.valueOf(),a.start.valueOf()))),a.end!=null&&(p===null?p=a.end:p=new Date(Math.min(p.valueOf(),a.end.valueOf()))),(d===null||p===null||d<p)&&(v={start:d,end:p}),v}function qre(i,a){return(i.start===null?null:i.start.valueOf())===(a.start===null?null:a.start.valueOf())&&(i.end===null?null:i.end.valueOf())===(a.end===null?null:a.end.valueOf())}function C$(i,a){return(i.end===null||a.start===null||i.end>a.start)&&(i.start===null||a.end===null||i.start<a.end)}function T7(i,a){return(i.start===null||a.start!==null&&a.start>=i.start)&&(i.end===null||a.end!==null&&a.end<=i.end)}function H1(i,a){return(i.start===null||a>=i.start)&&(i.end===null||a<i.end)}function Kre(i,a){return a.start!=null&&i<a.start?a.start:a.end!=null&&i>=a.end?new Date(a.end.valueOf()-1):i}function GX(i){let a=Math.floor(t2(i.start,i.end))||1,d=kl(i.start),p=Hu(d,a);return{start:d,end:p}}function qX(i,a=Gr(0)){let d=null,p=null;if(i.end){p=kl(i.end);let v=i.end.valueOf()-p.valueOf();v&&v>=Zh(a)&&(p=Hu(p,1))}return i.start&&(d=kl(i.start),p&&p<=d&&(p=Hu(d,1))),{start:d,end:p}}function M3(i,a,d,p){return p==="year"?Gr(d.diffWholeYears(i,a),"year"):p==="month"?Gr(d.diffWholeMonths(i,a),"month"):ore(i,a)}function Yre(i,a){switch(a.type){case"CHANGE_DATE":return a.dateMarker;default:return i}}function Xre(i,a){let d=i.initialDate;return d!=null?a.createMarker(d):rk(i.now,a)}function rk(i,a){return typeof i=="function"&&(i=i()),i==null?a.createNowMarker():a.createMarker(i)}class KX{constructor(a){this.props=a,this.nowDate=rk(a.nowInput,a.dateEnv),this.initHiddenDays()}buildPrev(a,d,p){let{dateEnv:v}=this.props,S=v.subtract(v.startOf(d,a.currentRangeUnit),a.dateIncrement);return this.build(S,-1,p)}buildNext(a,d,p){let{dateEnv:v}=this.props,S=v.add(v.startOf(d,a.currentRangeUnit),a.dateIncrement);return this.build(S,1,p)}build(a,d,p=!0){let{props:v}=this,S,E,A,$,L,z;return S=this.buildValidRange(),S=this.trimHiddenDays(S),p&&(a=Kre(a,S)),E=this.buildCurrentRangeInfo(a,d),A=/^(year|month|week|day)$/.test(E.unit),$=this.buildRenderRange(this.trimHiddenDays(E.range),E.unit,A),$=this.trimHiddenDays($),L=$,v.showNonCurrentDates||(L=a2(L,E.range)),L=this.adjustActiveRange(L),L=a2(L,S),z=C$(E.range,S),H1($,a)||(a=$.start),{currentDate:a,validRange:S,currentRange:E.range,currentRangeUnit:E.unit,isRangeAllDay:A,activeRange:L,renderRange:$,slotMinTime:v.slotMinTime,slotMaxTime:v.slotMaxTime,isValid:z,dateIncrement:this.buildDateIncrement(E.duration)}}buildValidRange(){let a=this.props.validRangeInput,d=typeof a=="function"?a.call(this.props.calendarApi,this.nowDate):a;return this.refineRange(d)||{start:null,end:null}}buildCurrentRangeInfo(a,d){let{props:p}=this,v=null,S=null,E=null,A;return p.duration?(v=p.duration,S=p.durationUnit,E=this.buildRangeFromDuration(a,d,v,S)):(A=this.props.dayCount)?(S="day",E=this.buildRangeFromDayCount(a,d,A)):(E=this.buildCustomVisibleRange(a))?S=p.dateEnv.greatestWholeUnit(E.start,E.end).unit:(v=this.getFallbackDuration(),S=i$(v).unit,E=this.buildRangeFromDuration(a,d,v,S)),{duration:v,unit:S,range:E}}getFallbackDuration(){return Gr({day:1})}adjustActiveRange(a){let{dateEnv:d,usesMinMaxTime:p,slotMinTime:v,slotMaxTime:S}=this.props,{start:E,end:A}=a;return p&&(B3(v)<0&&(E=kl(E),E=d.add(E,v)),B3(S)>1&&(A=kl(A),A=Hu(A,-1),A=d.add(A,S))),{start:E,end:A}}buildRangeFromDuration(a,d,p,v){let{dateEnv:S,dateAlignment:E}=this.props,A,$,L;if(!E){let{dateIncrement:se}=this.props;se&&Zh(se)<Zh(p)?E=i$(se).unit:E=v}B3(p)<=1&&this.isHiddenDay(A)&&(A=this.skipHiddenDays(A,d),A=kl(A));function z(){A=S.startOf(a,E),$=S.add(A,p),L={start:A,end:$}}return z(),this.trimHiddenDays(L)||(a=this.skipHiddenDays(a,d),z()),L}buildRangeFromDayCount(a,d,p){let{dateEnv:v,dateAlignment:S}=this.props,E=0,A=a,$;S&&(A=v.startOf(A,S)),A=kl(A),A=this.skipHiddenDays(A,d),$=A;do $=Hu($,1),this.isHiddenDay($)||(E+=1);while(E<p);return{start:A,end:$}}buildCustomVisibleRange(a){let{props:d}=this,p=d.visibleRangeInput,v=typeof p=="function"?p.call(d.calendarApi,d.dateEnv.toDate(a)):p,S=this.refineRange(v);return S&&(S.start==null||S.end==null)?null:S}buildRenderRange(a,d,p){return a}buildDateIncrement(a){let{dateIncrement:d}=this.props,p;return d||((p=this.props.dateAlignment)?Gr(1,p):a||Gr({days:1}))}refineRange(a){if(a){let d=Zre(a,this.props.dateEnv);return d&&(d=qX(d)),d}return null}initHiddenDays(){let a=this.props.hiddenDays||[],d=[],p=0,v;for(this.props.weekends===!1&&a.push(0,6),v=0;v<7;v+=1)(d[v]=a.indexOf(v)!==-1)||(p+=1);if(!p)throw new Error("invalid hiddenDays");this.isHiddenDayHash=d}trimHiddenDays(a){let{start:d,end:p}=a;return d&&(d=this.skipHiddenDays(d)),p&&(p=this.skipHiddenDays(p,-1,!0)),d==null||p==null||d<p?{start:d,end:p}:null}isHiddenDay(a){return a instanceof Date&&(a=a.getUTCDay()),this.isHiddenDayHash[a]}skipHiddenDays(a,d=1,p=!1){for(;this.isHiddenDayHash[(a.getUTCDay()+(p?d:0)+7)%7];)a=Hu(a,d);return a}}function w$(i,a,d,p){return{instanceId:e2(),defId:i,range:a,forcedStartTzo:d??null,forcedEndTzo:p??null}}function Qre(i,a,d,p){for(let v=0;v<p.length;v+=1){let S=p[v].parse(i,d);if(S){let{allDay:E}=i;return E==null&&(E=a,E==null&&(E=S.allDayGuess,E==null&&(E=!1))),{allDay:E,duration:S.duration,typeData:S.typeData,typeId:v}}}return null}function l2(i,a,d){let{dateEnv:p,pluginHooks:v,options:S}=d,{defs:E,instances:A}=i;A=s2(A,$=>!E[$.defId].recurringDef);for(let $ in E){let L=E[$];if(L.recurringDef){let{duration:z}=L.recurringDef;z||(z=L.allDay?S.defaultAllDayEventDuration:S.defaultTimedEventDuration);let se=Jre(L,z,a,p,v.recurringTypes);for(let oe of se){let Z=w$($,{start:oe,end:p.add(oe,z)});A[Z.instanceId]=Z}}}return{defs:E,instances:A}}function Jre(i,a,d,p,v){let E=v[i.recurringDef.typeId].expand(i.recurringDef.typeData,{start:p.subtract(d.start,a),end:d.end},p);return i.allDay&&(E=E.map(kl)),E}const D7={id:String,groupId:String,title:String,url:String,interactive:Boolean},YX={start:jt,end:jt,date:jt,allDay:Boolean},eae=Object.assign(Object.assign(Object.assign({},D7),YX),{extendedProps:jt});function XX(i,a,d,p,v=_$(d),S,E){let{refined:A,extra:$}=QX(i,d,v),L=nae(a,d),z=Qre(A,L,d.dateEnv,d.pluginHooks.recurringTypes);if(z){let oe=S$(A,$,a?a.sourceId:"",z.allDay,!!z.duration,d,S);return oe.recurringDef={typeId:z.typeId,typeData:z.typeData,duration:z.duration},{def:oe,instance:null}}let se=tae(A,L,d,p);if(se){let oe=S$(A,$,a?a.sourceId:"",se.allDay,se.hasEnd,d,S),Z=w$(oe.defId,se.range,se.forcedStartTzo,se.forcedEndTzo);return E&&oe.publicId&&E[oe.publicId]&&(Z.instanceId=E[oe.publicId]),{def:oe,instance:Z}}return null}function QX(i,a,d=_$(a)){return m$(i,d)}function _$(i){return Object.assign(Object.assign(Object.assign({},R7),eae),i.pluginHooks.eventRefiners)}function S$(i,a,d,p,v,S,E){let A={title:i.title||"",groupId:i.groupId||"",publicId:i.id||"",url:i.url||"",recurringDef:null,defId:(E&&i.id?E[i.id]:"")||e2(),sourceId:d,allDay:p,hasEnd:v,interactive:i.interactive,ui:O7(i,S),extendedProps:Object.assign(Object.assign({},i.extendedProps||{}),a)};for(let $ of S.pluginHooks.eventDefMemberAdders)Object.assign(A,$(i));return Object.freeze(A.ui.classNames),Object.freeze(A.extendedProps),A}function tae(i,a,d,p){let{allDay:v}=i,S,E=null,A=!1,$,L=null,z=i.start!=null?i.start:i.date;if(S=d.dateEnv.createMarkerMeta(z),S)E=S.marker;else if(!p)return null;return i.end!=null&&($=d.dateEnv.createMarkerMeta(i.end)),v==null&&(a!=null?v=a:v=(!S||S.isTimeUnspecified)&&(!$||$.isTimeUnspecified)),v&&E&&(E=kl(E)),$&&(L=$.marker,v&&(L=kl(L)),E&&L<=E&&(L=null)),L?A=!0:p||(A=d.options.forceEventDuration||!1,L=d.dateEnv.add(E,v?d.options.defaultAllDayEventDuration:d.options.defaultTimedEventDuration)),{allDay:v,hasEnd:A,range:{start:E,end:L},forcedStartTzo:S?S.forcedTzo:null,forcedEndTzo:$?$.forcedTzo:null}}function nae(i,a){let d=null;return i&&(d=i.defaultAllDay),d==null&&(d=a.options.defaultAllDay),d}function ak(i,a,d,p,v,S){let E=nm(),A=_$(d);for(let $ of i){let L=XX($,a,d,p,A,v,S);L&&x$(L,E)}return E}function x$(i,a=nm()){return a.defs[i.def.defId]=i.def,i.instance&&(a.instances[i.instance.instanceId]=i.instance),a}function E$(i,a){let d=i.instances[a];if(d){let p=i.defs[d.defId],v=N7(i,S=>oae(p,S));return v.defs[p.defId]=p,v.instances[d.instanceId]=d,v}return nm()}function oae(i,a){return!!(i.groupId&&i.groupId===a.groupId)}function nm(){return{defs:{},instances:{}}}function k$(i,a){return{defs:Object.assign(Object.assign({},i.defs),a.defs),instances:Object.assign(Object.assign({},i.instances),a.instances)}}function N7(i,a){let d=s2(i.defs,a),p=s2(i.instances,v=>d[v.defId]);return{defs:d,instances:p}}function sae(i,a){let{defs:d,instances:p}=i,v={},S={};for(let E in d)a.defs[E]||(v[E]=d[E]);for(let E in p)!a.instances[E]&&v[p[E].defId]&&(S[E]=p[E]);return{defs:v,instances:S}}function rae(i,a){return Array.isArray(i)?ak(i,null,a,!0):typeof i=="object"&&i?ak([i],null,a,!0):i!=null?String(i):null}function JX(i){return Array.isArray(i)?i:typeof i=="string"?i.split(/\s+/):[]}const R7={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:jt,overlap:jt,allow:jt,className:JX,classNames:JX,color:String,backgroundColor:String,borderColor:String,textColor:String},aae={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function O7(i,a){let d=rae(i.constraint,a);return{display:i.display||null,startEditable:i.startEditable!=null?i.startEditable:i.editable,durationEditable:i.durationEditable!=null?i.durationEditable:i.editable,constraints:d!=null?[d]:[],overlap:i.overlap!=null?i.overlap:null,allows:i.allow!=null?[i.allow]:[],backgroundColor:i.backgroundColor||i.color||"",borderColor:i.borderColor||i.color||"",textColor:i.textColor||"",classNames:(i.className||[]).concat(i.classNames||[])}}function eQ(i){return i.reduce(lae,aae)}function lae(i,a){return{display:a.display!=null?a.display:i.display,startEditable:a.startEditable!=null?a.startEditable:i.startEditable,durationEditable:a.durationEditable!=null?a.durationEditable:i.durationEditable,constraints:i.constraints.concat(a.constraints),overlap:typeof a.overlap=="boolean"?a.overlap:i.overlap,allows:i.allows.concat(a.allows),backgroundColor:a.backgroundColor||i.backgroundColor,borderColor:a.borderColor||i.borderColor,textColor:a.textColor||i.textColor,classNames:i.classNames.concat(a.classNames)}}const iae={id:String,defaultAllDay:Boolean,url:String,format:String,events:jt,eventDataTransform:jt,success:jt,failure:jt};function tQ(i,a,d=nQ(a)){let p;if(typeof i=="string"?p={url:i}:typeof i=="function"||Array.isArray(i)?p={events:i}:typeof i=="object"&&i&&(p=i),p){let{refined:v,extra:S}=m$(p,d),E=cae(v,a);if(E)return{_raw:i,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:v.defaultAllDay,eventDataTransform:v.eventDataTransform,success:v.success,failure:v.failure,publicId:v.id||"",sourceId:e2(),sourceDefId:E.sourceDefId,meta:E.meta,ui:O7(v,a),extendedProps:S}}return null}function nQ(i){return Object.assign(Object.assign(Object.assign({},R7),iae),i.pluginHooks.eventSourceRefiners)}function cae(i,a){let d=a.pluginHooks.eventSourceDefs;for(let p=d.length-1;p>=0;p-=1){let S=d[p].parseMeta(i);if(S)return{sourceDefId:p,meta:S}}return null}function uae(i,a,d,p,v){switch(a.type){case"RECEIVE_EVENTS":return dae(i,d[a.sourceId],a.fetchId,a.fetchRange,a.rawEvents,v);case"RESET_RAW_EVENTS":return fae(i,d[a.sourceId],a.rawEvents,p.activeRange,v);case"ADD_EVENTS":return mae(i,a.eventStore,p?p.activeRange:null,v);case"RESET_EVENTS":return a.eventStore;case"MERGE_EVENTS":return k$(i,a.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return p?l2(i,p.activeRange,v):i;case"REMOVE_EVENTS":return sae(i,a.eventStore);case"REMOVE_EVENT_SOURCE":return aQ(i,a.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return N7(i,S=>!S.sourceId);case"REMOVE_ALL_EVENTS":return nm();default:return i}}function dae(i,a,d,p,v,S){if(a&&d===a.latestFetchId){let E=ak(oQ(v,a,S),a,S);return p&&(E=l2(E,p,S)),k$(aQ(i,a.sourceId),E)}return i}function fae(i,a,d,p,v){const{defIdMap:S,instanceIdMap:E}=pae(i);let A=ak(oQ(d,a,v),a,v,!1,S,E);return l2(A,p,v)}function oQ(i,a,d){let p=d.options.eventDataTransform,v=a?a.eventDataTransform:null;return v&&(i=sQ(i,v)),p&&(i=sQ(i,p)),i}function sQ(i,a){let d;if(!a)d=i;else{d=[];for(let p of i){let v=a(p);v?d.push(v):v==null&&d.push(p)}}return d}function mae(i,a,d,p){return d&&(a=l2(a,d,p)),k$(i,a)}function rQ(i,a,d){let{defs:p}=i,v=$1(i.instances,S=>p[S.defId].allDay?S:Object.assign(Object.assign({},S),{range:{start:d.createMarker(a.toDate(S.range.start,S.forcedStartTzo)),end:d.createMarker(a.toDate(S.range.end,S.forcedEndTzo))},forcedStartTzo:d.canComputeOffset?null:S.forcedStartTzo,forcedEndTzo:d.canComputeOffset?null:S.forcedEndTzo}));return{defs:p,instances:v}}function aQ(i,a){return N7(i,d=>d.sourceId!==a)}function hae(i,a){return{defs:i.defs,instances:s2(i.instances,d=>!a[d.instanceId])}}function pae(i){const{defs:a,instances:d}=i,p={},v={};for(let S in a){const E=a[S],{publicId:A}=E;A&&(p[A]=S)}for(let S in d){const E=d[S],A=a[E.defId],{publicId:$}=A;$&&(v[$]=S)}return{defIdMap:p,instanceIdMap:v}}class B7{constructor(){this.handlers={},this.thisContext=null}setThisContext(a){this.thisContext=a}setOptions(a){this.options=a}on(a,d){gae(this.handlers,a,d)}off(a,d){bae(this.handlers,a,d)}trigger(a,...d){let p=this.handlers[a]||[],v=this.options&&this.options[a],S=[].concat(v||[],p);for(let E of S)E.apply(this.thisContext,d)}hasHandlers(a){return!!(this.handlers[a]&&this.handlers[a].length||this.options&&this.options[a])}}function gae(i,a,d){(i[a]||(i[a]=[])).push(d)}function bae(i,a,d){d?i[a]&&(i[a]=i[a].filter(p=>p!==d)):delete i[a]}const yae={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function vae(i,a){return ak(Cae(i),null,a)}function Cae(i){let a;return i===!0?a=[{}]:Array.isArray(i)?a=i.filter(d=>d.daysOfWeek):typeof i=="object"&&i?a=[i]:a=[],a=a.map(d=>Object.assign(Object.assign({},yae),d)),a}function lQ(i,a,d){d.emitter.trigger("select",Object.assign(Object.assign({},A$(i,d)),{jsEvent:a?a.origEvent:null,view:d.viewApi||d.calendarApi.view}))}function wae(i,a){a.emitter.trigger("unselect",{jsEvent:i?i.origEvent:null,view:a.viewApi||a.calendarApi.view})}function A$(i,a){let d={};for(let p of a.pluginHooks.dateSpanTransforms)Object.assign(d,p(i,a));return Object.assign(d,Iae(i,a.dateEnv)),d}function iQ(i,a,d){let{dateEnv:p,options:v}=d,S=a;return i?(S=kl(S),S=p.add(S,v.defaultAllDayEventDuration)):S=p.add(S,v.defaultTimedEventDuration),S}function T$(i,a,d,p){let v=M7(i.defs,a),S=nm();for(let E in i.defs){let A=i.defs[E];S.defs[E]=_ae(A,v[E],d,p)}for(let E in i.instances){let A=i.instances[E],$=S.defs[A.defId];S.instances[E]=Sae(A,$,v[A.defId],d,p)}return S}function _ae(i,a,d,p){let v=d.standardProps||{};v.hasEnd==null&&a.durationEditable&&(d.startDelta||d.endDelta)&&(v.hasEnd=!0);let S=Object.assign(Object.assign(Object.assign({},i),v),{ui:Object.assign(Object.assign({},i.ui),v.ui)});d.extendedProps&&(S.extendedProps=Object.assign(Object.assign({},S.extendedProps),d.extendedProps));for(let E of p.pluginHooks.eventDefMutationAppliers)E(S,d,p);return!S.hasEnd&&p.options.forceEventDuration&&(S.hasEnd=!0),S}function Sae(i,a,d,p,v){let{dateEnv:S}=v,E=p.standardProps&&p.standardProps.allDay===!0,A=p.standardProps&&p.standardProps.hasEnd===!1,$=Object.assign({},i);return E&&($.range=GX($.range)),p.datesDelta&&d.startEditable&&($.range={start:S.add($.range.start,p.datesDelta),end:S.add($.range.end,p.datesDelta)}),p.startDelta&&d.durationEditable&&($.range={start:S.add($.range.start,p.startDelta),end:$.range.end}),p.endDelta&&d.durationEditable&&($.range={start:$.range.start,end:S.add($.range.end,p.endDelta)}),A&&($.range={start:$.range.start,end:iQ(a.allDay,$.range.start,v)}),a.allDay&&($.range={start:kl($.range.start),end:kl($.range.end)}),$.range.end<$.range.start&&($.range.end=iQ(a.allDay,$.range.start,v)),$}class I3{constructor(a,d){this.context=a,this.internalEventSource=d}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class li{constructor(a,d,p){this._context=a,this._def=d,this._instance=p||null}setProp(a,d){if(a in YX)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(a==="id")d=D7[a](d),this.mutate({standardProps:{publicId:d}});else if(a in D7)d=D7[a](d),this.mutate({standardProps:{[a]:d}});else if(a in R7){let p=R7[a](d);a==="color"?p={backgroundColor:d,borderColor:d}:a==="editable"?p={startEditable:d,durationEditable:d}:p={[a]:d},this.mutate({standardProps:{ui:p}})}else console.warn(`Could not set prop '${a}'. Use setExtendedProp instead.`)}setExtendedProp(a,d){this.mutate({extendedProps:{[a]:d}})}setStart(a,d={}){let{dateEnv:p}=this._context,v=p.createMarker(a);if(v&&this._instance){let S=this._instance.range,E=M3(S.start,v,p,d.granularity);d.maintainDuration?this.mutate({datesDelta:E}):this.mutate({startDelta:E})}}setEnd(a,d={}){let{dateEnv:p}=this._context,v;if(!(a!=null&&(v=p.createMarker(a),!v))&&this._instance)if(v){let S=M3(this._instance.range.end,v,p,d.granularity);this.mutate({endDelta:S})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(a,d,p={}){let{dateEnv:v}=this._context,S={allDay:p.allDay},E=v.createMarker(a),A;if(E&&!(d!=null&&(A=v.createMarker(d),!A))&&this._instance){let $=this._instance.range;p.allDay===!0&&($=GX($));let L=M3($.start,E,v,p.granularity);if(A){let z=M3($.end,A,v,p.granularity);Gse(L,z)?this.mutate({datesDelta:L,standardProps:S}):this.mutate({startDelta:L,endDelta:z,standardProps:S})}else S.hasEnd=!1,this.mutate({datesDelta:L,standardProps:S})}}moveStart(a){let d=Gr(a);d&&this.mutate({startDelta:d})}moveEnd(a){let d=Gr(a);d&&this.mutate({endDelta:d})}moveDates(a){let d=Gr(a);d&&this.mutate({datesDelta:d})}setAllDay(a,d={}){let p={allDay:a},{maintainDuration:v}=d;v==null&&(v=this._context.options.allDayMaintainDuration),this._def.allDay!==a&&(p.hasEnd=v),this.mutate({standardProps:p})}formatRange(a){let{dateEnv:d}=this._context,p=this._instance,v=Ci(a);return this._def.hasEnd?d.formatRange(p.range.start,p.range.end,v,{forcedStartTzo:p.forcedStartTzo,forcedEndTzo:p.forcedEndTzo}):d.format(p.range.start,v,{forcedTzo:p.forcedStartTzo})}mutate(a){let d=this._instance;if(d){let p=this._def,v=this._context,{eventStore:S}=v.getCurrentData(),E=E$(S,d.instanceId);E=T$(E,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},a,v);let $=new li(v,p,d);this._def=E.defs[p.defId],this._instance=E.instances[d.instanceId],v.dispatch({type:"MERGE_EVENTS",eventStore:E}),v.emitter.trigger("eventChange",{oldEvent:$,event:this,relatedEvents:i2(E,v,d),revert(){v.dispatch({type:"RESET_EVENTS",eventStore:S})}})}}remove(){let a=this._context,d=cQ(this);a.dispatch({type:"REMOVE_EVENTS",eventStore:d}),a.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:d})}})}get source(){let{sourceId:a}=this._def;return a?new I3(this._context,this._context.getCurrentData().eventSources[a]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let a=this._instance;return a?this._context.dateEnv.formatIso(a.range.start,{omitTime:this._def.allDay,forcedTzo:a.forcedStartTzo}):""}get endStr(){let a=this._instance;return a&&this._def.hasEnd?this._context.dateEnv.formatIso(a.range.end,{omitTime:this._def.allDay,forcedTzo:a.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(a={}){let d=this._def,{ui:p}=d,{startStr:v,endStr:S}=this,E={allDay:d.allDay};return d.title&&(E.title=d.title),v&&(E.start=v),S&&(E.end=S),d.publicId&&(E.id=d.publicId),d.groupId&&(E.groupId=d.groupId),d.url&&(E.url=d.url),p.display&&p.display!=="auto"&&(E.display=p.display),a.collapseColor&&p.backgroundColor&&p.backgroundColor===p.borderColor?E.color=p.backgroundColor:(p.backgroundColor&&(E.backgroundColor=p.backgroundColor),p.borderColor&&(E.borderColor=p.borderColor)),p.textColor&&(E.textColor=p.textColor),p.classNames.length&&(E.classNames=p.classNames),Object.keys(d.extendedProps).length&&(a.collapseExtendedProps?Object.assign(E,d.extendedProps):E.extendedProps=d.extendedProps),E}toJSON(){return this.toPlainObject()}}function cQ(i){let a=i._def,d=i._instance;return{defs:{[a.defId]:a},instances:d?{[d.instanceId]:d}:{}}}function i2(i,a,d){let{defs:p,instances:v}=i,S=[],E=d?d.instanceId:"";for(let A in v){let $=v[A],L=p[$.defId];$.instanceId!==E&&S.push(new li(a,L,$))}return S}function uQ(i,a,d,p){let v={},S={},E={},A=[],$=[],L=M7(i.defs,a);for(let z in i.defs){let se=i.defs[z];L[se.defId].display==="inverse-background"&&(se.groupId?(v[se.groupId]=[],E[se.groupId]||(E[se.groupId]=se)):S[z]=[])}for(let z in i.instances){let se=i.instances[z],oe=i.defs[se.defId],Z=L[oe.defId],X=se.range,le=!oe.allDay&&p?qX(X,p):X,J=a2(le,d);J&&(Z.display==="inverse-background"?oe.groupId?v[oe.groupId].push(J):S[se.defId].push(J):Z.display!=="none"&&(Z.display==="background"?A:$).push({def:oe,ui:Z,instance:se,range:J,isStart:le.start&&le.start.valueOf()===J.start.valueOf(),isEnd:le.end&&le.end.valueOf()===J.end.valueOf()}))}for(let z in v){let se=v[z],oe=ZX(se,d);for(let Z of oe){let X=E[z],le=L[X.defId];A.push({def:X,ui:le,instance:null,range:Z,isStart:!1,isEnd:!1})}}for(let z in S){let se=S[z],oe=ZX(se,d);for(let Z of oe)A.push({def:i.defs[z],ui:L[z],instance:null,range:Z,isStart:!1,isEnd:!1})}return{bg:A,fg:$}}function xae(i){return i.ui.display==="background"||i.ui.display==="inverse-background"}function dQ(i,a){i.fcSeg=a}function P3(i){return i.fcSeg||i.parentNode.fcSeg||null}function M7(i,a){return $1(i,d=>fQ(d,a))}function fQ(i,a){let d=[];return a[""]&&d.push(a[""]),a[i.defId]&&d.push(a[i.defId]),d.push(i.ui),eQ(d)}function mQ(i,a){let d=i.map(Eae);return d.sort((p,v)=>Vse(p,v,a)),d.map(p=>p._seg)}function Eae(i){let{eventRange:a}=i,d=a.def,p=a.instance?a.instance.range:a.range,v=p.start?p.start.valueOf():0,S=p.end?p.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},d.extendedProps),d),{id:d.publicId,start:v,end:S,duration:S-v,allDay:Number(d.allDay),_seg:i})}function kae(i,a){let{pluginHooks:d}=a,p=d.isDraggableTransformers,{def:v,ui:S}=i.eventRange,E=S.startEditable;for(let A of p)E=A(E,v,S,a);return E}function Aae(i,a){return i.isStart&&i.eventRange.ui.durationEditable&&a.options.eventResizableFromStart}function Tae(i,a){return i.isEnd&&i.eventRange.ui.durationEditable}function hQ(i,a,d,p,v,S,E){let{dateEnv:A,options:$}=d,{displayEventTime:L,displayEventEnd:z}=$,se=i.eventRange.def,oe=i.eventRange.instance;L==null&&(L=p!==!1),z==null&&(z=v!==!1);let Z=oe.range.start,X=oe.range.end,le=S||i.start||i.eventRange.range.start,J=E||i.end||i.eventRange.range.end,me=kl(Z).valueOf()===kl(le).valueOf(),ie=kl(Ib(X,-1)).valueOf()===kl(Ib(J,-1)).valueOf();return L&&!se.allDay&&(me||ie)?(le=me?Z:le,J=ie?X:J,z&&se.hasEnd?A.formatRange(le,J,a,{forcedStartTzo:S?null:oe.forcedStartTzo,forcedEndTzo:E?null:oe.forcedEndTzo}):A.format(le,a,{forcedTzo:S?null:oe.forcedStartTzo})):""}function $b(i,a,d){let p=i.eventRange.range;return{isPast:p.end<=(d||a.start),isFuture:p.start>=(d||a.end),isToday:a&&H1(a,p.start)}}function Dae(i){let a=["fc-event"];return i.isMirror&&a.push("fc-event-mirror"),i.isDraggable&&a.push("fc-event-draggable"),(i.isStartResizable||i.isEndResizable)&&a.push("fc-event-resizable"),i.isDragging&&a.push("fc-event-dragging"),i.isResizing&&a.push("fc-event-resizing"),i.isSelected&&a.push("fc-event-selected"),i.isStart&&a.push("fc-event-start"),i.isEnd&&a.push("fc-event-end"),i.isPast&&a.push("fc-event-past"),i.isToday&&a.push("fc-event-today"),i.isFuture&&a.push("fc-event-future"),a}function pQ(i){return i.instance?i.instance.instanceId:`${i.def.defId}:${i.range.start.toISOString()}`}function gQ(i,a){let{def:d,instance:p}=i.eventRange,{url:v}=d;if(v)return{href:v};let{emitter:S,options:E}=a,{eventInteractive:A}=E;return A==null&&(A=d.interactive,A==null&&(A=!!S.hasHandlers("eventClick"))),A?EX($=>{S.trigger("eventClick",{el:$.target,event:new li(a,d,p),jsEvent:$,view:a.viewApi})}):{}}const Nae={start:jt,end:jt,allDay:Boolean};function Rae(i,a,d){let p=Oae(i,a),{range:v}=p;if(!v.start)return null;if(!v.end){if(d==null)return null;v.end=a.add(v.start,d)}return p}function Oae(i,a){let{refined:d,extra:p}=m$(i,Nae),v=d.start?a.createMarkerMeta(d.start):null,S=d.end?a.createMarkerMeta(d.end):null,{allDay:E}=d;return E==null&&(E=v&&v.isTimeUnspecified&&(!S||S.isTimeUnspecified)),Object.assign({range:{start:v?v.marker:null,end:S?S.marker:null},allDay:E},p)}function Bae(i,a){return qre(i.range,a.range)&&i.allDay===a.allDay&&Mae(i,a)}function Mae(i,a){for(let d in a)if(d!=="range"&&d!=="allDay"&&i[d]!==a[d])return!1;for(let d in i)if(!(d in a))return!1;return!0}function Iae(i,a){return Object.assign(Object.assign({},yQ(i.range,a,i.allDay)),{allDay:i.allDay})}function bQ(i,a,d){return Object.assign(Object.assign({},yQ(i,a,d)),{timeZone:a.timeZone})}function yQ(i,a,d){return{start:a.toDate(i.start),end:a.toDate(i.end),startStr:a.formatIso(i.start,{omitTime:d}),endStr:a.formatIso(i.end,{omitTime:d})}}function Pae(i,a,d){let p=QX({editable:!1},d),v=S$(p.refined,p.extra,"",i.allDay,!0,d);return{def:v,ui:fQ(v,a),instance:w$(v.defId,i.range),range:i.range,isStart:!0,isEnd:!0}}function Fae(i,a,d){let p=!1,v=function(A){p||(p=!0,a(A))},S=function(A){p||(p=!0,d(A))},E=i(v,S);E&&typeof E.then=="function"&&E.then(v,S)}class vQ extends Error{constructor(a,d){super(a),this.response=d}}function $ae(i,a,d){i=i.toUpperCase();const p={method:i};return i==="GET"?a+=(a.indexOf("?")===-1?"?":"&")+new URLSearchParams(d):(p.body=new URLSearchParams(d),p.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(a,p).then(v=>{if(v.ok)return v.json().then(S=>[S,v],()=>{throw new vQ("Failure parsing JSON",v)});throw new vQ("Request failed",v)})}let D$;function CQ(){return D$==null&&(D$=Lae()),D$}function Lae(){if(typeof document>"u")return!0;let i=document.createElement("div");i.style.position="absolute",i.style.top="0px",i.style.left="0px",i.innerHTML="<table><tr><td><div></div></td></tr></table>",i.querySelector("table").style.height="100px",i.querySelector("div").style.height="100%",document.body.appendChild(i);let d=i.querySelector("div").offsetHeight>0;return document.body.removeChild(i),d}class Vae extends Da{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{k7(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{k7(()=>{this.setState({forPrint:!1})})}}render(){let{props:a}=this,{options:d}=a,{forPrint:p}=this.state,v=p||d.height==="auto"||d.contentHeight==="auto",S=!v&&d.height!=null?d.height:"",E=["fc",p?"fc-media-print":"fc-media-screen",`fc-direction-${d.direction}`,a.theme.getClass("root")];return CQ()||E.push("fc-liquid-hack"),a.children(E,S,v,p)}componentDidMount(){let{emitter:a}=this.props;a.on("_beforeprint",this.handleBeforePrint),a.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:a}=this.props;a.off("_beforeprint",this.handleBeforePrint),a.off("_afterprint",this.handleAfterPrint)}}class F3{constructor(a){this.component=a.component,this.isHitComboAllowed=a.isHitComboAllowed||null}destroy(){}}function Hae(i,a){return{component:i,el:a.el,useEventCenter:a.useEventCenter!=null?a.useEventCenter:!0,isHitComboAllowed:a.isHitComboAllowed||null}}function N$(i){return{[i.component.uid]:i}}const R$={};class zae{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(a){this.currentDataManager.dispatch(a)}get view(){return this.getCurrentData().viewApi}batchRendering(a){a()}updateSize(){this.trigger("_resize",!0)}setOption(a,d){this.dispatch({type:"SET_OPTION",optionName:a,rawOptionValue:d})}getOption(a){return this.currentDataManager.currentCalendarOptionsInput[a]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(a,d){let{currentDataManager:p}=this;p.currentCalendarOptionsRefiners[a]?p.emitter.on(a,d):console.warn(`Unknown listener name '${a}'`)}off(a,d){this.currentDataManager.emitter.off(a,d)}trigger(a,...d){this.currentDataManager.emitter.trigger(a,...d)}changeView(a,d){this.batchRendering(()=>{if(this.unselect(),d)if(d.start&&d.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:a}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:d});else{let{dateEnv:p}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:a,dateMarker:p.createMarker(d)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:a})})}zoomTo(a,d){let p=this.getCurrentData(),v;d=d||"day",v=p.viewSpecs[d]||this.getUnitViewSpec(d),this.unselect(),v?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:v.type,dateMarker:a}):this.dispatch({type:"CHANGE_DATE",dateMarker:a})}getUnitViewSpec(a){let{viewSpecs:d,toolbarConfig:p}=this.getCurrentData(),v=[].concat(p.header?p.header.viewsWithButtons:[],p.footer?p.footer.viewsWithButtons:[]),S,E;for(let A in d)v.push(A);for(S=0;S<v.length;S+=1)if(E=d[v[S]],E&&E.singleUnit===a)return E;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let a=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:a.dateEnv.addYears(a.currentDate,-1)})}nextYear(){let a=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:a.dateEnv.addYears(a.currentDate,1)})}today(){let a=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:rk(a.calendarOptions.now,a.dateEnv)})}gotoDate(a){let d=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:d.dateEnv.createMarker(a)})}incrementDate(a){let d=this.getCurrentData(),p=Gr(a);p&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:d.dateEnv.add(d.currentDate,p)}))}getDate(){let a=this.getCurrentData();return a.dateEnv.toDate(a.currentDate)}formatDate(a,d){let{dateEnv:p}=this.getCurrentData();return p.format(p.createMarker(a),Ci(d))}formatRange(a,d,p){let{dateEnv:v}=this.getCurrentData();return v.formatRange(v.createMarker(a),v.createMarker(d),Ci(p),p)}formatIso(a,d){let{dateEnv:p}=this.getCurrentData();return p.formatIso(p.createMarker(a),{omitTime:d})}select(a,d){let p;d==null?a.start!=null?p=a:p={start:a,end:null}:p={start:a,end:d};let v=this.getCurrentData(),S=Rae(p,v.dateEnv,Gr({days:1}));S&&(this.dispatch({type:"SELECT_DATES",selection:S}),lQ(S,null,v))}unselect(a){let d=this.getCurrentData();d.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),wae(a,d))}addEvent(a,d){if(a instanceof li){let E=a._def,A=a._instance;return this.getCurrentData().eventStore.defs[E.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:x$({def:E,instance:A})}),this.triggerEventAdd(a)),a}let p=this.getCurrentData(),v;if(d instanceof I3)v=d.internalEventSource;else if(typeof d=="boolean")d&&([v]=p$(p.eventSources));else if(d!=null){let E=this.getEventSourceById(d);if(!E)return console.warn(`Could not find an event source with ID "${d}"`),null;v=E.internalEventSource}let S=XX(a,v,p,!1);if(S){let E=new li(p,S.def,S.def.recurringDef?null:S.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:x$(S)}),this.triggerEventAdd(E),E}return null}triggerEventAdd(a){let{emitter:d}=this.getCurrentData();d.trigger("eventAdd",{event:a,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:cQ(a)})}})}getEventById(a){let d=this.getCurrentData(),{defs:p,instances:v}=d.eventStore;a=String(a);for(let S in p){let E=p[S];if(E.publicId===a){if(E.recurringDef)return new li(d,E,null);for(let A in v){let $=v[A];if($.defId===E.defId)return new li(d,E,$)}}}return null}getEvents(){let a=this.getCurrentData();return i2(a.eventStore,a)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let a=this.getCurrentData(),d=a.eventSources,p=[];for(let v in d)p.push(new I3(a,d[v]));return p}getEventSourceById(a){let d=this.getCurrentData(),p=d.eventSources;a=String(a);for(let v in p)if(p[v].publicId===a)return new I3(d,p[v]);return null}addEventSource(a){let d=this.getCurrentData();if(a instanceof I3)return d.eventSources[a.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[a.internalEventSource]}),a;let p=tQ(a,d);return p?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[p]}),new I3(d,p)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(a){let d=Gr(a);d&&this.trigger("_scrollRequest",{time:d})}}function Uae(i,a){return i.left>=a.left&&i.left<a.right&&i.top>=a.top&&i.top<a.bottom}function wQ(i,a){let d={left:Math.max(i.left,a.left),right:Math.min(i.right,a.right),top:Math.max(i.top,a.top),bottom:Math.min(i.bottom,a.bottom)};return d.left<d.right&&d.top<d.bottom?d:!1}function Wae(i,a){return{left:Math.min(Math.max(i.left,a.left),a.right),top:Math.min(Math.max(i.top,a.top),a.bottom)}}function jae(i){return{left:(i.left+i.right)/2,top:(i.top+i.bottom)/2}}function Zae(i,a){return{left:i.left-a.left,top:i.top-a.top}}const O$=nm();class Gae{constructor(){this.getKeysForEventDefs=Ts(this._getKeysForEventDefs),this.splitDateSelection=Ts(this._splitDateSpan),this.splitEventStore=Ts(this._splitEventStore),this.splitIndividualUi=Ts(this._splitIndividualUi),this.splitEventDrag=Ts(this._splitInteraction),this.splitEventResize=Ts(this._splitInteraction),this.eventUiBuilders={}}splitProps(a){let d=this.getKeyInfo(a),p=this.getKeysForEventDefs(a.eventStore),v=this.splitDateSelection(a.dateSelection),S=this.splitIndividualUi(a.eventUiBases,p),E=this.splitEventStore(a.eventStore,p),A=this.splitEventDrag(a.eventDrag),$=this.splitEventResize(a.eventResize),L={};this.eventUiBuilders=$1(d,(z,se)=>this.eventUiBuilders[se]||Ts(qae));for(let z in d){let se=d[z],oe=E[z]||O$,Z=this.eventUiBuilders[z];L[z]={businessHours:se.businessHours||a.businessHours,dateSelection:v[z]||null,eventStore:oe,eventUiBases:Z(a.eventUiBases[""],se.ui,S[z]),eventSelection:oe.instances[a.eventSelection]?a.eventSelection:"",eventDrag:A[z]||null,eventResize:$[z]||null}}return L}_splitDateSpan(a){let d={};if(a){let p=this.getKeysForDateSpan(a);for(let v of p)d[v]=a}return d}_getKeysForEventDefs(a){return $1(a.defs,d=>this.getKeysForEventDef(d))}_splitEventStore(a,d){let{defs:p,instances:v}=a,S={};for(let E in p)for(let A of d[E])S[A]||(S[A]=nm()),S[A].defs[E]=p[E];for(let E in v){let A=v[E];for(let $ of d[A.defId])S[$]&&(S[$].instances[E]=A)}return S}_splitIndividualUi(a,d){let p={};for(let v in a)if(v)for(let S of d[v])p[S]||(p[S]={}),p[S][v]=a[v];return p}_splitInteraction(a){let d={};if(a){let p=this._splitEventStore(a.affectedEvents,this._getKeysForEventDefs(a.affectedEvents)),v=this._getKeysForEventDefs(a.mutatedEvents),S=this._splitEventStore(a.mutatedEvents,v),E=A=>{d[A]||(d[A]={affectedEvents:p[A]||O$,mutatedEvents:S[A]||O$,isEvent:a.isEvent})};for(let A in p)E(A);for(let A in S)E(A)}return d}}function qae(i,a,d){let p=[];i&&p.push(i),a&&p.push(a);let v={"":eQ(p)};return d&&Object.assign(v,d),v}function _Q(i,a,d,p){return{dow:i.getUTCDay(),isDisabled:!!(p&&!H1(p.activeRange,i)),isOther:!!(p&&!H1(p.currentRange,i)),isToday:!!(a&&H1(a,i)),isPast:!!(d?i<d:a&&i<a.start),isFuture:!!(d?i>d:a&&i>=a.end)}}function B$(i,a){let d=["fc-day",`fc-day-${Qse[i.dow]}`];return i.isDisabled?d.push("fc-day-disabled"):(i.isToday&&(d.push("fc-day-today"),d.push(a.getClass("today"))),i.isPast&&d.push("fc-day-past"),i.isFuture&&d.push("fc-day-future"),i.isOther&&d.push("fc-day-other")),d}const Kae=Ci({year:"numeric",month:"long",day:"numeric"}),Yae=Ci({week:"long"});function I7(i,a,d="day",p=!0){const{dateEnv:v,options:S,calendarApi:E}=i;let A=v.format(a,d==="week"?Yae:Kae);if(S.navLinks){let $=v.toDate(a);const L=z=>{let se=d==="day"?S.navLinkDayClick:d==="week"?S.navLinkWeekClick:null;typeof se=="function"?se.call(E,v.toDate(a),z):(typeof se=="string"&&(d=se),E.zoomTo(a,d))};return Object.assign({title:nk(S.navLinkHint,[A,$],A),"data-navlink":""},p?xX(L):{onClick:L})}return{"aria-label":A}}let M$=null;function Xae(){return M$===null&&(M$=Qae()),M$}function Qae(){let i=document.createElement("div");tk(i,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),i.innerHTML="<div></div>",document.body.appendChild(i);let d=i.firstChild.getBoundingClientRect().left>i.getBoundingClientRect().left;return o$(i),d}let I$;function Jae(){return I$||(I$=ele()),I$}function ele(){let i=document.createElement("div");i.style.overflow="scroll",i.style.position="absolute",i.style.top="-9999px",i.style.left="-9999px",document.body.appendChild(i);let a=SQ(i);return document.body.removeChild(i),a}function SQ(i){return{x:i.offsetHeight-i.clientHeight,y:i.offsetWidth-i.clientWidth}}function tle(i,a=!1){let d=window.getComputedStyle(i),p=parseInt(d.borderLeftWidth,10)||0,v=parseInt(d.borderRightWidth,10)||0,S=parseInt(d.borderTopWidth,10)||0,E=parseInt(d.borderBottomWidth,10)||0,A=SQ(i),$=A.y-p-v,L=A.x-S-E,z={borderLeft:p,borderRight:v,borderTop:S,borderBottom:E,scrollbarBottom:L,scrollbarLeft:0,scrollbarRight:0};return Xae()&&d.direction==="rtl"?z.scrollbarLeft=$:z.scrollbarRight=$,a&&(z.paddingLeft=parseInt(d.paddingLeft,10)||0,z.paddingRight=parseInt(d.paddingRight,10)||0,z.paddingTop=parseInt(d.paddingTop,10)||0,z.paddingBottom=parseInt(d.paddingBottom,10)||0),z}function nle(i,a=!1,d){let p=d?i.getBoundingClientRect():P$(i),v=tle(i,a),S={left:p.left+v.borderLeft+v.scrollbarLeft,right:p.right-v.borderRight-v.scrollbarRight,top:p.top+v.borderTop,bottom:p.bottom-v.borderBottom-v.scrollbarBottom};return a&&(S.left+=v.paddingLeft,S.right-=v.paddingRight,S.top+=v.paddingTop,S.bottom-=v.paddingBottom),S}function P$(i){let a=i.getBoundingClientRect();return{left:a.left+window.scrollX,top:a.top+window.scrollY,right:a.right+window.scrollX,bottom:a.bottom+window.scrollY}}function ole(i){let a=xQ(i),d=i.getBoundingClientRect();for(let p of a){let v=wQ(d,p.getBoundingClientRect());if(v)d=v;else return null}return d}function xQ(i){let a=[];for(;i instanceof HTMLElement;){let d=window.getComputedStyle(i);if(d.position==="fixed")break;/(auto|scroll)/.test(d.overflow+d.overflowY+d.overflowX)&&a.push(i),i=i.parentNode}return a}class $3{constructor(a,d,p,v){this.els=d;let S=this.originClientRect=a.getBoundingClientRect();p&&this.buildElHorizontals(S.left),v&&this.buildElVerticals(S.top)}buildElHorizontals(a){let d=[],p=[];for(let v of this.els){let S=v.getBoundingClientRect();d.push(S.left-a),p.push(S.right-a)}this.lefts=d,this.rights=p}buildElVerticals(a){let d=[],p=[];for(let v of this.els){let S=v.getBoundingClientRect();d.push(S.top-a),p.push(S.bottom-a)}this.tops=d,this.bottoms=p}leftToIndex(a){let{lefts:d,rights:p}=this,v=d.length,S;for(S=0;S<v;S+=1)if(a>=d[S]&&a<p[S])return S}topToIndex(a){let{tops:d,bottoms:p}=this,v=d.length,S;for(S=0;S<v;S+=1)if(a>=d[S]&&a<p[S])return S}getWidth(a){return this.rights[a]-this.lefts[a]}getHeight(a){return this.bottoms[a]-this.tops[a]}similarTo(a){return P7(this.tops||[],a.tops||[])&&P7(this.bottoms||[],a.bottoms||[])&&P7(this.lefts||[],a.lefts||[])&&P7(this.rights||[],a.rights||[])}}function P7(i,a){const d=i.length;if(d!==a.length)return!1;for(let p=0;p<d;p++)if(Math.round(i[p])!==Math.round(a[p]))return!1;return!0}class F${getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class sle extends F${constructor(a){super(),this.el=a}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(a){this.el.scrollTop=a}setScrollLeft(a){this.el.scrollLeft=a}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class rle extends F${getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(a){window.scroll(window.scrollX,a)}setScrollLeft(a){window.scroll(a,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class ug extends Da{constructor(){super(...arguments),this.uid=e2()}prepareHits(){}queryHit(a,d,p,v){return null}isValidSegDownEl(a){return!this.props.eventDrag&&!this.props.eventResize&&!Vu(a,".fc-event-mirror")}isValidDateDownEl(a){return!Vu(a,".fc-event:not(.fc-bg-event)")&&!Vu(a,".fc-more-link")&&!Vu(a,"a[data-navlink]")&&!Vu(a,".fc-popover")}}class EQ{constructor(a=d=>d.thickness||1){this.getEntryThickness=a,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(a){let d=[];for(let p of a)this.insertEntry(p,d);return d}insertEntry(a,d){let p=this.findInsertion(a);this.isInsertionValid(p,a)?this.insertEntryAt(a,p):this.handleInvalidInsertion(p,a,d)}isInsertionValid(a,d){return(this.maxCoord===-1||a.levelCoord+this.getEntryThickness(d)<=this.maxCoord)&&(this.maxStackCnt===-1||a.stackCnt<this.maxStackCnt)}handleInvalidInsertion(a,d,p){if(this.allowReslicing&&a.touchingEntry){const v=Object.assign(Object.assign({},d),{span:L$(d.span,a.touchingEntry.span)});p.push(v),this.splitEntry(d,a.touchingEntry,p)}else p.push(d)}splitEntry(a,d,p){let v=a.span,S=d.span;v.start<S.start&&this.insertEntry({index:a.index,thickness:a.thickness,span:{start:v.start,end:S.start}},p),v.end>S.end&&this.insertEntry({index:a.index,thickness:a.thickness,span:{start:S.end,end:v.end}},p)}insertEntryAt(a,d){let{entriesByLevel:p,levelCoords:v}=this;d.lateral===-1?(V$(v,d.level,d.levelCoord),V$(p,d.level,[a])):V$(p[d.level],d.lateral,a),this.stackCnts[c2(a)]=d.stackCnt}findInsertion(a){let{levelCoords:d,entriesByLevel:p,strictOrder:v,stackCnts:S}=this,E=d.length,A=0,$=-1,L=-1,z=null,se=0;for(let X=0;X<E;X+=1){const le=d[X];if(!v&&le>=A+this.getEntryThickness(a))break;let J=p[X],me,ie=H$(J,a.span.start,$$),G=ie[0]+ie[1];for(;(me=J[G])&&me.span.start<a.span.end;){let we=le+this.getEntryThickness(me);we>A&&(A=we,z=me,$=X,L=G),we===A&&(se=Math.max(se,S[c2(me)]+1)),G+=1}}let oe=0;if(z)for(oe=$+1;oe<E&&d[oe]<A;)oe+=1;let Z=-1;return oe<E&&d[oe]===A&&(Z=H$(p[oe],a.span.end,$$)[0]),{touchingLevel:$,touchingLateral:L,touchingEntry:z,stackCnt:se,levelCoord:A,level:oe,lateral:Z}}toRects(){let{entriesByLevel:a,levelCoords:d}=this,p=a.length,v=[];for(let S=0;S<p;S+=1){let E=a[S],A=d[S];for(let $ of E)v.push(Object.assign(Object.assign({},$),{thickness:this.getEntryThickness($),levelCoord:A}))}return v}}function $$(i){return i.span.end}function c2(i){return i.index+":"+i.span.start}function ale(i){let a=[];for(let d of i){let p=[],v={span:d.span,entries:[d]};for(let S of a)L$(S.span,v.span)?v={entries:S.entries.concat(v.entries),span:lle(S.span,v.span)}:p.push(S);p.push(v),a=p}return a}function lle(i,a){return{start:Math.min(i.start,a.start),end:Math.max(i.end,a.end)}}function L$(i,a){let d=Math.max(i.start,a.start),p=Math.min(i.end,a.end);return d<p?{start:d,end:p}:null}function V$(i,a,d){i.splice(a,0,d)}function H$(i,a,d){let p=0,v=i.length;if(!v||a<d(i[p]))return[0,0];if(a>d(i[v-1]))return[v,0];for(;p<v;){let S=Math.floor(p+(v-p)/2),E=d(i[S]);if(a<E)v=S;else if(a>E)p=S+1;else return[S,1]}return[p,0]}class ile{constructor(a,d){this.emitter=new B7}destroy(){}setMirrorIsVisible(a){}setMirrorNeedsRevert(a){}setAutoScrollEnabled(a){}}const z$={};function cle(i,a){return!i||a>10?Ci({weekday:"short"}):a>1?Ci({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):Ci({weekday:"long"})}const kQ="fc-col-header-cell";function AQ(i){return i.text}class ule extends Da{render(){let{dateEnv:a,options:d,theme:p,viewApi:v}=this.context,{props:S}=this,{date:E,dateProfile:A}=S,$=_Q(E,S.todayRange,null,A),L=[kQ].concat(B$($,p)),z=a.format(E,S.dayHeaderFormat),se=!$.isDisabled&&S.colCnt>1?I7(this.context,E):{},oe=Object.assign(Object.assign(Object.assign({date:a.toDate(E),view:v},S.extraRenderProps),{text:z}),$);return Qe(tm,{elTag:"th",elClasses:L,elAttrs:Object.assign({role:"columnheader",colSpan:S.colSpan,"data-date":$.isDisabled?void 0:u$(E)},S.extraDataAttrs),renderProps:oe,generatorName:"dayHeaderContent",customGenerator:d.dayHeaderContent,defaultGenerator:AQ,classNameGenerator:d.dayHeaderClassNames,didMount:d.dayHeaderDidMount,willUnmount:d.dayHeaderWillUnmount},Z=>Qe("div",{className:"fc-scrollgrid-sync-inner"},!$.isDisabled&&Qe(Z,{elTag:"a",elAttrs:se,elClasses:["fc-col-header-cell-cushion",S.isSticky&&"fc-sticky"]})))}}const dle=Ci({weekday:"long"});class fle extends Da{render(){let{props:a}=this,{dateEnv:d,theme:p,viewApi:v,options:S}=this.context,E=Hu(new Date(2592e5),a.dow),A={dow:a.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},$=d.format(E,a.dayHeaderFormat),L=Object.assign(Object.assign(Object.assign(Object.assign({date:E},A),{view:v}),a.extraRenderProps),{text:$});return Qe(tm,{elTag:"th",elClasses:[kQ,...B$(A,p),...a.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:a.colSpan},a.extraDataAttrs),renderProps:L,generatorName:"dayHeaderContent",customGenerator:S.dayHeaderContent,defaultGenerator:AQ,classNameGenerator:S.dayHeaderClassNames,didMount:S.dayHeaderDidMount,willUnmount:S.dayHeaderWillUnmount},z=>Qe("div",{className:"fc-scrollgrid-sync-inner"},Qe(z,{elTag:"a",elClasses:["fc-col-header-cell-cushion",a.isSticky&&"fc-sticky"],elAttrs:{"aria-label":d.format(E,dle)}})))}}class lk extends em{constructor(a,d){super(a,d),this.initialNowDate=rk(d.options.now,d.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:a,state:d}=this;return a.children(d.nowDate,d.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(a){a.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:a,context:d}=this,p=Ib(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),v=d.dateEnv.startOf(p,a.unit),S=d.dateEnv.add(v,Gr(1,a.unit)),E=S.valueOf()-p.valueOf();return E=Math.min(1e3*60*60*24,E),{currentState:{nowDate:v,todayRange:TQ(v)},nextState:{nowDate:S,todayRange:TQ(S)},waitMs:E}}setTimeout(){let{nextState:a,waitMs:d}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(a,()=>{this.setTimeout()})},d)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}lk.contextType=L1;function TQ(i){let a=kl(i),d=Hu(a,1);return{start:a,end:d}}class DQ extends Da{constructor(){super(...arguments),this.createDayHeaderFormatter=Ts(mle)}render(){let{context:a}=this,{dates:d,dateProfile:p,datesRepDistinctDays:v,renderIntro:S}=this.props,E=this.createDayHeaderFormatter(a.options.dayHeaderFormat,v,d.length);return Qe(lk,{unit:"day"},(A,$)=>Qe("tr",{role:"row"},S&&S("day"),d.map(L=>v?Qe(ule,{key:L.toISOString(),date:L,dateProfile:p,todayRange:$,colCnt:d.length,dayHeaderFormat:E}):Qe(fle,{key:L.getUTCDay(),dow:L.getUTCDay(),dayHeaderFormat:E}))))}}function mle(i,a,d){return i||cle(a,d)}class NQ{constructor(a,d){let p=a.start,{end:v}=a,S=[],E=[],A=-1;for(;p<v;)d.isHiddenDay(p)?S.push(A+.5):(A+=1,S.push(A),E.push(p)),p=Hu(p,1);this.dates=E,this.indices=S,this.cnt=E.length}sliceRange(a){let d=this.getDateDayIndex(a.start),p=this.getDateDayIndex(Hu(a.end,-1)),v=Math.max(0,d),S=Math.min(this.cnt-1,p);return v=Math.ceil(v),S=Math.floor(S),v<=S?{firstIndex:v,lastIndex:S,isStart:d===v,isEnd:p===S}:null}getDateDayIndex(a){let{indices:d}=this,p=Math.floor(t2(this.dates[0],a));return p<0?d[0]-1:p>=d.length?d[d.length-1]+1:d[p]}}class RQ{constructor(a,d){let{dates:p}=a,v,S,E;if(d){for(S=p[0].getUTCDay(),v=1;v<p.length&&p[v].getUTCDay()!==S;v+=1);E=Math.ceil(p.length/v)}else E=1,v=p.length;this.rowCnt=E,this.colCnt=v,this.daySeries=a,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let a=[];for(let d=0;d<this.rowCnt;d+=1){let p=[];for(let v=0;v<this.colCnt;v+=1)p.push(this.buildCell(d,v));a.push(p)}return a}buildCell(a,d){let p=this.daySeries.dates[a*this.colCnt+d];return{key:p.toISOString(),date:p}}buildHeaderDates(){let a=[];for(let d=0;d<this.colCnt;d+=1)a.push(this.cells[0][d].date);return a}sliceRange(a){let{colCnt:d}=this,p=this.daySeries.sliceRange(a),v=[];if(p){let{firstIndex:S,lastIndex:E}=p,A=S;for(;A<=E;){let $=Math.floor(A/d),L=Math.min(($+1)*d,E+1);v.push({row:$,firstCol:A%d,lastCol:(L-1)%d,isStart:p.isStart&&A===S,isEnd:p.isEnd&&L-1===E}),A=L}}return v}}class OQ{constructor(){this.sliceBusinessHours=Ts(this._sliceBusinessHours),this.sliceDateSelection=Ts(this._sliceDateSpan),this.sliceEventStore=Ts(this._sliceEventStore),this.sliceEventDrag=Ts(this._sliceInteraction),this.sliceEventResize=Ts(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(a,d,p,v,...S){let{eventUiBases:E}=a,A=this.sliceEventStore(a.eventStore,E,d,p,...S);return{dateSelectionSegs:this.sliceDateSelection(a.dateSelection,d,p,E,v,...S),businessHourSegs:this.sliceBusinessHours(a.businessHours,d,p,v,...S),fgEventSegs:A.fg,bgEventSegs:A.bg,eventDrag:this.sliceEventDrag(a.eventDrag,E,d,p,...S),eventResize:this.sliceEventResize(a.eventResize,E,d,p,...S),eventSelection:a.eventSelection}}sliceNowDate(a,d,p,v,...S){return this._sliceDateSpan({range:{start:a,end:Ib(a,1)},allDay:!1},d,p,{},v,...S)}_sliceBusinessHours(a,d,p,v,...S){return a?this._sliceEventStore(l2(a,F7(d,!!p),v),{},d,p,...S).bg:[]}_sliceEventStore(a,d,p,v,...S){if(a){let E=uQ(a,d,F7(p,!!v),v);return{bg:this.sliceEventRanges(E.bg,S),fg:this.sliceEventRanges(E.fg,S)}}return{bg:[],fg:[]}}_sliceInteraction(a,d,p,v,...S){if(!a)return null;let E=uQ(a.mutatedEvents,d,F7(p,!!v),v);return{segs:this.sliceEventRanges(E.fg,S),affectedInstances:a.affectedEvents.instances,isEvent:a.isEvent}}_sliceDateSpan(a,d,p,v,S,...E){if(!a)return[];let A=F7(d,!!p),$=a2(a.range,A);if($){a=Object.assign(Object.assign({},a),{range:$});let L=Pae(a,v,S),z=this.sliceRange(a.range,...E);for(let se of z)se.eventRange=L;return z}return[]}sliceEventRanges(a,d){let p=[];for(let v of a)p.push(...this.sliceEventRange(v,d));return p}sliceEventRange(a,d){let p=a.range;this.forceDayIfListItem&&a.ui.display==="list-item"&&(p={start:p.start,end:Hu(p.start,1)});let v=this.sliceRange(p,...d);for(let S of v)S.eventRange=a,S.isStart=a.isStart&&S.isStart,S.isEnd=a.isEnd&&S.isEnd;return v}}function F7(i,a){let d=i.activeRange;return a?d:{start:Ib(d.start,i.slotMinTime.milliseconds),end:Ib(d.end,i.slotMaxTime.milliseconds-864e5)}}function BQ(i,a,d){let{instances:p}=i.mutatedEvents;for(let v in p)if(!T7(a.validRange,p[v].range))return!1;return MQ({eventDrag:i},d)}function hle(i,a,d){return T7(a.validRange,i.range)?MQ({dateSelection:i},d):!1}function MQ(i,a){let d=a.getCurrentData(),p=Object.assign({businessHours:d.businessHours,dateSelection:"",eventStore:d.eventStore,eventUiBases:d.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},i);return(a.pluginHooks.isPropsValid||ple)(p,a)}function ple(i,a,d={},p){return!(i.eventDrag&&!gle(i,a,d,p)||i.dateSelection&&!ble(i,a,d,p))}function gle(i,a,d,p){let v=a.getCurrentData(),S=i.eventDrag,E=S.mutatedEvents,A=E.defs,$=E.instances,L=M7(A,S.isEvent?i.eventUiBases:{"":v.selectionConfig});p&&(L=$1(L,p));let z=hae(i.eventStore,S.affectedEvents.instances),se=z.defs,oe=z.instances,Z=M7(se,i.eventUiBases);for(let X in $){let le=$[X],J=le.range,me=L[le.defId],ie=A[le.defId];if(!IQ(me.constraints,J,z,i.businessHours,a))return!1;let{eventOverlap:G}=a.options,we=typeof G=="function"?G:null;for(let Ve in oe){let K=oe[Ve];if(C$(J,K.range)&&(Z[K.defId].overlap===!1&&S.isEvent||me.overlap===!1||we&&!we(new li(a,se[K.defId],K),new li(a,ie,le))))return!1}let wt=v.eventStore;for(let Ve of me.allows){let K=Object.assign(Object.assign({},d),{range:le.range,allDay:ie.allDay}),De=wt.defs[ie.defId],tt=wt.instances[X],lt;if(De?lt=new li(a,De,tt):lt=new li(a,ie),!Ve(A$(K,a),lt))return!1}}return!0}function ble(i,a,d,p){let v=i.eventStore,S=v.defs,E=v.instances,A=i.dateSelection,$=A.range,{selectionConfig:L}=a.getCurrentData();if(p&&(L=p(L)),!IQ(L.constraints,$,v,i.businessHours,a))return!1;let{selectOverlap:z}=a.options,se=typeof z=="function"?z:null;for(let oe in E){let Z=E[oe];if(C$($,Z.range)&&(L.overlap===!1||se&&!se(new li(a,S[Z.defId],Z),null)))return!1}for(let oe of L.allows){let Z=Object.assign(Object.assign({},d),A);if(!oe(A$(Z,a),null))return!1}return!0}function IQ(i,a,d,p,v){for(let S of i)if(!vle(yle(S,a,d,p,v),a))return!1;return!0}function yle(i,a,d,p,v){return i==="businessHours"?U$(l2(p,a,v)):typeof i=="string"?U$(N7(d,S=>S.groupId===i)):typeof i=="object"&&i?U$(l2(i,a,v)):[]}function U$(i){let{instances:a}=i,d=[];for(let p in a)d.push(a[p].range);return d}function vle(i,a){for(let d of i)if(T7(d,a))return!0;return!1}const $7=/^(visible|hidden)$/;class Cle extends Da{constructor(){super(...arguments),this.handleEl=a=>{this.el=a,V1(this.props.elRef,a)}}render(){let{props:a}=this,{liquid:d,liquidIsAbsolute:p}=a,v=d&&p,S=["fc-scroller"];return d&&(p?S.push("fc-scroller-liquid-absolute"):S.push("fc-scroller-liquid")),Qe("div",{ref:this.handleEl,className:S.join(" "),style:{overflowX:a.overflowX,overflowY:a.overflowY,left:v&&-(a.overcomeLeft||0)||"",right:v&&-(a.overcomeRight||0)||"",bottom:v&&-(a.overcomeBottom||0)||"",marginLeft:!v&&-(a.overcomeLeft||0)||"",marginRight:!v&&-(a.overcomeRight||0)||"",marginBottom:!v&&-(a.overcomeBottom||0)||"",maxHeight:a.maxHeight||""}},a.children)}needsXScrolling(){if($7.test(this.props.overflowX))return!1;let{el:a}=this,d=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:p}=a;for(let v=0;v<p.length;v+=1)if(p[v].getBoundingClientRect().width>d)return!0;return!1}needsYScrolling(){if($7.test(this.props.overflowY))return!1;let{el:a}=this,d=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:p}=a;for(let v=0;v<p.length;v+=1)if(p[v].getBoundingClientRect().height>d)return!0;return!1}getXScrollbarWidth(){return $7.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return $7.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class z1{constructor(a){this.masterCallback=a,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(d,p)=>{let{depths:v,currentMap:S}=this,E=!1,A=!1;d!==null?(E=p in S,S[p]=d,v[p]=(v[p]||0)+1,A=!0):(v[p]-=1,v[p]||(delete S[p],delete this.callbackMap[p],E=!0)),this.masterCallback&&(E&&this.masterCallback(null,String(p)),A&&this.masterCallback(d,String(p)))}}createRef(a){let d=this.callbackMap[a];return d||(d=this.callbackMap[a]=p=>{this.handleValue(p,String(a))}),d}collect(a,d,p){return Rre(this.currentMap,a,d,p)}getAll(){return p$(this.currentMap)}}function wle(i){let a=Nse(i,".fc-scrollgrid-shrink"),d=0;for(let p of a)d=Math.max(d,Wse(p));return Math.ceil(d)}function PQ(i,a){return i.liquid&&a.liquid}function _le(i,a){return a.maxHeight!=null||PQ(i,a)}function Sle(i,a,d,p){let{expandRows:v}=d;return typeof a.content=="function"?a.content(d):Qe("table",{role:"presentation",className:[a.tableClassName,i.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:d.tableMinWidth,width:d.clientWidth,height:v?d.clientHeight:""}},d.tableColGroupNode,Qe(p?"thead":"tbody",{role:"presentation"},typeof a.rowContent=="function"?a.rowContent(d):a.rowContent))}function xle(i,a){return Mb(i,a,cg)}function Ele(i,a){let d=[];for(let p of i){let v=p.span||1;for(let S=0;S<v;S+=1)d.push(Qe("col",{style:{width:p.width==="shrink"?kle(a):p.width||"",minWidth:p.minWidth||""}}))}return Qe("colgroup",{},...d)}function kle(i){return i??4}function Ale(i){for(let a of i)if(a.width==="shrink")return!0;return!1}function Tle(i,a){let d=["fc-scrollgrid",a.theme.getClass("table")];return i&&d.push("fc-scrollgrid-liquid"),d}function Dle(i,a){let d=["fc-scrollgrid-section",`fc-scrollgrid-section-${i.type}`,i.className];return a&&i.liquid&&i.maxHeight==null&&d.push("fc-scrollgrid-section-liquid"),i.isSticky&&d.push("fc-scrollgrid-section-sticky"),d}function W$(i){return Qe("div",{className:"fc-scrollgrid-sticky-shim",style:{width:i.clientWidth,minWidth:i.tableMinWidth}})}function L7(i){let{stickyHeaderDates:a}=i;return(a==null||a==="auto")&&(a=i.height==="auto"||i.viewHeight==="auto"),a}function FQ(i){let{stickyFooterScrollbar:a}=i;return(a==null||a==="auto")&&(a=i.height==="auto"||i.viewHeight==="auto"),a}class j$ extends Da{constructor(){super(...arguments),this.processCols=Ts(a=>a,xle),this.renderMicroColGroup=Ts(Ele),this.scrollerRefs=new z1,this.scrollerElRefs=new z1(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:a,state:d,context:p}=this,v=a.sections||[],S=this.processCols(a.cols),E=this.renderMicroColGroup(S,d.shrinkWidth),A=Tle(a.liquid,p);a.collapsibleWidth&&A.push("fc-scrollgrid-collapsible");let $=v.length,L=0,z,se=[],oe=[],Z=[];for(;L<$&&(z=v[L]).type==="header";)se.push(this.renderSection(z,E,!0)),L+=1;for(;L<$&&(z=v[L]).type==="body";)oe.push(this.renderSection(z,E,!1)),L+=1;for(;L<$&&(z=v[L]).type==="footer";)Z.push(this.renderSection(z,E,!0)),L+=1;let X=!CQ();const le={role:"rowgroup"};return Qe("table",{role:"grid",className:A.join(" "),style:{height:a.height}},!!(!X&&se.length)&&Qe("thead",le,...se),!!(!X&&oe.length)&&Qe("tbody",le,...oe),!!(!X&&Z.length)&&Qe("tfoot",le,...Z),X&&Qe("tbody",le,...se,...oe,...Z))}renderSection(a,d,p){return"outerContent"in a?Qe(ql,{key:a.key},a.outerContent):Qe("tr",{key:a.key,role:"presentation",className:Dle(a,this.props.liquid).join(" ")},this.renderChunkTd(a,d,a.chunk,p))}renderChunkTd(a,d,p,v){if("outerContent"in p)return p.outerContent;let{props:S}=this,{forceYScrollbars:E,scrollerClientWidths:A,scrollerClientHeights:$}=this.state,L=_le(S,a),z=PQ(S,a),se=S.liquid?E?"scroll":L?"auto":"hidden":"visible",oe=a.key,Z=Sle(a,p,{tableColGroupNode:d,tableMinWidth:"",clientWidth:!S.collapsibleWidth&&A[oe]!==void 0?A[oe]:null,clientHeight:$[oe]!==void 0?$[oe]:null,expandRows:a.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},v);return Qe(v?"th":"td",{ref:p.elRef,role:"presentation"},Qe("div",{className:`fc-scroller-harness${z?" fc-scroller-harness-liquid":""}`},Qe(Cle,{ref:this.scrollerRefs.createRef(oe),elRef:this.scrollerElRefs.createRef(oe),overflowY:se,overflowX:S.liquid?"hidden":"visible",maxHeight:a.maxHeight,liquid:z,liquidIsAbsolute:!0},Z)))}_handleScrollerEl(a,d){let p=Nle(this.props.sections,d);p&&V1(p.chunk.scrollerElRef,a)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Ale(this.props.cols)?wle(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let a=Jae(),{scrollerRefs:d,scrollerElRefs:p}=this,v=!1,S={},E={};for(let A in d.currentMap){let $=d.currentMap[A];if($&&$.needsYScrolling()){v=!0;break}}for(let A of this.props.sections){let $=A.key,L=p.currentMap[$];if(L){let z=L.parentNode;S[$]=Math.floor(z.getBoundingClientRect().width-(v?a.y:0)),E[$]=Math.floor(z.getBoundingClientRect().height)}}return{forceYScrollbars:v,scrollerClientWidths:S,scrollerClientHeights:E}}}j$.addStateEquality({scrollerClientWidths:cg,scrollerClientHeights:cg});function Nle(i,a){for(let d of i)if(d.key===a)return d;return null}class Z$ extends Da{constructor(){super(...arguments),this.handleEl=a=>{this.el=a,a&&dQ(a,this.props.seg)}}render(){const{props:a,context:d}=this,{options:p}=d,{seg:v}=a,{eventRange:S}=v,{ui:E}=S,A={event:new li(d,S.def,S.instance),view:d.viewApi,timeText:a.timeText,textColor:E.textColor,backgroundColor:E.backgroundColor,borderColor:E.borderColor,isDraggable:!a.disableDragging&&kae(v,d),isStartResizable:!a.disableResizing&&Aae(v,d),isEndResizable:!a.disableResizing&&Tae(v),isMirror:!!(a.isDragging||a.isResizing||a.isDateSelecting),isStart:!!v.isStart,isEnd:!!v.isEnd,isPast:!!a.isPast,isFuture:!!a.isFuture,isToday:!!a.isToday,isSelected:!!a.isSelected,isDragging:!!a.isDragging,isResizing:!!a.isResizing};return Qe(tm,Object.assign({},a,{elRef:this.handleEl,elClasses:[...Dae(A),...v.eventRange.ui.classNames,...a.elClasses||[]],renderProps:A,generatorName:"eventContent",customGenerator:p.eventContent,defaultGenerator:a.defaultGenerator,classNameGenerator:p.eventClassNames,didMount:p.eventDidMount,willUnmount:p.eventWillUnmount}))}componentDidUpdate(a){this.el&&this.props.seg!==a.seg&&dQ(this.el,this.props.seg)}}class $Q extends Da{render(){let{props:a,context:d}=this,{options:p}=d,{seg:v}=a,{ui:S}=v.eventRange,E=p.eventTimeFormat||a.defaultTimeFormat,A=hQ(v,E,d,a.defaultDisplayEventTime,a.defaultDisplayEventEnd);return Qe(Z$,Object.assign({},a,{elTag:"a",elStyle:{borderColor:S.borderColor,backgroundColor:S.backgroundColor},elAttrs:gQ(v,d),defaultGenerator:Rle,timeText:A}),($,L)=>Qe(ql,null,Qe($,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:L.textColor}}),!!L.isStartResizable&&Qe("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!L.isEndResizable&&Qe("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function Rle(i){return Qe("div",{className:"fc-event-main-frame"},i.timeText&&Qe("div",{className:"fc-event-time"},i.timeText),Qe("div",{className:"fc-event-title-container"},Qe("div",{className:"fc-event-title fc-sticky"},i.event.title||Qe(ql,null," "))))}const G$=i=>Qe(L1.Consumer,null,a=>{let{options:d}=a,p={isAxis:i.isAxis,date:a.dateEnv.toDate(i.date),view:a.viewApi};return Qe(tm,Object.assign({},i,{elTag:i.elTag||"div",renderProps:p,generatorName:"nowIndicatorContent",customGenerator:d.nowIndicatorContent,classNameGenerator:d.nowIndicatorClassNames,didMount:d.nowIndicatorDidMount,willUnmount:d.nowIndicatorWillUnmount}))}),Ole=Ci({day:"numeric"});class q$ extends Da{constructor(){super(...arguments),this.refineRenderProps=C7(Ble)}render(){let{props:a,context:d}=this,{options:p}=d,v=this.refineRenderProps({date:a.date,dateProfile:a.dateProfile,todayRange:a.todayRange,isMonthStart:a.isMonthStart||!1,showDayNumber:a.showDayNumber,extraRenderProps:a.extraRenderProps,viewApi:d.viewApi,dateEnv:d.dateEnv,monthStartFormat:p.monthStartFormat});return Qe(tm,Object.assign({},a,{elClasses:[...B$(v,d.theme),...a.elClasses||[]],elAttrs:Object.assign(Object.assign({},a.elAttrs),v.isDisabled?{}:{"data-date":u$(a.date)}),renderProps:v,generatorName:"dayCellContent",customGenerator:p.dayCellContent,defaultGenerator:a.defaultGenerator,classNameGenerator:v.isDisabled?void 0:p.dayCellClassNames,didMount:p.dayCellDidMount,willUnmount:p.dayCellWillUnmount}))}}function K$(i){return!!(i.dayCellContent||v$("dayCellContent",i))}function Ble(i){let{date:a,dateEnv:d,dateProfile:p,isMonthStart:v}=i,S=_Q(a,i.todayRange,null,p),E=i.showDayNumber?d.format(a,v?i.monthStartFormat:Ole):"";return Object.assign(Object.assign(Object.assign({date:d.toDate(a),view:i.viewApi},S),{isMonthStart:v,dayNumberText:E}),i.extraRenderProps)}class LQ extends Da{render(){let{props:a}=this,{seg:d}=a;return Qe(Z$,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:d.eventRange.ui.backgroundColor},defaultGenerator:Mle,seg:d,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:a.isPast,isFuture:a.isFuture,isToday:a.isToday,disableDragging:!0,disableResizing:!0})}}function Mle(i){let{title:a}=i.event;return a&&Qe("div",{className:"fc-event-title"},i.event.title)}function VQ(i){return Qe("div",{className:`fc-${i}`})}const HQ=i=>Qe(L1.Consumer,null,a=>{let{dateEnv:d,options:p}=a,{date:v}=i,S=p.weekNumberFormat||i.defaultFormat,E=d.computeWeekNumber(v),A=d.format(v,S);return Qe(tm,Object.assign({},i,{renderProps:{num:E,text:A,date:v},generatorName:"weekNumberContent",customGenerator:p.weekNumberContent,defaultGenerator:Ile,classNameGenerator:p.weekNumberClassNames,didMount:p.weekNumberDidMount,willUnmount:p.weekNumberWillUnmount}))});function Ile(i){return i.text}const Y$=10;class Ple extends Da{constructor(){super(...arguments),this.state={titleId:g7()},this.handleRootEl=a=>{this.rootEl=a,this.props.elRef&&V1(this.props.elRef,a)},this.handleDocumentMouseDown=a=>{const d=CX(a);this.rootEl.contains(d)||this.handleCloseClick()},this.handleDocumentKeyDown=a=>{a.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:a}=this.props;a&&a()}}render(){let{theme:a,options:d}=this.context,{props:p,state:v}=this,S=["fc-popover",a.getClass("popover")].concat(p.extraClassNames||[]);return gse(Qe("div",Object.assign({},p.extraAttrs,{id:p.id,className:S.join(" "),"aria-labelledby":v.titleId,ref:this.handleRootEl}),Qe("div",{className:"fc-popover-header "+a.getClass("popoverHeader")},Qe("span",{className:"fc-popover-title",id:v.titleId},p.title),Qe("span",{className:"fc-popover-close "+a.getIconClass("close"),title:d.closeHint,onClick:this.handleCloseClick})),Qe("div",{className:"fc-popover-body "+a.getClass("popoverContent")},p.children)),p.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:a}=this.context,{alignmentEl:d,alignGridTop:p}=this.props,{rootEl:v}=this,S=ole(d);if(S){let E=v.getBoundingClientRect(),A=p?Vu(d,".fc-scrollgrid").getBoundingClientRect().top:S.top,$=a?S.right-E.width:S.left;A=Math.max(A,Y$),$=Math.min($,document.documentElement.clientWidth-Y$-E.width),$=Math.max($,Y$);let L=v.offsetParent.getBoundingClientRect();tk(v,{top:A-L.top,left:$-L.left})}}}class Fle extends ug{constructor(){super(...arguments),this.handleRootEl=a=>{this.rootEl=a,a?this.context.registerInteractiveComponent(this,{el:a,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:a,dateEnv:d}=this.context,{props:p}=this,{startDate:v,todayRange:S,dateProfile:E}=p,A=d.format(v,a.dayPopoverFormat);return Qe(q$,{elRef:this.handleRootEl,date:v,dateProfile:E,todayRange:S},($,L,z)=>Qe(Ple,{elRef:z.ref,id:p.id,title:A,extraClassNames:["fc-more-popover"].concat(z.className||[]),extraAttrs:z,parentEl:p.parentEl,alignmentEl:p.alignmentEl,alignGridTop:p.alignGridTop,onClose:p.onClose},K$(a)&&Qe($,{elTag:"div",elClasses:["fc-more-popover-misc"]}),p.children))}queryHit(a,d,p,v){let{rootEl:S,props:E}=this;return a>=0&&a<p&&d>=0&&d<v?{dateProfile:E.dateProfile,dateSpan:Object.assign({allDay:!E.forceTimed,range:{start:E.startDate,end:E.endDate}},E.extraDateSpan),dayEl:S,rect:{left:0,top:0,right:p,bottom:v},layer:1}:null}}class zQ extends Da{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:g7()},this.handleLinkEl=a=>{this.linkEl=a,this.props.elRef&&V1(this.props.elRef,a)},this.handleClick=a=>{let{props:d,context:p}=this,{moreLinkClick:v}=p.options,S=UQ(d).start;function E(A){let{def:$,instance:L,range:z}=A.eventRange;return{event:new li(p,$,L),start:p.dateEnv.toDate(z.start),end:p.dateEnv.toDate(z.end),isStart:A.isStart,isEnd:A.isEnd}}typeof v=="function"&&(v=v({date:S,allDay:!!d.allDayDate,allSegs:d.allSegs.map(E),hiddenSegs:d.hiddenSegs.map(E),jsEvent:a,view:p.viewApi})),!v||v==="popover"?this.setState({isPopoverOpen:!0}):typeof v=="string"&&p.calendarApi.zoomTo(S,v)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:a,state:d}=this;return Qe(L1.Consumer,null,p=>{let{viewApi:v,options:S,calendarApi:E}=p,{moreLinkText:A}=S,{moreCnt:$}=a,L=UQ(a),z=typeof A=="function"?A.call(E,$):`+${$} ${A}`,se=nk(S.moreLinkHint,[$],z),oe={num:$,shortText:`+${$}`,text:z,view:v};return Qe(ql,null,!!a.moreCnt&&Qe(tm,{elTag:a.elTag||"a",elRef:this.handleLinkEl,elClasses:[...a.elClasses||[],"fc-more-link"],elStyle:a.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},a.elAttrs),xX(this.handleClick)),{title:se,"aria-expanded":d.isPopoverOpen,"aria-controls":d.isPopoverOpen?d.popoverId:""}),renderProps:oe,generatorName:"moreLinkContent",customGenerator:S.moreLinkContent,defaultGenerator:a.defaultGenerator||$le,classNameGenerator:S.moreLinkClassNames,didMount:S.moreLinkDidMount,willUnmount:S.moreLinkWillUnmount},a.children),d.isPopoverOpen&&Qe(Fle,{id:d.popoverId,startDate:L.start,endDate:L.end,dateProfile:a.dateProfile,todayRange:a.todayRange,extraDateSpan:a.extraDateSpan,parentEl:this.parentEl,alignmentEl:a.alignmentElRef?a.alignmentElRef.current:this.linkEl,alignGridTop:a.alignGridTop,forceTimed:a.forceTimed,onClose:this.handlePopoverClose},a.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=Vu(this.linkEl,".fc-view-harness"))}}function $le(i){return i.text}function UQ(i){if(i.allDayDate)return{start:i.allDayDate,end:Hu(i.allDayDate,1)};let{hiddenSegs:a}=i;return{start:WQ(a),end:Vle(a)}}function WQ(i){return i.reduce(Lle).eventRange.range.start}function Lle(i,a){return i.eventRange.range.start<a.eventRange.range.start?i:a}function Vle(i){return i.reduce(Hle).eventRange.range.end}function Hle(i,a){return i.eventRange.range.end>a.eventRange.range.end?i:a}class zle{constructor(){this.handlers=[]}set(a){this.currentValue=a;for(let d of this.handlers)d(a)}subscribe(a){this.handlers.push(a),this.currentValue!==void 0&&a(this.currentValue)}}class Ule extends zle{constructor(){super(...arguments),this.map=new Map}handle(a){const{map:d}=this;let p=!1;a.isActive?(d.set(a.id,a),p=!0):d.has(a.id)&&(d.delete(a.id),p=!0),p&&this.set(d)}}const Wle=[],jQ={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},ZQ=Object.assign(Object.assign({},jQ),{buttonHints:{prev:"Previous $0",next:"Next $0",today(i,a){return a==="day"?"Today":`This ${i}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(i){return`Show ${i} more event${i===1?"":"s"}`}});function jle(i){let a=i.length>0?i[0].code:"en",d=Wle.concat(i),p={en:ZQ};for(let v of d)p[v.code]=v;return{map:p,defaultCode:a}}function GQ(i,a){return typeof i=="object"&&!Array.isArray(i)?qQ(i.code,[i.code],i):Zle(i,a)}function Zle(i,a){let d=[].concat(i||[]),p=Gle(d,a)||ZQ;return qQ(i,d,p)}function Gle(i,a){for(let d=0;d<i.length;d+=1){let p=i[d].toLocaleLowerCase().split("-");for(let v=p.length;v>0;v-=1){let S=p.slice(0,v).join("-");if(a[S])return a[S]}}return null}function qQ(i,a,d){let p=h$([jQ,d],["buttonText"]);delete p.code;let{week:v}=p;return delete p.week,{codeArg:i,codes:a,week:v,simpleNumberFormat:new Intl.NumberFormat(i),options:p}}function U1(i){return{id:e2(),name:i.name,premiumReleaseDate:i.premiumReleaseDate?new Date(i.premiumReleaseDate):void 0,deps:i.deps||[],reducers:i.reducers||[],isLoadingFuncs:i.isLoadingFuncs||[],contextInit:[].concat(i.contextInit||[]),eventRefiners:i.eventRefiners||{},eventDefMemberAdders:i.eventDefMemberAdders||[],eventSourceRefiners:i.eventSourceRefiners||{},isDraggableTransformers:i.isDraggableTransformers||[],eventDragMutationMassagers:i.eventDragMutationMassagers||[],eventDefMutationAppliers:i.eventDefMutationAppliers||[],dateSelectionTransformers:i.dateSelectionTransformers||[],datePointTransforms:i.datePointTransforms||[],dateSpanTransforms:i.dateSpanTransforms||[],views:i.views||{},viewPropsTransformers:i.viewPropsTransformers||[],isPropsValid:i.isPropsValid||null,externalDefTransforms:i.externalDefTransforms||[],viewContainerAppends:i.viewContainerAppends||[],eventDropTransformers:i.eventDropTransformers||[],componentInteractions:i.componentInteractions||[],calendarInteractions:i.calendarInteractions||[],themeClasses:i.themeClasses||{},eventSourceDefs:i.eventSourceDefs||[],cmdFormatter:i.cmdFormatter,recurringTypes:i.recurringTypes||[],namedTimeZonedImpl:i.namedTimeZonedImpl,initialView:i.initialView||"",elementDraggingImpl:i.elementDraggingImpl,optionChangeHandlers:i.optionChangeHandlers||{},scrollGridImpl:i.scrollGridImpl||null,listenerRefiners:i.listenerRefiners||{},optionRefiners:i.optionRefiners||{},propSetHandlers:i.propSetHandlers||{}}}function qle(i,a){let d={},p={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function v(S){for(let E of S){const A=E.name,$=d[A];$===void 0?(d[A]=E.id,v(E.deps),p=Yle(p,E)):$!==E.id&&console.warn(`Duplicate plugin '${A}'`)}}return i&&v(i),v(a),p}function Kle(){let i=[],a=[],d;return(p,v)=>((!d||!Mb(p,i)||!Mb(v,a))&&(d=qle(p,v)),i=p,a=v,d)}function Yle(i,a){return{premiumReleaseDate:Xle(i.premiumReleaseDate,a.premiumReleaseDate),reducers:i.reducers.concat(a.reducers),isLoadingFuncs:i.isLoadingFuncs.concat(a.isLoadingFuncs),contextInit:i.contextInit.concat(a.contextInit),eventRefiners:Object.assign(Object.assign({},i.eventRefiners),a.eventRefiners),eventDefMemberAdders:i.eventDefMemberAdders.concat(a.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},i.eventSourceRefiners),a.eventSourceRefiners),isDraggableTransformers:i.isDraggableTransformers.concat(a.isDraggableTransformers),eventDragMutationMassagers:i.eventDragMutationMassagers.concat(a.eventDragMutationMassagers),eventDefMutationAppliers:i.eventDefMutationAppliers.concat(a.eventDefMutationAppliers),dateSelectionTransformers:i.dateSelectionTransformers.concat(a.dateSelectionTransformers),datePointTransforms:i.datePointTransforms.concat(a.datePointTransforms),dateSpanTransforms:i.dateSpanTransforms.concat(a.dateSpanTransforms),views:Object.assign(Object.assign({},i.views),a.views),viewPropsTransformers:i.viewPropsTransformers.concat(a.viewPropsTransformers),isPropsValid:a.isPropsValid||i.isPropsValid,externalDefTransforms:i.externalDefTransforms.concat(a.externalDefTransforms),viewContainerAppends:i.viewContainerAppends.concat(a.viewContainerAppends),eventDropTransformers:i.eventDropTransformers.concat(a.eventDropTransformers),calendarInteractions:i.calendarInteractions.concat(a.calendarInteractions),componentInteractions:i.componentInteractions.concat(a.componentInteractions),themeClasses:Object.assign(Object.assign({},i.themeClasses),a.themeClasses),eventSourceDefs:i.eventSourceDefs.concat(a.eventSourceDefs),cmdFormatter:a.cmdFormatter||i.cmdFormatter,recurringTypes:i.recurringTypes.concat(a.recurringTypes),namedTimeZonedImpl:a.namedTimeZonedImpl||i.namedTimeZonedImpl,initialView:i.initialView||a.initialView,elementDraggingImpl:i.elementDraggingImpl||a.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},i.optionChangeHandlers),a.optionChangeHandlers),scrollGridImpl:a.scrollGridImpl||i.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},i.listenerRefiners),a.listenerRefiners),optionRefiners:Object.assign(Object.assign({},i.optionRefiners),a.optionRefiners),propSetHandlers:Object.assign(Object.assign({},i.propSetHandlers),a.propSetHandlers)}}function Xle(i,a){return i===void 0?a:a===void 0?i:new Date(Math.max(i.valueOf(),a.valueOf()))}class Lb extends sk{}Lb.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Lb.prototype.baseIconClass="fc-icon",Lb.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Lb.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Lb.prototype.iconOverrideOption="buttonIcons",Lb.prototype.iconOverrideCustomButtonOption="icon",Lb.prototype.iconOverridePrefix="fc-icon-";function Qle(i,a){let d={},p;for(p in i)X$(p,d,i,a);for(p in a)X$(p,d,i,a);return d}function X$(i,a,d,p){if(a[i])return a[i];let v=Jle(i,a,d,p);return v&&(a[i]=v),v}function Jle(i,a,d,p){let v=d[i],S=p[i],E=z=>v&&v[z]!==null?v[z]:S&&S[z]!==null?S[z]:null,A=E("component"),$=E("superType"),L=null;if($){if($===i)throw new Error("Can't have a custom view type that references itself");L=X$($,a,d,p)}return!A&&L&&(A=L.component),A?{type:i,component:A,defaults:Object.assign(Object.assign({},L?L.defaults:{}),v?v.rawOptions:{}),overrides:Object.assign(Object.assign({},L?L.overrides:{}),S?S.rawOptions:{})}:null}function KQ(i){return $1(i,eie)}function eie(i){let a=typeof i=="function"?{component:i}:i,{component:d}=a;return a.content?d=YQ(a):d&&!(d.prototype instanceof Da)&&(d=YQ(Object.assign(Object.assign({},a),{content:d}))),{superType:a.type,component:d,rawOptions:a}}function YQ(i){return a=>Qe(L1.Consumer,null,d=>Qe(tm,{elTag:"div",elClasses:jX(d.viewSpec),renderProps:Object.assign(Object.assign({},a),{nextDayThreshold:d.options.nextDayThreshold}),generatorName:void 0,customGenerator:i.content,classNameGenerator:i.classNames,didMount:i.didMount,willUnmount:i.willUnmount}))}function tie(i,a,d,p){let v=KQ(i),S=KQ(a.views),E=Qle(v,S);return $1(E,A=>nie(A,S,a,d,p))}function nie(i,a,d,p,v){let S=i.overrides.duration||i.defaults.duration||p.duration||d.duration,E=null,A="",$="",L={};if(S&&(E=oie(S),E)){let oe=i$(E);A=oe.unit,oe.value===1&&($=A,L=a[A]?a[A].rawOptions:{})}let z=oe=>{let Z=oe.buttonText||{},X=i.defaults.buttonTextKey;return X!=null&&Z[X]!=null?Z[X]:Z[i.type]!=null?Z[i.type]:Z[$]!=null?Z[$]:null},se=oe=>{let Z=oe.buttonHints||{},X=i.defaults.buttonTextKey;return X!=null&&Z[X]!=null?Z[X]:Z[i.type]!=null?Z[i.type]:Z[$]!=null?Z[$]:null};return{type:i.type,component:i.component,duration:E,durationUnit:A,singleUnit:$,optionDefaults:i.defaults,optionOverrides:Object.assign(Object.assign({},L),i.overrides),buttonTextOverride:z(p)||z(d)||i.overrides.buttonText,buttonTextDefault:z(v)||i.defaults.buttonText||z(ok)||i.type,buttonTitleOverride:se(p)||se(d)||i.overrides.buttonHint,buttonTitleDefault:se(v)||i.defaults.buttonHint||se(ok)}}let XQ={};function oie(i){let a=JSON.stringify(i),d=XQ[a];return d===void 0&&(d=Gr(i),XQ[a]=d),d}function sie(i,a){switch(a.type){case"CHANGE_VIEW_TYPE":i=a.viewType}return i}function rie(i,a){switch(a.type){case"SET_OPTION":return Object.assign(Object.assign({},i),{[a.optionName]:a.rawOptionValue});default:return i}}function aie(i,a,d,p){let v;switch(a.type){case"CHANGE_VIEW_TYPE":return p.build(a.dateMarker||d);case"CHANGE_DATE":return p.build(a.dateMarker);case"PREV":if(v=p.buildPrev(i,d),v.isValid)return v;break;case"NEXT":if(v=p.buildNext(i,d),v.isValid)return v;break}return i}function lie(i,a,d){let p=a?a.activeRange:null;return JQ({},hie(i,d),p,d)}function iie(i,a,d,p){let v=d?d.activeRange:null;switch(a.type){case"ADD_EVENT_SOURCES":return JQ(i,a.sources,v,p);case"REMOVE_EVENT_SOURCE":return uie(i,a.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return d?eJ(i,v,p):i;case"FETCH_EVENT_SOURCES":return Q$(i,a.sourceIds?VX(a.sourceIds):tJ(i,p),v,a.isRefetch||!1,p);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return mie(i,a.sourceId,a.fetchId,a.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return i}}function cie(i,a,d){let p=a?a.activeRange:null;return Q$(i,tJ(i,d),p,!0,d)}function QQ(i){for(let a in i)if(i[a].isFetching)return!0;return!1}function JQ(i,a,d,p){let v={};for(let S of a)v[S.sourceId]=S;return d&&(v=eJ(v,d,p)),Object.assign(Object.assign({},i),v)}function uie(i,a){return s2(i,d=>d.sourceId!==a)}function eJ(i,a,d){return Q$(i,s2(i,p=>die(p,a,d)),a,!1,d)}function die(i,a,d){return nJ(i,d)?!d.options.lazyFetching||!i.fetchRange||i.isFetching||a.start<i.fetchRange.start||a.end>i.fetchRange.end:!i.latestFetchId}function Q$(i,a,d,p,v){let S={};for(let E in i){let A=i[E];a[E]?S[E]=fie(A,d,p,v):S[E]=A}return S}function fie(i,a,d,p){let{options:v,calendarApi:S}=p,E=p.pluginHooks.eventSourceDefs[i.sourceDefId],A=e2();return E.fetch({eventSource:i,range:a,isRefetch:d,context:p},$=>{let{rawEvents:L}=$;v.eventSourceSuccess&&(L=v.eventSourceSuccess.call(S,L,$.response)||L),i.success&&(L=i.success.call(S,L,$.response)||L),p.dispatch({type:"RECEIVE_EVENTS",sourceId:i.sourceId,fetchId:A,fetchRange:a,rawEvents:L})},$=>{let L=!1;v.eventSourceFailure&&(v.eventSourceFailure.call(S,$),L=!0),i.failure&&(i.failure($),L=!0),L||console.warn($.message,$),p.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:i.sourceId,fetchId:A,fetchRange:a,error:$})}),Object.assign(Object.assign({},i),{isFetching:!0,latestFetchId:A})}function mie(i,a,d,p){let v=i[a];return v&&d===v.latestFetchId?Object.assign(Object.assign({},i),{[a]:Object.assign(Object.assign({},v),{isFetching:!1,fetchRange:p})}):i}function tJ(i,a){return s2(i,d=>nJ(d,a))}function hie(i,a){let d=nQ(a),p=[].concat(i.eventSources||[]),v=[];i.initialEvents&&p.unshift(i.initialEvents),i.events&&p.unshift(i.events);for(let S of p){let E=tQ(S,a,d);E&&v.push(E)}return v}function nJ(i,a){return!a.pluginHooks.eventSourceDefs[i.sourceDefId].ignoreRange}function pie(i,a){switch(a.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return a.selection;default:return i}}function gie(i,a){switch(a.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return a.eventInstanceId;default:return i}}function bie(i,a){let d;switch(a.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return d=a.state,{affectedEvents:d.affectedEvents,mutatedEvents:d.mutatedEvents,isEvent:d.isEvent};default:return i}}function yie(i,a){let d;switch(a.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return d=a.state,{affectedEvents:d.affectedEvents,mutatedEvents:d.mutatedEvents,isEvent:d.isEvent};default:return i}}function vie(i,a,d,p,v){let S=i.headerToolbar?oJ(i.headerToolbar,i,a,d,p,v):null,E=i.footerToolbar?oJ(i.footerToolbar,i,a,d,p,v):null;return{header:S,footer:E}}function oJ(i,a,d,p,v,S){let E={},A=[],$=!1;for(let L in i){let z=i[L],se=Cie(z,a,d,p,v,S);E[L]=se.widgets,A.push(...se.viewsWithButtons),$=$||se.hasTitle}return{sectionWidgets:E,viewsWithButtons:A,hasTitle:$}}function Cie(i,a,d,p,v,S){let E=a.direction==="rtl",A=a.customButtons||{},$=d.buttonText||{},L=a.buttonText||{},z=d.buttonHints||{},se=a.buttonHints||{},oe=i?i.split(" "):[],Z=[],X=!1;return{widgets:oe.map(J=>J.split(",").map(me=>{if(me==="title")return X=!0,{buttonName:me};let ie,G,we,wt,Ve,K;if(ie=A[me])we=De=>{ie.click&&ie.click.call(De.target,De,De.target)},(wt=p.getCustomButtonIconClass(ie))||(wt=p.getIconClass(me,E))||(Ve=ie.text),K=ie.hint||ie.text;else if(G=v[me]){Z.push(me),we=()=>{S.changeView(me)},(Ve=G.buttonTextOverride)||(wt=p.getIconClass(me,E))||(Ve=G.buttonTextDefault);let De=G.buttonTextOverride||G.buttonTextDefault;K=nk(G.buttonTitleOverride||G.buttonTitleDefault||a.viewHint,[De,me],De)}else if(S[me])if(we=()=>{S[me]()},(Ve=$[me])||(wt=p.getIconClass(me,E))||(Ve=L[me]),me==="prevYear"||me==="nextYear"){let De=me==="prevYear"?"prev":"next";K=nk(z[De]||se[De],[L.year||"year","year"],L[me])}else K=De=>nk(z[me]||se[me],[L[De]||De,De],L[me]);return{buttonName:me,buttonClick:we,buttonIcon:wt,buttonText:Ve,buttonHint:K}})),viewsWithButtons:Z,hasTitle:X}}class wie{constructor(a,d,p){this.type=a,this.getCurrentData=d,this.dateEnv=p}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(a){return this.getCurrentData().options[a]}}const _ie=U1({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(i){return Array.isArray(i.events)?i.events:null},fetch(i,a){a({rawEvents:i.eventSource.meta})}}]}),Sie=U1({name:"func-event-source",eventSourceDefs:[{parseMeta(i){return typeof i.events=="function"?i.events:null},fetch(i,a,d){const{dateEnv:p}=i.context,v=i.eventSource.meta;Fae(v.bind(null,bQ(i.range,p)),S=>a({rawEvents:S}),d)}}]}),xie=U1({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:jt,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(i){return i.url&&(i.format==="json"||!i.format)?{url:i.url,format:"json",method:(i.method||"GET").toUpperCase(),extraParams:i.extraParams,startParam:i.startParam,endParam:i.endParam,timeZoneParam:i.timeZoneParam}:null},fetch(i,a,d){const{meta:p}=i.eventSource,v=Eie(p,i.range,i.context);$ae(p.method,p.url,v).then(([S,E])=>{a({rawEvents:S,response:E})},d)}}]});function Eie(i,a,d){let{dateEnv:p,options:v}=d,S,E,A,$,L={};return S=i.startParam,S==null&&(S=v.startParam),E=i.endParam,E==null&&(E=v.endParam),A=i.timeZoneParam,A==null&&(A=v.timeZoneParam),typeof i.extraParams=="function"?$=i.extraParams():$=i.extraParams||{},Object.assign(L,$),L[S]=p.formatIso(a.start),L[E]=p.formatIso(a.end),p.timeZone!=="local"&&(L[A]=p.timeZone),L}const kie=U1({name:"simple-recurring-event",recurringTypes:[{parse(i,a){if(i.daysOfWeek||i.startTime||i.endTime||i.startRecur||i.endRecur){let d={daysOfWeek:i.daysOfWeek||null,startTime:i.startTime||null,endTime:i.endTime||null,startRecur:i.startRecur?a.createMarker(i.startRecur):null,endRecur:i.endRecur?a.createMarker(i.endRecur):null},p;return i.duration&&(p=i.duration),!p&&i.startTime&&i.endTime&&(p=qse(i.endTime,i.startTime)),{allDayGuess:!i.startTime&&!i.endTime,duration:p,typeData:d}}return null},expand(i,a,d){let p=a2(a,{start:i.startRecur,end:i.endRecur});return p?Aie(i.daysOfWeek,i.startTime,p,d):[]}}],eventRefiners:{daysOfWeek:jt,startTime:Gr,endTime:Gr,duration:Gr,startRecur:jt,endRecur:jt}});function Aie(i,a,d,p){let v=i?VX(i):null,S=kl(d.start),E=d.end,A=[];for(;S<E;){let $;(!v||v[S.getUTCDay()])&&(a?$=p.add(S,a):$=S,A.push($)),S=Hu(S,1)}return A}const Tie=U1({name:"change-handler",optionChangeHandlers:{events(i,a){sJ([i],a)},eventSources:sJ}});function sJ(i,a){let d=p$(a.getCurrentData().eventSources);if(d.length===1&&i.length===1&&Array.isArray(d[0]._raw)&&Array.isArray(i[0])){a.dispatch({type:"RESET_RAW_EVENTS",sourceId:d[0].sourceId,rawEvents:i[0]});return}let p=[];for(let v of i){let S=!1;for(let E=0;E<d.length;E+=1)if(d[E]._raw===v){d.splice(E,1),S=!0;break}S||p.push(v)}for(let v of d)a.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:v.sourceId});for(let v of p)a.calendarApi.addEventSource(v)}function Die(i,a){a.emitter.trigger("datesSet",Object.assign(Object.assign({},bQ(i.activeRange,a.dateEnv)),{view:a.viewApi}))}function Nie(i,a){let{emitter:d}=a;d.hasHandlers("eventsSet")&&d.trigger("eventsSet",i2(i,a))}const Rie=[_ie,Sie,xie,kie,Tie,U1({name:"misc",isLoadingFuncs:[i=>QQ(i.eventSources)],propSetHandlers:{dateProfile:Die,eventStore:Nie}})];class Oie{constructor(a,d){this.runTaskOption=a,this.drainedOption=d,this.queue=[],this.delayedRunner=new n$(this.drain.bind(this))}request(a,d){this.queue.push(a),this.delayedRunner.request(d)}pause(a){this.delayedRunner.pause(a)}resume(a,d){this.delayedRunner.resume(a,d)}drain(){let{queue:a}=this;for(;a.length;){let d=[],p;for(;p=a.shift();)this.runTask(p),d.push(p);this.drained(d)}}runTask(a){this.runTaskOption&&this.runTaskOption(a)}drained(a){this.drainedOption&&this.drainedOption(a)}}function Bie(i,a,d){let p;return/^(year|month)$/.test(i.currentRangeUnit)?p=i.currentRange:p=i.activeRange,d.formatRange(p.start,p.end,Ci(a.titleFormat||Mie(i)),{isEndExclusive:i.isRangeAllDay,defaultSeparator:a.titleRangeSeparator})}function Mie(i){let{currentRangeUnit:a}=i;if(a==="year")return{year:"numeric"};if(a==="month")return{year:"numeric",month:"long"};let d=v7(i.currentRange.start,i.currentRange.end);return d!==null&&d>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class Iie{constructor(a){this.computeCurrentViewData=Ts(this._computeCurrentViewData),this.organizeRawLocales=Ts(jle),this.buildLocale=Ts(GQ),this.buildPluginHooks=Kle(),this.buildDateEnv=Ts(Pie),this.buildTheme=Ts(Fie),this.parseToolbars=Ts(vie),this.buildViewSpecs=Ts(tie),this.buildDateProfileGenerator=C7($ie),this.buildViewApi=Ts(Lie),this.buildViewUiProps=C7(zie),this.buildEventUiBySource=Ts(Vie,cg),this.buildEventUiBases=Ts(Hie),this.parseContextBusinessHours=C7(Uie),this.buildTitle=Ts(Bie),this.emitter=new B7,this.actionRunner=new Oie(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=oe=>{this.actionRunner.request(oe)},this.props=a,this.actionRunner.pause();let d={},p=this.computeOptionsData(a.optionOverrides,d,a.calendarApi),v=p.calendarOptions.initialView||p.pluginHooks.initialView,S=this.computeCurrentViewData(v,p,a.optionOverrides,d);a.calendarApi.currentDataManager=this,this.emitter.setThisContext(a.calendarApi),this.emitter.setOptions(S.options);let E=Xre(p.calendarOptions,p.dateEnv),A=S.dateProfileGenerator.build(E);H1(A.activeRange,E)||(E=A.currentRange.start);let $={dateEnv:p.dateEnv,options:p.calendarOptions,pluginHooks:p.pluginHooks,calendarApi:a.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let oe of p.pluginHooks.contextInit)oe($);let L=lie(p.calendarOptions,A,$),z={dynamicOptionOverrides:d,currentViewType:v,currentDate:E,dateProfile:A,businessHours:this.parseContextBusinessHours($),eventSources:L,eventUiBases:{},eventStore:nm(),renderableEventStore:nm(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps($).selectionConfig},se=Object.assign(Object.assign({},$),z);for(let oe of p.pluginHooks.reducers)Object.assign(z,oe(null,null,se));J$(z,$)&&this.emitter.trigger("loading",!0),this.state=z,this.updateData(),this.actionRunner.resume()}resetOptions(a,d){let{props:p}=this;d===void 0?p.optionOverrides=a:(p.optionOverrides=Object.assign(Object.assign({},p.optionOverrides||{}),a),this.optionsForRefining.push(...d)),(d===void 0||d.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(a){let{props:d,state:p,emitter:v}=this,S=rie(p.dynamicOptionOverrides,a),E=this.computeOptionsData(d.optionOverrides,S,d.calendarApi),A=sie(p.currentViewType,a),$=this.computeCurrentViewData(A,E,d.optionOverrides,S);d.calendarApi.currentDataManager=this,v.setThisContext(d.calendarApi),v.setOptions($.options);let L={dateEnv:E.dateEnv,options:E.calendarOptions,pluginHooks:E.pluginHooks,calendarApi:d.calendarApi,dispatch:this.dispatch,emitter:v,getCurrentData:this.getCurrentData},{currentDate:z,dateProfile:se}=p;this.data&&this.data.dateProfileGenerator!==$.dateProfileGenerator&&(se=$.dateProfileGenerator.build(z)),z=Yre(z,a),se=aie(se,a,z,$.dateProfileGenerator),(a.type==="PREV"||a.type==="NEXT"||!H1(se.currentRange,z))&&(z=se.currentRange.start);let oe=iie(p.eventSources,a,se,L),Z=uae(p.eventStore,a,oe,se,L),le=QQ(oe)&&!$.options.progressiveEventRendering&&p.renderableEventStore||Z,{eventUiSingleBase:J,selectionConfig:me}=this.buildViewUiProps(L),ie=this.buildEventUiBySource(oe),G=this.buildEventUiBases(le.defs,J,ie),we={dynamicOptionOverrides:S,currentViewType:A,currentDate:z,dateProfile:se,eventSources:oe,eventStore:Z,renderableEventStore:le,selectionConfig:me,eventUiBases:G,businessHours:this.parseContextBusinessHours(L),dateSelection:pie(p.dateSelection,a),eventSelection:gie(p.eventSelection,a),eventDrag:bie(p.eventDrag,a),eventResize:yie(p.eventResize,a)},wt=Object.assign(Object.assign({},L),we);for(let De of E.pluginHooks.reducers)Object.assign(we,De(p,a,wt));let Ve=J$(p,L),K=J$(we,L);!Ve&&K?v.trigger("loading",!0):Ve&&!K&&v.trigger("loading",!1),this.state=we,d.onAction&&d.onAction(a)}updateData(){let{props:a,state:d}=this,p=this.data,v=this.computeOptionsData(a.optionOverrides,d.dynamicOptionOverrides,a.calendarApi),S=this.computeCurrentViewData(d.currentViewType,v,a.optionOverrides,d.dynamicOptionOverrides),E=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(d.dateProfile,S.options,v.dateEnv),calendarApi:a.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},v),S),d),A=v.pluginHooks.optionChangeHandlers,$=p&&p.calendarOptions,L=v.calendarOptions;if($&&$!==L){$.timeZone!==L.timeZone&&(d.eventSources=E.eventSources=cie(E.eventSources,d.dateProfile,E),d.eventStore=E.eventStore=rQ(E.eventStore,p.dateEnv,E.dateEnv),d.renderableEventStore=E.renderableEventStore=rQ(E.renderableEventStore,p.dateEnv,E.dateEnv));for(let z in A)(this.optionsForHandling.indexOf(z)!==-1||$[z]!==L[z])&&A[z](L[z],E)}this.optionsForHandling=[],a.onData&&a.onData(E)}computeOptionsData(a,d,p){if(!this.optionsForRefining.length&&a===this.stableOptionOverrides&&d===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:v,pluginHooks:S,localeDefaults:E,availableLocaleData:A,extra:$}=this.processRawCalendarOptions(a,d);rJ($);let L=this.buildDateEnv(v.timeZone,v.locale,v.weekNumberCalculation,v.firstDay,v.weekText,S,A,v.defaultRangeSeparator),z=this.buildViewSpecs(S.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,E),se=this.buildTheme(v,S),oe=this.parseToolbars(v,this.stableOptionOverrides,se,z,p);return this.stableCalendarOptionsData={calendarOptions:v,pluginHooks:S,dateEnv:L,viewSpecs:z,theme:se,toolbarConfig:oe,localeDefaults:E,availableRawLocales:A.map}}processRawCalendarOptions(a,d){let{locales:p,locale:v}=f$([ok,a,d]),S=this.organizeRawLocales(p),E=S.map,A=this.buildLocale(v||S.defaultCode,E).options,$=this.buildPluginHooks(a.plugins||[],Rie),L=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},FX),$X),LX),$.listenerRefiners),$.optionRefiners),z={},se=f$([ok,A,a,d]),oe={},Z=this.currentCalendarOptionsInput,X=this.currentCalendarOptionsRefined,le=!1;for(let J in se)this.optionsForRefining.indexOf(J)===-1&&(se[J]===Z[J]||n2[J]&&J in Z&&n2[J](Z[J],se[J]))?oe[J]=X[J]:L[J]?(oe[J]=L[J](se[J]),le=!0):z[J]=Z[J];return le&&(this.currentCalendarOptionsInput=se,this.currentCalendarOptionsRefined=oe,this.stableOptionOverrides=a,this.stableDynamicOptionOverrides=d),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:$,availableLocaleData:S,localeDefaults:A,extra:z}}_computeCurrentViewData(a,d,p,v){let S=d.viewSpecs[a];if(!S)throw new Error(`viewType "${a}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:E,extra:A}=this.processRawViewOptions(S,d.pluginHooks,d.localeDefaults,p,v);rJ(A);let $=this.buildDateProfileGenerator({dateProfileGeneratorClass:S.optionDefaults.dateProfileGeneratorClass,duration:S.duration,durationUnit:S.durationUnit,usesMinMaxTime:S.optionDefaults.usesMinMaxTime,dateEnv:d.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:E.slotMinTime,slotMaxTime:E.slotMaxTime,showNonCurrentDates:E.showNonCurrentDates,dayCount:E.dayCount,dateAlignment:E.dateAlignment,dateIncrement:E.dateIncrement,hiddenDays:E.hiddenDays,weekends:E.weekends,nowInput:E.now,validRangeInput:E.validRange,visibleRangeInput:E.visibleRange,fixedWeekCount:E.fixedWeekCount}),L=this.buildViewApi(a,this.getCurrentData,d.dateEnv);return{viewSpec:S,options:E,dateProfileGenerator:$,viewApi:L}}processRawViewOptions(a,d,p,v,S){let E=f$([ok,a.optionDefaults,p,v,a.optionOverrides,S]),A=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},FX),$X),LX),Are),d.listenerRefiners),d.optionRefiners),$={},L=this.currentViewOptionsInput,z=this.currentViewOptionsRefined,se=!1,oe={};for(let Z in E)E[Z]===L[Z]||n2[Z]&&n2[Z](E[Z],L[Z])?$[Z]=z[Z]:(E[Z]===this.currentCalendarOptionsInput[Z]||n2[Z]&&n2[Z](E[Z],this.currentCalendarOptionsInput[Z])?Z in this.currentCalendarOptionsRefined&&($[Z]=this.currentCalendarOptionsRefined[Z]):A[Z]?$[Z]=A[Z](E[Z]):oe[Z]=E[Z],se=!0);return se&&(this.currentViewOptionsInput=E,this.currentViewOptionsRefined=$),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:oe}}}function Pie(i,a,d,p,v,S,E,A){let $=GQ(a||E.defaultCode,E.map);return new Fre({calendarSystem:"gregory",timeZone:i,namedTimeZoneImpl:S.namedTimeZonedImpl,locale:$,weekNumberCalculation:d,firstDay:p,weekText:v,cmdFormatter:S.cmdFormatter,defaultSeparator:A})}function Fie(i,a){let d=a.themeClasses[i.themeSystem]||Lb;return new d(i)}function $ie(i){let a=i.dateProfileGeneratorClass||KX;return new a(i)}function Lie(i,a,d){return new wie(i,a,d)}function Vie(i){return $1(i,a=>a.ui)}function Hie(i,a,d){let p={"":a};for(let v in i){let S=i[v];S.sourceId&&d[S.sourceId]&&(p[v]=d[S.sourceId])}return p}function zie(i){let{options:a}=i;return{eventUiSingleBase:O7({display:a.eventDisplay,editable:a.editable,startEditable:a.eventStartEditable,durationEditable:a.eventDurationEditable,constraint:a.eventConstraint,overlap:typeof a.eventOverlap=="boolean"?a.eventOverlap:void 0,allow:a.eventAllow,backgroundColor:a.eventBackgroundColor,borderColor:a.eventBorderColor,textColor:a.eventTextColor,color:a.eventColor},i),selectionConfig:O7({constraint:a.selectConstraint,overlap:typeof a.selectOverlap=="boolean"?a.selectOverlap:void 0,allow:a.selectAllow},i)}}function J$(i,a){for(let d of a.pluginHooks.isLoadingFuncs)if(d(i))return!0;return!1}function Uie(i){return vae(i.options.businessHours,i)}function rJ(i,a){for(let d in i)console.warn(`Unknown option '${d}'`+(a?` for view '${a}'`:""))}class Wie extends Da{render(){let a=this.props.widgetGroups.map(d=>this.renderWidgetGroup(d));return Qe("div",{className:"fc-toolbar-chunk"},...a)}renderWidgetGroup(a){let{props:d}=this,{theme:p}=this.context,v=[],S=!0;for(let E of a){let{buttonName:A,buttonClick:$,buttonText:L,buttonIcon:z,buttonHint:se}=E;if(A==="title")S=!1,v.push(Qe("h2",{className:"fc-toolbar-title",id:d.titleId},d.title));else{let oe=A===d.activeButton,Z=!d.isTodayEnabled&&A==="today"||!d.isPrevEnabled&&A==="prev"||!d.isNextEnabled&&A==="next",X=[`fc-${A}-button`,p.getClass("button")];oe&&X.push(p.getClass("buttonActive")),v.push(Qe("button",{type:"button",title:typeof se=="function"?se(d.navUnit):se,disabled:Z,"aria-pressed":oe,className:X.join(" "),onClick:$},L||(z?Qe("span",{className:z,role:"img"}):"")))}}if(v.length>1){let E=S&&p.getClass("buttonGroup")||"";return Qe("div",{className:E},...v)}return v[0]}}class aJ extends Da{render(){let{model:a,extraClassName:d}=this.props,p=!1,v,S,E=a.sectionWidgets,A=E.center;return E.left?(p=!0,v=E.left):v=E.start,E.right?(p=!0,S=E.right):S=E.end,Qe("div",{className:[d||"","fc-toolbar",p?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",v||[]),this.renderSection("center",A||[]),this.renderSection("end",S||[]))}renderSection(a,d){let{props:p}=this;return Qe(Wie,{key:a,widgetGroups:d,title:p.title,navUnit:p.navUnit,activeButton:p.activeButton,isTodayEnabled:p.isTodayEnabled,isPrevEnabled:p.isPrevEnabled,isNextEnabled:p.isNextEnabled,titleId:p.titleId})}}class jie extends Da{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=a=>{this.el=a,V1(this.props.elRef,a),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:a,state:d}=this,{aspectRatio:p}=a,v=["fc-view-harness",p||a.liquid||a.height?"fc-view-harness-active":"fc-view-harness-passive"],S="",E="";return p?d.availableWidth!==null?S=d.availableWidth/p:E=`${1/p*100}%`:S=a.height||"",Qe("div",{"aria-labelledby":a.labeledById,ref:this.handleEl,className:v.join(" "),style:{height:S,paddingBottom:E}},a.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class Zie extends F3{constructor(a){super(a),this.handleSegClick=(d,p)=>{let{component:v}=this,{context:S}=v,E=P3(p);if(E&&v.isValidSegDownEl(d.target)){let A=Vu(d.target,".fc-event-forced-url"),$=A?A.querySelector("a[href]").href:"";S.emitter.trigger("eventClick",{el:p,event:new li(v.context,E.eventRange.def,E.eventRange.instance),jsEvent:d,view:S.viewApi}),$&&!d.defaultPrevented&&(window.location.href=$)}},this.destroy=_X(a.el,"click",".fc-event",this.handleSegClick)}}class Gie extends F3{constructor(a){super(a),this.handleEventElRemove=d=>{d===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(d,p)=>{P3(p)&&(this.currentSegEl=p,this.triggerEvent("eventMouseEnter",d,p))},this.handleSegLeave=(d,p)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",d,p))},this.removeHoverListeners=Bse(a.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(a,d,p){let{component:v}=this,{context:S}=v,E=P3(p);(!d||v.isValidSegDownEl(d.target))&&S.emitter.trigger(a,{el:p,event:new li(S,E.eventRange.def,E.eventRange.instance),jsEvent:d,view:S.viewApi})}}class qie extends r2{constructor(){super(...arguments),this.buildViewContext=Ts(Vre),this.buildViewPropTransformers=Ts(Yie),this.buildToolbarProps=Ts(Kie),this.headerRef=kd(),this.footerRef=kd(),this.interactionsStore={},this.state={viewLabelId:g7()},this.registerInteractiveComponent=(a,d)=>{let p=Hae(a,d),E=[Zie,Gie].concat(this.props.pluginHooks.componentInteractions).map(A=>new A(p));this.interactionsStore[a.uid]=E,R$[a.uid]=p},this.unregisterInteractiveComponent=a=>{let d=this.interactionsStore[a.uid];if(d){for(let p of d)p.destroy();delete this.interactionsStore[a.uid]}delete R$[a.uid]},this.resizeRunner=new n$(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=a=>{let{options:d}=this.props;d.handleWindowResize&&a.target===window&&this.resizeRunner.request(d.windowResizeDelay)}}render(){let{props:a}=this,{toolbarConfig:d,options:p}=a,v=this.buildToolbarProps(a.viewSpec,a.dateProfile,a.dateProfileGenerator,a.currentDate,rk(a.options.now,a.dateEnv),a.viewTitle),S=!1,E="",A;a.isHeightAuto||a.forPrint?E="":p.height!=null?S=!0:p.contentHeight!=null?E=p.contentHeight:A=Math.max(p.aspectRatio,.5);let $=this.buildViewContext(a.viewSpec,a.viewApi,a.options,a.dateProfileGenerator,a.dateEnv,a.theme,a.pluginHooks,a.dispatch,a.getCurrentData,a.emitter,a.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),L=d.header&&d.header.hasTitle?this.state.viewLabelId:void 0;return Qe(L1.Provider,{value:$},d.header&&Qe(aJ,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:d.header,titleId:L},v)),Qe(jie,{liquid:S,height:E,aspectRatio:A,labeledById:L},this.renderView(a),this.buildAppendContent()),d.footer&&Qe(aJ,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:d.footer,titleId:""},v)))}componentDidMount(){let{props:a}=this;this.calendarInteractions=a.pluginHooks.calendarInteractions.map(p=>new p(a)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:d}=a.pluginHooks;for(let p in d)d[p](a[p],a)}componentDidUpdate(a){let{props:d}=this,{propSetHandlers:p}=d.pluginHooks;for(let v in p)d[v]!==a[v]&&p[v](d[v],d)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let a of this.calendarInteractions)a.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:a}=this,d=a.pluginHooks.viewContainerAppends.map(p=>p(a));return Qe(ql,{},...d)}renderView(a){let{pluginHooks:d}=a,{viewSpec:p}=a,v={dateProfile:a.dateProfile,businessHours:a.businessHours,eventStore:a.renderableEventStore,eventUiBases:a.eventUiBases,dateSelection:a.dateSelection,eventSelection:a.eventSelection,eventDrag:a.eventDrag,eventResize:a.eventResize,isHeightAuto:a.isHeightAuto,forPrint:a.forPrint},S=this.buildViewPropTransformers(d.viewPropsTransformers);for(let A of S)Object.assign(v,A.transform(v,a));let E=p.component;return Qe(E,Object.assign({},v))}}function Kie(i,a,d,p,v,S){let E=d.build(v,void 0,!1),A=d.buildPrev(a,p,!1),$=d.buildNext(a,p,!1);return{title:S,activeButton:i.type,navUnit:i.singleUnit,isTodayEnabled:E.isValid&&!H1(a.currentRange,v),isPrevEnabled:A.isValid,isNextEnabled:$.isValid}}function Yie(i){return i.map(a=>new a)}let Xie=class extends zae{constructor(a,d={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=p=>{switch(p.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=p=>{this.currentData=p,this.renderRunner.request(p.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:p}=this;k7(()=>{ek(Qe(Vae,{options:p.calendarOptions,theme:p.theme,emitter:p.emitter},(v,S,E,A)=>(this.setClassNames(v),this.setHeight(S),Qe(WX.Provider,{value:this.customContentRenderId},Qe(qie,Object.assign({isHeightAuto:E,forPrint:A},p))))),this.el)})}else this.isRendered&&(this.isRendered=!1,ek(null,this.el),this.setClassNames([]),this.setHeight(""))},xse(a),this.el=a,this.renderRunner=new n$(this.handleRenderRequest),new Iie({optionOverrides:d,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let a=this.isRendering;a?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),a&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){k7(()=>{super.updateSize()})}batchRendering(a){this.renderRunner.pause("batchRendering"),a(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(a,d){this.currentDataManager.resetOptions(a,d)}setClassNames(a){if(!Mb(a,this.currentClassNames)){let{classList:d}=this.el;for(let p of this.currentClassNames)d.remove(p);for(let p of a)d.add(p);this.currentClassNames=a}}setHeight(a){vX(this.el,"height",a)}};const Qie={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},lJ=u.defineComponent({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(i){return{...i,customRenderingMetaMap:tce(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const i=[];for(const a of this.customRenderingMap.values())i.push(u.h(Jie,{key:a.id,customRendering:a}));return u.h("div",{attrs:{"data-fc-render-id":this.renderId}},u.h(u.Fragment,i))},mounted(){const i=new Ule;this.handleCustomRendering=i.handle.bind(i);const a=this.buildOptions(this.options),d=new Xie(this.$el,a);this.calendar=d,d.render(),i.subscribe(p=>{this.customRenderingMap=p,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:ece()}),Jie=u.defineComponent({props:{customRendering:Object},render(){const i=this.customRendering,a=typeof i.generatorMeta=="function"?i.generatorMeta(i.renderProps):i.generatorMeta;return u.h(u.Teleport,{to:i.containerEl},a)}});function pbe(i){return i}function ece(){let i={options:{deep:!0,handler(a){let d=this.getApi();d.pauseRendering();let p=this.buildOptions(a);d.resetOptions(p),this.renderId++}}};for(let a in Qie)i[`options.${a}`]={deep:!0,handler(d){if(d!==void 0){let p=this.getApi();p.pauseRendering(),p.resetOptions({[a]:d},[a]),this.renderId++}}};return i}function tce(i){const a={};for(const d in i)a[nce(d)]=i[d];return a}function nce(i){return i.split("-").map((a,d)=>d?oce(a):a).join("")}function oce(i){return i.charAt(0).toUpperCase()+i.slice(1)}class sce extends ug{constructor(){super(...arguments),this.headerElRef=kd()}renderSimpleLayout(a,d){let{props:p,context:v}=this,S=[],E=L7(v.options);return a&&S.push({type:"header",key:"header",isSticky:E,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:a}}),S.push({type:"body",key:"body",liquid:!0,chunk:{content:d}}),Qe(A7,{elClasses:["fc-daygrid"],viewSpec:v.viewSpec},Qe(j$,{liquid:!p.isHeightAuto&&!p.forPrint,collapsibleWidth:p.forPrint,cols:[],sections:S}))}renderHScrollLayout(a,d,p,v){let S=this.context.pluginHooks.scrollGridImpl;if(!S)throw new Error("No ScrollGrid implementation");let{props:E,context:A}=this,$=!E.forPrint&&L7(A.options),L=!E.forPrint&&FQ(A.options),z=[];return a&&z.push({type:"header",key:"header",isSticky:$,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:a}]}),z.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:d}]}),L&&z.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:W$}]}),Qe(A7,{elClasses:["fc-daygrid"],viewSpec:A.viewSpec},Qe(S,{liquid:!E.isHeightAuto&&!E.forPrint,forPrint:E.forPrint,collapsibleWidth:E.forPrint,colGroups:[{cols:[{span:p,minWidth:v}]}],sections:z}))}}function V7(i,a){let d=[];for(let p=0;p<a;p+=1)d[p]=[];for(let p of i)d[p.row].push(p);return d}function H7(i,a){let d=[];for(let p=0;p<a;p+=1)d[p]=[];for(let p of i)d[p.firstCol].push(p);return d}function iJ(i,a){let d=[];if(i){for(let p=0;p<a;p+=1)d[p]={affectedInstances:i.affectedInstances,isEvent:i.isEvent,segs:[]};for(let p of i.segs)d[p.row].segs.push(p)}else for(let p=0;p<a;p+=1)d[p]=null;return d}const cJ=Ci({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function uJ(i){let{display:a}=i.eventRange.ui;return a==="list-item"||a==="auto"&&!i.eventRange.def.allDay&&i.firstCol===i.lastCol&&i.isStart&&i.isEnd}class dJ extends Da{render(){let{props:a}=this;return Qe($Q,Object.assign({},a,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:cJ,defaultDisplayEventEnd:a.defaultDisplayEventEnd,disableResizing:!a.seg.eventRange.def.allDay}))}}class fJ extends Da{render(){let{props:a,context:d}=this,{options:p}=d,{seg:v}=a,S=p.eventTimeFormat||cJ,E=hQ(v,S,d,!0,a.defaultDisplayEventEnd);return Qe(Z$,Object.assign({},a,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:gQ(a.seg,d),defaultGenerator:rce,timeText:E,isResizing:!1,isDateSelecting:!1}))}}function rce(i){return Qe(ql,null,Qe("div",{className:"fc-daygrid-event-dot",style:{borderColor:i.borderColor||i.backgroundColor}}),i.timeText&&Qe("div",{className:"fc-event-time"},i.timeText),Qe("div",{className:"fc-event-title"},i.event.title||Qe(ql,null," ")))}class ace extends Da{constructor(){super(...arguments),this.compileSegs=Ts(lce)}render(){let{props:a}=this,{allSegs:d,invisibleSegs:p}=this.compileSegs(a.singlePlacements);return Qe(zQ,{elClasses:["fc-daygrid-more-link"],dateProfile:a.dateProfile,todayRange:a.todayRange,allDayDate:a.allDayDate,moreCnt:a.moreCnt,allSegs:d,hiddenSegs:p,alignmentElRef:a.alignmentElRef,alignGridTop:a.alignGridTop,extraDateSpan:a.extraDateSpan,popoverContent:()=>{let v=(a.eventDrag?a.eventDrag.affectedInstances:null)||(a.eventResize?a.eventResize.affectedInstances:null)||{};return Qe(ql,null,d.map(S=>{let E=S.eventRange.instance.instanceId;return Qe("div",{className:"fc-daygrid-event-harness",key:E,style:{visibility:v[E]?"hidden":""}},uJ(S)?Qe(fJ,Object.assign({seg:S,isDragging:!1,isSelected:E===a.eventSelection,defaultDisplayEventEnd:!1},$b(S,a.todayRange))):Qe(dJ,Object.assign({seg:S,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:E===a.eventSelection,defaultDisplayEventEnd:!1},$b(S,a.todayRange))))}))}})}}function lce(i){let a=[],d=[];for(let p of i)a.push(p.seg),p.isVisible||d.push(p.seg);return{allSegs:a,invisibleSegs:d}}const ice=Ci({week:"narrow"});class cce extends ug{constructor(){super(...arguments),this.rootElRef=kd(),this.state={dayNumberId:g7()},this.handleRootEl=a=>{V1(this.rootElRef,a),V1(this.props.elRef,a)}}render(){let{context:a,props:d,state:p,rootElRef:v}=this,{options:S,dateEnv:E}=a,{date:A,dateProfile:$}=d;const L=d.showDayNumber&&dce(A,$.currentRange,E);return Qe(q$,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...d.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},d.extraDataAttrs),d.showDayNumber?{"aria-labelledby":p.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:uce,date:A,dateProfile:$,todayRange:d.todayRange,showDayNumber:d.showDayNumber,isMonthStart:L,extraRenderProps:d.extraRenderProps},(z,se)=>Qe("div",{ref:d.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:d.minHeight}},d.showWeekNumber&&Qe(HQ,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:I7(a,A,"week"),date:A,defaultFormat:ice}),!se.isDisabled&&(d.showDayNumber||K$(S)||d.forceDayTop)?Qe("div",{className:"fc-daygrid-day-top"},Qe(z,{elTag:"a",elClasses:["fc-daygrid-day-number",L&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},I7(a,A)),{id:p.dayNumberId})})):d.showDayNumber?Qe("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},Qe("a",{className:"fc-daygrid-day-number"}," ")):void 0,Qe("div",{className:"fc-daygrid-day-events",ref:d.fgContentElRef},d.fgContent,Qe("div",{className:"fc-daygrid-day-bottom",style:{marginTop:d.moreMarginTop}},Qe(ace,{allDayDate:A,singlePlacements:d.singlePlacements,moreCnt:d.moreCnt,alignmentElRef:v,alignGridTop:!d.showDayNumber,extraDateSpan:d.extraDateSpan,dateProfile:d.dateProfile,eventSelection:d.eventSelection,eventDrag:d.eventDrag,eventResize:d.eventResize,todayRange:d.todayRange}))),Qe("div",{className:"fc-daygrid-day-bg"},d.bgContent)))}}function uce(i){return i.dayNumberText||Qe(ql,null," ")}function dce(i,a,d){const{start:p,end:v}=a,S=Ib(v,-1),E=d.getYear(p),A=d.getMonth(p),$=d.getYear(S),L=d.getMonth(S);return!(E===$&&A===L)&&(i.valueOf()===p.valueOf()||d.getDay(i)===1&&i.valueOf()<v.valueOf())}function mJ(i){return i.eventRange.instance.instanceId+":"+i.firstCol}function hJ(i){return mJ(i)+":"+i.lastCol}function fce(i,a,d,p,v,S,E){let A=new pce(me=>{let ie=i[me.index].eventRange.instance.instanceId+":"+me.span.start+":"+(me.span.end-1);return v[ie]||1});A.allowReslicing=!0,A.strictOrder=p,a===!0||d===!0?(A.maxCoord=S,A.hiddenConsumes=!0):typeof a=="number"?A.maxStackCnt=a:typeof d=="number"&&(A.maxStackCnt=d,A.hiddenConsumes=!0);let $=[],L=[];for(let me=0;me<i.length;me+=1){let ie=i[me],G=hJ(ie);v[G]!=null?$.push({index:me,span:{start:ie.firstCol,end:ie.lastCol+1}}):L.push(ie)}let z=A.addSegs($),se=A.toRects(),{singleColPlacements:oe,multiColPlacements:Z,leftoverMargins:X}=mce(se,i,E),le=[],J=[];for(let me of L){Z[me.firstCol].push({seg:me,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let ie=me.firstCol;ie<=me.lastCol;ie+=1)oe[ie].push({seg:L3(me,ie,ie+1,E),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let me=0;me<E.length;me+=1)le.push(0);for(let me of z){let ie=i[me.index],G=me.span;Z[G.start].push({seg:L3(ie,G.start,G.end,E),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let we=G.start;we<G.end;we+=1)le[we]+=1,oe[we].push({seg:L3(ie,we,we+1,E),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let me=0;me<E.length;me+=1)J.push(X[me]);return{singleColPlacements:oe,multiColPlacements:Z,moreCnts:le,moreMarginTops:J}}function mce(i,a,d){let p=hce(i,d.length),v=[],S=[],E=[];for(let A=0;A<d.length;A+=1){let $=p[A],L=[],z=0,se=0;for(let Z of $){let X=a[Z.index];L.push({seg:L3(X,A,A+1,d),isVisible:!0,isAbsolute:!1,absoluteTop:Z.levelCoord,marginTop:Z.levelCoord-z}),z=Z.levelCoord+Z.thickness}let oe=[];z=0,se=0;for(let Z of $){let X=a[Z.index],le=Z.span.end-Z.span.start>1,J=Z.span.start===A;se+=Z.levelCoord-z,z=Z.levelCoord+Z.thickness,le?(se+=Z.thickness,J&&oe.push({seg:L3(X,Z.span.start,Z.span.end,d),isVisible:!0,isAbsolute:!0,absoluteTop:Z.levelCoord,marginTop:0})):J&&(oe.push({seg:L3(X,Z.span.start,Z.span.end,d),isVisible:!0,isAbsolute:!1,absoluteTop:Z.levelCoord,marginTop:se}),se=0)}v.push(L),S.push(oe),E.push(se)}return{singleColPlacements:v,multiColPlacements:S,leftoverMargins:E}}function hce(i,a){let d=[];for(let p=0;p<a;p+=1)d.push([]);for(let p of i)for(let v=p.span.start;v<p.span.end;v+=1)d[v].push(p);return d}function L3(i,a,d,p){if(i.firstCol===a&&i.lastCol===d-1)return i;let v=i.eventRange,S=v.range,E=a2(S,{start:p[a].date,end:Hu(p[d-1].date,1)});return Object.assign(Object.assign({},i),{firstCol:a,lastCol:d-1,eventRange:{def:v.def,ui:Object.assign(Object.assign({},v.ui),{durationEditable:!1}),instance:v.instance,range:E},isStart:i.isStart&&E.start.valueOf()===S.start.valueOf(),isEnd:i.isEnd&&E.end.valueOf()===S.end.valueOf()})}class pce extends EQ{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(a){const d=super.addSegs(a),{entriesByLevel:p}=this,v=S=>!this.forceHidden[c2(S)];for(let S=0;S<p.length;S+=1)p[S]=p[S].filter(v);return d}handleInvalidInsertion(a,d,p){const{entriesByLevel:v,forceHidden:S}=this,{touchingEntry:E,touchingLevel:A,touchingLateral:$}=a;if(this.hiddenConsumes&&E){const L=c2(E);if(!S[L])if(this.allowReslicing){const z=Object.assign(Object.assign({},E),{span:L$(E.span,d.span)}),se=c2(z);S[se]=!0,v[A][$]=z,p.push(z),this.splitEntry(E,d,p)}else S[L]=!0,p.push(E)}super.handleInvalidInsertion(a,d,p)}}class pJ extends ug{constructor(){super(...arguments),this.cellElRefs=new z1,this.frameElRefs=new z1,this.fgElRefs=new z1,this.segHarnessRefs=new z1,this.rootElRef=kd(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=a=>{a&&this.updateSizing(!0)}}render(){let{props:a,state:d,context:p}=this,{options:v}=p,S=a.cells.length,E=H7(a.businessHourSegs,S),A=H7(a.bgEventSegs,S),$=H7(this.getHighlightSegs(),S),L=H7(this.getMirrorSegs(),S),{singleColPlacements:z,multiColPlacements:se,moreCnts:oe,moreMarginTops:Z}=fce(mQ(a.fgEventSegs,v.eventOrder),a.dayMaxEvents,a.dayMaxEventRows,v.eventOrderStrict,d.segHeights,d.maxContentHeight,a.cells),X=a.eventDrag&&a.eventDrag.affectedInstances||a.eventResize&&a.eventResize.affectedInstances||{};return Qe("tr",{ref:this.rootElRef,role:"row"},a.renderIntro&&a.renderIntro(),a.cells.map((le,J)=>{let me=this.renderFgSegs(J,a.forPrint?z[J]:se[J],a.todayRange,X),ie=this.renderFgSegs(J,gce(L[J],se),a.todayRange,{},!!a.eventDrag,!!a.eventResize,!1);return Qe(cce,{key:le.key,elRef:this.cellElRefs.createRef(le.key),innerElRef:this.frameElRefs.createRef(le.key),dateProfile:a.dateProfile,date:le.date,showDayNumber:a.showDayNumbers,showWeekNumber:a.showWeekNumbers&&J===0,forceDayTop:a.showWeekNumbers,todayRange:a.todayRange,eventSelection:a.eventSelection,eventDrag:a.eventDrag,eventResize:a.eventResize,extraRenderProps:le.extraRenderProps,extraDataAttrs:le.extraDataAttrs,extraClassNames:le.extraClassNames,extraDateSpan:le.extraDateSpan,moreCnt:oe[J],moreMarginTop:Z[J],singlePlacements:z[J],fgContentElRef:this.fgElRefs.createRef(le.key),fgContent:Qe(ql,null,Qe(ql,null,me),Qe(ql,null,ie)),bgContent:Qe(ql,null,this.renderFillSegs($[J],"highlight"),this.renderFillSegs(E[J],"non-business"),this.renderFillSegs(A[J],"bg-event")),minHeight:a.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(a,d){let p=this.props;this.updateSizing(!cg(a,p))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:a}=this;return a.eventDrag&&a.eventDrag.segs.length?a.eventDrag.segs:a.eventResize&&a.eventResize.segs.length?a.eventResize.segs:a.dateSelectionSegs}getMirrorSegs(){let{props:a}=this;return a.eventResize&&a.eventResize.segs.length?a.eventResize.segs:[]}renderFgSegs(a,d,p,v,S,E,A){let{context:$}=this,{eventSelection:L}=this.props,{framePositions:z}=this.state,se=this.props.cells.length===1,oe=S||E||A,Z=[];if(z)for(let X of d){let{seg:le}=X,{instanceId:J}=le.eventRange.instance,me=X.isVisible&&!v[J],ie=X.isAbsolute,G="",we="";ie&&($.isRtl?(we=0,G=z.lefts[le.lastCol]-z.lefts[le.firstCol]):(G=0,we=z.rights[le.firstCol]-z.rights[le.lastCol])),Z.push(Qe("div",{className:"fc-daygrid-event-harness"+(ie?" fc-daygrid-event-harness-abs":""),key:mJ(le),ref:oe?null:this.segHarnessRefs.createRef(hJ(le)),style:{visibility:me?"":"hidden",marginTop:ie?"":X.marginTop,top:ie?X.absoluteTop:"",left:G,right:we}},uJ(le)?Qe(fJ,Object.assign({seg:le,isDragging:S,isSelected:J===L,defaultDisplayEventEnd:se},$b(le,p))):Qe(dJ,Object.assign({seg:le,isDragging:S,isResizing:E,isDateSelecting:A,isSelected:J===L,defaultDisplayEventEnd:se},$b(le,p)))))}return Z}renderFillSegs(a,d){let{isRtl:p}=this.context,{todayRange:v}=this.props,{framePositions:S}=this.state,E=[];if(S)for(let A of a){let $=p?{right:0,left:S.lefts[A.lastCol]-S.lefts[A.firstCol]}:{left:0,right:S.rights[A.firstCol]-S.rights[A.lastCol]};E.push(Qe("div",{key:pQ(A.eventRange),className:"fc-daygrid-bg-harness",style:$},d==="bg-event"?Qe(LQ,Object.assign({seg:A},$b(A,v))):VQ(d)))}return Qe(ql,{},...E)}updateSizing(a){let{props:d,state:p,frameElRefs:v}=this;if(!d.forPrint&&d.clientWidth!==null){if(a){let $=d.cells.map(L=>v.currentMap[L.key]);if($.length){let L=this.rootElRef.current,z=new $3(L,$,!0,!1);(!p.framePositions||!p.framePositions.similarTo(z))&&this.setState({framePositions:new $3(L,$,!0,!1)})}}const S=this.state.segHeights,E=this.querySegHeights(),A=d.dayMaxEvents===!0||d.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},S),E),maxContentHeight:A?this.computeMaxContentHeight():null})}}querySegHeights(){let a=this.segHarnessRefs.currentMap,d={};for(let p in a){let v=Math.round(a[p].getBoundingClientRect().height);d[p]=Math.max(d[p]||0,v)}return d}computeMaxContentHeight(){let a=this.props.cells[0].key,d=this.cellElRefs.currentMap[a],p=this.fgElRefs.currentMap[a];return d.getBoundingClientRect().bottom-p.getBoundingClientRect().top}getCellEls(){let a=this.cellElRefs.currentMap;return this.props.cells.map(d=>a[d.key])}}pJ.addStateEquality({segHeights:cg});function gce(i,a){if(!i.length)return[];let d=bce(a);return i.map(p=>({seg:p,isVisible:!0,isAbsolute:!0,absoluteTop:d[p.eventRange.instance.instanceId],marginTop:0}))}function bce(i){let a={};for(let d of i)for(let p of d)a[p.seg.eventRange.instance.instanceId]=p.absoluteTop;return a}class yce extends ug{constructor(){super(...arguments),this.splitBusinessHourSegs=Ts(V7),this.splitBgEventSegs=Ts(V7),this.splitFgEventSegs=Ts(V7),this.splitDateSelectionSegs=Ts(V7),this.splitEventDrag=Ts(iJ),this.splitEventResize=Ts(iJ),this.rowRefs=new z1}render(){let{props:a,context:d}=this,p=a.cells.length,v=this.splitBusinessHourSegs(a.businessHourSegs,p),S=this.splitBgEventSegs(a.bgEventSegs,p),E=this.splitFgEventSegs(a.fgEventSegs,p),A=this.splitDateSelectionSegs(a.dateSelectionSegs,p),$=this.splitEventDrag(a.eventDrag,p),L=this.splitEventResize(a.eventResize,p),z=p>=7&&a.clientWidth?a.clientWidth/d.options.aspectRatio/6:null;return Qe(lk,{unit:"day"},(se,oe)=>Qe(ql,null,a.cells.map((Z,X)=>Qe(pJ,{ref:this.rowRefs.createRef(X),key:Z.length?Z[0].date.toISOString():X,showDayNumbers:p>1,showWeekNumbers:a.showWeekNumbers,todayRange:oe,dateProfile:a.dateProfile,cells:Z,renderIntro:a.renderRowIntro,businessHourSegs:v[X],eventSelection:a.eventSelection,bgEventSegs:S[X].filter(vce),fgEventSegs:E[X],dateSelectionSegs:A[X],eventDrag:$[X],eventResize:L[X],dayMaxEvents:a.dayMaxEvents,dayMaxEventRows:a.dayMaxEventRows,clientWidth:a.clientWidth,clientHeight:a.clientHeight,cellMinHeight:z,forPrint:a.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const a=this.rowRefs.currentMap[0].getCellEls()[0],d=a?a.closest(".fc-daygrid-body"):null;d&&(this.rootEl=d,this.context.registerInteractiveComponent(this,{el:d,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new $3(this.rootEl,this.rowRefs.collect().map(a=>a.getCellEls()[0]),!1,!0),this.colPositions=new $3(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(a,d){let{colPositions:p,rowPositions:v}=this,S=p.leftToIndex(a),E=v.topToIndex(d);if(E!=null&&S!=null){let A=this.props.cells[E][S];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(E,S),allDay:!0},A.extraDateSpan),dayEl:this.getCellEl(E,S),rect:{left:p.lefts[S],right:p.rights[S],top:v.tops[E],bottom:v.bottoms[E]},layer:0}}return null}getCellEl(a,d){return this.rowRefs.currentMap[a].getCellEls()[d]}getCellRange(a,d){let p=this.props.cells[a][d].date,v=Hu(p,1);return{start:p,end:v}}}function vce(i){return i.eventRange.def.allDay}class Cce extends ug{constructor(){super(...arguments),this.elRef=kd(),this.needsScrollReset=!1}render(){let{props:a}=this,{dayMaxEventRows:d,dayMaxEvents:p,expandRows:v}=a,S=p===!0||d===!0;S&&!v&&(S=!1,d=null,p=null);let E=["fc-daygrid-body",S?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",v?"":"fc-daygrid-body-natural"];return Qe("div",{ref:this.elRef,className:E.join(" "),style:{width:a.clientWidth,minWidth:a.tableMinWidth}},Qe("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:a.clientWidth,minWidth:a.tableMinWidth,height:v?a.clientHeight:""}},a.colGroupNode,Qe("tbody",{role:"presentation"},Qe(yce,{dateProfile:a.dateProfile,cells:a.cells,renderRowIntro:a.renderRowIntro,showWeekNumbers:a.showWeekNumbers,clientWidth:a.clientWidth,clientHeight:a.clientHeight,businessHourSegs:a.businessHourSegs,bgEventSegs:a.bgEventSegs,fgEventSegs:a.fgEventSegs,dateSelectionSegs:a.dateSelectionSegs,eventSelection:a.eventSelection,eventDrag:a.eventDrag,eventResize:a.eventResize,dayMaxEvents:p,dayMaxEventRows:d,forPrint:a.forPrint,isHitComboAllowed:a.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(a){a.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const a=wce(this.elRef.current,this.props.dateProfile);if(a){const d=a.closest(".fc-daygrid-body"),p=d.closest(".fc-scroller"),v=a.getBoundingClientRect().top-d.getBoundingClientRect().top;p.scrollTop=v?v+1:0}this.needsScrollReset=!1}}}function wce(i,a){let d;return a.currentRangeUnit.match(/year|month/)&&(d=i.querySelector(`[data-date="${ure(a.currentDate)}-01"]`)),d||(d=i.querySelector(`[data-date="${u$(a.currentDate)}"]`)),d}class _ce extends OQ{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(a,d){return d.sliceRange(a)}}class gJ extends ug{constructor(){super(...arguments),this.slicer=new _ce,this.tableRef=kd()}render(){let{props:a,context:d}=this;return Qe(Cce,Object.assign({ref:this.tableRef},this.slicer.sliceProps(a,a.dateProfile,a.nextDayThreshold,d,a.dayTableModel),{dateProfile:a.dateProfile,cells:a.dayTableModel.cells,colGroupNode:a.colGroupNode,tableMinWidth:a.tableMinWidth,renderRowIntro:a.renderRowIntro,dayMaxEvents:a.dayMaxEvents,dayMaxEventRows:a.dayMaxEventRows,showWeekNumbers:a.showWeekNumbers,expandRows:a.expandRows,headerAlignElRef:a.headerAlignElRef,clientWidth:a.clientWidth,clientHeight:a.clientHeight,forPrint:a.forPrint}))}}class Sce extends sce{constructor(){super(...arguments),this.buildDayTableModel=Ts(xce),this.headerRef=kd(),this.tableRef=kd()}render(){let{options:a,dateProfileGenerator:d}=this.context,{props:p}=this,v=this.buildDayTableModel(p.dateProfile,d),S=a.dayHeaders&&Qe(DQ,{ref:this.headerRef,dateProfile:p.dateProfile,dates:v.headerDates,datesRepDistinctDays:v.rowCnt===1}),E=A=>Qe(gJ,{ref:this.tableRef,dateProfile:p.dateProfile,dayTableModel:v,businessHours:p.businessHours,dateSelection:p.dateSelection,eventStore:p.eventStore,eventUiBases:p.eventUiBases,eventSelection:p.eventSelection,eventDrag:p.eventDrag,eventResize:p.eventResize,nextDayThreshold:a.nextDayThreshold,colGroupNode:A.tableColGroupNode,tableMinWidth:A.tableMinWidth,dayMaxEvents:a.dayMaxEvents,dayMaxEventRows:a.dayMaxEventRows,showWeekNumbers:a.weekNumbers,expandRows:!p.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:A.clientWidth,clientHeight:A.clientHeight,forPrint:p.forPrint});return a.dayMinWidth?this.renderHScrollLayout(S,E,v.colCnt,a.dayMinWidth):this.renderSimpleLayout(S,E)}}function xce(i,a){let d=new NQ(i.renderRange,a);return new RQ(d,/year|month|week/.test(i.currentRangeUnit))}class Ece extends KX{buildRenderRange(a,d,p){let v=super.buildRenderRange(a,d,p),{props:S}=this;return kce({currentRange:v,snapToWeek:/^(year|month)$/.test(d),fixedWeekCount:S.fixedWeekCount,dateEnv:S.dateEnv})}}function kce(i){let{dateEnv:a,currentRange:d}=i,{start:p,end:v}=d,S;if(i.snapToWeek&&(p=a.startOfWeek(p),S=a.startOfWeek(v),S.valueOf()!==v.valueOf()&&(v=DX(S,1))),i.fixedWeekCount){let E=a.startOfWeek(a.startOfMonth(Hu(d.end,-1))),A=Math.ceil(Jse(E,v));v=DX(v,6-A)}return{start:p,end:v}}var Ace=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';e$(Ace);var bJ=U1({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Sce,dateProfileGeneratorClass:Ece},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});class Tce extends Gae{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(a){return a.allDay?["allDay"]:["timed"]}getKeysForEventDef(a){return a.allDay?xae(a)?["timed","allDay"]:["allDay"]:["timed"]}}const Dce=Ci({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function yJ(i){let a=["fc-timegrid-slot","fc-timegrid-slot-label",i.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return Qe(L1.Consumer,null,d=>{if(!i.isLabeled)return Qe("td",{className:a.join(" "),"data-time":i.isoTimeStr});let{dateEnv:p,options:v,viewApi:S}=d,E=v.slotLabelFormat==null?Dce:Array.isArray(v.slotLabelFormat)?Ci(v.slotLabelFormat[0]):Ci(v.slotLabelFormat),A={level:0,time:i.time,date:p.toDate(i.date),view:S,text:p.format(i.date,E)};return Qe(tm,{elTag:"td",elClasses:a,elAttrs:{"data-time":i.isoTimeStr},renderProps:A,generatorName:"slotLabelContent",customGenerator:v.slotLabelContent,defaultGenerator:Nce,classNameGenerator:v.slotLabelClassNames,didMount:v.slotLabelDidMount,willUnmount:v.slotLabelWillUnmount},$=>Qe("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},Qe($,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function Nce(i){return i.text}class Rce extends Da{render(){return this.props.slatMetas.map(a=>Qe("tr",{key:a.key},Qe(yJ,Object.assign({},a))))}}const Oce=Ci({week:"short"}),Bce=5;class Mce extends ug{constructor(){super(...arguments),this.allDaySplitter=new Tce,this.headerElRef=kd(),this.rootElRef=kd(),this.scrollerElRef=kd(),this.state={slatCoords:null},this.handleScrollTopRequest=a=>{let d=this.scrollerElRef.current;d&&(d.scrollTop=a)},this.renderHeadAxis=(a,d="")=>{let{options:p}=this.context,{dateProfile:v}=this.props,S=v.renderRange,A=t2(S.start,S.end)===1?I7(this.context,S.start,"week"):{};return p.weekNumbers&&a==="day"?Qe(HQ,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:S.start,defaultFormat:Oce},$=>Qe("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:d}},Qe($,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:A}))):Qe("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},Qe("div",{className:"fc-timegrid-axis-frame",style:{height:d}}))},this.renderTableRowAxis=a=>{let{options:d,viewApi:p}=this.context,v={text:d.allDayText,view:p};return Qe(tm,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:v,generatorName:"allDayContent",customGenerator:d.allDayContent,defaultGenerator:Ice,classNameGenerator:d.allDayClassNames,didMount:d.allDayDidMount,willUnmount:d.allDayWillUnmount},S=>Qe("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",a==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:a}},Qe(S,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=a=>{this.setState({slatCoords:a})}}renderSimpleLayout(a,d,p){let{context:v,props:S}=this,E=[],A=L7(v.options);return a&&E.push({type:"header",key:"header",isSticky:A,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:a}}),d&&(E.push({type:"body",key:"all-day",chunk:{content:d}}),E.push({type:"body",key:"all-day-divider",outerContent:Qe("tr",{role:"presentation",className:"fc-scrollgrid-section"},Qe("td",{className:"fc-timegrid-divider "+v.theme.getClass("tableCellShaded")}))})),E.push({type:"body",key:"body",liquid:!0,expandRows:!!v.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:p}}),Qe(A7,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:v.viewSpec},Qe(j$,{liquid:!S.isHeightAuto&&!S.forPrint,collapsibleWidth:S.forPrint,cols:[{width:"shrink"}],sections:E}))}renderHScrollLayout(a,d,p,v,S,E,A){let $=this.context.pluginHooks.scrollGridImpl;if(!$)throw new Error("No ScrollGrid implementation");let{context:L,props:z}=this,se=!z.forPrint&&L7(L.options),oe=!z.forPrint&&FQ(L.options),Z=[];a&&Z.push({type:"header",key:"header",isSticky:se,syncRowHeights:!0,chunks:[{key:"axis",rowContent:le=>Qe("tr",{role:"presentation"},this.renderHeadAxis("day",le.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:a}]}),d&&(Z.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:le=>Qe("tr",{role:"presentation"},this.renderTableRowAxis(le.rowSyncHeights[0]))},{key:"cols",content:d}]}),Z.push({key:"all-day-divider",type:"body",outerContent:Qe("tr",{role:"presentation",className:"fc-scrollgrid-section"},Qe("td",{colSpan:2,className:"fc-timegrid-divider "+L.theme.getClass("tableCellShaded")}))}));let X=L.options.nowIndicator;return Z.push({type:"body",key:"body",liquid:!0,expandRows:!!L.options.expandRows,chunks:[{key:"axis",content:le=>Qe("div",{className:"fc-timegrid-axis-chunk"},Qe("table",{"aria-hidden":!0,style:{height:le.expandRows?le.clientHeight:""}},le.tableColGroupNode,Qe("tbody",null,Qe(Rce,{slatMetas:E}))),Qe("div",{className:"fc-timegrid-now-indicator-container"},Qe(lk,{unit:X?"minute":"day"},J=>{let me=X&&A&&A.safeComputeTop(J);return typeof me=="number"?Qe(G$,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:me},isAxis:!0,date:J}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:p}]}),oe&&Z.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:W$},{key:"cols",content:W$}]}),Qe(A7,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:L.viewSpec},Qe($,{liquid:!z.isHeightAuto&&!z.forPrint,forPrint:z.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:v,minWidth:S}]}],sections:Z}))}getAllDayMaxEventProps(){let{dayMaxEvents:a,dayMaxEventRows:d}=this.context.options;return(a===!0||d===!0)&&(a=void 0,d=Bce),{dayMaxEvents:a,dayMaxEventRows:d}}}function Ice(i){return i.text}class Pce{constructor(a,d,p){this.positions=a,this.dateProfile=d,this.slotDuration=p}safeComputeTop(a){let{dateProfile:d}=this;if(H1(d.currentRange,a)){let p=kl(a),v=a.valueOf()-p.valueOf();if(v>=Zh(d.slotMinTime)&&v<Zh(d.slotMaxTime))return this.computeTimeTop(Gr(v))}return null}computeDateTop(a,d){return d||(d=kl(a)),this.computeTimeTop(Gr(a.valueOf()-d.valueOf()))}computeTimeTop(a){let{positions:d,dateProfile:p}=this,v=d.els.length,S=(a.milliseconds-Zh(p.slotMinTime))/Zh(this.slotDuration),E,A;return S=Math.max(0,S),S=Math.min(v,S),E=Math.floor(S),E=Math.min(E,v-1),A=S-E,d.tops[E]+d.getHeight(E)*A}}class Fce extends Da{render(){let{props:a,context:d}=this,{options:p}=d,{slatElRefs:v}=a;return Qe("tbody",null,a.slatMetas.map((S,E)=>{let A={time:S.time,date:d.dateEnv.toDate(S.date),view:d.viewApi};return Qe("tr",{key:S.key,ref:v.createRef(S.key)},a.axis&&Qe(yJ,Object.assign({},S)),Qe(tm,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!S.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":S.isoTimeStr},renderProps:A,generatorName:"slotLaneContent",customGenerator:p.slotLaneContent,classNameGenerator:p.slotLaneClassNames,didMount:p.slotLaneDidMount,willUnmount:p.slotLaneWillUnmount}))}))}}class $ce extends Da{constructor(){super(...arguments),this.rootElRef=kd(),this.slatElRefs=new z1}render(){let{props:a,context:d}=this;return Qe("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},Qe("table",{"aria-hidden":!0,className:d.theme.getClass("table"),style:{minWidth:a.tableMinWidth,width:a.clientWidth,height:a.minHeight}},a.tableColGroupNode,Qe(Fce,{slatElRefs:this.slatElRefs,axis:a.axis,slatMetas:a.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:a,props:d}=this;d.onCoords&&d.clientWidth!==null&&this.rootElRef.current.offsetHeight&&d.onCoords(new Pce(new $3(this.rootElRef.current,Lce(this.slatElRefs.currentMap,d.slatMetas),!1,!0),this.props.dateProfile,a.options.slotDuration))}}function Lce(i,a){return a.map(d=>i[d.key])}function ik(i,a){let d=[],p;for(p=0;p<a;p+=1)d.push([]);if(i)for(p=0;p<i.length;p+=1)d[i[p].col].push(i[p]);return d}function vJ(i,a){let d=[];if(i){for(let p=0;p<a;p+=1)d[p]={affectedInstances:i.affectedInstances,isEvent:i.isEvent,segs:[]};for(let p of i.segs)d[p.col].segs.push(p)}else for(let p=0;p<a;p+=1)d[p]=null;return d}class Vce extends Da{render(){let{props:a}=this;return Qe(zQ,{elClasses:["fc-timegrid-more-link"],elStyle:{top:a.top,bottom:a.bottom},allDayDate:null,moreCnt:a.hiddenSegs.length,allSegs:a.hiddenSegs,hiddenSegs:a.hiddenSegs,extraDateSpan:a.extraDateSpan,dateProfile:a.dateProfile,todayRange:a.todayRange,popoverContent:()=>SJ(a.hiddenSegs,a),defaultGenerator:Hce,forceTimed:!0},d=>Qe(d,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function Hce(i){return i.shortText}function zce(i,a,d){let p=new EQ;a!=null&&(p.strictOrder=a),d!=null&&(p.maxStackCnt=d);let v=p.addSegs(i),S=ale(v),E=Uce(p);return E=Gce(E,1),{segRects:qce(E),hiddenGroups:S}}function Uce(i){const{entriesByLevel:a}=i,d=eL((p,v)=>p+":"+v,(p,v)=>{let S=Zce(i,p,v),E=CJ(S,d),A=a[p][v];return[Object.assign(Object.assign({},A),{nextLevelNodes:E[0]}),A.thickness+E[1]]});return CJ(a.length?{level:0,lateralStart:0,lateralEnd:a[0].length}:null,d)[0]}function CJ(i,a){if(!i)return[[],0];let{level:d,lateralStart:p,lateralEnd:v}=i,S=p,E=[];for(;S<v;)E.push(a(d,S)),S+=1;return E.sort(Wce),[E.map(jce),E[0][1]]}function Wce(i,a){return a[1]-i[1]}function jce(i){return i[0]}function Zce(i,a,d){let{levelCoords:p,entriesByLevel:v}=i,S=v[a][d],E=p[a]+S.thickness,A=p.length,$=a;for(;$<A&&p[$]<E;$+=1);for(;$<A;$+=1){let L=v[$],z,se=H$(L,S.span.start,$$),oe=se[0]+se[1],Z=oe;for(;(z=L[Z])&&z.span.start<S.span.end;)Z+=1;if(oe<Z)return{level:$,lateralStart:oe,lateralEnd:Z}}return null}function Gce(i,a){const d=eL((p,v,S)=>c2(p),(p,v,S)=>{let{nextLevelNodes:E,thickness:A}=p,$=A+S,L=A/$,z,se=[];if(!E.length)z=a;else for(let Z of E)if(z===void 0){let X=d(Z,v,$);z=X[0],se.push(X[1])}else{let X=d(Z,z,0);se.push(X[1])}let oe=(z-v)*L;return[z-oe,Object.assign(Object.assign({},p),{thickness:oe,nextLevelNodes:se})]});return i.map(p=>d(p,0,0)[1])}function qce(i){let a=[];const d=eL((v,S,E)=>c2(v),(v,S,E)=>{let A=Object.assign(Object.assign({},v),{levelCoord:S,stackDepth:E,stackForward:0});return a.push(A),A.stackForward=p(v.nextLevelNodes,S+v.thickness,E+1)+1});function p(v,S,E){let A=0;for(let $ of v)A=Math.max(d($,S,E),A);return A}return p(i,0,0),a}function eL(i,a){const d={};return(...p)=>{let v=i(...p);return v in d?d[v]:d[v]=a(...p)}}function wJ(i,a,d=null,p=0){let v=[];if(d)for(let S=0;S<i.length;S+=1){let E=i[S],A=d.computeDateTop(E.start,a),$=Math.max(A+(p||0),d.computeDateTop(E.end,a));v.push({start:Math.round(A),end:Math.round($)})}return v}function Kce(i,a,d,p){let v=[],S=[];for(let L=0;L<i.length;L+=1){let z=a[L];z?v.push({index:L,thickness:1,span:z}):S.push(i[L])}let{segRects:E,hiddenGroups:A}=zce(v,d,p),$=[];for(let L of E)$.push({seg:i[L.index],rect:L});for(let L of S)$.push({seg:L,rect:null});return{segPlacements:$,hiddenGroups:A}}const Yce=Ci({hour:"numeric",minute:"2-digit",meridiem:!1});class _J extends Da{render(){return Qe($Q,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:Yce}))}}class Xce extends Da{constructor(){super(...arguments),this.sortEventSegs=Ts(mQ)}render(){let{props:a,context:d}=this,{options:p}=d,v=p.selectMirror,S=a.eventDrag&&a.eventDrag.segs||a.eventResize&&a.eventResize.segs||v&&a.dateSelectionSegs||[],E=a.eventDrag&&a.eventDrag.affectedInstances||a.eventResize&&a.eventResize.affectedInstances||{},A=this.sortEventSegs(a.fgEventSegs,p.eventOrder);return Qe(q$,{elTag:"td",elRef:a.elRef,elClasses:["fc-timegrid-col",...a.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},a.extraDataAttrs),date:a.date,dateProfile:a.dateProfile,todayRange:a.todayRange,extraRenderProps:a.extraRenderProps},$=>Qe("div",{className:"fc-timegrid-col-frame"},Qe("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(a.businessHourSegs,"non-business"),this.renderFillSegs(a.bgEventSegs,"bg-event"),this.renderFillSegs(a.dateSelectionSegs,"highlight")),Qe("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(A,E,!1,!1,!1)),Qe("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(S,{},!!a.eventDrag,!!a.eventResize,!!v,"mirror")),Qe("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(a.nowIndicatorSegs)),K$(p)&&Qe($,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(a,d,p,v,S,E){let{props:A}=this;return A.forPrint?SJ(a,A):this.renderPositionedFgSegs(a,d,p,v,S,E)}renderPositionedFgSegs(a,d,p,v,S,E){let{eventMaxStack:A,eventShortHeight:$,eventOrderStrict:L,eventMinHeight:z}=this.context.options,{date:se,slatCoords:oe,eventSelection:Z,todayRange:X,nowDate:le}=this.props,J=p||v||S,me=wJ(a,se,oe,z),{segPlacements:ie,hiddenGroups:G}=Kce(a,me,L,A);return Qe(ql,null,this.renderHiddenGroups(G,a),ie.map(we=>{let{seg:wt,rect:Ve}=we,K=wt.eventRange.instance.instanceId,De=J||!!(!d[K]&&Ve),tt=tL(Ve&&Ve.span),lt=!J&&Ve?this.computeSegHStyle(Ve):{left:0,right:0},Ge=!!Ve&&Ve.stackForward>0,he=!!Ve&&Ve.span.end-Ve.span.start<$;return Qe("div",{className:"fc-timegrid-event-harness"+(Ge?" fc-timegrid-event-harness-inset":""),key:E||K,style:Object.assign(Object.assign({visibility:De?"":"hidden"},tt),lt)},Qe(_J,Object.assign({seg:wt,isDragging:p,isResizing:v,isDateSelecting:S,isSelected:K===Z,isShort:he},$b(wt,X,le))))}))}renderHiddenGroups(a,d){let{extraDateSpan:p,dateProfile:v,todayRange:S,nowDate:E,eventSelection:A,eventDrag:$,eventResize:L}=this.props;return Qe(ql,null,a.map(z=>{let se=tL(z.span),oe=Qce(z.entries,d);return Qe(Vce,{key:BX(WQ(oe)),hiddenSegs:oe,top:se.top,bottom:se.bottom,extraDateSpan:p,dateProfile:v,todayRange:S,nowDate:E,eventSelection:A,eventDrag:$,eventResize:L})}))}renderFillSegs(a,d){let{props:p,context:v}=this,E=wJ(a,p.date,p.slatCoords,v.options.eventMinHeight).map((A,$)=>{let L=a[$];return Qe("div",{key:pQ(L.eventRange),className:"fc-timegrid-bg-harness",style:tL(A)},d==="bg-event"?Qe(LQ,Object.assign({seg:L},$b(L,p.todayRange,p.nowDate))):VQ(d))});return Qe(ql,null,E)}renderNowIndicator(a){let{slatCoords:d,date:p}=this.props;return d?a.map((v,S)=>Qe(G$,{key:S,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:d.computeDateTop(v.start,p)},isAxis:!1,date:p})):null}computeSegHStyle(a){let{isRtl:d,options:p}=this.context,v=p.slotEventOverlap,S=a.levelCoord,E=a.levelCoord+a.thickness,A,$;v&&(E=Math.min(1,S+(E-S)*2)),d?(A=1-E,$=S):(A=S,$=1-E);let L={zIndex:a.stackDepth+1,left:A*100+"%",right:$*100+"%"};return v&&!a.stackForward&&(L[d?"marginLeft":"marginRight"]=10*2),L}}function SJ(i,{todayRange:a,nowDate:d,eventSelection:p,eventDrag:v,eventResize:S}){let E=(v?v.affectedInstances:null)||(S?S.affectedInstances:null)||{};return Qe(ql,null,i.map(A=>{let $=A.eventRange.instance.instanceId;return Qe("div",{key:$,style:{visibility:E[$]?"hidden":""}},Qe(_J,Object.assign({seg:A,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:$===p,isShort:!1},$b(A,a,d))))}))}function tL(i){return i?{top:i.start,bottom:-i.end}:{top:"",bottom:""}}function Qce(i,a){return i.map(d=>a[d.index])}class Jce extends Da{constructor(){super(...arguments),this.splitFgEventSegs=Ts(ik),this.splitBgEventSegs=Ts(ik),this.splitBusinessHourSegs=Ts(ik),this.splitNowIndicatorSegs=Ts(ik),this.splitDateSelectionSegs=Ts(ik),this.splitEventDrag=Ts(vJ),this.splitEventResize=Ts(vJ),this.rootElRef=kd(),this.cellElRefs=new z1}render(){let{props:a,context:d}=this,p=d.options.nowIndicator&&a.slatCoords&&a.slatCoords.safeComputeTop(a.nowDate),v=a.cells.length,S=this.splitFgEventSegs(a.fgEventSegs,v),E=this.splitBgEventSegs(a.bgEventSegs,v),A=this.splitBusinessHourSegs(a.businessHourSegs,v),$=this.splitNowIndicatorSegs(a.nowIndicatorSegs,v),L=this.splitDateSelectionSegs(a.dateSelectionSegs,v),z=this.splitEventDrag(a.eventDrag,v),se=this.splitEventResize(a.eventResize,v);return Qe("div",{className:"fc-timegrid-cols",ref:this.rootElRef},Qe("table",{role:"presentation",style:{minWidth:a.tableMinWidth,width:a.clientWidth}},a.tableColGroupNode,Qe("tbody",{role:"presentation"},Qe("tr",{role:"row"},a.axis&&Qe("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},Qe("div",{className:"fc-timegrid-col-frame"},Qe("div",{className:"fc-timegrid-now-indicator-container"},typeof p=="number"&&Qe(G$,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:p},isAxis:!0,date:a.nowDate})))),a.cells.map((oe,Z)=>Qe(Xce,{key:oe.key,elRef:this.cellElRefs.createRef(oe.key),dateProfile:a.dateProfile,date:oe.date,nowDate:a.nowDate,todayRange:a.todayRange,extraRenderProps:oe.extraRenderProps,extraDataAttrs:oe.extraDataAttrs,extraClassNames:oe.extraClassNames,extraDateSpan:oe.extraDateSpan,fgEventSegs:S[Z],bgEventSegs:E[Z],businessHourSegs:A[Z],nowIndicatorSegs:$[Z],dateSelectionSegs:L[Z],eventDrag:z[Z],eventResize:se[Z],slatCoords:a.slatCoords,eventSelection:a.eventSelection,forPrint:a.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:a}=this;a.onColCoords&&a.clientWidth!==null&&a.onColCoords(new $3(this.rootElRef.current,eue(this.cellElRefs.currentMap,a.cells),!0,!1))}}function eue(i,a){return a.map(d=>i[d.key])}class tue extends ug{constructor(){super(...arguments),this.processSlotOptions=Ts(nue),this.state={slatCoords:null},this.handleRootEl=a=>{a?this.context.registerInteractiveComponent(this,{el:a,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=a=>{let{onScrollTopRequest:d}=this.props,{slatCoords:p}=this.state;if(d&&p){if(a.time){let v=p.computeTimeTop(a.time);v=Math.ceil(v),v&&(v+=1),d(v)}return!0}return!1},this.handleColCoords=a=>{this.colCoords=a},this.handleSlatCoords=a=>{this.setState({slatCoords:a}),this.props.onSlatCoords&&this.props.onSlatCoords(a)}}render(){let{props:a,state:d}=this;return Qe("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:a.clientWidth,minWidth:a.tableMinWidth}},Qe($ce,{axis:a.axis,dateProfile:a.dateProfile,slatMetas:a.slatMetas,clientWidth:a.clientWidth,minHeight:a.expandRows?a.clientHeight:"",tableMinWidth:a.tableMinWidth,tableColGroupNode:a.axis?a.tableColGroupNode:null,onCoords:this.handleSlatCoords}),Qe(Jce,{cells:a.cells,axis:a.axis,dateProfile:a.dateProfile,businessHourSegs:a.businessHourSegs,bgEventSegs:a.bgEventSegs,fgEventSegs:a.fgEventSegs,dateSelectionSegs:a.dateSelectionSegs,eventSelection:a.eventSelection,eventDrag:a.eventDrag,eventResize:a.eventResize,todayRange:a.todayRange,nowDate:a.nowDate,nowIndicatorSegs:a.nowIndicatorSegs,clientWidth:a.clientWidth,tableMinWidth:a.tableMinWidth,tableColGroupNode:a.tableColGroupNode,slatCoords:d.slatCoords,onColCoords:this.handleColCoords,forPrint:a.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(a){this.scrollResponder.update(a.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(a,d){let{dateEnv:p,options:v}=this.context,{colCoords:S}=this,{dateProfile:E}=this.props,{slatCoords:A}=this.state,{snapDuration:$,snapsPerSlot:L}=this.processSlotOptions(this.props.slotDuration,v.snapDuration),z=S.leftToIndex(a),se=A.positions.topToIndex(d);if(z!=null&&se!=null){let oe=this.props.cells[z],Z=A.positions.tops[se],X=A.positions.getHeight(se),le=(d-Z)/X,J=Math.floor(le*L),me=se*L+J,ie=this.props.cells[z].date,G=a$(E.slotMinTime,Kse($,me)),we=p.add(ie,G),wt=p.add(we,$);return{dateProfile:E,dateSpan:Object.assign({range:{start:we,end:wt},allDay:!1},oe.extraDateSpan),dayEl:S.els[z],rect:{left:S.lefts[z],right:S.rights[z],top:Z,bottom:Z+X},layer:0}}return null}}function nue(i,a){let d=a||i,p=l$(i,d);return p===null&&(d=i,p=1),{snapDuration:d,snapsPerSlot:p}}class oue extends OQ{sliceRange(a,d){let p=[];for(let v=0;v<d.length;v+=1){let S=a2(a,d[v]);S&&p.push({start:S.start,end:S.end,isStart:S.start.valueOf()===a.start.valueOf(),isEnd:S.end.valueOf()===a.end.valueOf(),col:v})}return p}}class sue extends ug{constructor(){super(...arguments),this.buildDayRanges=Ts(rue),this.slicer=new oue,this.timeColsRef=kd()}render(){let{props:a,context:d}=this,{dateProfile:p,dayTableModel:v}=a,{nowIndicator:S,nextDayThreshold:E}=d.options,A=this.buildDayRanges(v,p,d.dateEnv);return Qe(lk,{unit:S?"minute":"day"},($,L)=>Qe(tue,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(a,p,null,d,A),{forPrint:a.forPrint,axis:a.axis,dateProfile:p,slatMetas:a.slatMetas,slotDuration:a.slotDuration,cells:v.cells[0],tableColGroupNode:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,clientWidth:a.clientWidth,clientHeight:a.clientHeight,expandRows:a.expandRows,nowDate:$,nowIndicatorSegs:S&&this.slicer.sliceNowDate($,p,E,d,A),todayRange:L,onScrollTopRequest:a.onScrollTopRequest,onSlatCoords:a.onSlatCoords})))}}function rue(i,a,d){let p=[];for(let v of i.headerDates)p.push({start:d.add(v,a.slotMinTime),end:d.add(v,a.slotMaxTime)});return p}const xJ=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function aue(i,a,d,p,v){let S=new Date(0),E=i,A=Gr(0),$=d||lue(p),L=[];for(;Zh(E)<Zh(a);){let z=v.add(S,E),se=l$(A,$)!==null;L.push({date:z,time:E,key:z.toISOString(),isoTimeStr:dre(z),isLabeled:se}),E=a$(E,p),A=a$(A,p)}return L}function lue(i){let a,d,p;for(a=xJ.length-1;a>=0;a-=1)if(d=Gr(xJ[a]),p=l$(d,i),p!==null&&p>1)return d;return i}class iue extends Mce{constructor(){super(...arguments),this.buildTimeColsModel=Ts(cue),this.buildSlatMetas=Ts(aue)}render(){let{options:a,dateEnv:d,dateProfileGenerator:p}=this.context,{props:v}=this,{dateProfile:S}=v,E=this.buildTimeColsModel(S,p),A=this.allDaySplitter.splitProps(v),$=this.buildSlatMetas(S.slotMinTime,S.slotMaxTime,a.slotLabelInterval,a.slotDuration,d),{dayMinWidth:L}=a,z=!L,se=L,oe=a.dayHeaders&&Qe(DQ,{dates:E.headerDates,dateProfile:S,datesRepDistinctDays:!0,renderIntro:z?this.renderHeadAxis:null}),Z=a.allDaySlot!==!1&&(le=>Qe(gJ,Object.assign({},A.allDay,{dateProfile:S,dayTableModel:E,nextDayThreshold:a.nextDayThreshold,tableMinWidth:le.tableMinWidth,colGroupNode:le.tableColGroupNode,renderRowIntro:z?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:le.clientWidth,clientHeight:le.clientHeight,forPrint:v.forPrint},this.getAllDayMaxEventProps()))),X=le=>Qe(sue,Object.assign({},A.timed,{dayTableModel:E,dateProfile:S,axis:z,slotDuration:a.slotDuration,slatMetas:$,forPrint:v.forPrint,tableColGroupNode:le.tableColGroupNode,tableMinWidth:le.tableMinWidth,clientWidth:le.clientWidth,clientHeight:le.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:le.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return se?this.renderHScrollLayout(oe,Z,X,E.colCnt,L,$,this.state.slatCoords):this.renderSimpleLayout(oe,Z,X)}}function cue(i,a){let d=new NQ(i.renderRange,a);return new RQ(d,!1)}var uue='.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}';e$(uue);var EJ=U1({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:iue,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});z$.touchMouseIgnoreWait=500;let nL=0,z7=0,oL=!1;class kJ{constructor(a){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=d=>{if(!this.shouldIgnoreMouse()&&due(d)&&this.tryStart(d)){let p=this.createEventFromMouse(d,!0);this.emitter.trigger("pointerdown",p),this.initScrollWatch(p),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=d=>{let p=this.createEventFromMouse(d);this.recordCoords(p),this.emitter.trigger("pointermove",p)},this.handleMouseUp=d=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(d)),this.cleanup()},this.handleTouchStart=d=>{if(this.tryStart(d)){this.isTouchDragging=!0;let p=this.createEventFromTouch(d,!0);this.emitter.trigger("pointerdown",p),this.initScrollWatch(p);let v=d.target;this.shouldIgnoreMove||v.addEventListener("touchmove",this.handleTouchMove),v.addEventListener("touchend",this.handleTouchEnd),v.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=d=>{let p=this.createEventFromTouch(d);this.recordCoords(p),this.emitter.trigger("pointermove",p)},this.handleTouchEnd=d=>{if(this.isDragging){let p=d.target;p.removeEventListener("touchmove",this.handleTouchMove),p.removeEventListener("touchend",this.handleTouchEnd),p.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(d)),this.cleanup(),this.isTouchDragging=!1,fue()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=d=>{if(!this.shouldIgnoreMove){let p=window.scrollX-this.prevScrollX+this.prevPageX,v=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:d,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:p,pageY:v,deltaX:p-this.origPageX,deltaY:v-this.origPageY})}},this.containerEl=a,this.emitter=new B7,a.addEventListener("mousedown",this.handleMouseDown),a.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),mue()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),hue()}tryStart(a){let d=this.querySubjectEl(a),p=a.target;return d&&(!this.handleSelector||Vu(p,this.handleSelector))?(this.subjectEl=d,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){oL=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(a){return this.selector?Vu(a.target,this.selector):this.containerEl}shouldIgnoreMouse(){return nL||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(oL=!0)}initScrollWatch(a){this.shouldWatchScroll&&(this.recordCoords(a),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(a){this.shouldWatchScroll&&(this.prevPageX=a.pageX,this.prevPageY=a.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(a,d){let p=0,v=0;return d?(this.origPageX=a.pageX,this.origPageY=a.pageY):(p=a.pageX-this.origPageX,v=a.pageY-this.origPageY),{origEvent:a,isTouch:!1,subjectEl:this.subjectEl,pageX:a.pageX,pageY:a.pageY,deltaX:p,deltaY:v}}createEventFromTouch(a,d){let p=a.touches,v,S,E=0,A=0;return p&&p.length?(v=p[0].pageX,S=p[0].pageY):(v=a.pageX,S=a.pageY),d?(this.origPageX=v,this.origPageY=S):(E=v-this.origPageX,A=S-this.origPageY),{origEvent:a,isTouch:!0,subjectEl:this.subjectEl,pageX:v,pageY:S,deltaX:E,deltaY:A}}}function due(i){return i.button===0&&!i.ctrlKey}function fue(){nL+=1,setTimeout(()=>{nL-=1},z$.touchMouseIgnoreWait)}function mue(){z7+=1,z7===1&&window.addEventListener("touchmove",AJ,{passive:!1})}function hue(){z7-=1,z7||window.removeEventListener("touchmove",AJ,{passive:!1})}function AJ(i){oL&&i.preventDefault()}class pue{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(a,d,p){this.sourceEl=a,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=d-window.scrollX,this.origScreenY=p-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(a,d){this.deltaX=a-window.scrollX-this.origScreenX,this.deltaY=d-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(a){a?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=a,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=a)}stop(a,d){let p=()=>{this.cleanup(),d()};a&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(p,this.revertDuration):setTimeout(p,0)}doRevertAnimation(a,d){let p=this.mirrorEl,v=this.sourceEl.getBoundingClientRect();p.style.transition="top "+d+"ms,left "+d+"ms",tk(p,{left:v.left,top:v.top}),Mse(p,()=>{p.style.transition="",a()})}cleanup(){this.mirrorEl&&(o$(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&tk(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let a=this.sourceElRect,d=this.mirrorEl;return d||(d=this.mirrorEl=this.sourceEl.cloneNode(!0),d.style.userSelect="none",d.style.webkitUserSelect="none",d.style.pointerEvents="none",d.classList.add("fc-event-dragging"),tk(d,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:a.right-a.left,height:a.bottom-a.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(d)),d}}class TJ extends F${constructor(a,d){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=a,this.doesListening=d,this.scrollTop=this.origScrollTop=a.getScrollTop(),this.scrollLeft=this.origScrollLeft=a.getScrollLeft(),this.scrollWidth=a.getScrollWidth(),this.scrollHeight=a.getScrollHeight(),this.clientWidth=a.getClientWidth(),this.clientHeight=a.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(a){this.scrollController.setScrollTop(a),this.doesListening||(this.scrollTop=Math.max(Math.min(a,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(a){this.scrollController.setScrollLeft(a),this.doesListening||(this.scrollLeft=Math.max(Math.min(a,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class DJ extends TJ{constructor(a,d){super(new sle(a),d)}getEventTarget(){return this.scrollController.el}computeClientRect(){return nle(this.scrollController.el)}}class gue extends TJ{constructor(a){super(new rle,a)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const NJ=typeof performance=="function"?performance.now:Date.now;class bue{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let a=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(a){let d=NJ();this.handleSide(a,(d-this.msSinceRequest)/1e3),this.requestAnimation(d)}else this.isAnimating=!1}}}start(a,d,p){this.isEnabled&&(this.scrollCaches=this.buildCaches(p),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(a,d))}handleMove(a,d){if(this.isEnabled){let p=a-window.scrollX,v=d-window.scrollY,S=this.pointerScreenY===null?0:v-this.pointerScreenY,E=this.pointerScreenX===null?0:p-this.pointerScreenX;S<0?this.everMovedUp=!0:S>0&&(this.everMovedDown=!0),E<0?this.everMovedLeft=!0:E>0&&(this.everMovedRight=!0),this.pointerScreenX=p,this.pointerScreenY=v,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(NJ()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let a of this.scrollCaches)a.destroy();this.scrollCaches=null}}requestAnimation(a){this.msSinceRequest=a,requestAnimationFrame(this.animate)}handleSide(a,d){let{scrollCache:p}=a,{edgeThreshold:v}=this,S=v-a.distance,E=S*S/(v*v)*this.maxVelocity*d,A=1;switch(a.name){case"left":A=-1;case"right":p.setScrollLeft(p.getScrollLeft()+E*A);break;case"top":A=-1;case"bottom":p.setScrollTop(p.getScrollTop()+E*A);break}}computeBestEdge(a,d){let{edgeThreshold:p}=this,v=null,S=this.scrollCaches||[];for(let E of S){let A=E.clientRect,$=a-A.left,L=A.right-a,z=d-A.top,se=A.bottom-d;$>=0&&L>=0&&z>=0&&se>=0&&(z<=p&&this.everMovedUp&&E.canScrollUp()&&(!v||v.distance>z)&&(v={scrollCache:E,name:"top",distance:z}),se<=p&&this.everMovedDown&&E.canScrollDown()&&(!v||v.distance>se)&&(v={scrollCache:E,name:"bottom",distance:se}),$<=p&&this.everMovedLeft&&E.canScrollLeft()&&(!v||v.distance>$)&&(v={scrollCache:E,name:"left",distance:$}),L<=p&&this.everMovedRight&&E.canScrollRight()&&(!v||v.distance>L)&&(v={scrollCache:E,name:"right",distance:L}))}return v}buildCaches(a){return this.queryScrollEls(a).map(d=>d===window?new gue(!1):new DJ(d,!1))}queryScrollEls(a){let d=[];for(let p of this.scrollQuery)typeof p=="object"?d.push(p):d.push(...Array.prototype.slice.call(a.getRootNode().querySelectorAll(p)));return d}}class ck extends ile{constructor(a,d){super(a),this.containerEl=a,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=v=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,Ise(document.body),Fse(document.body),v.isTouch||v.origEvent.preventDefault(),this.emitter.trigger("pointerdown",v),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(v.subjectEl,v.pageX,v.pageY),this.startDelay(v),this.minDistance||this.handleDistanceSurpassed(v)))},this.onPointerMove=v=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",v),!this.isDistanceSurpassed){let S=this.minDistance,E,{deltaX:A,deltaY:$}=v;E=A*A+$*$,E>=S*S&&this.handleDistanceSurpassed(v)}this.isDragging&&(v.origEvent.type!=="scroll"&&(this.mirror.handleMove(v.pageX,v.pageY),this.autoScroller.handleMove(v.pageX,v.pageY)),this.emitter.trigger("dragmove",v))}},this.onPointerUp=v=>{this.isInteracting&&(this.isInteracting=!1,Pse(document.body),$se(document.body),this.emitter.trigger("pointerup",v),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(v)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let p=this.pointer=new kJ(a);p.emitter.on("pointerdown",this.onPointerDown),p.emitter.on("pointermove",this.onPointerMove),p.emitter.on("pointerup",this.onPointerUp),d&&(p.selector=d),this.mirror=new pue,this.autoScroller=new bue}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(a){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(a)},this.delay):this.handleDelayEnd(a)}handleDelayEnd(a){this.isDelayEnded=!0,this.tryStartDrag(a)}handleDistanceSurpassed(a){this.isDistanceSurpassed=!0,this.tryStartDrag(a)}tryStartDrag(a){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(a.pageX,a.pageY,this.containerEl),this.emitter.trigger("dragstart",a),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(a){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,a))}stopDrag(a){this.isDragging=!1,this.emitter.trigger("dragend",a)}setIgnoreMove(a){this.pointer.shouldIgnoreMove=a}setMirrorIsVisible(a){this.mirror.setIsVisible(a)}setMirrorNeedsRevert(a){this.mirrorNeedsRevert=a}setAutoScrollEnabled(a){this.autoScroller.isEnabled=a}}class yue{constructor(a){this.el=a,this.origRect=P$(a),this.scrollCaches=xQ(a).map(d=>new DJ(d,!0))}destroy(){for(let a of this.scrollCaches)a.destroy()}computeLeft(){let a=this.origRect.left;for(let d of this.scrollCaches)a+=d.origScrollLeft-d.getScrollLeft();return a}computeTop(){let a=this.origRect.top;for(let d of this.scrollCaches)a+=d.origScrollTop-d.getScrollTop();return a}isWithinClipping(a,d){let p={left:a,top:d};for(let v of this.scrollCaches)if(!vue(v.getEventTarget())&&!Uae(p,v.clientRect))return!1;return!0}}function vue(i){let a=i.tagName;return a==="HTML"||a==="BODY"}class U7{constructor(a,d){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=p=>{let{dragging:v}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(p),this.initialHit||!this.requireInitial?(v.setIgnoreMove(!1),this.emitter.trigger("pointerdown",p)):v.setIgnoreMove(!0)},this.handleDragStart=p=>{this.emitter.trigger("dragstart",p),this.handleMove(p,!0)},this.handleDragMove=p=>{this.emitter.trigger("dragmove",p),this.handleMove(p)},this.handlePointerUp=p=>{this.releaseHits(),this.emitter.trigger("pointerup",p)},this.handleDragEnd=p=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,p),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",p)},this.droppableStore=d,a.emitter.on("pointerdown",this.handlePointerDown),a.emitter.on("dragstart",this.handleDragStart),a.emitter.on("dragmove",this.handleDragMove),a.emitter.on("pointerup",this.handlePointerUp),a.emitter.on("dragend",this.handleDragEnd),this.dragging=a,this.emitter=new B7}processFirstCoord(a){let d={left:a.pageX,top:a.pageY},p=d,v=a.subjectEl,S;v instanceof HTMLElement&&(S=P$(v),p=Wae(p,S));let E=this.initialHit=this.queryHitForOffset(p.left,p.top);if(E){if(this.useSubjectCenter&&S){let A=wQ(S,E.rect);A&&(p=jae(A))}this.coordAdjust=Zae(p,d)}else this.coordAdjust={left:0,top:0}}handleMove(a,d){let p=this.queryHitForOffset(a.pageX+this.coordAdjust.left,a.pageY+this.coordAdjust.top);(d||!W7(this.movingHit,p))&&(this.movingHit=p,this.emitter.trigger("hitupdate",p,!1,a))}prepareHits(){this.offsetTrackers=$1(this.droppableStore,a=>(a.component.prepareHits(),new yue(a.el)))}releaseHits(){let{offsetTrackers:a}=this;for(let d in a)a[d].destroy();this.offsetTrackers={}}queryHitForOffset(a,d){let{droppableStore:p,offsetTrackers:v}=this,S=null;for(let E in p){let A=p[E].component,$=v[E];if($&&$.isWithinClipping(a,d)){let L=$.computeLeft(),z=$.computeTop(),se=a-L,oe=d-z,{origRect:Z}=$,X=Z.right-Z.left,le=Z.bottom-Z.top;if(se>=0&&se<X&&oe>=0&&oe<le){let J=A.queryHit(se,oe,X,le);J&&T7(J.dateProfile.activeRange,J.dateSpan.range)&&(this.disablePointCheck||$.el.contains(document.elementFromPoint(se+L-window.scrollX,oe+z-window.scrollY)))&&(!S||J.layer>S.layer)&&(J.componentId=E,J.context=A.context,J.rect.left+=L,J.rect.right+=L,J.rect.top+=z,J.rect.bottom+=z,S=J)}}}return S}}function W7(i,a){return!i&&!a?!0:!!i!=!!a?!1:Bae(i.dateSpan,a.dateSpan)}function RJ(i,a){let d={};for(let p of a.pluginHooks.datePointTransforms)Object.assign(d,p(i,a));return Object.assign(d,Cue(i,a.dateEnv)),d}function Cue(i,a){return{date:a.toDate(i.range.start),dateStr:a.formatIso(i.range.start,{omitTime:i.allDay}),allDay:i.allDay}}class wue extends F3{constructor(a){super(a),this.handlePointerDown=p=>{let{dragging:v}=this,S=p.origEvent.target;v.setIgnoreMove(!this.component.isValidDateDownEl(S))},this.handleDragEnd=p=>{let{component:v}=this,{pointer:S}=this.dragging;if(!S.wasTouchScroll){let{initialHit:E,finalHit:A}=this.hitDragging;if(E&&A&&W7(E,A)){let{context:$}=v,L=Object.assign(Object.assign({},RJ(E.dateSpan,$)),{dayEl:E.dayEl,jsEvent:p.origEvent,view:$.viewApi||$.calendarApi.view});$.emitter.trigger("dateClick",L)}}},this.dragging=new ck(a.el),this.dragging.autoScroller.isEnabled=!1;let d=this.hitDragging=new U7(this.dragging,N$(a));d.emitter.on("pointerdown",this.handlePointerDown),d.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class _ue extends F3{constructor(a){super(a),this.dragSelection=null,this.handlePointerDown=E=>{let{component:A,dragging:$}=this,{options:L}=A.context,z=L.selectable&&A.isValidDateDownEl(E.origEvent.target);$.setIgnoreMove(!z),$.delay=E.isTouch?Sue(A):null},this.handleDragStart=E=>{this.component.context.calendarApi.unselect(E)},this.handleHitUpdate=(E,A)=>{let{context:$}=this.component,L=null,z=!1;if(E){let se=this.hitDragging.initialHit;E.componentId===se.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(se,E)||(L=xue(se,E,$.pluginHooks.dateSelectionTransformers)),(!L||!hle(L,E.dateProfile,$))&&(z=!0,L=null)}L?$.dispatch({type:"SELECT_DATES",selection:L}):A||$.dispatch({type:"UNSELECT_DATES"}),z?s$():r$(),A||(this.dragSelection=L)},this.handlePointerUp=E=>{this.dragSelection&&(lQ(this.dragSelection,E,this.component.context),this.dragSelection=null)};let{component:d}=a,{options:p}=d.context,v=this.dragging=new ck(a.el);v.touchScrollAllowed=!1,v.minDistance=p.selectMinDistance||0,v.autoScroller.isEnabled=p.dragScroll;let S=this.hitDragging=new U7(this.dragging,N$(a));S.emitter.on("pointerdown",this.handlePointerDown),S.emitter.on("dragstart",this.handleDragStart),S.emitter.on("hitupdate",this.handleHitUpdate),S.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function Sue(i){let{options:a}=i.context,d=a.selectLongPressDelay;return d==null&&(d=a.longPressDelay),d}function xue(i,a,d){let p=i.dateSpan,v=a.dateSpan,S=[p.range.start,p.range.end,v.range.start,v.range.end];S.sort(Use);let E={};for(let A of d){let $=A(i,a);if($===!1)return null;$&&Object.assign(E,$)}return E.range={start:S[0],end:S[3]},E.allDay=p.allDay,E}class uk extends F3{constructor(a){super(a),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=E=>{let A=E.origEvent.target,{component:$,dragging:L}=this,{mirror:z}=L,{options:se}=$.context,oe=$.context;this.subjectEl=E.subjectEl;let Z=this.subjectSeg=P3(E.subjectEl),le=(this.eventRange=Z.eventRange).instance.instanceId;this.relevantEvents=E$(oe.getCurrentData().eventStore,le),L.minDistance=E.isTouch?0:se.eventDragMinDistance,L.delay=E.isTouch&&le!==$.props.eventSelection?kue($):null,se.fixedMirrorParent?z.parentNode=se.fixedMirrorParent:z.parentNode=Vu(A,".fc"),z.revertDuration=se.dragRevertDuration;let J=$.isValidSegDownEl(A)&&!Vu(A,".fc-event-resizer");L.setIgnoreMove(!J),this.isDragging=J&&E.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=E=>{let A=this.component.context,$=this.eventRange,L=$.instance.instanceId;E.isTouch?L!==this.component.props.eventSelection&&A.dispatch({type:"SELECT_EVENT",eventInstanceId:L}):A.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(A.calendarApi.unselect(E),A.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new li(A,$.def,$.instance),jsEvent:E.origEvent,view:A.viewApi}))},this.handleHitUpdate=(E,A)=>{if(!this.isDragging)return;let $=this.relevantEvents,L=this.hitDragging.initialHit,z=this.component.context,se=null,oe=null,Z=null,X=!1,le={affectedEvents:$,mutatedEvents:nm(),isEvent:!0};if(E){se=E.context;let J=se.options;z===se||J.editable&&J.droppable?(oe=Eue(L,E,this.eventRange.instance.range.start,se.getCurrentData().pluginHooks.eventDragMutationMassagers),oe&&(Z=T$($,se.getCurrentData().eventUiBases,oe,se),le.mutatedEvents=Z,BQ(le,E.dateProfile,se)||(X=!0,oe=null,Z=null,le.mutatedEvents=nm()))):se=null}this.displayDrag(se,le),X?s$():r$(),A||(z===se&&W7(L,E)&&(oe=null),this.dragging.setMirrorNeedsRevert(!oe),this.dragging.setMirrorIsVisible(!E||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=se,this.validMutation=oe,this.mutatedRelevantEvents=Z)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=E=>{if(this.isDragging){let A=this.component.context,$=A.viewApi,{receivingContext:L,validMutation:z}=this,se=this.eventRange.def,oe=this.eventRange.instance,Z=new li(A,se,oe),X=this.relevantEvents,le=this.mutatedRelevantEvents,{finalHit:J}=this.hitDragging;if(this.clearDrag(),A.emitter.trigger("eventDragStop",{el:this.subjectEl,event:Z,jsEvent:E.origEvent,view:$}),z){if(L===A){let me=new li(A,le.defs[se.defId],oe?le.instances[oe.instanceId]:null);A.dispatch({type:"MERGE_EVENTS",eventStore:le});let ie={oldEvent:Z,event:me,relatedEvents:i2(le,A,oe),revert(){A.dispatch({type:"MERGE_EVENTS",eventStore:X})}},G={};for(let we of A.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(G,we(z,A));A.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},ie),G),{el:E.subjectEl,delta:z.datesDelta,jsEvent:E.origEvent,view:$})),A.emitter.trigger("eventChange",ie)}else if(L){let me={event:Z,relatedEvents:i2(X,A,oe),revert(){A.dispatch({type:"MERGE_EVENTS",eventStore:X})}};A.emitter.trigger("eventLeave",Object.assign(Object.assign({},me),{draggedEl:E.subjectEl,view:$})),A.dispatch({type:"REMOVE_EVENTS",eventStore:X}),A.emitter.trigger("eventRemove",me);let ie=le.defs[se.defId],G=le.instances[oe.instanceId],we=new li(L,ie,G);L.dispatch({type:"MERGE_EVENTS",eventStore:le});let wt={event:we,relatedEvents:i2(le,L,G),revert(){L.dispatch({type:"REMOVE_EVENTS",eventStore:le})}};L.emitter.trigger("eventAdd",wt),E.isTouch&&L.dispatch({type:"SELECT_EVENT",eventInstanceId:oe.instanceId}),L.emitter.trigger("drop",Object.assign(Object.assign({},RJ(J.dateSpan,L)),{draggedEl:E.subjectEl,jsEvent:E.origEvent,view:J.context.viewApi})),L.emitter.trigger("eventReceive",Object.assign(Object.assign({},wt),{draggedEl:E.subjectEl,view:J.context.viewApi}))}}else A.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:d}=this,{options:p}=d.context,v=this.dragging=new ck(a.el);v.pointer.selector=uk.SELECTOR,v.touchScrollAllowed=!1,v.autoScroller.isEnabled=p.dragScroll;let S=this.hitDragging=new U7(this.dragging,R$);S.useSubjectCenter=a.useEventCenter,S.emitter.on("pointerdown",this.handlePointerDown),S.emitter.on("dragstart",this.handleDragStart),S.emitter.on("hitupdate",this.handleHitUpdate),S.emitter.on("pointerup",this.handlePointerUp),S.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(a,d){let p=this.component.context,v=this.receivingContext;v&&v!==a&&(v===p?v.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:d.affectedEvents,mutatedEvents:nm(),isEvent:!0}}):v.dispatch({type:"UNSET_EVENT_DRAG"})),a&&a.dispatch({type:"SET_EVENT_DRAG",state:d})}clearDrag(){let a=this.component.context,{receivingContext:d}=this;d&&d.dispatch({type:"UNSET_EVENT_DRAG"}),a!==d&&a.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}uk.SELECTOR=".fc-event-draggable, .fc-event-resizable";function Eue(i,a,d,p){let v=i.dateSpan,S=a.dateSpan,E=v.range.start,A=S.range.start,$={};v.allDay!==S.allDay&&($.allDay=S.allDay,$.hasEnd=a.context.options.allDayMaintainDuration,S.allDay?E=kl(d):E=d);let L=M3(E,A,i.context.dateEnv,i.componentId===a.componentId?i.largeUnit:null);L.milliseconds&&($.allDay=!1);let z={datesDelta:L,standardProps:$};for(let se of p)se(z,i,a);return z}function kue(i){let{options:a}=i.context,d=a.eventLongPressDelay;return d==null&&(d=a.longPressDelay),d}class Aue extends F3{constructor(a){super(a),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=S=>{let{component:E}=this,A=this.querySegEl(S),$=P3(A),L=this.eventRange=$.eventRange;this.dragging.minDistance=E.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(S.origEvent.target)||S.isTouch&&this.component.props.eventSelection!==L.instance.instanceId)},this.handleDragStart=S=>{let{context:E}=this.component,A=this.eventRange;this.relevantEvents=E$(E.getCurrentData().eventStore,this.eventRange.instance.instanceId);let $=this.querySegEl(S);this.draggingSegEl=$,this.draggingSeg=P3($),E.calendarApi.unselect(),E.emitter.trigger("eventResizeStart",{el:$,event:new li(E,A.def,A.instance),jsEvent:S.origEvent,view:E.viewApi})},this.handleHitUpdate=(S,E,A)=>{let{context:$}=this.component,L=this.relevantEvents,z=this.hitDragging.initialHit,se=this.eventRange.instance,oe=null,Z=null,X=!1,le={affectedEvents:L,mutatedEvents:nm(),isEvent:!0};S&&(S.componentId===z.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(z,S)||(oe=Tue(z,S,A.subjectEl.classList.contains("fc-event-resizer-start"),se.range))),oe&&(Z=T$(L,$.getCurrentData().eventUiBases,oe,$),le.mutatedEvents=Z,BQ(le,S.dateProfile,$)||(X=!0,oe=null,Z=null,le.mutatedEvents=null)),Z?$.dispatch({type:"SET_EVENT_RESIZE",state:le}):$.dispatch({type:"UNSET_EVENT_RESIZE"}),X?s$():r$(),E||(oe&&W7(z,S)&&(oe=null),this.validMutation=oe,this.mutatedRelevantEvents=Z)},this.handleDragEnd=S=>{let{context:E}=this.component,A=this.eventRange.def,$=this.eventRange.instance,L=new li(E,A,$),z=this.relevantEvents,se=this.mutatedRelevantEvents;if(E.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:L,jsEvent:S.origEvent,view:E.viewApi}),this.validMutation){let oe=new li(E,se.defs[A.defId],$?se.instances[$.instanceId]:null);E.dispatch({type:"MERGE_EVENTS",eventStore:se});let Z={oldEvent:L,event:oe,relatedEvents:i2(se,E,$),revert(){E.dispatch({type:"MERGE_EVENTS",eventStore:z})}};E.emitter.trigger("eventResize",Object.assign(Object.assign({},Z),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||Gr(0),endDelta:this.validMutation.endDelta||Gr(0),jsEvent:S.origEvent,view:E.viewApi})),E.emitter.trigger("eventChange",Z)}else E.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:d}=a,p=this.dragging=new ck(a.el);p.pointer.selector=".fc-event-resizer",p.touchScrollAllowed=!1,p.autoScroller.isEnabled=d.context.options.dragScroll;let v=this.hitDragging=new U7(this.dragging,N$(a));v.emitter.on("pointerdown",this.handlePointerDown),v.emitter.on("dragstart",this.handleDragStart),v.emitter.on("hitupdate",this.handleHitUpdate),v.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(a){return Vu(a.subjectEl,".fc-event")}}function Tue(i,a,d,p){let v=i.context.dateEnv,S=i.dateSpan.range.start,E=a.dateSpan.range.start,A=M3(S,E,v,i.largeUnit);if(d){if(v.add(p.start,A)<p.end)return{startDelta:A}}else if(v.add(p.end,A)>p.start)return{endDelta:A};return null}class Due{constructor(a){this.context=a,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=p=>{p.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=p=>{let v=this.context.options.unselectCancel,S=CX(p.origEvent);this.matchesCancel=!!Vu(S,v),this.matchesEvent=!!Vu(S,uk.SELECTOR)},this.onDocumentPointerUp=p=>{let{context:v}=this,{documentPointer:S}=this,E=v.getCurrentData();if(!S.wasTouchScroll){if(E.dateSelection&&!this.isRecentPointerDateSelect){let A=v.options.unselectAuto;A&&(!A||!this.matchesCancel)&&v.calendarApi.unselect(p)}E.eventSelection&&!this.matchesEvent&&v.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let d=this.documentPointer=new kJ(document);d.shouldIgnoreMove=!0,d.shouldWatchScroll=!1,d.emitter.on("pointerdown",this.onDocumentPointerDown),d.emitter.on("pointerup",this.onDocumentPointerUp),a.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const Nue={fixedMirrorParent:jt},Rue={dateClick:jt,eventDragStart:jt,eventDragStop:jt,eventDrop:jt,eventResizeStart:jt,eventResizeStop:jt,eventResize:jt,drop:jt,eventReceive:jt,eventLeave:jt};z$.dataAttrPrefix="";var OJ=U1({name:"@fullcalendar/interaction",componentInteractions:[wue,_ue,uk,Aue],calendarInteractions:[Due],elementDraggingImpl:ck,optionRefiners:Nue,listenerRefiners:Rue});let Oue=0,Bue=new Date().toISOString().replace(/T.*$/,"");const Mue=[{id:Iue(),title:"All-day event",start:Bue}];function Iue(){return String(Oue++)}const dk=i=>(u.pushScopeId("data-v-1fa0e0e1"),i=i(),u.popScopeId(),i),Pue={class:"demo-app"},Fue={class:"demo-app-main"},$ue={class:"title-line"},Lue=["title","onClick"],Vue={key:0,style:{width:"90%"}},Hue=dk(()=>u.createElementVNode("span",{class:"to"},"至",-1)),zue={key:1,style:{width:"90%"}},Uue=dk(()=>u.createElementVNode("span",{class:"to"},"至",-1)),Wue={key:2,style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},jue={key:0,style:{"margin-left":"2%"}},Zue=dk(()=>u.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),Gue={key:1},que=dk(()=>u.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),Kue={key:0,class:"placeholder"},Yue={class:"info"},Xue=dk(()=>u.createElementVNode("img",{src:"https://img1.baidu.com/it/u=1960110688,1786190632&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=281",alt:""},null,-1)),Que={class:"dialog-footer"},Jue={name:"IkApprovalProcess"},ede=u.defineComponent({...Jue,props:{dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},emits:["delete","success"],setup(i,{emit:a}){const d=a,p=le=>{if(A.selectInfo=le,S(),le.view.type=="dayGridMonth"){let me=le.end.getTime()-864e5;A.timeType="month",A.form.startDate=Io.ikDate.toYMD(le.start),A.form.endDate=Io.ikDate.toYMD(new Date(me))}else le.view.type=="timeGridWeek"?(A.timeType="week",A.form.startDate=Io.ikDate.toYMDHM(le.start),A.form.endDate=Io.ikDate.toYMDHM(le.end)):le.view.type=="timeGridDay"&&(A.timeType="day",A.form.startDate=Io.ikDate.toYMD(le.start),A.form.endDate=Io.ikDate.toYMD(le.start),A.form.startTime=Io.ikDate.toDateTime(le.start),A.form.endTime=Io.ikDate.toDateTime(le.end));le.view.calendar.unselect(),u.nextTick(()=>{A.title="新建日程",A.dialogVisible=!0})},v=(le,J)=>{A.title="修改日程",A.dialogVisible=!0},S=le=>{fetch("http://192.168.2.45:6002/component/pick/mix",{method:"POST",body:JSON.stringify({parentDepartmentId:le||"",name:""}),headers:{Authorization:"Bearer iking","Content-Type":"application/json"}}).then(ie=>{ie.json().then(G=>{const{success:we,data:wt}=G;if(!we)return;const{departments:Ve,users:K,roles:De,posts:tt}=wt;A.depList=Ve,A.userList=K,A.roleList=De,A.postList=tt})}).catch(ie=>{console.info("error: ",ie)})},E=le=>{A.currentEvents=le},A=u.reactive({allDay:!1,dialogVisible:!1,form:{title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},formRef:null,title:"新建日程",timeType:"month",handList:[],isShow:!1,depList:[],userList:[],roleList:[],postList:[],selectInfo:{},calendarOptions:{locale:RY,plugins:[bJ,EJ,OJ],headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},firstDay:1,initialView:"dayGridMonth",initialEvents:Mue,editable:!0,selectable:!0,selectMirror:!0,dayMaxEvents:!0,weekends:!0,select:p,eventClick:le=>v(),eventsSet:E},currentEvents:[]}),$=()=>{var le;(le=A.formRef)==null||le.resetFields(),A.form={title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},A.dialogVisible=!1},L=async()=>{var me,ie,G,we;let le=(ie=(me=A.selectInfo)==null?void 0:me.view)==null?void 0:ie.calendar,J={id:new Date().getTime(),title:A.form.title,start:(G=A.selectInfo)==null?void 0:G.startStr,end:(we=A.selectInfo)==null?void 0:we.endStr,allDay:A.allDay};await le.addEvent(J),d("success",J),$()},z=le=>{Zt.ElMessageBox.confirm(`你确定删除事件'${le.event.title}'?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{Zt.ElMessage({type:"success",message:"删除成功"}),le.event.remove(),d("delete",le.event)})},se=le=>{A.handList=le.list,A.form.personList=le.list},oe=()=>{A.isShow=!0},Z=le=>{S(le==null?void 0:le.elementId)},X=le=>{A.form.personList.splice(le,1),A.handList=A.form.personList};return(le,J)=>{const me=u.resolveComponent("el-checkbox");return u.openBlock(),u.createElementBlock("div",Pue,[u.createElementVNode("div",Fue,[u.createVNode(u.unref(lJ),{class:"demo-app-calendar",options:A.calendarOptions},{eventContent:u.withCtx(ie=>[u.createElementVNode("div",$ue,[u.createElementVNode("span",{class:"title",title:ie.event.title,onClick:u.withModifiers(G=>v(),["stop"])},u.toDisplayString(ie.event.title),9,Lue),u.createVNode(u.unref(Zt.ElIcon),{size:16,onClick:u.withModifiers(G=>z(ie),["stop"])},{default:u.withCtx(()=>[u.createVNode(u.unref(wY))]),_:2},1032,["onClick"])])]),_:1},8,["options"])]),u.createCommentVNode(" 新建日程 "),u.createVNode(u.unref(Zt.ElDialog),{modelValue:A.dialogVisible,"onUpdate:modelValue":J[12]||(J[12]=ie=>A.dialogVisible=ie),title:A.title,width:"30%",ref:"formRef",onClose:$},{footer:u.withCtx(()=>[u.createElementVNode("span",Que,[u.createVNode(u.unref(Zt.ElButton),{onClick:$},{default:u.withCtx(()=>[u.createTextVNode("取消")]),_:1}),u.createVNode(u.unref(Zt.ElButton),{type:"primary",onClick:L},{default:u.withCtx(()=>[u.createTextVNode("确定")]),_:1})])]),default:u.withCtx(()=>[u.createVNode(u.unref(Zt.ElForm),{model:A.form},{default:u.withCtx(()=>[u.createVNode(u.unref(Zt.ElFormItem),null,{default:u.withCtx(()=>[u.createVNode(u.unref(Zt.ElIcon),{class:"icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(yY))]),_:1}),u.createVNode(u.unref(Zt.ElInput),{modelValue:A.form.title,"onUpdate:modelValue":J[0]||(J[0]=ie=>A.form.title=ie),placeholder:`添加${A.form.type==1?"会议":"活动"}标题`,style:{width:"70%"},clearable:""},null,8,["modelValue","placeholder"]),u.createVNode(u.unref(Zt.ElSelect),{modelValue:A.form.type,"onUpdate:modelValue":J[1]||(J[1]=ie=>A.form.type=ie),style:{width:"20%"}},{default:u.withCtx(()=>[u.createVNode(u.unref(Zt.ElOption),{label:"会议",value:1}),u.createVNode(u.unref(Zt.ElOption),{label:"活动",value:2})]),_:1},8,["modelValue"])]),_:1}),u.createVNode(u.unref(Zt.ElFormItem),null,{default:u.withCtx(()=>[u.createVNode(u.unref(Zt.ElIcon),{class:"icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(vY))]),_:1}),A.timeType=="month"?(u.openBlock(),u.createElementBlock("div",Vue,[u.createVNode(u.unref(Zt.ElDatePicker),{modelValue:A.form.startDate,"onUpdate:modelValue":J[2]||(J[2]=ie=>A.form.startDate=ie),type:"date",placeholder:"开始日期",style:{width:"48%"}},null,8,["modelValue"]),Hue,u.createVNode(u.unref(Zt.ElDatePicker),{modelValue:A.form.endDate,"onUpdate:modelValue":J[3]||(J[3]=ie=>A.form.endDate=ie),type:"date",placeholder:"结束日期",style:{width:"48%"}},null,8,["modelValue"])])):u.createCommentVNode("v-if",!0),A.timeType=="week"?(u.openBlock(),u.createElementBlock("div",zue,[u.createVNode(u.unref(Zt.ElDatePicker),{modelValue:A.form.startDate,"onUpdate:modelValue":J[4]||(J[4]=ie=>A.form.startDate=ie),type:"datetime",placeholder:"开始日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"]),Uue,u.createVNode(u.unref(Zt.ElDatePicker),{modelValue:A.form.endDate,"onUpdate:modelValue":J[5]||(J[5]=ie=>A.form.endDate=ie),type:"datetime",placeholder:"结束日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"])])):u.createCommentVNode("v-if",!0),A.timeType=="day"?(u.openBlock(),u.createElementBlock("div",Wue,[u.createVNode(u.unref(Zt.ElDatePicker),{modelValue:A.form.startDate,"onUpdate:modelValue":J[6]||(J[6]=ie=>A.form.startDate=ie),type:"date",placeholder:"开始日期",style:u.normalizeStyle({width:A.allDay?"45%":"90%"})},null,8,["modelValue","style"]),A.allDay?(u.openBlock(),u.createElementBlock("div",Gue,[que,u.createVNode(u.unref(Zt.ElDatePicker),{modelValue:A.form.endDate,"onUpdate:modelValue":J[9]||(J[9]=ie=>A.form.endDate=ie),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(u.openBlock(),u.createElementBlock("div",jue,[u.createVNode(u.unref(Zt.ElTimePicker),{modelValue:A.form.startTime,"onUpdate:modelValue":J[7]||(J[7]=ie=>A.form.startTime=ie),type:"datetime",placeholder:"开始日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),Zue,u.createVNode(u.unref(Zt.ElTimePicker),{modelValue:A.form.endTime,"onUpdate:modelValue":J[8]||(J[8]=ie=>A.form.endTime=ie),type:"datetime",placeholder:"结束日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),u.createVNode(me,{modelValue:A.allDay,"onUpdate:modelValue":J[10]||(J[10]=ie=>A.allDay=ie),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])):u.createCommentVNode("v-if",!0)]),_:1}),u.createVNode(u.unref(Zt.ElFormItem),null,{default:u.withCtx(()=>[u.createVNode(u.unref(Zt.ElIcon),{class:"icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(lne))]),_:1}),u.createElementVNode("div",{class:"personBlock",onClick:u.withModifiers(oe,["stop"])},[A.form.personList.length?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:1},u.renderList(A.form.personList,(ie,G)=>(u.openBlock(),u.createElementBlock("div",{key:G,class:"nameBlock"},[u.createElementVNode("div",Yue,[Xue,u.createElementVNode("div",null,u.toDisplayString(ie.elementName),1)]),u.createVNode(u.unref(Zt.ElIcon),{class:"close",onClick:u.withModifiers(we=>X(G),["stop"])},{default:u.withCtx(()=>[u.createVNode(u.unref(CY))]),_:2},1032,["onClick"])]))),128)):(u.openBlock(),u.createElementBlock("span",Kue,"添加参与人"))])]),_:1}),u.createVNode(u.unref(Zt.ElFormItem),null,{default:u.withCtx(()=>[u.createVNode(u.unref(Zt.ElIcon),{class:"icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(Jte))]),_:1}),u.createVNode(u.unref(Zt.ElInput),{modelValue:A.form.location,"onUpdate:modelValue":J[11]||(J[11]=ie=>A.form.location=ie),placeholder:"添加地点",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),u.createCommentVNode(" 选人组件 "),u.createVNode(u.unref(mk),{modelValue:A.handList,"onUpdate:modelValue":J[13]||(J[13]=ie=>A.handList=ie),show:A.isShow,"onUpdate:show":J[14]||(J[14]=ie=>A.isShow=ie),onOk:se,multiple:!0,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},"dep-list":A.depList,"user-list":A.userList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:["user"],onHandChild:Z},null,8,["modelValue","show","dep-list","user-list"])])}}}),bbe="",tde=or(Ls(ede,[["__scopeId","data-v-1fa0e0e1"]])),nde={class:"ik-hor-step-content"},ode={class:"flex"},sde=["onClick"],rde=["id","onClick"],ade=u.defineComponent({__name:"IKHorizontalStepBar",props:{spaceNum:{type:String,default:"58px"},active:{type:Number,default:null},activeColor:{type:String,default:""},needClick:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},propsField:{type:Object,default:()=>({title:"title",value:"value"})}},emits:["click","update:active"],setup(i,{emit:a}){const d=i,p=a,v=u.ref(!1),S=u.ref(),E=u.ref(),A=u.ref(!1);u.watch(()=>d.active,le=>{let J=document.getElementById("stepItemContent"),me=document.getElementById(`stepItem${le}`),ie=document.getElementById("stepItem0");const G=me&&ie?(me==null?void 0:me.offsetLeft)-(ie==null?void 0:ie.offsetLeft):0;J&&me&&(J.scrollLeft=G>(J==null?void 0:J.clientWidth)?G-(J==null?void 0:J.offsetLeft):0)}),u.onMounted(()=>{u.nextTick(()=>{let J=document.getElementById("stepItemContent"),me=(J==null?void 0:J.scrollWidth)>(J==null?void 0:J.clientWidth);v.value=me,window.addEventListener("resize",le,!0)});const le=()=>{let J=document.getElementById("stepItemContent"),me=(J==null?void 0:J.scrollWidth)>(J==null?void 0:J.clientWidth);v.value=me}});const $=(le,J)=>{if(!d.needClick)return;p("update:active",J),p("click",le);let me=document.getElementById("stepItemContent"),ie=document.getElementById(`stepItem${J}`),G=document.getElementById("stepItem0");const we=ie&&G?(ie==null?void 0:ie.offsetLeft)-(G==null?void 0:G.offsetLeft):0;me&&ie&&(me.scrollLeft=we>(me==null?void 0:me.clientWidth)?we-(me==null?void 0:me.offsetLeft):0)},L=()=>{let le=document.getElementById("stepItemContent");le&&(le.scrollLeft=le.scrollLeft-20)},z=()=>{let le=document.getElementById("stepItemContent");le&&(le.scrollLeft=le.scrollLeft+20)},se=()=>{clearInterval(E.value);let le=document.getElementById("stepItemContent");A.value=!1,E.value=setInterval(()=>{A.value=!0,le&&(le.scrollLeft=le.scrollLeft-20)},100)},oe=()=>{clearInterval(E.value),A.value||L()},Z=()=>{clearInterval(S.value);let le=document.getElementById("stepItemContent");A.value=!1,S.value=setInterval(()=>{A.value=!0,le&&(le.scrollLeft=le.scrollLeft+20)},100)},X=()=>{clearInterval(S.value),A.value||z()};return(le,J)=>{const me=u.resolveComponent("el-icon");return u.openBlock(),u.createElementBlock("div",nde,[u.createElementVNode("div",ode,[v.value?(u.openBlock(),u.createElementBlock("div",{key:0,class:"icon-left",onMousedown:se,onMouseup:oe,onClick:L},[u.createVNode(me,{class:"operation-icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(gY),{size:"26px"})]),_:1})],32)):u.createCommentVNode("v-if",!0),u.createElementVNode("div",{class:"step-item-content",id:"stepItemContent",style:u.normalizeStyle({justifyContent:v.value?"flex-start":"center"})},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.list,(ie,G)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(`step-item ${G<=i.active?"step-item-active":""}`),key:G},[G!=0?(u.openBlock(),u.createElementBlock("span",{key:0,class:u.normalizeClass(`step-border ${G<=i.active?"step-border-greater-than":""}`),style:u.normalizeStyle({width:`${i.spaceNum.indexOf("px")!=-1?i.spaceNum:`${i.spaceNum}px`}`})},null,6)):u.createCommentVNode("v-if",!0),u.createElementVNode("span",{class:u.normalizeClass(`step-num ${G===i.active?"step-num-active":G<i.active?"step-num-greater-than":""}`),onClick:we=>$(ie,G),style:u.normalizeStyle({backgroundColor:G===i.active&&i.activeColor?i.activeColor:"",cursor:ie&&ie.disabled?"not-allowed":i.needClick?"pointer":"context-menu"})},[u.renderSlot(le.$slots,"icon",{data:{item:ie,index:G}},()=>[u.createTextVNode(u.toDisplayString(G+1),1)],!0)],14,sde),u.createElementVNode("span",{id:`stepItem${G}`,class:u.normalizeClass(`step-label ${i.active===G?"step-label-active":G<i.active?"step-label-greater-than":""} step-item-${G}`),style:u.normalizeStyle({color:G===i.active&&i.activeColor?i.activeColor:"",cursor:ie&&ie.disabled?"not-allowed":i.needClick?"pointer":"context-menu"}),onClick:we=>$(ie,G)},u.toDisplayString(ie[i.propsField.title]),15,rde)],2))),128))],4),v.value?(u.openBlock(),u.createElementBlock("div",{key:1,class:"icon-right",onMousedown:Z,onMouseup:X,onClick:z},[u.createVNode(me,{class:"operation-icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(bY))]),_:1})],32)):u.createCommentVNode("v-if",!0)])])}}}),vbe="",lde=or(Ls(ade,[["__scopeId","data-v-f390d7ac"]])),Ac=(i,a)=>{var S,E,A,$;const d=(S=i==null?void 0:i.response)!=null&&S.data?BJ((A=(E=i==null?void 0:i.response)==null?void 0:E.data)==null?void 0:A.suffix):(($=i.raw)==null?void 0:$.type)||BJ(i[a.suffix]),p=d==null?void 0:d.toLowerCase(),v={sheet:"excel",excel:"excel",zip:"zip","application/x-compressed":"zip",image:"image",video:"video",audio:"audio",pdf:"pdf",text:"txt",txt:"txt",word:"word",ppt:"ppt",exe:"exe",json:"json"};for(let L in v)if(typeof p=="string"&&(p.includes(L)||p===L))return v[L];return"unknown"},ide={".doc":"word",".docx":"word",".docxf":"word",".docm":"word",".dot":"word",".dotm":"word",".dotx":"word",".epub":"word",".fodt":"word",".htm":"word",".html":"word",".mht":"word",".odt":"word",".ott":"word",".rtf":"word",".djvu":"word",".oxps":"word",".oform":"word",".fb2":"word",".xml":"word",".xps":"word",".csv":"excel",".xls":"excel",".xlsx":"excel",".fods":"excel",".ods":"excel",".ots":"excel",".xlsb":"excel",".xlsm":"excel",".xlt":"excel",".xltm":"excel",".xltx":"excel",".fodp":"ppt",".odp":"ppt",".otp":"ppt",".pot":"ppt",".potm":"ppt",".potx":"ppt",".pps":"ppt",".ppsm":"ppt",".ppsx":"ppt",".ppt":"ppt",".pptm":"ppt",".pptx":"ppt",".zip":"zip",".rar":"zip",".7z":"zip",".apz":"zip",".ar":"zip",".bz":"zip",".car":"zip",".dar":"zip",".cpgz":"zip",".f":"zip",".ha":"zip",".hbc":"zip",".hbc2":"zip",".hbe":"zip",".hpk":"zip",".hyp":"zip",".png":"image",".jpg":"image",".jpeg":"image",".bmp":"image",".gif":"image",".webp":"image",".psd":"image",".svg":"image",".tiff":"image",".avi":"video",".wmv":"video",".mpeg":"video",".mp4":"video",".mpm4v":"video",".mov":"video",".asf":"video",".flv":"video",".f4v":"video",".rmvb":"video",".rm":"video",".3gp":"video",".vob":"video",".txt":"txt",".pdf":"pdf"},BJ=i=>{const a=i==null?void 0:i.toLocaleLowerCase(),d=a!=null&&a.startsWith(".")?a:`.${a}`;return d&&ide[d]||"unknow"},cde=i=>{let a="",d=["doc","docx"],p=["xls","xlsx"],v=["ppt","pptx"],S=["pdf"];return d.includes(i)&&(a="word"),p.includes(i)&&(a="cell"),v.includes(i)&&(a="slide"),S.includes(i)&&(a="text-pdf"),a},ude={key:0,t:"1686300059786",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7671",width:"200",height:"200"},dde=[u.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#50CD89","p-id":"7672"},null,-1),u.createElementVNode("path",{d:"M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",fill:"#FFF7F7","p-id":"7673"},null,-1),u.createElementVNode("path",{d:"M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",fill:"#FFFFFF","p-id":"7674"},null,-1),u.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)],fde={key:1,t:"1686301531714",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9067",width:"200",height:"200"},mde=[u.createElementVNode("path",{d:"M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",fill:"#FFA621","p-id":"9068"},null,-1),u.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"9069"},null,-1)],hde={key:2,t:"1686300141125",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8137",width:"200",height:"200"},pde=[u.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",fill:"#F1416C","p-id":"8138"},null,-1),u.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8139"},null,-1)],gde={key:3,t:"1686300157181",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8292",width:"200",height:"200"},bde=[u.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",fill:"#029EF7","p-id":"8293"},null,-1),u.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8294"},null,-1)],yde={key:4,t:"1686300180947",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8447",width:"200",height:"200"},vde=[u.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",fill:"#F1416C","p-id":"8448"},null,-1),u.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8449"},null,-1)],Cde={key:5,t:"1686300195363",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8602",width:"200",height:"200"},wde=[u.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",fill:"#029EF7","p-id":"8603"},null,-1),u.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8604"},null,-1)],_de={key:6,t:"1686300209288",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8757",width:"200",height:"200"},Sde=[u.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",fill:"#FFA621","p-id":"8758"},null,-1),u.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8759"},null,-1)],xde={key:7,t:"1686300225262",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8912",width:"200",height:"200"},Ede=[u.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",fill:"#FFA621","p-id":"8913"},null,-1),u.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8914"},null,-1)],kde={key:8,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},Ade=[u.createElementVNode("path",{d:"M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",fill:"#00BD76","p-id":"4337"},null,-1),u.createElementVNode("path",{d:"M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",fill:"#FFFFFF",opacity:".9","p-id":"4338"},null,-1),u.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)],Tde={key:9,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},Dde=[u.createElementVNode("path",{d:"M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z",fill:"#8199AF","p-id":"8002"},null,-1),u.createElementVNode("path",{d:"M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",fill:"#617F9B","p-id":"8003"},null,-1),u.createElementVNode("path",{d:"M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",fill:"#FFFFFF",opacity:".5","p-id":"8004"},null,-1),u.createElementVNode("path",{d:"M344 862.4h-100.8c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h100.8c4.8 0 9.6 4.8 9.6 11.2 0 6.4-4.8 9.6-9.6 9.6h-94.4v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h94.4c4.8 0 9.6 4.8 9.6 9.6 0 6.4-4.8 11.2-9.6 11.2z m193.6 1.6c-4.8 0-8 0-9.6-3.2l-59.2-80-60.8 80c-1.6 3.2-4.8 3.2-8 3.2-6.4 0-11.2-4.8-11.2-11.2 0-1.6 0-4.8 1.6-6.4l62.4-81.6-57.6-78.4c-1.6-1.6-3.2-3.2-3.2-6.4 0-4.8 4.8-11.2 12.8-11.2 3.2 0 6.4 1.6 8 4.8l56 73.6 54.4-73.6c1.6-3.2 4.8-4.8 9.6-4.8s11.2 4.8 11.2 11.2c0 3.2 0 4.8-1.6 6.4l-57.6 76.8 60.8 83.2c1.6 1.6 3.2 4.8 3.2 6.4 0 6.4-6.4 11.2-11.2 11.2z m171.2-1.6h-99.2c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h99.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-92.8v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h92.8c6.4 0 11.2 4.8 11.2 9.6 0 6.4-4.8 11.2-11.2 11.2z",fill:"#FFFFFF","p-id":"8005"},null,-1)],Nde={key:10,t:"1714099890925",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2271",width:"200",height:"200"},Rde=[u.createElementVNode("path",{d:"M227.555556 28.444444h389.404444a19.911111 19.911111 0 0 1 14.734222 6.542223l271.132445 298.211555a28.444444 28.444444 0 0 1 7.395555 19.143111V938.666667a56.888889 56.888889 0 0 1-56.888889 56.888889H227.555556a56.888889 56.888889 0 0 1-56.888889-56.888889V85.333333a56.888889 56.888889 0 0 1 56.888889-56.888889z",fill:"#0DD59D","p-id":"2272"},null,-1),u.createElementVNode("path",{d:"M625.777778 30.492444a19.911111 19.911111 0 0 1 5.916444 4.465778l271.132445 298.24a28.444444 28.444444 0 0 1 5.176889 8.135111H682.666667a56.888889 56.888889 0 0 1-56.888889-56.888889V30.492444z",fill:"#FFFFFF","fill-opacity":".65","p-id":"2273"},null,-1),u.createElementVNode("path",{d:"M396.288 645.176889c0 5.461333-0.796444 10.865778-2.389333 16.156444-1.592889 5.319111-4.266667 10.069333-7.964445 14.222223-3.697778 4.181333-8.647111 7.509333-14.791111 10.012444a60.871111 60.871111 0 0 1-22.869333 3.754667c-15.160889 0-26.851556-3.982222-35.043556-11.946667-8.192-7.964444-12.288-19.683556-12.288-35.157333v-10.012445h21.617778v6.826667c0 4.721778 0.369778 9.045333 1.137778 12.970667a28.074667 28.074667 0 0 0 3.982222 10.24 18.773333 18.773333 0 0 0 7.964444 6.712888c3.413333 1.592889 7.765333 2.389333 13.084445 2.389334 9.870222 0 16.64-2.645333 20.366222-7.964445 3.697778-5.290667 5.575111-12.430222 5.575111-21.390222v-118.784h21.617778v121.969778z m44.145778 3.413333c0.142222 4.266667 1.137778 7.850667 2.958222 10.808889a20.593778 20.593778 0 0 0 7.168 7.054222c2.958222 1.763556 6.286222 3.015111 10.012444 3.754667 3.697778 0.768 7.537778 1.137778 11.491556 1.137778 3.043556 0 6.229333-0.227556 9.557333-0.682667 3.328-0.455111 6.4-1.28 9.216-2.503111a17.294222 17.294222 0 0 0 6.940445-5.347556 14.250667 14.250667 0 0 0 2.730666-8.988444 12.885333 12.885333 0 0 0-5.688888-11.377778c-3.783111-2.56-8.533333-4.664889-14.222223-6.257778a232.561778 232.561778 0 0 0-18.545777-4.323555 96.227556 96.227556 0 0 1-18.545778-5.461333 38.4 38.4 0 0 1-14.222222-9.898667c-3.783111-4.266667-5.688889-10.154667-5.688889-17.749333a28.16 28.16 0 0 1 3.982222-15.246223c2.645333-4.266667 6.058667-7.68 10.24-10.353777 4.181333-2.645333 8.874667-4.608 14.108444-5.916445 5.233778-1.28 10.439111-1.934222 15.587556-1.934222 6.684444 0 12.8 0.568889 18.432 1.706667 5.603556 1.137778 10.581333 3.128889 14.904889 5.916444 4.323556 2.816 7.765333 6.599111 10.353778 11.377778 2.56 4.778667 4.096 10.752 4.551111 17.863111h-19.342223a19.569778 19.569778 0 0 0-2.958222-9.443556 19.370667 19.370667 0 0 0-6.371555-6.030222 28.956444 28.956444 0 0 0-8.533334-3.299555 43.918222 43.918222 0 0 0-9.443555-1.024c-2.872889 0-5.802667 0.227556-8.760889 0.682666a29.496889 29.496889 0 0 0-8.078222 2.389334 16.270222 16.270222 0 0 0-5.916445 4.551111 11.463111 11.463111 0 0 0-2.275555 7.395555c0 3.356444 1.166222 6.115556 3.527111 8.305778a28.16 28.16 0 0 0 8.988444 5.461333c3.640889 1.422222 7.736889 2.673778 12.288 3.640889 4.551111 0.995556 9.102222 1.991111 13.653334 3.072 4.835556 1.080889 9.585778 2.360889 14.222222 3.868445 4.636444 1.536 8.732444 3.527111 12.288 6.030222s6.456889 5.660444 8.647111 9.443555a27.733333 27.733333 0 0 1 3.299555 14.108445c0 7.111111-1.479111 13.056-4.437333 17.749333a34.702222 34.702222 0 0 1-11.605333 11.377778 48.497778 48.497778 0 0 1-16.156445 6.030222c-5.973333 1.137778-11.946667 1.706667-17.863111 1.706667a82.773333 82.773333 0 0 1-18.659555-2.048 45.795556 45.795556 0 0 1-15.701334-6.712889 34.218667 34.218667 0 0 1-10.922666-12.288 42.581333 42.581333 0 0 1-4.551111-18.545778h19.342222z m116.053333-21.617778c0 7.111111 0.938667 13.482667 2.844445 19.000889 1.905778 5.546667 4.522667 10.183111 7.850666 13.880889a34.076444 34.076444 0 0 0 25.941334 11.491556 34.076444 34.076444 0 0 0 25.941333-11.491556c3.328-3.697778 5.973333-8.334222 7.850667-13.880889 1.905778-5.518222 2.844444-11.861333 2.844444-19.000889 0-7.111111-0.938667-13.454222-2.844444-19.000888a41.016889 41.016889 0 0 0-7.850667-13.994667 33.422222 33.422222 0 0 0-11.719111-8.647111 34.872889 34.872889 0 0 0-14.222222-2.958222c-5.006222 0-9.756444 0.995556-14.222223 2.958222-4.465778 1.991111-8.391111 4.835556-11.719111 8.647111-3.328 3.811556-5.973333 8.476444-7.850666 13.994667-1.905778 5.546667-2.844444 11.889778-2.844445 19.000888z m-20.48 0c0-8.647111 1.223111-16.725333 3.640889-24.234666a54.897778 54.897778 0 0 1 10.922667-19.569778c4.835556-5.518222 10.837333-9.898667 17.976889-13.084444 7.111111-3.185778 15.331556-4.778667 24.576-4.778667 9.386667 0 17.635556 1.592889 24.689777 4.778667 7.054222 3.185778 12.999111 7.566222 17.863111 13.084444 4.835556 5.546667 8.504889 12.060444 10.922667 19.569778 2.417778 7.509333 3.640889 15.587556 3.640889 24.234666 0 8.647111-1.223111 16.696889-3.640889 24.120889-2.417778 7.452444-6.058667 13.937778-10.922667 19.456-4.835556 5.546667-10.808889 9.870222-17.863111 12.970667-7.054222 3.128889-15.274667 4.664889-24.689777 4.664889-9.244444 0-17.436444-1.536-24.576-4.664889a50.261333 50.261333 0 0 1-17.976889-12.970667 55.068444 55.068444 0 0 1-10.922667-19.456 77.283556 77.283556 0 0 1-3.640889-24.120889z m136.988445-58.936888h18.204444v18.659555h0.455111c8.049778-14.250667 20.764444-21.390222 38.229333-21.390222 7.736889 0 14.193778 1.080889 19.342223 3.185778 5.148444 2.133333 9.329778 5.091556 12.515555 8.874666 3.185778 3.811556 5.404444 8.305778 6.712889 13.539556 1.28 5.233778 1.934222 11.036444 1.934222 17.408v77.368889h-19.342222v-79.644445c0-7.281778-2.133333-13.027556-6.371555-17.294222-4.266667-4.266667-10.097778-6.371556-17.521778-6.371555-5.916444 0-11.036444 0.910222-15.36 2.730666a28.814222 28.814222 0 0 0-10.808889 7.736889 33.336889 33.336889 0 0 0-6.485333 11.719111c-1.422222 4.494222-2.161778 9.386667-2.161778 14.677334v66.446222h-19.342222V568.035556z",fill:"#FFFFFF","p-id":"2274"},null,-1)],Ode={key:11,t:"1686300037564",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7515",width:"200",height:"200"},Bde=[u.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#029EF7","p-id":"7516"},null,-1),u.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),u.createElementVNode("path",{d:"M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",fill:"#FFFFFF","p-id":"7518"},null,-1)],sL=u.defineComponent({__name:"FileIcon",props:{type:{type:String,default:"unknow"},file:{type:Object,default:()=>null},fields:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})}},setup(i){const a=i,d=u.computed(()=>a.file?Ac(a.file,a.fields):a.type);return(p,v)=>d.value==="image"?(u.openBlock(),u.createElementBlock("svg",ude,dde)):d.value==="zip"?(u.openBlock(),u.createElementBlock("svg",fde,mde)):d.value==="ppt"?(u.openBlock(),u.createElementBlock("svg",hde,pde)):d.value==="word"?(u.openBlock(),u.createElementBlock("svg",gde,bde)):d.value==="pdf"?(u.openBlock(),u.createElementBlock("svg",yde,vde)):d.value==="txt"?(u.openBlock(),u.createElementBlock("svg",Cde,wde)):d.value==="audio"?(u.openBlock(),u.createElementBlock("svg",_de,Sde)):d.value==="video"?(u.openBlock(),u.createElementBlock("svg",xde,Ede)):d.value==="excel"?(u.openBlock(),u.createElementBlock("svg",kde,Ade)):d.value==="exe"?(u.openBlock(),u.createElementBlock("svg",Tde,Dde)):d.value==="json"?(u.openBlock(),u.createElementBlock("svg",Nde,Rde)):(u.openBlock(),u.createElementBlock("svg",Ode,Bde))}}),Mde=["onClick"],Ide={class:"fileName simple"},Pde=["onClick"],Fde={class:"text"},$de={class:"fileName"},Lde={class:"size"},Vde=u.defineComponent({__name:"IkPreviewFile",props:{list:{type:Array,default:()=>[]},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},field:{required:!0,type:Object,default:()=>({})},iconSize:{type:Number,default:40},showBg:{type:Boolean,default:!0},width:{type:Number||String,default:"100%"},iconHoverShow:{type:Boolean,default:!1},isOnlyOfficePreview:{type:Boolean,default:!0},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},jwtToken:{type:String,default:""},simple:{type:Boolean,default:!1}},setup(i){const a=i,{cLoadUrl:d,cOnlyofficeConfig:p}=l7(a),v=u.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...a.field})),S=u.ref({}),E=u.ref(!1),A=se=>{var oe,Z;S.value={...se,name:se.name,url:N3(d.value,se.url||((Z=(oe=se==null?void 0:se.response)==null?void 0:oe.data)==null?void 0:Z.id)||(se==null?void 0:se.id))},E.value=!0},$=se=>{Io.ikFile.downloadFile(N3(d.value,se[v.value.url]||se.attachmentId||se.id),se[v.value.name]||se.attachmentName)},L=u.computed(()=>Io.paramType.isNumber(a.width)?`${a.width}px`:a.width),z=u.computed(()=>a.list.map(se=>({...se,name:se[v.value.name]||se.attachmentName,size:se[v.value.size]||se.fileSize||se.attachmentSize,suffix:se[v.value.suffix]||se.attachmentSuffix})));return(se,oe)=>{var X,le,J;const Z=u.resolveComponent("tmplate");return u.openBlock(),u.createElementBlock(u.Fragment,null,[(X=i.list)!=null&&X.length?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[i.simple?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(z.value,(me,ie)=>(u.openBlock(),u.createElementBlock("div",{class:"iking-privew-annex simple",onClick:G=>A(me),style:u.normalizeStyle({width:L.value})},[u.createElementVNode("div",Ide,u.toDisplayString(me.name),1),u.createElementVNode("div",{class:u.normalizeClass(["flex flex-center",{"hover-show":i.iconHoverShow}])},[u.createVNode(u.unref(sr),{name:"iksvg_daochu",onClick:u.withModifiers(G=>$(me),["stop"]),size:20,active:""},null,8,["onClick"]),u.createVNode(u.unref(sr),{name:"iksvg_yulan",size:20,active:""}),u.renderSlot(se.$slots,"operation",{data:{...me,findex:ie}})],2)],12,Mde))),256)):(u.openBlock(),u.createBlock(Z,{key:1},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(z.value,(me,ie)=>{var G;return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["iking-privew-annex",{"is-bg":i.showBg}]),key:ie,style:u.normalizeStyle({marginBottom:ie==((G=i.list)==null?void 0:G.length)-1?"0":"10px",width:L.value})},[u.createElementVNode("div",{class:"file-card",onClick:we=>A(me)},[u.createVNode(sL,{file:me,style:u.normalizeStyle({height:`${i.iconSize}px`}),class:"ikui-w-auto",fields:v.value},null,8,["file","style","fields"]),u.createElementVNode("div",Fde,[u.createElementVNode("div",$de,u.toDisplayString(me.name),1),u.createElementVNode("div",Lde,u.toDisplayString(u.unref(Nne)(me.size)),1)]),u.createElementVNode("div",{class:u.normalizeClass(["flex flex-center",{"hover-show":i.iconHoverShow}])},[u.createVNode(u.unref(sr),{name:"iksvg_daochu",onClick:u.withModifiers(we=>$(me),["stop"]),bg:i.showBg,size:i.showBg?"default":20,title:"下载"},null,8,["onClick","bg","size"]),u.createVNode(u.unref(sr),{name:"iksvg_yulan",bg:i.showBg,size:i.showBg?"default":20,title:"预览"},null,8,["bg","size"]),u.renderSlot(se.$slots,"operation",{data:{...me,findex:ie}})],2)],8,Pde)],6)}),128))]),_:3}))],64)):u.createCommentVNode("v-if",!0),u.createVNode(u.unref(rL),{show:E.value,"onUpdate:show":oe[0]||(oe[0]=me=>E.value=me),loadUrl:u.unref(d),file:S.value,onlyofficeServer:((le=u.unref(p))==null?void 0:le.serverUrl)||i.onlyofficeServer,onlyOfficeConfig:u.unref(p),onlyOfficeAccept:((J=u.unref(p))==null?void 0:J.accept)||i.onlyOfficeAccept},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig","onlyOfficeAccept"])],64)}}}),Qbe="",j7=or(Vde),Hde=u.defineComponent({__name:"IkPreviewFileDialog",props:u.mergeModels({file:{type:Object,default:()=>[]},loadUrl:{type:String,default:""},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},field:{type:Object,default:()=>({})}},{show:{default:!1},showModifiers:{}}),emits:["update:show"],setup(i){const a=i,d=u.useModel(i,"show"),p=u.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize",...a.field})),v=u.ref(null),S=u.ref(null),E=u.reactive({image:!1,office:!1,video:!1}),A=L=>{var z,se,oe,Z,X,le,J;try{const me=((z=L==null?void 0:L.response)==null?void 0:z.data)||L,ie=me[p.value.url]||(me==null?void 0:me.id)||me.attachmentId,G=(se=me[p.value.suffix]||me.attachmentSuffix)==null?void 0:se.toLowerCase(),we=me[p.value.name]||(me==null?void 0:me.attachmentName)||(me==null?void 0:me.originName);if(S.value={...L,name:L[p.value.name],url:N3(a.loadUrl,ie)},L&&Ac(L,p.value)==="image"){E.image=!0;return}else if(L&&Ac(L,p.value)==="video"){E.video=!0,console.log("modal.video = true;",E.video);return}else if((((oe=a.onlyOfficeConfig)==null?void 0:oe.accept)||a.onlyOfficeAccept).includes(G)){E.office=!0,v.value={...a.onlyOfficeConfig,editorConfig:{...((Z=a.onlyOfficeConfig)==null?void 0:Z.editorConfig)||{},customization:{...((le=(X=a.onlyOfficeConfig)==null?void 0:X.editorConfig)==null?void 0:le.customization)||{},review:{reviewDisplay:"final"}}},document:{key:Io.buildUUID(),title:we,url:N3(a.loadUrl,ie),fileType:G,...((J=a.onlyOfficeConfig)==null?void 0:J.document)||{}},documentType:cde(G)};return}}catch(me){console.info("预览错误: ",me)}};u.watch([d,a.file],([L,z])=>{L&&u.nextTick(()=>{A(a.file)})});const $=()=>{d.value=!1,E.office=!1,E.image=!1,E.video=!1,S.value=null};return(L,z)=>{var oe,Z;const se=u.resolveComponent("el-image-viewer");return d.value?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[(oe=S.value)!=null&&oe.url&&E.image?(u.openBlock(),u.createBlock(se,{key:0,onClose:z[0]||(z[0]=X=>$()),ref:"previewImgRef","url-list":[(Z=S.value)==null?void 0:Z.url],teleported:""},null,8,["url-list"])):u.createCommentVNode("v-if",!0),u.createCommentVNode(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),u.createCommentVNode(" 文档类 "),u.createVNode(u.unref(UJ),{modelValue:E.office,"onUpdate:modelValue":z[1]||(z[1]=X=>E.office=X),draggable:"","no-footer":"","no-header":"",fullscreen:"","show-close-bg":"","destroy-on-close":"","close-on-click-modal":"","close-on-press-escape":!1,"append-to-body":"",onClose:$,"modal-class":"ik-only-preview-dialog"},{default:u.withCtx(()=>{var X;return[u.createVNode(u.unref(cee),{"config-options":v.value,"document-server-url":((X=i.onlyOfficeConfig)==null?void 0:X.serverUrl)||i.onlyofficeServer},null,8,["config-options","document-server-url"])]}),_:1},8,["modelValue"])],64)):u.createCommentVNode("v-if",!0)}}}),Jbe="",rL=or(Hde),zde="data:image/webp;base64,UklGRnoEAABXRUJQVlA4WAoAAAAwAAAALwAALwAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBImAAAAA2AYm3bsuhFm7u72wZoTrbGIcoKaKyAROJQbQmW2IVb/WkW3ZmPd3ymRMQEwJfV56QRo5pHErkUkFdQWRJpeGW6SoL9EvaWxAdbAeiVd5gyAK5NAdOtv4uNfsT21TUukBVjgFubBOQS+Ip7G/k2LpatkF2hAuBI5siAdsL2j3DHQrJ7NKDbUIyOj3bhqADBsgNPUqUlgncLVlA4IOwBAABwDQCdASowADAAPm0yk0ckIyGhJzgMkIANiWwArDM9tzexcZ3vwYZdKHIB749Ap5gP1E/YD34/QB6AH+A9F//S+w1z2/sz/5DzdDABM7ldHg1iMkeWX8LH9T1VzicAWGJgnNq4e/5P/NObJOBUhFC8dPnhmAD+9wGzP9Zfeg5ENi90xn4awZvrlCLnfwvZX//s4u6n2Pa2TF/r8wh0GtdNNJIBMRbrMaCBwyl6z86DqQgvpixbIdOVbwZFf/7KjC+uzJ5nNRyJ1Rpab8pIf2m1+SBOfX9w7EFXUErK8NSCsePMPazMXKH5y9Wl+nfiSrmsv079Fk6NkDF3Dxr+C+Rp4UdG/f3kP8PZfd/FyRupWURiDOrAjLamuF4OPo2BylwD7ulmdgDn4BEMXuvpYCACy4yCVjgsOzqToG2rSfJOtxy6Hh1/B2gu7X1MdJpHsdHdUrlRzTLKyV3wZG5a64SKKB2/QGk8IRZT0veUdDeo579/WyTU3ujQZeKNBS9ANlv1muyN9Kf5bm1f3UoPm/KnDkqf/1f2jf6aQJ7IYNod25fVfhRX+l1u9qBzs/bVezF7ZgC2LOuuJl1Tvwgeujpg9Uc/m0A9X878DzEkgxP/sPGviOfCElM1J/Kr3TTCwCkfW+K3oZuMB7HAAAA=",Ude=i=>(u.pushScopeId("data-v-cbfa5eb9"),i=i(),u.popScopeId(),i),Wde={class:"ik-flie-list"},jde={class:"name"},Zde={key:1},Gde=["src"],qde={class:"file-icon"},Kde={class:"file-name-loading"},Yde={class:"file-name"},Xde={key:0},Qde={key:0,class:"file-size"},Jde={class:"name"},efe={class:"file-name-loading"},tfe={class:"file-name"},nfe={class:"file-size"},ofe={class:"operate-btn"},sfe={class:"card"},rfe={class:"title"},afe=Ude(()=>u.createElementVNode("img",{src:zde,class:"w-[48px] h-[48px]"},null,-1)),lfe={class:"ik-flie-list"},ife={class:"name"},cfe={key:1},ufe=["src"],dfe={class:"file-icon"},ffe={class:"file-name-loading"},mfe={class:"file-name"},hfe={key:0},pfe={key:0,class:"file-size"},gfe={key:0},bfe=u.defineComponent({__name:"index",props:u.mergeModels({showIcon:{type:Boolean,default:!0},title:{type:String,default:"上传文件"},action:{type:String,default:""},type:{type:String,default:"button"},headers:{type:Object,default:()=>({})},loadUrl:{type:String,default:""},limit:{type:Number,default:1},size:{type:Number,default:50},accept:{type:String,default:"*"},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""},limitText:{type:String,default:""},defaultFileds:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize"})},preview:{type:Boolean,default:!1},customIconData:{type:Object,default:()=>({})},customIconFields:{type:Object,default:()=>({type:"type",icon:"icon"})},disabled:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},imageMode:{type:Boolean,default:!1},isOnlyOfficePreview:{type:Boolean,default:!1},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},jwtToken:{type:String,default:""}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:u.mergeModels(["delete","exceed","success","error","outSize"],["update:modelValue"]),setup(i,{emit:a}){const d=i,p=a,v=u.useModel(i,"modelValue"),E={...{name:"name",url:"url",suffix:"suffix",size:"size"},...d.defaultFileds},{cLoadUrl:A,cUploadUrl:$,cOnlyofficeConfig:L}=l7(d),z=u.computed(()=>d.size),se=u.ref(null),oe=u.ref([]),Z=u.ref({}),X=u.ref(!1),le=he=>{const St=he.size/1024/1024;return St<z.value?!0:(p("outSize"),Zt.ElMessage({message:`上传文件大小(${St.toFixed(4)}MB)超出允许最大值(${d.size}MB),请重新选择`,type:"warning",showClose:!0,duration:5e3}),!1)},J=(he,St)=>{var F;he.size/1024/1024<z.value||u.nextTick(()=>{v.value.pop()}),d.accept!=="*"&&!d.accept.split(",").includes((F=he==null?void 0:he.raw)==null?void 0:F.type)&&!d.accept.split(",").includes(`.${he.name.split(".").pop()}`)&&(Zt.ElMessage({message:`不允许的上传文件格式(${he.name}),请重新选择`,type:"warning",showClose:!0,duration:5e3}),u.nextTick(()=>{v.value.pop()}))},me=()=>!1,ie=(he,St)=>{var Ot,Ze;he.status="ready",St!==void 0&&oe.value.splice(St,1),(Ot=se.value)==null||Ot.handleStart(he.raw),(Ze=se.value)==null||Ze.submit()},G=(he,St)=>{var jn,Tt;const Ot=v.value.length,Ze=d.limit-Ot;let F=0;for(;F<Ze&&F<he.length;)(jn=se.value)==null||jn.handleStart(he[F]),(Tt=se.value)==null||Tt.submit(),F++;Zt.ElMessage({message:(d==null?void 0:d.limitText)||`最大可上传${d.limit}个文件,已忽略超出文件`,type:"warning",showClose:!0,duration:5e3}),p("exceed",he)},we=(he,St,Ot)=>{p("success",he,St,Ot)},wt=(he,St,Ot)=>{oe.value.push(St),p("error",he,St,Ot)},Ve=he=>{var St,Ot;Z.value={...he,name:he[E.name],url:N3(A.value,he[E.url]||((Ot=(St=he==null?void 0:he.response)==null?void 0:St.data)==null?void 0:Ot.id))},X.value=!0},K=he=>{Io.ikFile.downloadByOnlineUrl(he[E.url],he[E.name])},De=(he,St=!1)=>{var Ot;(Ot=se.value)==null||Ot.abort(he)},tt=he=>{var St,Ot;try{he.status!=="success"&&De(he),(St=se.value)==null||St.handleRemove(he),v.value=v.value.filter(Ze=>Ze.uid!==he.uid),p("delete",he)}catch(Ze){(Ot=se.value)==null||Ot.handleRemove(he),v.value=v.value.filter(F=>F.uid!==he.uid),p("delete",he),console.error(Ze)}},lt=(he,St)=>{oe.value.splice(St,1)},Ge=u.computed(()=>v.value.length>=d.limit||d.disabled);return(he,St)=>{var Ot;return u.openBlock(),u.createElementBlock(u.Fragment,null,[i.preview?u.createCommentVNode("v-if",!0):(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[i.type==="button"?(u.openBlock(),u.createBlock(u.unref(Zt.ElUpload),u.mergeProps({key:0,class:"ik-file-upload"},he.$attrs,{accept:i.accept,action:u.unref($),"file-list":v.value,"onUpdate:fileList":St[0]||(St[0]=Ze=>v.value=Ze),ref_key:"refUpload",ref:se,"before-upload":le,"before-remove":me,"on-exceed":G,"on-change":J,multiple:i.multiple,headers:i.headers,limit:i.limit,"on-success":we,"on-error":wt}),{trigger:u.withCtx(()=>[he.$slots.trigger?u.renderSlot(he.$slots,"trigger",{key:0},void 0,!0):(u.openBlock(),u.createBlock(u.unref(Zt.ElButton),{key:1,disabled:Ge.value},u.createSlots({default:u.withCtx(()=>[u.createTextVNode(" "+u.toDisplayString(i.title),1)]),_:2},[i.showIcon?{name:"icon",fn:u.withCtx(()=>[u.createVNode(u.unref(sr),{name:"iksvg_daoru",disabled:Ge.value},null,8,["disabled"])]),key:"0"}:void 0]),1032,["disabled"]))]),file:u.withCtx(({file:Ze})=>[u.createElementVNode("div",Wde,[u.createElementVNode("div",jde,[!he.$slots.fileIcon&&(!i.customIconData[u.unref(Ac)(Ze,E)]||!i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.icon])?(u.openBlock(),u.createBlock(sL,{key:0,type:u.unref(Ac)(Ze,E)},null,8,["type"])):!he.$slots.fileIcon&&i.customIconData[u.unref(Ac)(Ze,E)]&&i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.icon]?(u.openBlock(),u.createElementBlock("div",Zde,[i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.type]==="img"?(u.openBlock(),u.createElementBlock("img",{key:0,src:i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,Gde)):(u.openBlock(),u.createElementBlock("span",{key:1,class:u.normalizeClass([i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.icon],"file-icon-size"])},null,2))])):u.createCommentVNode("v-if",!0),u.createElementVNode("div",qde,[u.renderSlot(he.$slots,"fileIcon",{file:Ze},void 0,!0)]),u.createElementVNode("div",Kde,[u.createElementVNode("p",Yde,[u.createTextVNode(u.toDisplayString(Ze[E.name]||Ze.name)+" ",1),Ze.percentage&&Ze.status==="uploading"?(u.openBlock(),u.createElementBlock("span",Xde,"("+u.toDisplayString(Ze.percentage)+"%)",1)):u.createCommentVNode("v-if",!0)]),Ze.status==="success"?(u.openBlock(),u.createElementBlock("p",Qde,u.toDisplayString(u.unref(jF)(Ze.size/1024/1024))+"MB ",1)):u.createCommentVNode("v-if",!0),Ze.percentage&&Ze.status==="uploading"?(u.openBlock(),u.createBlock(u.unref(Zt.ElProgress),{key:1,"text-inside":"",percentage:Ze.percentage,color:"var(--el-color-primary)","show-text":!1},null,8,["percentage"])):u.createCommentVNode("v-if",!0)])]),u.createElementVNode("div",null,[Ze.status==="success"?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createVNode(u.unref(sr),{onClick:F=>Ve(Ze),name:"iksvg_yulan",title:"预览",bg:"",size:"default"},null,8,["onClick"]),u.createVNode(u.unref(sr),{onClick:F=>tt(Ze),error:"",name:"iksvg_shanchu",title:"删除",bg:"",size:"default"},null,8,["onClick"])],64)):(u.openBlock(),u.createBlock(u.unref(sr),{key:1,onClick:F=>tt(Ze),error:"",name:"iksvg_guanbi",size:"default",bg:"",title:"取消上传"},null,8,["onClick"]))])])]),default:u.withCtx(()=>{var Ze;return[!i.preview&&i.tip?(u.openBlock(),u.createBlock(u.unref(Zt.ElTooltip),{key:0,effect:"dark",content:d.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:u.withCtx(()=>[u.createVNode(u.unref(Zt.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(xY))]),_:1})]),_:1},8,["content"])):u.createCommentVNode("v-if",!0),(Ze=oe.value)!=null&&Ze.length?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:1},u.renderList(oe.value,(F,jn)=>(u.openBlock(),u.createElementBlock("div",{class:"ik-error-flie-list",key:F.uid},[u.createElementVNode("div",Jde,[u.createVNode(u.unref(Zt.ElIcon),{size:32,class:"info",style:{"vertical-align":"middle"}},{default:u.withCtx(()=>[u.createVNode(u.unref(dne))]),_:1}),u.createElementVNode("div",efe,[u.createElementVNode("p",tfe,u.toDisplayString(F[E.name]||F.name),1),u.createElementVNode("p",nfe,u.toDisplayString(u.unref(jF)(F.size/1024/1024))+"MB ",1)])]),u.withDirectives(u.createElementVNode("div",ofe,[u.createVNode(u.unref(Zt.ElIcon),{style:{"vertical-align":"middle"},onClick:Tt=>ie(F,jn),title:"重新上传",class:"primary"},{default:u.withCtx(()=>[u.createVNode(u.unref(WF))]),_:2},1032,["onClick"]),u.createVNode(u.unref(Zt.ElIcon),{class:"error",onClick:Tt=>lt(F,jn),title:"删除"},{default:u.withCtx(()=>[u.createVNode(u.unref(UF))]),_:2},1032,["onClick"])],512),[[u.vShow,(F==null?void 0:F.status)==="fail"]])]))),128)):u.createCommentVNode("v-if",!0)]}),_:3},16,["accept","action","file-list","multiple","headers","limit"])):(u.openBlock(),u.createBlock(u.unref(Zt.ElUpload),u.mergeProps({key:1,"file-list":v.value,"onUpdate:fileList":St[1]||(St[1]=Ze=>v.value=Ze),class:["ik-file-pload-card",{plain:i.plain}]},he.$attrs,{accept:i.accept,action:u.unref($),disabled:Ge.value,ref_key:"refUpload",ref:se,"before-upload":le,"before-remove":me,"on-exceed":G,multiple:i.multiple,headers:i.headers,limit:i.limit,"on-success":we,"on-error":wt,"on-change":J}),{file:u.withCtx(({file:Ze})=>[u.createElementVNode("div",lfe,[u.createElementVNode("div",ife,[!he.$slots.fileIcon&&(!i.customIconData[u.unref(Ac)(Ze,E)]||!i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.icon])?(u.openBlock(),u.createBlock(sL,{key:0,type:u.unref(Ac)(Ze,E)},null,8,["type"])):!he.$slots.fileIcon&&i.customIconData[u.unref(Ac)(Ze,E)]&&i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.icon]?(u.openBlock(),u.createElementBlock("div",cfe,[i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.type]==="img"?(u.openBlock(),u.createElementBlock("img",{key:0,src:i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,ufe)):(u.openBlock(),u.createElementBlock("span",{key:1,class:u.normalizeClass([i.customIconData[u.unref(Ac)(Ze,E)][i.customIconFields.icon],"file-icon-size"])},null,2))])):u.createCommentVNode("v-if",!0),u.createElementVNode("div",dfe,[u.renderSlot(he.$slots,"fileIcon",{file:Ze},void 0,!0)]),u.createElementVNode("div",ffe,[u.createElementVNode("p",mfe,[u.createTextVNode(u.toDisplayString(Ze[E.name]||Ze.name)+" ",1),Ze.percentage&&Ze.status==="uploading"?(u.openBlock(),u.createElementBlock("span",hfe,"("+u.toDisplayString(Ze.percentage)+"%)",1)):u.createCommentVNode("v-if",!0)]),Ze.status==="success"?(u.openBlock(),u.createElementBlock("p",pfe,u.toDisplayString(u.unref(jF)(Ze.size/1024/1024))+"MB ",1)):u.createCommentVNode("v-if",!0),Ze.percentage&&Ze.status==="uploading"?(u.openBlock(),u.createBlock(u.unref(Zt.ElProgress),{key:1,"text-inside":"",percentage:Ze.percentage,color:"var(--el-color-primary)","show-text":!1},null,8,["percentage"])):u.createCommentVNode("v-if",!0)])]),i.preview?(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[i.preview||Ze.percentage===100?(u.openBlock(),u.createBlock(u.unref(Zt.ElIcon),{key:0,title:"预览",class:"primary"},{default:u.withCtx(()=>[u.createVNode(u.unref(cne),{onClick:F=>Ve(Ze)},null,8,["onClick"])]),_:2},1024)):u.createCommentVNode("v-if",!0),u.createVNode(u.unref(Zt.ElIcon),{title:"下载",class:"primary"},{default:u.withCtx(()=>[u.createVNode(u.unref(_Y),{onClick:F=>K(Ze)},null,8,["onClick"])]),_:2},1024)],64)):(u.openBlock(),u.createElementBlock("div",gfe,[Ze.status==="success"?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createVNode(u.unref(sr),{onClick:F=>Ve(Ze),name:"iksvg_yulan",title:"预览",bg:"",size:"default"},null,8,["onClick"]),u.createVNode(u.unref(sr),{onClick:F=>tt(Ze),error:"",name:"iksvg_shanchu",title:"删除",bg:"",size:"default"},null,8,["onClick"])],64)):(u.openBlock(),u.createBlock(u.unref(sr),{key:1,onClick:F=>tt(Ze),error:"",name:"iksvg_guanbi",size:"default",bg:"",title:"取消上传"},null,8,["onClick"]))]))])]),default:u.withCtx(()=>[u.createElementVNode("div",sfe,[u.createElementVNode("div",rfe,[i.imageMode?u.renderSlot(he.$slots,"image",{key:0},()=>[afe],!0):i.showIcon?(u.openBlock(),u.createBlock(u.unref(sr),{key:1,name:"iksvg_img_shangchuanhetongfujianbeifen",type:"primary",bg:"",size:40})):u.createCommentVNode("v-if",!0),u.createElementVNode("span",null,[u.createTextVNode(u.toDisplayString(i.title)+" ",1),!i.preview&&i.tip?(u.openBlock(),u.createBlock(u.unref(Zt.ElTooltip),{key:0,effect:"dark",content:d.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:u.withCtx(()=>[u.createVNode(u.unref(Zt.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(xY))]),_:1})]),_:1},8,["content"])):u.createCommentVNode("v-if",!0)])]),u.createVNode(u.unref(sr),{name:"iksvg_daoru",bg:"",size:24,width:40,padding:"0"})])]),_:3},16,["file-list","class","accept","action","disabled","multiple","headers","limit"]))],64)),u.createVNode(u.unref(rL),{show:X.value,"onUpdate:show":St[2]||(St[2]=Ze=>X.value=Ze),loadUrl:u.unref(A),file:Z.value,onlyofficeServer:((Ot=u.unref(L))==null?void 0:Ot.serverUrl)||i.onlyofficeServer,onlyOfficeConfig:u.unref(L)},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig"])],64)}}}),eye="",tye="",yfe=or(Ls(bfe,[["__scopeId","data-v-cbfa5eb9"]])),vfe={},Cfe={t:"1686214149488",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8490",width:"200",height:"200"},wfe=[u.createElementVNode("path",{d:"M369.569592 512.011256c0-14.328333-11.010775-25.945929-24.591071-25.945929L86.980515 486.065328c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.998005 0C358.55984 537.959232 369.569592 526.341636 369.569592 512.011256z","p-id":"8491"},null,-1),u.createElementVNode("path",{d:"M937.019485 486.064304 679.020456 486.064304c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.999029 0c13.580297 0 24.590048-11.618619 24.590048-25.947975C961.609533 497.682923 950.598758 486.064304 937.019485 486.064304z","p-id":"8492"},null,-1),u.createElementVNode("path",{d:"M512.011768 62.389956c-13.580297 0-24.590048 11.618619-24.590048 25.945929l0 257.170151c0 14.329357 11.010775 25.946952 24.590048 25.946952s24.591071-11.618619 24.591071-25.946952L536.602839 88.335884C536.602839 74.008574 525.591041 62.389956 512.011768 62.389956z","p-id":"8493"},null,-1),u.createElementVNode("path",{d:"M512.011768 652.544967c-13.580297 0-24.590048 11.618619-24.590048 25.946952l0 257.169127c0 14.33038 11.010775 25.947975 24.590048 25.947975s24.591071-11.618619 24.591071-25.947975L536.602839 678.491918C536.602839 664.162562 525.591041 652.544967 512.011768 652.544967z","p-id":"8494"},null,-1),u.createElementVNode("path",{d:"M377.001865 413.125085c4.744048 4.737908 10.818393 7.082302 16.882506 7.082302 6.519484 0 13.039991-2.724041 17.879206-8.134261 9.317203-10.414187 8.885368-26.834158-0.9967-36.678364L228.341057 193.559391c-9.832949-9.830903-25.406646-9.388834-34.760688 1.050935-9.317203 10.414187-8.885368 26.834158 0.9967 36.678364L377.001865 413.125085z","p-id":"8495"},null,-1),u.createElementVNode("path",{d:"M646.997112 610.873892c-9.846252-9.831926-25.419949-9.388834-34.761712 1.051959-9.317203 10.414187-8.885368 26.834158 0.997724 36.678364l182.41354 181.834348c4.743024 4.738931 10.818393 7.083326 16.881482 7.083326 6.520507 0 13.039991-2.723018 17.879206-8.134261 9.317203-10.41521 8.886391-26.834158-0.9967-36.678364L646.997112 610.873892z","p-id":"8496"},null,-1),u.createElementVNode("path",{d:"M630.114606 420.207387c6.064113 0 12.139481-2.344395 16.882506-7.082302l182.425819-181.836395c9.882068-9.844206 10.313903-26.264177 0.9967-36.678364-9.341762-10.43977-24.915459-10.882861-34.760688-1.050935L613.233124 375.394762c-9.882068 9.844206-10.314926 26.264177-0.997724 36.678364C617.074615 417.483346 623.595123 420.207387 630.114606 420.207387z","p-id":"8497"},null,-1),u.createElementVNode("path",{d:"M377.025401 610.873892 194.600605 792.710286c-9.881045 9.844206-10.313903 26.263154-0.9967 36.678364 4.839215 5.411243 11.358699 8.134261 17.879206 8.134261 6.064113 0 12.138458-2.344395 16.881482-7.083326l182.425819-181.834348c9.881045-9.844206 10.313903-26.264177 0.9967-36.678364C402.469909 601.485057 386.872676 601.041966 377.025401 610.873892z","p-id":"8498"},null,-1)];function _fe(i,a){return u.openBlock(),u.createElementBlock("svg",Cfe,wfe)}const Sfe=Ls(vfe,[["render",_fe]]),MJ=i=>(u.pushScopeId("data-v-127175a6"),i=i(),u.popScopeId(),i),xfe={key:1,class:"upload-btn"},Efe={class:"tip"},kfe={class:"loading-statu"},Afe={class:"operate-btn"},Tfe={key:0},Dfe={class:"el-upload-list el-upload-list--picture-card",style:{float:"left"}},Nfe=["onClick"],Rfe=MJ(()=>u.createElementVNode("span",{class:"error"},"上传错误",-1)),Ofe=MJ(()=>u.createElementVNode("p",null,"点击重新上传",-1)),Bfe=["src"],Mfe={class:"demo-image__preview"},Ife=u.defineComponent({__name:"index",props:u.mergeModels({title:{type:String,default:"上传图片"},loadUrl:{type:String,default:""},action:{type:String,default:""},headers:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},limit:{type:Number,default:50},size:{type:Number,default:50},accept:{type:String,default:"image/*"},fit:{type:String,default:"contain"},preview:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""},disabled:{type:Boolean,default:!1}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:u.mergeModels(["delete","success"],["update:modelValue"]),setup(i,{emit:a}){const d=i,p=u.useModel(i,"modelValue"),v=St=>Array.isArray(St)?St.map(Ot=>{var jn,Tt;const Ze=((jn=Ot.url)==null?void 0:jn.startsWith("http"))||((Tt=Ot.url)==null?void 0:Tt.startsWith("blob")),F=(Ot==null?void 0:Ot.url)||Ot;return{...Ot.url?Ot:{url:F},__url:Ze?F:`${E.value}${F}`}}):St?[{url:St,__url:St!=null&&St.startsWith("http")||St!=null&&St.startsWith("blob")?St:`${E.value}${St}`}]:[];u.watch(()=>p.value,St=>{!St||!St.length?z.value=[]:z.value=Io._.cloneDeep(v(St))},{deep:!0});const S=a,{cLoadUrl:E,cUploadUrl:A}=l7(d),$=u.computed(()=>d.size),L=u.ref(null),z=u.ref(v(p.value)),se=u.ref([]),oe=u.ref(!1),Z=u.ref(0),X=u.computed(()=>d.tipText||`最多可上传${d.limit}张图片, 每张图片不能超过${d.size}MB`),le=(St,Ot)=>{},J=St=>{if(!St.type.includes("image")){Zt.ElMessage.warning("只允许上传图片!");try{z.value.pop()}catch{}return!1}if(!(St.size/1024/1024<$.value)){Zt.ElMessage.warning("图片大小超出限制!");try{z.value.pop()}catch{}return!1}return!0},me=()=>!1,ie=(St,Ot)=>{var Ze,F;St.status="ready",Ot!==void 0&&se.value.splice(Ot,1),(Ze=L.value)==null||Ze.handleStart(St.raw),(F=L.value)==null||F.submit()},G=(St,Ot)=>{var Tt,Oo;const Ze=p.value.length,F=d.limit-Ze;let jn=0;for(;jn<F&&jn<(St==null?void 0:St.length);)(Tt=L.value)==null||Tt.handleStart(St==null?void 0:St[jn]),(Oo=L.value)==null||Oo.submit(),jn++},we=(St,Ot,Ze)=>{S("success",St,Ot,Ze),p.value=z.value},wt=(St,Ot,Ze)=>{se.value.push({...Ot,__url:Ot.url})},Ve=St=>{var Ot;oe.value=!0,Z.value=(Ot=p.value)==null?void 0:Ot.findIndex(Ze=>Ze.url===St.url)},K=St=>{Io.ikFile.downloadByOnlineUrl(St.__url||St.url,St.name)},De=St=>{var Ot;(Ot=L.value)==null||Ot.abort(St)},tt=St=>{var Ot;St.status!=="success"&&De(St),p.value=(Ot=z.value)==null?void 0:Ot.filter(Ze=>Ze.uid!==St.uid),S("delete",St)},lt=(St,Ot)=>{se.value.splice(Ot,1)},Ge=u.computed(()=>z.value.length+se.value.length<d.limit),he=u.computed(()=>p.value.length>=d.limit||d.disabled);return(St,Ot)=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createVNode(u.unref(Zt.ElUpload),u.mergeProps({class:["ik-image-upload",{preview:i.preview,"hide-upload":!Ge.value,disabled:he.value}],ref_key:"refUpload",ref:L,"list-type":"picture-card",accept:i.accept,action:u.unref(A),headers:i.headers,data:i.data,"file-list":z.value,"onUpdate:fileList":Ot[0]||(Ot[0]=Ze=>z.value=Ze),multiple:i.multiple,limit:i.limit,"on-change":le,"before-upload":J,"before-remove":me,"on-exceed":G,"on-success":we,"on-error":wt,drag:""},St.$attrs,{disabled:he.value}),u.createSlots({trigger:u.withCtx(()=>[St.$slots.trigger?u.renderSlot(St.$slots,"trigger",{key:0},void 0,!0):(u.openBlock(),u.createElementBlock("div",xfe,[u.createVNode(u.unref(Zt.ElIcon),{size:20},{default:u.withCtx(()=>[u.createVNode(u.unref(sr),{name:"iksvg_guanbibeifen",disabled:he.value},null,8,["disabled"])]),_:1}),u.createElementVNode("span",null,u.toDisplayString(i.title),1)]))]),file:u.withCtx(({file:Ze})=>[u.createElementVNode("div",{class:u.normalizeClass(["load-list",{loading:Ze.status==="uploading"}]),"element-loading-background":"var(--ik-upload-bg)"},[u.withDirectives(u.createElementVNode("div",kfe,[u.createVNode(Sfe),u.createTextVNode(" 上传"+u.toDisplayString(Ze.percentage)+"% ",1)],512),[[u.vShow,Ze.status==="uploading"]]),u.createCommentVNode(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),u.createVNode(u.unref(Zt.ElImage),{style:{width:"100%",height:"100%"},src:Ze.__url||Ze.url,"zoom-rate":1.2,"initial-index":0,fit:"contain"},null,8,["src"]),u.createElementVNode("span",Afe,[u.createElementVNode("span",null,[u.createVNode(u.unref(Zt.ElIcon),{onClick:F=>Ve(Ze)},{default:u.withCtx(()=>[u.createVNode(u.unref(mne))]),_:2},1032,["onClick"])]),u.createElementVNode("span",null,[u.createVNode(u.unref(Zt.ElIcon),{onClick:F=>K(Ze)},{default:u.withCtx(()=>[u.createVNode(u.unref(_Y))]),_:2},1032,["onClick"])]),i.preview?u.createCommentVNode("v-if",!0):(u.openBlock(),u.createElementBlock("span",Tfe,[u.createVNode(u.unref(Zt.ElIcon),{type:"warning",onClick:F=>tt(Ze)},{default:u.withCtx(()=>[u.createVNode(u.unref(UF))]),_:2},1032,["onClick"])]))])],2)]),default:u.withCtx(()=>[u.createElementVNode("ul",Dfe,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(se.value,(Ze,F)=>(u.openBlock(),u.createElementBlock("li",{class:"el-upload-list__item",key:Ze.uid},[u.createElementVNode("span",null,[u.createVNode(u.unref(Zt.ElIcon),{onClick:jn=>lt(Ze,F)},{default:u.withCtx(()=>[u.createVNode(u.unref(CY))]),_:2},1032,["onClick"])]),u.createElementVNode("div",{class:u.normalizeClass(["load-list",{loading:Ze.status==="uploading",fail:Ze.status==="fail"}]),"element-loading-background":"var(--ik-upload-bg)"},[u.withDirectives(u.createElementVNode("div",{class:"loading-statu",onClick:jn=>ie(Ze,F)},[u.createVNode(u.unref(Zt.ElIcon),{size:24},{default:u.withCtx(()=>[u.createVNode(u.unref(WF))]),_:1}),Rfe,Ofe],8,Nfe),[[u.vShow,Ze.status==="fail"]]),u.createElementVNode("img",{src:Ze.__url,alt:"",style:u.normalizeStyle({"object-fit":i.fit})},null,12,Bfe)],2)]))),128))])]),_:2},[i.tip?{name:"tip",fn:u.withCtx(()=>[u.createElementVNode("span",Efe,u.toDisplayString(X.value),1)]),key:"0"}:void 0]),1040,["class","accept","action","headers","data","file-list","multiple","limit","disabled"]),u.createCommentVNode(" 文件预览 "),u.createElementVNode("div",Mfe,[oe.value?(u.openBlock(),u.createBlock(u.unref(Zt.ElImageViewer),{key:0,"lock-scroll":"","hide-on-click-modal":"",onClose:Ot[1]||(Ot[1]=()=>{oe.value=!1}),"url-list":v(z.value).map(Ze=>Ze.__url),"initial-index":Z.value},null,8,["url-list","initial-index"])):u.createCommentVNode("v-if",!0)])],64))}}),dye="",Pfe=or(Ls(Ife,[["__scopeId","data-v-127175a6"]])),Ffe=["src"],$fe={name:"IkPrintConfig"},Lfe=u.defineComponent({...$fe,props:{id:{},srcPrefix:{default:""},token:{}},emits:["created"],setup(i,{emit:a}){const d=i,p=a,v=u.computed(()=>!!d.id),S=u.reactive({currentId:d.id,loading:!0,src:""}),E=async()=>{fetch(`${d.srcPrefix??""}/jmreport/save`,{method:"POST",body:JSON.stringify({}),headers:{"Content-Type":"application/json",Authorization:d.token??""}}).then($=>$.json()).then(({code:$,result:L})=>{if($===200){const z=L.id;S.currentId=z,S.src=`${d.srcPrefix??""}/jmreport/index/${S.currentId}?token=${d.token}&menuType=printinfo`,p("created",S.currentId)}}).catch($=>{console.error($)})},A=()=>{if(!v.value){E();return}S.src=`${d.srcPrefix??""}/jmreport/index/${S.currentId}?token=${d.token}`};return u.onMounted(()=>{A()}),($,L)=>S.src?(u.openBlock(),u.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:S.src,frameborder:"0"},null,8,Ffe)):u.createCommentVNode("v-if",!0)}}),Vfe=or(Lfe),Hfe=["src"],zfe={name:"IkPrintView"},Ufe=u.defineComponent({...zfe,props:{modelValue:{type:Boolean,default:!1},templateId:{},dataId:{},srcPrefix:{default:""},token:{},idKey:{default:"id"},width:{default:"100%"},height:{default:"calc(100vh - 186px)"}},emits:["update:modelValue"],setup(i,{emit:a}){const d=i,p=a,v=u.computed({get:()=>d.modelValue,set:A=>{p("update:modelValue",A)}}),S=u.reactive({src:"",showIframe:!1}),E=()=>{S.showIframe=!1,S.src=`${d.srcPrefix}/jmreport/view/${d.templateId}?token=${d.token??""}&${d.idKey}=${d.dataId}`,setTimeout(()=>{S.showIframe=!0},300)};return u.watch(()=>v.value,A=>{A&&E()}),u.onMounted(()=>{v.value&&E()}),(A,$)=>{const L=u.resolveComponent("el-dialog");return u.openBlock(),u.createBlock(L,{modelValue:v.value,"onUpdate:modelValue":$[0]||($[0]=z=>v.value=z),fullscreen:"",title:"预览"},{default:u.withCtx(()=>[u.createElementVNode("div",{style:u.normalizeStyle({width:d.width,height:d.height})},[S.showIframe?(u.openBlock(),u.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:S.src,frameborder:"0"},null,8,Hfe)):u.createCommentVNode("v-if",!0)],4)]),_:1},8,["modelValue"])}}}),Wfe=or(Ufe),jfe={class:"ik-full-calendar"},Zfe=["onClick"],Gfe={key:0,class:"event-title allday"},qfe={key:0,class:"event-title-time"},Kfe={key:1,class:"event-title no-allday"},Yfe={class:"event-title-time"},Xfe={class:"event-title-text"},Qfe={name:"IkFullCalendar"},Jfe=u.defineComponent({...Qfe,props:{options:{default:{}},removable:{type:Boolean,default:!0},modelValue:{default:[]},tooltipFieldName:{default:"remark"}},emits:["added","deleted","update:modelValue","eventClick","deleteClick","dateSelect"],setup(i,{expose:a,emit:d}){const p=i,v=u.computed({get:()=>p.modelValue,set:ie=>S("update:modelValue",ie)}),S=d,E=u.ref(null),A=ie=>{},$=u.ref("dayGridMonth"),L=ie=>{S("dateSelect",ie)},z=ie=>{S("eventClick",ie)},se=ie=>{S("deleteClick",ie)},oe=()=>({locale:RY,plugins:[bJ,OJ,EJ],headerToolbar:{left:"dayGridMonth,timeGridWeek,timeGridDay prev,today,next",center:"title",right:""},firstDay:1,initialView:"dayGridMonth",weekends:!0,editable:!0,selectable:!0,selectMirror:!0,dateClick:A,select:L,...p.options,events:v.value}),Z=u.reactive({timeType:"month",options:oe()}),X=u.ref(null),le=()=>{var ie;Z.options=oe(),(ie=E.value)==null||ie.buildOptions(Z.options)};a({...{prev:()=>{var ie;(ie=X.value)==null||ie.prev()},next:()=>{var ie;(ie=X.value)==null||ie.next()},today:()=>{var ie;(ie=X.value)==null||ie.today()},changeView:ie=>{var G;(G=X.value)==null||G.changeView(ie),$.value=ie},getDate:()=>{var ie;return(ie=X.value)==null?void 0:ie.getDate()},getView:()=>{var ie;return(ie=X.value)==null?void 0:ie.view},unselect:()=>{var ie;return(ie=X.value)==null?void 0:ie.unselect()}}}),u.watch(()=>v.value,()=>{le()});const me=()=>{var ie;X.value=(ie=E.value)==null?void 0:ie.getApi()};return u.onMounted(()=>{me()}),(ie,G)=>{const we=u.resolveComponent("el-tooltip"),wt=u.resolveComponent("el-icon");return u.openBlock(),u.createElementBlock("div",jfe,[u.createVNode(u.unref(lJ),{ref_key:"_ref",ref:E,options:Z.options,style:{height:"100%"}},{eventContent:u.withCtx(Ve=>[u.createElementVNode("div",{class:"title-line",onClick:K=>z(Ve)},[u.createVNode(we,null,{content:u.withCtx(()=>{var K,De;return[u.createCommentVNode(" {{arg}} "),u.createTextVNode(" "+u.toDisplayString((De=(K=Ve.event)==null?void 0:K.extendedProps)==null?void 0:De[p.tooltipFieldName]),1)]}),default:u.withCtx(()=>[Ve.event.allDay?(u.openBlock(),u.createElementBlock("span",Gfe,[$.value==="dayGridMonth"?(u.openBlock(),u.createElementBlock("span",qfe,u.toDisplayString("(全天)"))):u.createCommentVNode("v-if",!0),u.createElementVNode("span",null,u.toDisplayString(Ve.event.title),1)])):(u.openBlock(),u.createElementBlock("span",Kfe,[u.createElementVNode("span",Yfe,u.toDisplayString(u.unref(Io.ikDate).toDateTime(Ve.event.startStr,"HH:mm")),1),u.createElementVNode("span",Xfe,u.toDisplayString(Ve.event.title),1)]))]),_:2},1024),p.removable?(u.openBlock(),u.createBlock(wt,{key:0,size:16,onClick:u.withModifiers(K=>se(Ve),["stop"])},{default:u.withCtx(()=>[u.createVNode(u.unref(wY))]),_:2},1032,["onClick"])):u.createCommentVNode("v-if",!0)],8,Zfe)]),_:1},8,["options"])])}}}),mye="",eme=Ls(Jfe,[["__scopeId","data-v-f0925ff8"]]);let tme=class{constructor(){D3(this,"id",new Date().getTime());D3(this,"title","");D3(this,"start","");D3(this,"end","");D3(this,"allDay",!1);D3(this,"extendedProps",{})}};const IJ=or(eme),nme={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},ome={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},sme=["xlink:href"],rme=["src"],ame={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},lme=["xlink:href"],ime=["src"],cme=u.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{}},setup(i){const a=i,d=u.inject("iconConfig"),p=u.computed(()=>({...(d==null?void 0:d.value)||{},...a})),v=u.computed(()=>{const{name:E}=p.value;return/^http?:\/\//.test(E)?"img":/i-[^:]+:[^:]+/.test(E)?"unocss":E!=null&&E.startsWith("iksig")?"iksig":E!=null&&E.includes(":")?"iconify":E!=null&&E.startsWith("iksvg")?"svg":"i"}),S=u.computed(()=>{const E=[];if(p.value.flip)switch(p.value.flip){case"horizontal":E.push("rotateY(180deg)");break;case"vertical":E.push("rotateX(180deg)");break;case"both":E.push("rotateX(180deg)"),E.push("rotateY(180deg)");break}p.value.rotate&&E.push(`rotate(${p.value.rotate%360}deg)`);const A={...p.value.color&&{color:p.value.color},...p.value.size&&{fontSize:typeof p.value.size=="number"?`${p.value.size}px`:p.value.size},...E.length&&{transform:E.join(" ")},padding:p.value.showBg||p.value.bg?p.value.padding:0,...p.value.color&&v.value!=="iksig"?{"--ik-color-icon-dark":p.value.color,"--ik-color-icon-light":p.value.colorLight||Io.ikColor.setOpacity(p.value.color,p.value.opacity)}:{}};return p.value.width&&(A.width=A.height=typeof p.value.width=="number"?`${p.value.width}px`:p.value.width),A});return(E,A)=>{const $=u.resolveComponent("el-tooltip"),L=u.resolveComponent("el-button");return p.value.tableIconType==="icon"||!p.value.tableIconType?(u.openBlock(),u.createElementBlock("span",nme,[p.value.notip||!p.value.title?(u.openBlock(),u.createElementBlock("i",{key:0,class:u.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[E.name]:v.value==="unocss","show-bg":p.value.showBg||p.value.bg,default:p.value.size==="default",small:p.value.size==="small",big:p.value.size==="big",warning:p.value.warning||p.value.type==="warning",primary:p.value.primary||p.value.type==="primary",success:E.success||p.value.type==="success",error:p.value.error||p.value.type==="error",active:p.value.active,disabled:p.value.disabled}]),style:u.normalizeStyle(S.value)},[u.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),v.value==="iksig"?(u.openBlock(),u.createElementBlock("i",{key:0,class:u.normalizeClass(`iksig ${p.value.name}`),style:u.normalizeStyle(S.value)},null,6)):v.value==="svg"?(u.openBlock(),u.createElementBlock("svg",ome,[u.createElementVNode("use",{"xlink:href":`#${p.value.name}`},null,8,sme)])):v.value==="img"?(u.openBlock(),u.createElementBlock("img",{key:2,src:p.value.name,class:"h-[1em] w-[1em]"},null,8,rme)):(u.openBlock(),u.createElementBlock("i",{key:3,class:u.normalizeClass(p.value.name),style:u.normalizeStyle(S.value)},null,6))],6)):(u.openBlock(),u.createBlock($,{key:1,content:p.value.title,placement:"top"},{default:u.withCtx(()=>[u.createElementVNode("i",{class:u.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[E.name]:v.value==="unocss","show-bg":p.value.showBg||p.value.bg,default:p.value.size==="default",small:p.value.size==="small",big:p.value.size==="big",warning:p.value.warning||p.value.type==="warning",primary:E.primary||p.value.type==="primary",success:E.success||p.value.type==="success",error:p.value.error||p.value.type==="error",active:p.value.active}]),style:u.normalizeStyle(S.value)},[v.value==="iksig"?(u.openBlock(),u.createElementBlock("i",{key:0,class:u.normalizeClass(`iksig ${p.value.name}`),style:u.normalizeStyle(S.value)},null,6)):v.value==="svg"?(u.openBlock(),u.createElementBlock("svg",ame,[u.createElementVNode("use",{"xlink:href":`#${p.value.name}`},null,8,lme)])):v.value==="img"?(u.openBlock(),u.createElementBlock("img",{key:2,src:p.value.name,class:"h-[1em] w-[1em]"},null,8,ime)):(u.openBlock(),u.createElementBlock("i",{key:3,class:u.normalizeClass(p.value.name),style:u.normalizeStyle(S.value)},null,6))],6)]),_:1},8,["content"]))])):(u.openBlock(),u.createBlock(L,{key:1,type:["warning","error"].includes(p.value.type)?"danger":""},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(p.value.title),1)]),_:1},8,["type"]))}}}),hye="",sr=or(Ls(cme,[["__scopeId","data-v-76d7e119"]])),aL=i=>(u.pushScopeId("data-v-e308f501"),i=i(),u.popScopeId(),i),ume={class:"ik-schedule"},dme={class:"ik-schedule__left"},fme={class:"ik-schedule__header"},mme={class:"ik-schedule__title"},hme=aL(()=>u.createElementVNode("div",{class:"ik-schedule__header-right"},null,-1)),pme={class:"ik-schedule__body"},gme={style:{"font-size":"18px"}},bme={key:0},yme={style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},vme={key:0,style:{"margin-left":"2%"}},Cme=aL(()=>u.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),wme={key:1},_me=aL(()=>u.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),Sme={class:"dialog-footer"},xme={name:"IkSchedule"},Eme=u.defineComponent({...xme,props:{modelValue:{default:[]},options:{default:{initialView:"dayGridMonth"}},editVisible:{type:Boolean},removable:{type:Boolean,default:!0}},emits:["update:modelValue","added","updated","deleted","editOpen","submit","update:editVisible","submitAdd","submitUpdate","submitDelete"],setup(i,{expose:a,emit:d}){var K;const p=i,v=d,S=!!u.useSlots().form,E=u.computed({get:()=>p.modelValue,set:De=>{v("update:modelValue",De)}}),A=u.computed(()=>({...p.options,headerToolbar:!1})),$=u.reactive({currentView:(K=p.options)==null?void 0:K.initialView,viewTitle:"",rightLabel:"今日",timeType:"month",currentDate:null}),L=u.ref(null),z=De=>{var tt;(tt=L.value)==null||tt.changeView(De),$.currentView=De,se()},se=()=>{var tt;const De=(tt=L.value)==null?void 0:tt.getView();$.viewTitle=De==null?void 0:De.title},oe=()=>{var De;(De=L.value)==null||De.prev(),se()},Z=()=>{var De;(De=L.value)==null||De.next(),se()},X=()=>{var De;(De=L.value)==null||De.today(),se()},le=De=>$.currentView===De,J=u.ref(null),me={createDefaultForm:()=>({title:"",allDay:!1,type:1,startDate:"",endDate:"",startTime:"",endTime:"",location:"",remark:""}),close:()=>{G.value=!1},customSubmit:De=>{var lt,Ge;let tt={...De,id:void 0,allDay:ie.form.allDay,start:(lt=ie.selectInfo)==null?void 0:lt.startStr,end:(Ge=ie.selectInfo)==null?void 0:Ge.endStr};me.operation(tt),me.close()},operation:De=>{var tt;ie.operation==="add"?v("submitAdd",De):(De.id=(tt=ie.editEvent)==null?void 0:tt.id,v("submitUpdate",De))},submit:async()=>{var tt,lt;if(S){v("submit");return}if(!ie.form.title){Zt.ElMessage.info("标题不能为空");return}if(!ie.form.allDay&&(!ie.form.startTime||!ie.form.endTime)){Zt.ElMessage.info("时间不能为空");return}let De={id:void 0,title:ie.form.title,allDay:ie.form.allDay,start:(tt=ie.selectInfo)==null?void 0:tt.startStr,end:(lt=ie.selectInfo)==null?void 0:lt.endStr,extendedProps:{...ie.form}};if(De.allDay)De.start=Io.ikDate.toDate(ie.form.startDate),De.end=Io.ikDate.toDate(ie.form.endDate);else{const Ge=Io.ikDate.toDate(ie.form.startDate),he=Io.ikDate.toDateTime(ie.form.startTime).substring(10),St=Io.ikDate.toDateTime(ie.form.endTime).substring(10);De.start=`${Ge}${he}`,De.end=`${Ge}${St}`,De.extendedProps.startTime=De.start,De.extendedProps.endTime=De.end}me.operation(De),me.close()},reset:()=>{var De;ie.form=me.createDefaultForm(),(De=J.value)==null||De.clearValidate()},edit:()=>{ie.editable=!0,ie.title="编辑日程"},cancelEdit:()=>{ie.editable=!1,ie.title="日程信息"},del:()=>{Ve(ie.clickInfo)}},ie=u.reactive({operation:"update",selectInfo:{},editEvent:void 0,title:"",visible:!1,allDay:!1,form:me.createDefaultForm(),editable:!1,clickInfo:null}),G=u.computed({get:()=>ie.visible,set:De=>{ie.visible=De}}),we=De=>{var tt;if(ie.form.allDay=De.allDay,ie.selectInfo=De,me.reset(),De.view.type=="dayGridMonth"){let lt=De.end.getTime()-864e5;$.timeType="month",ie.form.startDate=Io.ikDate.toYMD(De.start),ie.form.endDate=Io.ikDate.toYMD(new Date(lt)),ie.form.allDay=!0}else De.view.type=="timeGridWeek"?$.timeType="week":De.view.type=="timeGridDay"&&($.timeType="day"),ie.form.startDate=Io.ikDate.toYMD(De.start),ie.form.endDate=Io.ikDate.toYMD(De.start),ie.form.startTime=Io.ikDate.toDateTime(De.start),ie.form.endTime=Io.ikDate.toDateTime(De.end);(tt=L.value)==null||tt.unselect(),u.nextTick(()=>{ie.title="新建日程",ie.operation="add",ie.editable=!0,G.value=!0,v("editOpen",JSON.parse(JSON.stringify(ie)))})},wt=De=>{ie.title="日程信息",ie.operation="update",ie.clickInfo=De,ie.editEvent=De.event;debugger;ie.editEvent.allDay?(ie.form.startDate=ie.editEvent.startStr,ie.form.endDate=ie.editEvent.startStr):(ie.form.startDate=ie.editEvent.startStr,ie.form.startTime=ie.editEvent.start,ie.form.endTime=ie.editEvent.end),ie.form.title=ie.editEvent.title,ie.form.allDay=ie.editEvent.allDay,Ite.copyValue(ie.form,ie.editEvent.extendedProps),me.cancelEdit(),G.value=!0,v("editOpen",JSON.parse(JSON.stringify(ie)))},Ve=De=>{Zt.ElMessageBox.confirm(`你确定删除事件 ${De.event.title} ?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{me.close(),v("submitDelete",De.event.id)})};return a({customSubmit:De=>me.customSubmit(De)}),u.onMounted(()=>{se()}),(De,tt)=>{const lt=u.resolveComponent("el-button"),Ge=u.resolveComponent("el-button-group"),he=u.resolveComponent("el-icon"),St=u.resolveComponent("el-space"),Ot=u.resolveComponent("el-input"),Ze=u.resolveComponent("el-form-item"),F=u.resolveComponent("el-date-picker"),jn=u.resolveComponent("el-time-picker"),Tt=u.resolveComponent("el-checkbox"),Oo=u.resolveComponent("el-form"),Cn=u.resolveComponent("el-dialog");return u.openBlock(),u.createElementBlock("div",ume,[u.createElementVNode("div",dme,[u.createElementVNode("div",fme,[u.createVNode(St,{style:{"flex-shrink":"0"},size:24},{default:u.withCtx(()=>[u.createVNode(Ge,null,{default:u.withCtx(()=>[u.createVNode(lt,{onClick:tt[0]||(tt[0]=at=>z("dayGridMonth")),type:le("dayGridMonth")?"primary":""},{default:u.withCtx(()=>[u.createTextVNode("月")]),_:1},8,["type"]),u.createVNode(lt,{onClick:tt[1]||(tt[1]=at=>z("timeGridWeek")),type:le("timeGridWeek")?"primary":""},{default:u.withCtx(()=>[u.createTextVNode("周")]),_:1},8,["type"]),u.createVNode(lt,{onClick:tt[2]||(tt[2]=at=>z("timeGridDay")),type:le("timeGridDay")?"primary":""},{default:u.withCtx(()=>[u.createTextVNode("日")]),_:1},8,["type"])]),_:1}),u.createElementVNode("span",mme,u.toDisplayString($.viewTitle),1),u.createVNode(Ge,{style:{"flex-shrink":"0"}},{default:u.withCtx(()=>[u.createVNode(lt,{onClick:oe},{default:u.withCtx(()=>[u.createVNode(he,null,{default:u.withCtx(()=>[u.createVNode(u.unref(gY))]),_:1})]),_:1}),u.createVNode(lt,{onClick:X},{default:u.withCtx(()=>[u.createTextVNode("今天")]),_:1}),u.createVNode(lt,{onClick:Z},{default:u.withCtx(()=>[u.createVNode(he,null,{default:u.withCtx(()=>[u.createVNode(u.unref(bY))]),_:1})]),_:1})]),_:1})]),_:1}),hme]),u.createElementVNode("div",pme,[u.createVNode(u.unref(IJ),{removable:De.removable,onDateSelect:we,onDeleteClick:Ve,onEventClick:wt,ref_key:"_refCalendar",ref:L,options:A.value,modelValue:E.value,"onUpdate:modelValue":tt[3]||(tt[3]=at=>E.value=at)},null,8,["removable","options","modelValue"])])]),u.createCommentVNode(" 新建/修改对话框 "),u.createVNode(Cn,{width:"700px",modelValue:G.value,"onUpdate:modelValue":tt[11]||(tt[11]=at=>G.value=at)},{header:u.withCtx(()=>[u.createElementVNode("div",null,[u.createElementVNode("span",gme,u.toDisplayString(ie.title),1),ie.operation==="update"?(u.openBlock(),u.createElementBlock("span",bme,[ie.editable?(u.openBlock(),u.createBlock(u.unref(sr),{key:1,style:{"margin-left":"4px"},name:"iksvg_qiehuan-daohang",onClick:me.cancelEdit},null,8,["onClick"])):(u.openBlock(),u.createBlock(u.unref(sr),{key:0,style:{"margin-left":"4px"},name:"iksvg_xiugai",onClick:me.edit},null,8,["onClick"]))])):u.createCommentVNode("v-if",!0)])]),footer:u.withCtx(()=>[u.createElementVNode("span",Sme,[u.renderSlot(De.$slots,"form-footer",{},()=>[u.createElementVNode("span",null,[u.createVNode(lt,{onClick:me.close},{default:u.withCtx(()=>[u.createTextVNode("取消")]),_:1},8,["onClick"]),u.createVNode(lt,{onClick:me.del},{default:u.withCtx(()=>[u.createTextVNode("删除")]),_:1},8,["onClick"]),u.createVNode(lt,{type:"primary",onClick:me.submit},{default:u.withCtx(()=>[u.createTextVNode("确定")]),_:1},8,["onClick"])])],!0)])]),default:u.withCtx(()=>[u.renderSlot(De.$slots,"form",{},()=>[u.createVNode(Oo,{ref_key:"_editFormRef",ref:J,model:ie.form,disabled:!ie.editable},{default:u.withCtx(()=>[u.createVNode(Ze,null,{default:u.withCtx(()=>[u.createVNode(he,{class:"icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(yY))]),_:1}),u.createVNode(Ot,{modelValue:ie.form.title,"onUpdate:modelValue":tt[4]||(tt[4]=at=>ie.form.title=at),placeholder:"请输入标题",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1}),u.createVNode(Ze,null,{default:u.withCtx(()=>[u.createVNode(he,{class:"icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(vY))]),_:1}),u.createElementVNode("div",yme,[u.createVNode(F,{disabled:"",modelValue:ie.form.startDate,"onUpdate:modelValue":tt[5]||(tt[5]=at=>ie.form.startDate=at),type:"date",placeholder:"开始日期",style:u.normalizeStyle({width:ie.form.allDay?"45%":"90%"})},null,8,["modelValue","style"]),ie.form.allDay?(u.openBlock(),u.createElementBlock("div",wme,[_me,u.createVNode(F,{disabled:"",modelValue:ie.form.endDate,"onUpdate:modelValue":tt[8]||(tt[8]=at=>ie.form.endDate=at),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(u.openBlock(),u.createElementBlock("div",vme,[u.createVNode(jn,{modelValue:ie.form.startTime,"onUpdate:modelValue":tt[6]||(tt[6]=at=>ie.form.startTime=at),type:"datetime",placeholder:"开始时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),Cme,u.createVNode(jn,{modelValue:ie.form.endTime,"onUpdate:modelValue":tt[7]||(tt[7]=at=>ie.form.endTime=at),type:"datetime",placeholder:"结束时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),u.createVNode(Tt,{modelValue:ie.form.allDay,"onUpdate:modelValue":tt[9]||(tt[9]=at=>ie.form.allDay=at),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])]),_:1}),u.createVNode(Ze,null,{default:u.withCtx(()=>[u.createVNode(he,{class:"icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(Yte))]),_:1}),u.createVNode(Ot,{type:"textarea",modelValue:ie.form.remark,"onUpdate:modelValue":tt[10]||(tt[10]=at=>ie.form.remark=at),placeholder:"描述",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","disabled"])],!0)]),_:3},8,["modelValue"])])}}}),gye="",kme=or(Ls(Eme,[["__scopeId","data-v-e308f501"]])),Ame={key:0,class:"ik-tabs-split overflow-overlay gl-padding"},Tme=u.defineComponent({__name:"IkPageTabs",props:u.mergeModels({tabs:{type:Array,default:()=>[]},defaultSlot:{type:Boolean,default:!0},lazyTab:{type:Boolean,default:!1},split:{type:Boolean,default:!1}},{modelValue:{type:String||Number,default:""},modelModifiers:{}}),emits:u.mergeModels(["tabClick","search"],["update:modelValue"]),setup(i,{emit:a}){const d=i,p=a,v=u.useModel(i,"modelValue"),S=u.ref(new Map);for(const A of d.tabs)S.value.set(A.id,d.lazyTab?A.id!==v.value:!1);const E=A=>{v.value=A.paneName,S.value.get(A.paneName)||p("tabClick",A.paneName,A),S.value.set(A.paneName,!1)};return(A,$)=>{const L=u.resolveComponent("el-tab-pane"),z=u.resolveComponent("el-tabs");return u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createCommentVNode(' <div class="flex-1 contents"> '),u.createVNode(z,{modelValue:v.value,"onUpdate:modelValue":$[0]||($[0]=se=>v.value=se),class:u.normalizeClass(["ik-tabs",{"is-default":A.$slots.default,"split gl-padding gl-container":i.split}]),onTabClick:E},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.tabs,se=>(u.openBlock(),u.createBlock(L,{key:se.id,disabled:se==null?void 0:se.disabled,name:se.id},{label:u.withCtx(()=>[u.createElementVNode("span",null,u.toDisplayString(se.label),1)]),default:u.withCtx(()=>[!A.$slots.default&&!S.value.get(se.id)&&!i.split?u.renderSlot(A.$slots,se.id,{key:0},void 0,!0):u.createCommentVNode("v-if",!0)]),_:2},1032,["disabled","name"]))),128)),u.createCommentVNode(" 当存在默认slot且需要展示默认slot时 "),A.$slots.default&&i.defaultSlot&&!i.split?u.renderSlot(A.$slots,"default",{key:0},void 0,!0):u.createCommentVNode("v-if",!0)]),_:3},8,["modelValue","class"]),i.split?(u.openBlock(),u.createElementBlock("div",Ame,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.tabs,se=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[!A.$slots.default&&!S.value.get(se.id)?u.renderSlot(A.$slots,se.id,{key:0},void 0,!0):u.createCommentVNode("v-if",!0)],64))),256)),A.$slots.default&&i.defaultSlot?u.renderSlot(A.$slots,"default",{key:0},void 0,!0):u.createCommentVNode("v-if",!0)])):u.createCommentVNode("v-if",!0),u.createCommentVNode(" </div> ")],64)}}}),yye="",Dme=or(Ls(Tme,[["__scopeId","data-v-e282a7f2"]]));var W1=(i=>(i.input="input",i.area="area",i.number="number",i.select="select",i.date="date",i.datetime="datetime",i.checkbox="checkbox",i.radio="radio",i.treeselect="treeselect",i.choosePerson="choosePerson",i))(W1||{}),u2=(i=>(i.year="year",i.month="month",i.date="date",i.dates="dates",i.datetime="datetime",i.week="week",i.datetimerange="datetimerange",i.daterange="daterange",i.monthrange="monthrange",i))(u2||{});function PJ(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!u.isVNode(i)}const Nme=u.defineComponent({name:"IkSearchAuto",props:{list:{required:!0,type:Array,default:()=>[]},shadow:{type:String,default:"never"},immediate:{type:Boolean,default:!0},tab:{type:String,default:""},search:{type:Function,default:null},loading:{type:Boolean,default:!1}},emits:["search","pickerChange"],setup(i,{emit:a,expose:d}){const p=u.ref(),v={},S=u.ref({}),E=u.ref([]),A=u.ref({...S.value});u.watch(E,(Ft,ao)=>{const ht=ao.filter(Ut=>!Ft.includes(Ut));if(ht.length){let Ut=!1;ht.forEach(qe=>{A.value[qe]!==void 0&&(Ut=!0),A.value[qe]=void 0}),Ut&&a("search",A.value)}});const $=()=>{E.value=[],i.list.forEach(Ft=>{var ao,ht;S.value[Ft.key]=S.value[Ft.value],v[Ft.key]=v[Ft.value],E.value.push(Ft.key),(ao=A.value)[ht=Ft.key]??(ao[ht]=Ft.value||null)})};$(),u.watch(()=>i.list,()=>{$()});const L=u.computed(()=>E.value.map(Ft=>i.list.find(ao=>ao.key===Ft))),z=()=>{var Ft;A.value.page=1,(Ft=i.search)==null||Ft.call(i,A.value),a("search",A.value)};d({resetForm:()=>{var Ft,ao;(ao=(Ft=p.value)==null?void 0:Ft.resetFields)==null||ao.call(Ft),z()},reRequest:()=>{z()}});const Z=()=>{var Ft;a("search",A.value),(Ft=i.search)==null||Ft.call(i,A.value)},X=Ft=>{Ft.key==="Enter"&&z()},le=()=>{var Ft;(Ft=p.value)==null||Ft.resetFields(),z()};i.immediate&&z();const J=({maxlength:Ft,minlength:ao,key:ht,disabled:Ut,placeholder:qe,formProp:it={},value:Q,label:uo})=>u.createVNode(Zt.ElInput,u.mergeProps({modelValue:A.value[ht],"onUpdate:modelValue":[An=>A.value[ht]=An,An=>A.value[ht]=An],clearable:!0,maxlength:Ft,minlength:ao,disabled:Ut,onBlur:()=>Z()},it,{placeholder:(it==null?void 0:it.placeholder)||qe||`请输入${uo||""}`}),null),me=({key:Ft,placeholder:ao,max:ht,min:Ut,disabled:qe,precision:it,step:Q=1,label:uo,formProp:An={}})=>u.createVNode(Zt.ElInputNumber,u.mergeProps({modelValue:A.value[Ft],"onUpdate:modelValue":vo=>A.value[Ft]=vo,clearable:!0,max:ht,min:Ut,disabled:qe,precision:it,step:Q,onChange:()=>Z()},An,{placeholder:(An==null?void 0:An.placeholder)||ao||`请输入${uo||""}`}),null),ie=({key:Ft,placeholder:ao,disabled:ht,options:Ut,label:qe,multiple:it=!1,filterable:Q=!0,formProp:uo={}})=>u.createVNode(Zt.ElSelect,u.mergeProps({modelValue:A.value[Ft],"onUpdate:modelValue":An=>A.value[Ft]=An,clearable:!0,disabled:ht,multiple:it,filterable:Q,onChange:()=>Z()},uo,{placeholder:(uo==null?void 0:uo.placeholder)||ao||`请选择${qe||""}`}),{default:()=>[Ut==null?void 0:Ut.map(An=>u.createVNode(Zt.ElOption,{key:An.value,label:An.label,value:An.value},null))]}),G=({key:Ft,disabled:ao,options:ht,formProp:Ut={}})=>u.createVNode(Zt.ElRadioGroup,u.mergeProps({modelValue:A.value[Ft],"onUpdate:modelValue":qe=>A.value[Ft]=qe,disabled:ao,onChange:()=>Z()},Ut),{default:()=>[ht==null?void 0:ht.map(qe=>(Ut==null?void 0:Ut.radioType)==="button"?u.createVNode(Zt.ElRadioButton,{key:qe.value,label:qe.value,name:qe.label},null):u.createVNode(Zt.ElRadio,{key:qe.value,label:qe.value,name:qe.label},null))]}),we=({key:Ft,disabled:ao,options:ht,min:Ut,max:qe,formProp:it={}})=>u.createVNode(Zt.ElCheckboxGroup,u.mergeProps({modelValue:A.value[Ft],"onUpdate:modelValue":Q=>A.value[Ft]=Q,disabled:ao,max:qe,min:Ut,onChange:()=>Z()},it),{default:()=>[ht==null?void 0:ht.map(Q=>u.createVNode(Zt.ElCheckbox,{key:Q.value,label:Q.label,value:Q.value},null))]}),wt=({key:Ft,label:ao,formProp:ht={},placeholder:Ut})=>u.createVNode(Zt.ElDatePicker,u.mergeProps({modelValue:A.value[Ft],"onUpdate:modelValue":qe=>A.value[Ft]=qe,onChange:()=>Z()},ht,{placeholder:(ht==null?void 0:ht.placeholder)||Ut||`请选择${ao}时间`}),null),Ve=({key:Ft,disabled:ao,editable:ht=!0,startPlaceholder:Ut="开始日期",endplaceholder:qe="结束日期",dateType:it=u2.date,format:Q,placeholder:uo="请选择日期",popperclass:An,rangeSeparator:vo="-",defaultValue:Ro,defaultTime:ta,valueFormat:pt,disabledDate:Gt=()=>!1,formProp:ct={}})=>{let ze=Q;if(ze)switch(it){case u2.date:case u2.dates:ze="YYYY-MM-DD";break;case u2.year:ze="YYYY";break;case u2.month:ze="YYYY-MM";break;case u2.week:ze="YYYY-MM-DD";break;default:ze=""}return u.createVNode(Zt.ElDatePicker,u.mergeProps({modelValue:A.value[Ft],"onUpdate:modelValue":En=>A.value[Ft]=En,onChange:()=>Z(),disabled:ao,type:it,editable:ht,startPlaceholder:Ut,endPlaceholder:qe,rangeSeparator:vo,format:ze,popperClass:An,defaultValue:Ro,defaultTime:ta,valueFormat:pt,disabledDate:Gt},ct,{placeholder:(ct==null?void 0:ct.placeholder)||uo||"请选择日期"}),null)},K=({key:Ft,options:ao,multiple:ht=!1,filterable:Ut=!0,nodeKey:qe="id",props:it,highlightCurrent:Q=!0,defaultExpandAll:uo=!1,expandOnClickNode:An=!1,placeholder:vo="全部",checkOnClickNode:Ro=!1,showCheckbox:ta=!1,checkStrictly:pt=!0,defaultCheckedKeys:Gt=[],currentNodeKey:ct="",accordion:ze=!1,formProp:En={},label:kt})=>u.createVNode(Zt.ElTreeSelect,u.mergeProps({modelValue:A.value[Ft],"onUpdate:modelValue":gt=>A.value[Ft]=gt,data:ao,onChange:()=>Z(),clearable:!0,multiple:ht,props:it,placeholder:vo,filterable:Ut,nodeKey:qe,highlightCurrent:Q,defaultExpandAll:uo,expandOnClickNode:An,checkOnClickNode:Ro,showCheckbox:ta,checkStrictly:pt,defaultCheckedKeys:Gt,currentNodeKey:ct,accordion:ze},En,{placeholder:(En==null?void 0:En.placeholder)||vo||`请选择${kt||""}`}),null),De=({key:Ft,selectKey:ao,placeholder:ht,disabled:Ut,options:qe,multiple:it=!1,filterable:Q=!0,formProp:uo={}})=>u.createVNode(Zt.ElInput,u.mergeProps({disabled:Ut,modelValue:A.value[Ft],"onUpdate:modelValue":An=>A.value[Ft]=An,onBlur:()=>Z()},uo,{placeholder:(uo==null?void 0:uo.placeholder)||ht||"全部"}),{prepend:()=>u.createVNode(Zt.ElSelect,u.mergeProps({disabled:Ut,multiple:it,filterable:Q,modelValue:A.value[ao],"onUpdate:modelValue":An=>A.value[ao]=An,onChange:()=>Z()},uo),{default:()=>[qe==null?void 0:qe.map(An=>u.createVNode(Zt.ElOption,{key:An.value,label:An.label,value:An.value},null))]})}),tt="",lt="iking",Ge=u.ref(null),he=u.ref([]),St=u.ref(!1),Ot=u.ref(""),Ze=new Map,F=Ft=>{St.value=!0,he.value=Ze.has(Ft)?Ze.get(Ft):A.value[Ft],Ot.value=Ft},jn=()=>{Ze.set(Ot.value,[]),Ot.value="",Z()},Tt=Ft=>{var ao,ht;A.value[Ot.value]=(ao=Ft.list.map(Ut=>Ut.elementName))==null?void 0:ao.join(","),Ze.set(Ot.value,Ft.list),a("search",A.value),a("pickerChange",Ft),(ht=i.search)==null||ht.call(i,A.value)},Oo=({key:Ft,placeholder:ao,typeOption:ht,_list:Ut,maxlength:qe,minlength:it,disabled:Q,formProp:uo})=>u.createVNode(Zt.ElInput,u.mergeProps({modelValue:A.value[Ft],"onUpdate:modelValue":An=>A.value[Ft]=An,clearable:!0,maxlength:qe,minlength:it,disabled:Q},uo,{onClick:()=>F(Ft),onClear:()=>jn(),placeholder:(uo==null?void 0:uo.placeholder)||ao||`点击选择${label||"人员"}`}),null),Cn=Ft=>{switch(Ft.type){case"":case void 0:case W1.input:case"el-input":return J(Ft);case W1.number:case"el-input-number":return me(Ft);case W1.select:case"el-select":return ie(Ft);case W1.checkbox:case"el-checkbox":return we(Ft);case W1.radio:case"el-radio-group":case"el-radio":return G(Ft);case W1.date:case"el-date-picker":return Ve(Ft);case"el-time-select":return wt(Ft);case W1.treeselect:case"el-tree-select":return K(Ft);case W1.choosePerson:return Oo(Ft);case"select-input":return De(Ft);default:return u.createVNode(u.Fragment,null,null)}},at=u.computed(()=>{var ht;const Ft=[],ao=L.value.length-1;return(ht=L.value)==null||ht.forEach((Ut,qe)=>{let it,Q;if(!Ut)return[];const uo=Ut.col||1;Ft.push(u.createVNode(Zt.ElCol,{xl:{span:uo*6},lg:{span:uo*6},md:{span:uo*12},sm:{span:uo*24}},{default:()=>[qe===ao?u.createVNode("div",{class:"last-form"},[u.createVNode(Zt.ElFormItem,{label:Ut.type==="select-input"?"":Ut.label,prop:Ut.key},PJ(it=Cn(Ut))?it:{default:()=>[it]}),u.createVNode(sr,{name:"icon-sousuo1",pop:!0,title:"搜索",size:"big","show-bg":!0,width:40,onClick:()=>Z()},null),u.createVNode(sr,{name:"icon-zhongzhi",pop:!0,title:"重置并搜索",size:"big","show-bg":!0,width:40,onClick:()=>le()},null)]):u.createVNode(Zt.ElFormItem,{label:Ut.type==="select-input"?"":Ut.label,prop:Ut.key},PJ(Q=Cn(Ut))?Q:{default:()=>[Q]})]}))}),Ft});return()=>u.createVNode(u.Fragment,null,[u.createVNode(Zt.ElCard,{class:"gl-search-card",shadow:i.shadow},{default:()=>[u.createVNode(Zt.ElForm,{class:"auto-search-form",onKeyup:X,ref:p,model:A.value},{default:()=>[u.createVNode(Zt.ElRow,{gutter:16},{default:()=>[at.value]})]})]}),u.createVNode(mk,{ref:Ge.value,modelValue:he.value,"onUpdate:modelValue":Ft=>he.value=Ft,show:St.value,"onUpdate:show":Ft=>St.value=Ft,"append-to-body":!0,api:{methods:"post",url:`${tt}/server/component/pick/mix`,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:lt}},tabs:["group","role","post"],chooseType:["user"],typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},propOption:{name:"elementName",id:"elementId",type:"elementType"},onOk:Ft=>Tt(Ft)},null)])}}),Rme={class:"header-left"},Ome={class:"title"},Bme={class:"flex items-center"},Mme=u.defineComponent({__name:"IkPageHead",props:u.mergeModels({headerTitle:{type:String,default:""},headerBorder:{type:Boolean,default:!1},fields:{required:!0,type:Array,default:()=>[]},search:{type:Function,default:null},loading:{type:Boolean,default:!1},tabId:{type:Number||String,default:0},exportBtn:{type:Boolean,default:!1},refreshBtn:{type:Boolean,default:!1},settingBtn:{type:Boolean,default:!0},defaultShow:{type:Boolean,default:!1},headerHeight:{type:Number,default:66}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(i){u.useCssVars(L=>({"59e2b6b4":$}));const a=i,d=u.useModel(i,"modelValue"),p=u.ref(a.defaultShow),v=()=>{p.value=!p.value},S=u.computed(()=>a.fields.filter(L=>!L.onlyForm)),E=u.computed(()=>{var L;return(L=a.fields)==null?void 0:L.filter(z=>z.search)}),A=u.computed(()=>E.value.length),$=`${a.headerHeight}px`;return(L,z)=>{const se=u.resolveComponent("el-card");return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["ik-page-header",{"show-search":p.value}])},[u.createElementVNode("div",{class:"header",style:u.normalizeStyle({borderColor:i.headerBorder?"var(--ik-border-color)":"transparent",marginBottom:i.headerBorder?"8px":"0"})},[u.createElementVNode("div",Rme,[u.createCommentVNode(' 左侧标题、tab页或自定义内容 v-if="!$slots.headerLeft" '),u.createElementVNode("span",Ome,u.toDisplayString(i.headerTitle),1),u.renderSlot(L.$slots,"headerLeft",{},void 0,!0)]),u.createCommentVNode(" 默认按钮 "),u.createElementVNode("div",Bme,[u.createCommentVNode(" 右侧操作或自定义内容 "),u.renderSlot(L.$slots,"headerRight",{},void 0,!0),i.exportBtn?(u.openBlock(),u.createBlock(u.unref(sr),{key:0,name:"iksvg_xiazai",type:"primary",title:"导出","show-bg":"",size:"default"})):u.createCommentVNode("v-if",!0),A.value?(u.openBlock(),u.createBlock(u.unref(sr),{key:1,name:"iksvg_shaixuan1",size:"default",title:p.value?"收起筛选条件":"展开筛选条件","show-bg":"",onClick:v},null,8,["title"])):u.createCommentVNode("v-if",!0),i.refreshBtn?(u.openBlock(),u.createBlock(u.unref(sr),{key:2,name:"iksvg_zhongzhi1",title:"保留搜索条件刷新","show-bg":"",size:"default",onClick:i.search},null,8,["onClick"])):u.createCommentVNode("v-if",!0),u.createCommentVNode(` <IkSvgIcon\r
35
35
  name="icon-shezhi"\r
36
36
  show-bg\r
37
37
  :width="40"\r