iking-web-ui-pro 0.0.2 → 0.0.3
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/IKApprovalProcess/index.es.js +1 -1
- package/dist/IKApprovalProcess/index.umd.js +1 -1
- package/dist/IKApprovalProcess/style.css +1 -1
- package/dist/IKApprovalProcessDetail/style.css +1 -1
- package/dist/IKCalendar/index.es.js +1 -1
- package/dist/IKCalendar/index.umd.js +1 -1
- package/dist/IKCalendar/style.css +1 -1
- package/dist/IKDetailPreviewFiles/index.es.js +244 -1424
- package/dist/IKDetailPreviewFiles/index.umd.js +1 -1
- package/dist/IKDetailPreviewFiles/style.css +1 -1
- package/dist/IKExpandCollapse/index.es.js +143 -1323
- package/dist/IKExpandCollapse/index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKSearch/index.es.js +1 -1
- package/dist/IKSearch/index.umd.js +1 -1
- package/dist/IKSearch/style.css +1 -1
- package/dist/IKVerticalStepBar/index.es.js +190 -1370
- package/dist/IKVerticalStepBar/index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkBaseDialog/index.es.js +234 -0
- package/dist/IkBaseDialog/index.umd.js +1 -0
- package/dist/IkBaseDialog/style.css +1 -0
- package/dist/IkBtnSetting/index.es.js +336 -1517
- package/dist/IkBtnSetting/index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkIconPicker/index.es.js +2885 -1449
- package/dist/IkIconPicker/index.umd.js +5 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkPageFull/index.es.js +1678 -2859
- package/dist/IkPageFull/index.umd.js +3 -3
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPicker/index.es.js +1 -1
- package/dist/IkPicker/index.umd.js +1 -1
- package/dist/IkPicker/style.css +1 -1
- package/dist/IkPickerUser/index.es.js +255 -237
- package/dist/IkPickerUser/index.umd.js +1 -1
- package/dist/IkPickerUser/style.css +1 -1
- package/dist/IkSchedule/index.es.js +2181 -3362
- package/dist/IkSchedule/index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSvgIcon/index.es.js +125 -1310
- package/dist/IkSvgIcon/index.umd.js +1 -1
- package/dist/IkUploadFile/index.es.js +955 -596
- package/dist/IkUploadFile/index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/index.es.js +113 -110
- package/dist/IkUploadImage/index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +12914 -11169
- package/dist/index.umd.js +10 -6
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/IkSvgIcon/style.css +0 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Q,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("element-plus"),require("iking-utils"),require("vuedraggable"),require("axios")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","iking-utils","vuedraggable","axios"],n):(Q=typeof globalThis<"u"?globalThis:Q||self,n(Q.index={},Q.Vue,Q["element-plus"],Q["iking-utils"],Q.vuedraggable,Q.axios))})(this,function(Q,n,v,P,Pl,zl){"use strict";var E4=Object.defineProperty;var C4=(Q,n,v)=>n in Q?E4(Q,n,{enumerable:!0,configurable:!0,writable:!0,value:v}):Q[n]=v;var wt=(Q,n,v)=>(C4(Q,typeof n!="symbol"?n+"":n,v),v);const de=(t,e)=>{if(t.install=o=>{for(const l of[t,...Object.values(e??{})])o.component(l.name,l)},e)for(const[o,l]of Object.entries(e))t[o]=l;return t},lc=Object.prototype.toString,to=t=>lc.call(t)==="[object Object]",rc={copyValue:(t,e)=>{if(!to(t)||!to(e))throw new Error("参数异常");return Object.keys(t).forEach(o=>{Reflect.has(e,o)&&(t[o]=e[o])}),t},isObject:to};/*! Element Plus Icons Vue v2.3.1 */var ic=n.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),Fl=ic,ac=n.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),$l=ac,sc=n.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),cc=sc,dc=n.defineComponent({name:"Bottom",__name:"bottom",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),uc=dc,fc=n.defineComponent({name:"Calendar",__name:"calendar",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),Hl=fc,pc=n.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),hc=pc,mc=n.defineComponent({name:"Clock",__name:"clock",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),n.createElementVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),n.createElementVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),Ul=mc,gc=n.defineComponent({name:"Close",__name:"close",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),jl=gc,yc=n.defineComponent({name:"DCaret",__name:"d-caret",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),_c=yc,bc=n.defineComponent({name:"DeleteFilled",__name:"delete-filled",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),Wl=bc,kc=n.defineComponent({name:"Delete",__name:"delete",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),cn=kc,Ec=n.defineComponent({name:"Document",__name:"document",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),Cc=Ec,wc=n.defineComponent({name:"Download",__name:"download",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),Gl=wc,vc=n.defineComponent({name:"Location",__name:"location",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),n.createElementVNode("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),Sc=vc,Ac=n.defineComponent({name:"MoreFilled",__name:"more-filled",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),ql=Ac,xc=n.defineComponent({name:"Plus",__name:"plus",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),Yl=xc,Dc=n.defineComponent({name:"QuestionFilled",__name:"question-filled",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),Nc=Dc,Vc=n.defineComponent({name:"Refresh",__name:"refresh",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),no=Vc,Bc=n.defineComponent({name:"Search",__name:"search",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),Tc=Bc,Ic=n.defineComponent({name:"Top",__name:"top",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),Rc=Ic,Mc=n.defineComponent({name:"Upload",__name:"upload",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),Oc=Mc,Lc=n.defineComponent({name:"User",__name:"user",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),Pc=Lc,zc=n.defineComponent({name:"View",__name:"view",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),Fc=zc,$c=n.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Hc=$c,Uc=n.defineComponent({name:"ZoomIn",__name:"zoom-in",setup(t){return(e,o)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),jc=Uc,Pe=(t=>(t.input="input",t.area="area",t.number="number",t.select="select",t.date="date",t.datetime="datetime",t.checkbox="checkbox",t.radio="radio",t.treeselect="treeselect",t.choosePerson="choosePerson",t))(Pe||{}),Je=(t=>(t.year="year",t.month="month",t.date="date",t.dates="dates",t.datetime="datetime",t.week="week",t.datetimerange="datetimerange",t.daterange="daterange",t.monthrange="monthrange",t))(Je||{}),Ql=(t=>(t.center="center",t.left="left",t.right="right",t))(Ql||{});const Wc=n.defineComponent({__name:"index",props:{typeOption:{type:Object,default:()=>{}},list:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},handSetChild:{type:Function,default:()=>{}}},setup(t){const e=n.ref(!1),o=n.ref([]),{userList:l,depList:r,roleList:i,postList:a}=n.ref(data),s=u=>{o.value=u.list},d=n.ref(""),f=()=>{};return(u,g)=>{const m=n.resolveComponent("el-icon"),c=n.resolveComponent("el-input");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(c,{modelValue:d.value,"onUpdate:modelValue":g[1]||(g[1]=y=>d.value=y),placeholder:"请选择部门/人员/角色",onClick:g[2]||(g[2]=y=>e.value=!0)},{suffix:n.withCtx(()=>[n.createVNode(m,{onClick:g[0]||(g[0]=y=>e.value=!0)},{default:n.withCtx(()=>[n.createVNode(n.unref(Yl))]),_:1})]),_:1},8,["modelValue"]),n.createVNode(n.unref(on),{modelValue:o.value,"onUpdate:modelValue":g[3]||(g[3]=y=>o.value=y),show:e.value,"onUpdate:show":g[4]||(g[4]=y=>e.value=y),"dep-list":n.unref(r),"user-list":n.unref(l),"role-list":n.unref(i),"post-list":n.unref(a),"choose-type":["user"],tabs:["group"],"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},"prop-option":{name:"elementName",id:"elementId",type:"elementType"},"empty-text":"暂无数据",onHandChild:f,onOk:s},null,8,["modelValue","show","dep-list","user-list","role-list","post-list"])],64)}}}),v4="",X=(t,e)=>{const o=t.__vccOpts||t;for(const[l,r]of e)o[l]=r;return o},Gc=X(Wc,[["__scopeId","data-v-78a7b3d9"]]);function qc(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!n.isVNode(t)}const Yc=n.defineComponent({name:"IkSearchAuto",props:{list:{required:!0,type:Array,default:()=>[]},shadow:{type:String,default:"never"},immediate:{type:Boolean,default:!0},num:{type:Number,default:4},tab:{type:String,default:""}},emits:["handleChange"],setup(t,{emit:e,expose:o}){const l=n.ref(t.list),{list:r}=t,i=()=>{e("handleChange",l)},a=({key:h,placeholder:b,maxlength:_,minlength:w,disabled:S})=>n.createVNode(v.ElInput,{modelValue:l.value[h],"onUpdate:modelValue":O=>l.value[h]=O,clearable:!0,maxlength:_,minlength:w,disabled:S,onChange:()=>i(),placeholder:b||"全部"},null),s=({key:h,placeholder:b,max:_,min:w,disabled:S,precision:O,step:N=1})=>n.createVNode(v.ElInputNumber,{modelValue:l.value[h],"onUpdate:modelValue":C=>l.value[h]=C,clearable:!0,max:_,min:w,disabled:S,precision:O,step:N,onChange:()=>i(),placeholder:b||"全部"},null),d=({key:h,placeholder:b,disabled:_,options:w,multiple:S=!1,filterable:O=!0})=>n.createVNode(v.ElSelect,{modelValue:l.value[h],"onUpdate:modelValue":N=>l.value[h]=N,clearable:!0,disabled:_,multiple:S,filterable:O,onChange:()=>i(),placeholder:b||"全部"},{default:()=>[w==null?void 0:w.map(N=>n.createVNode(v.ElOption,{key:N.value,label:N.label,value:N.value},null))]}),f=({key:h,disabled:b,options:_})=>n.createVNode(v.ElRadioGroup,{modelValue:l.value[h],"onUpdate:modelValue":w=>l.value[h]=w,disabled:b,onChange:()=>i()},{default:()=>[_==null?void 0:_.map(w=>n.createVNode(v.ElRadio,{key:w.value,label:w.label,value:w.value},null))]}),u=({key:h,disabled:b,options:_,min:w,max:S})=>n.createVNode(v.ElCheckboxGroup,{modelValue:l.value[h],"onUpdate:modelValue":O=>l.value[h]=O,disabled:b,max:S,min:w,onChange:()=>i()},{default:()=>[_==null?void 0:_.map(O=>n.createVNode(v.ElCheckbox,{key:O.value,label:O.label,value:O.value},null))]}),g=({key:h,disabled:b,editable:_=!0,startPlaceholder:w="开始日期",endplaceholder:S="结束日期",dateType:O=Je.date,format:N,placeholder:C="请选择日期",popperclass:E,rangeSeparator:B="-",defaultValue:I,defaultTime:W,valueFormat:x,disabledDate:T=()=>!1})=>{let z=N;if(!z)switch(O){case Je.date:case Je.dates:z="YYYY-MM-DD";break;case Je.year:z="YYYY";break;case Je.month:z="YYYY-MM";break;case Je.week:z="YYYY-MM-DD";break;default:z="YYYY-MM-DD"}return n.createVNode(v.ElDatePicker,{modelValue:l.value[h],"onUpdate:modelValue":ee=>l.value[h]=ee,onChange:()=>i(),placeholder:C,disabled:b,type:O,editable:_,startPlaceholder:w,endPlaceholder:S,rangeSeparator:B,format:z,popperClass:E,defaultValue:I,defaultTime:W,valueFormat:x,disabledDate:T},null)},m=({key:h,options:b,multiple:_=!1,filterable:w=!0,nodeKey:S="id",props:O,highlightCurrent:N=!0,defaultExpandAll:C=!1,expandOnClickNode:E=!1,placeholder:B="全部",checkOnClickNode:I=!1,showCheckbox:W=!1,checkStrictly:x=!0,defaultCheckedKeys:T=[],currentNodeKey:z="",accordion:ee=!1})=>n.createVNode(v.ElTreeSelect,{modelValue:l.value[h],"onUpdate:modelValue":me=>l.value[h]=me,data:b,onChange:()=>i(),clearable:!0,multiple:_,props:O,placeholder:B,filterable:w,nodeKey:S,highlightCurrent:N,defaultExpandAll:C,expandOnClickNode:E,checkOnClickNode:I,showCheckbox:W,checkStrictly:x,defaultCheckedKeys:T,currentNodeKey:z,accordion:ee},null),c=({key:h,placeholder:b,typeOption:_,_list:w,data:S,handSetChild:O})=>n.createVNode(Gc,{typeOption:_,list:w,key:h,props:t,data:S,handSetChild:O,placeholder:b},null),y=h=>{switch(h.type){case"":case void 0:case Pe.input:return a(h);case Pe.number:return s(h);case Pe.select:return d(h);case Pe.checkbox:return u(h);case Pe.radio:return f(h);case Pe.date:return g(h);case Pe.treeselect:return m(h);case Pe.choosePerson:return c(h);default:return n.createVNode(n.Fragment,null,null)}},p=n.computed(()=>{const h=[];return r.forEach((b,_)=>{let w;if(!b)return[];h.push(n.createVNode(v.ElFormItem,{label:b.label,prop:b.key},qc(w=y(b))?w:{default:()=>[w]}))}),h});return()=>n.createVNode(n.Fragment,null,[p.value])}}),Qc={class:"ik-head-left"},Zc={class:"ik-head-right"},Xc=n.defineComponent({__name:"IKSearchHead",props:{rowData:{type:Array,default:()=>[]}},emits:["import","export","delete"],setup(t,{emit:e}){const o=e;return(l,r)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ik-head",t.rowData.length===0?"pack-up":"ik-unfold"])},[n.createElementVNode("div",Qc,n.toDisplayString(`已选${t.rowData.length}条数据`),1),n.createElementVNode("div",Zc,[n.createVNode(n.unref(v.ElButton),{class:"ik-head-icon",title:"查询",icon:n.unref(cn),onClick:r[0]||(r[0]=i=>o("delete",t.rowData))},null,8,["icon"]),n.createVNode(n.unref(v.ElButton),{class:"ik-head-icon",title:"导入",icon:n.unref(Rc),onClick:r[1]||(r[1]=i=>o("import",t.rowData))},null,8,["icon"]),n.createVNode(n.unref(v.ElButton),{class:"ik-head-icon",title:"导出",icon:n.unref(uc),onClick:r[2]||(r[2]=i=>o("export",t.rowData))},null,8,["icon"])])],2))}}),S4="",A4="",Zl=X(Xc,[["__scopeId","data-v-251f2b3d"]]),Kc={class:"ik-pack"},Jc=n.defineComponent({__name:"IKSearch",props:{enter:{type:Boolean,default:!0},minSpan:{type:Number,default:6},inline:{type:Boolean,default:!0},model:{type:Object,default:()=>{}},formRef:{type:Object,default:null},labelWidth:{type:Number,default:100},statusIcon:{type:Boolean,default:!1},title:{type:String,default:""},shadow:{type:String,default:"never"},showSearch:{type:Boolean,default:!0},list:{type:Array,default:()=>[]},rowData:{type:Array,default:()=>[]},num:{type:Number,default:4}},emits:["refresh","search","update:formRef","import","export","delete"],setup(t,{emit:e}){const o=t,l=e,r={},i={},a=n.ref([]),s=n.ref({...i}),d=n.ref(null),f=n.ref(!1);n.watch(a,(c,y)=>{const p=y.filter(h=>!c.includes(h));if(p.length){let h=!1;p.forEach(b=>{s.value[b]!==void 0&&(h=!0),s.value[b]=void 0}),h&&l("search",s.value)}}),o.list.forEach((c,y)=>{i[c.key]=i[c.value],y<o.num&&(r[c.key]=r[c.value],a.value.push(c.key))});const u=n.computed(()=>a.value.map(c=>o.list.find(y=>y.key===c)));n.computed(()=>{const{minSpan:c}=o;return u.value.length<4?c>8||c>6?c:6:c});const g=()=>{var c;try{(c=d.value)==null||c.resetFields(),l("refresh"),l("search",s.value)}catch{}},m=()=>{f.value=!f.value};return(c,y)=>(n.openBlock(),n.createElementBlock("div",null,[n.createVNode(Zl,{rowData:o.rowData,onDelete:y[0]||(y[0]=p=>l("delete",t.rowData)),onImport:y[1]||(y[1]=p=>l("import",t.rowData)),onExport:y[2]||(y[2]=p=>l("export",t.rowData))},null,8,["rowData"]),n.createVNode(n.unref(v.ElCard),{class:n.normalizeClass(["gl-search-card",f.value?"pack-up-search":"ik-unfold-search"]),shadow:t.shadow},n.createSlots({default:n.withCtx(()=>[n.createVNode(n.unref(v.ElForm),{ref_key:"_formRef",ref:d,inline:t.inline,model:s.value,"status-icon":t.statusIcon,"label-width":`${t.labelWidth}px`,class:"in-label",onKeydown:y[5]||(y[5]=n.withKeys(n.withModifiers(p=>l("search",s.value),["prevent"]),["enter"]))},{default:n.withCtx(()=>[n.createVNode(n.unref(v.ElRow),{gutter:10},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(u.value,(p,h)=>(n.openBlock(),n.createBlock(n.unref(v.ElCol),{key:h,class:n.normalizeClass(["el-col","el-col-24",`el-col-sm-${12*(p.col||1)*(h===u.value.length-1?2:1)}`,`el-col-md-${8*(p.col||1)*(h===u.value.length-1?2:1)}`,`el-col-lg-${6*(p.col||1)*(h===u.value.length-1?2:1)}`,`el-col-xl-${4*(p.col||1)*(h===u.value.length-1?2:1)}`,"is-guttered","el-col-4",`el-col-l-${4*(p.col||1)*(h===u.value.length-1?2:1)}`,`el-col-sl-${5*(p.col||1)*(h===u.value.length-1?2:1)}`,`${h===u.value.length-1?"last-col":""}`].join(" "))},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["last-with-btn",h===u.value.length-1?"last-form":""])},[p!=null&&p.slot?n.renderSlot(c.$slots,p==null?void 0:p.slot,{key:0},void 0,!0):n.createCommentVNode("v-if",!0),p!=null&&p.slot?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(n.unref(Yc),{key:1,onHandleChange:y[3]||(y[3]=b=>l("search",s.value)),list:[t.list[h]]},null,8,["list"])),h+1===u.value.length?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[t.showSearch?(n.openBlock(),n.createBlock(n.unref(v.ElButton),{key:0,class:"icon-more el-icon ml",title:"查询",icon:n.unref(Tc),onClick:y[4]||(y[4]=b=>l("search",s.value))},null,8,["icon"])):n.createCommentVNode("v-if",!0),n.createVNode(n.unref(v.ElButton),{icon:n.unref(no),class:"icon-more el-icon ml",title:"重置",onClick:g},null,8,["icon"]),n.createCommentVNode(` <el-popover\r
|
|
1
|
+
(function(Y,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("element-plus"),require("iking-utils"),require("vuedraggable"),require("axios")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","iking-utils","vuedraggable","axios"],o):(Y=typeof globalThis<"u"?globalThis:Y||self,o(Y.index={},Y.Vue,Y["element-plus"],Y["iking-utils"],Y.vuedraggable,Y.axios))})(this,function(Y,o,S,$,jl,Wl){"use strict";var Yk=Object.defineProperty;var Qk=(Y,o,S)=>o in Y?Yk(Y,o,{enumerable:!0,configurable:!0,writable:!0,value:S}):Y[o]=S;var Kt=(Y,o,S)=>(Qk(Y,typeof o!="symbol"?o+"":o,S),S);const de=(t,e)=>{if(t.install=n=>{for(const i of[t,...Object.values(e??{})])n.component(i.name,i)},e)for(const[n,i]of Object.entries(e))t[n]=i;return t},Ld=Object.prototype.toString,Qo=t=>Ld.call(t)==="[object Object]",Pd={copyValue:(t,e)=>{if(!Qo(t)||!Qo(e))throw new Error("参数异常");return Object.keys(t).forEach(n=>{Reflect.has(e,n)&&(t[n]=e[n])}),t},isObject:Qo};/*! Element Plus Icons Vue v2.3.1 */var $d=o.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),Gl=$d,zd=o.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),ql=zd,Fd=o.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Hd=Fd,Ud=o.defineComponent({name:"Bottom",__name:"bottom",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),jd=Ud,Wd=o.defineComponent({name:"Calendar",__name:"calendar",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),Yl=Wd,Gd=o.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Ql=Gd,qd=o.defineComponent({name:"Clock",__name:"clock",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),o.createElementVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),o.createElementVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),Zl=qd,Yd=o.defineComponent({name:"Close",__name:"close",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Kl=Yd,Qd=o.defineComponent({name:"DCaret",__name:"d-caret",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),Zd=Qd,Kd=o.defineComponent({name:"DeleteFilled",__name:"delete-filled",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),Xl=Kd,Xd=o.defineComponent({name:"Delete",__name:"delete",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),yn=Xd,Jd=o.defineComponent({name:"Document",__name:"document",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),eu=Jd,tu=o.defineComponent({name:"Download",__name:"download",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),Zo=tu,nu=o.defineComponent({name:"Location",__name:"location",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),o.createElementVNode("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),ou=nu,iu=o.defineComponent({name:"MoreFilled",__name:"more-filled",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),Jl=iu,lu=o.defineComponent({name:"Plus",__name:"plus",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),er=lu,ru=o.defineComponent({name:"QuestionFilled",__name:"question-filled",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),au=ru,su=o.defineComponent({name:"Refresh",__name:"refresh",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),Ko=su,cu=o.defineComponent({name:"Search",__name:"search",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),du=cu,uu=o.defineComponent({name:"Top",__name:"top",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),fu=uu,pu=o.defineComponent({name:"Upload",__name:"upload",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),hu=pu,mu=o.defineComponent({name:"User",__name:"user",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),gu=mu,_u=o.defineComponent({name:"View",__name:"view",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),tr=_u,yu=o.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),bu=yu,Eu=o.defineComponent({name:"ZoomIn",__name:"zoom-in",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),ku=Eu,Ye=(t=>(t.input="input",t.area="area",t.number="number",t.select="select",t.date="date",t.datetime="datetime",t.checkbox="checkbox",t.radio="radio",t.treeselect="treeselect",t.choosePerson="choosePerson",t))(Ye||{}),ht=(t=>(t.year="year",t.month="month",t.date="date",t.dates="dates",t.datetime="datetime",t.week="week",t.datetimerange="datetimerange",t.daterange="daterange",t.monthrange="monthrange",t))(ht||{}),nr=(t=>(t.center="center",t.left="left",t.right="right",t))(nr||{});const Cu=o.defineComponent({__name:"index",props:{typeOption:{type:Object,default:()=>{}},list:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},handSetChild:{type:Function,default:()=>{}}},setup(t){const e=o.ref(!1),n=o.ref([]),{userList:i,depList:l,roleList:r,postList:a}=o.ref(data),s=u=>{n.value=u.list},d=o.ref(""),f=()=>{};return(u,g)=>{const h=o.resolveComponent("el-icon"),c=o.resolveComponent("el-input");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(c,{modelValue:d.value,"onUpdate:modelValue":g[1]||(g[1]=_=>d.value=_),placeholder:"请选择部门/人员/角色",onClick:g[2]||(g[2]=_=>e.value=!0)},{suffix:o.withCtx(()=>[o.createVNode(h,{onClick:g[0]||(g[0]=_=>e.value=!0)},{default:o.withCtx(()=>[o.createVNode(o.unref(er))]),_:1})]),_:1},8,["modelValue"]),o.createVNode(o.unref(Mn),{modelValue:n.value,"onUpdate:modelValue":g[3]||(g[3]=_=>n.value=_),show:e.value,"onUpdate:show":g[4]||(g[4]=_=>e.value=_),"dep-list":o.unref(l),"user-list":o.unref(i),"role-list":o.unref(r),"post-list":o.unref(a),"choose-type":["user"],tabs:["group"],"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},"prop-option":{name:"elementName",id:"elementId",type:"elementType"},"empty-text":"暂无数据",onHandChild:f,onOk:s},null,8,["modelValue","show","dep-list","user-list","role-list","post-list"])],64)}}}),Kk="",K=(t,e)=>{const n=t.__vccOpts||t;for(const[i,l]of e)n[i]=l;return n},wu=K(Cu,[["__scopeId","data-v-78a7b3d9"]]);function vu(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!o.isVNode(t)}const Su=o.defineComponent({name:"IkSearchAuto",props:{list:{required:!0,type:Array,default:()=>[]},shadow:{type:String,default:"never"},immediate:{type:Boolean,default:!0},num:{type:Number,default:4},tab:{type:String,default:""}},emits:["handleChange"],setup(t,{emit:e,expose:n}){const i=o.ref(t.list),{list:l}=t,r=()=>{e("handleChange",i)},a=({key:m,placeholder:b,maxlength:y,minlength:w,disabled:v})=>o.createVNode(S.ElInput,{modelValue:i.value[m],"onUpdate:modelValue":O=>i.value[m]=O,clearable:!0,maxlength:y,minlength:w,disabled:v,onChange:()=>r(),placeholder:b||"全部"},null),s=({key:m,placeholder:b,max:y,min:w,disabled:v,precision:O,step:x=1})=>o.createVNode(S.ElInputNumber,{modelValue:i.value[m],"onUpdate:modelValue":C=>i.value[m]=C,clearable:!0,max:y,min:w,disabled:v,precision:O,step:x,onChange:()=>r(),placeholder:b||"全部"},null),d=({key:m,placeholder:b,disabled:y,options:w,multiple:v=!1,filterable:O=!0})=>o.createVNode(S.ElSelect,{modelValue:i.value[m],"onUpdate:modelValue":x=>i.value[m]=x,clearable:!0,disabled:y,multiple:v,filterable:O,onChange:()=>r(),placeholder:b||"全部"},{default:()=>[w==null?void 0:w.map(x=>o.createVNode(S.ElOption,{key:x.value,label:x.label,value:x.value},null))]}),f=({key:m,disabled:b,options:y})=>o.createVNode(S.ElRadioGroup,{modelValue:i.value[m],"onUpdate:modelValue":w=>i.value[m]=w,disabled:b,onChange:()=>r()},{default:()=>[y==null?void 0:y.map(w=>o.createVNode(S.ElRadio,{key:w.value,label:w.label,value:w.value},null))]}),u=({key:m,disabled:b,options:y,min:w,max:v})=>o.createVNode(S.ElCheckboxGroup,{modelValue:i.value[m],"onUpdate:modelValue":O=>i.value[m]=O,disabled:b,max:v,min:w,onChange:()=>r()},{default:()=>[y==null?void 0:y.map(O=>o.createVNode(S.ElCheckbox,{key:O.value,label:O.label,value:O.value},null))]}),g=({key:m,disabled:b,editable:y=!0,startPlaceholder:w="开始日期",endplaceholder:v="结束日期",dateType:O=ht.date,format:x,placeholder:C="请选择日期",popperclass:k,rangeSeparator:B="-",defaultValue:V,defaultTime:P,valueFormat:T,disabledDate:F=()=>!1})=>{let W=x;if(!W)switch(O){case ht.date:case ht.dates:W="YYYY-MM-DD";break;case ht.year:W="YYYY";break;case ht.month:W="YYYY-MM";break;case ht.week:W="YYYY-MM-DD";break;default:W="YYYY-MM-DD"}return o.createVNode(S.ElDatePicker,{modelValue:i.value[m],"onUpdate:modelValue":M=>i.value[m]=M,onChange:()=>r(),placeholder:C,disabled:b,type:O,editable:y,startPlaceholder:w,endPlaceholder:v,rangeSeparator:B,format:W,popperClass:k,defaultValue:V,defaultTime:P,valueFormat:T,disabledDate:F},null)},h=({key:m,options:b,multiple:y=!1,filterable:w=!0,nodeKey:v="id",props:O,highlightCurrent:x=!0,defaultExpandAll:C=!1,expandOnClickNode:k=!1,placeholder:B="全部",checkOnClickNode:V=!1,showCheckbox:P=!1,checkStrictly:T=!0,defaultCheckedKeys:F=[],currentNodeKey:W="",accordion:M=!1})=>o.createVNode(S.ElTreeSelect,{modelValue:i.value[m],"onUpdate:modelValue":ie=>i.value[m]=ie,data:b,onChange:()=>r(),clearable:!0,multiple:y,props:O,placeholder:B,filterable:w,nodeKey:v,highlightCurrent:x,defaultExpandAll:C,expandOnClickNode:k,checkOnClickNode:V,showCheckbox:P,checkStrictly:T,defaultCheckedKeys:F,currentNodeKey:W,accordion:M},null),c=({key:m,placeholder:b,typeOption:y,_list:w,data:v,handSetChild:O})=>o.createVNode(wu,{typeOption:y,list:w,key:m,props:t,data:v,handSetChild:O,placeholder:b},null),_=m=>{switch(m.type){case"":case void 0:case Ye.input:return a(m);case Ye.number:return s(m);case Ye.select:return d(m);case Ye.checkbox:return u(m);case Ye.radio:return f(m);case Ye.date:return g(m);case Ye.treeselect:return h(m);case Ye.choosePerson:return c(m);default:return o.createVNode(o.Fragment,null,null)}},p=o.computed(()=>{const m=[];return l.forEach((b,y)=>{let w;if(!b)return[];m.push(o.createVNode(S.ElFormItem,{label:b.label,prop:b.key},vu(w=_(b))?w:{default:()=>[w]}))}),m});return()=>o.createVNode(o.Fragment,null,[p.value])}}),Au={class:"ik-head-left"},xu={class:"ik-head-right"},Du=o.defineComponent({__name:"IKSearchHead",props:{rowData:{type:Array,default:()=>[]}},emits:["import","export","delete"],setup(t,{emit:e}){const n=e;return(i,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["ik-head",t.rowData.length===0?"pack-up":"ik-unfold"])},[o.createElementVNode("div",Au,o.toDisplayString(`已选${t.rowData.length}条数据`),1),o.createElementVNode("div",xu,[o.createVNode(o.unref(S.ElButton),{class:"ik-head-icon",title:"查询",icon:o.unref(yn),onClick:l[0]||(l[0]=r=>n("delete",t.rowData))},null,8,["icon"]),o.createVNode(o.unref(S.ElButton),{class:"ik-head-icon",title:"导入",icon:o.unref(fu),onClick:l[1]||(l[1]=r=>n("import",t.rowData))},null,8,["icon"]),o.createVNode(o.unref(S.ElButton),{class:"ik-head-icon",title:"导出",icon:o.unref(jd),onClick:l[2]||(l[2]=r=>n("export",t.rowData))},null,8,["icon"])])],2))}}),Xk="",Jk="",or=K(Du,[["__scopeId","data-v-251f2b3d"]]),Nu={class:"ik-pack"},Vu=o.defineComponent({__name:"IKSearch",props:{enter:{type:Boolean,default:!0},minSpan:{type:Number,default:6},inline:{type:Boolean,default:!0},model:{type:Object,default:()=>{}},formRef:{type:Object,default:null},labelWidth:{type:Number,default:100},statusIcon:{type:Boolean,default:!1},title:{type:String,default:""},shadow:{type:String,default:"never"},showSearch:{type:Boolean,default:!0},list:{type:Array,default:()=>[]},rowData:{type:Array,default:()=>[]},num:{type:Number,default:4}},emits:["refresh","search","update:formRef","import","export","delete"],setup(t,{emit:e}){const n=t,i=e,l={},r={},a=o.ref([]),s=o.ref({...r}),d=o.ref(null),f=o.ref(!1);o.watch(a,(c,_)=>{const p=_.filter(m=>!c.includes(m));if(p.length){let m=!1;p.forEach(b=>{s.value[b]!==void 0&&(m=!0),s.value[b]=void 0}),m&&i("search",s.value)}}),n.list.forEach((c,_)=>{r[c.key]=r[c.value],_<n.num&&(l[c.key]=l[c.value],a.value.push(c.key))});const u=o.computed(()=>a.value.map(c=>n.list.find(_=>_.key===c)));o.computed(()=>{const{minSpan:c}=n;return u.value.length<4?c>8||c>6?c:6:c});const g=()=>{var c;try{(c=d.value)==null||c.resetFields(),i("refresh"),i("search",s.value)}catch{}},h=()=>{f.value=!f.value};return(c,_)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(or,{rowData:n.rowData,onDelete:_[0]||(_[0]=p=>i("delete",t.rowData)),onImport:_[1]||(_[1]=p=>i("import",t.rowData)),onExport:_[2]||(_[2]=p=>i("export",t.rowData))},null,8,["rowData"]),o.createVNode(o.unref(S.ElCard),{class:o.normalizeClass(["gl-search-card",f.value?"pack-up-search":"ik-unfold-search"]),shadow:t.shadow},o.createSlots({default:o.withCtx(()=>[o.createVNode(o.unref(S.ElForm),{ref_key:"_formRef",ref:d,inline:t.inline,model:s.value,"status-icon":t.statusIcon,"label-width":`${t.labelWidth}px`,class:"in-label",onKeydown:_[5]||(_[5]=o.withKeys(o.withModifiers(p=>i("search",s.value),["prevent"]),["enter"]))},{default:o.withCtx(()=>[o.createVNode(o.unref(S.ElRow),{gutter:10},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(p,m)=>(o.openBlock(),o.createBlock(o.unref(S.ElCol),{key:m,class:o.normalizeClass(["el-col","el-col-24",`el-col-sm-${12*(p.col||1)*(m===u.value.length-1?2:1)}`,`el-col-md-${8*(p.col||1)*(m===u.value.length-1?2:1)}`,`el-col-lg-${6*(p.col||1)*(m===u.value.length-1?2:1)}`,`el-col-xl-${4*(p.col||1)*(m===u.value.length-1?2:1)}`,"is-guttered","el-col-4",`el-col-l-${4*(p.col||1)*(m===u.value.length-1?2:1)}`,`el-col-sl-${5*(p.col||1)*(m===u.value.length-1?2:1)}`,`${m===u.value.length-1?"last-col":""}`].join(" "))},{default:o.withCtx(()=>[o.createElementVNode("div",{class:o.normalizeClass(["last-with-btn",m===u.value.length-1?"last-form":""])},[p!=null&&p.slot?o.renderSlot(c.$slots,p==null?void 0:p.slot,{key:0},void 0,!0):o.createCommentVNode("v-if",!0),p!=null&&p.slot?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createBlock(o.unref(Su),{key:1,onHandleChange:_[3]||(_[3]=b=>i("search",s.value)),list:[t.list[m]]},null,8,["list"])),m+1===u.value.length?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[t.showSearch?(o.openBlock(),o.createBlock(o.unref(S.ElButton),{key:0,class:"icon-more el-icon ml",title:"查询",icon:o.unref(du),onClick:_[4]||(_[4]=b=>i("search",s.value))},null,8,["icon"])):o.createCommentVNode("v-if",!0),o.createVNode(o.unref(S.ElButton),{icon:o.unref(Ko),class:"icon-more el-icon ml",title:"重置",onClick:g},null,8,["icon"]),o.createCommentVNode(` <el-popover\r
|
|
2
2
|
placement="right"\r
|
|
3
3
|
popper-class="gl-search-form-popper"\r
|
|
4
4
|
width="100"\r
|
|
@@ -23,20 +23,20 @@
|
|
|
23
23
|
</el-checkbox>\r
|
|
24
24
|
</el-checkbox-group>\r
|
|
25
25
|
</template>\r
|
|
26
|
-
</el-popover> `)],64)):
|
|
26
|
+
</el-popover> `)],64)):o.createCommentVNode("v-if",!0)],2)]),_:2},1032,["class"]))),128))]),_:3})]),_:3},8,["inline","model","status-icon","label-width"])]),_:2},[t.title?{name:"header",fn:o.withCtx(()=>[o.createElementVNode("h2",null,o.toDisplayString(t.title),1)]),key:"0"}:void 0]),1032,["class","shadow"]),o.createElementVNode("div",Nu,[o.createElementVNode("div",{class:"ik-pack-up",onClick:h},[o.createVNode(o.unref(S.ElIcon),{size:"16"},{default:o.withCtx(()=>[o.withDirectives(o.createVNode(o.unref(Hd),null,null,512),[[o.vShow,!f.value]])]),_:1})])])]))}}),e5="",t5="",Bu=de(K(Vu,[["__scopeId","data-v-403809ec"]])),Tu=de(or),Ru={class:"content"},Iu={class:"top"},Ou=["onClick"],Mu=["id"],Lu=["onClick"],Pu=o.defineComponent({__name:"IKVerticalStepBar",props:{active:{type:String,default:""},list:{type:Array,default:()=>[]},needClick:{type:Boolean,default:!1},propsField:{type:Object,default:()=>({name:"name",children:"children"})}},emits:["click","update:active"],setup(t,{emit:e}){const n=t,i=e,l=o.computed(()=>Number(n.active.indexOf("-")>0?n.active.split("-")[0]:n.active)),r=o.computed(()=>n.active.indexOf("-")>0?Number(n.active.split("-")[1]):0),a=h=>{let c="",_=h+1;return _<l.value?c="before-bg":_===l.value?c="active-bg":_>l.value&&(c="after-bg"),`${c} index`},s=h=>{let c="",_=h+1;return _<l.value?c="before-text":_===l.value?c="active-text":_>l.value&&(c="after-text"),`${c} text`},d=h=>{let c="",_=h+1;return _<l.value?c="before-style":_<n.list.length&&(c="after-style"),`${c} bottom`},f=(h,c)=>{let _="",p=h+1,m=c+1;return p<l.value?_="before-text":p===l.value?m<r.value?_="before-text":m===r.value?_="active-text":m>r.value&&(_="after-text"):p>l.value&&(_="after-text"),`${_} child-text`},u=(h,c)=>{n.needClick&&(h[n.propsField.children]||(i("update:active",c+""),i("click",h)))},g=(h,c)=>{h.show=!h.show;let _=document.getElementById(`children${c}`);h.show?_.style.display="none":_.style.display="block"};return(h,c)=>(o.openBlock(),o.createElementBlock("div",Ru,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.list,(_,p)=>{var m,b;return o.openBlock(),o.createElementBlock("div",{class:"line-block",key:p},[o.createElementVNode("div",Iu,[o.createElementVNode("div",{class:o.normalizeClass(a(p))},o.toDisplayString(p+1),3),o.createElementVNode("div",{class:o.normalizeClass(s(p)),style:o.normalizeStyle(t.needClick?"cursor: pointer;":""),onClick:y=>u(_,p+1)},[o.createTextVNode(o.toDisplayString(_[t.propsField.name])+" ",1),o.createCommentVNode(` <i\r
|
|
27
27
|
v-if="item[propsField.children]?.length && !item.show"\r
|
|
28
28
|
class="ikapprove icon-a-putongjiantouzhankai"\r
|
|
29
29
|
@click="changeShow(item, index)"\r
|
|
30
|
-
></i> `),(
|
|
30
|
+
></i> `),(m=_[t.propsField.children])!=null&&m.length&&!_.show?(o.openBlock(),o.createBlock(o.unref(me),{key:0,class:"ikapprove",onClick:y=>g(_,p),name:"iksvg_zhankai"},null,8,["onClick"])):o.createCommentVNode("v-if",!0),o.createCommentVNode(` <i\r
|
|
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> `),(b=y[t.propsField.children])!=null&&b.length&&y.show?(n.openBlock(),n.createBlock(n.unref(_e),{key:1,class:"ikapprove",onClick:_=>g(y,p),name:"iksvg_shouqi"},null,8,["onClick"])):n.createCommentVNode("v-if",!0)],14,ld)]),n.createElementVNode("ul",{class:n.normalizeClass(d(p))},[n.createElementVNode("div",{id:`children${p}`},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(y[t.propsField.children],(_,w)=>(n.openBlock(),n.createElementBlock("li",{class:n.normalizeClass(f(p,w)),style:n.normalizeStyle(t.needClick?"cursor: pointer;":""),key:w,onClick:S=>u(_,p+1+"-"+(w+1))},n.toDisplayString(_.name),15,id))),128))],8,rd)],2)])}),128))]))}}),V4="",sd=de(X(ad,[["__scopeId","data-v-240cff4f"]])),T4="",oo=t=>(n.pushScopeId("data-v-41886e6b"),t=t(),n.popScopeId(),t),cd={class:"approveProcess",id:"approveProcess"},dd=["id"],ud={class:"topBlock"},fd={class:"left"},pd={class:"nodeBg"},hd=["src"],md={class:"right"},gd={class:"topInfo"},yd={key:0},_d={key:0,class:"main-text"},bd={class:"name"},kd={key:0},Ed={key:0},Cd={key:1},wd=oo(()=>n.createElementVNode("span",{class:"red",style:{margin:"0px 5px"}},"退回至",-1)),vd={key:0},Sd={key:0},Ad={key:1},xd={key:1},Dd=oo(()=>n.createElementVNode("div",{class:"main-text"},"抄送人员",-1)),Nd={class:"name"},Vd={key:0},Bd={style:{color:"#000"}},Td={class:"blue",style:{"margin-left":"5px","font-size":"12px"}},Id={key:1},Rd={key:0,class:"blue",style:{"font-size":"12px"}},Md={key:1},Od={key:0,class:"blue",style:{"font-size":"12px"}},Ld={key:1,class:"blue",style:{"font-size":"12px"}},Pd={class:"time"},zd={key:0},Fd={key:1},$d=["onClick"],Hd=["onClick"],Ud={key:0,class:"opinion"},jd={key:0},Wd={key:1},Gd=oo(()=>n.createElementVNode("span",null,"添加审批人",-1)),qd={style:{color:"var(--el-text-color-primary)","margin-left":"8px"}},Yd={key:1,class:"annex"},Qd=["onClick"],Zd={class:"text"},Xd={class:"fileName"},Kd={class:"size"},Jd={key:2,class:"annexImage"},eu={key:3,class:"approveList"},tu={class:"nodeBg-list"},nu=["src"],ou={key:1,class:"ikapprove ikapprove-duihao2 green read"},lu=["title"],ru={name:"IkingApprovalProcessDetail"},iu=n.defineComponent({...ru,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:""}},emits:["preview"],setup(t,{emit:e}){const o=t,l=n.reactive({nodeType:{发起人节点:"1",审批节点:"2",办理节点:"3",抄送节点:"4",...o.defaultNodeType},statusOption:{发起:"1",等待:"2",同意:"3",拒绝:"4",转交:"5",加签:"6",退回:"7",撤销:"8",评论:"9",...o.defaultStatus},listData:[],defaultFile:{id:"id",nodeId:"nodeId",nodeType:"nodeType",nodeTypeName:"nodeTypeName",approveStatus:"approveStatus",approveStatusName:"approveStatusName",originator:"originator",operationTime:"operationTime",approveType:"approveType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approveOpinion:"approveOpinion",countersignPer:"countersignPer",backToRecordNodeName:"backToRecordNodeName",attachment:"attachment",attachmentParam:{id:"id",originName:"originName",url:"url",suffix:"suffix",size:"size"},attachmentImg:"attachmentImg",returnNode:"returnNode",returnNodeName:"returnNodeName",lineType:"lineType",allRead:"allRead",read:"read",approvePersonList:[{id:"id",name:"name",approveState:"approveState",approveTime:"approveTime",approveOpinion:"approveOpinion",userAvatar:"userAvatar",accomplish:"accomplish"}],...o.defaultFieldMap}});n.watch(()=>o.dataList,c=>{c&&(n.nextTick(()=>{l.listData=c}),setTimeout(()=>{o.returnNode.length&&r()},500))},{deep:!0}),n.onMounted(()=>{o.dataList.length&&(l.listData=o.dataList,setTimeout(()=>{o.returnNode.length&&r()},500))});const r=()=>{let c=null;if(o!=null&&o.returnNode)for(c of o==null?void 0:o.returnNode){if(isNaN(c[1]))return;let y=Array.from(new Array(c[1]+1).keys()).slice(c[0]);n.nextTick(()=>{i(y)})}},i=c=>{var S,O,N;let y=document.createElement("div"),p=document.getElementById("approveProcess"),h=0,b=(S=document.getElementById(`${c[0]}`))==null?void 0:S.offsetWidth,_=(O=document.getElementById(`${c[0]}`))==null?void 0:O.offsetLeft,w=(N=document.getElementById(`${c[0]}`))==null?void 0:N.offsetTop;c.forEach(C=>{let E=document.getElementById(`${C}`);h+=E.offsetHeight}),setTimeout(()=>{y.style.width=b+32+"px",y.style.height=h+"px",y.style.background="#f9f9f9",y.style.position="absolute",y.style.top=w-16+"px",y.style.left=_-16+"px",y.style.zIndex=-1,p==null||p.appendChild(y)})},a=(c,y)=>{var b;let p=(b=l.listData)==null?void 0:b.findIndex(_=>_.lineType=="dashed"),h="";switch(c){case l.statusOption.发起:h="ikapprove-duihao2 green";break;case l.statusOption.等待:h=p==y?"ikapprove-dengdai orange":"";break;case l.statusOption.同意:h="ikapprove-duihao2 green";break;case l.statusOption.拒绝:h="ikapprove-jujue red";break;case l.statusOption.转交:h="ikapprove-zhuanjiao blue";break;case l.statusOption.加签:h="ikapprove-tianjia blue";break;case l.statusOption.退回:h="ikapprove-s_fanhui2 red";break;case l.statusOption.评论:h="ikapprove-pinglun1 blue";break}return`ikapprove ${h}`},s=(c,y)=>{let p="";switch(c){case l.nodeType.发起人节点:p="ikapprove-ziyuan";break;case l.nodeType.审批节点:y&&y.length==1?p="ikapprove-ziyuan":p="ikapprove-shenpi";break;case l.nodeType.办理节点:p="ikapprove-bianji";break;case l.nodeType.抄送节点:p="ikapprove-chaosong";break;default:p="ikapprove-ziyuan"}return`ikapprove ${p}`},d=c=>{let y="";return c=="jpg"||c=="jpeg"||c=="png"?y="ikapprove-tupian":c=="doc"||c=="docx"?y="ikapprove-WORD":c=="xls"||c=="xlsx"?y="ikapprove-EXCEL":c=="ppt"||c=="pptx"?y="ikapprove-pptcopy":c=="pdf"?y="ikapprove-PDF":c=="rar"||c=="zip"?y="ikapprove-fujian":c=="txt"||c=="zip"?y="ikapprove-TXTCopy":c=="mp3"||c=="wma"||c=="m4a"?y="ikapprove-yinpinwenjian":(c=="avi"||c=="wmv"||c=="mp4"||c=="mov")&&(y="ikapprove-shipinwenjian"),`icon ikapprove ${y}`},f=e,u=c=>{f("preview",c),o.local||window.open(m(c[l.defaultFile.attachmentParam.url]))},g=(c,y)=>{c.show=!c.show;let p=document.getElementById(`${c[l.defaultFile.nodeId]}`),h=Array.from(p==null?void 0:p.getElementsByClassName("approveList"));for(let b of h)b.style.display=y},m=c=>{let y="";return c.includes("http")||c.includes("https")?y=c:y=o.fileUrl+c,y};return(c,y)=>{const p=n.resolveComponent("el-image");return n.openBlock(),n.createElementBlock("div",cd,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.listData,(h,b)=>{var _,w,S,O,N,C,E,B,I,W;return n.openBlock(),n.createElementBlock("div",{class:"approveBlock",id:h[l.defaultFile.nodeId],key:h[l.defaultFile.nodeId]},[n.createElementVNode("div",ud,[n.createElementVNode("div",fd,[n.createElementVNode("span",pd,[n.createCommentVNode(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),((_=h[l.defaultFile.approvePersonList])==null?void 0:_.length)==1&&h[l.defaultFile.approvePersonList][0].userAvatar?(n.openBlock(),n.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:m(h[l.defaultFile.approvePersonList][0].userAvatar),alt:""},null,8,hd)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createCommentVNode(" 否则显示对应节点 "),n.createElementVNode("i",{class:n.normalizeClass(s(h[l.defaultFile.nodeType],h[l.defaultFile.approvePersonList]))},null,2)],2112)),n.createCommentVNode(" 审批状态图标 "),n.createElementVNode("i",{class:n.normalizeClass(a(h[l.defaultFile.approveStatus],b))},null,2)])]),n.createElementVNode("div",md,[n.createElementVNode("div",gd,[n.createElementVNode("div",null,[n.createCommentVNode(" 不是抄送节点 "),h[l.defaultFile.nodeType]!=l.nodeType.抄送节点?(n.openBlock(),n.createElementBlock("div",yd,[n.createCommentVNode(" 撤销,评论不显示节点名称 "),h[l.defaultFile.approveStatus]!=l.statusOption.撤销&&h[l.defaultFile.approveStatus]!=l.statusOption.评论?(n.openBlock(),n.createElementBlock("div",_d,n.toDisplayString(h[l.defaultFile.nodeTypeName]),1)):n.createCommentVNode("v-if",!0),n.createCommentVNode(" 名字+审批状态 "),n.createElementVNode("div",bd,[n.createCommentVNode(" 已审批节点文本 "),h[l.defaultFile.lineType]=="solid"?(n.openBlock(),n.createElementBlock("div",kd,[n.createElementVNode("span",{style:n.normalizeStyle({color:h[l.defaultFile.approveStatus]==l.statusOption.评论?"#000":""})},n.toDisplayString(h[l.defaultFile.originator]),5),n.createCommentVNode(" 发起,退回不显示状态 "),h[l.defaultFile.approveStatusName]&&h[l.defaultFile.approveStatus]!=l.statusOption.发起&&h[l.defaultFile.approveStatus]!=l.statusOption.退回?(n.openBlock(),n.createElementBlock("span",Ed,n.toDisplayString(h[l.defaultFile.approveStatus]==l.statusOption.评论?" 添加了评论":"("+h[l.defaultFile.approveStatusName]+")"),1)):n.createCommentVNode("v-if",!0),n.createCommentVNode(" 退回状态显示 "),h[l.defaultFile.approveStatus]==l.statusOption.退回?(n.openBlock(),n.createElementBlock("span",Cd,[wd,n.createTextVNode(n.toDisplayString(h[l.defaultFile.backToRecordNodeName]),1)])):n.createCommentVNode("v-if",!0)])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createCommentVNode(" 待审批节点 "),n.createElementVNode("div",null,[((w=h[l.defaultFile.approvePersonList])==null?void 0:w.length)==1?(n.openBlock(),n.createElementBlock("span",vd,[n.createTextVNode(n.toDisplayString(h[l.defaultFile.originator])+" ",1),h[l.defaultFile.approveStatus]==l.statusOption.等待?(n.openBlock(),n.createElementBlock("span",Sd,n.toDisplayString(`(${h[l.defaultFile.approveStatusName]})`),1)):n.createCommentVNode("v-if",!0)])):(n.openBlock(),n.createElementBlock("span",Ad,n.toDisplayString(((S=h[l.defaultFile.approvePersonList])==null?void 0:S.length)+"人"+h[l.defaultFile.approveTypeName]),1))])],2112))])])):(n.openBlock(),n.createElementBlock("div",xd,[Dd,n.createElementVNode("div",Nd,[n.createCommentVNode(" 抄送一人时 "),((O=h[l.defaultFile.approvePersonList])==null?void 0:O.length)==1?(n.openBlock(),n.createElementBlock("span",Vd,[n.createElementVNode("span",null,[n.createTextVNode("已抄送给 "),n.createElementVNode("span",Bd,n.toDisplayString(h[l.defaultFile.approvePersonList][0].userName),1)]),n.createElementVNode("span",Td,n.toDisplayString(h[l.defaultFile.approvePersonList][0].status==="END"?"已读":"未读"),1)])):n.createCommentVNode("v-if",!0),n.createCommentVNode(" 抄送多人时 "),((N=h[l.defaultFile.approvePersonList])==null?void 0:N.length)>1?(n.openBlock(),n.createElementBlock("span",Id,[n.createTextVNode(n.toDisplayString(`已抄送${(C=h[l.defaultFile.approvePersonList])==null?void 0:C.length}人`)+" ",1),h[l.defaultFile.allRead]?(n.openBlock(),n.createElementBlock("span",Rd," 全部已读 ")):(n.openBlock(),n.createElementBlock("span",Md,[h[l.defaultFile.read]?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("span",Od," 全部未读 ")),h[l.defaultFile.read]?(n.openBlock(),n.createElementBlock("span",Ld,n.toDisplayString(h[l.defaultFile.read])+"人已读 ",1)):n.createCommentVNode("v-if",!0)]))])):n.createCommentVNode("v-if",!0)])]))]),n.createElementVNode("div",Pd,[n.createCommentVNode(" 不是抄送节点,展示时间 "),h[l.defaultFile.nodeType]!=l.nodeType.抄送节点?(n.openBlock(),n.createElementBlock("span",zd,n.toDisplayString(h[l.defaultFile.operationTime]),1)):n.createCommentVNode("v-if",!0),n.createCommentVNode(" 是抄送节点,并且抄送人员大于1时,展示图标 "),h[l.defaultFile.nodeType]==l.nodeType.抄送节点&&((E=h[l.defaultFile.approvePersonList])==null?void 0:E.length)>1?(n.openBlock(),n.createElementBlock("span",Fd,[h!=null&&h.show?(n.openBlock(),n.createElementBlock("i",{key:0,class:"ikapprove ikapprove-a-putongjiantouzhankai",onClick:x=>g(h,"grid")},null,8,$d)):(n.openBlock(),n.createElementBlock("i",{key:1,onClick:x=>g(h,"none"),class:"ikapprove ikapprove-a-putongjiantoushouqi"},null,8,Hd))])):n.createCommentVNode("v-if",!0)])])])]),n.createElementVNode("div",{class:"bottomBlock",style:n.normalizeStyle({borderLeft:b==l.listData.length-1?"":`2px ${h[l.defaultFile.lineType]} var(--el-border-color)`})},[n.createCommentVNode(" 审批意见 "),h[l.defaultFile.approveOpinion]||h[l.defaultFile.approveStatus]==l.statusOption.加签?(n.openBlock(),n.createElementBlock("div",Ud,[h[l.defaultFile.approveOpinion]?(n.openBlock(),n.createElementBlock("span",jd,n.toDisplayString(h[l.defaultFile.approveOpinion]),1)):n.createCommentVNode("v-if",!0),h[l.defaultFile.approveStatus]==l.statusOption.加签?(n.openBlock(),n.createElementBlock("span",Wd,[Gd,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(h[l.defaultFile.countersignPer],(x,T)=>(n.openBlock(),n.createElementBlock("span",qd,n.toDisplayString(x==null?void 0:x.userName)+n.toDisplayString(T<h[l.defaultFile.countersignPer].length-1?"、":""),1))),256))])):n.createCommentVNode("v-if",!0)])):n.createCommentVNode("v-if",!0),n.createCommentVNode(" 附件 "),(B=h[l.defaultFile.attachment])!=null&&B.length?(n.openBlock(),n.createElementBlock("div",Yd,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(h[l.defaultFile.attachment],(x,T)=>(n.openBlock(),n.createElementBlock("div",{class:"file-card",key:T,onClick:z=>u(x)},[n.createElementVNode("div",{class:n.normalizeClass(d(x[l.defaultFile.attachmentParam.suffix]))},null,2),n.createElementVNode("div",Zd,[n.createElementVNode("div",Xd,n.toDisplayString(x[l.defaultFile.attachmentParam.originName]),1),n.createElementVNode("div",Kd,n.toDisplayString((x[l.defaultFile.attachmentParam.size]/1024/1024).toFixed(3))+"MB ",1)])],8,Qd))),128))])):n.createCommentVNode("v-if",!0),n.createCommentVNode(" 附件图片 "),(I=h[l.defaultFile.attachmentImg])!=null&&I.length?(n.openBlock(),n.createElementBlock("div",Jd,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(h[l.defaultFile.attachmentImg],(x,T)=>(n.openBlock(),n.createElementBlock("div",{class:"image",key:T},[n.createVNode(p,{src:m(x),fit:"cover","z-index":"9999","zoom-rate":1.2,alt:m(x)},null,8,["src","alt"])]))),128))])):n.createCommentVNode("v-if",!0),n.createCommentVNode(" 抄送节点或是等待审批状态并且列表长度大于1 "),(h[l.defaultFile.nodeType]==l.nodeType.抄送节点||h[l.defaultFile.approveStatus]==l.statusOption.等待)&&((W=h[l.defaultFile.approvePersonList])==null?void 0:W.length)>1?(n.openBlock(),n.createElementBlock("div",eu,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(h[l.defaultFile.approvePersonList],x=>(n.openBlock(),n.createElementBlock("div",{class:"perBlock",key:x.userName},[n.createElementVNode("span",tu,[x.userAvatar?(n.openBlock(),n.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:m(x.userAvatar),alt:""},null,8,nu)):n.createCommentVNode("v-if",!0),n.createElementVNode("span",null,n.toDisplayString(x.userName.slice(-2)),1),x.status==="END"?(n.openBlock(),n.createElementBlock("i",ou)):n.createCommentVNode("v-if",!0)]),n.createElementVNode("div",{class:"main-text",title:x.userName},n.toDisplayString(x.userName),9,lu)]))),128))])):n.createCommentVNode("v-if",!0)],4)],8,dd)}),128))])}}}),I4="",au=de(X(iu,[["__scopeId","data-v-41886e6b"]])),su=t=>(n.pushScopeId("data-v-46507da1"),t=t(),n.popScopeId(),t),cu={class:"approveProcess",id:"approveProcess"},du={class:"node"},uu={class:"nodeBg"},fu={class:"info"},pu={class:"explain"},hu={key:0},mu={key:0},gu={key:1},yu={key:0},_u={key:1},bu={class:"personlist"},ku={style:{width:"58px"}},Eu={class:"avatar"},Cu=["src"],wu={key:1,class:"nodeBg"},vu=["onClick"],Su=["title"],Au={key:0,class:"sign"},xu={key:0},Du=["onClick"],Nu={key:0,class:"required"},Vu=su(()=>n.createElementVNode("i",{class:"ikapprove ikapprove-xinzeng"},null,-1)),Bu={name:"IkApprovalProcess"},Tu=n.defineComponent({...Bu,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(t,{expose:e}){const o=t,l=P.ikStore.local.getItem("token")||"Bearer iking",r=n.reactive({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",...o.defaultNodeType},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...o.statusWithoutApprover},defaultFile:{id:"id",nodeId:"sortOrder",nodeType:"type",nodeTypeName:"name",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",...o.defaultFieldMap},multiple:!1,chooseType:[]}),i=async g=>{var m;if(g.multiple=!g[r.defaultFile.singleApproval]||g[r.defaultFile.isShowAddCopy],g.handList=g[r.defaultFile.approvePersonList]?g[r.defaultFile.approvePersonList]:[],g[r.defaultFile.nodeType]===r.nodeType.抄送节点)g.handList.forEach(c=>{c.elementName||(c.elementName=c.userName,c.elementId=c.userId,c.avatar=c.userAvatar),c.elementType="USER",c.disabled=!0}),g.chooseType=["user"],g.userList=[],g.depList=[];else switch(g[r.defaultFile.initiatorSpecifiedScopeType]){case"ALL":g.chooseType=["dep_user"],g.userList=[],g.depList=[];break;default:g.chooseType=["user"],g.userList=g.userList?g.userList:(m=g[r.defaultFile.initiatorSpecifiedScope])==null?void 0:m.map(c=>({...c,elementName:(c==null?void 0:c.executorName)||(c==null?void 0:c.userName),elementId:(c==null?void 0:c.executorId)||(c==null?void 0:c.userId),avatar:((c==null?void 0:c.executorAvatar)||(c==null?void 0:c.userAvatar))&&a((c==null?void 0:c.executorAvatar)||(c==null?void 0:c.userAvatar))||"",elementType:"USER"}))}n.nextTick(()=>{g.isShow=!0})},a=g=>{let m="";return g.includes("http")||g.includes("https")?m=g:m=o.loadUrl?`${o.loadUrl}${g}`:`${location.origin+location.pathname}server/oss/download?fileUrl=${g}`,m},s=g=>{let m="";switch(g){case r.nodeType.审批节点:m="ikapprove-shenpi";break;case r.nodeType.办理节点:m="ikapprove-bianji";break;case r.nodeType.抄送节点:m="ikapprove-chaosong";break;default:m="ikapprove-ziyuan"}return`ikapprove ${m}`},d=(g,m)=>{o.dataList[m].handList=g.list;let y=(o.dataList[m][r.defaultFile.approvePersonList]||[]).filter(h=>!h.canDele),p=g.list.map(h=>({...h,userName:h.elementName,userAvatar:h.avatar,canDele:!0}));o.dataList[m][r.defaultFile.approvePersonList]=y.concat(p)},f=(g,m)=>{o.dataList[g][r.defaultFile.approvePersonList].splice(m,1),o.dataList[g].handList=o.dataList[g][r.defaultFile.approvePersonList]};return e({requiredVerification:()=>{let g=!0;return o.dataList.forEach(m=>{var c;m.required=!1,m[r.defaultFile.nodeType]==r.nodeType.审批节点&&m[r.defaultFile.isShowAdd]&&((c=m[r.defaultFile.approvePersonList])!=null&&c.length||(g=!1,m.required=!0))}),g}}),(g,m)=>(n.openBlock(),n.createElementBlock("div",cu,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.dataList,(c,y)=>{var p,h,b,_;return n.openBlock(),n.createElementBlock("div",{class:"content",key:c.id},[n.createCommentVNode(" 审批节点类型 "),n.createElementVNode("div",du,[n.createElementVNode("span",uu,[n.createElementVNode("i",{class:n.normalizeClass(s(c[r.defaultFile.nodeType]))},null,2)]),n.createElementVNode("div",{class:"line",style:n.normalizeStyle({"border-left":y===o.dataList.length-1?"":"2px solid var(--el-border-color)"})},null,4)]),n.createElementVNode("div",fu,[n.createElementVNode("div",null,[n.createElementVNode("div",null,n.toDisplayString(c[r.defaultFile.nodeTypeName]),1),n.createElementVNode("div",pu,[n.createCommentVNode(" 抄送节点 "),c[r.defaultFile.nodeType]==r.nodeType.抄送节点?(n.openBlock(),n.createElementBlock("span",hu,[c[r.defaultFile.approvePersonList].length?(n.openBlock(),n.createElementBlock("span",mu,n.toDisplayString(`抄送${c[r.defaultFile.approvePersonList].length}人`),1)):n.createCommentVNode("v-if",!0),c[r.defaultFile.isShowAdd]?(n.openBlock(),n.createElementBlock("span",gu,",可添加抄送人")):n.createCommentVNode("v-if",!0)])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createCommentVNode(" 审批节点 "),n.createElementVNode("span",null,[n.createCommentVNode(" 存在审批人时 "),(p=c[r.defaultFile.approvePersonList])!=null&&p.length?(n.openBlock(),n.createElementBlock("span",yu,n.toDisplayString(((h=c[r.defaultFile.approvePersonList])==null?void 0:h.length)==1?"1人审批":`${(b=c[r.defaultFile.approvePersonList])==null?void 0:b.length}人${c[r.defaultFile.multiExecutorTypeName]}`),1)):[r.statusWithoutApprover.自动通过,r.statusWithoutApprover.自动拒绝].includes(c[r.defaultFile.approveType])?(n.openBlock(),n.createElementBlock("span",_u,n.toDisplayString(c[r.defaultFile.approveTypeName]),1)):c[r.defaultFile.executorEmptyStrategy]&&c[r.defaultFile.executorEmpty]?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createCommentVNode(" 没有审批人,并且有指定默认审批方式 "),n.createElementVNode("span",null,[n.createTextVNode(" 未找到审批人,"),n.createElementVNode("span",null,n.toDisplayString(c[r.defaultFile.executorEmptyStrategy]==r.statusWithoutApprover.自动通过?"将自动通过":c[r.defaultFile.executorEmptyStrategy]==r.statusWithoutApprover.自动转交管理员?"自动转交给管理员":c[r.defaultFile.executorEmptyStrategy]==r.statusWithoutApprover.指定人员审批?`将自动转给指定成员${c[r.defaultFile.reserveExecutorUsers]&&c[r.defaultFile.reserveExecutorUsers][0].userName}`:""),1)])],2112)):(n.openBlock(),n.createElementBlock("span",{key:3,class:n.normalizeClass(c.required?"warn":"")},"请选择"+n.toDisplayString(c[r.defaultFile.nodeType]===r.nodeType.办理节点?"办理人":"审批人"),3))])],2112))])]),n.createElementVNode("div",bu,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c[r.defaultFile.approvePersonList],(w,S)=>{var O;return n.openBlock(),n.createElementBlock("div",{class:"list",key:w.userId},[n.createElementVNode("div",ku,[n.createElementVNode("div",Eu,[w.userAvatar?(n.openBlock(),n.createElementBlock("img",{key:0,src:a(w.userAvatar),alt:""},null,8,Cu)):(n.openBlock(),n.createElementBlock("div",wu,[n.createElementVNode("span",null,n.toDisplayString(w.userName.slice(-2)),1)])),w.canDele?(n.openBlock(),n.createElementBlock("i",{key:2,onClick:N=>f(y,S),class:"ikapprove ikapprove-shanchu1"},null,8,vu)):n.createCommentVNode("v-if",!0)]),n.createElementVNode("div",{class:"name",title:w.userName},n.toDisplayString(w.userName),9,Su)]),n.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),c[r.defaultFile.isShowAdd]&&!(c[r.defaultFile.singleApproval]&&((O=c[r.defaultFile.approvePersonList])==null?void 0:O.length)==1)?(n.openBlock(),n.createElementBlock("span",Au,[n.createCommentVNode(" 抄送默认 "),c[r.defaultFile.nodeType]==r.nodeType.抄送节点?(n.openBlock(),n.createElementBlock("span",xu,"+")):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createCommentVNode(" 审批 "),n.createElementVNode("span",null,n.toDisplayString(c[r.defaultFile.multiExecutorType]=="ANY"?"/":c[r.defaultFile.multiExecutorType]=="ALL"?"+":">"),1)],2112))])):n.createCommentVNode("v-if",!0)])}),128)),n.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 "),c[r.defaultFile.isShowAdd]&&!(c[r.defaultFile.singleApproval]&&((_=c[r.defaultFile.approvePersonList])==null?void 0:_.length)==1)||c[r.defaultFile.isShowAddCopy]?(n.openBlock(),n.createElementBlock("span",{key:0,class:"addBg",onClick:w=>i(c)},[c[r.defaultFile.nodeType]==r.nodeType.审批节点?(n.openBlock(),n.createElementBlock("span",Nu)):n.createCommentVNode("v-if",!0),Vu],8,Du)):n.createCommentVNode("v-if",!0),n.createCommentVNode(" 添加人组件 "),n.createVNode(n.unref(on),{modelValue:c.handList,"onUpdate:modelValue":w=>c.handList=w,show:c.isShow,"onUpdate:show":w=>c.isShow=w,onOk:w=>d(w,y),multiple:c.multiple,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},api:{methods:"post",url:t.pickerUrl,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:n.unref(l)}},"dep-list":c.depList,"user-list":c.userList,"organization-list":c.organizationList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:c.chooseType},null,8,["modelValue","onUpdate:modelValue","show","onUpdate:show","onOk","multiple","api","dep-list","user-list","organization-list","chooseType"])])])])}),128))]))}}),M4="",Iu=de(X(Tu,[["__scopeId","data-v-46507da1"]]));var Xl={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(t){return"另外 "+t+" 个"},noEventsText:"没有事件显示"},dn,j,Kl,Jl,vt,ct,er,tr,nr,un={},or=[],Ru=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function et(t,e){for(var o in e)t[o]=e[o];return t}function lr(t){var e=t.parentNode;e&&e.removeChild(t)}function k(t,e,o){var l,r,i,a={};for(i in e)i=="key"?l=e[i]:i=="ref"?r=e[i]:a[i]=e[i];if(arguments.length>2&&(a.children=arguments.length>3?dn.call(arguments,2):o),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)a[i]===void 0&&(a[i]=t.defaultProps[i]);return fn(t,a,l,r,null)}function fn(t,e,o,l,r){var i={type:t,props:e,key:o,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Kl};return r==null&&j.vnode!=null&&j.vnode(i),i}function we(){return{current:null}}function fe(t){return t.children}function Mu(t,e,o,l,r){var i;for(i in o)i==="children"||i==="key"||i in e||pn(t,i,null,o[i],l);for(i in e)r&&typeof e[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||o[i]===e[i]||pn(t,i,e[i],o[i],l)}function rr(t,e,o){e[0]==="-"?t.setProperty(e,o??""):t[e]=o==null?"":typeof o!="number"||Ru.test(e)?o:o+"px"}function pn(t,e,o,l,r){var i;e:if(e==="style")if(typeof o=="string")t.style.cssText=o;else{if(typeof l=="string"&&(t.style.cssText=l=""),l)for(e in l)o&&e in o||rr(t.style,e,"");if(o)for(e in o)l&&o[e]===l[e]||rr(t.style,e,o[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=o,o?l||t.addEventListener(e,i?ar:ir,i):t.removeEventListener(e,i?ar:ir,i);else if(e!=="dangerouslySetInnerHTML"){if(r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=o??"";break e}catch{}typeof o=="function"||(o==null||o===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,o))}}function ir(t){vt=!0;try{return this.l[t.type+!1](j.event?j.event(t):t)}finally{vt=!1}}function ar(t){vt=!0;try{return this.l[t.type+!0](j.event?j.event(t):t)}finally{vt=!1}}function Ne(t,e){this.props=t,this.context=e}function Ot(t,e){if(e==null)return t.__?Ot(t.__,t.__.__k.indexOf(t)+1):null;for(var o;e<t.__k.length;e++)if((o=t.__k[e])!=null&&o.__e!=null)return o.__e;return typeof t.type=="function"?Ot(t):null}function sr(t){var e,o;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((o=t.__k[e])!=null&&o.__e!=null){t.__e=t.__c.base=o.__e;break}return sr(t)}}function Ou(t){vt?setTimeout(t):tr(t)}function lo(t){(!t.__d&&(t.__d=!0)&&ct.push(t)&&!hn.__r++||er!==j.debounceRendering)&&((er=j.debounceRendering)||Ou)(hn)}function hn(){var t,e,o,l,r,i,a,s;for(ct.sort(function(d,f){return d.__v.__b-f.__v.__b});t=ct.shift();)t.__d&&(e=ct.length,l=void 0,r=void 0,a=(i=(o=t).__v).__e,(s=o.__P)&&(l=[],(r=et({},i)).__v=i.__v+1,ro(s,i,r,o.__n,s.ownerSVGElement!==void 0,i.__h!=null?[a]:null,l,a??Ot(i),i.__h),pr(l,i),i.__e!=a&&sr(i)),ct.length>e&&ct.sort(function(d,f){return d.__v.__b-f.__v.__b}));hn.__r=0}function cr(t,e,o,l,r,i,a,s,d,f){var u,g,m,c,y,p,h,b=l&&l.__k||or,_=b.length;for(o.__k=[],u=0;u<e.length;u++)if((c=o.__k[u]=(c=e[u])==null||typeof c=="boolean"?null:typeof c=="string"||typeof c=="number"||typeof c=="bigint"?fn(null,c,null,null,c):Array.isArray(c)?fn(fe,{children:c},null,null,null):c.__b>0?fn(c.type,c.props,c.key,c.ref?c.ref:null,c.__v):c)!=null){if(c.__=o,c.__b=o.__b+1,(m=b[u])===null||m&&c.key==m.key&&c.type===m.type)b[u]=void 0;else for(g=0;g<_;g++){if((m=b[g])&&c.key==m.key&&c.type===m.type){b[g]=void 0;break}m=null}ro(t,c,m=m||un,r,i,a,s,d,f),y=c.__e,(g=c.ref)&&m.ref!=g&&(h||(h=[]),m.ref&&h.push(m.ref,null,c),h.push(g,c.__c||y,c)),y!=null?(p==null&&(p=y),typeof c.type=="function"&&c.__k===m.__k?c.__d=d=dr(c,d,t):d=ur(t,c,m,b,y,d),typeof o.type=="function"&&(o.__d=d)):d&&m.__e==d&&d.parentNode!=t&&(d=Ot(m))}for(o.__e=p,u=_;u--;)b[u]!=null&&(typeof o.type=="function"&&b[u].__e!=null&&b[u].__e==o.__d&&(o.__d=fr(l).nextSibling),mr(b[u],b[u]));if(h)for(u=0;u<h.length;u++)hr(h[u],h[++u],h[++u])}function dr(t,e,o){for(var l,r=t.__k,i=0;r&&i<r.length;i++)(l=r[i])&&(l.__=t,e=typeof l.type=="function"?dr(l,e,o):ur(o,l,l,r,l.__e,e));return e}function mn(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(o){mn(o,e)}):e.push(t)),e}function ur(t,e,o,l,r,i){var a,s,d;if(e.__d!==void 0)a=e.__d,e.__d=void 0;else if(o==null||r!=i||r.parentNode==null)e:if(i==null||i.parentNode!==t)t.appendChild(r),a=null;else{for(s=i,d=0;(s=s.nextSibling)&&d<l.length;d+=1)if(s==r)break e;t.insertBefore(r,i),a=i}return a!==void 0?a:r.nextSibling}function fr(t){var e,o,l;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((o=t.__k[e])&&(l=fr(o)))return l}return null}function ro(t,e,o,l,r,i,a,s,d){var f,u,g,m,c,y,p,h,b,_,w,S,O,N,C,E=e.type;if(e.constructor!==void 0)return null;o.__h!=null&&(d=o.__h,s=e.__e=o.__e,e.__h=null,i=[s]),(f=j.__b)&&f(e);try{e:if(typeof E=="function"){if(h=e.props,b=(f=E.contextType)&&l[f.__c],_=f?b?b.props.value:f.__:l,o.__c?p=(u=e.__c=o.__c).__=u.__E:("prototype"in E&&E.prototype.render?e.__c=u=new E(h,_):(e.__c=u=new Ne(h,_),u.constructor=E,u.render=Pu),b&&b.sub(u),u.props=h,u.state||(u.state={}),u.context=_,u.__n=l,g=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),E.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=et({},u.__s)),et(u.__s,E.getDerivedStateFromProps(h,u.__s))),m=u.props,c=u.state,u.__v=e,g)E.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(E.getDerivedStateFromProps==null&&h!==m&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(h,_),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(h,u.__s,_)===!1||e.__v===o.__v){for(e.__v!==o.__v&&(u.props=h,u.state=u.__s,u.__d=!1),e.__e=o.__e,e.__k=o.__k,e.__k.forEach(function(B){B&&(B.__=e)}),w=0;w<u._sb.length;w++)u.__h.push(u._sb[w]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(h,u.__s,_),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(m,c,y)})}if(u.context=_,u.props=h,u.__P=t,S=j.__r,O=0,"prototype"in E&&E.prototype.render){for(u.state=u.__s,u.__d=!1,S&&S(e),f=u.render(u.props,u.state,u.context),N=0;N<u._sb.length;N++)u.__h.push(u._sb[N]);u._sb=[]}else do u.__d=!1,S&&S(e),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++O<25);u.state=u.__s,u.getChildContext!=null&&(l=et(et({},l),u.getChildContext())),g||u.getSnapshotBeforeUpdate==null||(y=u.getSnapshotBeforeUpdate(m,c)),C=f!=null&&f.type===fe&&f.key==null?f.props.children:f,cr(t,Array.isArray(C)?C:[C],e,o,l,r,i,a,s,d),u.base=e.__e,e.__h=null,u.__h.length&&a.push(u),p&&(u.__E=u.__=null),u.__e=!1}else i==null&&e.__v===o.__v?(e.__k=o.__k,e.__e=o.__e):e.__e=Lu(o.__e,e,o,l,r,i,a,d);(f=j.diffed)&&f(e)}catch(B){e.__v=null,(d||i!=null)&&(e.__e=s,e.__h=!!d,i[i.indexOf(s)]=null),j.__e(B,e,o)}}function pr(t,e){j.__c&&j.__c(e,t),t.some(function(o){try{t=o.__h,o.__h=[],t.some(function(l){l.call(o)})}catch(l){j.__e(l,o.__v)}})}function Lu(t,e,o,l,r,i,a,s){var d,f,u,g=o.props,m=e.props,c=e.type,y=0;if(c==="svg"&&(r=!0),i!=null){for(;y<i.length;y++)if((d=i[y])&&"setAttribute"in d==!!c&&(c?d.localName===c:d.nodeType===3)){t=d,i[y]=null;break}}if(t==null){if(c===null)return document.createTextNode(m);t=r?document.createElementNS("http://www.w3.org/2000/svg",c):document.createElement(c,m.is&&m),i=null,s=!1}if(c===null)g===m||s&&t.data===m||(t.data=m);else{if(i=i&&dn.call(t.childNodes),f=(g=o.props||un).dangerouslySetInnerHTML,u=m.dangerouslySetInnerHTML,!s){if(i!=null)for(g={},y=0;y<t.attributes.length;y++)g[t.attributes[y].name]=t.attributes[y].value;(u||f)&&(u&&(f&&u.__html==f.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(Mu(t,m,g,r,s),u)e.__k=[];else if(y=e.props.children,cr(t,Array.isArray(y)?y:[y],e,o,l,r&&c!=="foreignObject",i,a,i?i[0]:o.__k&&Ot(o,0),s),i!=null)for(y=i.length;y--;)i[y]!=null&&lr(i[y]);s||("value"in m&&(y=m.value)!==void 0&&(y!==t.value||c==="progress"&&!y||c==="option"&&y!==g.value)&&pn(t,"value",y,g.value,!1),"checked"in m&&(y=m.checked)!==void 0&&y!==t.checked&&pn(t,"checked",y,g.checked,!1))}return t}function hr(t,e,o){try{typeof t=="function"?t(e):t.current=e}catch(l){j.__e(l,o)}}function mr(t,e,o){var l,r;if(j.unmount&&j.unmount(t),(l=t.ref)&&(l.current&&l.current!==t.__e||hr(l,null,e)),(l=t.__c)!=null){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(i){j.__e(i,e)}l.base=l.__P=null,t.__c=void 0}if(l=t.__k)for(r=0;r<l.length;r++)l[r]&&mr(l[r],e,o||typeof t.type!="function");o||t.__e==null||lr(t.__e),t.__=t.__e=t.__d=void 0}function Pu(t,e,o){return this.constructor(t,o)}function Lt(t,e,o){var l,r,i;j.__&&j.__(t,e),r=(l=typeof o=="function")?null:o&&o.__k||e.__k,i=[],ro(e,t=(!l&&o||e).__k=k(fe,null,[t]),r||un,un,e.ownerSVGElement!==void 0,!l&&o?[o]:r?null:e.firstChild?dn.call(e.childNodes):null,i,!l&&o?o:r?r.__e:e.firstChild,l),pr(i,t)}function zu(t,e){var o={__c:e="__cC"+nr++,__:t,Consumer:function(l,r){return l.children(r)},Provider:function(l){var r,i;return this.getChildContext||(r=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&r.some(function(s){s.__e=!0,lo(s)})},this.sub=function(a){r.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){r.splice(r.indexOf(a),1),s&&s.call(a)}}),l.children}};return o.Provider.__=o.Consumer.contextType=o}dn=or.slice,j={__e:function(t,e,o,l){for(var r,i,a;e=e.__;)if((r=e.__c)&&!r.__)try{if((i=r.constructor)&&i.getDerivedStateFromError!=null&&(r.setState(i.getDerivedStateFromError(t)),a=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(t,l||{}),a=r.__d),a)return r.__E=r}catch(s){t=s}throw t}},Kl=0,Jl=function(t){return t!=null&&t.constructor===void 0},vt=!1,Ne.prototype.setState=function(t,e){var o;o=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=et({},this.state),typeof t=="function"&&(t=t(et({},o),this.props)),t&&et(o,t),t!=null&&this.__v&&(e&&this._sb.push(e),lo(this))},Ne.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),lo(this))},Ne.prototype.render=fe,ct=[],tr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,hn.__r=0,nr=0;var ze,io,gr,yr=[],ao=[],_r=j.__b,br=j.__r,kr=j.diffed,Er=j.__c,Cr=j.unmount;function Fu(){for(var t;t=yr.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(gn),t.__H.__h.forEach(so),t.__H.__h=[]}catch(e){t.__H.__h=[],j.__e(e,t.__v)}}j.__b=function(t){ze=null,_r&&_r(t)},j.__r=function(t){br&&br(t);var e=(ze=t.__c).__H;e&&(io===ze?(e.__h=[],ze.__h=[],e.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=ao,o.__N=o.i=void 0})):(e.__h.forEach(gn),e.__h.forEach(so),e.__h=[])),io=ze},j.diffed=function(t){kr&&kr(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(yr.push(e)!==1&&gr===j.requestAnimationFrame||((gr=j.requestAnimationFrame)||$u)(Fu)),e.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==ao&&(o.__=o.__V),o.i=void 0,o.__V=ao})),io=ze=null},j.__c=function(t,e){e.some(function(o){try{o.__h.forEach(gn),o.__h=o.__h.filter(function(l){return!l.__||so(l)})}catch(l){e.some(function(r){r.__h&&(r.__h=[])}),e=[],j.__e(l,o.__v)}}),Er&&Er(t,e)},j.unmount=function(t){Cr&&Cr(t);var e,o=t.__c;o&&o.__H&&(o.__H.__.forEach(function(l){try{gn(l)}catch(r){e=r}}),o.__H=void 0,e&&j.__e(e,o.__v))};var wr=typeof requestAnimationFrame=="function";function $u(t){var e,o=function(){clearTimeout(l),wr&&cancelAnimationFrame(e),setTimeout(t)},l=setTimeout(o,100);wr&&(e=requestAnimationFrame(o))}function gn(t){var e=ze,o=t.__c;typeof o=="function"&&(t.__c=void 0,o()),ze=e}function so(t){var e=ze;t.__c=t.__(),ze=e}function Hu(t,e){for(var o in e)t[o]=e[o];return t}function vr(t,e){for(var o in t)if(o!=="__source"&&!(o in e))return!0;for(var l in e)if(l!=="__source"&&t[l]!==e[l])return!0;return!1}function Sr(t){this.props=t}(Sr.prototype=new Ne).isPureReactComponent=!0,Sr.prototype.shouldComponentUpdate=function(t,e){return vr(this.props,t)||vr(this.state,e)};var Ar=j.__b;j.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Ar&&Ar(t)};var Uu=j.__e;j.__e=function(t,e,o,l){if(t.then){for(var r,i=e;i=i.__;)if((r=i.__c)&&r.__c)return e.__e==null&&(e.__e=o.__e,e.__k=o.__k),r.__c(t,e)}Uu(t,e,o,l)};var xr=j.unmount;function Dr(t,e,o){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(l){typeof l.__c=="function"&&l.__c()}),t.__c.__H=null),(t=Hu({},t)).__c!=null&&(t.__c.__P===o&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(l){return Dr(l,e,o)})),t}function Nr(t,e,o){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(l){return Nr(l,e,o)}),t.__c&&t.__c.__P===e&&(t.__e&&o.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=o)),t}function co(){this.__u=0,this.t=null,this.__b=null}function Vr(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function yn(){this.u=null,this.o=null}j.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),xr&&xr(t)},(co.prototype=new Ne).__c=function(t,e){var o=e.__c,l=this;l.t==null&&(l.t=[]),l.t.push(o);var r=Vr(l.__v),i=!1,a=function(){i||(i=!0,o.__R=null,r?r(s):s())};o.__R=a;var s=function(){if(!--l.__u){if(l.state.__a){var f=l.state.__a;l.__v.__k[0]=Nr(f,f.__c.__P,f.__c.__O)}var u;for(l.setState({__a:l.__b=null});u=l.t.pop();)u.forceUpdate()}},d=e.__h===!0;l.__u++||d||l.setState({__a:l.__b=l.__v.__k[0]}),t.then(a,a)},co.prototype.componentWillUnmount=function(){this.t=[]},co.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),l=this.__v.__k[0].__c;this.__v.__k[0]=Dr(this.__b,o,l.__O=l.__P)}this.__b=null}var r=e.__a&&k(fe,null,t.fallback);return r&&(r.__h=null),[k(fe,null,e.__a?null:t.children),r]};var Br=function(t,e,o){if(++o[1]===o[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(o=t.u;o;){for(;o.length>3;)o.pop()();if(o[1]<o[0])break;t.u=o=o[2]}};function ju(t){return this.getChildContext=function(){return t.context},t.children}function Wu(t){var e=this,o=t.i;e.componentWillUnmount=function(){Lt(null,e.l),e.l=null,e.i=null},e.i&&e.i!==o&&e.componentWillUnmount(),t.__v?(e.l||(e.i=o,e.l={nodeType:1,parentNode:o,childNodes:[],appendChild:function(l){this.childNodes.push(l),e.i.appendChild(l)},insertBefore:function(l,r){this.childNodes.push(l),e.i.appendChild(l)},removeChild:function(l){this.childNodes.splice(this.childNodes.indexOf(l)>>>1,1),e.i.removeChild(l)}}),Lt(k(ju,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function Gu(t,e){var o=k(Wu,{__v:t,i:e});return o.containerInfo=e,o}(yn.prototype=new Ne).__a=function(t){var e=this,o=Vr(e.__v),l=e.o.get(t);return l[0]++,function(r){var i=function(){e.props.revealOrder?(l.push(r),Br(e,t,l)):r()};o?o(i):i()}},yn.prototype.render=function(t){this.u=null,this.o=new Map;var e=mn(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var o=e.length;o--;)this.o.set(e[o],this.u=[1,0,this.u]);return t.children},yn.prototype.componentDidUpdate=yn.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,o){Br(t,o,e)})};var qu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Yu=/^(?: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]/,Qu=typeof document<"u",Zu=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};Ne.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Ne.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Tr=j.event;function Xu(){}function Ku(){return this.cancelBubble}function Ju(){return this.defaultPrevented}j.event=function(t){return Tr&&(t=Tr(t)),t.persist=Xu,t.isPropagationStopped=Ku,t.isDefaultPrevented=Ju,t.nativeEvent=t};var Ir={configurable:!0,get:function(){return this.class}},Rr=j.vnode;j.vnode=function(t){var e=t.type,o=t.props,l=o;if(typeof e=="string"){var r=e.indexOf("-")===-1;for(var i in l={},o){var a=o[i];Qu&&i==="children"&&e==="noscript"||i==="value"&&"defaultValue"in o&&a==null||(i==="defaultValue"&&"value"in o&&o.value==null?i="value":i==="download"&&a===!0?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+e)&&!Zu(o.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():r&&Yu.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():a===null&&(a=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),l[i]&&(i="oninputCapture")),l[i]=a)}e=="select"&&l.multiple&&Array.isArray(l.value)&&(l.value=mn(o.children).forEach(function(s){s.props.selected=l.value.indexOf(s.props.value)!=-1})),e=="select"&&l.defaultValue!=null&&(l.value=mn(o.children).forEach(function(s){s.props.selected=l.multiple?l.defaultValue.indexOf(s.props.value)!=-1:l.defaultValue==s.props.value})),t.props=l,o.class!=o.className&&(Ir.enumerable="className"in o,o.className!=null&&(l.class=o.className),Object.defineProperty(l,"className",Ir))}t.$$typeof=qu,Rr&&Rr(t)};var Mr=j.__r;j.__r=function(t){Mr&&Mr(t),t.__c};const Or=[],uo=new Map;function fo(t){Or.push(t),uo.forEach(e=>{Pr(e,t)})}function ef(t){t.isConnected&&Lr(t.getRootNode())}function Lr(t){let e=uo.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const o=nf();o&&(e.nonce=o);const l=t===document?document.head:t,r=t===document?l.querySelector("script,link[rel=stylesheet],link[as=style],style"):l.firstChild;l.insertBefore(e,r)}uo.set(t,e),tf(e)}}function tf(t){for(const e of Or)Pr(t,e)}function Pr(t,e){const{sheet:o}=t,l=o.cssRules.length;e.split("}").forEach((r,i)=>{r=r.trim(),r&&o.insertRule(r+"}",l+i)})}let po;function nf(){return po===void 0&&(po=of()),po}function of(){const t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&Lr(document);var lf=':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;-webkit-user-select: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;-webkit-user-select:none;-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)}';fo(lf);class ho{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:o}=this;o[e]=(o[e]||0)+1,this.clearTimeout()}resume(e="",o){let{pauseDepths:l}=this;e in l&&(o?delete l[e]:(l[e]-=1,l[e]<=0&&delete l[e]),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 mo(t){t.parentNode&&t.parentNode.removeChild(t)}function be(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(rf(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function rf(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function af(t,e){let o=t instanceof HTMLElement?[t]:t,l=[];for(let r=0;r<o.length;r+=1){let i=o[r].querySelectorAll(e);for(let a=0;a<i.length;a+=1)l.push(i[a])}return l}const sf=/(top|left|right|bottom|width|height)$/i;function Pt(t,e){for(let o in e)zr(t,o,e[o])}function zr(t,e,o){o==null?t.style[e]="":typeof o=="number"&&sf.test(e)?t.style[e]=`${o}px`:t.style[e]=o}function Fr(t){var e,o;return(o=(e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])!==null&&o!==void 0?o:t.target}let $r=0;function _n(){return $r+=1,"fc-dom-"+$r}function bn(t){t.preventDefault()}function cf(t,e){return o=>{let l=be(o.target,t);l&&e.call(l,o,l)}}function Hr(t,e,o,l){let r=cf(o,l);return t.addEventListener(e,r),()=>{t.removeEventListener(e,r)}}function df(t,e,o,l){let r;return Hr(t,"mouseover",e,(i,a)=>{if(a!==r){r=a,o(i,a);let s=d=>{r=null,l(d,a),a.removeEventListener("mouseleave",s)};a.addEventListener("mouseleave",s)}})}const Ur=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function uf(t,e){let o=l=>{e(l),Ur.forEach(r=>{t.removeEventListener(r,o)})};Ur.forEach(l=>{t.addEventListener(l,o)})}function jr(t){return Object.assign({onClick:t},Wr(t))}function Wr(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let Gr=0;function dt(){return Gr+=1,String(Gr)}function go(){document.body.classList.add("fc-not-allowed")}function yo(){document.body.classList.remove("fc-not-allowed")}function ff(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",bn)}function pf(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",bn)}function hf(t){t.addEventListener("contextmenu",bn)}function mf(t){t.removeEventListener("contextmenu",bn)}function gf(t){let e=[],o=[],l,r;for(typeof t=="string"?o=t.split(/\s*,\s*/):typeof t=="function"?o=[t]:Array.isArray(t)&&(o=t),l=0;l<o.length;l+=1)r=o[l],typeof r=="string"?e.push(r.charAt(0)==="-"?{field:r.substring(1),order:-1}:{field:r,order:1}):typeof r=="function"&&e.push({func:r});return e}function yf(t,e,o){let l,r;for(l=0;l<o.length;l+=1)if(r=_f(t,e,o[l]),r)return r;return 0}function _f(t,e,o){return o.func?o.func(t,e):bf(t[o.field],e[o.field])*(o.order||1)}function bf(t,e){return!t&&!e?0:e==null?-1:t==null?1:typeof t=="string"||typeof e=="string"?String(t).localeCompare(String(e)):t-e}function St(t,e){let o=String(t);return"000".substr(0,e-o.length)+o}function zt(t,e,o){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((l,r,i)=>l.replace("$"+i,r||""),t):o}function kf(t,e){return t-e}function kn(t){return t%1===0}function Ef(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),o=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!o)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+o.getBoundingClientRect().width}const qr=["years","months","days","milliseconds"],Cf=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function te(t,e){return typeof t=="string"?wf(t):typeof t=="object"&&t?Yr(t):typeof t=="number"?Yr({[e||"milliseconds"]:t}):null}function wf(t){let e=Cf.exec(t);if(e){let o=e[1]?-1:1;return{years:0,months:0,days:o*(e[2]?parseInt(e[2],10):0),milliseconds:o*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function Yr(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},o=t.weeks||t.week;return o&&(e.days+=o*7,e.specifiedWeeks=!0),e}function vf(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function _o(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function Sf(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function Af(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function xf(t){return At(t)/365}function Df(t){return At(t)/30}function At(t){return Ie(t)/864e5}function Ie(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function bo(t,e){let o=null;for(let l=0;l<qr.length;l+=1){let r=qr[l];if(e[r]){let i=t[r]/e[r];if(!kn(i)||o!==null&&o!==i)return null;o=i}else if(t[r])return null}return o}function ko(t){let e=t.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return t.days?t.specifiedWeeks&&t.days%7===0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function tt(t,e,o){if(t===e)return!0;let l=t.length,r;if(l!==e.length)return!1;for(r=0;r<l;r+=1)if(!(o?o(t[r],e[r]):t[r]===e[r]))return!1;return!0}const Nf=["sun","mon","tue","wed","thu","fri","sat"];function Qr(t,e){let o=ot(t);return o[2]+=e*7,De(o)}function ke(t,e){let o=ot(t);return o[2]+=e,De(o)}function nt(t,e){let o=ot(t);return o[6]+=e,De(o)}function Vf(t,e){return ut(t,e)/7}function ut(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function Bf(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function Tf(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function If(t,e){return(e.valueOf()-t.valueOf())/1e3}function Rf(t,e){let o=ue(t),l=ue(e);return{years:0,months:0,days:Math.round(ut(o,l)),milliseconds:e.valueOf()-l.valueOf()-(t.valueOf()-o.valueOf())}}function Mf(t,e){let o=En(t,e);return o!==null&&o%7===0?o/7:null}function En(t,e){return lt(t)===lt(e)?Math.round(ut(t,e)):null}function ue(t){return De([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function Of(t){return De([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function Lf(t){return De([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function Pf(t){return De([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function zf(t,e,o){let l=t.getUTCFullYear(),r=Eo(t,l,e,o);if(r<1)return Eo(t,l-1,e,o);let i=Eo(t,l+1,e,o);return i>=1?Math.min(r,i):r}function Eo(t,e,o,l){let r=De([e,0,1+Ff(e,o,l)]),i=ue(t),a=Math.round(ut(r,i));return Math.floor(a/7)+1}function Ff(t,e,o){let l=7+e-o;return-((7+De([t,0,l]).getUTCDay()-e)%7)+l-1}function Zr(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Xr(t){return new Date(t[0],t[1]||0,t[2]==null?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function ot(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function De(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function Kr(t){return!isNaN(t.valueOf())}function lt(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function Jr(t,e,o=!1){let l=t.toISOString();return l=l.replace(".000",""),o&&(l=l.replace("T00:00:00Z","")),l.length>10&&(e==null?l=l.replace("Z",""):e!==0&&(l=l.replace("Z",wo(e,!0)))),l}function Co(t){return t.toISOString().replace(/T.*$/,"")}function $f(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function Hf(t){return St(t.getUTCHours(),2)+":"+St(t.getUTCMinutes(),2)+":"+St(t.getUTCSeconds(),2)}function wo(t,e=!1){let o=t<0?"-":"+",l=Math.abs(t),r=Math.floor(l/60),i=Math.round(l%60);return e?`${o+St(r,2)}:${St(i,2)}`:`GMT${o}${r}${i?`:${St(i,2)}`:""}`}function q(t,e,o){let l,r;return function(...i){if(!l)r=t.apply(this,i);else if(!tt(l,i)){o&&o(r);let a=t.apply(this,i);(!e||!e(a,r))&&(r=a)}return l=i,r}}function Cn(t,e,o){let l,r;return i=>{if(!l)r=t.call(this,i);else if(!Fe(l,i)){o&&o(r);let a=t.call(this,i);(!e||!e(a,r))&&(r=a)}return l=i,r}}const ei={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},wn={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},vn=/\s*([ap])\.?m\.?/i,Uf=/,/g,jf=/\s+/g,Wf=/\u200e/g,Gf=/UTC|GMT/;class qf{constructor(e){let o={},l={},r=0;for(let i in e)i in ei?(l[i]=e[i],r=Math.max(ei[i],r)):(o[i]=e[i],i in wn&&(r=Math.max(wn[i],r)));this.standardDateProps=o,this.extendedSettings=l,this.severity=r,this.buildFormattingFunc=q(ti)}format(e,o){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,o)(e)}formatRange(e,o,l,r){let{standardDateProps:i,extendedSettings:a}=this,s=Jf(e.marker,o.marker,l.calendarSystem);if(!s)return this.format(e,l);let d=s;d>1&&(i.year==="numeric"||i.year==="2-digit")&&(i.month==="numeric"||i.month==="2-digit")&&(i.day==="numeric"||i.day==="2-digit")&&(d=1);let f=this.format(e,l),u=this.format(o,l);if(f===u)return f;let g=ep(i,d),m=ti(g,a,l),c=m(e),y=m(o),p=tp(f,c,u,y),h=a.separator||r||l.defaultSeparator||"";return p?p.before+c+h+y+p.after:f+h+u}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 ti(t,e,o){let l=Object.keys(t).length;return l===1&&t.timeZoneName==="short"?r=>wo(r.timeZoneOffset):l===0&&e.week?r=>Kf(o.computeWeekNumber(r.marker),o.weekText,o.weekTextLong,o.locale,e.week):Yf(t,e,o)}function Yf(t,e,o){t=Object.assign({},t),e=Object.assign({},e),Qf(t,e),t.timeZone="UTC";let l=new Intl.DateTimeFormat(o.locale.codes,t),r;if(e.omitZeroMinute){let i=Object.assign({},t);delete i.minute,r=new Intl.DateTimeFormat(o.locale.codes,i)}return i=>{let{marker:a}=i,s;r&&!a.getUTCMinutes()?s=r:s=l;let d=s.format(a);return Zf(d,i,t,e,o)}}function Qf(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),t.timeZoneName==="long"&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}function Zf(t,e,o,l,r){return t=t.replace(Wf,""),o.timeZoneName==="short"&&(t=Xf(t,r.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":wo(e.timeZoneOffset))),l.omitCommas&&(t=t.replace(Uf,"").trim()),l.omitZeroMinute&&(t=t.replace(":00","")),l.meridiem===!1?t=t.replace(vn,"").trim():l.meridiem==="narrow"?t=t.replace(vn,(i,a)=>a.toLocaleLowerCase()):l.meridiem==="short"?t=t.replace(vn,(i,a)=>`${a.toLocaleLowerCase()}m`):l.meridiem==="lowercase"&&(t=t.replace(vn,i=>i.toLocaleLowerCase())),t=t.replace(jf," "),t=t.trim(),t}function Xf(t,e){let o=!1;return t=t.replace(Gf,()=>(o=!0,e)),o||(t+=` ${e}`),t}function Kf(t,e,o,l,r){let i=[];return r==="long"?i.push(o):(r==="short"||r==="narrow")&&i.push(e),(r==="long"||r==="short")&&i.push(" "),i.push(l.simpleNumberFormat.format(t)),l.options.direction==="rtl"&&i.reverse(),i.join("")}function Jf(t,e,o){return o.getMarkerYear(t)!==o.getMarkerYear(e)?5:o.getMarkerMonth(t)!==o.getMarkerMonth(e)?4:o.getMarkerDay(t)!==o.getMarkerDay(e)?2:lt(t)!==lt(e)?1:0}function ep(t,e){let o={};for(let l in t)(!(l in wn)||wn[l]<=e)&&(o[l]=t[l]);return o}function tp(t,e,o,l){let r=0;for(;r<t.length;){let i=t.indexOf(e,r);if(i===-1)break;let a=t.substr(0,i);r=i+e.length;let s=t.substr(r),d=0;for(;d<o.length;){let f=o.indexOf(l,d);if(f===-1)break;let u=o.substr(0,f);d=f+l.length;let g=o.substr(d);if(a===u&&s===g)return{before:a,after:s}}}return null}function ni(t,e){let o=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.timeZoneOffset,array:o,year:o[0],month:o[1],day:o[2],hour:o[3],minute:o[4],second:o[5],millisecond:o[6]}}function Sn(t,e,o,l){let r=ni(t,o.calendarSystem),i=e?ni(e,o.calendarSystem):null;return{date:r,start:r,end:i,timeZone:o.timeZone,localeCodes:o.locale.codes,defaultSeparator:l||o.defaultSeparator}}class np{constructor(e){this.cmdStr=e}format(e,o,l){return o.cmdFormatter(this.cmdStr,Sn(e,null,o,l))}formatRange(e,o,l,r){return l.cmdFormatter(this.cmdStr,Sn(e,o,l,r))}}class op{constructor(e){this.func=e}format(e,o,l){return this.func(Sn(e,null,o,l))}formatRange(e,o,l,r){return this.func(Sn(e,o,l,r))}}function ge(t){return typeof t=="object"&&t?new qf(t):typeof t=="string"?new np(t):typeof t=="function"?new op(t):null}const oi={navLinkDayClick:V,navLinkWeekClick:V,duration:te,bootstrapFontAwesome:V,buttonIcons:V,customButtons:V,defaultAllDayEventDuration:te,defaultTimedEventDuration:te,nextDayThreshold:te,scrollTime:te,scrollTimeReset:Boolean,slotMinTime:te,slotMaxTime:te,dayPopoverFormat:ge,slotDuration:te,snapDuration:te,headerToolbar:V,footerToolbar:V,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:ge,dayHeaderClassNames:V,dayHeaderContent:V,dayHeaderDidMount:V,dayHeaderWillUnmount:V,dayCellClassNames:V,dayCellContent:V,dayCellDidMount:V,dayCellWillUnmount:V,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:V,weekNumbers:Boolean,weekNumberClassNames:V,weekNumberContent:V,weekNumberDidMount:V,weekNumberWillUnmount:V,editable:Boolean,viewClassNames:V,viewDidMount:V,viewWillUnmount:V,nowIndicator:Boolean,nowIndicatorClassNames:V,nowIndicatorContent:V,nowIndicatorDidMount:V,nowIndicatorWillUnmount:V,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:V,locale:V,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:V,eventOrder:gf,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:V,contentHeight:V,direction:String,weekNumberFormat:ge,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:V,initialDate:V,now:V,eventDataTransform:V,stickyHeaderDates:V,stickyFooterScrollbar:V,viewHeight:V,defaultAllDay:Boolean,eventSourceFailure:V,eventSourceSuccess:V,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:V,eventConstraint:V,eventAllow:V,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:V,eventContent:V,eventDidMount:V,eventWillUnmount:V,selectConstraint:V,selectOverlap:V,selectAllow:V,droppable:Boolean,unselectCancel:String,slotLabelFormat:V,slotLaneClassNames:V,slotLaneContent:V,slotLaneDidMount:V,slotLaneWillUnmount:V,slotLabelClassNames:V,slotLabelContent:V,slotLabelDidMount:V,slotLabelWillUnmount:V,dayMaxEvents:V,dayMaxEventRows:V,dayMinWidth:Number,slotLabelInterval:te,allDayText:String,allDayClassNames:V,allDayContent:V,allDayDidMount:V,allDayWillUnmount:V,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:ge,rerenderDelay:Number,moreLinkText:V,moreLinkHint:V,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:V,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:te,hiddenDays:V,fixedWeekCount:Boolean,validRange:V,visibleRange:V,titleFormat:V,eventInteractive:Boolean,noEventsText:String,viewHint:V,navLinkHint:V,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:V,moreLinkClassNames:V,moreLinkContent:V,moreLinkDidMount:V,moreLinkWillUnmount:V,monthStartFormat:ge,handleCustomRendering:V,customRenderingMetaMap:V,customRenderingReplaces:Boolean},Ft={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"}},li={datesSet:V,eventsSet:V,eventAdd:V,eventChange:V,eventRemove:V,windowResize:V,eventClick:V,eventMouseEnter:V,eventMouseLeave:V,select:V,unselect:V,loading:V,_unmount:V,_beforeprint:V,_afterprint:V,_noEventDrop:V,_noEventResize:V,_resize:V,_scrollRequest:V},ri={buttonText:V,buttonHints:V,views:V,plugins:V,initialEvents:V,events:V,eventSources:V},ft={headerToolbar:pt,footerToolbar:pt,buttonText:pt,buttonHints:pt,buttonIcons:pt,dateIncrement:pt,plugins:An,events:An,eventSources:An,resources:An};function pt(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?Fe(t,e):t===e}function An(t,e){return Array.isArray(t)&&Array.isArray(e)?tt(t,e):t===e}const lp={type:String,component:V,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:V,usesMinMaxTime:Boolean,classNames:V,content:V,didMount:V,willUnmount:V};function vo(t){return Ao(t,ft)}function So(t,e){let o={},l={};for(let r in e)r in t&&(o[r]=e[r](t[r]));for(let r in t)r in e||(l[r]=t[r]);return{refined:o,extra:l}}function V(t){return t}const{hasOwnProperty:xn}=Object.prototype;function Ao(t,e){let o={};if(e){for(let l in e)if(e[l]===pt){let r=[];for(let i=t.length-1;i>=0;i-=1){let a=t[i][l];if(typeof a=="object"&&a)r.unshift(a);else if(a!==void 0){o[l]=a;break}}r.length&&(o[l]=Ao(r))}}for(let l=t.length-1;l>=0;l-=1){let r=t[l];for(let i in r)i in o||(o[i]=r[i])}return o}function ht(t,e){let o={};for(let l in t)e(t[l],l)&&(o[l]=t[l]);return o}function je(t,e){let o={};for(let l in t)o[l]=e(t[l],l);return o}function ii(t){let e={};for(let o of t)e[o]=!0;return e}function xo(t){let e=[];for(let o in t)e.push(t[o]);return e}function Fe(t,e){if(t===e)return!0;for(let o in t)if(xn.call(t,o)&&!(o in e))return!1;for(let o in e)if(xn.call(e,o)&&t[o]!==e[o])return!1;return!0}const rp=/^on[A-Z]/;function ip(t,e){const o=Do(t,e);for(let l of o)if(!rp.test(l))return!1;return!0}function Do(t,e){let o=[];for(let l in t)xn.call(t,l)&&(l in e||o.push(l));for(let l in e)xn.call(e,l)&&t[l]!==e[l]&&o.push(l);return o}function No(t,e,o={}){if(t===e)return!0;for(let l in e)if(!(l in t&&ap(t[l],e[l],o[l])))return!1;for(let l in t)if(!(l in e))return!1;return!0}function ap(t,e,o){return t===e||o===!0?!0:o?o(t,e):!1}function sp(t,e=0,o,l=1){let r=[];o==null&&(o=Object.keys(t).length);for(let i=e;i<o;i+=l){let a=t[i];a!==void 0&&r.push(a)}return r}let ai={};function cp(t,e){ai[t]=e}function dp(t){return new ai[t]}class up{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return De(e)}markerToArray(e){return ot(e)}}cp("gregory",up);const fp=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function pp(t){let e=fp.exec(t);if(e){let o=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?+`0.${e[12]}`*1e3:0));if(Kr(o)){let l=null;return e[13]&&(l=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:o,isTimeUnspecified:!e[6],timeZoneOffset:l}}}return null}class hp{constructor(e){let o=this.timeZone=e.timeZone,l=o!=="local"&&o!=="UTC";e.namedTimeZoneImpl&&l&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(o)),this.canComputeOffset=!!(!l||this.namedTimeZoneImpl),this.calendarSystem=dp(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay=="number"&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation=="function"&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let o=this.createMarkerMeta(e);return o===null?null:o.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):De(Zr(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let o=null;return typeof e=="number"?o=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(o=this.timestampToMarker(e))):Array.isArray(e)&&(o=De(e)),o===null||!Kr(o)?null:{marker:o,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let o=pp(e);if(o===null)return null;let{marker:l}=o,r=null;return o.timeZoneOffset!==null&&(this.canComputeOffset?l=this.timestampToMarker(l.valueOf()-o.timeZoneOffset*60*1e3):r=o.timeZoneOffset),{marker:l,isTimeUnspecified:o.isTimeUnspecified,forcedTzo:r}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,o){let l=this.calendarSystem.markerToArray(e);return l[0]+=o.years,l[1]+=o.months,l[2]+=o.days,l[6]+=o.milliseconds,this.calendarSystem.arrayToMarker(l)}subtract(e,o){let l=this.calendarSystem.markerToArray(e);return l[0]-=o.years,l[1]-=o.months,l[2]-=o.days,l[6]-=o.milliseconds,this.calendarSystem.arrayToMarker(l)}addYears(e,o){let l=this.calendarSystem.markerToArray(e);return l[0]+=o,this.calendarSystem.arrayToMarker(l)}addMonths(e,o){let l=this.calendarSystem.markerToArray(e);return l[1]+=o,this.calendarSystem.arrayToMarker(l)}diffWholeYears(e,o){let{calendarSystem:l}=this;return lt(e)===lt(o)&&l.getMarkerDay(e)===l.getMarkerDay(o)&&l.getMarkerMonth(e)===l.getMarkerMonth(o)?l.getMarkerYear(o)-l.getMarkerYear(e):null}diffWholeMonths(e,o){let{calendarSystem:l}=this;return lt(e)===lt(o)&&l.getMarkerDay(e)===l.getMarkerDay(o)?l.getMarkerMonth(o)-l.getMarkerMonth(e)+(l.getMarkerYear(o)-l.getMarkerYear(e))*12:null}greatestWholeUnit(e,o){let l=this.diffWholeYears(e,o);return l!==null?{unit:"year",value:l}:(l=this.diffWholeMonths(e,o),l!==null?{unit:"month",value:l}:(l=Mf(e,o),l!==null?{unit:"week",value:l}:(l=En(e,o),l!==null?{unit:"day",value:l}:(l=Bf(e,o),kn(l)?{unit:"hour",value:l}:(l=Tf(e,o),kn(l)?{unit:"minute",value:l}:(l=If(e,o),kn(l)?{unit:"second",value:l}:{unit:"millisecond",value:o.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,o,l){let r;return l.years&&(r=this.diffWholeYears(e,o),r!==null)?r/xf(l):l.months&&(r=this.diffWholeMonths(e,o),r!==null)?r/Df(l):l.days&&(r=En(e,o),r!==null)?r/At(l):(o.valueOf()-e.valueOf())/Ie(l)}startOf(e,o){return o==="year"?this.startOfYear(e):o==="month"?this.startOfMonth(e):o==="week"?this.startOfWeek(e):o==="day"?ue(e):o==="hour"?Of(e):o==="minute"?Lf(e):o==="second"?Pf(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):zf(e,this.weekDow,this.weekDoy)}format(e,o,l={}){return o.format({marker:e,timeZoneOffset:l.forcedTzo!=null?l.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,o,l,r={}){return r.isEndExclusive&&(o=nt(o,-1)),l.formatRange({marker:e,timeZoneOffset:r.forcedStartTzo!=null?r.forcedStartTzo:this.offsetForMarker(e)},{marker:o,timeZoneOffset:r.forcedEndTzo!=null?r.forcedEndTzo:this.offsetForMarker(o)},this,r.defaultSeparator)}formatIso(e,o={}){let l=null;return o.omitTimeZoneOffset||(o.forcedTzo!=null?l=o.forcedTzo:l=this.offsetForMarker(e)),Jr(e,l,o.omitTime)}timestampToMarker(e){return this.timeZone==="local"?De(Zr(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):De(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-Xr(ot(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ot(e)):null}toDate(e,o){return this.timeZone==="local"?Xr(ot(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(ot(e))*1e3*60):new Date(e.valueOf()-(o||0))}}class $t{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let o,l;if(typeof e=="object"&&e){o=Object.assign({},this.iconClasses);for(l in e)o[l]=this.applyIconOverridePrefix(e[l]);this.iconClasses=o}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let o=this.iconOverridePrefix;return o&&e.indexOf(o)!==0&&(e=o+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,o){let l;return o&&this.rtlIconClasses?l=this.rtlIconClasses[e]||this.iconClasses[e]:l=this.iconClasses[e],l?`${this.baseIconClass} ${l}`:""}getCustomButtonIconClass(e){let o;return this.iconOverrideCustomButtonOption&&(o=e[this.iconOverrideCustomButtonOption],o)?`${this.baseIconClass} ${this.applyIconOverridePrefix(o)}`:""}}$t.prototype.classes={},$t.prototype.iconClasses={},$t.prototype.baseIconClass="",$t.prototype.iconOverridePrefix="";function si(t){t();let e=j.debounceRendering,o=[];function l(r){o.push(r)}for(j.debounceRendering=l,Lt(k(mp,{}),document.createElement("div"));o.length;)o.shift()();j.debounceRendering=e}class mp extends Ne{render(){return k("div",{})}componentDidMount(){this.setState({})}}function ci(t){let e=zu(t),o=e.Provider;return e.Provider=function(){let l=!this.getChildContext,r=o.apply(this,arguments);if(l){let i=[];this.shouldComponentUpdate=a=>{this.props.value!==a.value&&i.forEach(s=>{s.context=a.value,s.forceUpdate()})},this.sub=a=>{i.push(a);let s=a.componentWillUnmount;a.componentWillUnmount=()=>{i.splice(i.indexOf(a),1),s&&s.call(a)}}}return r},e}class gp{constructor(e,o,l,r){this.execFunc=e,this.emitter=o,this.scrollTime=l,this.scrollTimeReset=r,this.handleScrollRequest=i=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},i),this.drain()},o.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const We=ci({});function yp(t,e,o,l,r,i,a,s,d,f,u,g,m){return{dateEnv:r,options:o,pluginHooks:a,emitter:f,dispatch:s,getCurrentData:d,calendarApi:u,viewSpec:t,viewApi:e,dateProfileGenerator:l,theme:i,isRtl:o.direction==="rtl",addResizeHandler(c){f.on("_resize",c)},removeResizeHandler(c){f.off("_resize",c)},createScrollResponder(c){return new gp(c,f,te(o.scrollTime),o.scrollTimeReset)},registerInteractiveComponent:g,unregisterInteractiveComponent:m}}class mt extends Ne{shouldComponentUpdate(e,o){return this.debug&&console.log(Do(e,this.props),Do(o,this.state)),!No(this.props,e,this.propEquality)||!No(this.state,o,this.stateEquality)}safeSetState(e){No(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}mt.addPropsEquality=_p,mt.addStateEquality=bp,mt.contextType=We,mt.prototype.propEquality={},mt.prototype.stateEquality={};class re extends mt{}re.contextType=We;function _p(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function bp(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function Ge(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class Vo extends re{constructor(){super(...arguments),this.id=dt(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:o}=this.context,{generatorName:l}=this.props;(!o.customRenderingReplaces||!Bo(l,o))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&Ge(this.props.elRef,e)}}render(){const{props:e,context:o}=this,{options:l}=o,{customGenerator:r,defaultGenerator:i,renderProps:a}=e,s=di(e,[],this.handleEl);let d=!1,f,u=[],g;if(r!=null){const m=typeof r=="function"?r(a,k):r;if(m===!0)d=!0;else{const c=m&&typeof m=="object";c&&"html"in m?s.dangerouslySetInnerHTML={__html:m.html}:c&&"domNodes"in m?u=Array.prototype.slice.call(m.domNodes):(c?Jl(m):typeof m!="function")?f=m:g=m}}else d=!Bo(e.generatorName,l);return d&&i&&(f=i(a)),this.queuedDomNodes=u,this.currentGeneratorMeta=g,k(e.elTag,s,f)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var o;const{props:l,context:r}=this,{handleCustomRendering:i,customRenderingMetaMap:a}=r.options;if(i){const s=(o=this.currentGeneratorMeta)!==null&&o!==void 0?o:a==null?void 0:a[l.generatorName];s&&i(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:s},l),{elClasses:(l.elClasses||[]).filter(kp)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:o}=this,l=this.base;if(!tt(e,o)){o.forEach(mo);for(let r of e)l.appendChild(r);this.currentDomNodes=e}}}Vo.addPropsEquality({elClasses:tt,elStyle:Fe,elAttrs:ip,renderProps:Fe});function Bo(t,e){var o;return!!(e.handleCustomRendering&&t&&(!((o=e.customRenderingMetaMap)===null||o===void 0)&&o[t]))}function di(t,e,o){const l=Object.assign(Object.assign({},t.elAttrs),{ref:o});return(t.elClasses||e)&&(l.className=(t.elClasses||[]).concat(e||[]).concat(l.className||[]).filter(Boolean).join(" ")),t.elStyle&&(l.style=t.elStyle),l}function kp(t){return!!t}const ui=ci(0);class Ve extends Ne{constructor(){super(...arguments),this.InnerContent=Ep.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(Ge(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,o=Cp(e.classNameGenerator,e.renderProps);if(e.children){const l=di(e,o,this.handleEl),r=e.children(this.InnerContent,e.renderProps,l);return e.elTag?k(e.elTag,l,r):r}else return k(Vo,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(o),renderId:this.context}))}componentDidMount(){var e,o;this.el?(o=(e=this.props).didMount)===null||o===void 0||o.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,o;(o=(e=this.props).willUnmount)===null||o===void 0||o.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}Ve.contextType=ui;function Ep(t,e){const o=t.props;return k(Vo,Object.assign({renderProps:o.renderProps,generatorName:o.generatorName,customGenerator:o.customGenerator,defaultGenerator:o.defaultGenerator,renderId:t.context},e))}function Cp(t,e){const o=typeof t=="function"?t(e):t||[];return typeof o=="string"?[o]:o}class Dn extends re{render(){let{props:e,context:o}=this,{options:l}=o,r={view:o.viewApi};return k(Ve,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...fi(e.viewSpec),...e.elClasses||[]],renderProps:r,classNameGenerator:l.viewClassNames,generatorName:void 0,didMount:l.viewDidMount,willUnmount:l.viewWillUnmount}),()=>e.children)}}function fi(t){return[`fc-${t.type}-view`,"fc-view"]}function wp(t,e){let o=null,l=null;return t.start&&(o=e.createMarker(t.start)),t.end&&(l=e.createMarker(t.end)),!o&&!l||o&&l&&l<o?null:{start:o,end:l}}function pi(t,e){let o=[],{start:l}=e,r,i;for(t.sort(vp),r=0;r<t.length;r+=1)i=t[r],i.start>l&&o.push({start:l,end:i.start}),i.end>l&&(l=i.end);return l<e.end&&o.push({start:l,end:e.end}),o}function vp(t,e){return t.start.valueOf()-e.start.valueOf()}function gt(t,e){let{start:o,end:l}=t,r=null;return e.start!==null&&(o===null?o=e.start:o=new Date(Math.max(o.valueOf(),e.start.valueOf()))),e.end!=null&&(l===null?l=e.end:l=new Date(Math.min(l.valueOf(),e.end.valueOf()))),(o===null||l===null||o<l)&&(r={start:o,end:l}),r}function Sp(t,e){return(t.start===null?null:t.start.valueOf())===(e.start===null?null:e.start.valueOf())&&(t.end===null?null:t.end.valueOf())===(e.end===null?null:e.end.valueOf())}function To(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function Nn(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function qe(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function Ap(t,e){return e.start!=null&&t<e.start?e.start:e.end!=null&&t>=e.end?new Date(e.end.valueOf()-1):t}function hi(t){let e=Math.floor(ut(t.start,t.end))||1,o=ue(t.start),l=ke(o,e);return{start:o,end:l}}function mi(t,e=te(0)){let o=null,l=null;if(t.end){l=ue(t.end);let r=t.end.valueOf()-l.valueOf();r&&r>=Ie(e)&&(l=ke(l,1))}return t.start&&(o=ue(t.start),l&&l<=o&&(l=ke(o,1))),{start:o,end:l}}function xt(t,e,o,l){return l==="year"?te(o.diffWholeYears(t,e),"year"):l==="month"?te(o.diffWholeMonths(t,e),"month"):Rf(t,e)}function xp(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function Dp(t,e){let o=t.initialDate;return o!=null?e.createMarker(o):Ht(t.now,e)}function Ht(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class gi{constructor(e){this.props=e,this.nowDate=Ht(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,o,l){let{dateEnv:r}=this.props,i=r.subtract(r.startOf(o,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,l)}buildNext(e,o,l){let{dateEnv:r}=this.props,i=r.add(r.startOf(o,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,l)}build(e,o,l=!0){let{props:r}=this,i,a,s,d,f,u;return i=this.buildValidRange(),i=this.trimHiddenDays(i),l&&(e=Ap(e,i)),a=this.buildCurrentRangeInfo(e,o),s=/^(year|month|week|day)$/.test(a.unit),d=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,s),d=this.trimHiddenDays(d),f=d,r.showNonCurrentDates||(f=gt(f,a.range)),f=this.adjustActiveRange(f),f=gt(f,i),u=To(a.range,i),qe(d,e)||(e=d.start),{currentDate:e,validRange:i,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:s,activeRange:f,renderRange:d,slotMinTime:r.slotMinTime,slotMaxTime:r.slotMaxTime,isValid:u,dateIncrement:this.buildDateIncrement(a.duration)}}buildValidRange(){let e=this.props.validRangeInput,o=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(o)||{start:null,end:null}}buildCurrentRangeInfo(e,o){let{props:l}=this,r=null,i=null,a=null,s;return l.duration?(r=l.duration,i=l.durationUnit,a=this.buildRangeFromDuration(e,o,r,i)):(s=this.props.dayCount)?(i="day",a=this.buildRangeFromDayCount(e,o,s)):(a=this.buildCustomVisibleRange(e))?i=l.dateEnv.greatestWholeUnit(a.start,a.end).unit:(r=this.getFallbackDuration(),i=ko(r).unit,a=this.buildRangeFromDuration(e,o,r,i)),{duration:r,unit:i,range:a}}getFallbackDuration(){return te({day:1})}adjustActiveRange(e){let{dateEnv:o,usesMinMaxTime:l,slotMinTime:r,slotMaxTime:i}=this.props,{start:a,end:s}=e;return l&&(At(r)<0&&(a=ue(a),a=o.add(a,r)),At(i)>1&&(s=ue(s),s=ke(s,-1),s=o.add(s,i))),{start:a,end:s}}buildRangeFromDuration(e,o,l,r){let{dateEnv:i,dateAlignment:a}=this.props,s,d,f;if(!a){let{dateIncrement:g}=this.props;g&&Ie(g)<Ie(l)?a=ko(g).unit:a=r}At(l)<=1&&this.isHiddenDay(s)&&(s=this.skipHiddenDays(s,o),s=ue(s));function u(){s=i.startOf(e,a),d=i.add(s,l),f={start:s,end:d}}return u(),this.trimHiddenDays(f)||(e=this.skipHiddenDays(e,o),u()),f}buildRangeFromDayCount(e,o,l){let{dateEnv:r,dateAlignment:i}=this.props,a=0,s=e,d;i&&(s=r.startOf(s,i)),s=ue(s),s=this.skipHiddenDays(s,o),d=s;do d=ke(d,1),this.isHiddenDay(d)||(a+=1);while(a<l);return{start:s,end:d}}buildCustomVisibleRange(e){let{props:o}=this,l=o.visibleRangeInput,r=typeof l=="function"?l.call(o.calendarApi,o.dateEnv.toDate(e)):l,i=this.refineRange(r);return i&&(i.start==null||i.end==null)?null:i}buildRenderRange(e,o,l){return e}buildDateIncrement(e){let{dateIncrement:o}=this.props,l;return o||((l=this.props.dateAlignment)?te(1,l):e||te({days:1}))}refineRange(e){if(e){let o=wp(e,this.props.dateEnv);return o&&(o=mi(o)),o}return null}initHiddenDays(){let e=this.props.hiddenDays||[],o=[],l=0,r;for(this.props.weekends===!1&&e.push(0,6),r=0;r<7;r+=1)(o[r]=e.indexOf(r)!==-1)||(l+=1);if(!l)throw new Error("invalid hiddenDays");this.isHiddenDayHash=o}trimHiddenDays(e){let{start:o,end:l}=e;return o&&(o=this.skipHiddenDays(o)),l&&(l=this.skipHiddenDays(l,-1,!0)),o==null||l==null||o<l?{start:o,end:l}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,o=1,l=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(l?o:0)+7)%7];)e=ke(e,o);return e}}function Io(t,e,o,l){return{instanceId:dt(),defId:t,range:e,forcedStartTzo:o??null,forcedEndTzo:l??null}}function Np(t,e,o,l){for(let r=0;r<l.length;r+=1){let i=l[r].parse(t,o);if(i){let{allDay:a}=t;return a==null&&(a=e,a==null&&(a=i.allDayGuess,a==null&&(a=!1))),{allDay:a,duration:i.duration,typeData:i.typeData,typeId:r}}}return null}function yt(t,e,o){let{dateEnv:l,pluginHooks:r,options:i}=o,{defs:a,instances:s}=t;s=ht(s,d=>!a[d.defId].recurringDef);for(let d in a){let f=a[d];if(f.recurringDef){let{duration:u}=f.recurringDef;u||(u=f.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);let g=Vp(f,u,e,l,r.recurringTypes);for(let m of g){let c=Io(d,{start:m,end:l.add(m,u)});s[c.instanceId]=c}}}return{defs:a,instances:s}}function Vp(t,e,o,l,r){let a=r[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:l.subtract(o.start,e),end:o.end},l);return t.allDay&&(a=a.map(ue)),a}const Vn={id:String,groupId:String,title:String,url:String,interactive:Boolean},yi={start:V,end:V,date:V,allDay:Boolean},Bp=Object.assign(Object.assign(Object.assign({},Vn),yi),{extendedProps:V});function _i(t,e,o,l,r=Ro(o),i,a){let{refined:s,extra:d}=bi(t,o,r),f=Ip(e,o),u=Np(s,f,o.dateEnv,o.pluginHooks.recurringTypes);if(u){let m=Mo(s,d,e?e.sourceId:"",u.allDay,!!u.duration,o,i);return m.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:m,instance:null}}let g=Tp(s,f,o,l);if(g){let m=Mo(s,d,e?e.sourceId:"",g.allDay,g.hasEnd,o,i),c=Io(m.defId,g.range,g.forcedStartTzo,g.forcedEndTzo);return a&&m.publicId&&a[m.publicId]&&(c.instanceId=a[m.publicId]),{def:m,instance:c}}return null}function bi(t,e,o=Ro(e)){return So(t,o)}function Ro(t){return Object.assign(Object.assign(Object.assign({},Tn),Bp),t.pluginHooks.eventRefiners)}function Mo(t,e,o,l,r,i,a){let s={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(a&&t.id?a[t.id]:"")||dt(),sourceId:o,allDay:l,hasEnd:r,interactive:t.interactive,ui:In(t,i),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let d of i.pluginHooks.eventDefMemberAdders)Object.assign(s,d(t));return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function Tp(t,e,o,l){let{allDay:r}=t,i,a=null,s=!1,d,f=null,u=t.start!=null?t.start:t.date;if(i=o.dateEnv.createMarkerMeta(u),i)a=i.marker;else if(!l)return null;return t.end!=null&&(d=o.dateEnv.createMarkerMeta(t.end)),r==null&&(e!=null?r=e:r=(!i||i.isTimeUnspecified)&&(!d||d.isTimeUnspecified)),r&&a&&(a=ue(a)),d&&(f=d.marker,r&&(f=ue(f)),a&&f<=a&&(f=null)),f?s=!0:l||(s=o.options.forceEventDuration||!1,f=o.dateEnv.add(a,r?o.options.defaultAllDayEventDuration:o.options.defaultTimedEventDuration)),{allDay:r,hasEnd:s,range:{start:a,end:f},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:d?d.forcedTzo:null}}function Ip(t,e){let o=null;return t&&(o=t.defaultAllDay),o==null&&(o=e.options.defaultAllDay),o}function Ut(t,e,o,l,r,i){let a=Be(),s=Ro(o);for(let d of t){let f=_i(d,e,o,l,s,r,i);f&&Oo(f,a)}return a}function Oo(t,e=Be()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function Lo(t,e){let o=t.instances[e];if(o){let l=t.defs[o.defId],r=Bn(t,i=>Rp(l,i));return r.defs[l.defId]=l,r.instances[o.instanceId]=o,r}return Be()}function Rp(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function Be(){return{defs:{},instances:{}}}function Po(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function Bn(t,e){let o=ht(t.defs,e),l=ht(t.instances,r=>o[r.defId]);return{defs:o,instances:l}}function Mp(t,e){let{defs:o,instances:l}=t,r={},i={};for(let a in o)e.defs[a]||(r[a]=o[a]);for(let a in l)!e.instances[a]&&r[l[a].defId]&&(i[a]=l[a]);return{defs:r,instances:i}}function Op(t,e){return Array.isArray(t)?Ut(t,null,e,!0):typeof t=="object"&&t?Ut([t],null,e,!0):t!=null?String(t):null}function ki(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const Tn={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:V,overlap:V,allow:V,className:ki,classNames:ki,color:String,backgroundColor:String,borderColor:String,textColor:String},Lp={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function In(t,e){let o=Op(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:o!=null?[o]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function Ei(t){return t.reduce(Pp,Lp)}function Pp(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}const zp={id:String,defaultAllDay:Boolean,url:String,format:String,events:V,eventDataTransform:V,success:V,failure:V};function Ci(t,e,o=wi(e)){let l;if(typeof t=="string"?l={url:t}:typeof t=="function"||Array.isArray(t)?l={events:t}:typeof t=="object"&&t&&(l=t),l){let{refined:r,extra:i}=So(l,o),a=Fp(r,e);if(a)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:r.defaultAllDay,eventDataTransform:r.eventDataTransform,success:r.success,failure:r.failure,publicId:r.id||"",sourceId:dt(),sourceDefId:a.sourceDefId,meta:a.meta,ui:In(r,e),extendedProps:i}}return null}function wi(t){return Object.assign(Object.assign(Object.assign({},Tn),zp),t.pluginHooks.eventSourceRefiners)}function Fp(t,e){let o=e.pluginHooks.eventSourceDefs;for(let l=o.length-1;l>=0;l-=1){let i=o[l].parseMeta(t);if(i)return{sourceDefId:l,meta:i}}return null}function $p(t,e,o,l,r){switch(e.type){case"RECEIVE_EVENTS":return Hp(t,o[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,r);case"RESET_RAW_EVENTS":return Up(t,o[e.sourceId],e.rawEvents,l.activeRange,r);case"ADD_EVENTS":return jp(t,e.eventStore,l?l.activeRange:null,r);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return Po(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return l?yt(t,l.activeRange,r):t;case"REMOVE_EVENTS":return Mp(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return xi(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Bn(t,i=>!i.sourceId);case"REMOVE_ALL_EVENTS":return Be();default:return t}}function Hp(t,e,o,l,r,i){if(e&&o===e.latestFetchId){let a=Ut(vi(r,e,i),e,i);return l&&(a=yt(a,l,i)),Po(xi(t,e.sourceId),a)}return t}function Up(t,e,o,l,r){const{defIdMap:i,instanceIdMap:a}=Gp(t);let s=Ut(vi(o,e,r),e,r,!1,i,a);return yt(s,l,r)}function vi(t,e,o){let l=o.options.eventDataTransform,r=e?e.eventDataTransform:null;return r&&(t=Si(t,r)),l&&(t=Si(t,l)),t}function Si(t,e){let o;if(!e)o=t;else{o=[];for(let l of t){let r=e(l);r?o.push(r):r==null&&o.push(l)}}return o}function jp(t,e,o,l){return o&&(e=yt(e,o,l)),Po(t,e)}function Ai(t,e,o){let{defs:l}=t,r=je(t.instances,i=>l[i.defId].allDay?i:Object.assign(Object.assign({},i),{range:{start:o.createMarker(e.toDate(i.range.start,i.forcedStartTzo)),end:o.createMarker(e.toDate(i.range.end,i.forcedEndTzo))},forcedStartTzo:o.canComputeOffset?null:i.forcedStartTzo,forcedEndTzo:o.canComputeOffset?null:i.forcedEndTzo}));return{defs:l,instances:r}}function xi(t,e){return Bn(t,o=>o.sourceId!==e)}function Wp(t,e){return{defs:t.defs,instances:ht(t.instances,o=>!e[o.instanceId])}}function Gp(t){const{defs:e,instances:o}=t,l={},r={};for(let i in e){const a=e[i],{publicId:s}=a;s&&(l[s]=i)}for(let i in o){const a=o[i],s=e[a.defId],{publicId:d}=s;d&&(r[d]=i)}return{defIdMap:l,instanceIdMap:r}}class Rn{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,o){qp(this.handlers,e,o)}off(e,o){Yp(this.handlers,e,o)}trigger(e,...o){let l=this.handlers[e]||[],r=this.options&&this.options[e],i=[].concat(r||[],l);for(let a of i)a.apply(this.thisContext,o)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function qp(t,e,o){(t[e]||(t[e]=[])).push(o)}function Yp(t,e,o){o?t[e]&&(t[e]=t[e].filter(l=>l!==o)):delete t[e]}const Qp={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Zp(t,e){return Ut(Xp(t),null,e)}function Xp(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(o=>o.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(o=>Object.assign(Object.assign({},Qp),o)),e}function Di(t,e,o){o.emitter.trigger("select",Object.assign(Object.assign({},zo(t,o)),{jsEvent:e?e.origEvent:null,view:o.viewApi||o.calendarApi.view}))}function Kp(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function zo(t,e){let o={};for(let l of e.pluginHooks.dateSpanTransforms)Object.assign(o,l(t,e));return Object.assign(o,fh(t,e.dateEnv)),o}function Ni(t,e,o){let{dateEnv:l,options:r}=o,i=e;return t?(i=ue(i),i=l.add(i,r.defaultAllDayEventDuration)):i=l.add(i,r.defaultTimedEventDuration),i}function Fo(t,e,o,l){let r=Mn(t.defs,e),i=Be();for(let a in t.defs){let s=t.defs[a];i.defs[a]=Jp(s,r[a],o,l)}for(let a in t.instances){let s=t.instances[a],d=i.defs[s.defId];i.instances[a]=eh(s,d,r[s.defId],o,l)}return i}function Jp(t,e,o,l){let r=o.standardProps||{};r.hasEnd==null&&e.durationEditable&&(o.startDelta||o.endDelta)&&(r.hasEnd=!0);let i=Object.assign(Object.assign(Object.assign({},t),r),{ui:Object.assign(Object.assign({},t.ui),r.ui)});o.extendedProps&&(i.extendedProps=Object.assign(Object.assign({},i.extendedProps),o.extendedProps));for(let a of l.pluginHooks.eventDefMutationAppliers)a(i,o,l);return!i.hasEnd&&l.options.forceEventDuration&&(i.hasEnd=!0),i}function eh(t,e,o,l,r){let{dateEnv:i}=r,a=l.standardProps&&l.standardProps.allDay===!0,s=l.standardProps&&l.standardProps.hasEnd===!1,d=Object.assign({},t);return a&&(d.range=hi(d.range)),l.datesDelta&&o.startEditable&&(d.range={start:i.add(d.range.start,l.datesDelta),end:i.add(d.range.end,l.datesDelta)}),l.startDelta&&o.durationEditable&&(d.range={start:i.add(d.range.start,l.startDelta),end:d.range.end}),l.endDelta&&o.durationEditable&&(d.range={start:d.range.start,end:i.add(d.range.end,l.endDelta)}),s&&(d.range={start:d.range.start,end:Ni(e.allDay,d.range.start,r)}),e.allDay&&(d.range={start:ue(d.range.start),end:ue(d.range.end)}),d.range.end<d.range.start&&(d.range.end=Ni(e.allDay,d.range.start,r)),d}class Dt{constructor(e,o){this.context=e,this.internalEventSource=o}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 he{constructor(e,o,l){this._context=e,this._def=o,this._instance=l||null}setProp(e,o){if(e in yi)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")o=Vn[e](o),this.mutate({standardProps:{publicId:o}});else if(e in Vn)o=Vn[e](o),this.mutate({standardProps:{[e]:o}});else if(e in Tn){let l=Tn[e](o);e==="color"?l={backgroundColor:o,borderColor:o}:e==="editable"?l={startEditable:o,durationEditable:o}:l={[e]:o},this.mutate({standardProps:{ui:l}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,o){this.mutate({extendedProps:{[e]:o}})}setStart(e,o={}){let{dateEnv:l}=this._context,r=l.createMarker(e);if(r&&this._instance){let i=this._instance.range,a=xt(i.start,r,l,o.granularity);o.maintainDuration?this.mutate({datesDelta:a}):this.mutate({startDelta:a})}}setEnd(e,o={}){let{dateEnv:l}=this._context,r;if(!(e!=null&&(r=l.createMarker(e),!r))&&this._instance)if(r){let i=xt(this._instance.range.end,r,l,o.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,o,l={}){let{dateEnv:r}=this._context,i={allDay:l.allDay},a=r.createMarker(e),s;if(a&&!(o!=null&&(s=r.createMarker(o),!s))&&this._instance){let d=this._instance.range;l.allDay===!0&&(d=hi(d));let f=xt(d.start,a,r,l.granularity);if(s){let u=xt(d.end,s,r,l.granularity);vf(f,u)?this.mutate({datesDelta:f,standardProps:i}):this.mutate({startDelta:f,endDelta:u,standardProps:i})}else i.hasEnd=!1,this.mutate({datesDelta:f,standardProps:i})}}moveStart(e){let o=te(e);o&&this.mutate({startDelta:o})}moveEnd(e){let o=te(e);o&&this.mutate({endDelta:o})}moveDates(e){let o=te(e);o&&this.mutate({datesDelta:o})}setAllDay(e,o={}){let l={allDay:e},{maintainDuration:r}=o;r==null&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(l.hasEnd=r),this.mutate({standardProps:l})}formatRange(e){let{dateEnv:o}=this._context,l=this._instance,r=ge(e);return this._def.hasEnd?o.formatRange(l.range.start,l.range.end,r,{forcedStartTzo:l.forcedStartTzo,forcedEndTzo:l.forcedEndTzo}):o.format(l.range.start,r,{forcedTzo:l.forcedStartTzo})}mutate(e){let o=this._instance;if(o){let l=this._def,r=this._context,{eventStore:i}=r.getCurrentData(),a=Lo(i,o.instanceId);a=Fo(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,r);let d=new he(r,l,o);this._def=a.defs[l.defId],this._instance=a.instances[o.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:a}),r.emitter.trigger("eventChange",{oldEvent:d,event:this,relatedEvents:_t(a,r,o),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:i})}})}}remove(){let e=this._context,o=Vi(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:o}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:o})}})}get source(){let{sourceId:e}=this._def;return e?new Dt(this._context,this._context.getCurrentData().eventSources[e]):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 e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.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(e={}){let o=this._def,{ui:l}=o,{startStr:r,endStr:i}=this,a={allDay:o.allDay};return o.title&&(a.title=o.title),r&&(a.start=r),i&&(a.end=i),o.publicId&&(a.id=o.publicId),o.groupId&&(a.groupId=o.groupId),o.url&&(a.url=o.url),l.display&&l.display!=="auto"&&(a.display=l.display),e.collapseColor&&l.backgroundColor&&l.backgroundColor===l.borderColor?a.color=l.backgroundColor:(l.backgroundColor&&(a.backgroundColor=l.backgroundColor),l.borderColor&&(a.borderColor=l.borderColor)),l.textColor&&(a.textColor=l.textColor),l.classNames.length&&(a.classNames=l.classNames),Object.keys(o.extendedProps).length&&(e.collapseExtendedProps?Object.assign(a,o.extendedProps):a.extendedProps=o.extendedProps),a}toJSON(){return this.toPlainObject()}}function Vi(t){let e=t._def,o=t._instance;return{defs:{[e.defId]:e},instances:o?{[o.instanceId]:o}:{}}}function _t(t,e,o){let{defs:l,instances:r}=t,i=[],a=o?o.instanceId:"";for(let s in r){let d=r[s],f=l[d.defId];d.instanceId!==a&&i.push(new he(e,f,d))}return i}function Bi(t,e,o,l){let r={},i={},a={},s=[],d=[],f=Mn(t.defs,e);for(let u in t.defs){let g=t.defs[u];f[g.defId].display==="inverse-background"&&(g.groupId?(r[g.groupId]=[],a[g.groupId]||(a[g.groupId]=g)):i[u]=[])}for(let u in t.instances){let g=t.instances[u],m=t.defs[g.defId],c=f[m.defId],y=g.range,p=!m.allDay&&l?mi(y,l):y,h=gt(p,o);h&&(c.display==="inverse-background"?m.groupId?r[m.groupId].push(h):i[g.defId].push(h):c.display!=="none"&&(c.display==="background"?s:d).push({def:m,ui:c,instance:g,range:h,isStart:p.start&&p.start.valueOf()===h.start.valueOf(),isEnd:p.end&&p.end.valueOf()===h.end.valueOf()}))}for(let u in r){let g=r[u],m=pi(g,o);for(let c of m){let y=a[u],p=f[y.defId];s.push({def:y,ui:p,instance:null,range:c,isStart:!1,isEnd:!1})}}for(let u in i){let g=i[u],m=pi(g,o);for(let c of m)s.push({def:t.defs[u],ui:f[u],instance:null,range:c,isStart:!1,isEnd:!1})}return{bg:s,fg:d}}function th(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function Ti(t,e){t.fcSeg=e}function Nt(t){return t.fcSeg||t.parentNode.fcSeg||null}function Mn(t,e){return je(t,o=>Ii(o,e))}function Ii(t,e){let o=[];return e[""]&&o.push(e[""]),e[t.defId]&&o.push(e[t.defId]),o.push(t.ui),Ei(o)}function Ri(t,e){let o=t.map(nh);return o.sort((l,r)=>yf(l,r,e)),o.map(l=>l._seg)}function nh(t){let{eventRange:e}=t,o=e.def,l=e.instance?e.instance.range:e.range,r=l.start?l.start.valueOf():0,i=l.end?l.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},o.extendedProps),o),{id:o.publicId,start:r,end:i,duration:i-r,allDay:Number(o.allDay),_seg:t})}function oh(t,e){let{pluginHooks:o}=e,l=o.isDraggableTransformers,{def:r,ui:i}=t.eventRange,a=i.startEditable;for(let s of l)a=s(a,r,i,e);return a}function lh(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function rh(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function Mi(t,e,o,l,r,i,a){let{dateEnv:s,options:d}=o,{displayEventTime:f,displayEventEnd:u}=d,g=t.eventRange.def,m=t.eventRange.instance;f==null&&(f=l!==!1),u==null&&(u=r!==!1);let c=m.range.start,y=m.range.end,p=i||t.start||t.eventRange.range.start,h=a||t.end||t.eventRange.range.end,b=ue(c).valueOf()===ue(p).valueOf(),_=ue(nt(y,-1)).valueOf()===ue(nt(h,-1)).valueOf();return f&&!g.allDay&&(b||_)?(p=b?c:p,h=_?y:h,u&&g.hasEnd?s.formatRange(p,h,e,{forcedStartTzo:i?null:m.forcedStartTzo,forcedEndTzo:a?null:m.forcedEndTzo}):s.format(p,e,{forcedTzo:i?null:m.forcedStartTzo})):""}function rt(t,e,o){let l=t.eventRange.range;return{isPast:l.end<(o||e.start),isFuture:l.start>=(o||e.end),isToday:e&&qe(e,l.start)}}function ih(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function Oi(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function Li(t,e){let{def:o,instance:l}=t.eventRange,{url:r}=o;if(r)return{href:r};let{emitter:i,options:a}=e,{eventInteractive:s}=a;return s==null&&(s=o.interactive,s==null&&(s=!!i.hasHandlers("eventClick"))),s?Wr(d=>{i.trigger("eventClick",{el:d.target,event:new he(e,o,l),jsEvent:d,view:e.viewApi})}):{}}const ah={start:V,end:V,allDay:Boolean};function sh(t,e,o){let l=ch(t,e),{range:r}=l;if(!r.start)return null;if(!r.end){if(o==null)return null;r.end=e.add(r.start,o)}return l}function ch(t,e){let{refined:o,extra:l}=So(t,ah),r=o.start?e.createMarkerMeta(o.start):null,i=o.end?e.createMarkerMeta(o.end):null,{allDay:a}=o;return a==null&&(a=r&&r.isTimeUnspecified&&(!i||i.isTimeUnspecified)),Object.assign({range:{start:r?r.marker:null,end:i?i.marker:null},allDay:a},l)}function dh(t,e){return Sp(t.range,e.range)&&t.allDay===e.allDay&&uh(t,e)}function uh(t,e){for(let o in e)if(o!=="range"&&o!=="allDay"&&t[o]!==e[o])return!1;for(let o in t)if(!(o in e))return!1;return!0}function fh(t,e){return Object.assign(Object.assign({},zi(t.range,e,t.allDay)),{allDay:t.allDay})}function Pi(t,e,o){return Object.assign(Object.assign({},zi(t,e,o)),{timeZone:e.timeZone})}function zi(t,e,o){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:o}),endStr:e.formatIso(t.end,{omitTime:o})}}function ph(t,e,o){let l=bi({editable:!1},o),r=Mo(l.refined,l.extra,"",t.allDay,!0,o);return{def:r,ui:Ii(r,e),instance:Io(r.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function hh(t,e,o){let l=!1,r=function(s){l||(l=!0,e(s))},i=function(s){l||(l=!0,o(s))},a=t(r,i);a&&typeof a.then=="function"&&a.then(r,i)}class Fi extends Error{constructor(e,o){super(e),this.response=o}}function mh(t,e,o){t=t.toUpperCase();const l={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(o):(l.body=new URLSearchParams(o),l.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,l).then(r=>{if(r.ok)return r.json().then(i=>[i,r],()=>{throw new Fi("Failure parsing JSON",r)});throw new Fi("Request failed",r)})}let $o;function $i(){return $o==null&&($o=gh()),$o}function gh(){if(typeof document>"u")return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="<table><tr><td><div></div></td></tr></table>",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let o=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),o}class yh extends re{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options:o}=e,{forPrint:l}=this.state,r=l||o.height==="auto"||o.contentHeight==="auto",i=!r&&o.height!=null?o.height:"",a=["fc",l?"fc-media-print":"fc-media-screen",`fc-direction-${o.direction}`,e.theme.getClass("root")];return $i()||a.push("fc-liquid-hack"),e.children(a,i,r,l)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class Vt{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function _h(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function Ho(t){return{[t.component.uid]:t}}const Uo={};class bh{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,o){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:o})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,o){let{currentDataManager:l}=this;l.currentCalendarOptionsRefiners[e]?l.emitter.on(e,o):console.warn(`Unknown listener name '${e}'`)}off(e,o){this.currentDataManager.emitter.off(e,o)}trigger(e,...o){this.currentDataManager.emitter.trigger(e,...o)}changeView(e,o){this.batchRendering(()=>{if(this.unselect(),o)if(o.start&&o.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:o});else{let{dateEnv:l}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:l.createMarker(o)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,o){let l=this.getCurrentData(),r;o=o||"day",r=l.viewSpecs[o]||this.getUnitViewSpec(o),this.unselect(),r?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:r.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:o,toolbarConfig:l}=this.getCurrentData(),r=[].concat(l.header?l.header.viewsWithButtons:[],l.footer?l.footer.viewsWithButtons:[]),i,a;for(let s in o)r.push(s);for(i=0;i<r.length;i+=1)if(a=o[r[i]],a&&a.singleUnit===e)return a;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Ht(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let o=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:o.dateEnv.createMarker(e)})}incrementDate(e){let o=this.getCurrentData(),l=te(e);l&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:o.dateEnv.add(o.currentDate,l)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,o){let{dateEnv:l}=this.getCurrentData();return l.format(l.createMarker(e),ge(o))}formatRange(e,o,l){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(o),ge(l),l)}formatIso(e,o){let{dateEnv:l}=this.getCurrentData();return l.formatIso(l.createMarker(e),{omitTime:o})}select(e,o){let l;o==null?e.start!=null?l=e:l={start:e,end:null}:l={start:e,end:o};let r=this.getCurrentData(),i=sh(l,r.dateEnv,te({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),Di(i,null,r))}unselect(e){let o=this.getCurrentData();o.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),Kp(e,o))}addEvent(e,o){if(e instanceof he){let a=e._def,s=e._instance;return this.getCurrentData().eventStore.defs[a.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Oo({def:a,instance:s})}),this.triggerEventAdd(e)),e}let l=this.getCurrentData(),r;if(o instanceof Dt)r=o.internalEventSource;else if(typeof o=="boolean")o&&([r]=xo(l.eventSources));else if(o!=null){let a=this.getEventSourceById(o);if(!a)return console.warn(`Could not find an event source with ID "${o}"`),null;r=a.internalEventSource}let i=_i(e,r,l,!1);if(i){let a=new he(l,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Oo(i)}),this.triggerEventAdd(a),a}return null}triggerEventAdd(e){let{emitter:o}=this.getCurrentData();o.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:Vi(e)})}})}getEventById(e){let o=this.getCurrentData(),{defs:l,instances:r}=o.eventStore;e=String(e);for(let i in l){let a=l[i];if(a.publicId===e){if(a.recurringDef)return new he(o,a,null);for(let s in r){let d=r[s];if(d.defId===a.defId)return new he(o,a,d)}}}return null}getEvents(){let e=this.getCurrentData();return _t(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),o=e.eventSources,l=[];for(let r in o)l.push(new Dt(e,o[r]));return l}getEventSourceById(e){let o=this.getCurrentData(),l=o.eventSources;e=String(e);for(let r in l)if(l[r].publicId===e)return new Dt(o,l[r]);return null}addEventSource(e){let o=this.getCurrentData();if(e instanceof Dt)return o.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let l=Ci(e,o);return l?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[l]}),new Dt(o,l)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let o=te(e);o&&this.trigger("_scrollRequest",{time:o})}}function kh(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function Hi(t,e){let o={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return o.left<o.right&&o.top<o.bottom?o:!1}function Eh(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}function Ch(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function wh(t,e){return{left:t.left-e.left,top:t.top-e.top}}const jo=Be();class vh{constructor(){this.getKeysForEventDefs=q(this._getKeysForEventDefs),this.splitDateSelection=q(this._splitDateSpan),this.splitEventStore=q(this._splitEventStore),this.splitIndividualUi=q(this._splitIndividualUi),this.splitEventDrag=q(this._splitInteraction),this.splitEventResize=q(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let o=this.getKeyInfo(e),l=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,l),a=this.splitEventStore(e.eventStore,l),s=this.splitEventDrag(e.eventDrag),d=this.splitEventResize(e.eventResize),f={};this.eventUiBuilders=je(o,(u,g)=>this.eventUiBuilders[g]||q(Sh));for(let u in o){let g=o[u],m=a[u]||jo,c=this.eventUiBuilders[u];f[u]={businessHours:g.businessHours||e.businessHours,dateSelection:r[u]||null,eventStore:m,eventUiBases:c(e.eventUiBases[""],g.ui,i[u]),eventSelection:m.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[u]||null,eventResize:d[u]||null}}return f}_splitDateSpan(e){let o={};if(e){let l=this.getKeysForDateSpan(e);for(let r of l)o[r]=e}return o}_getKeysForEventDefs(e){return je(e.defs,o=>this.getKeysForEventDef(o))}_splitEventStore(e,o){let{defs:l,instances:r}=e,i={};for(let a in l)for(let s of o[a])i[s]||(i[s]=Be()),i[s].defs[a]=l[a];for(let a in r){let s=r[a];for(let d of o[s.defId])i[d]&&(i[d].instances[a]=s)}return i}_splitIndividualUi(e,o){let l={};for(let r in e)if(r)for(let i of o[r])l[i]||(l[i]={}),l[i][r]=e[r];return l}_splitInteraction(e){let o={};if(e){let l=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,r),a=s=>{o[s]||(o[s]={affectedEvents:l[s]||jo,mutatedEvents:i[s]||jo,isEvent:e.isEvent})};for(let s in l)a(s);for(let s in i)a(s)}return o}}function Sh(t,e,o){let l=[];t&&l.push(t),e&&l.push(e);let r={"":Ei(l)};return o&&Object.assign(r,o),r}function Ui(t,e,o,l){return{dow:t.getUTCDay(),isDisabled:!!(l&&!qe(l.activeRange,t)),isOther:!!(l&&!qe(l.currentRange,t)),isToday:!!(e&&qe(e,t)),isPast:!!(o?t<o:e&&t<e.start),isFuture:!!(o?t>o:e&&t>=e.end)}}function Wo(t,e){let o=["fc-day",`fc-day-${Nf[t.dow]}`];return t.isDisabled?o.push("fc-day-disabled"):(t.isToday&&(o.push("fc-day-today"),o.push(e.getClass("today"))),t.isPast&&o.push("fc-day-past"),t.isFuture&&o.push("fc-day-future"),t.isOther&&o.push("fc-day-other")),o}const Ah=ge({year:"numeric",month:"long",day:"numeric"}),xh=ge({week:"long"});function On(t,e,o="day",l=!0){const{dateEnv:r,options:i,calendarApi:a}=t;let s=r.format(e,o==="week"?xh:Ah);if(i.navLinks){let d=r.toDate(e);const f=u=>{let g=o==="day"?i.navLinkDayClick:o==="week"?i.navLinkWeekClick:null;typeof g=="function"?g.call(a,r.toDate(e),u):(typeof g=="string"&&(o=g),a.zoomTo(e,o))};return Object.assign({title:zt(i.navLinkHint,[s,d],s),"data-navlink":""},l?jr(f):{onClick:f})}return{"aria-label":s}}let Go=null;function Dh(){return Go===null&&(Go=Nh()),Go}function Nh(){let t=document.createElement("div");Pt(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);let o=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return mo(t),o}let qo;function Vh(){return qo||(qo=Bh()),qo}function Bh(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=ji(t);return document.body.removeChild(t),e}function ji(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function Th(t,e=!1){let o=window.getComputedStyle(t),l=parseInt(o.borderLeftWidth,10)||0,r=parseInt(o.borderRightWidth,10)||0,i=parseInt(o.borderTopWidth,10)||0,a=parseInt(o.borderBottomWidth,10)||0,s=ji(t),d=s.y-l-r,f=s.x-i-a,u={borderLeft:l,borderRight:r,borderTop:i,borderBottom:a,scrollbarBottom:f,scrollbarLeft:0,scrollbarRight:0};return Dh()&&o.direction==="rtl"?u.scrollbarLeft=d:u.scrollbarRight=d,e&&(u.paddingLeft=parseInt(o.paddingLeft,10)||0,u.paddingRight=parseInt(o.paddingRight,10)||0,u.paddingTop=parseInt(o.paddingTop,10)||0,u.paddingBottom=parseInt(o.paddingBottom,10)||0),u}function Ih(t,e=!1,o){let l=o?t.getBoundingClientRect():Yo(t),r=Th(t,e),i={left:l.left+r.borderLeft+r.scrollbarLeft,right:l.right-r.borderRight-r.scrollbarRight,top:l.top+r.borderTop,bottom:l.bottom-r.borderBottom-r.scrollbarBottom};return e&&(i.left+=r.paddingLeft,i.right-=r.paddingRight,i.top+=r.paddingTop,i.bottom-=r.paddingBottom),i}function Yo(t){let e=t.getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,right:e.right+window.pageXOffset,bottom:e.bottom+window.pageYOffset}}function Rh(t){let e=Wi(t),o=t.getBoundingClientRect();for(let l of e){let r=Hi(o,l.getBoundingClientRect());if(r)o=r;else return null}return o}function Wi(t){let e=[];for(;t instanceof HTMLElement;){let o=window.getComputedStyle(t);if(o.position==="fixed")break;/(auto|scroll)/.test(o.overflow+o.overflowY+o.overflowX)&&e.push(t),t=t.parentNode}return e}class Bt{constructor(e,o,l,r){this.els=o;let i=this.originClientRect=e.getBoundingClientRect();l&&this.buildElHorizontals(i.left),r&&this.buildElVerticals(i.top)}buildElHorizontals(e){let o=[],l=[];for(let r of this.els){let i=r.getBoundingClientRect();o.push(i.left-e),l.push(i.right-e)}this.lefts=o,this.rights=l}buildElVerticals(e){let o=[],l=[];for(let r of this.els){let i=r.getBoundingClientRect();o.push(i.top-e),l.push(i.bottom-e)}this.tops=o,this.bottoms=l}leftToIndex(e){let{lefts:o,rights:l}=this,r=o.length,i;for(i=0;i<r;i+=1)if(e>=o[i]&&e<l[i])return i}topToIndex(e){let{tops:o,bottoms:l}=this,r=o.length,i;for(i=0;i<r;i+=1)if(e>=o[i]&&e<l[i])return i}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Ln(this.tops||[],e.tops||[])&&Ln(this.bottoms||[],e.bottoms||[])&&Ln(this.lefts||[],e.lefts||[])&&Ln(this.rights||[],e.rights||[])}}function Ln(t,e){const o=t.length;if(o!==e.length)return!1;for(let l=0;l<o;l++)if(Math.round(t[l])!==Math.round(e[l]))return!1;return!0}class Qo{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 Mh extends Qo{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class Oh extends Qo{getScrollTop(){return window.pageYOffset}getScrollLeft(){return window.pageXOffset}setScrollTop(e){window.scroll(window.pageXOffset,e)}setScrollLeft(e){window.scroll(e,window.pageYOffset)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class $e extends re{constructor(){super(...arguments),this.uid=dt()}prepareHits(){}queryHit(e,o,l,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!be(e,".fc-event-mirror")}isValidDateDownEl(e){return!be(e,".fc-event:not(.fc-bg-event)")&&!be(e,".fc-more-link")&&!be(e,"a[data-navlink]")&&!be(e,".fc-popover")}}class Gi{constructor(e=o=>o.thickness){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let o=[];for(let l of e)this.insertEntry(l,o);return o}insertEntry(e,o){let l=this.findInsertion(e);return this.isInsertionValid(l,e)?(this.insertEntryAt(e,l),1):this.handleInvalidInsertion(l,e,o)}isInsertionValid(e,o){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(o)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,o,l){return this.allowReslicing&&e.touchingEntry?this.splitEntry(o,e.touchingEntry,l):(l.push(o),0)}splitEntry(e,o,l){let r=0,i=[],a=e.span,s=o.span;return a.start<s.start&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.start,end:s.start}},i)),a.end>s.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:a.end}},i)),r?(l.push({index:e.index,thickness:e.thickness,span:Xo(s,a)},...i),r):(l.push(e),0)}insertEntryAt(e,o){let{entriesByLevel:l,levelCoords:r}=this;o.lateral===-1?(Ko(r,o.level,o.levelCoord),Ko(l,o.level,[e])):Ko(l[o.level],o.lateral,e),this.stackCnts[bt(e)]=o.stackCnt}findInsertion(e){let{levelCoords:o,entriesByLevel:l,strictOrder:r,stackCnts:i}=this,a=o.length,s=0,d=-1,f=-1,u=null,g=0;for(let y=0;y<a;y+=1){let p=o[y];if(!r&&p>=s+this.getEntryThickness(e))break;let h=l[y],b,_=Jo(h,e.span.start,Zo),w=_[0]+_[1];for(;(b=h[w])&&b.span.start<e.span.end;){let S=p+this.getEntryThickness(b);S>s&&(s=S,u=b,d=y,f=w),S===s&&(g=Math.max(g,i[bt(b)]+1)),w+=1}}let m=0;if(u)for(m=d+1;m<a&&o[m]<s;)m+=1;let c=-1;return m<a&&o[m]===s&&(c=Jo(l[m],e.span.end,Zo)[0]),{touchingLevel:d,touchingLateral:f,touchingEntry:u,stackCnt:g,levelCoord:s,level:m,lateral:c}}toRects(){let{entriesByLevel:e,levelCoords:o}=this,l=e.length,r=[];for(let i=0;i<l;i+=1){let a=e[i],s=o[i];for(let d of a)r.push(Object.assign(Object.assign({},d),{thickness:this.getEntryThickness(d),levelCoord:s}))}return r}}function Zo(t){return t.span.end}function bt(t){return t.index+":"+t.span.start}function Lh(t){let e=[];for(let o of t){let l=[],r={span:o.span,entries:[o]};for(let i of e)Xo(i.span,r.span)?r={entries:i.entries.concat(r.entries),span:Ph(i.span,r.span)}:l.push(i);l.push(r),e=l}return e}function Ph(t,e){return{start:Math.min(t.start,e.start),end:Math.max(t.end,e.end)}}function Xo(t,e){let o=Math.max(t.start,e.start),l=Math.min(t.end,e.end);return o<l?{start:o,end:l}:null}function Ko(t,e,o){t.splice(e,0,o)}function Jo(t,e,o){let l=0,r=t.length;if(!r||e<o(t[l]))return[0,0];if(e>o(t[r-1]))return[r,0];for(;l<r;){let i=Math.floor(l+(r-l)/2),a=o(t[i]);if(e<a)r=i;else if(e>a)l=i+1;else return[i,1]}return[l,0]}class zh{constructor(e,o){this.emitter=new Rn}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const el={};function Fh(t,e){return!t||e>10?ge({weekday:"short"}):e>1?ge({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):ge({weekday:"long"})}const qi="fc-col-header-cell";function Yi(t){return t.text}class $h extends re{render(){let{dateEnv:e,options:o,theme:l,viewApi:r}=this.context,{props:i}=this,{date:a,dateProfile:s}=i,d=Ui(a,i.todayRange,null,s),f=[qi].concat(Wo(d,l)),u=e.format(a,i.dayHeaderFormat),g=!d.isDisabled&&i.colCnt>1?On(this.context,a):{},m=Object.assign(Object.assign(Object.assign({date:e.toDate(a),view:r},i.extraRenderProps),{text:u}),d);return k(Ve,{elTag:"th",elClasses:f,elAttrs:Object.assign({role:"columnheader",colSpan:i.colSpan,"data-date":d.isDisabled?void 0:Co(a)},i.extraDataAttrs),renderProps:m,generatorName:"dayHeaderContent",customGenerator:o.dayHeaderContent,defaultGenerator:Yi,classNameGenerator:o.dayHeaderClassNames,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},c=>k("div",{className:"fc-scrollgrid-sync-inner"},!d.isDisabled&&k(c,{elTag:"a",elAttrs:g,elClasses:["fc-col-header-cell-cushion",i.isSticky&&"fc-sticky"]})))}}const Hh=ge({weekday:"long"});class Uh extends re{render(){let{props:e}=this,{dateEnv:o,theme:l,viewApi:r,options:i}=this.context,a=ke(new Date(2592e5),e.dow),s={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},d=o.format(a,e.dayHeaderFormat),f=Object.assign(Object.assign(Object.assign(Object.assign({date:a},s),{view:r}),e.extraRenderProps),{text:d});return k(Ve,{elTag:"th",elClasses:[qi,...Wo(s,l),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:f,generatorName:"dayHeaderContent",customGenerator:i.dayHeaderContent,defaultGenerator:Yi,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},u=>k("div",{className:"fc-scrollgrid-sync-inner"},k(u,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":o.format(a,Hh)}})))}}class jt extends Ne{constructor(e,o){super(e,o),this.initialNowDate=Ht(o.options.now,o.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:o}=this;return e.children(o.nowDate,o.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:o}=this,l=nt(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),r=o.dateEnv.startOf(l,e.unit),i=o.dateEnv.add(r,te(1,e.unit)),a=i.valueOf()-l.valueOf();return a=Math.min(1e3*60*60*24,a),{currentState:{nowDate:r,todayRange:Qi(r)},nextState:{nowDate:i,todayRange:Qi(i)},waitMs:a}}setTimeout(){let{nextState:e,waitMs:o}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},o)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}jt.contextType=We;function Qi(t){let e=ue(t),o=ke(e,1);return{start:e,end:o}}class Zi extends re{constructor(){super(...arguments),this.createDayHeaderFormatter=q(jh)}render(){let{context:e}=this,{dates:o,dateProfile:l,datesRepDistinctDays:r,renderIntro:i}=this.props,a=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,o.length);return k(jt,{unit:"day"},(s,d)=>k("tr",{role:"row"},i&&i("day"),o.map(f=>r?k($h,{key:f.toISOString(),date:f,dateProfile:l,todayRange:d,colCnt:o.length,dayHeaderFormat:a}):k(Uh,{key:f.getUTCDay(),dow:f.getUTCDay(),dayHeaderFormat:a}))))}}function jh(t,e,o){return t||Fh(e,o)}class Xi{constructor(e,o){let l=e.start,{end:r}=e,i=[],a=[],s=-1;for(;l<r;)o.isHiddenDay(l)?i.push(s+.5):(s+=1,i.push(s),a.push(l)),l=ke(l,1);this.dates=a,this.indices=i,this.cnt=a.length}sliceRange(e){let o=this.getDateDayIndex(e.start),l=this.getDateDayIndex(ke(e.end,-1)),r=Math.max(0,o),i=Math.min(this.cnt-1,l);return r=Math.ceil(r),i=Math.floor(i),r<=i?{firstIndex:r,lastIndex:i,isStart:o===r,isEnd:l===i}:null}getDateDayIndex(e){let{indices:o}=this,l=Math.floor(ut(this.dates[0],e));return l<0?o[0]-1:l>=o.length?o[o.length-1]+1:o[l]}}class Ki{constructor(e,o){let{dates:l}=e,r,i,a;if(o){for(i=l[0].getUTCDay(),r=1;r<l.length&&l[r].getUTCDay()!==i;r+=1);a=Math.ceil(l.length/r)}else a=1,r=l.length;this.rowCnt=a,this.colCnt=r,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let o=0;o<this.rowCnt;o+=1){let l=[];for(let r=0;r<this.colCnt;r+=1)l.push(this.buildCell(o,r));e.push(l)}return e}buildCell(e,o){let l=this.daySeries.dates[e*this.colCnt+o];return{key:l.toISOString(),date:l}}buildHeaderDates(){let e=[];for(let o=0;o<this.colCnt;o+=1)e.push(this.cells[0][o].date);return e}sliceRange(e){let{colCnt:o}=this,l=this.daySeries.sliceRange(e),r=[];if(l){let{firstIndex:i,lastIndex:a}=l,s=i;for(;s<=a;){let d=Math.floor(s/o),f=Math.min((d+1)*o,a+1);r.push({row:d,firstCol:s%o,lastCol:(f-1)%o,isStart:l.isStart&&s===i,isEnd:l.isEnd&&f-1===a}),s=f}}return r}}class Ji{constructor(){this.sliceBusinessHours=q(this._sliceBusinessHours),this.sliceDateSelection=q(this._sliceDateSpan),this.sliceEventStore=q(this._sliceEventStore),this.sliceEventDrag=q(this._sliceInteraction),this.sliceEventResize=q(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,o,l,r,...i){let{eventUiBases:a}=e,s=this.sliceEventStore(e.eventStore,a,o,l,...i);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,o,l,a,r,...i),businessHourSegs:this.sliceBusinessHours(e.businessHours,o,l,r,...i),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag(e.eventDrag,a,o,l,...i),eventResize:this.sliceEventResize(e.eventResize,a,o,l,...i),eventSelection:e.eventSelection}}sliceNowDate(e,o,l,r,...i){return this._sliceDateSpan({range:{start:e,end:nt(e,1)},allDay:!1},o,l,{},r,...i)}_sliceBusinessHours(e,o,l,r,...i){return e?this._sliceEventStore(yt(e,Pn(o,!!l),r),{},o,l,...i).bg:[]}_sliceEventStore(e,o,l,r,...i){if(e){let a=Bi(e,o,Pn(l,!!r),r);return{bg:this.sliceEventRanges(a.bg,i),fg:this.sliceEventRanges(a.fg,i)}}return{bg:[],fg:[]}}_sliceInteraction(e,o,l,r,...i){if(!e)return null;let a=Bi(e.mutatedEvents,o,Pn(l,!!r),r);return{segs:this.sliceEventRanges(a.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,o,l,r,i,...a){if(!e)return[];let s=Pn(o,!!l),d=gt(e.range,s);if(d){e=Object.assign(Object.assign({},e),{range:d});let f=ph(e,r,i),u=this.sliceRange(e.range,...a);for(let g of u)g.eventRange=f;return u}return[]}sliceEventRanges(e,o){let l=[];for(let r of e)l.push(...this.sliceEventRange(r,o));return l}sliceEventRange(e,o){let l=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(l={start:l.start,end:ke(l.start,1)});let r=this.sliceRange(l,...o);for(let i of r)i.eventRange=e,i.isStart=e.isStart&&i.isStart,i.isEnd=e.isEnd&&i.isEnd;return r}}function Pn(t,e){let o=t.activeRange;return e?o:{start:nt(o.start,t.slotMinTime.milliseconds),end:nt(o.end,t.slotMaxTime.milliseconds-864e5)}}function ea(t,e,o){let{instances:l}=t.mutatedEvents;for(let r in l)if(!Nn(e.validRange,l[r].range))return!1;return ta({eventDrag:t},o)}function Wh(t,e,o){return Nn(e.validRange,t.range)?ta({dateSelection:t},o):!1}function ta(t,e){let o=e.getCurrentData(),l=Object.assign({businessHours:o.businessHours,dateSelection:"",eventStore:o.eventStore,eventUiBases:o.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||Gh)(l,e)}function Gh(t,e,o={},l){return!(t.eventDrag&&!qh(t,e,o,l)||t.dateSelection&&!Yh(t,e,o,l))}function qh(t,e,o,l){let r=e.getCurrentData(),i=t.eventDrag,a=i.mutatedEvents,s=a.defs,d=a.instances,f=Mn(s,i.isEvent?t.eventUiBases:{"":r.selectionConfig});l&&(f=je(f,l));let u=Wp(t.eventStore,i.affectedEvents.instances),g=u.defs,m=u.instances,c=Mn(g,t.eventUiBases);for(let y in d){let p=d[y],h=p.range,b=f[p.defId],_=s[p.defId];if(!na(b.constraints,h,u,t.businessHours,e))return!1;let{eventOverlap:w}=e.options,S=typeof w=="function"?w:null;for(let N in m){let C=m[N];if(To(h,C.range)&&(c[C.defId].overlap===!1&&i.isEvent||b.overlap===!1||S&&!S(new he(e,g[C.defId],C),new he(e,_,p))))return!1}let O=r.eventStore;for(let N of b.allows){let C=Object.assign(Object.assign({},o),{range:p.range,allDay:_.allDay}),E=O.defs[_.defId],B=O.instances[y],I;if(E?I=new he(e,E,B):I=new he(e,_),!N(zo(C,e),I))return!1}}return!0}function Yh(t,e,o,l){let r=t.eventStore,i=r.defs,a=r.instances,s=t.dateSelection,d=s.range,{selectionConfig:f}=e.getCurrentData();if(l&&(f=l(f)),!na(f.constraints,d,r,t.businessHours,e))return!1;let{selectOverlap:u}=e.options,g=typeof u=="function"?u:null;for(let m in a){let c=a[m];if(To(d,c.range)&&(f.overlap===!1||g&&!g(new he(e,i[c.defId],c),null)))return!1}for(let m of f.allows){let c=Object.assign(Object.assign({},o),s);if(!m(zo(c,e),null))return!1}return!0}function na(t,e,o,l,r){for(let i of t)if(!Zh(Qh(i,e,o,l,r),e))return!1;return!0}function Qh(t,e,o,l,r){return t==="businessHours"?tl(yt(l,e,r)):typeof t=="string"?tl(Bn(o,i=>i.groupId===t)):typeof t=="object"&&t?tl(yt(t,e,r)):[]}function tl(t){let{instances:e}=t,o=[];for(let l in e)o.push(e[l].range);return o}function Zh(t,e){for(let o of t)if(Nn(o,e))return!0;return!1}const zn=/^(visible|hidden)$/;class Xh extends re{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,Ge(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:o,liquidIsAbsolute:l}=e,r=o&&l,i=["fc-scroller"];return o&&(l?i.push("fc-scroller-liquid-absolute"):i.push("fc-scroller-liquid")),k("div",{ref:this.handleEl,className:i.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(zn.test(this.props.overflowX))return!1;let{el:e}=this,o=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:l}=e;for(let r=0;r<l.length;r+=1)if(l[r].getBoundingClientRect().width>o)return!0;return!1}needsYScrolling(){if(zn.test(this.props.overflowY))return!1;let{el:e}=this,o=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:l}=e;for(let r=0;r<l.length;r+=1)if(l[r].getBoundingClientRect().height>o)return!0;return!1}getXScrollbarWidth(){return zn.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return zn.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class Ye{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(o,l)=>{let{depths:r,currentMap:i}=this,a=!1,s=!1;o!==null?(a=l in i,i[l]=o,r[l]=(r[l]||0)+1,s=!0):(r[l]-=1,r[l]||(delete i[l],delete this.callbackMap[l],a=!0)),this.masterCallback&&(a&&this.masterCallback(null,String(l)),s&&this.masterCallback(o,String(l)))}}createRef(e){let o=this.callbackMap[e];return o||(o=this.callbackMap[e]=l=>{this.handleValue(l,String(e))}),o}collect(e,o,l){return sp(this.currentMap,e,o,l)}getAll(){return xo(this.currentMap)}}function Kh(t){let e=af(t,".fc-scrollgrid-shrink"),o=0;for(let l of e)o=Math.max(o,Ef(l));return Math.ceil(o)}function oa(t,e){return t.liquid&&e.liquid}function Jh(t,e){return e.maxHeight!=null||oa(t,e)}function em(t,e,o,l){let{expandRows:r}=o;return typeof e.content=="function"?e.content(o):k("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:o.tableMinWidth,width:o.clientWidth,height:r?o.clientHeight:""}},o.tableColGroupNode,k(l?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(o):e.rowContent))}function tm(t,e){return tt(t,e,Fe)}function nm(t,e){let o=[];for(let l of t){let r=l.span||1;for(let i=0;i<r;i+=1)o.push(k("col",{style:{width:l.width==="shrink"?om(e):l.width||"",minWidth:l.minWidth||""}}))}return k("colgroup",{},...o)}function om(t){return t??4}function lm(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function rm(t,e){let o=["fc-scrollgrid",e.theme.getClass("table")];return t&&o.push("fc-scrollgrid-liquid"),o}function im(t,e){let o=["fc-scrollgrid-section",`fc-scrollgrid-section-${t.type}`,t.className];return e&&t.liquid&&t.maxHeight==null&&o.push("fc-scrollgrid-section-liquid"),t.isSticky&&o.push("fc-scrollgrid-section-sticky"),o}function nl(t){return k("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function Fn(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function la(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class ol extends re{constructor(){super(...arguments),this.processCols=q(e=>e,tm),this.renderMicroColGroup=q(nm),this.scrollerRefs=new Ye,this.scrollerElRefs=new Ye(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:e,state:o,context:l}=this,r=e.sections||[],i=this.processCols(e.cols),a=this.renderMicroColGroup(i,o.shrinkWidth),s=rm(e.liquid,l);e.collapsibleWidth&&s.push("fc-scrollgrid-collapsible");let d=r.length,f=0,u,g=[],m=[],c=[];for(;f<d&&(u=r[f]).type==="header";)g.push(this.renderSection(u,a,!0)),f+=1;for(;f<d&&(u=r[f]).type==="body";)m.push(this.renderSection(u,a,!1)),f+=1;for(;f<d&&(u=r[f]).type==="footer";)c.push(this.renderSection(u,a,!0)),f+=1;let y=!$i();const p={role:"rowgroup"};return k("table",{role:"grid",className:s.join(" "),style:{height:e.height}},!!(!y&&g.length)&&k("thead",p,...g),!!(!y&&m.length)&&k("tbody",p,...m),!!(!y&&c.length)&&k("tfoot",p,...c),y&&k("tbody",p,...g,...m,...c))}renderSection(e,o,l){return"outerContent"in e?k(fe,{key:e.key},e.outerContent):k("tr",{key:e.key,role:"presentation",className:im(e,this.props.liquid).join(" ")},this.renderChunkTd(e,o,e.chunk,l))}renderChunkTd(e,o,l,r){if("outerContent"in l)return l.outerContent;let{props:i}=this,{forceYScrollbars:a,scrollerClientWidths:s,scrollerClientHeights:d}=this.state,f=Jh(i,e),u=oa(i,e),g=i.liquid?a?"scroll":f?"auto":"hidden":"visible",m=e.key,c=em(e,l,{tableColGroupNode:o,tableMinWidth:"",clientWidth:!i.collapsibleWidth&&s[m]!==void 0?s[m]:null,clientHeight:d[m]!==void 0?d[m]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},r);return k(r?"th":"td",{ref:l.elRef,role:"presentation"},k("div",{className:`fc-scroller-harness${u?" fc-scroller-harness-liquid":""}`},k(Xh,{ref:this.scrollerRefs.createRef(m),elRef:this.scrollerElRefs.createRef(m),overflowY:g,overflowX:i.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},c)))}_handleScrollerEl(e,o){let l=am(this.props.sections,o);l&&Ge(l.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return lm(this.props.cols)?Kh(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Vh(),{scrollerRefs:o,scrollerElRefs:l}=this,r=!1,i={},a={};for(let s in o.currentMap){let d=o.currentMap[s];if(d&&d.needsYScrolling()){r=!0;break}}for(let s of this.props.sections){let d=s.key,f=l.currentMap[d];if(f){let u=f.parentNode;i[d]=Math.floor(u.getBoundingClientRect().width-(r?e.y:0)),a[d]=Math.floor(u.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:i,scrollerClientHeights:a}}}ol.addStateEquality({scrollerClientWidths:Fe,scrollerClientHeights:Fe});function am(t,e){for(let o of t)if(o.key===e)return o;return null}class ll extends re{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&Ti(e,this.props.seg)}}render(){const{props:e,context:o}=this,{options:l}=o,{seg:r}=e,{eventRange:i}=r,{ui:a}=i,s={event:new he(o,i.def,i.instance),view:o.viewApi,timeText:e.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!e.disableDragging&&oh(r,o),isStartResizable:!e.disableResizing&&lh(r,o),isEndResizable:!e.disableResizing&&rh(r),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!r.isStart,isEnd:!!r.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return k(Ve,Object.assign({},e,{elRef:this.handleEl,elClasses:[...ih(s),...r.eventRange.ui.classNames,...e.elClasses||[]],renderProps:s,generatorName:"eventContent",customGenerator:l.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:l.eventClassNames,didMount:l.eventDidMount,willUnmount:l.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&Ti(this.el,this.props.seg)}}class ra extends re{render(){let{props:e,context:o}=this,{options:l}=o,{seg:r}=e,{ui:i}=r.eventRange,a=l.eventTimeFormat||e.defaultTimeFormat,s=Mi(r,a,o,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return k(ll,Object.assign({},e,{elTag:"a",elStyle:{borderColor:i.borderColor,backgroundColor:i.backgroundColor},elAttrs:Li(r,o),defaultGenerator:sm,timeText:s}),(d,f)=>k(fe,null,k(d,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:f.textColor}}),!!f.isStartResizable&&k("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!f.isEndResizable&&k("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function sm(t){return k("div",{className:"fc-event-main-frame"},t.timeText&&k("div",{className:"fc-event-time"},t.timeText),k("div",{className:"fc-event-title-container"},k("div",{className:"fc-event-title fc-sticky"},t.event.title||k(fe,null," "))))}const rl=t=>k(We.Consumer,null,e=>{let{options:o}=e,l={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return k(Ve,Object.assign({},t,{elTag:t.elTag||"div",renderProps:l,generatorName:"nowIndicatorContent",customGenerator:o.nowIndicatorContent,classNameGenerator:o.nowIndicatorClassNames,didMount:o.nowIndicatorDidMount,willUnmount:o.nowIndicatorWillUnmount}))}),cm=ge({day:"numeric"});class il extends re{constructor(){super(...arguments),this.refineRenderProps=Cn(dm)}render(){let{props:e,context:o}=this,{options:l}=o,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:o.viewApi,dateEnv:o.dateEnv,monthStartFormat:l.monthStartFormat});return k(Ve,Object.assign({},e,{elClasses:[...Wo(r,o.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":Co(e.date)}),renderProps:r,generatorName:"dayCellContent",customGenerator:l.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:l.dayCellClassNames,didMount:l.dayCellDidMount,willUnmount:l.dayCellWillUnmount}))}}function al(t){return!!(t.dayCellContent||Bo("dayCellContent",t))}function dm(t){let{date:e,dateEnv:o,dateProfile:l,isMonthStart:r}=t,i=Ui(e,t.todayRange,null,l),a=t.showDayNumber?o.format(e,r?t.monthStartFormat:cm):"";return Object.assign(Object.assign(Object.assign({date:o.toDate(e),view:t.viewApi},i),{isMonthStart:r,dayNumberText:a}),t.extraRenderProps)}class ia extends re{render(){let{props:e}=this,{seg:o}=e;return k(ll,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:o.eventRange.ui.backgroundColor},defaultGenerator:um,seg:o,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function um(t){let{title:e}=t.event;return e&&k("div",{className:"fc-event-title"},t.event.title)}function aa(t){return k("div",{className:`fc-${t}`})}const sa=t=>k(We.Consumer,null,e=>{let{dateEnv:o,options:l}=e,{date:r}=t,i=l.weekNumberFormat||t.defaultFormat,a=o.computeWeekNumber(r),s=o.format(r,i);return k(Ve,Object.assign({},t,{renderProps:{num:a,text:s,date:r},generatorName:"weekNumberContent",customGenerator:l.weekNumberContent,defaultGenerator:fm,classNameGenerator:l.weekNumberClassNames,didMount:l.weekNumberDidMount,willUnmount:l.weekNumberWillUnmount}))});function fm(t){return t.text}const sl=10;class pm extends re{constructor(){super(...arguments),this.state={titleId:_n()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&Ge(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const o=Fr(e);this.rootEl.contains(o)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:o}=this.context,{props:l,state:r}=this,i=["fc-popover",e.getClass("popover")].concat(l.extraClassNames||[]);return Gu(k("div",Object.assign({},l.extraAttrs,{id:l.id,className:i.join(" "),"aria-labelledby":r.titleId,ref:this.handleRootEl}),k("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},k("span",{className:"fc-popover-title",id:r.titleId},l.title),k("span",{className:"fc-popover-close "+e.getIconClass("close"),title:o.closeHint,onClick:this.handleCloseClick})),k("div",{className:"fc-popover-body "+e.getClass("popoverContent")},l.children)),l.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:e}=this.context,{alignmentEl:o,alignGridTop:l}=this.props,{rootEl:r}=this,i=Rh(o);if(i){let a=r.getBoundingClientRect(),s=l?be(o,".fc-scrollgrid").getBoundingClientRect().top:i.top,d=e?i.right-a.width:i.left;s=Math.max(s,sl),d=Math.min(d,document.documentElement.clientWidth-sl-a.width),d=Math.max(d,sl);let f=r.offsetParent.getBoundingClientRect();Pt(r,{top:s-f.top,left:d-f.left})}}}class hm extends $e{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:o}=this.context,{props:l}=this,{startDate:r,todayRange:i,dateProfile:a}=l,s=o.format(r,e.dayPopoverFormat);return k(il,{elRef:this.handleRootEl,date:r,dateProfile:a,todayRange:i},(d,f,u)=>k(pm,{elRef:u.ref,id:l.id,title:s,extraClassNames:["fc-more-popover"].concat(u.className||[]),extraAttrs:u,parentEl:l.parentEl,alignmentEl:l.alignmentEl,alignGridTop:l.alignGridTop,onClose:l.onClose},al(e)&&k(d,{elTag:"div",elClasses:["fc-more-popover-misc"]}),l.children))}queryHit(e,o,l,r){let{rootEl:i,props:a}=this;return e>=0&&e<l&&o>=0&&o<r?{dateProfile:a.dateProfile,dateSpan:Object.assign({allDay:!a.forceTimed,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:l,bottom:r},layer:1}:null}}class ca extends re{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:_n()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&Ge(this.props.elRef,e)},this.handleClick=e=>{let{props:o,context:l}=this,{moreLinkClick:r}=l.options,i=da(o).start;function a(s){let{def:d,instance:f,range:u}=s.eventRange;return{event:new he(l,d,f),start:l.dateEnv.toDate(u.start),end:l.dateEnv.toDate(u.end),isStart:s.isStart,isEnd:s.isEnd}}typeof r=="function"&&(r=r({date:i,allDay:!!o.allDayDate,allSegs:o.allSegs.map(a),hiddenSegs:o.hiddenSegs.map(a),jsEvent:e,view:l.viewApi})),!r||r==="popover"?this.setState({isPopoverOpen:!0}):typeof r=="string"&&l.calendarApi.zoomTo(i,r)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:o}=this;return k(We.Consumer,null,l=>{let{viewApi:r,options:i,calendarApi:a}=l,{moreLinkText:s}=i,{moreCnt:d}=e,f=da(e),u=typeof s=="function"?s.call(a,d):`+${d} ${s}`,g=zt(i.moreLinkHint,[d],u),m={num:d,shortText:`+${d}`,text:u,view:r};return k(fe,null,!!e.moreCnt&&k(Ve,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),jr(this.handleClick)),{title:g,"aria-expanded":o.isPopoverOpen,"aria-controls":o.isPopoverOpen?o.popoverId:""}),renderProps:m,generatorName:"moreLinkContent",customGenerator:i.moreLinkContent,defaultGenerator:e.defaultGenerator||mm,classNameGenerator:i.moreLinkClassNames,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},e.children),o.isPopoverOpen&&k(hm,{id:o.popoverId,startDate:f.start,endDate:f.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=be(this.linkEl,".fc-view-harness"))}}function mm(t){return t.text}function da(t){if(t.allDayDate)return{start:t.allDayDate,end:ke(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:ua(e),end:ym(e)}}function ua(t){return t.reduce(gm).eventRange.range.start}function gm(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function ym(t){return t.reduce(_m).eventRange.range.end}function _m(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class bm{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let o of this.handlers)o(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class km extends bm{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:o}=this;let l=!1;e.isActive?(o.set(e.id,e),l=!0):o.has(e.id)&&(o.delete(e.id),l=!0),l&&this.set(o)}}const Em=[],fa={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"},pa=Object.assign(Object.assign({},fa),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function Cm(t){let e=t.length>0?t[0].code:"en",o=Em.concat(t),l={en:pa};for(let r of o)l[r.code]=r;return{map:l,defaultCode:e}}function ha(t,e){return typeof t=="object"&&!Array.isArray(t)?ma(t.code,[t.code],t):wm(t,e)}function wm(t,e){let o=[].concat(t||[]),l=vm(o,e)||pa;return ma(t,o,l)}function vm(t,e){for(let o=0;o<t.length;o+=1){let l=t[o].toLocaleLowerCase().split("-");for(let r=l.length;r>0;r-=1){let i=l.slice(0,r).join("-");if(e[i])return e[i]}}return null}function ma(t,e,o){let l=Ao([fa,o],["buttonText"]);delete l.code;let{week:r}=l;return delete l.week,{codeArg:t,codes:e,week:r,simpleNumberFormat:new Intl.NumberFormat(t),options:l}}function Qe(t){return{id:dt(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function Sm(t,e){let o={},l={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 r(i){for(let a of i){const s=a.name,d=o[s];d===void 0?(o[s]=a.id,r(a.deps),l=xm(l,a)):d!==a.id&&console.warn(`Duplicate plugin '${s}'`)}}return t&&r(t),r(e),l}function Am(){let t=[],e=[],o;return(l,r)=>((!o||!tt(l,t)||!tt(r,e))&&(o=Sm(l,r)),t=l,e=r,o)}function xm(t,e){return{premiumReleaseDate:Dm(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function Dm(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class it extends $t{}it.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},it.prototype.baseIconClass="fc-icon",it.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"},it.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},it.prototype.iconOverrideOption="buttonIcons",it.prototype.iconOverrideCustomButtonOption="icon",it.prototype.iconOverridePrefix="fc-icon-";function Nm(t,e){let o={},l;for(l in t)cl(l,o,t,e);for(l in e)cl(l,o,t,e);return o}function cl(t,e,o,l){if(e[t])return e[t];let r=Vm(t,e,o,l);return r&&(e[t]=r),r}function Vm(t,e,o,l){let r=o[t],i=l[t],a=u=>r&&r[u]!==null?r[u]:i&&i[u]!==null?i[u]:null,s=a("component"),d=a("superType"),f=null;if(d){if(d===t)throw new Error("Can't have a custom view type that references itself");f=cl(d,e,o,l)}return!s&&f&&(s=f.component),s?{type:t,component:s,defaults:Object.assign(Object.assign({},f?f.defaults:{}),r?r.rawOptions:{}),overrides:Object.assign(Object.assign({},f?f.overrides:{}),i?i.rawOptions:{})}:null}function ga(t){return je(t,Bm)}function Bm(t){let e=typeof t=="function"?{component:t}:t,{component:o}=e;return e.content?o=ya(e):o&&!(o.prototype instanceof re)&&(o=ya(Object.assign(Object.assign({},e),{content:o}))),{superType:e.type,component:o,rawOptions:e}}function ya(t){return e=>k(We.Consumer,null,o=>k(Ve,{elTag:"div",elClasses:fi(o.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:o.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function Tm(t,e,o,l){let r=ga(t),i=ga(e.views),a=Nm(r,i);return je(a,s=>Im(s,i,e,o,l))}function Im(t,e,o,l,r){let i=t.overrides.duration||t.defaults.duration||l.duration||o.duration,a=null,s="",d="",f={};if(i&&(a=Rm(i),a)){let m=ko(a);s=m.unit,m.value===1&&(d=s,f=e[s]?e[s].rawOptions:{})}let u=m=>{let c=m.buttonText||{},y=t.defaults.buttonTextKey;return y!=null&&c[y]!=null?c[y]:c[t.type]!=null?c[t.type]:c[d]!=null?c[d]:null},g=m=>{let c=m.buttonHints||{},y=t.defaults.buttonTextKey;return y!=null&&c[y]!=null?c[y]:c[t.type]!=null?c[t.type]:c[d]!=null?c[d]:null};return{type:t.type,component:t.component,duration:a,durationUnit:s,singleUnit:d,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},f),t.overrides),buttonTextOverride:u(l)||u(o)||t.overrides.buttonText,buttonTextDefault:u(r)||t.defaults.buttonText||u(Ft)||t.type,buttonTitleOverride:g(l)||g(o)||t.overrides.buttonHint,buttonTitleDefault:g(r)||t.defaults.buttonHint||g(Ft)}}let _a={};function Rm(t){let e=JSON.stringify(t),o=_a[e];return o===void 0&&(o=te(t),_a[e]=o),o}function Mm(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function Om(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function Lm(t,e,o,l){let r;switch(e.type){case"CHANGE_VIEW_TYPE":return l.build(e.dateMarker||o);case"CHANGE_DATE":return l.build(e.dateMarker);case"PREV":if(r=l.buildPrev(t,o),r.isValid)return r;break;case"NEXT":if(r=l.buildNext(t,o),r.isValid)return r;break}return t}function Pm(t,e,o){let l=e?e.activeRange:null;return ka({},Wm(t,o),l,o)}function zm(t,e,o,l){let r=o?o.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return ka(t,e.sources,r,l);case"REMOVE_EVENT_SOURCE":return $m(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return o?Ea(t,r,l):t;case"FETCH_EVENT_SOURCES":return dl(t,e.sourceIds?ii(e.sourceIds):Ca(t,l),r,e.isRefetch||!1,l);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return jm(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function Fm(t,e,o){let l=e?e.activeRange:null;return dl(t,Ca(t,o),l,!0,o)}function ba(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function ka(t,e,o,l){let r={};for(let i of e)r[i.sourceId]=i;return o&&(r=Ea(r,o,l)),Object.assign(Object.assign({},t),r)}function $m(t,e){return ht(t,o=>o.sourceId!==e)}function Ea(t,e,o){return dl(t,ht(t,l=>Hm(l,e,o)),e,!1,o)}function Hm(t,e,o){return wa(t,o)?!o.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function dl(t,e,o,l,r){let i={};for(let a in t){let s=t[a];e[a]?i[a]=Um(s,o,l,r):i[a]=s}return i}function Um(t,e,o,l){let{options:r,calendarApi:i}=l,a=l.pluginHooks.eventSourceDefs[t.sourceDefId],s=dt();return a.fetch({eventSource:t,range:e,isRefetch:o,context:l},d=>{let{rawEvents:f}=d;r.eventSourceSuccess&&(f=r.eventSourceSuccess.call(i,f,d.response)||f),t.success&&(f=t.success.call(i,f,d.response)||f),l.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:s,fetchRange:e,rawEvents:f})},d=>{let f=!1;r.eventSourceFailure&&(r.eventSourceFailure.call(i,d),f=!0),t.failure&&(t.failure(d),f=!0),f||console.warn(d.message,d),l.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:s,fetchRange:e,error:d})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:s})}function jm(t,e,o,l){let r=t[e];return r&&o===r.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},r),{isFetching:!1,fetchRange:l})}):t}function Ca(t,e){return ht(t,o=>wa(o,e))}function Wm(t,e){let o=wi(e),l=[].concat(t.eventSources||[]),r=[];t.initialEvents&&l.unshift(t.initialEvents),t.events&&l.unshift(t.events);for(let i of l){let a=Ci(i,e,o);a&&r.push(a)}return r}function wa(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function Gm(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function qm(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function Ym(t,e){let o;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return o=e.state,{affectedEvents:o.affectedEvents,mutatedEvents:o.mutatedEvents,isEvent:o.isEvent};default:return t}}function Qm(t,e){let o;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return o=e.state,{affectedEvents:o.affectedEvents,mutatedEvents:o.mutatedEvents,isEvent:o.isEvent};default:return t}}function Zm(t,e,o,l,r){let i=t.headerToolbar?va(t.headerToolbar,t,e,o,l,r):null,a=t.footerToolbar?va(t.footerToolbar,t,e,o,l,r):null;return{header:i,footer:a}}function va(t,e,o,l,r,i){let a={},s=[],d=!1;for(let f in t){let u=t[f],g=Xm(u,e,o,l,r,i);a[f]=g.widgets,s.push(...g.viewsWithButtons),d=d||g.hasTitle}return{sectionWidgets:a,viewsWithButtons:s,hasTitle:d}}function Xm(t,e,o,l,r,i){let a=e.direction==="rtl",s=e.customButtons||{},d=o.buttonText||{},f=e.buttonText||{},u=o.buttonHints||{},g=e.buttonHints||{},m=t?t.split(" "):[],c=[],y=!1;return{widgets:m.map(h=>h.split(",").map(b=>{if(b==="title")return y=!0,{buttonName:b};let _,w,S,O,N,C;if(_=s[b])S=E=>{_.click&&_.click.call(E.target,E,E.target)},(O=l.getCustomButtonIconClass(_))||(O=l.getIconClass(b,a))||(N=_.text),C=_.hint||_.text;else if(w=r[b]){c.push(b),S=()=>{i.changeView(b)},(N=w.buttonTextOverride)||(O=l.getIconClass(b,a))||(N=w.buttonTextDefault);let E=w.buttonTextOverride||w.buttonTextDefault;C=zt(w.buttonTitleOverride||w.buttonTitleDefault||e.viewHint,[E,b],E)}else if(i[b])if(S=()=>{i[b]()},(N=d[b])||(O=l.getIconClass(b,a))||(N=f[b]),b==="prevYear"||b==="nextYear"){let E=b==="prevYear"?"prev":"next";C=zt(u[E]||g[E],[f.year||"year","year"],f[b])}else C=E=>zt(u[b]||g[b],[f[E]||E,E],f[b]);return{buttonName:b,buttonClick:S,buttonIcon:O,buttonText:N,buttonHint:C}})),viewsWithButtons:c,hasTitle:y}}class Km{constructor(e,o,l){this.type=e,this.getCurrentData=o,this.dateEnv=l}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(e){return this.getCurrentData().options[e]}}const Jm=Qe({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}}]}),eg=Qe({name:"func-event-source",eventSourceDefs:[{parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,o){const{dateEnv:l}=t.context,r=t.eventSource.meta;hh(r.bind(null,Pi(t.range,l)),i=>e({rawEvents:i}),o)}}]}),tg=Qe({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:V,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,o){const{meta:l}=t.eventSource,r=ng(l,t.range,t.context);mh(l.method,l.url,r).then(([i,a])=>{e({rawEvents:i,response:a})},o)}}]});function ng(t,e,o){let{dateEnv:l,options:r}=o,i,a,s,d,f={};return i=t.startParam,i==null&&(i=r.startParam),a=t.endParam,a==null&&(a=r.endParam),s=t.timeZoneParam,s==null&&(s=r.timeZoneParam),typeof t.extraParams=="function"?d=t.extraParams():d=t.extraParams||{},Object.assign(f,d),f[i]=l.formatIso(e.start),f[a]=l.formatIso(e.end),l.timeZone!=="local"&&(f[s]=l.timeZone),f}const og=Qe({name:"simple-recurring-event",recurringTypes:[{parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let o={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null},l;return t.duration&&(l=t.duration),!l&&t.startTime&&t.endTime&&(l=Sf(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:l,typeData:o}}return null},expand(t,e,o){let l=gt(e,{start:t.startRecur,end:t.endRecur});return l?lg(t.daysOfWeek,t.startTime,l,o):[]}}],eventRefiners:{daysOfWeek:V,startTime:te,endTime:te,duration:te,startRecur:V,endRecur:V}});function lg(t,e,o,l){let r=t?ii(t):null,i=ue(o.start),a=o.end,s=[];for(;i<a;){let d;(!r||r[i.getUTCDay()])&&(e?d=l.add(i,e):d=i,s.push(d)),i=ke(i,1)}return s}const rg=Qe({name:"change-handler",optionChangeHandlers:{events(t,e){Sa([t],e)},eventSources:Sa}});function Sa(t,e){let o=xo(e.getCurrentData().eventSources);if(o.length===1&&t.length===1&&Array.isArray(o[0]._raw)&&Array.isArray(t[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:o[0].sourceId,rawEvents:t[0]});return}let l=[];for(let r of t){let i=!1;for(let a=0;a<o.length;a+=1)if(o[a]._raw===r){o.splice(a,1),i=!0;break}i||l.push(r)}for(let r of o)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:r.sourceId});for(let r of l)e.calendarApi.addEventSource(r)}function ig(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},Pi(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function ag(t,e){let{emitter:o}=e;o.hasHandlers("eventsSet")&&o.trigger("eventsSet",_t(t,e))}const sg=[Jm,eg,tg,og,rg,Qe({name:"misc",isLoadingFuncs:[t=>ba(t.eventSources)],propSetHandlers:{dateProfile:ig,eventStore:ag}})];class cg{constructor(e,o){this.runTaskOption=e,this.drainedOption=o,this.queue=[],this.delayedRunner=new ho(this.drain.bind(this))}request(e,o){this.queue.push(e),this.delayedRunner.request(o)}pause(e){this.delayedRunner.pause(e)}resume(e,o){this.delayedRunner.resume(e,o)}drain(){let{queue:e}=this;for(;e.length;){let o=[],l;for(;l=e.shift();)this.runTask(l),o.push(l);this.drained(o)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function dg(t,e,o){let l;return/^(year|month)$/.test(t.currentRangeUnit)?l=t.currentRange:l=t.activeRange,o.formatRange(l.start,l.end,ge(e.titleFormat||ug(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function ug(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let o=En(t.currentRange.start,t.currentRange.end);return o!==null&&o>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class fg{constructor(e){this.computeCurrentViewData=q(this._computeCurrentViewData),this.organizeRawLocales=q(Cm),this.buildLocale=q(ha),this.buildPluginHooks=Am(),this.buildDateEnv=q(pg),this.buildTheme=q(hg),this.parseToolbars=q(Zm),this.buildViewSpecs=q(Tm),this.buildDateProfileGenerator=Cn(mg),this.buildViewApi=q(gg),this.buildViewUiProps=Cn(bg),this.buildEventUiBySource=q(yg,Fe),this.buildEventUiBases=q(_g),this.parseContextBusinessHours=Cn(kg),this.buildTitle=q(dg),this.emitter=new Rn,this.actionRunner=new cg(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=m=>{this.actionRunner.request(m)},this.props=e,this.actionRunner.pause();let o={},l=this.computeOptionsData(e.optionOverrides,o,e.calendarApi),r=l.calendarOptions.initialView||l.pluginHooks.initialView,i=this.computeCurrentViewData(r,l,e.optionOverrides,o);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(i.options);let a=Dp(l.calendarOptions,l.dateEnv),s=i.dateProfileGenerator.build(a);qe(s.activeRange,a)||(a=s.currentRange.start);let d={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let m of l.pluginHooks.contextInit)m(d);let f=Pm(l.calendarOptions,s,d),u={dynamicOptionOverrides:o,currentViewType:r,currentDate:a,dateProfile:s,businessHours:this.parseContextBusinessHours(d),eventSources:f,eventUiBases:{},eventStore:Be(),renderableEventStore:Be(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(d).selectionConfig},g=Object.assign(Object.assign({},d),u);for(let m of l.pluginHooks.reducers)Object.assign(u,m(null,null,g));ul(u,d)&&this.emitter.trigger("loading",!0),this.state=u,this.updateData(),this.actionRunner.resume()}resetOptions(e,o){let{props:l}=this;o===void 0?l.optionOverrides=e:(l.optionOverrides=Object.assign(Object.assign({},l.optionOverrides||{}),e),this.optionsForRefining.push(...o)),(o===void 0||o.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:o,state:l,emitter:r}=this,i=Om(l.dynamicOptionOverrides,e),a=this.computeOptionsData(o.optionOverrides,i,o.calendarApi),s=Mm(l.currentViewType,e),d=this.computeCurrentViewData(s,a,o.optionOverrides,i);o.calendarApi.currentDataManager=this,r.setThisContext(o.calendarApi),r.setOptions(d.options);let f={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:o.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:u,dateProfile:g}=l;this.data&&this.data.dateProfileGenerator!==d.dateProfileGenerator&&(g=d.dateProfileGenerator.build(u)),u=xp(u,e),g=Lm(g,e,u,d.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!qe(g.currentRange,u))&&(u=g.currentRange.start);let m=zm(l.eventSources,e,g,f),c=$p(l.eventStore,e,m,g,f),p=ba(m)&&!d.options.progressiveEventRendering&&l.renderableEventStore||c,{eventUiSingleBase:h,selectionConfig:b}=this.buildViewUiProps(f),_=this.buildEventUiBySource(m),w=this.buildEventUiBases(p.defs,h,_),S={dynamicOptionOverrides:i,currentViewType:s,currentDate:u,dateProfile:g,eventSources:m,eventStore:c,renderableEventStore:p,selectionConfig:b,eventUiBases:w,businessHours:this.parseContextBusinessHours(f),dateSelection:Gm(l.dateSelection,e),eventSelection:qm(l.eventSelection,e),eventDrag:Ym(l.eventDrag,e),eventResize:Qm(l.eventResize,e)},O=Object.assign(Object.assign({},f),S);for(let E of a.pluginHooks.reducers)Object.assign(S,E(l,e,O));let N=ul(l,f),C=ul(S,f);!N&&C?r.trigger("loading",!0):N&&!C&&r.trigger("loading",!1),this.state=S,o.onAction&&o.onAction(e)}updateData(){let{props:e,state:o}=this,l=this.data,r=this.computeOptionsData(e.optionOverrides,o.dynamicOptionOverrides,e.calendarApi),i=this.computeCurrentViewData(o.currentViewType,r,e.optionOverrides,o.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(o.dateProfile,i.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),i),o),s=r.pluginHooks.optionChangeHandlers,d=l&&l.calendarOptions,f=r.calendarOptions;if(d&&d!==f){d.timeZone!==f.timeZone&&(o.eventSources=a.eventSources=Fm(a.eventSources,o.dateProfile,a),o.eventStore=a.eventStore=Ai(a.eventStore,l.dateEnv,a.dateEnv),o.renderableEventStore=a.renderableEventStore=Ai(a.renderableEventStore,l.dateEnv,a.dateEnv));for(let u in s)(this.optionsForHandling.indexOf(u)!==-1||d[u]!==f[u])&&s[u](f[u],a)}this.optionsForHandling=[],e.onData&&e.onData(a)}computeOptionsData(e,o,l){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&o===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:i,localeDefaults:a,availableLocaleData:s,extra:d}=this.processRawCalendarOptions(e,o);Aa(d);let f=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,i,s,r.defaultRangeSeparator),u=this.buildViewSpecs(i.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,a),g=this.buildTheme(r,i),m=this.parseToolbars(r,this.stableOptionOverrides,g,u,l);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:i,dateEnv:f,viewSpecs:u,theme:g,toolbarConfig:m,localeDefaults:a,availableRawLocales:s.map}}processRawCalendarOptions(e,o){let{locales:l,locale:r}=vo([Ft,e,o]),i=this.organizeRawLocales(l),a=i.map,s=this.buildLocale(r||i.defaultCode,a).options,d=this.buildPluginHooks(e.plugins||[],sg),f=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},oi),li),ri),d.listenerRefiners),d.optionRefiners),u={},g=vo([Ft,s,e,o]),m={},c=this.currentCalendarOptionsInput,y=this.currentCalendarOptionsRefined,p=!1;for(let h in g)this.optionsForRefining.indexOf(h)===-1&&(g[h]===c[h]||ft[h]&&h in c&&ft[h](c[h],g[h]))?m[h]=y[h]:f[h]?(m[h]=f[h](g[h]),p=!0):u[h]=c[h];return p&&(this.currentCalendarOptionsInput=g,this.currentCalendarOptionsRefined=m,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=o),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:d,availableLocaleData:i,localeDefaults:s,extra:u}}_computeCurrentViewData(e,o,l,r){let i=o.viewSpecs[e];if(!i)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:a,extra:s}=this.processRawViewOptions(i,o.pluginHooks,o.localeDefaults,l,r);Aa(s);let d=this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:o.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,nowInput:a.now,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,fixedWeekCount:a.fixedWeekCount}),f=this.buildViewApi(e,this.getCurrentData,o.dateEnv);return{viewSpec:i,options:a,dateProfileGenerator:d,viewApi:f}}processRawViewOptions(e,o,l,r,i){let a=vo([Ft,e.optionDefaults,l,r,e.optionOverrides,i]),s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},oi),li),ri),lp),o.listenerRefiners),o.optionRefiners),d={},f=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,g=!1,m={};for(let c in a)a[c]===f[c]||ft[c]&&ft[c](a[c],f[c])?d[c]=u[c]:(a[c]===this.currentCalendarOptionsInput[c]||ft[c]&&ft[c](a[c],this.currentCalendarOptionsInput[c])?c in this.currentCalendarOptionsRefined&&(d[c]=this.currentCalendarOptionsRefined[c]):s[c]?d[c]=s[c](a[c]):m[c]=a[c],g=!0);return g&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=d),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:m}}}function pg(t,e,o,l,r,i,a,s){let d=ha(e||a.defaultCode,a.map);return new hp({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:i.namedTimeZonedImpl,locale:d,weekNumberCalculation:o,firstDay:l,weekText:r,cmdFormatter:i.cmdFormatter,defaultSeparator:s})}function hg(t,e){let o=e.themeClasses[t.themeSystem]||it;return new o(t)}function mg(t){let e=t.dateProfileGeneratorClass||gi;return new e(t)}function gg(t,e,o){return new Km(t,e,o)}function yg(t){return je(t,e=>e.ui)}function _g(t,e,o){let l={"":e};for(let r in t){let i=t[r];i.sourceId&&o[i.sourceId]&&(l[r]=o[i.sourceId])}return l}function bg(t){let{options:e}=t;return{eventUiSingleBase:In({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:In({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function ul(t,e){for(let o of e.pluginHooks.isLoadingFuncs)if(o(t))return!0;return!1}function kg(t){return Zp(t.options.businessHours,t)}function Aa(t,e){for(let o in t)console.warn(`Unknown option '${o}'`+(e?` for view '${e}'`:""))}class Eg extends re{render(){let e=this.props.widgetGroups.map(o=>this.renderWidgetGroup(o));return k("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:o}=this,{theme:l}=this.context,r=[],i=!0;for(let a of e){let{buttonName:s,buttonClick:d,buttonText:f,buttonIcon:u,buttonHint:g}=a;if(s==="title")i=!1,r.push(k("h2",{className:"fc-toolbar-title",id:o.titleId},o.title));else{let m=s===o.activeButton,c=!o.isTodayEnabled&&s==="today"||!o.isPrevEnabled&&s==="prev"||!o.isNextEnabled&&s==="next",y=[`fc-${s}-button`,l.getClass("button")];m&&y.push(l.getClass("buttonActive")),r.push(k("button",{type:"button",title:typeof g=="function"?g(o.navUnit):g,disabled:c,"aria-pressed":m,className:y.join(" "),onClick:d},f||(u?k("span",{className:u,role:"img"}):"")))}}if(r.length>1){let a=i&&l.getClass("buttonGroup")||"";return k("div",{className:a},...r)}return r[0]}}class xa extends re{render(){let{model:e,extraClassName:o}=this.props,l=!1,r,i,a=e.sectionWidgets,s=a.center;return a.left?(l=!0,r=a.left):r=a.start,a.right?(l=!0,i=a.right):i=a.end,k("div",{className:[o||"","fc-toolbar",l?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",r||[]),this.renderSection("center",s||[]),this.renderSection("end",i||[]))}renderSection(e,o){let{props:l}=this;return k(Eg,{key:e,widgetGroups:o,title:l.title,navUnit:l.navUnit,activeButton:l.activeButton,isTodayEnabled:l.isTodayEnabled,isPrevEnabled:l.isPrevEnabled,isNextEnabled:l.isNextEnabled,titleId:l.titleId})}}class Cg extends re{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,Ge(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:o}=this,{aspectRatio:l}=e,r=["fc-view-harness",l||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],i="",a="";return l?o.availableWidth!==null?i=o.availableWidth/l:a=`${1/l*100}%`:i=e.height||"",k("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:i,paddingBottom:a}},e.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 wg extends Vt{constructor(e){super(e),this.handleSegClick=(o,l)=>{let{component:r}=this,{context:i}=r,a=Nt(l);if(a&&r.isValidSegDownEl(o.target)){let s=be(o.target,".fc-event-forced-url"),d=s?s.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:l,event:new he(r.context,a.eventRange.def,a.eventRange.instance),jsEvent:o,view:i.viewApi}),d&&!o.defaultPrevented&&(window.location.href=d)}},this.destroy=Hr(e.el,"click",".fc-event",this.handleSegClick)}}class vg extends Vt{constructor(e){super(e),this.handleEventElRemove=o=>{o===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(o,l)=>{Nt(l)&&(this.currentSegEl=l,this.triggerEvent("eventMouseEnter",o,l))},this.handleSegLeave=(o,l)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",o,l))},this.removeHoverListeners=df(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,o,l){let{component:r}=this,{context:i}=r,a=Nt(l);(!o||r.isValidSegDownEl(o.target))&&i.emitter.trigger(e,{el:l,event:new he(i,a.eventRange.def,a.eventRange.instance),jsEvent:o,view:i.viewApi})}}class Sg extends mt{constructor(){super(...arguments),this.buildViewContext=q(yp),this.buildViewPropTransformers=q(xg),this.buildToolbarProps=q(Ag),this.headerRef=we(),this.footerRef=we(),this.interactionsStore={},this.state={viewLabelId:_n()},this.registerInteractiveComponent=(e,o)=>{let l=_h(e,o),a=[wg,vg].concat(this.props.pluginHooks.componentInteractions).map(s=>new s(l));this.interactionsStore[e.uid]=a,Uo[e.uid]=l},this.unregisterInteractiveComponent=e=>{let o=this.interactionsStore[e.uid];if(o){for(let l of o)l.destroy();delete this.interactionsStore[e.uid]}delete Uo[e.uid]},this.resizeRunner=new ho(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:o}=this.props;o.handleWindowResize&&e.target===window&&this.resizeRunner.request(o.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:o,options:l}=e,r=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,Ht(e.options.now,e.dateEnv),e.viewTitle),i=!1,a="",s;e.isHeightAuto||e.forPrint?a="":l.height!=null?i=!0:l.contentHeight!=null?a=l.contentHeight:s=Math.max(l.aspectRatio,.5);let d=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),f=o.header&&o.header.hasTitle?this.state.viewLabelId:"";return k(We.Provider,{value:d},o.header&&k(xa,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:o.header,titleId:f},r)),k(Cg,{liquid:i,height:a,aspectRatio:s,labeledById:f},this.renderView(e),this.buildAppendContent()),o.footer&&k(xa,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:o.footer,titleId:""},r)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(l=>new l(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:o}=e.pluginHooks;for(let l in o)o[l](e[l],e)}componentDidUpdate(e){let{props:o}=this,{propSetHandlers:l}=o.pluginHooks;for(let r in l)o[r]!==e[r]&&l[r](o[r],o)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,o=e.pluginHooks.viewContainerAppends.map(l=>l(e));return k(fe,{},...o)}renderView(e){let{pluginHooks:o}=e,{viewSpec:l}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},i=this.buildViewPropTransformers(o.viewPropsTransformers);for(let s of i)Object.assign(r,s.transform(r,e));let a=l.component;return k(a,Object.assign({},r))}}function Ag(t,e,o,l,r,i){let a=o.build(r,void 0,!1),s=o.buildPrev(e,l,!1),d=o.buildNext(e,l,!1);return{title:i,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:a.isValid&&!qe(e.currentRange,r),isPrevEnabled:s.isValid,isNextEnabled:d.isValid}}function xg(t){return t.map(e=>new e)}let Dg=class extends bh{constructor(e,o={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=l=>{switch(l.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=l=>{this.currentData=l,this.renderRunner.request(l.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:l}=this;si(()=>{Lt(k(yh,{options:l.calendarOptions,theme:l.theme,emitter:l.emitter},(r,i,a,s)=>(this.setClassNames(r),this.setHeight(i),k(ui.Provider,{value:this.customContentRenderId},k(Sg,Object.assign({isHeightAuto:a,forPrint:s},l))))),this.el)})}else this.isRendered&&(this.isRendered=!1,Lt(null,this.el),this.setClassNames([]),this.setHeight(""))},ef(e),this.el=e,this.renderRunner=new ho(this.handleRenderRequest),new fg({optionOverrides:o,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){si(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,o){this.currentDataManager.resetOptions(e,o)}setClassNames(e){if(!tt(e,this.currentClassNames)){let{classList:o}=this.el;for(let l of this.currentClassNames)o.remove(l);for(let l of e)o.add(l);this.currentClassNames=e}}setHeight(e){zr(this.el,"height",e)}};const Ng={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},Da=n.defineComponent({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:Tg(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(n.h(Vg,{key:e.id,customRendering:e}));return n.h("div",{attrs:{"data-fc-render-id":this.renderId}},n.h(n.Fragment,t))},mounted(){const t=new km;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),o=new Dg(this.$el,e);this.calendar=o,o.render(),t.subscribe(l=>{this.customRenderingMap=l,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:Bg()}),Vg=n.defineComponent({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return n.h(n.Teleport,{to:t.containerEl},e)}});function j4(t){return t}function Bg(){let t={options:{deep:!0,handler(e){let o=this.getApi();o.pauseRendering();let l=this.buildOptions(e);o.resetOptions(l),this.renderId++}}};for(let e in Ng)t[`options.${e}`]={deep:!0,handler(o){if(o!==void 0){let l=this.getApi();l.pauseRendering(),l.resetOptions({[e]:o},[e]),this.renderId++}}};return t}function Tg(t){const e={};for(const o in t)e[Ig(o)]=t[o];return e}function Ig(t){return t.split("-").map((e,o)=>o?Rg(e):e).join("")}function Rg(t){return t.charAt(0).toUpperCase()+t.slice(1)}class Mg extends $e{constructor(){super(...arguments),this.headerElRef=we()}renderSimpleLayout(e,o){let{props:l,context:r}=this,i=[],a=Fn(r.options);return e&&i.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),i.push({type:"body",key:"body",liquid:!0,chunk:{content:o}}),k(Dn,{elClasses:["fc-daygrid"],viewSpec:r.viewSpec},k(ol,{liquid:!l.isHeightAuto&&!l.forPrint,collapsibleWidth:l.forPrint,cols:[],sections:i}))}renderHScrollLayout(e,o,l,r){let i=this.context.pluginHooks.scrollGridImpl;if(!i)throw new Error("No ScrollGrid implementation");let{props:a,context:s}=this,d=!a.forPrint&&Fn(s.options),f=!a.forPrint&&la(s.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:d,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:o}]}),f&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:nl}]}),k(Dn,{elClasses:["fc-daygrid"],viewSpec:s.viewSpec},k(i,{liquid:!a.isHeightAuto&&!a.forPrint,forPrint:a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:l,minWidth:r}]}],sections:u}))}}function $n(t,e){let o=[];for(let l=0;l<e;l+=1)o[l]=[];for(let l of t)o[l.row].push(l);return o}function Hn(t,e){let o=[];for(let l=0;l<e;l+=1)o[l]=[];for(let l of t)o[l.firstCol].push(l);return o}function Na(t,e){let o=[];if(t){for(let l=0;l<e;l+=1)o[l]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let l of t.segs)o[l.row].segs.push(l)}else for(let l=0;l<e;l+=1)o[l]=null;return o}const Va=ge({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Ba(t){let{display:e}=t.eventRange.ui;return e==="list-item"||e==="auto"&&!t.eventRange.def.allDay&&t.firstCol===t.lastCol&&t.isStart&&t.isEnd}class Ta extends re{render(){let{props:e}=this;return k(ra,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Va,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class Ia extends re{render(){let{props:e,context:o}=this,{options:l}=o,{seg:r}=e,i=l.eventTimeFormat||Va,a=Mi(r,i,o,!0,e.defaultDisplayEventEnd);return k(ll,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Li(e.seg,o),defaultGenerator:Og,timeText:a,isResizing:!1,isDateSelecting:!1}))}}function Og(t){return k(fe,null,k("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&k("div",{className:"fc-event-time"},t.timeText),k("div",{className:"fc-event-title"},t.event.title||k(fe,null," ")))}class Lg extends re{constructor(){super(...arguments),this.compileSegs=q(Pg)}render(){let{props:e}=this,{allSegs:o,invisibleSegs:l}=this.compileSegs(e.singlePlacements);return k(ca,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:o,hiddenSegs:l,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let r=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return k(fe,null,o.map(i=>{let a=i.eventRange.instance.instanceId;return k("div",{className:"fc-daygrid-event-harness",key:a,style:{visibility:r[a]?"hidden":""}},Ba(i)?k(Ia,Object.assign({seg:i,isDragging:!1,isSelected:a===e.eventSelection,defaultDisplayEventEnd:!1},rt(i,e.todayRange))):k(Ta,Object.assign({seg:i,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===e.eventSelection,defaultDisplayEventEnd:!1},rt(i,e.todayRange))))}))}})}}function Pg(t){let e=[],o=[];for(let l of t)e.push(l.seg),l.isVisible||o.push(l.seg);return{allSegs:e,invisibleSegs:o}}const zg=ge({week:"narrow"});class Fg extends $e{constructor(){super(...arguments),this.rootElRef=we(),this.state={dayNumberId:_n()},this.handleRootEl=e=>{Ge(this.rootElRef,e),Ge(this.props.elRef,e)}}render(){let{context:e,props:o,state:l,rootElRef:r}=this,{options:i,dateEnv:a}=e,{date:s,dateProfile:d}=o;const f=o.showDayNumber&&Hg(s,d.currentRange,a);return k(il,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...o.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},o.extraDataAttrs),o.showDayNumber?{"aria-labelledby":l.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:$g,date:s,dateProfile:d,todayRange:o.todayRange,showDayNumber:o.showDayNumber,isMonthStart:f,extraRenderProps:o.extraRenderProps},(u,g)=>k("div",{ref:o.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:o.minHeight}},o.showWeekNumber&&k(sa,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:On(e,s,"week"),date:s,defaultFormat:zg}),!g.isDisabled&&(o.showDayNumber||al(i)||o.forceDayTop)?k("div",{className:"fc-daygrid-day-top"},k(u,{elTag:"a",elClasses:["fc-daygrid-day-number",f&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},On(e,s)),{id:l.dayNumberId})})):o.showDayNumber?k("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},k("a",{className:"fc-daygrid-day-number"}," ")):void 0,k("div",{className:"fc-daygrid-day-events",ref:o.fgContentElRef},o.fgContent,k("div",{className:"fc-daygrid-day-bottom",style:{marginTop:o.moreMarginTop}},k(Lg,{allDayDate:s,singlePlacements:o.singlePlacements,moreCnt:o.moreCnt,alignmentElRef:r,alignGridTop:!o.showDayNumber,extraDateSpan:o.extraDateSpan,dateProfile:o.dateProfile,eventSelection:o.eventSelection,eventDrag:o.eventDrag,eventResize:o.eventResize,todayRange:o.todayRange}))),k("div",{className:"fc-daygrid-day-bg"},o.bgContent)))}}function $g(t){return t.dayNumberText||k(fe,null," ")}function Hg(t,e,o){const{start:l,end:r}=e,i=nt(r,-1),a=o.getYear(l),s=o.getMonth(l),d=o.getYear(i),f=o.getMonth(i);return!(a===d&&s===f)&&(t.valueOf()===l.valueOf()||o.getDay(t)===1&&t.valueOf()<r.valueOf())}function Ra(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function Ma(t){return Ra(t)+":"+t.lastCol}function Ug(t,e,o,l,r,i,a){let s=new Gg(b=>{let _=t[b.index].eventRange.instance.instanceId+":"+b.span.start+":"+(b.span.end-1);return r[_]});s.allowReslicing=!0,s.strictOrder=l,e===!0||o===!0?(s.maxCoord=i,s.hiddenConsumes=!0):typeof e=="number"?s.maxStackCnt=e:typeof o=="number"&&(s.maxStackCnt=o,s.hiddenConsumes=!0);let d=[],f=[];for(let b=0;b<t.length;b+=1){let _=t[b],w=Ma(_);r[w]!=null?d.push({index:b,span:{start:_.firstCol,end:_.lastCol+1}}):f.push(_)}let u=s.addSegs(d),g=s.toRects(),{singleColPlacements:m,multiColPlacements:c,leftoverMargins:y}=jg(g,t,a),p=[],h=[];for(let b of f){c[b.firstCol].push({seg:b,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let _=b.firstCol;_<=b.lastCol;_+=1)m[_].push({seg:Tt(b,_,_+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<a.length;b+=1)p.push(0);for(let b of u){let _=t[b.index],w=b.span;c[w.start].push({seg:Tt(_,w.start,w.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let S=w.start;S<w.end;S+=1)p[S]+=1,m[S].push({seg:Tt(_,S,S+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<a.length;b+=1)h.push(y[b]);return{singleColPlacements:m,multiColPlacements:c,moreCnts:p,moreMarginTops:h}}function jg(t,e,o){let l=Wg(t,o.length),r=[],i=[],a=[];for(let s=0;s<o.length;s+=1){let d=l[s],f=[],u=0,g=0;for(let c of d){let y=e[c.index];f.push({seg:Tt(y,s,s+1,o),isVisible:!0,isAbsolute:!1,absoluteTop:c.levelCoord,marginTop:c.levelCoord-u}),u=c.levelCoord+c.thickness}let m=[];u=0,g=0;for(let c of d){let y=e[c.index],p=c.span.end-c.span.start>1,h=c.span.start===s;g+=c.levelCoord-u,u=c.levelCoord+c.thickness,p?(g+=c.thickness,h&&m.push({seg:Tt(y,c.span.start,c.span.end,o),isVisible:!0,isAbsolute:!0,absoluteTop:c.levelCoord,marginTop:0})):h&&(m.push({seg:Tt(y,c.span.start,c.span.end,o),isVisible:!0,isAbsolute:!1,absoluteTop:c.levelCoord,marginTop:g}),g=0)}r.push(f),i.push(m),a.push(g)}return{singleColPlacements:r,multiColPlacements:i,leftoverMargins:a}}function Wg(t,e){let o=[];for(let l=0;l<e;l+=1)o.push([]);for(let l of t)for(let r=l.span.start;r<l.span.end;r+=1)o[r].push(l);return o}function Tt(t,e,o,l){if(t.firstCol===e&&t.lastCol===o-1)return t;let r=t.eventRange,i=r.range,a=gt(i,{start:l[e].date,end:ke(l[o-1].date,1)});return Object.assign(Object.assign({},t),{firstCol:e,lastCol:o-1,eventRange:{def:r.def,ui:Object.assign(Object.assign({},r.ui),{durationEditable:!1}),instance:r.instance,range:a},isStart:t.isStart&&a.start.valueOf()===i.start.valueOf(),isEnd:t.isEnd&&a.end.valueOf()===i.end.valueOf()})}class Gg extends Gi{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const o=super.addSegs(e),{entriesByLevel:l}=this,r=i=>!this.forceHidden[bt(i)];for(let i=0;i<l.length;i+=1)l[i]=l[i].filter(r);return o}handleInvalidInsertion(e,o,l){const{entriesByLevel:r,forceHidden:i}=this,{touchingEntry:a,touchingLevel:s,touchingLateral:d}=e;if(this.hiddenConsumes&&a){const f=bt(a);if(!i[f])if(this.allowReslicing){const u=Object.assign(Object.assign({},a),{span:Xo(a.span,o.span)}),g=bt(u);i[g]=!0,r[s][d]=u,this.splitEntry(a,o,l)}else i[f]=!0,l.push(a)}return super.handleInvalidInsertion(e,o,l)}}class Oa extends $e{constructor(){super(...arguments),this.cellElRefs=new Ye,this.frameElRefs=new Ye,this.fgElRefs=new Ye,this.segHarnessRefs=new Ye,this.rootElRef=we(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:o,context:l}=this,{options:r}=l,i=e.cells.length,a=Hn(e.businessHourSegs,i),s=Hn(e.bgEventSegs,i),d=Hn(this.getHighlightSegs(),i),f=Hn(this.getMirrorSegs(),i),{singleColPlacements:u,multiColPlacements:g,moreCnts:m,moreMarginTops:c}=Ug(Ri(e.fgEventSegs,r.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,r.eventOrderStrict,o.segHeights,o.maxContentHeight,e.cells),y=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return k("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((p,h)=>{let b=this.renderFgSegs(h,e.forPrint?u[h]:g[h],e.todayRange,y),_=this.renderFgSegs(h,qg(f[h],g),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return k(Fg,{key:p.key,elRef:this.cellElRefs.createRef(p.key),innerElRef:this.frameElRefs.createRef(p.key),dateProfile:e.dateProfile,date:p.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&h===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:p.extraRenderProps,extraDataAttrs:p.extraDataAttrs,extraClassNames:p.extraClassNames,extraDateSpan:p.extraDateSpan,moreCnt:m[h],moreMarginTop:c[h],singlePlacements:u[h],fgContentElRef:this.fgElRefs.createRef(p.key),fgContent:k(fe,null,k(fe,null,b),k(fe,null,_)),bgContent:k(fe,null,this.renderFillSegs(d[h],"highlight"),this.renderFillSegs(a[h],"non-business"),this.renderFillSegs(s[h],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,o){let l=this.props;this.updateSizing(!Fe(e,l))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,o,l,r,i,a,s){let{context:d}=this,{eventSelection:f}=this.props,{framePositions:u}=this.state,g=this.props.cells.length===1,m=i||a||s,c=[];if(u)for(let y of o){let{seg:p}=y,{instanceId:h}=p.eventRange.instance,b=y.isVisible&&!r[h],_=y.isAbsolute,w="",S="";_&&(d.isRtl?(S=0,w=u.lefts[p.lastCol]-u.lefts[p.firstCol]):(w=0,S=u.rights[p.firstCol]-u.rights[p.lastCol])),c.push(k("div",{className:"fc-daygrid-event-harness"+(_?" fc-daygrid-event-harness-abs":""),key:Ra(p),ref:m?null:this.segHarnessRefs.createRef(Ma(p)),style:{visibility:b?"":"hidden",marginTop:_?"":y.marginTop,top:_?y.absoluteTop:"",left:w,right:S}},Ba(p)?k(Ia,Object.assign({seg:p,isDragging:i,isSelected:h===f,defaultDisplayEventEnd:g},rt(p,l))):k(Ta,Object.assign({seg:p,isDragging:i,isResizing:a,isDateSelecting:s,isSelected:h===f,defaultDisplayEventEnd:g},rt(p,l)))))}return c}renderFillSegs(e,o){let{isRtl:l}=this.context,{todayRange:r}=this.props,{framePositions:i}=this.state,a=[];if(i)for(let s of e){let d=l?{right:0,left:i.lefts[s.lastCol]-i.lefts[s.firstCol]}:{left:0,right:i.rights[s.firstCol]-i.rights[s.lastCol]};a.push(k("div",{key:Oi(s.eventRange),className:"fc-daygrid-bg-harness",style:d},o==="bg-event"?k(ia,Object.assign({seg:s},rt(s,r))):aa(o)))}return k(fe,{},...a)}updateSizing(e){let{props:o,state:l,frameElRefs:r}=this;if(!o.forPrint&&o.clientWidth!==null){if(e){let d=o.cells.map(f=>r.currentMap[f.key]);if(d.length){let f=this.rootElRef.current,u=new Bt(f,d,!0,!1);(!l.framePositions||!l.framePositions.similarTo(u))&&this.setState({framePositions:new Bt(f,d,!0,!1)})}}const i=this.state.segHeights,a=this.querySegHeights(),s=o.dayMaxEvents===!0||o.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},i),a),maxContentHeight:s?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,o={};for(let l in e){let r=Math.round(e[l].getBoundingClientRect().height);o[l]=Math.max(o[l]||0,r)}return o}computeMaxContentHeight(){let e=this.props.cells[0].key,o=this.cellElRefs.currentMap[e],l=this.fgElRefs.currentMap[e];return o.getBoundingClientRect().bottom-l.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(o=>e[o.key])}}Oa.addStateEquality({segHeights:Fe});function qg(t,e){if(!t.length)return[];let o=Yg(e);return t.map(l=>({seg:l,isVisible:!0,isAbsolute:!0,absoluteTop:o[l.eventRange.instance.instanceId],marginTop:0}))}function Yg(t){let e={};for(let o of t)for(let l of o)e[l.seg.eventRange.instance.instanceId]=l.absoluteTop;return e}class Qg extends $e{constructor(){super(...arguments),this.splitBusinessHourSegs=q($n),this.splitBgEventSegs=q($n),this.splitFgEventSegs=q($n),this.splitDateSelectionSegs=q($n),this.splitEventDrag=q(Na),this.splitEventResize=q(Na),this.rowRefs=new Ye}render(){let{props:e,context:o}=this,l=e.cells.length,r=this.splitBusinessHourSegs(e.businessHourSegs,l),i=this.splitBgEventSegs(e.bgEventSegs,l),a=this.splitFgEventSegs(e.fgEventSegs,l),s=this.splitDateSelectionSegs(e.dateSelectionSegs,l),d=this.splitEventDrag(e.eventDrag,l),f=this.splitEventResize(e.eventResize,l),u=l>=7&&e.clientWidth?e.clientWidth/o.options.aspectRatio/6:null;return k(jt,{unit:"day"},(g,m)=>k(fe,null,e.cells.map((c,y)=>k(Oa,{ref:this.rowRefs.createRef(y),key:c.length?c[0].date.toISOString():y,showDayNumbers:l>1,showWeekNumbers:e.showWeekNumbers,todayRange:m,dateProfile:e.dateProfile,cells:c,renderIntro:e.renderRowIntro,businessHourSegs:r[y],eventSelection:e.eventSelection,bgEventSegs:i[y].filter(Zg),fgEventSegs:a[y],dateSelectionSegs:s[y],eventDrag:d[y],eventResize:f[y],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:u,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],o=e?e.closest(".fc-daygrid-body"):null;o&&(this.rootEl=o,this.context.registerInteractiveComponent(this,{el:o,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new Bt(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new Bt(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,o){let{colPositions:l,rowPositions:r}=this,i=l.leftToIndex(e),a=r.topToIndex(o);if(a!=null&&i!=null){let s=this.props.cells[a][i];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,i),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(a,i),rect:{left:l.lefts[i],right:l.rights[i],top:r.tops[a],bottom:r.bottoms[a]},layer:0}}return null}getCellEl(e,o){return this.rowRefs.currentMap[e].getCellEls()[o]}getCellRange(e,o){let l=this.props.cells[e][o].date,r=ke(l,1);return{start:l,end:r}}}function Zg(t){return t.eventRange.def.allDay}class Xg extends $e{constructor(){super(...arguments),this.elRef=we(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:o,dayMaxEvents:l,expandRows:r}=e,i=l===!0||o===!0;i&&!r&&(i=!1,o=null,l=null);let a=["fc-daygrid-body",i?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",r?"":"fc-daygrid-body-natural"];return k("div",{ref:this.elRef,className:a.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},k("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:r?e.clientHeight:""}},e.colGroupNode,k("tbody",{role:"presentation"},k(Qg,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:l,dayMaxEventRows:o,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=Kg(this.elRef.current,this.props.dateProfile);if(e){const o=e.closest(".fc-daygrid-body"),l=o.closest(".fc-scroller"),r=e.getBoundingClientRect().top-o.getBoundingClientRect().top;l.scrollTop=r?r+1:0}this.needsScrollReset=!1}}}function Kg(t,e){let o;return e.currentRangeUnit.match(/year|month/)&&(o=t.querySelector(`[data-date="${$f(e.currentDate)}-01"]`)),o||(o=t.querySelector(`[data-date="${Co(e.currentDate)}"]`)),o}class Jg extends Ji{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,o){return o.sliceRange(e)}}class La extends $e{constructor(){super(...arguments),this.slicer=new Jg,this.tableRef=we()}render(){let{props:e,context:o}=this;return k(Xg,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,o,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class e0 extends Mg{constructor(){super(...arguments),this.buildDayTableModel=q(t0),this.headerRef=we(),this.tableRef=we()}render(){let{options:e,dateProfileGenerator:o}=this.context,{props:l}=this,r=this.buildDayTableModel(l.dateProfile,o),i=e.dayHeaders&&k(Zi,{ref:this.headerRef,dateProfile:l.dateProfile,dates:r.headerDates,datesRepDistinctDays:r.rowCnt===1}),a=s=>k(La,{ref:this.tableRef,dateProfile:l.dateProfile,dayTableModel:r,businessHours:l.businessHours,dateSelection:l.dateSelection,eventStore:l.eventStore,eventUiBases:l.eventUiBases,eventSelection:l.eventSelection,eventDrag:l.eventDrag,eventResize:l.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:s.tableColGroupNode,tableMinWidth:s.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!l.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:s.clientWidth,clientHeight:s.clientHeight,forPrint:l.forPrint});return e.dayMinWidth?this.renderHScrollLayout(i,a,r.colCnt,e.dayMinWidth):this.renderSimpleLayout(i,a)}}function t0(t,e){let o=new Xi(t.renderRange,e);return new Ki(o,/year|month|week/.test(t.currentRangeUnit))}class n0 extends gi{buildRenderRange(e,o,l){let r=super.buildRenderRange(e,o,l),{props:i}=this;return o0({currentRange:r,snapToWeek:/^(year|month)$/.test(o),fixedWeekCount:i.fixedWeekCount,dateEnv:i.dateEnv})}}function o0(t){let{dateEnv:e,currentRange:o}=t,{start:l,end:r}=o,i;if(t.snapToWeek&&(l=e.startOfWeek(l),i=e.startOfWeek(r),i.valueOf()!==r.valueOf()&&(r=Qr(i,1))),t.fixedWeekCount){let a=e.startOfWeek(e.startOfMonth(ke(o.end,-1))),s=Math.ceil(Vf(a,r));r=Qr(r,6-s)}return{start:l,end:r}}var l0=':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}';fo(l0);var Pa=Qe({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:e0,dateProfileGeneratorClass:n0},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}}}}),r0='.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}';fo(r0);class i0 extends vh{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?th(e)?["timed","allDay"]:["allDay"]:["timed"]}}const a0=ge({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function za(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return k(We.Consumer,null,o=>{if(!t.isLabeled)return k("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:l,options:r,viewApi:i}=o,a=r.slotLabelFormat==null?a0:Array.isArray(r.slotLabelFormat)?ge(r.slotLabelFormat[0]):ge(r.slotLabelFormat),s={level:0,time:t.time,date:l.toDate(t.date),view:i,text:l.format(t.date,a)};return k(Ve,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:s,generatorName:"slotLabelContent",customGenerator:r.slotLabelContent,defaultGenerator:s0,classNameGenerator:r.slotLabelClassNames,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},d=>k("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},k(d,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function s0(t){return t.text}class c0 extends re{render(){return this.props.slatMetas.map(e=>k("tr",{key:e.key},k(za,Object.assign({},e))))}}const d0=ge({week:"short"}),u0=5;class f0 extends $e{constructor(){super(...arguments),this.allDaySplitter=new i0,this.headerElRef=we(),this.rootElRef=we(),this.scrollerElRef=we(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let o=this.scrollerElRef.current;o&&(o.scrollTop=e)},this.renderHeadAxis=(e,o="")=>{let{options:l}=this.context,{dateProfile:r}=this.props,i=r.renderRange,s=ut(i.start,i.end)===1?On(this.context,i.start,"week"):{};return l.weekNumbers&&e==="day"?k(sa,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:i.start,defaultFormat:d0},d=>k("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:o}},k(d,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:s}))):k("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},k("div",{className:"fc-timegrid-axis-frame",style:{height:o}}))},this.renderTableRowAxis=e=>{let{options:o,viewApi:l}=this.context,r={text:o.allDayText,view:l};return k(Ve,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:r,generatorName:"allDayContent",customGenerator:o.allDayContent,defaultGenerator:p0,classNameGenerator:o.allDayClassNames,didMount:o.allDayDidMount,willUnmount:o.allDayWillUnmount},i=>k("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},k(i,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,o,l){let{context:r,props:i}=this,a=[],s=Fn(r.options);return e&&a.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),o&&(a.push({type:"body",key:"all-day",chunk:{content:o}}),a.push({type:"body",key:"all-day-divider",outerContent:k("tr",{role:"presentation",className:"fc-scrollgrid-section"},k("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),a.push({type:"body",key:"body",liquid:!0,expandRows:!!r.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:l}}),k(Dn,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:r.viewSpec},k(ol,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[{width:"shrink"}],sections:a}))}renderHScrollLayout(e,o,l,r,i,a,s){let d=this.context.pluginHooks.scrollGridImpl;if(!d)throw new Error("No ScrollGrid implementation");let{context:f,props:u}=this,g=!u.forPrint&&Fn(f.options),m=!u.forPrint&&la(f.options),c=[];e&&c.push({type:"header",key:"header",isSticky:g,syncRowHeights:!0,chunks:[{key:"axis",rowContent:p=>k("tr",{role:"presentation"},this.renderHeadAxis("day",p.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),o&&(c.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:p=>k("tr",{role:"presentation"},this.renderTableRowAxis(p.rowSyncHeights[0]))},{key:"cols",content:o}]}),c.push({key:"all-day-divider",type:"body",outerContent:k("tr",{role:"presentation",className:"fc-scrollgrid-section"},k("td",{colSpan:2,className:"fc-timegrid-divider "+f.theme.getClass("tableCellShaded")}))}));let y=f.options.nowIndicator;return c.push({type:"body",key:"body",liquid:!0,expandRows:!!f.options.expandRows,chunks:[{key:"axis",content:p=>k("div",{className:"fc-timegrid-axis-chunk"},k("table",{"aria-hidden":!0,style:{height:p.expandRows?p.clientHeight:""}},p.tableColGroupNode,k("tbody",null,k(c0,{slatMetas:a}))),k("div",{className:"fc-timegrid-now-indicator-container"},k(jt,{unit:y?"minute":"day"},h=>{let b=y&&s&&s.safeComputeTop(h);return typeof b=="number"?k(rl,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:b},isAxis:!0,date:h}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:l}]}),m&&c.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:nl},{key:"cols",content:nl}]}),k(Dn,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:f.viewSpec},k(d,{liquid:!u.isHeightAuto&&!u.forPrint,forPrint:u.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:i}]}],sections:c}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:o}=this.context.options;return(e===!0||o===!0)&&(e=void 0,o=u0),{dayMaxEvents:e,dayMaxEventRows:o}}}function p0(t){return t.text}class h0{constructor(e,o,l){this.positions=e,this.dateProfile=o,this.slotDuration=l}safeComputeTop(e){let{dateProfile:o}=this;if(qe(o.currentRange,e)){let l=ue(e),r=e.valueOf()-l.valueOf();if(r>=Ie(o.slotMinTime)&&r<Ie(o.slotMaxTime))return this.computeTimeTop(te(r))}return null}computeDateTop(e,o){return o||(o=ue(e)),this.computeTimeTop(te(e.valueOf()-o.valueOf()))}computeTimeTop(e){let{positions:o,dateProfile:l}=this,r=o.els.length,i=(e.milliseconds-Ie(l.slotMinTime))/Ie(this.slotDuration),a,s;return i=Math.max(0,i),i=Math.min(r,i),a=Math.floor(i),a=Math.min(a,r-1),s=i-a,o.tops[a]+o.getHeight(a)*s}}class m0 extends re{render(){let{props:e,context:o}=this,{options:l}=o,{slatElRefs:r}=e;return k("tbody",null,e.slatMetas.map((i,a)=>{let s={time:i.time,date:o.dateEnv.toDate(i.date),view:o.viewApi};return k("tr",{key:i.key,ref:r.createRef(i.key)},e.axis&&k(za,Object.assign({},i)),k(Ve,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!i.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":i.isoTimeStr},renderProps:s,generatorName:"slotLaneContent",customGenerator:l.slotLaneContent,classNameGenerator:l.slotLaneClassNames,didMount:l.slotLaneDidMount,willUnmount:l.slotLaneWillUnmount}))}))}}class g0 extends re{constructor(){super(...arguments),this.rootElRef=we(),this.slatElRefs=new Ye}render(){let{props:e,context:o}=this;return k("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},k("table",{"aria-hidden":!0,className:o.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,k(m0,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:o}=this;o.onCoords&&o.clientWidth!==null&&this.rootElRef.current.offsetHeight&&o.onCoords(new h0(new Bt(this.rootElRef.current,y0(this.slatElRefs.currentMap,o.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function y0(t,e){return e.map(o=>t[o.key])}function Wt(t,e){let o=[],l;for(l=0;l<e;l+=1)o.push([]);if(t)for(l=0;l<t.length;l+=1)o[t[l].col].push(t[l]);return o}function Fa(t,e){let o=[];if(t){for(let l=0;l<e;l+=1)o[l]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let l of t.segs)o[l.col].segs.push(l)}else for(let l=0;l<e;l+=1)o[l]=null;return o}class _0 extends re{render(){let{props:e}=this;return k(ca,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>ja(e.hiddenSegs,e),defaultGenerator:b0,forceTimed:!0},o=>k(o,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function b0(t){return t.shortText}function k0(t,e,o){let l=new Gi;e!=null&&(l.strictOrder=e),o!=null&&(l.maxStackCnt=o);let r=l.addSegs(t),i=Lh(r),a=E0(l);return a=S0(a,1),{segRects:A0(a),hiddenGroups:i}}function E0(t){const{entriesByLevel:e}=t,o=fl((l,r)=>l+":"+r,(l,r)=>{let i=v0(t,l,r),a=$a(i,o),s=e[l][r];return[Object.assign(Object.assign({},s),{nextLevelNodes:a[0]}),s.thickness+a[1]]});return $a(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,o)[0]}function $a(t,e){if(!t)return[[],0];let{level:o,lateralStart:l,lateralEnd:r}=t,i=l,a=[];for(;i<r;)a.push(e(o,i)),i+=1;return a.sort(C0),[a.map(w0),a[0][1]]}function C0(t,e){return e[1]-t[1]}function w0(t){return t[0]}function v0(t,e,o){let{levelCoords:l,entriesByLevel:r}=t,i=r[e][o],a=l[e]+i.thickness,s=l.length,d=e;for(;d<s&&l[d]<a;d+=1);for(;d<s;d+=1){let f=r[d],u,g=Jo(f,i.span.start,Zo),m=g[0]+g[1],c=m;for(;(u=f[c])&&u.span.start<i.span.end;)c+=1;if(m<c)return{level:d,lateralStart:m,lateralEnd:c}}return null}function S0(t,e){const o=fl((l,r,i)=>bt(l),(l,r,i)=>{let{nextLevelNodes:a,thickness:s}=l,d=s+i,f=s/d,u,g=[];if(!a.length)u=e;else for(let c of a)if(u===void 0){let y=o(c,r,d);u=y[0],g.push(y[1])}else{let y=o(c,u,0);g.push(y[1])}let m=(u-r)*f;return[u-m,Object.assign(Object.assign({},l),{thickness:m,nextLevelNodes:g})]});return t.map(l=>o(l,0,0)[1])}function A0(t){let e=[];const o=fl((r,i,a)=>bt(r),(r,i,a)=>{let s=Object.assign(Object.assign({},r),{levelCoord:i,stackDepth:a,stackForward:0});return e.push(s),s.stackForward=l(r.nextLevelNodes,i+r.thickness,a+1)+1});function l(r,i,a){let s=0;for(let d of r)s=Math.max(o(d,i,a),s);return s}return l(t,0,0),e}function fl(t,e){const o={};return(...l)=>{let r=t(...l);return r in o?o[r]:o[r]=e(...l)}}function Ha(t,e,o=null,l=0){let r=[];if(o)for(let i=0;i<t.length;i+=1){let a=t[i],s=o.computeDateTop(a.start,e),d=Math.max(s+(l||0),o.computeDateTop(a.end,e));r.push({start:Math.round(s),end:Math.round(d)})}return r}function x0(t,e,o,l){let r=[],i=[];for(let f=0;f<t.length;f+=1){let u=e[f];u?r.push({index:f,thickness:1,span:u}):i.push(t[f])}let{segRects:a,hiddenGroups:s}=k0(r,o,l),d=[];for(let f of a)d.push({seg:t[f.index],rect:f});for(let f of i)d.push({seg:f,rect:null});return{segPlacements:d,hiddenGroups:s}}const D0=ge({hour:"numeric",minute:"2-digit",meridiem:!1});class Ua extends re{render(){return k(ra,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:D0}))}}class N0 extends re{constructor(){super(...arguments),this.sortEventSegs=q(Ri)}render(){let{props:e,context:o}=this,{options:l}=o,r=l.selectMirror,i=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||r&&e.dateSelectionSegs||[],a=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},s=this.sortEventSegs(e.fgEventSegs,l.eventOrder);return k(il,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},d=>k("div",{className:"fc-timegrid-col-frame"},k("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),k("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,a,!1,!1,!1)),k("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(i,{},!!e.eventDrag,!!e.eventResize,!!r,"mirror")),k("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),al(l)&&k(d,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,o,l,r,i,a){let{props:s}=this;return s.forPrint?ja(e,s):this.renderPositionedFgSegs(e,o,l,r,i,a)}renderPositionedFgSegs(e,o,l,r,i,a){let{eventMaxStack:s,eventShortHeight:d,eventOrderStrict:f,eventMinHeight:u}=this.context.options,{date:g,slatCoords:m,eventSelection:c,todayRange:y,nowDate:p}=this.props,h=l||r||i,b=Ha(e,g,m,u),{segPlacements:_,hiddenGroups:w}=x0(e,b,f,s);return k(fe,null,this.renderHiddenGroups(w,e),_.map(S=>{let{seg:O,rect:N}=S,C=O.eventRange.instance.instanceId,E=h||!!(!o[C]&&N),B=pl(N&&N.span),I=!h&&N?this.computeSegHStyle(N):{left:0,right:0},W=!!N&&N.stackForward>0,x=!!N&&N.span.end-N.span.start<d;return k("div",{className:"fc-timegrid-event-harness"+(W?" fc-timegrid-event-harness-inset":""),key:a||C,style:Object.assign(Object.assign({visibility:E?"":"hidden"},B),I)},k(Ua,Object.assign({seg:O,isDragging:l,isResizing:r,isDateSelecting:i,isSelected:C===c,isShort:x},rt(O,y,p))))}))}renderHiddenGroups(e,o){let{extraDateSpan:l,dateProfile:r,todayRange:i,nowDate:a,eventSelection:s,eventDrag:d,eventResize:f}=this.props;return k(fe,null,e.map(u=>{let g=pl(u.span),m=V0(u.entries,o);return k(_0,{key:Jr(ua(m)),hiddenSegs:m,top:g.top,bottom:g.bottom,extraDateSpan:l,dateProfile:r,todayRange:i,nowDate:a,eventSelection:s,eventDrag:d,eventResize:f})}))}renderFillSegs(e,o){let{props:l,context:r}=this,a=Ha(e,l.date,l.slatCoords,r.options.eventMinHeight).map((s,d)=>{let f=e[d];return k("div",{key:Oi(f.eventRange),className:"fc-timegrid-bg-harness",style:pl(s)},o==="bg-event"?k(ia,Object.assign({seg:f},rt(f,l.todayRange,l.nowDate))):aa(o))});return k(fe,null,a)}renderNowIndicator(e){let{slatCoords:o,date:l}=this.props;return o?e.map((r,i)=>k(rl,{key:i,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:o.computeDateTop(r.start,l)},isAxis:!1,date:l})):null}computeSegHStyle(e){let{isRtl:o,options:l}=this.context,r=l.slotEventOverlap,i=e.levelCoord,a=e.levelCoord+e.thickness,s,d;r&&(a=Math.min(1,i+(a-i)*2)),o?(s=1-a,d=i):(s=i,d=1-a);let f={zIndex:e.stackDepth+1,left:s*100+"%",right:d*100+"%"};return r&&!e.stackForward&&(f[o?"marginLeft":"marginRight"]=10*2),f}}function ja(t,{todayRange:e,nowDate:o,eventSelection:l,eventDrag:r,eventResize:i}){let a=(r?r.affectedInstances:null)||(i?i.affectedInstances:null)||{};return k(fe,null,t.map(s=>{let d=s.eventRange.instance.instanceId;return k("div",{key:d,style:{visibility:a[d]?"hidden":""}},k(Ua,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:d===l,isShort:!1},rt(s,e,o))))}))}function pl(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function V0(t,e){return t.map(o=>e[o.index])}class B0 extends re{constructor(){super(...arguments),this.splitFgEventSegs=q(Wt),this.splitBgEventSegs=q(Wt),this.splitBusinessHourSegs=q(Wt),this.splitNowIndicatorSegs=q(Wt),this.splitDateSelectionSegs=q(Wt),this.splitEventDrag=q(Fa),this.splitEventResize=q(Fa),this.rootElRef=we(),this.cellElRefs=new Ye}render(){let{props:e,context:o}=this,l=o.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),r=e.cells.length,i=this.splitFgEventSegs(e.fgEventSegs,r),a=this.splitBgEventSegs(e.bgEventSegs,r),s=this.splitBusinessHourSegs(e.businessHourSegs,r),d=this.splitNowIndicatorSegs(e.nowIndicatorSegs,r),f=this.splitDateSelectionSegs(e.dateSelectionSegs,r),u=this.splitEventDrag(e.eventDrag,r),g=this.splitEventResize(e.eventResize,r);return k("div",{className:"fc-timegrid-cols",ref:this.rootElRef},k("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,k("tbody",{role:"presentation"},k("tr",{role:"row"},e.axis&&k("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},k("div",{className:"fc-timegrid-col-frame"},k("div",{className:"fc-timegrid-now-indicator-container"},typeof l=="number"&&k(rl,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:l},isAxis:!0,date:e.nowDate})))),e.cells.map((m,c)=>k(N0,{key:m.key,elRef:this.cellElRefs.createRef(m.key),dateProfile:e.dateProfile,date:m.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:m.extraRenderProps,extraDataAttrs:m.extraDataAttrs,extraClassNames:m.extraClassNames,extraDateSpan:m.extraDateSpan,fgEventSegs:i[c],bgEventSegs:a[c],businessHourSegs:s[c],nowIndicatorSegs:d[c],dateSelectionSegs:f[c],eventDrag:u[c],eventResize:g[c],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new Bt(this.rootElRef.current,T0(this.cellElRefs.currentMap,e.cells),!0,!1))}}function T0(t,e){return e.map(o=>t[o.key])}class I0 extends $e{constructor(){super(...arguments),this.processSlotOptions=q(R0),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:o}=this.props,{slatCoords:l}=this.state;if(o&&l){if(e.time){let r=l.computeTimeTop(e.time);r=Math.ceil(r),r&&(r+=1),o(r)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:o}=this;return k("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},k(g0,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),k(B0,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:o.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,o){let{dateEnv:l,options:r}=this.context,{colCoords:i}=this,{dateProfile:a}=this.props,{slatCoords:s}=this.state,{snapDuration:d,snapsPerSlot:f}=this.processSlotOptions(this.props.slotDuration,r.snapDuration),u=i.leftToIndex(e),g=s.positions.topToIndex(o);if(u!=null&&g!=null){let m=this.props.cells[u],c=s.positions.tops[g],y=s.positions.getHeight(g),p=(o-c)/y,h=Math.floor(p*f),b=g*f+h,_=this.props.cells[u].date,w=_o(a.slotMinTime,Af(d,b)),S=l.add(_,w),O=l.add(S,d);return{dateProfile:a,dateSpan:Object.assign({range:{start:S,end:O},allDay:!1},m.extraDateSpan),dayEl:i.els[u],rect:{left:i.lefts[u],right:i.rights[u],top:c,bottom:c+y},layer:0}}return null}}function R0(t,e){let o=e||t,l=bo(t,o);return l===null&&(o=t,l=1),{snapDuration:o,snapsPerSlot:l}}class M0 extends Ji{sliceRange(e,o){let l=[];for(let r=0;r<o.length;r+=1){let i=gt(e,o[r]);i&&l.push({start:i.start,end:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:r})}return l}}class O0 extends $e{constructor(){super(...arguments),this.buildDayRanges=q(L0),this.slicer=new M0,this.timeColsRef=we()}render(){let{props:e,context:o}=this,{dateProfile:l,dayTableModel:r}=e,{nowIndicator:i,nextDayThreshold:a}=o.options,s=this.buildDayRanges(r,l,o.dateEnv);return k(jt,{unit:i?"minute":"day"},(d,f)=>k(I0,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,l,null,o,s),{forPrint:e.forPrint,axis:e.axis,dateProfile:l,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:r.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:d,nowIndicatorSegs:i&&this.slicer.sliceNowDate(d,l,a,o,s),todayRange:f,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function L0(t,e,o){let l=[];for(let r of t.headerDates)l.push({start:o.add(r,e.slotMinTime),end:o.add(r,e.slotMaxTime)});return l}const Wa=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function P0(t,e,o,l,r){let i=new Date(0),a=t,s=te(0),d=o||z0(l),f=[];for(;Ie(a)<Ie(e);){let u=r.add(i,a),g=bo(s,d)!==null;f.push({date:u,time:a,key:u.toISOString(),isoTimeStr:Hf(u),isLabeled:g}),a=_o(a,l),s=_o(s,l)}return f}function z0(t){let e,o,l;for(e=Wa.length-1;e>=0;e-=1)if(o=te(Wa[e]),l=bo(o,t),l!==null&&l>1)return o;return t}class F0 extends f0{constructor(){super(...arguments),this.buildTimeColsModel=q($0),this.buildSlatMetas=q(P0)}render(){let{options:e,dateEnv:o,dateProfileGenerator:l}=this.context,{props:r}=this,{dateProfile:i}=r,a=this.buildTimeColsModel(i,l),s=this.allDaySplitter.splitProps(r),d=this.buildSlatMetas(i.slotMinTime,i.slotMaxTime,e.slotLabelInterval,e.slotDuration,o),{dayMinWidth:f}=e,u=!f,g=f,m=e.dayHeaders&&k(Zi,{dates:a.headerDates,dateProfile:i,datesRepDistinctDays:!0,renderIntro:u?this.renderHeadAxis:null}),c=e.allDaySlot!==!1&&(p=>k(La,Object.assign({},s.allDay,{dateProfile:i,dayTableModel:a,nextDayThreshold:e.nextDayThreshold,tableMinWidth:p.tableMinWidth,colGroupNode:p.tableColGroupNode,renderRowIntro:u?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:p.clientWidth,clientHeight:p.clientHeight,forPrint:r.forPrint},this.getAllDayMaxEventProps()))),y=p=>k(O0,Object.assign({},s.timed,{dayTableModel:a,dateProfile:i,axis:u,slotDuration:e.slotDuration,slatMetas:d,forPrint:r.forPrint,tableColGroupNode:p.tableColGroupNode,tableMinWidth:p.tableMinWidth,clientWidth:p.clientWidth,clientHeight:p.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:p.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return g?this.renderHScrollLayout(m,c,y,a.colCnt,f,d,this.state.slatCoords):this.renderSimpleLayout(m,c,y)}}function $0(t,e){let o=new Xi(t.renderRange,e);return new Ki(o,!1)}var Ga=Qe({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:F0,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});el.touchMouseIgnoreWait=500;let hl=0,Un=0,ml=!1;class qa{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=o=>{if(!this.shouldIgnoreMouse()&&H0(o)&&this.tryStart(o)){let l=this.createEventFromMouse(o,!0);this.emitter.trigger("pointerdown",l),this.initScrollWatch(l),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=o=>{let l=this.createEventFromMouse(o);this.recordCoords(l),this.emitter.trigger("pointermove",l)},this.handleMouseUp=o=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(o)),this.cleanup()},this.handleTouchStart=o=>{if(this.tryStart(o)){this.isTouchDragging=!0;let l=this.createEventFromTouch(o,!0);this.emitter.trigger("pointerdown",l),this.initScrollWatch(l);let r=o.target;this.shouldIgnoreMove||r.addEventListener("touchmove",this.handleTouchMove),r.addEventListener("touchend",this.handleTouchEnd),r.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=o=>{let l=this.createEventFromTouch(o);this.recordCoords(l),this.emitter.trigger("pointermove",l)},this.handleTouchEnd=o=>{if(this.isDragging){let l=o.target;l.removeEventListener("touchmove",this.handleTouchMove),l.removeEventListener("touchend",this.handleTouchEnd),l.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(o)),this.cleanup(),this.isTouchDragging=!1,U0()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=o=>{if(!this.shouldIgnoreMove){let l=window.pageXOffset-this.prevScrollX+this.prevPageX,r=window.pageYOffset-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:o,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:l,pageY:r,deltaX:l-this.origPageX,deltaY:r-this.origPageY})}},this.containerEl=e,this.emitter=new Rn,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),j0()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),W0()}tryStart(e){let o=this.querySubjectEl(e),l=e.target;return o&&(!this.handleSelector||be(l,this.handleSelector))?(this.subjectEl=o,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){ml=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?be(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return hl||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(ml=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,o){let l=0,r=0;return o?(this.origPageX=e.pageX,this.origPageY=e.pageY):(l=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:l,deltaY:r}}createEventFromTouch(e,o){let l=e.touches,r,i,a=0,s=0;return l&&l.length?(r=l[0].pageX,i=l[0].pageY):(r=e.pageX,i=e.pageY),o?(this.origPageX=r,this.origPageY=i):(a=r-this.origPageX,s=i-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:r,pageY:i,deltaX:a,deltaY:s}}}function H0(t){return t.button===0&&!t.ctrlKey}function U0(){hl+=1,setTimeout(()=>{hl-=1},el.touchMouseIgnoreWait)}function j0(){Un+=1,Un===1&&window.addEventListener("touchmove",Ya,{passive:!1})}function W0(){Un-=1,Un||window.removeEventListener("touchmove",Ya,{passive:!1})}function Ya(t){ml&&t.preventDefault()}class G0{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,o,l){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=o-window.pageXOffset,this.origScreenY=l-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,o){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=o-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,o){let l=()=>{this.cleanup(),o()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(l,this.revertDuration):setTimeout(l,0)}doRevertAnimation(e,o){let l=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();l.style.transition="top "+o+"ms,left "+o+"ms",Pt(l,{left:r.left,top:r.top}),uf(l,()=>{l.style.transition="",e()})}cleanup(){this.mirrorEl&&(mo(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&Pt(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,o=this.mirrorEl;return o||(o=this.mirrorEl=this.sourceEl.cloneNode(!0),o.style.userSelect="none",o.style.webkitUserSelect="none",o.classList.add("fc-event-dragging"),Pt(o,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(o)),o}}class Qa extends Qo{constructor(e,o){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=o,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.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(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class Za extends Qa{constructor(e,o){super(new Mh(e),o)}getEventTarget(){return this.scrollController.el}computeClientRect(){return Ih(this.scrollController.el)}}class q0 extends Qa{constructor(e){super(new Oh,e)}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 Xa=typeof performance=="function"?performance.now:Date.now;class Y0{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 e=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(e){let o=Xa();this.handleSide(e,(o-this.msSinceRequest)/1e3),this.requestAnimation(o)}else this.isAnimating=!1}}}start(e,o,l){this.isEnabled&&(this.scrollCaches=this.buildCaches(l),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,o))}handleMove(e,o){if(this.isEnabled){let l=e-window.pageXOffset,r=o-window.pageYOffset,i=this.pointerScreenY===null?0:r-this.pointerScreenY,a=this.pointerScreenX===null?0:l-this.pointerScreenX;i<0?this.everMovedUp=!0:i>0&&(this.everMovedDown=!0),a<0?this.everMovedLeft=!0:a>0&&(this.everMovedRight=!0),this.pointerScreenX=l,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Xa()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,o){let{scrollCache:l}=e,{edgeThreshold:r}=this,i=r-e.distance,a=i*i/(r*r)*this.maxVelocity*o,s=1;switch(e.name){case"left":s=-1;case"right":l.setScrollLeft(l.getScrollLeft()+a*s);break;case"top":s=-1;case"bottom":l.setScrollTop(l.getScrollTop()+a*s);break}}computeBestEdge(e,o){let{edgeThreshold:l}=this,r=null,i=this.scrollCaches||[];for(let a of i){let s=a.clientRect,d=e-s.left,f=s.right-e,u=o-s.top,g=s.bottom-o;d>=0&&f>=0&&u>=0&&g>=0&&(u<=l&&this.everMovedUp&&a.canScrollUp()&&(!r||r.distance>u)&&(r={scrollCache:a,name:"top",distance:u}),g<=l&&this.everMovedDown&&a.canScrollDown()&&(!r||r.distance>g)&&(r={scrollCache:a,name:"bottom",distance:g}),d<=l&&this.everMovedLeft&&a.canScrollLeft()&&(!r||r.distance>d)&&(r={scrollCache:a,name:"left",distance:d}),f<=l&&this.everMovedRight&&a.canScrollRight()&&(!r||r.distance>f)&&(r={scrollCache:a,name:"right",distance:f}))}return r}buildCaches(e){return this.queryScrollEls(e).map(o=>o===window?new q0(!1):new Za(o,!1))}queryScrollEls(e){let o=[];for(let l of this.scrollQuery)typeof l=="object"?o.push(l):o.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(l)));return o}}class Gt extends zh{constructor(e,o){super(e),this.containerEl=e,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=r=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,ff(document.body),hf(document.body),r.isTouch||r.origEvent.preventDefault(),this.emitter.trigger("pointerdown",r),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(r.subjectEl,r.pageX,r.pageY),this.startDelay(r),this.minDistance||this.handleDistanceSurpassed(r)))},this.onPointerMove=r=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",r),!this.isDistanceSurpassed){let i=this.minDistance,a,{deltaX:s,deltaY:d}=r;a=s*s+d*d,a>=i*i&&this.handleDistanceSurpassed(r)}this.isDragging&&(r.origEvent.type!=="scroll"&&(this.mirror.handleMove(r.pageX,r.pageY),this.autoScroller.handleMove(r.pageX,r.pageY)),this.emitter.trigger("dragmove",r))}},this.onPointerUp=r=>{this.isInteracting&&(this.isInteracting=!1,pf(document.body),mf(document.body),this.emitter.trigger("pointerup",r),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(r)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let l=this.pointer=new qa(e);l.emitter.on("pointerdown",this.onPointerDown),l.emitter.on("pointermove",this.onPointerMove),l.emitter.on("pointerup",this.onPointerUp),o&&(l.selector=o),this.mirror=new G0,this.autoScroller=new Y0}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class Q0{constructor(e){this.origRect=Yo(e),this.scrollCaches=Wi(e).map(o=>new Za(o,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let o of this.scrollCaches)e+=o.origScrollLeft-o.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let o of this.scrollCaches)e+=o.origScrollTop-o.getScrollTop();return e}isWithinClipping(e,o){let l={left:e,top:o};for(let r of this.scrollCaches)if(!Z0(r.getEventTarget())&&!kh(l,r.clientRect))return!1;return!0}}function Z0(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class jn{constructor(e,o){this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=l=>{let{dragging:r}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(l),this.initialHit||!this.requireInitial?(r.setIgnoreMove(!1),this.emitter.trigger("pointerdown",l)):r.setIgnoreMove(!0)},this.handleDragStart=l=>{this.emitter.trigger("dragstart",l),this.handleMove(l,!0)},this.handleDragMove=l=>{this.emitter.trigger("dragmove",l),this.handleMove(l)},this.handlePointerUp=l=>{this.releaseHits(),this.emitter.trigger("pointerup",l)},this.handleDragEnd=l=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,l),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",l)},this.droppableStore=o,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new Rn}processFirstCoord(e){let o={left:e.pageX,top:e.pageY},l=o,r=e.subjectEl,i;r instanceof HTMLElement&&(i=Yo(r),l=Eh(l,i));let a=this.initialHit=this.queryHitForOffset(l.left,l.top);if(a){if(this.useSubjectCenter&&i){let s=Hi(i,a.rect);s&&(l=Ch(s))}this.coordAdjust=wh(l,o)}else this.coordAdjust={left:0,top:0}}handleMove(e,o){let l=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(o||!Wn(this.movingHit,l))&&(this.movingHit=l,this.emitter.trigger("hitupdate",l,!1,e))}prepareHits(){this.offsetTrackers=je(this.droppableStore,e=>(e.component.prepareHits(),new Q0(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let o in e)e[o].destroy();this.offsetTrackers={}}queryHitForOffset(e,o){let{droppableStore:l,offsetTrackers:r}=this,i=null;for(let a in l){let s=l[a].component,d=r[a];if(d&&d.isWithinClipping(e,o)){let f=d.computeLeft(),u=d.computeTop(),g=e-f,m=o-u,{origRect:c}=d,y=c.right-c.left,p=c.bottom-c.top;if(g>=0&&g<y&&m>=0&&m<p){let h=s.queryHit(g,m,y,p);h&&Nn(h.dateProfile.activeRange,h.dateSpan.range)&&(!i||h.layer>i.layer)&&(h.componentId=a,h.context=s.context,h.rect.left+=f,h.rect.right+=f,h.rect.top+=u,h.rect.bottom+=u,i=h)}}}return i}}function Wn(t,e){return!t&&!e?!0:!!t!=!!e?!1:dh(t.dateSpan,e.dateSpan)}function Ka(t,e){let o={};for(let l of e.pluginHooks.datePointTransforms)Object.assign(o,l(t,e));return Object.assign(o,X0(t,e.dateEnv)),o}function X0(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class K0 extends Vt{constructor(e){super(e),this.handlePointerDown=l=>{let{dragging:r}=this,i=l.origEvent.target;r.setIgnoreMove(!this.component.isValidDateDownEl(i))},this.handleDragEnd=l=>{let{component:r}=this,{pointer:i}=this.dragging;if(!i.wasTouchScroll){let{initialHit:a,finalHit:s}=this.hitDragging;if(a&&s&&Wn(a,s)){let{context:d}=r,f=Object.assign(Object.assign({},Ka(a.dateSpan,d)),{dayEl:a.dayEl,jsEvent:l.origEvent,view:d.viewApi||d.calendarApi.view});d.emitter.trigger("dateClick",f)}}},this.dragging=new Gt(e.el),this.dragging.autoScroller.isEnabled=!1;let o=this.hitDragging=new jn(this.dragging,Ho(e));o.emitter.on("pointerdown",this.handlePointerDown),o.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class J0 extends Vt{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=a=>{let{component:s,dragging:d}=this,{options:f}=s.context,u=f.selectable&&s.isValidDateDownEl(a.origEvent.target);d.setIgnoreMove(!u),d.delay=a.isTouch?e3(s):null},this.handleDragStart=a=>{this.component.context.calendarApi.unselect(a)},this.handleHitUpdate=(a,s)=>{let{context:d}=this.component,f=null,u=!1;if(a){let g=this.hitDragging.initialHit;a.componentId===g.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(g,a)||(f=t3(g,a,d.pluginHooks.dateSelectionTransformers)),(!f||!Wh(f,a.dateProfile,d))&&(u=!0,f=null)}f?d.dispatch({type:"SELECT_DATES",selection:f}):s||d.dispatch({type:"UNSELECT_DATES"}),u?go():yo(),s||(this.dragSelection=f)},this.handlePointerUp=a=>{this.dragSelection&&(Di(this.dragSelection,a,this.component.context),this.dragSelection=null)};let{component:o}=e,{options:l}=o.context,r=this.dragging=new Gt(e.el);r.touchScrollAllowed=!1,r.minDistance=l.selectMinDistance||0,r.autoScroller.isEnabled=l.dragScroll;let i=this.hitDragging=new jn(this.dragging,Ho(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function e3(t){let{options:e}=t.context,o=e.selectLongPressDelay;return o==null&&(o=e.longPressDelay),o}function t3(t,e,o){let l=t.dateSpan,r=e.dateSpan,i=[l.range.start,l.range.end,r.range.start,r.range.end];i.sort(kf);let a={};for(let s of o){let d=s(t,e);if(d===!1)return null;d&&Object.assign(a,d)}return a.range={start:i[0],end:i[3]},a.allDay=l.allDay,a}class qt extends Vt{constructor(e){super(e),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=a=>{let s=a.origEvent.target,{component:d,dragging:f}=this,{mirror:u}=f,{options:g}=d.context,m=d.context;this.subjectEl=a.subjectEl;let c=this.subjectSeg=Nt(a.subjectEl),p=(this.eventRange=c.eventRange).instance.instanceId;this.relevantEvents=Lo(m.getCurrentData().eventStore,p),f.minDistance=a.isTouch?0:g.eventDragMinDistance,f.delay=a.isTouch&&p!==d.props.eventSelection?o3(d):null,g.fixedMirrorParent?u.parentNode=g.fixedMirrorParent:u.parentNode=be(s,".fc"),u.revertDuration=g.dragRevertDuration;let h=d.isValidSegDownEl(s)&&!be(s,".fc-event-resizer");f.setIgnoreMove(!h),this.isDragging=h&&a.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=a=>{let s=this.component.context,d=this.eventRange,f=d.instance.instanceId;a.isTouch?f!==this.component.props.eventSelection&&s.dispatch({type:"SELECT_EVENT",eventInstanceId:f}):s.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(s.calendarApi.unselect(a),s.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new he(s,d.def,d.instance),jsEvent:a.origEvent,view:s.viewApi}))},this.handleHitUpdate=(a,s)=>{if(!this.isDragging)return;let d=this.relevantEvents,f=this.hitDragging.initialHit,u=this.component.context,g=null,m=null,c=null,y=!1,p={affectedEvents:d,mutatedEvents:Be(),isEvent:!0};if(a){g=a.context;let h=g.options;u===g||h.editable&&h.droppable?(m=n3(f,a,g.getCurrentData().pluginHooks.eventDragMutationMassagers),m&&(c=Fo(d,g.getCurrentData().eventUiBases,m,g),p.mutatedEvents=c,ea(p,a.dateProfile,g)||(y=!0,m=null,c=null,p.mutatedEvents=Be()))):g=null}this.displayDrag(g,p),y?go():yo(),s||(u===g&&Wn(f,a)&&(m=null),this.dragging.setMirrorNeedsRevert(!m),this.dragging.setMirrorIsVisible(!a||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=g,this.validMutation=m,this.mutatedRelevantEvents=c)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=a=>{if(this.isDragging){let s=this.component.context,d=s.viewApi,{receivingContext:f,validMutation:u}=this,g=this.eventRange.def,m=this.eventRange.instance,c=new he(s,g,m),y=this.relevantEvents,p=this.mutatedRelevantEvents,{finalHit:h}=this.hitDragging;if(this.clearDrag(),s.emitter.trigger("eventDragStop",{el:this.subjectEl,event:c,jsEvent:a.origEvent,view:d}),u){if(f===s){let b=new he(s,p.defs[g.defId],m?p.instances[m.instanceId]:null);s.dispatch({type:"MERGE_EVENTS",eventStore:p});let _={oldEvent:c,event:b,relatedEvents:_t(p,s,m),revert(){s.dispatch({type:"MERGE_EVENTS",eventStore:y})}},w={};for(let S of s.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(w,S(u,s));s.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},_),w),{el:a.subjectEl,delta:u.datesDelta,jsEvent:a.origEvent,view:d})),s.emitter.trigger("eventChange",_)}else if(f){let b={event:c,relatedEvents:_t(y,s,m),revert(){s.dispatch({type:"MERGE_EVENTS",eventStore:y})}};s.emitter.trigger("eventLeave",Object.assign(Object.assign({},b),{draggedEl:a.subjectEl,view:d})),s.dispatch({type:"REMOVE_EVENTS",eventStore:y}),s.emitter.trigger("eventRemove",b);let _=p.defs[g.defId],w=p.instances[m.instanceId],S=new he(f,_,w);f.dispatch({type:"MERGE_EVENTS",eventStore:p});let O={event:S,relatedEvents:_t(p,f,w),revert(){f.dispatch({type:"REMOVE_EVENTS",eventStore:p})}};f.emitter.trigger("eventAdd",O),a.isTouch&&f.dispatch({type:"SELECT_EVENT",eventInstanceId:m.instanceId}),f.emitter.trigger("drop",Object.assign(Object.assign({},Ka(h.dateSpan,f)),{draggedEl:a.subjectEl,jsEvent:a.origEvent,view:h.context.viewApi})),f.emitter.trigger("eventReceive",Object.assign(Object.assign({},O),{draggedEl:a.subjectEl,view:h.context.viewApi}))}}else s.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:o}=this,{options:l}=o.context,r=this.dragging=new Gt(e.el);r.pointer.selector=qt.SELECTOR,r.touchScrollAllowed=!1,r.autoScroller.isEnabled=l.dragScroll;let i=this.hitDragging=new jn(this.dragging,Uo);i.useSubjectCenter=e.useEventCenter,i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("pointerup",this.handlePointerUp),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,o){let l=this.component.context,r=this.receivingContext;r&&r!==e&&(r===l?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:o.affectedEvents,mutatedEvents:Be(),isEvent:!0}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:o})}clearDrag(){let e=this.component.context,{receivingContext:o}=this;o&&o.dispatch({type:"UNSET_EVENT_DRAG"}),e!==o&&e.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}}qt.SELECTOR=".fc-event-draggable, .fc-event-resizable";function n3(t,e,o){let l=t.dateSpan,r=e.dateSpan,i=l.range.start,a=r.range.start,s={};l.allDay!==r.allDay&&(s.allDay=r.allDay,s.hasEnd=e.context.options.allDayMaintainDuration,r.allDay&&(i=ue(i)));let d=xt(i,a,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);d.milliseconds&&(s.allDay=!1);let f={datesDelta:d,standardProps:s};for(let u of o)u(f,t,e);return f}function o3(t){let{options:e}=t.context,o=e.eventLongPressDelay;return o==null&&(o=e.longPressDelay),o}class l3 extends Vt{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=i=>{let{component:a}=this,s=this.querySegEl(i),d=Nt(s),f=this.eventRange=d.eventRange;this.dragging.minDistance=a.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(i.origEvent.target)||i.isTouch&&this.component.props.eventSelection!==f.instance.instanceId)},this.handleDragStart=i=>{let{context:a}=this.component,s=this.eventRange;this.relevantEvents=Lo(a.getCurrentData().eventStore,this.eventRange.instance.instanceId);let d=this.querySegEl(i);this.draggingSegEl=d,this.draggingSeg=Nt(d),a.calendarApi.unselect(),a.emitter.trigger("eventResizeStart",{el:d,event:new he(a,s.def,s.instance),jsEvent:i.origEvent,view:a.viewApi})},this.handleHitUpdate=(i,a,s)=>{let{context:d}=this.component,f=this.relevantEvents,u=this.hitDragging.initialHit,g=this.eventRange.instance,m=null,c=null,y=!1,p={affectedEvents:f,mutatedEvents:Be(),isEvent:!0};i&&(i.componentId===u.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(u,i)||(m=r3(u,i,s.subjectEl.classList.contains("fc-event-resizer-start"),g.range))),m&&(c=Fo(f,d.getCurrentData().eventUiBases,m,d),p.mutatedEvents=c,ea(p,i.dateProfile,d)||(y=!0,m=null,c=null,p.mutatedEvents=null)),c?d.dispatch({type:"SET_EVENT_RESIZE",state:p}):d.dispatch({type:"UNSET_EVENT_RESIZE"}),y?go():yo(),a||(m&&Wn(u,i)&&(m=null),this.validMutation=m,this.mutatedRelevantEvents=c)},this.handleDragEnd=i=>{let{context:a}=this.component,s=this.eventRange.def,d=this.eventRange.instance,f=new he(a,s,d),u=this.relevantEvents,g=this.mutatedRelevantEvents;if(a.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:f,jsEvent:i.origEvent,view:a.viewApi}),this.validMutation){let m=new he(a,g.defs[s.defId],d?g.instances[d.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:g});let c={oldEvent:f,event:m,relatedEvents:_t(g,a,d),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:u})}};a.emitter.trigger("eventResize",Object.assign(Object.assign({},c),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||te(0),endDelta:this.validMutation.endDelta||te(0),jsEvent:i.origEvent,view:a.viewApi})),a.emitter.trigger("eventChange",c)}else a.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:o}=e,l=this.dragging=new Gt(e.el);l.pointer.selector=".fc-event-resizer",l.touchScrollAllowed=!1,l.autoScroller.isEnabled=o.context.options.dragScroll;let r=this.hitDragging=new jn(this.dragging,Ho(e));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return be(e.subjectEl,".fc-event")}}function r3(t,e,o,l){let r=t.context.dateEnv,i=t.dateSpan.range.start,a=e.dateSpan.range.start,s=xt(i,a,r,t.largeUnit);if(o){if(r.add(l.start,s)<l.end)return{startDelta:s}}else if(r.add(l.end,s)>l.start)return{endDelta:s};return null}class i3{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=l=>{l.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=l=>{let r=this.context.options.unselectCancel,i=Fr(l.origEvent);this.matchesCancel=!!be(i,r),this.matchesEvent=!!be(i,qt.SELECTOR)},this.onDocumentPointerUp=l=>{let{context:r}=this,{documentPointer:i}=this,a=r.getCurrentData();if(!i.wasTouchScroll){if(a.dateSelection&&!this.isRecentPointerDateSelect){let s=r.options.unselectAuto;s&&(!s||!this.matchesCancel)&&r.calendarApi.unselect(l)}a.eventSelection&&!this.matchesEvent&&r.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let o=this.documentPointer=new qa(document);o.shouldIgnoreMove=!0,o.shouldWatchScroll=!1,o.emitter.on("pointerdown",this.onDocumentPointerDown),o.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const a3={fixedMirrorParent:V},s3={dateClick:V,eventDragStart:V,eventDragStop:V,eventDrop:V,eventResizeStart:V,eventResizeStop:V,eventResize:V,drop:V,eventReceive:V,eventLeave:V};el.dataAttrPrefix="";var Ja=Qe({name:"@fullcalendar/interaction",componentInteractions:[K0,J0,qt,l3],calendarInteractions:[i3],elementDraggingImpl:Gt,optionRefiners:a3,listenerRefiners:s3});let c3=0,d3=new Date().toISOString().replace(/T.*$/,"");const u3=[{id:f3(),title:"All-day event",start:d3}];function f3(){return String(c3++)}const Yt=t=>(n.pushScopeId("data-v-5b784b52"),t=t(),n.popScopeId(),t),p3={class:"demo-app"},h3={class:"demo-app-main"},m3={class:"title-line"},g3=["title","onClick"],y3={key:0,style:{width:"90%"}},_3=Yt(()=>n.createElementVNode("span",{class:"to"},"至",-1)),b3={key:1,style:{width:"90%"}},k3=Yt(()=>n.createElementVNode("span",{class:"to"},"至",-1)),E3={key:2,style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},C3={key:0,style:{"margin-left":"2%"}},w3=Yt(()=>n.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),v3={key:1},S3=Yt(()=>n.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),A3={key:0,class:"placeholder"},x3={class:"info"},D3=Yt(()=>n.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)),N3={class:"dialog-footer"},V3={name:"IkApprovalProcess"},B3=n.defineComponent({...V3,props:{dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},emits:["delete","success"],setup(t,{emit:e}){const o=e,l=p=>{if(s.selectInfo=p,i(),p.view.type=="dayGridMonth"){let b=p.end.getTime()-864e5;s.timeType="month",s.form.startDate=P.ikDate.toYMD(p.start),s.form.endDate=P.ikDate.toYMD(new Date(b))}else p.view.type=="timeGridWeek"?(s.timeType="week",s.form.startDate=P.ikDate.toYMDHM(p.start),s.form.endDate=P.ikDate.toYMDHM(p.end)):p.view.type=="timeGridDay"&&(s.timeType="day",s.form.startDate=P.ikDate.toYMD(p.start),s.form.endDate=P.ikDate.toYMD(p.start),s.form.startTime=P.ikDate.toDateTime(p.start),s.form.endTime=P.ikDate.toDateTime(p.end));p.view.calendar.unselect(),n.nextTick(()=>{s.title="新建日程",s.dialogVisible=!0})},r=(p,h)=>{s.title="修改日程",s.dialogVisible=!0},i=p=>{fetch("http://192.168.2.45:6002/component/pick/mix",{method:"POST",body:JSON.stringify({parentDepartmentId:p||"",name:""}),headers:{Authorization:"Bearer iking","Content-Type":"application/json"}}).then(_=>{_.json().then(w=>{const{success:S,data:O}=w;if(!S)return;const{departments:N,users:C,roles:E,posts:B}=O;s.depList=N,s.userList=C,s.roleList=E,s.postList=B})}).catch(_=>{console.info("error: ",_)})},a=p=>{s.currentEvents=p},s=n.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:Xl,plugins:[Pa,Ga,Ja],headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},firstDay:1,initialView:"dayGridMonth",initialEvents:u3,editable:!0,selectable:!0,selectMirror:!0,dayMaxEvents:!0,weekends:!0,select:l,eventClick:p=>r(),eventsSet:a},currentEvents:[]}),d=()=>{var p;(p=s.formRef)==null||p.resetFields(),s.form={title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},s.dialogVisible=!1},f=async()=>{var b,_,w,S;let p=(_=(b=s.selectInfo)==null?void 0:b.view)==null?void 0:_.calendar,h={id:new Date().getTime(),title:s.form.title,start:(w=s.selectInfo)==null?void 0:w.startStr,end:(S=s.selectInfo)==null?void 0:S.endStr,allDay:s.allDay};await p.addEvent(h),o("success",h),d()},u=p=>{v.ElMessageBox.confirm(`你确定删除事件'${p.event.title}'?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{v.ElMessage({type:"success",message:"删除成功"}),p.event.remove(),o("delete",p.event)})},g=p=>{s.handList=p.list,s.form.personList=p.list},m=()=>{s.isShow=!0},c=p=>{i(p==null?void 0:p.elementId)},y=p=>{s.form.personList.splice(p,1),s.handList=s.form.personList};return(p,h)=>{const b=n.resolveComponent("el-checkbox");return n.openBlock(),n.createElementBlock("div",p3,[n.createElementVNode("div",h3,[n.createVNode(n.unref(Da),{class:"demo-app-calendar",options:s.calendarOptions},{eventContent:n.withCtx(_=>[n.createElementVNode("div",m3,[n.createElementVNode("span",{class:"title",title:_.event.title,onClick:n.withModifiers(w=>r(),["stop"])},n.toDisplayString(_.event.title),9,g3),n.createVNode(n.unref(v.ElIcon),{size:16,onClick:n.withModifiers(w=>u(_),["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(Wl))]),_:2},1032,["onClick"])])]),_:1},8,["options"])]),n.createCommentVNode(" 新建日程 "),n.createVNode(n.unref(v.ElDialog),{modelValue:s.dialogVisible,"onUpdate:modelValue":h[12]||(h[12]=_=>s.dialogVisible=_),title:s.title,width:"30%",ref:"formRef",onClose:d},{footer:n.withCtx(()=>[n.createElementVNode("span",N3,[n.createVNode(n.unref(v.ElButton),{onClick:d},{default:n.withCtx(()=>[n.createTextVNode("取消")]),_:1}),n.createVNode(n.unref(v.ElButton),{type:"primary",onClick:f},{default:n.withCtx(()=>[n.createTextVNode("确定")]),_:1})])]),default:n.withCtx(()=>[n.createVNode(n.unref(v.ElForm),{model:s.form},{default:n.withCtx(()=>[n.createVNode(n.unref(v.ElFormItem),null,{default:n.withCtx(()=>[n.createVNode(n.unref(v.ElIcon),{class:"icon"},{default:n.withCtx(()=>[n.createVNode(n.unref(Hl))]),_:1}),n.createVNode(n.unref(v.ElInput),{modelValue:s.form.title,"onUpdate:modelValue":h[0]||(h[0]=_=>s.form.title=_),placeholder:`添加${s.form.type==1?"会议":"活动"}标题`,style:{width:"70%"},clearable:""},null,8,["modelValue","placeholder"]),n.createVNode(n.unref(v.ElSelect),{modelValue:s.form.type,"onUpdate:modelValue":h[1]||(h[1]=_=>s.form.type=_),style:{width:"20%"}},{default:n.withCtx(()=>[n.createVNode(n.unref(v.ElOption),{label:"会议",value:1}),n.createVNode(n.unref(v.ElOption),{label:"活动",value:2})]),_:1},8,["modelValue"])]),_:1}),n.createVNode(n.unref(v.ElFormItem),null,{default:n.withCtx(()=>[n.createVNode(n.unref(v.ElIcon),{class:"icon"},{default:n.withCtx(()=>[n.createVNode(n.unref(Ul))]),_:1}),s.timeType=="month"?(n.openBlock(),n.createElementBlock("div",y3,[n.createVNode(n.unref(v.ElDatePicker),{modelValue:s.form.startDate,"onUpdate:modelValue":h[2]||(h[2]=_=>s.form.startDate=_),type:"date",placeholder:"开始日期",style:{width:"48%"}},null,8,["modelValue"]),_3,n.createVNode(n.unref(v.ElDatePicker),{modelValue:s.form.endDate,"onUpdate:modelValue":h[3]||(h[3]=_=>s.form.endDate=_),type:"date",placeholder:"结束日期",style:{width:"48%"}},null,8,["modelValue"])])):n.createCommentVNode("v-if",!0),s.timeType=="week"?(n.openBlock(),n.createElementBlock("div",b3,[n.createVNode(n.unref(v.ElDatePicker),{modelValue:s.form.startDate,"onUpdate:modelValue":h[4]||(h[4]=_=>s.form.startDate=_),type:"datetime",placeholder:"开始日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"]),k3,n.createVNode(n.unref(v.ElDatePicker),{modelValue:s.form.endDate,"onUpdate:modelValue":h[5]||(h[5]=_=>s.form.endDate=_),type:"datetime",placeholder:"结束日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"])])):n.createCommentVNode("v-if",!0),s.timeType=="day"?(n.openBlock(),n.createElementBlock("div",E3,[n.createVNode(n.unref(v.ElDatePicker),{modelValue:s.form.startDate,"onUpdate:modelValue":h[6]||(h[6]=_=>s.form.startDate=_),type:"date",placeholder:"开始日期",style:n.normalizeStyle({width:s.allDay?"45%":"90%"})},null,8,["modelValue","style"]),s.allDay?(n.openBlock(),n.createElementBlock("div",v3,[S3,n.createVNode(n.unref(v.ElDatePicker),{modelValue:s.form.endDate,"onUpdate:modelValue":h[9]||(h[9]=_=>s.form.endDate=_),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(n.openBlock(),n.createElementBlock("div",C3,[n.createVNode(n.unref(v.ElTimePicker),{modelValue:s.form.startTime,"onUpdate:modelValue":h[7]||(h[7]=_=>s.form.startTime=_),type:"datetime",placeholder:"开始日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),w3,n.createVNode(n.unref(v.ElTimePicker),{modelValue:s.form.endTime,"onUpdate:modelValue":h[8]||(h[8]=_=>s.form.endTime=_),type:"datetime",placeholder:"结束日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),n.createVNode(b,{modelValue:s.allDay,"onUpdate:modelValue":h[10]||(h[10]=_=>s.allDay=_),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])):n.createCommentVNode("v-if",!0)]),_:1}),n.createVNode(n.unref(v.ElFormItem),null,{default:n.withCtx(()=>[n.createVNode(n.unref(v.ElIcon),{class:"icon"},{default:n.withCtx(()=>[n.createVNode(n.unref(Pc))]),_:1}),n.createElementVNode("div",{class:"personBlock",onClick:n.withModifiers(m,["stop"])},[s.form.personList.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(s.form.personList,(_,w)=>(n.openBlock(),n.createElementBlock("div",{key:w,class:"nameBlock"},[n.createElementVNode("div",x3,[D3,n.createElementVNode("div",null,n.toDisplayString(_.elementName),1)]),n.createVNode(n.unref(v.ElIcon),{class:"close",onClick:n.withModifiers(S=>y(w),["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(jl))]),_:2},1032,["onClick"])]))),128)):(n.openBlock(),n.createElementBlock("span",A3,"添加参与人"))])]),_:1}),n.createVNode(n.unref(v.ElFormItem),null,{default:n.withCtx(()=>[n.createVNode(n.unref(v.ElIcon),{class:"icon"},{default:n.withCtx(()=>[n.createVNode(n.unref(Sc))]),_:1}),n.createVNode(n.unref(v.ElInput),{modelValue:s.form.location,"onUpdate:modelValue":h[11]||(h[11]=_=>s.form.location=_),placeholder:"添加地点",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),n.createCommentVNode(" 选人组件 "),n.createVNode(n.unref(on),{modelValue:s.handList,"onUpdate:modelValue":h[13]||(h[13]=_=>s.handList=_),show:s.isShow,"onUpdate:show":h[14]||(h[14]=_=>s.isShow=_),onOk:g,multiple:!0,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},"dep-list":s.depList,"user-list":s.userList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:["user"],onHandChild:c},null,8,["modelValue","show","dep-list","user-list"])])}}}),G4="",T3=de(X(B3,[["__scopeId","data-v-5b784b52"]])),I3={class:"ik-hor-step-content"},R3={class:"flex"},M3=["onClick"],O3=["id","onClick"],L3=n.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(t,{emit:e}){const o=t,l=e,r=n.ref(!1),i=n.ref(),a=n.ref(),s=n.ref(!1);n.watch(()=>o.active,p=>{let h=document.getElementById("stepItemContent"),b=document.getElementById(`stepItem${p}`),_=document.getElementById("stepItem0");const w=b&&_?(b==null?void 0:b.offsetLeft)-(_==null?void 0:_.offsetLeft):0;h&&b&&(h.scrollLeft=w>(h==null?void 0:h.clientWidth)?w-(h==null?void 0:h.offsetLeft):0)}),n.onMounted(()=>{n.nextTick(()=>{let h=document.getElementById("stepItemContent"),b=(h==null?void 0:h.scrollWidth)>(h==null?void 0:h.clientWidth);r.value=b,window.addEventListener("resize",p,!0)});const p=()=>{let h=document.getElementById("stepItemContent"),b=(h==null?void 0:h.scrollWidth)>(h==null?void 0:h.clientWidth);r.value=b}});const d=(p,h)=>{if(!o.needClick)return;l("update:active",h),l("click",p);let b=document.getElementById("stepItemContent"),_=document.getElementById(`stepItem${h}`),w=document.getElementById("stepItem0");const S=_&&w?(_==null?void 0:_.offsetLeft)-(w==null?void 0:w.offsetLeft):0;b&&_&&(b.scrollLeft=S>(b==null?void 0:b.clientWidth)?S-(b==null?void 0:b.offsetLeft):0)},f=()=>{let p=document.getElementById("stepItemContent");p&&(p.scrollLeft=p.scrollLeft-20)},u=()=>{let p=document.getElementById("stepItemContent");p&&(p.scrollLeft=p.scrollLeft+20)},g=()=>{clearInterval(a.value);let p=document.getElementById("stepItemContent");s.value=!1,a.value=setInterval(()=>{s.value=!0,p&&(p.scrollLeft=p.scrollLeft-20)},100)},m=()=>{clearInterval(a.value),s.value||f()},c=()=>{clearInterval(i.value);let p=document.getElementById("stepItemContent");s.value=!1,i.value=setInterval(()=>{s.value=!0,p&&(p.scrollLeft=p.scrollLeft+20)},100)},y=()=>{clearInterval(i.value),s.value||u()};return(p,h)=>{const b=n.resolveComponent("el-icon");return n.openBlock(),n.createElementBlock("div",I3,[n.createElementVNode("div",R3,[r.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:"icon-left",onMousedown:g,onMouseup:m,onClick:f},[n.createVNode(b,{class:"operation-icon"},{default:n.withCtx(()=>[n.createVNode(n.unref(Fl),{size:"26px"})]),_:1})],32)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{class:"step-item-content",id:"stepItemContent",style:n.normalizeStyle({justifyContent:r.value?"flex-start":"center"})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.list,(_,w)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(`step-item ${w<=t.active?"step-item-active":""}`),key:w},[w!=0?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(`step-border ${w<=t.active?"step-border-greater-than":""}`),style:n.normalizeStyle({width:`${t.spaceNum.indexOf("px")!=-1?t.spaceNum:`${t.spaceNum}px`}`})},null,6)):n.createCommentVNode("v-if",!0),n.createElementVNode("span",{class:n.normalizeClass(`step-num ${w===t.active?"step-num-active":w<t.active?"step-num-greater-than":""}`),onClick:S=>d(_,w),style:n.normalizeStyle({backgroundColor:w===t.active&&t.activeColor?t.activeColor:"",cursor:_&&_.disabled?"not-allowed":t.needClick?"pointer":"context-menu"})},[n.renderSlot(p.$slots,"icon",{data:{item:_,index:w}},()=>[n.createTextVNode(n.toDisplayString(w+1),1)],!0)],14,M3),n.createElementVNode("span",{id:`stepItem${w}`,class:n.normalizeClass(`step-label ${t.active===w?"step-label-active":w<t.active?"step-label-greater-than":""} step-item-${w}`),style:n.normalizeStyle({color:w===t.active&&t.activeColor?t.activeColor:"",cursor:_&&_.disabled?"not-allowed":t.needClick?"pointer":"context-menu"}),onClick:S=>d(_,w)},n.toDisplayString(_[t.propsField.title]),15,O3)],2))),128))],4),r.value?(n.openBlock(),n.createElementBlock("div",{key:1,class:"icon-right",onMousedown:c,onMouseup:y,onClick:u},[n.createVNode(b,{class:"operation-icon"},{default:n.withCtx(()=>[n.createVNode(n.unref($l))]),_:1})],32)):n.createCommentVNode("v-if",!0)])])}}}),Y4="",P3=de(X(L3,[["__scopeId","data-v-c8da17cd"]])),z3=typeof btoa=="function",gl=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const es=typeof TextEncoder=="function"?new TextEncoder:void 0,F3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Qt=Array.prototype.slice.call(F3);(t=>{let e={};return t.forEach((o,l)=>e[o]=l),e})(Qt);const He=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const $3=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),ts=z3?t=>btoa(t):gl?t=>Buffer.from(t,"binary").toString("base64"):t=>{let e,o,l,r,i="";const a=t.length%3;for(let s=0;s<t.length;){if((o=t.charCodeAt(s++))>255||(l=t.charCodeAt(s++))>255||(r=t.charCodeAt(s++))>255)throw new TypeError("invalid character found");e=o<<16|l<<8|r,i+=Qt[e>>18&63]+Qt[e>>12&63]+Qt[e>>6&63]+Qt[e&63]}return a?i.slice(0,a-3)+"===".substring(a):i},H3=gl?t=>Buffer.from(t).toString("base64"):t=>{let o=[];for(let l=0,r=t.length;l<r;l+=4096)o.push(He.apply(null,t.subarray(l,l+4096)));return ts(o.join(""))},U3=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?He(192|e>>>6)+He(128|e&63):He(224|e>>>12&15)+He(128|e>>>6&63)+He(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return He(240|e>>>18&7)+He(128|e>>>12&63)+He(128|e>>>6&63)+He(128|e&63)}},j3=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,W3=t=>t.replace(j3,U3),ns=gl?t=>Buffer.from(t,"utf8").toString("base64"):es?t=>H3(es.encode(t)):t=>ts(W3(t)),G3=(t,e=!1)=>e?$3(ns(t)):ns(t),q3=["src"],os=n.defineComponent({__name:"IKPreviewFile",props:{modelValue:{type:Boolean,default:!1},kkUrl:{required:!0,type:String,default:""},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},fileName:{type:String,default:""}},setup(t){const e=t,o=n.ref(null),l=n.computed(()=>!e.kkUrl||!e.url?"":`${e.kkUrl}${encodeURIComponent(G3(`${e.loadUrl}${e.url}${e.fileName?`&fullfilename=${e.fileName}`:""}`))}`),r=n.ref(e.modelValue);return n.watch(()=>e.modelValue,i=>{r.value=i}),(i,a)=>(n.openBlock(),n.createBlock(n.unref(v.ElDialog),{fullscreen:"",modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=s=>r.value=s),"destroy-on-close":"","append-to-body":"","modal-class":"ik-file-preview-modal",onClose:a[1]||(a[1]=s=>i.$emit("update:modelValue",!1)),class:"ik-file-preview"},{default:n.withCtx(()=>[n.createElementVNode("iframe",{ref_key:"freamRef",ref:o,"cross-origin":"",src:l.value,frameborder:"0",allowfullscreen:"",seamless:""},null,8,q3)]),_:1},8,["modelValue"]))}}),X4="",Y3=de(os),Q3={key:0,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"},Z3=[n.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),n.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),n.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)],X3={key:1,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"},K3=[n.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),n.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),n.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),n.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)],J3={key:2,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"},e1=[n.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),n.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)],t1={key:3,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"},n1=[n.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),n.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)],o1={key:4,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"},l1=[n.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),n.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)],r1={key:5,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"},i1=[n.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),n.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)],a1={key:6,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"},s1=[n.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),n.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)],c1={key:7,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"},d1=[n.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),n.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)],u1={key:8,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"},f1=[n.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),n.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)],p1={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"},h1=[n.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),n.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),n.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)],m1=n.defineComponent({__name:"FileIcon",props:{type:{type:String,default:"unknow"}},setup(t){return(e,o)=>t.type==="unknow"?(n.openBlock(),n.createElementBlock("svg",Q3,Z3)):t.type==="image"?(n.openBlock(),n.createElementBlock("svg",X3,K3)):t.type==="zip"?(n.openBlock(),n.createElementBlock("svg",J3,e1)):t.type==="ppt"?(n.openBlock(),n.createElementBlock("svg",t1,n1)):t.type==="word"?(n.openBlock(),n.createElementBlock("svg",o1,l1)):t.type==="pdf"?(n.openBlock(),n.createElementBlock("svg",r1,i1)):t.type==="txt"?(n.openBlock(),n.createElementBlock("svg",a1,s1)):t.type==="audio"?(n.openBlock(),n.createElementBlock("svg",c1,d1)):t.type==="video"?(n.openBlock(),n.createElementBlock("svg",u1,f1)):t.type==="excal"?(n.openBlock(),n.createElementBlock("svg",p1,h1)):n.createCommentVNode("v-if",!0)}}),ls=t=>t%1===0?t.toString():t.toFixed(2),g1={class:"ik-flie-list"},y1={class:"name"},_1={key:1},b1=["src"],k1={class:"file-icon"},E1={class:"file-name-loading"},C1={class:"file-name"},w1={key:0},v1={key:0,class:"file-size"},S1={class:"name"},A1={class:"file-name-loading"},x1={class:"file-name"},D1={class:"file-size"},N1={class:"operate-btn"},V1=n.defineComponent({__name:"index",props:{title:{type:String,default:"上传文件"},action:{type:String,default:""},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:""},modelValue:{type:Array,default:()=>[]},defaultFileds:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})},preview:{type:Boolean,default:!1},customIconData:{type:Object,default:()=>({})},customIconFields:{type:Object,default:()=>({type:"type",icon:"icon"})},onlinePreviewUrl:{type:String,default:""}},emits:["delete","exceed","success","error","outSize"],setup(t,{emit:e}){const o=t,l=e,i={...{name:"name",url:"url",suffix:"suffix"},...o.defaultFileds},a=n.computed(()=>o.size),s=n.ref(null),d=n.ref(null),f=n.ref(o.modelValue);n.watch(()=>o.modelValue,x=>{f.value=x},{deep:!0});const u=n.ref([]),g=n.ref(!1),m=n.ref(!1),c=n.ref(null),y=(x,T)=>{f.value=P._.cloneDeep(T)},p=x=>{const T=x.size/1024/1024;if(!(T<a.value)){l("outSize"),v.ElMessage({message:`上传文件大小(${T.toFixed(4)}MB)超出允许最大值(${o.size}MB),请重新选择`,type:"warning",showClose:!0,duration:5e3});const ee=f.value.findIndex(me=>me.uid===x.uid);return f.value.splice(ee,1),!1}return!0},h=()=>!1,b=(x,T)=>{var z,ee;x.status="ready",T!==void 0&&u.value.splice(T,1),(z=s.value)==null||z.handleStart(x.raw),(ee=s.value)==null||ee.submit()},_=(x,T)=>{var $,ce;const z=f.value.length,ee=o.limit-z;let me=0;for(;me<ee&&me<x.length;)($=s.value)==null||$.handleStart(x[me]),(ce=s.value)==null||ce.submit(),me++;v.ElMessage({message:(o==null?void 0:o.limitText)||`最大可上传${o.limit}个文件,已忽略超出文件`,type:"warning",showClose:!0,duration:5e3}),l("exceed",x)},w=(x,T,z)=>{l("success",x,T,z)},S=(x,T,z)=>{u.value.push(T),l("error",x,T,z)},O=x=>{x&&I(x)==="video"||x&&I(x)==="image"?(c.value={...x,url:x[i.url].startsWith("http")?x[i.url]:`${o.loadUrl}${x[i.url]}`},g.value=!0):window.open(o.loadUrl+x[i.url])},N=x=>{P.ikFile.downloadByOnlineUrl(x[i.url],x[i.name])},C=(x,T=!1)=>{var z;(z=s.value)==null||z.abort(x)},E=x=>{var T;x.status!=="success"&&C(x),(T=s.value)==null||T.handleRemove(x),f.value=f.value.filter(z=>z.uid!==x.uid),l("delete",x)},B=(x,T)=>{u.value.splice(T,1)},I=x=>{var ee,me,$,ce,pe;const T=(ee=x==null?void 0:x.response)!=null&&ee.data?W(($=(me=x==null?void 0:x.response)==null?void 0:me.data)==null?void 0:$.suffix):((ce=x.raw)==null?void 0:ce.type)||W(x[i.suffix]),z=((pe=x.raw)==null?void 0:pe.name)||x[i.name];return T!=null&&T.includes("sheet")||T==="excal"?"excal":T!=null&&T.includes("zip")||T==="zip"||T==="application/x-compressed"?"zip":T!=null&&T.includes("image")||T==="image"?"image":T!=null&&T.includes("video")||T==="video"?"video":T!=null&&T.includes("audio")||T==="audio"?"audio":T!=null&&T.includes("pdf")||T==="pdf"?"pdf":T!=null&&T.includes("text")||T==="txt"?"txt":T!=null&&T.includes("word")||T==="word"?"word":z!=null&&z.includes("ppt")||T==="ppt"?"ppt":"unknow"},W=x=>{const T=x==null?void 0:x.toLocaleLowerCase();switch(T!=null&&T.startsWith(".")?T:`.${T}`){case".doc":case".docx":case".docxf":case".docm":case".dot":case".dotm":case".dotx":case".epub":case".fodt":case".htm":case".html":case".mht":case".odt":case".ott":case".rtf":case".txt":case".djvu":case".oxps":case".oform":case".fb2":case".xml":case".xps":return"word";case".csv":case".xls":case".xlsx":case".fods":case".ods":case".ots":case".xlsb":case".xlsm":case".xlt":case".xltm":case".xltx":return"excal";case".fodp":case".odp":case".otp":case".pot":case".potm":case".potx":case".pps":case".ppsm":case".ppsx":case".ppt":case".pptm":case".pptx":return"ppt";case".zip":case".rar":case".7z":case".apz":case".ar":case".bz":case".car":case".dar":case".cpgz":case".f":case".ha":case".hbc":case".hbc2":case".hbe":case".hpk":case".hyp":return"zip";case".png":case".jpg":case".jpeg":case".bmp":case".gif":case".webp":case".psd":case".svg":case".tiff":return"image";case".avi":case".wmv":case".mpeg":case".mp4":case".mpm4v":case".mov":case".asf":case".flv":case".f4v":case".rmvb":case".rm":case".3gp":case".vob":return"video";case"audio":return"audio";case".txt":return"txt";case".pdf":return"pdf";case x:case"":return"unknow"}};return(x,T)=>{var ee,me;const z=n.resolveComponent("el-image-viewer");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(n.unref(v.ElUpload),{"file-list":f.value,"onUpdate:fileList":T[0]||(T[0]=$=>f.value=$),class:n.normalizeClass(["ik-file-upload",{preview:t.preview}]),accept:t.accept,action:t.action,ref_key:"refUpload",ref:s,"on-change":y,"before-upload":p,"before-remove":h,"on-exceed":_,multiple:t.multiple,headers:t.headers,limit:t.limit,"on-success":w,"on-error":S},{trigger:n.withCtx(()=>[x.$slots.trigger?n.renderSlot(x.$slots,"trigger",{key:0},void 0,!0):(n.openBlock(),n.createBlock(n.unref(v.ElButton),{key:1,type:"primary",disabled:f.value.length===t.limit,icon:n.unref(Oc)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(t.title),1)]),_:1},8,["disabled","icon"]))]),file:n.withCtx(({file:$})=>[n.createElementVNode("div",g1,[n.createElementVNode("div",y1,[!x.$slots.fileIcon&&(!t.customIconData[I($)]||!t.customIconData[I($)][t.customIconFields.icon])?(n.openBlock(),n.createBlock(m1,{key:0,type:I($)},null,8,["type"])):!x.$slots.fileIcon&&t.customIconData[I($)]&&t.customIconData[I($)][t.customIconFields.icon]?(n.openBlock(),n.createElementBlock("div",_1,[t.customIconData[I($)][t.customIconFields.type]==="img"?(n.openBlock(),n.createElementBlock("img",{key:0,src:t.customIconData[I($)][t.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,b1)):(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass([t.customIconData[I($)][t.customIconFields.icon],"file-icon-size"])},null,2))])):n.createCommentVNode("v-if",!0),n.createElementVNode("div",k1,[n.renderSlot(x.$slots,"fileIcon",{file:$},void 0,!0)]),n.createElementVNode("div",E1,[n.createElementVNode("p",C1,[n.createTextVNode(n.toDisplayString($[i.name]||$.name)+" ",1),$.percentage&&$.percentage!==100?(n.openBlock(),n.createElementBlock("span",w1,"("+n.toDisplayString($.percentage)+"%)",1)):n.createCommentVNode("v-if",!0)]),$.percentage===100?(n.openBlock(),n.createElementBlock("p",v1,n.toDisplayString(n.unref(ls)($.size/1024/1024))+"MB ",1)):n.createCommentVNode("v-if",!0),$.percentage&&$.percentage!==100?(n.openBlock(),n.createBlock(n.unref(v.ElProgress),{key:1,"text-inside":"",percentage:$.percentage,color:"var(--el-color-primary)","striped-flow":"",striped:"","show-text":!1},null,8,["percentage"])):n.createCommentVNode("v-if",!0)])]),t.preview?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t.preview||$.percentage===100?(n.openBlock(),n.createBlock(n.unref(v.ElIcon),{key:0,title:"预览",class:"primary"},{default:n.withCtx(()=>[n.createVNode(n.unref(Fc),{onClick:ce=>O($)},null,8,["onClick"])]),_:2},1024)):n.createCommentVNode("v-if",!0),n.createVNode(n.unref(v.ElIcon),{title:"下载",class:"primary"},{default:n.withCtx(()=>[n.createVNode(n.unref(Gl),{onClick:ce=>N($)},null,8,["onClick"])]),_:2},1024)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[$.status==="success"?(n.openBlock(),n.createBlock(n.unref(v.ElIcon),{key:0,title:"删除",class:"error"},{default:n.withCtx(()=>[n.createVNode(n.unref(cn),{onClick:ce=>E($)},null,8,["onClick"])]),_:2},1024)):(n.openBlock(),n.createBlock(n.unref(v.ElIcon),{key:1,title:"取消上传"},{default:n.withCtx(()=>[n.createVNode(n.unref(hc),{onClick:ce=>E($)},null,8,["onClick"])]),_:2},1024))],64))])]),default:n.withCtx(()=>{var $;return[!t.preview&&t.tip?(n.openBlock(),n.createBlock(n.unref(v.ElTooltip),{key:0,effect:"dark",content:o.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:n.withCtx(()=>[n.createVNode(n.unref(v.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:n.withCtx(()=>[n.createVNode(n.unref(Nc))]),_:1})]),_:1},8,["content"])):n.createCommentVNode("v-if",!0),($=u.value)!=null&&$.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(u.value,(ce,pe)=>(n.openBlock(),n.createElementBlock("div",{class:"ik-error-flie-list",key:ce.uid},[n.createElementVNode("div",S1,[n.createVNode(n.unref(v.ElIcon),{size:32,class:"info",style:{"vertical-align":"middle"}},{default:n.withCtx(()=>[n.createVNode(n.unref(Hc))]),_:1}),n.createElementVNode("div",A1,[n.createElementVNode("p",x1,n.toDisplayString(ce[i.name]||ce.name),1),n.createElementVNode("p",D1,n.toDisplayString(n.unref(ls)(ce.size/1024/1024))+"MB ",1)])]),n.withDirectives(n.createElementVNode("div",N1,[n.createVNode(n.unref(v.ElIcon),{style:{"vertical-align":"middle"},onClick:Re=>b(ce,pe),title:"重新上传",class:"primary"},{default:n.withCtx(()=>[n.createVNode(n.unref(no))]),_:2},1032,["onClick"]),n.createVNode(n.unref(v.ElIcon),{class:"error",onClick:Re=>B(ce,pe),title:"删除"},{default:n.withCtx(()=>[n.createVNode(n.unref(cn))]),_:2},1032,["onClick"])],512),[[n.vShow,(ce==null?void 0:ce.status)==="fail"]])]))),128)):n.createCommentVNode("v-if",!0)]}),_:3},8,["file-list","class","accept","action","multiple","headers","limit"]),n.createVNode(os,{visible:g.value,"onUpdate:visible":T[1]||(T[1]=$=>g.value=$),file:c.value,fileType:c.value&&I(c.value),defaultFields:i},null,8,["visible","file","fileType"]),(ee=c.value)!=null&&ee.url&&m.value?(n.openBlock(),n.createBlock(z,{key:0,onClose:T[2]||(T[2]=$=>(c.value=null,m.value=!1)),ref_key:"previewImgRef",ref:d,"url-list":[(me=c.value)==null?void 0:me.url]},null,8,["url-list"])):n.createCommentVNode("v-if",!0)],64)}}}),Ck="",wk="",B1=de(X(V1,[["__scopeId","data-v-37fe21f0"]])),T1={},I1={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"},R1=[n.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),n.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),n.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),n.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),n.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),n.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),n.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),n.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 M1(t,e){return n.openBlock(),n.createElementBlock("svg",I1,R1)}const O1=X(T1,[["render",M1]]),rs=t=>(n.pushScopeId("data-v-ea892f53"),t=t(),n.popScopeId(),t),L1={key:1,class:"upload-btn"},P1={class:"tip"},z1={class:"loading-statu"},F1={class:"operate-btn"},$1={key:0},H1={class:"el-upload-list el-upload-list--picture-card",style:{float:"left"}},U1=["onClick"],j1=rs(()=>n.createElementVNode("span",{class:"error"},"上传错误",-1)),W1=rs(()=>n.createElementVNode("p",null,"点击重新上传",-1)),G1=["src"],q1={class:"demo-image__preview"},Y1=n.defineComponent({__name:"index",props:{title:{type:String,default:"上传图片"},loadUrl:{type:String,default:""},action:{type:String,default:""},limit:{type:Number,default:5},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:""},modelValue:{type:Array,default:()=>[]}},emits:["delete","success"],setup(t,{emit:e}){const o=t;n.watch(()=>o.modelValue,C=>{a.value=C.map(E=>{var B;return{...E,__url:(B=E.url)!=null&&B.startsWith("http")?E.url:`${o.loadUrl}${E.url}`}})},{deep:!0});const l=e,r=n.computed(()=>o.size),i=n.ref(null),a=n.ref(o.modelValue.map(C=>{var E;return{...C,__url:(E=C.url)!=null&&E.startsWith("http")?C.url:`${o.loadUrl}${C.url}`}})),s=n.ref([]),d=n.ref(!1),f=n.ref(0),u=n.computed(()=>o.tipText||`最多可上传${o.limit}张图片, 每张图片不能超过${o.size}MB`),g=(C,E)=>{a.value=P._.cloneDeep(E.map(B=>{var I;return{...B,__url:(I=B.url)!=null&&I.startsWith("http")?B.url:`${o.loadUrl}${B.url}`}}))},m=C=>!(!(C.type==="image/jpeg"||C.type==="image/png")||!(C.size/1024/1024<r.value)),c=()=>!1,y=(C,E)=>{var B,I;C.status="ready",E!==void 0&&s.value.splice(E,1),(B=i.value)==null||B.handleStart(C.raw),(I=i.value)==null||I.submit()},p=(C,E)=>{var x,T;const B=a.value.length,I=o.limit-B;let W=0;for(;W<I&&W<C.length;)(x=i.value)==null||x.handleStart(C[W]),(T=i.value)==null||T.submit(),W++},h=(C,E,B)=>{l("success",C,E,B)},b=(C,E,B)=>{s.value.push(E)},_=C=>{d.value=!0,f.value=a.value.findIndex(E=>E.url===C.url)},w=C=>{P.ikFile.downloadByOnlineUrl(C.__url,C.name)},S=C=>{var E;(E=i.value)==null||E.abort(C)},O=C=>{var E;C.status!=="success"&&S(C),(E=i.value)==null||E.handleRemove(C),a.value=a.value.filter(B=>B.uid!==C.uid),l("delete",C)},N=(C,E)=>{s.value.splice(E,1)};return(C,E)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(n.unref(v.ElUpload),{class:n.normalizeClass(["ik-image-upload",{preview:t.preview}]),ref_key:"refUpload",ref:i,"list-type":"picture-card",accept:t.accept,action:t.action,"file-list":a.value,"onUpdate:fileList":E[0]||(E[0]=B=>a.value=B),multiple:t.multiple,limit:t.limit,"on-change":g,"before-upload":m,"before-remove":c,"on-exceed":p,"on-success":h,"on-error":b,drag:""},n.createSlots({trigger:n.withCtx(()=>[C.$slots.trigger?n.renderSlot(C.$slots,"trigger",{key:0},void 0,!0):(n.openBlock(),n.createElementBlock("div",L1,[n.createVNode(n.unref(v.ElIcon),null,{default:n.withCtx(()=>[n.createVNode(n.unref(Yl))]),_:1}),n.createElementVNode("span",null,n.toDisplayString(t.title),1)]))]),file:n.withCtx(({file:B})=>[n.createElementVNode("div",{class:n.normalizeClass(["load-list",{loading:B.status==="uploading"}]),"element-loading-background":"var(--ik-upload-bg)"},[n.withDirectives(n.createElementVNode("div",z1,[n.createVNode(O1),n.createTextVNode(" 上传"+n.toDisplayString(B.percentage)+"% ",1)],512),[[n.vShow,B.status==="uploading"]]),n.createCommentVNode(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),n.createVNode(n.unref(v.ElImage),{style:{width:"100%",height:"100%"},src:B.__url,"zoom-rate":1.2,"initial-index":0,fit:"contain"},null,8,["src"]),n.createElementVNode("span",F1,[n.createElementVNode("span",null,[n.createVNode(n.unref(v.ElIcon),{onClick:I=>_(B)},{default:n.withCtx(()=>[n.createVNode(n.unref(jc))]),_:2},1032,["onClick"])]),n.createElementVNode("span",null,[n.createVNode(n.unref(v.ElIcon),{onClick:I=>w(B)},{default:n.withCtx(()=>[n.createVNode(n.unref(Gl))]),_:2},1032,["onClick"])]),t.preview?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("span",$1,[n.createVNode(n.unref(v.ElIcon),{onClick:I=>O(B)},{default:n.withCtx(()=>[n.createVNode(n.unref(cn))]),_:2},1032,["onClick"])]))])],2)]),default:n.withCtx(()=>[n.createElementVNode("ul",H1,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(s.value,(B,I)=>(n.openBlock(),n.createElementBlock("li",{class:"el-upload-list__item",key:B.uid},[n.createElementVNode("span",null,[n.createVNode(n.unref(v.ElIcon),{onClick:W=>N(B,I)},{default:n.withCtx(()=>[n.createVNode(n.unref(jl))]),_:2},1032,["onClick"])]),n.createElementVNode("div",{class:n.normalizeClass(["load-list",{loading:B.status==="uploading",fail:B.status==="fail"}]),"element-loading-background":"var(--ik-upload-bg)"},[n.withDirectives(n.createElementVNode("div",{class:"loading-statu",onClick:W=>y(B,I)},[n.createVNode(n.unref(v.ElIcon),{size:24},{default:n.withCtx(()=>[n.createVNode(n.unref(no))]),_:1}),j1,W1],8,U1),[[n.vShow,B.status==="fail"]]),n.createElementVNode("img",{src:B.__url,alt:"",style:n.normalizeStyle({"object-fit":t.fit})},null,12,G1)],2)]))),128))])]),_:2},[t.tip?{name:"tip",fn:n.withCtx(()=>[n.createElementVNode("span",P1,n.toDisplayString(u.value),1)]),key:"0"}:void 0]),1032,["class","accept","action","file-list","multiple","limit"]),n.createCommentVNode(" 文件预览 "),n.createElementVNode("div",q1,[d.value?(n.openBlock(),n.createBlock(n.unref(v.ElImageViewer),{key:0,"hide-on-click-modal":"",onClose:E[1]||(E[1]=()=>{d.value=!1}),"url-list":a.value.map(B=>B.__url),"initial-index":f.value},null,8,["url-list","initial-index"])):n.createCommentVNode("v-if",!0)])],64))}}),Ik="",Q1=de(X(Y1,[["__scopeId","data-v-ea892f53"]])),Z1=["src"],X1={name:"IkPrintConfig"},K1=n.defineComponent({...X1,props:{id:{},srcPrefix:{default:""},token:{}},emits:["created"],setup(t,{emit:e}){const o=t,l=e,r=n.computed(()=>!!o.id),i=n.reactive({currentId:o.id,loading:!0,src:""}),a=async()=>{fetch(`${o.srcPrefix??""}/jmreport/save`,{method:"POST",body:JSON.stringify({}),headers:{"Content-Type":"application/json",Authorization:o.token??""}}).then(d=>d.json()).then(({code:d,result:f})=>{if(d===200){const u=f.id;i.currentId=u,i.src=`${o.srcPrefix??""}/jmreport/index/${i.currentId}?token=${o.token}&menuType=printinfo`,l("created",i.currentId)}}).catch(d=>{console.error(d)})},s=()=>{if(!r.value){a();return}i.src=`${o.srcPrefix??""}/jmreport/index/${i.currentId}?token=${o.token}`};return n.onMounted(()=>{s()}),(d,f)=>i.src?(n.openBlock(),n.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:i.src,frameborder:"0"},null,8,Z1)):n.createCommentVNode("v-if",!0)}}),J1=de(K1),e6=["src"],t6={name:"IkPrintView"},n6=n.defineComponent({...t6,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(t,{emit:e}){const o=t,l=e,r=n.computed({get:()=>o.modelValue,set:s=>{l("update:modelValue",s)}}),i=n.reactive({src:"",showIframe:!1}),a=()=>{i.showIframe=!1,i.src=`${o.srcPrefix}/jmreport/view/${o.templateId}?token=${o.token??""}&${o.idKey}=${o.dataId}`,setTimeout(()=>{i.showIframe=!0},300)};return n.watch(()=>r.value,s=>{s&&a()}),n.onMounted(()=>{r.value&&a()}),(s,d)=>{const f=n.resolveComponent("el-dialog");return n.openBlock(),n.createBlock(f,{modelValue:r.value,"onUpdate:modelValue":d[0]||(d[0]=u=>r.value=u),fullscreen:"",title:"预览"},{default:n.withCtx(()=>[n.createElementVNode("div",{style:n.normalizeStyle({width:o.width,height:o.height})},[i.showIframe?(n.openBlock(),n.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:i.src,frameborder:"0"},null,8,e6)):n.createCommentVNode("v-if",!0)],4)]),_:1},8,["modelValue"])}}}),o6=de(n6),l6={class:"ik-full-calendar"},r6=["onClick"],i6={key:0,class:"event-title allday"},a6={key:0,class:"event-title-time"},s6={key:1,class:"event-title no-allday"},c6={class:"event-title-time"},d6={class:"event-title-text"},u6={name:"IkFullCalendar"},f6=n.defineComponent({...u6,props:{options:{default:{}},removable:{type:Boolean,default:!0},modelValue:{default:[]},tooltipFieldName:{default:"remark"}},emits:["added","deleted","update:modelValue","eventClick","deleteClick","dateSelect"],setup(t,{expose:e,emit:o}){const l=t,r=n.computed({get:()=>l.modelValue,set:_=>i("update:modelValue",_)}),i=o,a=n.ref(null),s=_=>{},d=n.ref("dayGridMonth"),f=_=>{i("dateSelect",_)},u=_=>{i("eventClick",_)},g=_=>{i("deleteClick",_)},m=()=>({locale:Xl,plugins:[Pa,Ja,Ga],headerToolbar:{left:"dayGridMonth,timeGridWeek,timeGridDay prev,today,next",center:"title",right:""},firstDay:1,initialView:"dayGridMonth",weekends:!0,editable:!0,selectable:!0,selectMirror:!0,dateClick:s,select:f,...l.options,events:r.value}),c=n.reactive({timeType:"month",options:m()}),y=n.ref(null),p=()=>{var _;c.options=m(),(_=a.value)==null||_.buildOptions(c.options)};e({...{prev:()=>{var _;(_=y.value)==null||_.prev()},next:()=>{var _;(_=y.value)==null||_.next()},today:()=>{var _;(_=y.value)==null||_.today()},changeView:_=>{var w;(w=y.value)==null||w.changeView(_),d.value=_},getDate:()=>{var _;return(_=y.value)==null?void 0:_.getDate()},getView:()=>{var _;return(_=y.value)==null?void 0:_.view},unselect:()=>{var _;return(_=y.value)==null?void 0:_.unselect()}}}),n.watch(()=>r.value,()=>{p()});const b=()=>{var _;y.value=(_=a.value)==null?void 0:_.getApi()};return n.onMounted(()=>{b()}),(_,w)=>{const S=n.resolveComponent("el-tooltip"),O=n.resolveComponent("el-icon");return n.openBlock(),n.createElementBlock("div",l6,[n.createVNode(n.unref(Da),{ref_key:"_ref",ref:a,options:c.options,style:{height:"100%"}},{eventContent:n.withCtx(N=>[n.createElementVNode("div",{class:"title-line",onClick:C=>u(N)},[n.createVNode(S,null,{content:n.withCtx(()=>{var C,E;return[n.createCommentVNode(" {{arg}} "),n.createTextVNode(" "+n.toDisplayString((E=(C=N.event)==null?void 0:C.extendedProps)==null?void 0:E[l.tooltipFieldName]),1)]}),default:n.withCtx(()=>[N.event.allDay?(n.openBlock(),n.createElementBlock("span",i6,[d.value==="dayGridMonth"?(n.openBlock(),n.createElementBlock("span",a6,n.toDisplayString("(全天)"))):n.createCommentVNode("v-if",!0),n.createElementVNode("span",null,n.toDisplayString(N.event.title),1)])):(n.openBlock(),n.createElementBlock("span",s6,[n.createElementVNode("span",c6,n.toDisplayString(n.unref(P.ikDate).toDateTime(N.event.startStr,"HH:mm")),1),n.createElementVNode("span",d6,n.toDisplayString(N.event.title),1)]))]),_:2},1024),l.removable?(n.openBlock(),n.createBlock(O,{key:0,size:16,onClick:n.withModifiers(C=>g(N),["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(Wl))]),_:2},1032,["onClick"])):n.createCommentVNode("v-if",!0)],8,r6)]),_:1},8,["options"])])}}}),Mk="",p6=X(f6,[["__scopeId","data-v-421b620c"]]);class h6{constructor(){wt(this,"id",new Date().getTime());wt(this,"title","");wt(this,"start","");wt(this,"end","");wt(this,"allDay",!1);wt(this,"extendedProps",{})}}const is=de(p6),Zt=/^[a-z0-9]+(-[a-z0-9]+)*$/,Gn=(t,e,o,l="")=>{const r=t.split(":");if(t.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;l=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const s=r.pop(),d=r.pop(),f={provider:r.length>0?r[0]:l,prefix:d,name:s};return e&&!qn(f)?null:f}const i=r[0],a=i.split("-");if(a.length>1){const s={provider:l,prefix:a.shift(),name:a.join("-")};return e&&!qn(s)?null:s}if(o&&l===""){const s={provider:l,prefix:"",name:i};return e&&!qn(s,o)?null:s}return null},qn=(t,e)=>t?!!((t.provider===""||t.provider.match(Zt))&&(e&&t.prefix===""||t.prefix.match(Zt))&&t.name.match(Zt)):!1,as=Object.freeze({left:0,top:0,width:16,height:16}),Yn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Qn=Object.freeze({...as,...Yn}),yl=Object.freeze({...Qn,body:"",hidden:!1});function m6(t,e){const o={};!t.hFlip!=!e.hFlip&&(o.hFlip=!0),!t.vFlip!=!e.vFlip&&(o.vFlip=!0);const l=((t.rotate||0)+(e.rotate||0))%4;return l&&(o.rotate=l),o}function ss(t,e){const o=m6(t,e);for(const l in yl)l in Yn?l in t&&!(l in o)&&(o[l]=Yn[l]):l in e?o[l]=e[l]:l in t&&(o[l]=t[l]);return o}function g6(t,e){const o=t.icons,l=t.aliases||Object.create(null),r=Object.create(null);function i(a){if(o[a])return r[a]=[];if(!(a in r)){r[a]=null;const s=l[a]&&l[a].parent,d=s&&i(s);d&&(r[a]=[s].concat(d))}return r[a]}return(e||Object.keys(o).concat(Object.keys(l))).forEach(i),r}function y6(t,e,o){const l=t.icons,r=t.aliases||Object.create(null);let i={};function a(s){i=ss(l[s]||r[s],i)}return a(e),o.forEach(a),ss(t,i)}function cs(t,e){const o=[];if(typeof t!="object"||typeof t.icons!="object")return o;t.not_found instanceof Array&&t.not_found.forEach(r=>{e(r,null),o.push(r)});const l=g6(t);for(const r in l){const i=l[r];i&&(e(r,y6(t,r,i)),o.push(r))}return o}const _6={provider:"",aliases:{},not_found:{},...as};function _l(t,e){for(const o in e)if(o in t&&typeof t[o]!=typeof e[o])return!1;return!0}function ds(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!_l(t,_6))return null;const o=e.icons;for(const r in o){const i=o[r];if(!r.match(Zt)||typeof i.body!="string"||!_l(i,yl))return null}const l=e.aliases||Object.create(null);for(const r in l){const i=l[r],a=i.parent;if(!r.match(Zt)||typeof a!="string"||!o[a]&&!l[a]||!_l(i,yl))return null}return e}const us=Object.create(null);function b6(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function kt(t,e){const o=us[t]||(us[t]=Object.create(null));return o[e]||(o[e]=b6(t,e))}function bl(t,e){return ds(e)?cs(e,(o,l)=>{l?t.icons[o]=l:t.missing.add(o)}):[]}function k6(t,e,o){try{if(typeof o.body=="string")return t.icons[e]={...o},!0}catch{}return!1}let Xt=!1;function fs(t){return typeof t=="boolean"&&(Xt=t),Xt}function E6(t){const e=typeof t=="string"?Gn(t,!0,Xt):t;if(e){const o=kt(e.provider,e.prefix),l=e.name;return o.icons[l]||(o.missing.has(l)?null:void 0)}}function C6(t,e){const o=Gn(t,!0,Xt);if(!o)return!1;const l=kt(o.provider,o.prefix);return k6(l,o.name,e)}function w6(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),Xt&&!e&&!t.prefix){let r=!1;return ds(t)&&(t.prefix="",cs(t,(i,a)=>{a&&C6(i,a)&&(r=!0)})),r}const o=t.prefix;if(!qn({provider:e,prefix:o,name:"a"}))return!1;const l=kt(e,o);return!!bl(l,t)}const ps=Object.freeze({width:null,height:null}),hs=Object.freeze({...ps,...Yn}),v6=/(-?[0-9.]*[0-9]+[0-9.]*)/g,S6=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ms(t,e,o){if(e===1)return t;if(o=o||100,typeof t=="number")return Math.ceil(t*e*o)/o;if(typeof t!="string")return t;const l=t.split(v6);if(l===null||!l.length)return t;const r=[];let i=l.shift(),a=S6.test(i);for(;;){if(a){const s=parseFloat(i);isNaN(s)?r.push(i):r.push(Math.ceil(s*e*o)/o)}else r.push(i);if(i=l.shift(),i===void 0)return r.join("");a=!a}}const A6=t=>t==="unset"||t==="undefined"||t==="none";function x6(t,e){const o={...Qn,...t},l={...hs,...e},r={left:o.left,top:o.top,width:o.width,height:o.height};let i=o.body;[o,l].forEach(y=>{const p=[],h=y.hFlip,b=y.vFlip;let _=y.rotate;h?b?_+=2:(p.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),p.push("scale(-1 1)"),r.top=r.left=0):b&&(p.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),p.push("scale(1 -1)"),r.top=r.left=0);let w;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:w=r.height/2+r.top,p.unshift("rotate(90 "+w.toString()+" "+w.toString()+")");break;case 2:p.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:w=r.width/2+r.left,p.unshift("rotate(-90 "+w.toString()+" "+w.toString()+")");break}_%2===1&&(r.left!==r.top&&(w=r.left,r.left=r.top,r.top=w),r.width!==r.height&&(w=r.width,r.width=r.height,r.height=w)),p.length&&(i='<g transform="'+p.join(" ")+'">'+i+"</g>")});const a=l.width,s=l.height,d=r.width,f=r.height;let u,g;a===null?(g=s===null?"1em":s==="auto"?f:s,u=ms(g,d/f)):(u=a==="auto"?d:a,g=s===null?ms(u,f/d):s==="auto"?f:s);const m={},c=(y,p)=>{A6(p)||(m[y]=p.toString())};return c("width",u),c("height",g),m.viewBox=r.left.toString()+" "+r.top.toString()+" "+d.toString()+" "+f.toString(),{attributes:m,body:i}}const D6=/\sid="(\S+)"/g,N6="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let V6=0;function B6(t,e=N6){const o=[];let l;for(;l=D6.exec(t);)o.push(l[1]);if(!o.length)return t;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(i=>{const a=typeof e=="function"?e(i):e+(V6++).toString(),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+r+"$3")}),t=t.replace(new RegExp(r,"g"),""),t}const kl=Object.create(null);function T6(t,e){kl[t]=e}function El(t){return kl[t]||kl[""]}function Cl(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const wl=Object.create(null),Kt=["https://api.simplesvg.com","https://api.unisvg.com"],Zn=[];for(;Kt.length>0;)Kt.length===1||Math.random()>.5?Zn.push(Kt.shift()):Zn.push(Kt.pop());wl[""]=Cl({resources:["https://api.iconify.design"].concat(Zn)});function I6(t,e){const o=Cl(e);return o===null?!1:(wl[t]=o,!0)}function vl(t){return wl[t]}let gs=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function R6(t,e){const o=vl(t);if(!o)return 0;let l;if(!o.maxURL)l=0;else{let r=0;o.resources.forEach(a=>{r=Math.max(r,a.length)});const i=e+".json?icons=";l=o.maxURL-r-o.path.length-i.length}return l}function M6(t){return t===404}const O6=(t,e,o)=>{const l=[],r=R6(t,e),i="icons";let a={type:i,provider:t,prefix:e,icons:[]},s=0;return o.forEach((d,f)=>{s+=d.length+1,s>=r&&f>0&&(l.push(a),a={type:i,provider:t,prefix:e,icons:[]},s=d.length),a.icons.push(d)}),l.push(a),l};function L6(t){if(typeof t=="string"){const e=vl(t);if(e)return e.path}return"/"}const P6={prepare:O6,send:(t,e,o)=>{if(!gs){o("abort",424);return}let l=L6(e.provider);switch(e.type){case"icons":{const i=e.prefix,s=e.icons.join(","),d=new URLSearchParams({icons:s});l+=i+".json?"+d.toString();break}case"custom":{const i=e.uri;l+=i.slice(0,1)==="/"?i.slice(1):i;break}default:o("abort",400);return}let r=503;gs(t+l).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{o(M6(a)?"abort":"next",a)});return}return r=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?o("abort",i):o("next",r)});return}setTimeout(()=>{o("success",i)})}).catch(()=>{o("next",r)})}};function z6(t){const e={loaded:[],missing:[],pending:[]},o=Object.create(null);t.sort((r,i)=>r.provider!==i.provider?r.provider.localeCompare(i.provider):r.prefix!==i.prefix?r.prefix.localeCompare(i.prefix):r.name.localeCompare(i.name));let l={provider:"",prefix:"",name:""};return t.forEach(r=>{if(l.name===r.name&&l.prefix===r.prefix&&l.provider===r.provider)return;l=r;const i=r.provider,a=r.prefix,s=r.name,d=o[i]||(o[i]=Object.create(null)),f=d[a]||(d[a]=kt(i,a));let u;s in f.icons?u=e.loaded:a===""||f.missing.has(s)?u=e.missing:u=e.pending;const g={provider:i,prefix:a,name:s};u.push(g)}),e}function ys(t,e){t.forEach(o=>{const l=o.loaderCallbacks;l&&(o.loaderCallbacks=l.filter(r=>r.id!==e))})}function F6(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let o=!1;const l=t.provider,r=t.prefix;e.forEach(i=>{const a=i.icons,s=a.pending.length;a.pending=a.pending.filter(d=>{if(d.prefix!==r)return!0;const f=d.name;if(t.icons[f])a.loaded.push({provider:l,prefix:r,name:f});else if(t.missing.has(f))a.missing.push({provider:l,prefix:r,name:f});else return o=!0,!0;return!1}),a.pending.length!==s&&(o||ys([t],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let $6=0;function H6(t,e,o){const l=$6++,r=ys.bind(null,o,l);if(!e.pending.length)return r;const i={id:l,icons:e,callback:t,abort:r};return o.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),r}function U6(t,e=!0,o=!1){const l=[];return t.forEach(r=>{const i=typeof r=="string"?Gn(r,e,o):r;i&&l.push(i)}),l}var j6={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function W6(t,e,o,l){const r=t.resources.length,i=t.random?Math.floor(Math.random()*r):t.index;let a;if(t.random){let N=t.resources.slice(0);for(a=[];N.length>1;){const C=Math.floor(Math.random()*N.length);a.push(N[C]),N=N.slice(0,C).concat(N.slice(C+1))}a=a.concat(N)}else a=t.resources.slice(i).concat(t.resources.slice(0,i));const s=Date.now();let d="pending",f=0,u,g=null,m=[],c=[];typeof l=="function"&&c.push(l);function y(){g&&(clearTimeout(g),g=null)}function p(){d==="pending"&&(d="aborted"),y(),m.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),m=[]}function h(N,C){C&&(c=[]),typeof N=="function"&&c.push(N)}function b(){return{startTime:s,payload:e,status:d,queriesSent:f,queriesPending:m.length,subscribe:h,abort:p}}function _(){d="failed",c.forEach(N=>{N(void 0,u)})}function w(){m.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),m=[]}function S(N,C,E){const B=C!=="success";switch(m=m.filter(I=>I!==N),d){case"pending":break;case"failed":if(B||!t.dataAfterTimeout)return;break;default:return}if(C==="abort"){u=E,_();return}if(B){u=E,m.length||(a.length?O():_());return}if(y(),w(),!t.random){const I=t.resources.indexOf(N.resource);I!==-1&&I!==t.index&&(t.index=I)}d="completed",c.forEach(I=>{I(E)})}function O(){if(d!=="pending")return;y();const N=a.shift();if(N===void 0){if(m.length){g=setTimeout(()=>{y(),d==="pending"&&(w(),_())},t.timeout);return}_();return}const C={status:"pending",resource:N,callback:(E,B)=>{S(C,E,B)}};m.push(C),f++,g=setTimeout(O,t.rotate),o(N,e,C.callback)}return setTimeout(O),b}function _s(t){const e={...j6,...t};let o=[];function l(){o=o.filter(s=>s().status==="pending")}function r(s,d,f){const u=W6(e,s,d,(g,m)=>{l(),f&&f(g,m)});return o.push(u),u}function i(s){return o.find(d=>s(d))||null}return{query:r,find:i,setIndex:s=>{e.index=s},getIndex:()=>e.index,cleanup:l}}function bs(){}const Sl=Object.create(null);function G6(t){if(!Sl[t]){const e=vl(t);if(!e)return;const o=_s(e),l={config:e,redundancy:o};Sl[t]=l}return Sl[t]}function q6(t,e,o){let l,r;if(typeof t=="string"){const i=El(t);if(!i)return o(void 0,424),bs;r=i.send;const a=G6(t);a&&(l=a.redundancy)}else{const i=Cl(t);if(i){l=_s(i);const a=t.resources?t.resources[0]:"",s=El(a);s&&(r=s.send)}}return!l||!r?(o(void 0,424),bs):l.query(e,r,o)().abort}const ks="iconify2",Jt="iconify",Es=Jt+"-count",Cs=Jt+"-version",ws=36e5,Y6=168;function Al(t,e){try{return t.getItem(e)}catch{}}function xl(t,e,o){try{return t.setItem(e,o),!0}catch{}}function vs(t,e){try{t.removeItem(e)}catch{}}function Dl(t,e){return xl(t,Es,e.toString())}function Nl(t){return parseInt(Al(t,Es))||0}const Xn={local:!0,session:!0},Ss={local:new Set,session:new Set};let Vl=!1;function Q6(t){Vl=t}let Kn=typeof window>"u"?{}:window;function As(t){const e=t+"Storage";try{if(Kn&&Kn[e]&&typeof Kn[e].length=="number")return Kn[e]}catch{}Xn[t]=!1}function xs(t,e){const o=As(t);if(!o)return;const l=Al(o,Cs);if(l!==ks){if(l){const s=Nl(o);for(let d=0;d<s;d++)vs(o,Jt+d.toString())}xl(o,Cs,ks),Dl(o,0);return}const r=Math.floor(Date.now()/ws)-Y6,i=s=>{const d=Jt+s.toString(),f=Al(o,d);if(typeof f=="string"){try{const u=JSON.parse(f);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&e(u,s))return!0}catch{}vs(o,d)}};let a=Nl(o);for(let s=a-1;s>=0;s--)i(s)||(s===a-1?(a--,Dl(o,a)):Ss[t].add(s))}function Ds(){if(!Vl){Q6(!0);for(const t in Xn)xs(t,e=>{const o=e.data,l=e.provider,r=o.prefix,i=kt(l,r);if(!bl(i,o).length)return!1;const a=o.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function Z6(t,e){const o=t.lastModifiedCached;if(o&&o>=e)return o===e;if(t.lastModifiedCached=e,o)for(const l in Xn)xs(l,r=>{const i=r.data;return r.provider!==t.provider||i.prefix!==t.prefix||i.lastModified===e});return!0}function X6(t,e){Vl||Ds();function o(l){let r;if(!Xn[l]||!(r=As(l)))return;const i=Ss[l];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=Nl(r),!Dl(r,a+1))return;const s={cached:Math.floor(Date.now()/ws),provider:t.provider,data:e};return xl(r,Jt+a.toString(),JSON.stringify(s))}e.lastModified&&!Z6(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),o("local")||o("session"))}function Ns(){}function K6(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,F6(t)}))}function J6(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:o,prefix:l}=t,r=t.iconsToLoad;delete t.iconsToLoad;let i;if(!r||!(i=El(o)))return;i.prepare(o,l,r).forEach(s=>{q6(o,s,d=>{if(typeof d!="object")s.icons.forEach(f=>{t.missing.add(f)});else try{const f=bl(t,d);if(!f.length)return;const u=t.pendingIcons;u&&f.forEach(g=>{u.delete(g)}),X6(t,d)}catch(f){console.error(f)}K6(t)})})}))}const ey=(t,e)=>{const o=U6(t,!0,fs()),l=z6(o);if(!l.pending.length){let d=!0;return e&&setTimeout(()=>{d&&e(l.loaded,l.missing,l.pending,Ns)}),()=>{d=!1}}const r=Object.create(null),i=[];let a,s;return l.pending.forEach(d=>{const{provider:f,prefix:u}=d;if(u===s&&f===a)return;a=f,s=u,i.push(kt(f,u));const g=r[f]||(r[f]=Object.create(null));g[u]||(g[u]=[])}),l.pending.forEach(d=>{const{provider:f,prefix:u,name:g}=d,m=kt(f,u),c=m.pendingIcons||(m.pendingIcons=new Set);c.has(g)||(c.add(g),r[f][u].push(g))}),i.forEach(d=>{const{provider:f,prefix:u}=d;r[f][u].length&&J6(d,r[f][u])}),e?H6(e,l,i):Ns};function ty(t,e){const o={...t};for(const l in e){const r=e[l],i=typeof r;l in ps?(r===null||r&&(i==="string"||i==="number"))&&(o[l]=r):i===typeof o[l]&&(o[l]=l==="rotate"?r%4:r)}return o}const ny=/[\s,]+/;function oy(t,e){e.split(ny).forEach(o=>{switch(o.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function ly(t,e=0){const o=t.replace(/^-?[0-9.]*/,"");function l(r){for(;r<0;)r+=4;return r%4}if(o===""){const r=parseInt(t);return isNaN(r)?0:l(r)}else if(o!==t){let r=0;switch(o){case"%":r=25;break;case"deg":r=90}if(r){let i=parseFloat(t.slice(0,t.length-o.length));return isNaN(i)?0:(i=i/r,i%1===0?l(i):0)}}return e}function ry(t,e){let o=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const l in e)o+=" "+l+'="'+e[l]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+t+"</svg>"}function iy(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ay(t){return"data:image/svg+xml,"+iy(t)}function sy(t){return'url("'+ay(t)+'")'}const Vs={...hs,inline:!1},cy={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},dy={display:"inline-block"},Bl={backgroundColor:"currentColor"},Bs={backgroundColor:"transparent"},Ts={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Is={webkitMask:Bl,mask:Bl,background:Bs};for(const t in Is){const e=Is[t];for(const o in Ts)e[t+o]=Ts[o]}const Jn={};["horizontal","vertical"].forEach(t=>{const e=t.slice(0,1)+"Flip";Jn[t+"-flip"]=e,Jn[t.slice(0,1)+"-flip"]=e,Jn[t+"Flip"]=e});function Rs(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const Ms=(t,e)=>{const o=ty(Vs,e),l={...cy},r=e.mode||"svg",i={},a=e.style,s=typeof a=="object"&&!(a instanceof Array)?a:{};for(let p in e){const h=e[p];if(h!==void 0)switch(p){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":o[p]=h===!0||h==="true"||h===1;break;case"flip":typeof h=="string"&&oy(o,h);break;case"color":i.color=h;break;case"rotate":typeof h=="string"?o[p]=ly(h):typeof h=="number"&&(o[p]=h);break;case"ariaHidden":case"aria-hidden":h!==!0&&h!=="true"&&delete l["aria-hidden"];break;default:{const b=Jn[p];b?(h===!0||h==="true"||h===1)&&(o[b]=!0):Vs[p]===void 0&&(l[p]=h)}}}const d=x6(t,o),f=d.attributes;if(o.inline&&(i.verticalAlign="-0.125em"),r==="svg"){l.style={...i,...s},Object.assign(l,f);let p=0,h=e.id;return typeof h=="string"&&(h=h.replace(/-/g,"_")),l.innerHTML=B6(d.body,h?()=>h+"ID"+p++:"iconifyVue"),n.h("svg",l)}const{body:u,width:g,height:m}=t,c=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),y=ry(u,{...f,width:g+"",height:m+""});return l.style={...i,"--svg":sy(y),width:Rs(f.width),height:Rs(f.height),...dy,...c?Bl:Bs,...s},n.h("span",l)};if(fs(!0),T6("",P6),typeof document<"u"&&typeof window<"u"){Ds();const t=window;if(t.IconifyPreload!==void 0){const e=t.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(l=>{try{(typeof l!="object"||l===null||l instanceof Array||typeof l.icons!="object"||typeof l.prefix!="string"||!w6(l))&&console.error(o)}catch{console.error(o)}})}if(t.IconifyProviders!==void 0){const e=t.IconifyProviders;if(typeof e=="object"&&e!==null)for(let o in e){const l="IconifyProviders["+o+"] is invalid.";try{const r=e[o];if(typeof r!="object"||!r||r.resources===void 0)continue;I6(o,r)||console.error(l)}catch{console.error(l)}}}}const uy={...Qn,body:""},Os=n.defineComponent({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,e){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let o;if(typeof t!="string"||(o=Gn(t,!1,!0))===null)return this.abortLoading(),null;const l=E6(o);if(!l)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",l!==null&&(this._loadingIcon={name:t,abort:ey([o],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,e&&e(t));const r=["iconify"];return o.prefix!==""&&r.push("iconify--"+o.prefix),o.provider!==""&&r.push("iconify--"+o.provider),{data:l,classes:r}}},render(){this.counter;const t=this.$attrs,e=this.iconMounted?this.getIcon(t.icon,t.onLoad):null;if(!e)return Ms(uy,t);let o=t;return e.classes&&(o={...t,class:(typeof t.class=="string"?t.class+" ":"")+e.classes.join(" ")}),Ms({...Qn,...e.data},o)}}),fy={key:1,class:"basicHeight basicWidth","aria-hidden":"true"},py=["xlink:href"],hy=["src"],my={key:1,class:"basicHeight basicWidth","aria-hidden":"true"},gy=["xlink:href"],yy=["src"],_y=n.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},size:{default:""},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"0"},warning:{type:Boolean},notip:{type:Boolean,default:!1},title:{}},setup(t){const e=t,o=n.computed(()=>{var i;return/^http?:\/\//.test(e.name)?"img":/i-[^:]+:[^:]+/.test(e.name)?"unocss":(i=e.name)!=null&&i.includes(":")?"iconify":"svg"}),l=n.computed(()=>{const i=[];if(e.flip)switch(e.flip){case"horizontal":i.push("rotateY(180deg)");break;case"vertical":i.push("rotateX(180deg)");break;case"both":i.push("rotateX(180deg)"),i.push("rotateY(180deg)");break}return e.rotate&&i.push(`rotate(${e.rotate%360}deg)`),{...e.color&&{color:e.color},...e.size&&{fontSize:typeof e.size=="number"?`${e.size}px`:e.size},...i.length&&{transform:i.join(" ")},padding:e.padding}}),r=n.computed(()=>document.body.getAttribute("data-theme")==="dark");return(i,a)=>{const s=n.resolveComponent("el-tooltip");return i.notip||!i.title?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["ik-svg-icon ik-icon relative basicHeight basicWidth flex-inline items-center justify-center fill-current leading-[1em] transition",{[i.name]:o.value==="unocss","show-bg":i.showBg||i.bg,default:i.size==="default",small:i.size==="small",big:i.size==="big",warning:i.warning}]),style:n.normalizeStyle(l.value)},[o.value==="iconify"?(n.openBlock(),n.createBlock(n.unref(Os),{key:0,icon:i.name},null,8,["icon"])):o.value==="svg"?(n.openBlock(),n.createElementBlock("svg",fy,[n.createElementVNode("use",{"xlink:href":`#${i.name}`},null,8,py)])):o.value==="img"?(n.openBlock(),n.createElementBlock("img",{key:2,src:i.name,class:"basicHeight basicWidth"},null,8,hy)):n.createCommentVNode("v-if",!0)],6)):(n.openBlock(),n.createBlock(s,{key:1,effect:r.value?"dark":"light",content:i.title},{default:n.withCtx(()=>[n.createElementVNode("i",n.mergeProps({class:["ik-svg-icon ik-icon relative basicHeight basicWidth flex-inline items-center justify-center fill-current leading-[1em] transition",{[i.name]:o.value==="unocss","show-bg":i.showBg||i.bg,default:i.size==="default",small:i.size==="small",big:i.size==="big",warning:i.warning}],style:l.value},i.$attrs),[o.value==="iconify"?(n.openBlock(),n.createBlock(n.unref(Os),{key:0,icon:i.name},null,8,["icon"])):o.value==="svg"?(n.openBlock(),n.createElementBlock("svg",my,[n.createElementVNode("use",{"xlink:href":`#${i.name}`},null,8,gy)])):o.value==="img"?(n.openBlock(),n.createElementBlock("img",{key:2,src:i.name,class:"basicHeight basicWidth"},null,8,yy)):n.createCommentVNode("v-if",!0)],16)]),_:1},8,["effect","content"]))}}}),Pk="",_e=de(X(_y,[["__scopeId","data-v-1957ff53"]])),Tl=t=>(n.pushScopeId("data-v-600ed17b"),t=t(),n.popScopeId(),t),by={class:"ik-schedule"},ky={class:"ik-schedule__left"},Ey={class:"ik-schedule__header"},Cy={class:"ik-schedule__title"},wy=Tl(()=>n.createElementVNode("div",{class:"ik-schedule__header-right"},null,-1)),vy={class:"ik-schedule__body"},Sy={style:{"font-size":"18px"}},Ay={key:0},xy={style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},Dy={key:0,style:{"margin-left":"2%"}},Ny=Tl(()=>n.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),Vy={key:1},By=Tl(()=>n.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),Ty={class:"dialog-footer"},Iy={name:"IkSchedule"},Ry=n.defineComponent({...Iy,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(t,{expose:e,emit:o}){var C;const l=t,r=o,i=!!n.useSlots().form,a=n.computed({get:()=>l.modelValue,set:E=>{r("update:modelValue",E)}}),s=n.computed(()=>({...l.options,headerToolbar:!1})),d=n.reactive({currentView:(C=l.options)==null?void 0:C.initialView,viewTitle:"",rightLabel:"今日",timeType:"month",currentDate:null}),f=n.ref(null),u=E=>{var B;(B=f.value)==null||B.changeView(E),d.currentView=E,g()},g=()=>{var B;const E=(B=f.value)==null?void 0:B.getView();d.viewTitle=E==null?void 0:E.title},m=()=>{var E;(E=f.value)==null||E.prev(),g()},c=()=>{var E;(E=f.value)==null||E.next(),g()},y=()=>{var E;(E=f.value)==null||E.today(),g()},p=E=>d.currentView===E,h=n.ref(null),b={createDefaultForm:()=>({title:"",allDay:!1,type:1,startDate:"",endDate:"",startTime:"",endTime:"",location:"",remark:""}),close:()=>{w.value=!1},customSubmit:E=>{var I,W;let B={...E,id:void 0,allDay:_.form.allDay,start:(I=_.selectInfo)==null?void 0:I.startStr,end:(W=_.selectInfo)==null?void 0:W.endStr};b.operation(B),b.close()},operation:E=>{var B;_.operation==="add"?r("submitAdd",E):(E.id=(B=_.editEvent)==null?void 0:B.id,r("submitUpdate",E))},submit:async()=>{var B,I;if(i){r("submit");return}if(!_.form.title){v.ElMessage.info("标题不能为空");return}if(!_.form.allDay&&(!_.form.startTime||!_.form.endTime)){v.ElMessage.info("时间不能为空");return}let E={id:void 0,title:_.form.title,allDay:_.form.allDay,start:(B=_.selectInfo)==null?void 0:B.startStr,end:(I=_.selectInfo)==null?void 0:I.endStr,extendedProps:{..._.form}};if(E.allDay)E.start=P.ikDate.toDate(_.form.startDate),E.end=P.ikDate.toDate(_.form.endDate);else{const W=P.ikDate.toDate(_.form.startDate),x=P.ikDate.toDateTime(_.form.startTime).substring(10),T=P.ikDate.toDateTime(_.form.endTime).substring(10);E.start=`${W}${x}`,E.end=`${W}${T}`,E.extendedProps.startTime=E.start,E.extendedProps.endTime=E.end}b.operation(E),b.close()},reset:()=>{var E;_.form=b.createDefaultForm(),(E=h.value)==null||E.clearValidate()},edit:()=>{_.editable=!0,_.title="编辑日程"},cancelEdit:()=>{_.editable=!1,_.title="日程信息"},del:()=>{N(_.clickInfo)}},_=n.reactive({operation:"update",selectInfo:{},editEvent:void 0,title:"",visible:!1,allDay:!1,form:b.createDefaultForm(),editable:!1,clickInfo:null}),w=n.computed({get:()=>_.visible,set:E=>{_.visible=E}}),S=E=>{var B;if(_.form.allDay=E.allDay,_.selectInfo=E,b.reset(),E.view.type=="dayGridMonth"){let I=E.end.getTime()-864e5;d.timeType="month",_.form.startDate=P.ikDate.toYMD(E.start),_.form.endDate=P.ikDate.toYMD(new Date(I)),_.form.allDay=!0}else E.view.type=="timeGridWeek"?d.timeType="week":E.view.type=="timeGridDay"&&(d.timeType="day"),_.form.startDate=P.ikDate.toYMD(E.start),_.form.endDate=P.ikDate.toYMD(E.start),_.form.startTime=P.ikDate.toDateTime(E.start),_.form.endTime=P.ikDate.toDateTime(E.end);(B=f.value)==null||B.unselect(),n.nextTick(()=>{_.title="新建日程",_.operation="add",_.editable=!0,w.value=!0,r("editOpen",JSON.parse(JSON.stringify(_)))})},O=E=>{_.title="日程信息",_.operation="update",_.clickInfo=E,_.editEvent=E.event;debugger;_.editEvent.allDay?(_.form.startDate=_.editEvent.startStr,_.form.endDate=_.editEvent.startStr):(_.form.startDate=_.editEvent.startStr,_.form.startTime=_.editEvent.start,_.form.endTime=_.editEvent.end),_.form.title=_.editEvent.title,_.form.allDay=_.editEvent.allDay,rc.copyValue(_.form,_.editEvent.extendedProps),b.cancelEdit(),w.value=!0,r("editOpen",JSON.parse(JSON.stringify(_)))},N=E=>{v.ElMessageBox.confirm(`你确定删除事件 ${E.event.title} ?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{b.close(),r("submitDelete",E.event.id)})};return e({customSubmit:E=>b.customSubmit(E)}),n.onMounted(()=>{g()}),(E,B)=>{const I=n.resolveComponent("el-button"),W=n.resolveComponent("el-button-group"),x=n.resolveComponent("el-icon"),T=n.resolveComponent("el-space"),z=n.resolveComponent("el-input"),ee=n.resolveComponent("el-form-item"),me=n.resolveComponent("el-date-picker"),$=n.resolveComponent("el-time-picker"),ce=n.resolveComponent("el-checkbox"),pe=n.resolveComponent("el-form"),Re=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",by,[n.createElementVNode("div",ky,[n.createElementVNode("div",Ey,[n.createVNode(T,{style:{"flex-shrink":"0"},size:24},{default:n.withCtx(()=>[n.createVNode(W,null,{default:n.withCtx(()=>[n.createVNode(I,{onClick:B[0]||(B[0]=ie=>u("dayGridMonth")),type:p("dayGridMonth")?"primary":""},{default:n.withCtx(()=>[n.createTextVNode("月")]),_:1},8,["type"]),n.createVNode(I,{onClick:B[1]||(B[1]=ie=>u("timeGridWeek")),type:p("timeGridWeek")?"primary":""},{default:n.withCtx(()=>[n.createTextVNode("周")]),_:1},8,["type"]),n.createVNode(I,{onClick:B[2]||(B[2]=ie=>u("timeGridDay")),type:p("timeGridDay")?"primary":""},{default:n.withCtx(()=>[n.createTextVNode("日")]),_:1},8,["type"])]),_:1}),n.createElementVNode("span",Cy,n.toDisplayString(d.viewTitle),1),n.createVNode(W,{style:{"flex-shrink":"0"}},{default:n.withCtx(()=>[n.createVNode(I,{onClick:m},{default:n.withCtx(()=>[n.createVNode(x,null,{default:n.withCtx(()=>[n.createVNode(n.unref(Fl))]),_:1})]),_:1}),n.createVNode(I,{onClick:y},{default:n.withCtx(()=>[n.createTextVNode("今天")]),_:1}),n.createVNode(I,{onClick:c},{default:n.withCtx(()=>[n.createVNode(x,null,{default:n.withCtx(()=>[n.createVNode(n.unref($l))]),_:1})]),_:1})]),_:1})]),_:1}),wy]),n.createElementVNode("div",vy,[n.createVNode(n.unref(is),{removable:E.removable,onDateSelect:S,onDeleteClick:N,onEventClick:O,ref_key:"_refCalendar",ref:f,options:s.value,modelValue:a.value,"onUpdate:modelValue":B[3]||(B[3]=ie=>a.value=ie)},null,8,["removable","options","modelValue"])])]),n.createCommentVNode(" 新建/修改对话框 "),n.createVNode(Re,{width:"700px",modelValue:w.value,"onUpdate:modelValue":B[11]||(B[11]=ie=>w.value=ie)},{header:n.withCtx(()=>[n.createElementVNode("div",null,[n.createElementVNode("span",Sy,n.toDisplayString(_.title),1),_.operation==="update"?(n.openBlock(),n.createElementBlock("span",Ay,[_.editable?(n.openBlock(),n.createBlock(n.unref(_e),{key:1,style:{"margin-left":"4px"},name:"iksvg_qiehuan-daohang",onClick:b.cancelEdit},null,8,["onClick"])):(n.openBlock(),n.createBlock(n.unref(_e),{key:0,style:{"margin-left":"4px"},name:"iksvg_xiugai",onClick:b.edit},null,8,["onClick"]))])):n.createCommentVNode("v-if",!0)])]),footer:n.withCtx(()=>[n.createElementVNode("span",Ty,[n.renderSlot(E.$slots,"form-footer",{},()=>[n.createElementVNode("span",null,[n.createVNode(I,{onClick:b.close},{default:n.withCtx(()=>[n.createTextVNode("取消")]),_:1},8,["onClick"]),n.createVNode(I,{onClick:b.del},{default:n.withCtx(()=>[n.createTextVNode("删除")]),_:1},8,["onClick"]),n.createVNode(I,{type:"primary",onClick:b.submit},{default:n.withCtx(()=>[n.createTextVNode("确定")]),_:1},8,["onClick"])])],!0)])]),default:n.withCtx(()=>[n.renderSlot(E.$slots,"form",{},()=>[n.createVNode(pe,{ref_key:"_editFormRef",ref:h,model:_.form,disabled:!_.editable},{default:n.withCtx(()=>[n.createVNode(ee,null,{default:n.withCtx(()=>[n.createVNode(x,{class:"icon"},{default:n.withCtx(()=>[n.createVNode(n.unref(Hl))]),_:1}),n.createVNode(z,{modelValue:_.form.title,"onUpdate:modelValue":B[4]||(B[4]=ie=>_.form.title=ie),placeholder:"请输入标题",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1}),n.createVNode(ee,null,{default:n.withCtx(()=>[n.createVNode(x,{class:"icon"},{default:n.withCtx(()=>[n.createVNode(n.unref(Ul))]),_:1}),n.createElementVNode("div",xy,[n.createVNode(me,{disabled:"",modelValue:_.form.startDate,"onUpdate:modelValue":B[5]||(B[5]=ie=>_.form.startDate=ie),type:"date",placeholder:"开始日期",style:n.normalizeStyle({width:_.form.allDay?"45%":"90%"})},null,8,["modelValue","style"]),_.form.allDay?(n.openBlock(),n.createElementBlock("div",Vy,[By,n.createVNode(me,{disabled:"",modelValue:_.form.endDate,"onUpdate:modelValue":B[8]||(B[8]=ie=>_.form.endDate=ie),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(n.openBlock(),n.createElementBlock("div",Dy,[n.createVNode($,{modelValue:_.form.startTime,"onUpdate:modelValue":B[6]||(B[6]=ie=>_.form.startTime=ie),type:"datetime",placeholder:"开始时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),Ny,n.createVNode($,{modelValue:_.form.endTime,"onUpdate:modelValue":B[7]||(B[7]=ie=>_.form.endTime=ie),type:"datetime",placeholder:"结束时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),n.createVNode(ce,{modelValue:_.form.allDay,"onUpdate:modelValue":B[9]||(B[9]=ie=>_.form.allDay=ie),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])]),_:1}),n.createVNode(ee,null,{default:n.withCtx(()=>[n.createVNode(x,{class:"icon"},{default:n.withCtx(()=>[n.createVNode(n.unref(Cc))]),_:1}),n.createVNode(z,{type:"textarea",modelValue:_.form.remark,"onUpdate:modelValue":B[10]||(B[10]=ie=>_.form.remark=ie),placeholder:"描述",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","disabled"])],!0)]),_:3},8,["modelValue"])])}}}),Fk="",My=de(X(Ry,[["__scopeId","data-v-600ed17b"]])),Oy={key:0,class:"ik-tabs-split overflow-overlay gl-padding"},Ly=n.defineComponent({__name:"IkPageTabs",props:n.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:n.mergeModels(["tabClick","search"],["update:modelValue"]),setup(t,{emit:e}){const o=t,l=e,r=n.useModel(t,"modelValue"),i=n.ref(new Map);for(const s of o.tabs)i.value.set(s.id,o.lazyTab?s.id!==r.value:!1);const a=s=>{r.value=s.paneName,i.value.get(s.paneName)||l("tabClick",s.paneName,s),i.value.set(s.paneName,!1)};return(s,d)=>{const f=n.resolveComponent("el-tab-pane"),u=n.resolveComponent("el-tabs");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createCommentVNode(' <div class="flex-1 contents"> '),n.createVNode(u,{modelValue:r.value,"onUpdate:modelValue":d[0]||(d[0]=g=>r.value=g),class:n.normalizeClass(["ik-tabs",{"is-default":s.$slots.default,"split gl-padding gl-container":t.split}]),onTabClick:a},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.tabs,g=>(n.openBlock(),n.createBlock(f,{key:g.id,disabled:g==null?void 0:g.disabled,name:g.id},{label:n.withCtx(()=>[n.createElementVNode("span",null,n.toDisplayString(g.label),1)]),default:n.withCtx(()=>[!s.$slots.default&&!i.value.get(g.id)&&!t.split?n.renderSlot(s.$slots,g.id,{key:0},void 0,!0):n.createCommentVNode("v-if",!0)]),_:2},1032,["disabled","name"]))),128)),n.createCommentVNode(" 当存在默认slot且需要展示默认slot时 "),s.$slots.default&&t.defaultSlot&&!t.split?n.renderSlot(s.$slots,"default",{key:0},void 0,!0):n.createCommentVNode("v-if",!0)]),_:3},8,["modelValue","class"]),t.split?(n.openBlock(),n.createElementBlock("div",Oy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.tabs,g=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[!s.$slots.default&&!i.value.get(g.id)?n.renderSlot(s.$slots,g.id,{key:0},void 0,!0):n.createCommentVNode("v-if",!0)],64))),256)),s.$slots.default&&t.defaultSlot?n.renderSlot(s.$slots,"default",{key:0},void 0,!0):n.createCommentVNode("v-if",!0)])):n.createCommentVNode("v-if",!0),n.createCommentVNode(" </div> ")],64)}}}),Hk="",Py=de(X(Ly,[["__scopeId","data-v-e282a7f2"]]));var Ze=(t=>(t.input="input",t.area="area",t.number="number",t.select="select",t.date="date",t.datetime="datetime",t.checkbox="checkbox",t.radio="radio",t.treeselect="treeselect",t.choosePerson="choosePerson",t))(Ze||{}),Et=(t=>(t.year="year",t.month="month",t.date="date",t.dates="dates",t.datetime="datetime",t.week="week",t.datetimerange="datetimerange",t.daterange="daterange",t.monthrange="monthrange",t))(Et||{});function Ls(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!n.isVNode(t)}const zy=n.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(t,{emit:e,expose:o}){const l=n.ref(),r={},i=n.ref({}),a=n.ref([]),s=n.ref({...i.value});n.watch(a,(M,J)=>{const G=J.filter(H=>!M.includes(H));if(G.length){let H=!1;G.forEach(Z=>{s.value[Z]!==void 0&&(H=!0),s.value[Z]=void 0}),H&&e("search",s.value)}});const d=()=>{a.value=[],t.list.forEach(M=>{var J,G;i.value[M.key]=i.value[M.value],r[M.key]=r[M.value],a.value.push(M.key),(J=s.value)[G=M.key]??(J[G]=M.value||null)})};d(),n.watch(()=>t.list,()=>{d()});const f=n.computed(()=>a.value.map(M=>t.list.find(J=>J.key===M))),u=()=>{var M;s.value.page=1,(M=t.search)==null||M.call(t,s.value),e("search",s.value)};o({resetForm:()=>{var M,J;(J=(M=l.value)==null?void 0:M.resetFields)==null||J.call(M),u()},reRequest:()=>{u()}});const c=()=>{var M;e("search",s.value),(M=t.search)==null||M.call(t,s.value)},y=M=>{M.key==="Enter"&&u()},p=()=>{var M;(M=l.value)==null||M.resetFields(),u()};t.immediate&&u();const h=({maxlength:M,minlength:J,key:G,disabled:H,placeholder:Z,formProp:se={},value:ae,label:le})=>n.createVNode(v.ElInput,n.mergeProps({modelValue:s.value[G],"onUpdate:modelValue":[ne=>s.value[G]=ne,ne=>s.value[G]=ne],clearable:!0,maxlength:M,minlength:J,disabled:H,onBlur:()=>c()},se,{placeholder:(se==null?void 0:se.placeholder)||Z||`请输入${le||""}`}),null),b=({key:M,placeholder:J,max:G,min:H,disabled:Z,precision:se,step:ae=1,label:le,formProp:ne={}})=>n.createVNode(v.ElInputNumber,n.mergeProps({modelValue:s.value[M],"onUpdate:modelValue":Me=>s.value[M]=Me,clearable:!0,max:G,min:H,disabled:Z,precision:se,step:ae,onChange:()=>c()},ne,{placeholder:(ne==null?void 0:ne.placeholder)||J||`请输入${le||""}`}),null),_=({key:M,placeholder:J,disabled:G,options:H,label:Z,multiple:se=!1,filterable:ae=!0,formProp:le={}})=>n.createVNode(v.ElSelect,n.mergeProps({modelValue:s.value[M],"onUpdate:modelValue":ne=>s.value[M]=ne,clearable:!0,disabled:G,multiple:se,filterable:ae,onChange:()=>c()},le,{placeholder:(le==null?void 0:le.placeholder)||J||`请选择${Z||""}`}),{default:()=>[H==null?void 0:H.map(ne=>n.createVNode(v.ElOption,{key:ne.value,label:ne.label,value:ne.value},null))]}),w=({key:M,disabled:J,options:G,formProp:H={}})=>n.createVNode(v.ElRadioGroup,n.mergeProps({modelValue:s.value[M],"onUpdate:modelValue":Z=>s.value[M]=Z,disabled:J,onChange:()=>c()},H),{default:()=>[G==null?void 0:G.map(Z=>(H==null?void 0:H.radioType)==="button"?n.createVNode(v.ElRadioButton,{key:Z.value,label:Z.value,name:Z.label},null):n.createVNode(v.ElRadio,{key:Z.value,label:Z.value,name:Z.label},null))]}),S=({key:M,disabled:J,options:G,min:H,max:Z,formProp:se={}})=>n.createVNode(v.ElCheckboxGroup,n.mergeProps({modelValue:s.value[M],"onUpdate:modelValue":ae=>s.value[M]=ae,disabled:J,max:Z,min:H,onChange:()=>c()},se),{default:()=>[G==null?void 0:G.map(ae=>n.createVNode(v.ElCheckbox,{key:ae.value,label:ae.label,value:ae.value},null))]}),O=({key:M,label:J,formProp:G={},placeholder:H})=>n.createVNode(v.ElDatePicker,n.mergeProps({modelValue:s.value[M],"onUpdate:modelValue":Z=>s.value[M]=Z,onChange:()=>c()},G,{placeholder:(G==null?void 0:G.placeholder)||H||`请选择${J}时间`}),null),N=({key:M,disabled:J,editable:G=!0,startPlaceholder:H="开始日期",endplaceholder:Z="结束日期",dateType:se=Et.date,format:ae,placeholder:le="请选择日期",popperclass:ne,rangeSeparator:Me="-",defaultValue:Xe,defaultTime:st,valueFormat:Ue,disabledDate:ve=()=>!1,formProp:Se={}})=>{let Ae=ae;if(Ae)switch(se){case Et.date:case Et.dates:Ae="YYYY-MM-DD";break;case Et.year:Ae="YYYY";break;case Et.month:Ae="YYYY-MM";break;case Et.week:Ae="YYYY-MM-DD";break;default:Ae=""}return n.createVNode(v.ElDatePicker,n.mergeProps({modelValue:s.value[M],"onUpdate:modelValue":Oe=>s.value[M]=Oe,onChange:()=>c(),disabled:J,type:se,editable:G,startPlaceholder:H,endPlaceholder:Z,rangeSeparator:Me,format:Ae,popperClass:ne,defaultValue:Xe,defaultTime:st,valueFormat:Ue,disabledDate:ve},Se,{placeholder:(Se==null?void 0:Se.placeholder)||le||"请选择日期"}),null)},C=({key:M,options:J,multiple:G=!1,filterable:H=!0,nodeKey:Z="id",props:se,highlightCurrent:ae=!0,defaultExpandAll:le=!1,expandOnClickNode:ne=!1,placeholder:Me="全部",checkOnClickNode:Xe=!1,showCheckbox:st=!1,checkStrictly:Ue=!0,defaultCheckedKeys:ve=[],currentNodeKey:Se="",accordion:Ae=!1,formProp:Oe={},label:R})=>n.createVNode(v.ElTreeSelect,n.mergeProps({modelValue:s.value[M],"onUpdate:modelValue":F=>s.value[M]=F,data:J,onChange:()=>c(),clearable:!0,multiple:G,props:se,placeholder:Me,filterable:H,nodeKey:Z,highlightCurrent:ae,defaultExpandAll:le,expandOnClickNode:ne,checkOnClickNode:Xe,showCheckbox:st,checkStrictly:Ue,defaultCheckedKeys:ve,currentNodeKey:Se,accordion:Ae},Oe,{placeholder:(Oe==null?void 0:Oe.placeholder)||Me||`请选择${R||""}`}),null),E=({key:M,selectKey:J,placeholder:G,disabled:H,options:Z,multiple:se=!1,filterable:ae=!0,formProp:le={}})=>n.createVNode(v.ElInput,n.mergeProps({disabled:H,modelValue:s.value[M],"onUpdate:modelValue":ne=>s.value[M]=ne,onBlur:()=>c()},le,{placeholder:(le==null?void 0:le.placeholder)||G||"全部"}),{prepend:()=>n.createVNode(v.ElSelect,n.mergeProps({disabled:H,multiple:se,filterable:ae,modelValue:s.value[J],"onUpdate:modelValue":ne=>s.value[J]=ne,onChange:()=>c()},le),{default:()=>[Z==null?void 0:Z.map(ne=>n.createVNode(v.ElOption,{key:ne.value,label:ne.label,value:ne.value},null))]})}),B="",I="iking",W=n.ref(null),x=n.ref([]),T=n.ref(!1),z=n.ref(""),ee=new Map,me=M=>{T.value=!0,x.value=ee.has(M)?ee.get(M):s.value[M],z.value=M},$=()=>{ee.set(z.value,[]),z.value="",c()},ce=M=>{var J,G;s.value[z.value]=(J=M.list.map(H=>H.elementName))==null?void 0:J.join(","),ee.set(z.value,M.list),e("search",s.value),e("pickerChange",M),(G=t.search)==null||G.call(t,s.value)},pe=({key:M,placeholder:J,typeOption:G,_list:H,maxlength:Z,minlength:se,disabled:ae,formProp:le})=>n.createVNode(v.ElInput,n.mergeProps({modelValue:s.value[M],"onUpdate:modelValue":ne=>s.value[M]=ne,clearable:!0,maxlength:Z,minlength:se,disabled:ae},le,{onClick:()=>me(M),onClear:()=>$(),placeholder:(le==null?void 0:le.placeholder)||J||`点击选择${label||"人员"}`}),null),Re=M=>{switch(M.type){case"":case void 0:case Ze.input:case"el-input":return h(M);case Ze.number:case"el-input-number":return b(M);case Ze.select:case"el-select":return _(M);case Ze.checkbox:case"el-checkbox":return S(M);case Ze.radio:case"el-radio-group":case"el-radio":return w(M);case Ze.date:case"el-date-picker":return N(M);case"el-time-select":return O(M);case Ze.treeselect:case"el-tree-select":return C(M);case Ze.choosePerson:return pe(M);case"select-input":return E(M);default:return n.createVNode(n.Fragment,null,null)}},ie=n.computed(()=>{var G;const M=[],J=f.value.length-1;return(G=f.value)==null||G.forEach((H,Z)=>{let se,ae;if(!H)return[];const le=H.col||1;M.push(n.createVNode(v.ElCol,{xl:{span:le*6},lg:{span:le*6},md:{span:le*12},sm:{span:le*24}},{default:()=>[Z===J?n.createVNode("div",{class:"last-form"},[n.createVNode(v.ElFormItem,{label:H.type==="select-input"?"":H.label,prop:H.key},Ls(se=Re(H))?se:{default:()=>[se]}),n.createVNode(_e,{name:"icon-sousuo1",pop:!0,title:"搜索",size:"big","show-bg":!0,width:40,onClick:()=>c()},null),n.createVNode(_e,{name:"icon-zhongzhi",pop:!0,title:"重置并搜索",size:"big","show-bg":!0,width:40,onClick:()=>p()},null)]):n.createVNode(v.ElFormItem,{label:H.type==="select-input"?"":H.label,prop:H.key},Ls(ae=Re(H))?ae:{default:()=>[ae]})]}))}),M});return()=>n.createVNode(n.Fragment,null,[n.createVNode(v.ElCard,{class:"gl-search-card",shadow:t.shadow},{default:()=>[n.createVNode(v.ElForm,{class:"auto-search-form",onKeyup:y,ref:l,model:s.value},{default:()=>[n.createVNode(v.ElRow,{gutter:16},{default:()=>[ie.value]})]})]}),n.createVNode(on,{ref:W.value,modelValue:x.value,"onUpdate:modelValue":M=>x.value=M,show:T.value,"onUpdate:show":M=>T.value=M,"append-to-body":!0,api:{methods:"post",url:`${B}/server/component/pick/mix`,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:I}},tabs:["group","role","post"],chooseType:["user"],typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},propOption:{name:"elementName",id:"elementId",type:"elementType"},onOk:M=>ce(M)},null)])}}),Fy={class:"header-left"},$y={class:"title"},Hy={class:"flex items-center"},Uy=n.defineComponent({__name:"IkPageHead",props:n.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(t){n.useCssVars(f=>({"59e2b6b4":d}));const e=t,o=n.useModel(t,"modelValue"),l=n.ref(e.defaultShow),r=()=>{l.value=!l.value},i=n.computed(()=>e.fields.filter(f=>!f.onlyForm)),a=n.computed(()=>{var f;return(f=e.fields)==null?void 0:f.filter(u=>u.search)}),s=n.computed(()=>a.value.length),d=`${e.headerHeight}px`;return(f,u)=>{const g=n.resolveComponent("el-card");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ik-page-header",{"show-search":l.value}])},[n.createElementVNode("div",{class:"header",style:n.normalizeStyle({borderColor:t.headerBorder?"var(--ik-border-color)":"transparent",marginBottom:t.headerBorder?"8px":"0"})},[n.createElementVNode("div",Fy,[n.createCommentVNode(' 左侧标题、tab页或自定义内容 v-if="!$slots.headerLeft" '),n.createElementVNode("span",$y,n.toDisplayString(t.headerTitle),1),n.renderSlot(f.$slots,"headerLeft",{},void 0,!0)]),n.createCommentVNode(" 默认按钮 "),n.createElementVNode("div",Hy,[n.createCommentVNode(" 右侧操作或自定义内容 "),n.renderSlot(f.$slots,"headerRight",{},void 0,!0),t.exportBtn?(n.openBlock(),n.createBlock(n.unref(_e),{key:0,name:"iksvg_xiazai",type:"primary",title:"导出","show-bg":"",size:"default"})):n.createCommentVNode("v-if",!0),s.value?(n.openBlock(),n.createBlock(n.unref(_e),{key:1,name:"iksvg_shaixuan1",size:"default",title:l.value?"收起筛选条件":"展开筛选条件","show-bg":"",onClick:r},null,8,["title"])):n.createCommentVNode("v-if",!0),t.refreshBtn?(n.openBlock(),n.createBlock(n.unref(_e),{key:2,name:"iksvg_zhongzhi1",title:"保留搜索条件刷新","show-bg":"",size:"default",onClick:t.search},null,8,["onClick"])):n.createCommentVNode("v-if",!0),n.createCommentVNode(` <IkSvgIcon\r
|
|
34
|
+
></i> `),(b=_[t.propsField.children])!=null&&b.length&&_.show?(o.openBlock(),o.createBlock(o.unref(me),{key:1,class:"ikapprove",onClick:y=>g(_,p),name:"iksvg_shouqi"},null,8,["onClick"])):o.createCommentVNode("v-if",!0)],14,Ou)]),o.createElementVNode("ul",{class:o.normalizeClass(d(p))},[o.createElementVNode("div",{id:`children${p}`},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(_[t.propsField.children],(y,w)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(f(p,w)),style:o.normalizeStyle(t.needClick?"cursor: pointer;":""),key:w,onClick:v=>u(y,p+1+"-"+(w+1))},o.toDisplayString(y.name),15,Lu))),128))],8,Mu)],2)])}),128))]))}}),o5="",$u=de(K(Pu,[["__scopeId","data-v-240cff4f"]])),l5="",Xo=t=>(o.pushScopeId("data-v-41886e6b"),t=t(),o.popScopeId(),t),zu={class:"approveProcess",id:"approveProcess"},Fu=["id"],Hu={class:"topBlock"},Uu={class:"left"},ju={class:"nodeBg"},Wu=["src"],Gu={class:"right"},qu={class:"topInfo"},Yu={key:0},Qu={key:0,class:"main-text"},Zu={class:"name"},Ku={key:0},Xu={key:0},Ju={key:1},ef=Xo(()=>o.createElementVNode("span",{class:"red",style:{margin:"0px 5px"}},"退回至",-1)),tf={key:0},nf={key:0},of={key:1},lf={key:1},rf=Xo(()=>o.createElementVNode("div",{class:"main-text"},"抄送人员",-1)),af={class:"name"},sf={key:0},cf={style:{color:"#000"}},df={class:"blue",style:{"margin-left":"5px","font-size":"12px"}},uf={key:1},ff={key:0,class:"blue",style:{"font-size":"12px"}},pf={key:1},hf={key:0,class:"blue",style:{"font-size":"12px"}},mf={key:1,class:"blue",style:{"font-size":"12px"}},gf={class:"time"},_f={key:0},yf={key:1},bf=["onClick"],Ef=["onClick"],kf={key:0,class:"opinion"},Cf={key:0},wf={key:1},vf=Xo(()=>o.createElementVNode("span",null,"添加审批人",-1)),Sf={style:{color:"var(--el-text-color-primary)","margin-left":"8px"}},Af={key:1,class:"annex"},xf=["onClick"],Df={class:"text"},Nf={class:"fileName"},Vf={class:"size"},Bf={key:2,class:"annexImage"},Tf={key:3,class:"approveList"},Rf={class:"nodeBg-list"},If=["src"],Of={key:1,class:"ikapprove ikapprove-duihao2 green read"},Mf=["title"],Lf={name:"IkingApprovalProcessDetail"},Pf=o.defineComponent({...Lf,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:""}},emits:["preview"],setup(t,{emit:e}){const n=t,i=o.reactive({nodeType:{发起人节点:"1",审批节点:"2",办理节点:"3",抄送节点:"4",...n.defaultNodeType},statusOption:{发起:"1",等待:"2",同意:"3",拒绝:"4",转交:"5",加签:"6",退回:"7",撤销:"8",评论:"9",...n.defaultStatus},listData:[],defaultFile:{id:"id",nodeId:"nodeId",nodeType:"nodeType",nodeTypeName:"nodeTypeName",approveStatus:"approveStatus",approveStatusName:"approveStatusName",originator:"originator",operationTime:"operationTime",approveType:"approveType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approveOpinion:"approveOpinion",countersignPer:"countersignPer",backToRecordNodeName:"backToRecordNodeName",attachment:"attachment",attachmentParam:{id:"id",originName:"originName",url:"url",suffix:"suffix",size:"size"},attachmentImg:"attachmentImg",returnNode:"returnNode",returnNodeName:"returnNodeName",lineType:"lineType",allRead:"allRead",read:"read",approvePersonList:[{id:"id",name:"name",approveState:"approveState",approveTime:"approveTime",approveOpinion:"approveOpinion",userAvatar:"userAvatar",accomplish:"accomplish"}],...n.defaultFieldMap}});o.watch(()=>n.dataList,c=>{c&&(o.nextTick(()=>{i.listData=c}),setTimeout(()=>{n.returnNode.length&&l()},500))},{deep:!0}),o.onMounted(()=>{n.dataList.length&&(i.listData=n.dataList,setTimeout(()=>{n.returnNode.length&&l()},500))});const l=()=>{let c=null;if(n!=null&&n.returnNode)for(c of n==null?void 0:n.returnNode){if(isNaN(c[1]))return;let _=Array.from(new Array(c[1]+1).keys()).slice(c[0]);o.nextTick(()=>{r(_)})}},r=c=>{var v,O,x;let _=document.createElement("div"),p=document.getElementById("approveProcess"),m=0,b=(v=document.getElementById(`${c[0]}`))==null?void 0:v.offsetWidth,y=(O=document.getElementById(`${c[0]}`))==null?void 0:O.offsetLeft,w=(x=document.getElementById(`${c[0]}`))==null?void 0:x.offsetTop;c.forEach(C=>{let k=document.getElementById(`${C}`);m+=k.offsetHeight}),setTimeout(()=>{_.style.width=b+32+"px",_.style.height=m+"px",_.style.background="#f9f9f9",_.style.position="absolute",_.style.top=w-16+"px",_.style.left=y-16+"px",_.style.zIndex=-1,p==null||p.appendChild(_)})},a=(c,_)=>{var b;let p=(b=i.listData)==null?void 0:b.findIndex(y=>y.lineType=="dashed"),m="";switch(c){case i.statusOption.发起:m="ikapprove-duihao2 green";break;case i.statusOption.等待:m=p==_?"ikapprove-dengdai orange":"";break;case i.statusOption.同意:m="ikapprove-duihao2 green";break;case i.statusOption.拒绝:m="ikapprove-jujue red";break;case i.statusOption.转交:m="ikapprove-zhuanjiao blue";break;case i.statusOption.加签:m="ikapprove-tianjia blue";break;case i.statusOption.退回:m="ikapprove-s_fanhui2 red";break;case i.statusOption.评论:m="ikapprove-pinglun1 blue";break}return`ikapprove ${m}`},s=(c,_)=>{let p="";switch(c){case i.nodeType.发起人节点:p="ikapprove-ziyuan";break;case i.nodeType.审批节点:_&&_.length==1?p="ikapprove-ziyuan":p="ikapprove-shenpi";break;case i.nodeType.办理节点:p="ikapprove-bianji";break;case i.nodeType.抄送节点:p="ikapprove-chaosong";break;default:p="ikapprove-ziyuan"}return`ikapprove ${p}`},d=c=>{let _="";return c=="jpg"||c=="jpeg"||c=="png"?_="ikapprove-tupian":c=="doc"||c=="docx"?_="ikapprove-WORD":c=="xls"||c=="xlsx"?_="ikapprove-EXCEL":c=="ppt"||c=="pptx"?_="ikapprove-pptcopy":c=="pdf"?_="ikapprove-PDF":c=="rar"||c=="zip"?_="ikapprove-fujian":c=="txt"||c=="zip"?_="ikapprove-TXTCopy":c=="mp3"||c=="wma"||c=="m4a"?_="ikapprove-yinpinwenjian":(c=="avi"||c=="wmv"||c=="mp4"||c=="mov")&&(_="ikapprove-shipinwenjian"),`icon ikapprove ${_}`},f=e,u=c=>{f("preview",c),n.local||window.open(h(c[i.defaultFile.attachmentParam.url]))},g=(c,_)=>{c.show=!c.show;let p=document.getElementById(`${c[i.defaultFile.nodeId]}`),m=Array.from(p==null?void 0:p.getElementsByClassName("approveList"));for(let b of m)b.style.display=_},h=c=>{let _="";return c.includes("http")||c.includes("https")?_=c:_=n.fileUrl+c,_};return(c,_)=>{const p=o.resolveComponent("el-image");return o.openBlock(),o.createElementBlock("div",zu,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.listData,(m,b)=>{var y,w,v,O,x,C,k,B,V,P;return o.openBlock(),o.createElementBlock("div",{class:"approveBlock",id:m[i.defaultFile.nodeId],key:m[i.defaultFile.nodeId]},[o.createElementVNode("div",Hu,[o.createElementVNode("div",Uu,[o.createElementVNode("span",ju,[o.createCommentVNode(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),((y=m[i.defaultFile.approvePersonList])==null?void 0:y.length)==1&&m[i.defaultFile.approvePersonList][0].userAvatar?(o.openBlock(),o.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:h(m[i.defaultFile.approvePersonList][0].userAvatar),alt:""},null,8,Wu)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" 否则显示对应节点 "),o.createElementVNode("i",{class:o.normalizeClass(s(m[i.defaultFile.nodeType],m[i.defaultFile.approvePersonList]))},null,2)],2112)),o.createCommentVNode(" 审批状态图标 "),o.createElementVNode("i",{class:o.normalizeClass(a(m[i.defaultFile.approveStatus],b))},null,2)])]),o.createElementVNode("div",Gu,[o.createElementVNode("div",qu,[o.createElementVNode("div",null,[o.createCommentVNode(" 不是抄送节点 "),m[i.defaultFile.nodeType]!=i.nodeType.抄送节点?(o.openBlock(),o.createElementBlock("div",Yu,[o.createCommentVNode(" 撤销,评论不显示节点名称 "),m[i.defaultFile.approveStatus]!=i.statusOption.撤销&&m[i.defaultFile.approveStatus]!=i.statusOption.评论?(o.openBlock(),o.createElementBlock("div",Qu,o.toDisplayString(m[i.defaultFile.nodeTypeName]),1)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" 名字+审批状态 "),o.createElementVNode("div",Zu,[o.createCommentVNode(" 已审批节点文本 "),m[i.defaultFile.lineType]=="solid"?(o.openBlock(),o.createElementBlock("div",Ku,[o.createElementVNode("span",{style:o.normalizeStyle({color:m[i.defaultFile.approveStatus]==i.statusOption.评论?"#000":""})},o.toDisplayString(m[i.defaultFile.originator]),5),o.createCommentVNode(" 发起,退回不显示状态 "),m[i.defaultFile.approveStatusName]&&m[i.defaultFile.approveStatus]!=i.statusOption.发起&&m[i.defaultFile.approveStatus]!=i.statusOption.退回?(o.openBlock(),o.createElementBlock("span",Xu,o.toDisplayString(m[i.defaultFile.approveStatus]==i.statusOption.评论?" 添加了评论":"("+m[i.defaultFile.approveStatusName]+")"),1)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" 退回状态显示 "),m[i.defaultFile.approveStatus]==i.statusOption.退回?(o.openBlock(),o.createElementBlock("span",Ju,[ef,o.createTextVNode(o.toDisplayString(m[i.defaultFile.backToRecordNodeName]),1)])):o.createCommentVNode("v-if",!0)])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" 待审批节点 "),o.createElementVNode("div",null,[((w=m[i.defaultFile.approvePersonList])==null?void 0:w.length)==1?(o.openBlock(),o.createElementBlock("span",tf,[o.createTextVNode(o.toDisplayString(m[i.defaultFile.originator])+" ",1),m[i.defaultFile.approveStatus]==i.statusOption.等待?(o.openBlock(),o.createElementBlock("span",nf,o.toDisplayString(`(${m[i.defaultFile.approveStatusName]})`),1)):o.createCommentVNode("v-if",!0)])):(o.openBlock(),o.createElementBlock("span",of,o.toDisplayString(((v=m[i.defaultFile.approvePersonList])==null?void 0:v.length)+"人"+m[i.defaultFile.approveTypeName]),1))])],2112))])])):(o.openBlock(),o.createElementBlock("div",lf,[rf,o.createElementVNode("div",af,[o.createCommentVNode(" 抄送一人时 "),((O=m[i.defaultFile.approvePersonList])==null?void 0:O.length)==1?(o.openBlock(),o.createElementBlock("span",sf,[o.createElementVNode("span",null,[o.createTextVNode("已抄送给 "),o.createElementVNode("span",cf,o.toDisplayString(m[i.defaultFile.approvePersonList][0].userName),1)]),o.createElementVNode("span",df,o.toDisplayString(m[i.defaultFile.approvePersonList][0].status==="END"?"已读":"未读"),1)])):o.createCommentVNode("v-if",!0),o.createCommentVNode(" 抄送多人时 "),((x=m[i.defaultFile.approvePersonList])==null?void 0:x.length)>1?(o.openBlock(),o.createElementBlock("span",uf,[o.createTextVNode(o.toDisplayString(`已抄送${(C=m[i.defaultFile.approvePersonList])==null?void 0:C.length}人`)+" ",1),m[i.defaultFile.allRead]?(o.openBlock(),o.createElementBlock("span",ff," 全部已读 ")):(o.openBlock(),o.createElementBlock("span",pf,[m[i.defaultFile.read]?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("span",hf," 全部未读 ")),m[i.defaultFile.read]?(o.openBlock(),o.createElementBlock("span",mf,o.toDisplayString(m[i.defaultFile.read])+"人已读 ",1)):o.createCommentVNode("v-if",!0)]))])):o.createCommentVNode("v-if",!0)])]))]),o.createElementVNode("div",gf,[o.createCommentVNode(" 不是抄送节点,展示时间 "),m[i.defaultFile.nodeType]!=i.nodeType.抄送节点?(o.openBlock(),o.createElementBlock("span",_f,o.toDisplayString(m[i.defaultFile.operationTime]),1)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" 是抄送节点,并且抄送人员大于1时,展示图标 "),m[i.defaultFile.nodeType]==i.nodeType.抄送节点&&((k=m[i.defaultFile.approvePersonList])==null?void 0:k.length)>1?(o.openBlock(),o.createElementBlock("span",yf,[m!=null&&m.show?(o.openBlock(),o.createElementBlock("i",{key:0,class:"ikapprove ikapprove-a-putongjiantouzhankai",onClick:T=>g(m,"grid")},null,8,bf)):(o.openBlock(),o.createElementBlock("i",{key:1,onClick:T=>g(m,"none"),class:"ikapprove ikapprove-a-putongjiantoushouqi"},null,8,Ef))])):o.createCommentVNode("v-if",!0)])])])]),o.createElementVNode("div",{class:"bottomBlock",style:o.normalizeStyle({borderLeft:b==i.listData.length-1?"":`2px ${m[i.defaultFile.lineType]} var(--el-border-color)`})},[o.createCommentVNode(" 审批意见 "),m[i.defaultFile.approveOpinion]||m[i.defaultFile.approveStatus]==i.statusOption.加签?(o.openBlock(),o.createElementBlock("div",kf,[m[i.defaultFile.approveOpinion]?(o.openBlock(),o.createElementBlock("span",Cf,o.toDisplayString(m[i.defaultFile.approveOpinion]),1)):o.createCommentVNode("v-if",!0),m[i.defaultFile.approveStatus]==i.statusOption.加签?(o.openBlock(),o.createElementBlock("span",wf,[vf,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m[i.defaultFile.countersignPer],(T,F)=>(o.openBlock(),o.createElementBlock("span",Sf,o.toDisplayString(T==null?void 0:T.userName)+o.toDisplayString(F<m[i.defaultFile.countersignPer].length-1?"、":""),1))),256))])):o.createCommentVNode("v-if",!0)])):o.createCommentVNode("v-if",!0),o.createCommentVNode(" 附件 "),(B=m[i.defaultFile.attachment])!=null&&B.length?(o.openBlock(),o.createElementBlock("div",Af,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m[i.defaultFile.attachment],(T,F)=>(o.openBlock(),o.createElementBlock("div",{class:"file-card",key:F,onClick:W=>u(T)},[o.createElementVNode("div",{class:o.normalizeClass(d(T[i.defaultFile.attachmentParam.suffix]))},null,2),o.createElementVNode("div",Df,[o.createElementVNode("div",Nf,o.toDisplayString(T[i.defaultFile.attachmentParam.originName]),1),o.createElementVNode("div",Vf,o.toDisplayString((T[i.defaultFile.attachmentParam.size]/1024/1024).toFixed(3))+"MB ",1)])],8,xf))),128))])):o.createCommentVNode("v-if",!0),o.createCommentVNode(" 附件图片 "),(V=m[i.defaultFile.attachmentImg])!=null&&V.length?(o.openBlock(),o.createElementBlock("div",Bf,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m[i.defaultFile.attachmentImg],(T,F)=>(o.openBlock(),o.createElementBlock("div",{class:"image",key:F},[o.createVNode(p,{src:h(T),fit:"cover","z-index":"9999","zoom-rate":1.2,alt:h(T)},null,8,["src","alt"])]))),128))])):o.createCommentVNode("v-if",!0),o.createCommentVNode(" 抄送节点或是等待审批状态并且列表长度大于1 "),(m[i.defaultFile.nodeType]==i.nodeType.抄送节点||m[i.defaultFile.approveStatus]==i.statusOption.等待)&&((P=m[i.defaultFile.approvePersonList])==null?void 0:P.length)>1?(o.openBlock(),o.createElementBlock("div",Tf,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m[i.defaultFile.approvePersonList],T=>(o.openBlock(),o.createElementBlock("div",{class:"perBlock",key:T.userName},[o.createElementVNode("span",Rf,[T.userAvatar?(o.openBlock(),o.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:h(T.userAvatar),alt:""},null,8,If)):o.createCommentVNode("v-if",!0),o.createElementVNode("span",null,o.toDisplayString(T.userName.slice(-2)),1),T.status==="END"?(o.openBlock(),o.createElementBlock("i",Of)):o.createCommentVNode("v-if",!0)]),o.createElementVNode("div",{class:"main-text",title:T.userName},o.toDisplayString(T.userName),9,Mf)]))),128))])):o.createCommentVNode("v-if",!0)],4)],8,Fu)}),128))])}}}),r5="",$f=de(K(Pf,[["__scopeId","data-v-41886e6b"]])),zf=t=>(o.pushScopeId("data-v-46507da1"),t=t(),o.popScopeId(),t),Ff={class:"approveProcess",id:"approveProcess"},Hf={class:"node"},Uf={class:"nodeBg"},jf={class:"info"},Wf={class:"explain"},Gf={key:0},qf={key:0},Yf={key:1},Qf={key:0},Zf={key:1},Kf={class:"personlist"},Xf={style:{width:"58px"}},Jf={class:"avatar"},ep=["src"],tp={key:1,class:"nodeBg"},np=["onClick"],op=["title"],ip={key:0,class:"sign"},lp={key:0},rp=["onClick"],ap={key:0,class:"required"},sp=zf(()=>o.createElementVNode("i",{class:"ikapprove ikapprove-xinzeng"},null,-1)),cp={name:"IkApprovalProcess"},dp=o.defineComponent({...cp,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(t,{expose:e}){const n=t,i=$.ikStore.local.getItem("token")||"Bearer iking",l=o.reactive({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",...n.defaultNodeType},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...n.statusWithoutApprover},defaultFile:{id:"id",nodeId:"sortOrder",nodeType:"type",nodeTypeName:"name",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",...n.defaultFieldMap},multiple:!1,chooseType:[]}),r=async g=>{var h;if(g.multiple=!g[l.defaultFile.singleApproval]||g[l.defaultFile.isShowAddCopy],g.handList=g[l.defaultFile.approvePersonList]?g[l.defaultFile.approvePersonList]:[],g[l.defaultFile.nodeType]===l.nodeType.抄送节点)g.handList.forEach(c=>{c.elementName||(c.elementName=c.userName,c.elementId=c.userId,c.avatar=c.userAvatar),c.elementType="USER",c.disabled=!0}),g.chooseType=["user"],g.userList=[],g.depList=[];else switch(g[l.defaultFile.initiatorSpecifiedScopeType]){case"ALL":g.chooseType=["dep_user"],g.userList=[],g.depList=[];break;default:g.chooseType=["user"],g.userList=g.userList?g.userList:(h=g[l.defaultFile.initiatorSpecifiedScope])==null?void 0:h.map(c=>({...c,elementName:(c==null?void 0:c.executorName)||(c==null?void 0:c.userName),elementId:(c==null?void 0:c.executorId)||(c==null?void 0:c.userId),avatar:((c==null?void 0:c.executorAvatar)||(c==null?void 0:c.userAvatar))&&a((c==null?void 0:c.executorAvatar)||(c==null?void 0:c.userAvatar))||"",elementType:"USER"}))}o.nextTick(()=>{g.isShow=!0})},a=g=>{let h="";return g.includes("http")||g.includes("https")?h=g:h=n.loadUrl?`${n.loadUrl}${g}`:`${location.origin+location.pathname}server/oss/download?fileUrl=${g}`,h},s=g=>{let h="";switch(g){case l.nodeType.审批节点:h="ikapprove-shenpi";break;case l.nodeType.办理节点:h="ikapprove-bianji";break;case l.nodeType.抄送节点:h="ikapprove-chaosong";break;default:h="ikapprove-ziyuan"}return`ikapprove ${h}`},d=(g,h)=>{n.dataList[h].handList=g.list;let _=(n.dataList[h][l.defaultFile.approvePersonList]||[]).filter(m=>!m.canDele),p=g.list.map(m=>({...m,userName:m.elementName,userAvatar:m.avatar,canDele:!0}));n.dataList[h][l.defaultFile.approvePersonList]=_.concat(p)},f=(g,h)=>{n.dataList[g][l.defaultFile.approvePersonList].splice(h,1),n.dataList[g].handList=n.dataList[g][l.defaultFile.approvePersonList]};return e({requiredVerification:()=>{let g=!0;return n.dataList.forEach(h=>{var c;h.required=!1,h[l.defaultFile.nodeType]==l.nodeType.审批节点&&h[l.defaultFile.isShowAdd]&&((c=h[l.defaultFile.approvePersonList])!=null&&c.length||(g=!1,h.required=!0))}),g}}),(g,h)=>(o.openBlock(),o.createElementBlock("div",Ff,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.dataList,(c,_)=>{var p,m,b,y;return o.openBlock(),o.createElementBlock("div",{class:"content",key:c.id},[o.createCommentVNode(" 审批节点类型 "),o.createElementVNode("div",Hf,[o.createElementVNode("span",Uf,[o.createElementVNode("i",{class:o.normalizeClass(s(c[l.defaultFile.nodeType]))},null,2)]),o.createElementVNode("div",{class:"line",style:o.normalizeStyle({"border-left":_===n.dataList.length-1?"":"2px solid var(--el-border-color)"})},null,4)]),o.createElementVNode("div",jf,[o.createElementVNode("div",null,[o.createElementVNode("div",null,o.toDisplayString(c[l.defaultFile.nodeTypeName]),1),o.createElementVNode("div",Wf,[o.createCommentVNode(" 抄送节点 "),c[l.defaultFile.nodeType]==l.nodeType.抄送节点?(o.openBlock(),o.createElementBlock("span",Gf,[c[l.defaultFile.approvePersonList].length?(o.openBlock(),o.createElementBlock("span",qf,o.toDisplayString(`抄送${c[l.defaultFile.approvePersonList].length}人`),1)):o.createCommentVNode("v-if",!0),c[l.defaultFile.isShowAdd]?(o.openBlock(),o.createElementBlock("span",Yf,",可添加抄送人")):o.createCommentVNode("v-if",!0)])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" 审批节点 "),o.createElementVNode("span",null,[o.createCommentVNode(" 存在审批人时 "),(p=c[l.defaultFile.approvePersonList])!=null&&p.length?(o.openBlock(),o.createElementBlock("span",Qf,o.toDisplayString(((m=c[l.defaultFile.approvePersonList])==null?void 0:m.length)==1?"1人审批":`${(b=c[l.defaultFile.approvePersonList])==null?void 0:b.length}人${c[l.defaultFile.multiExecutorTypeName]}`),1)):[l.statusWithoutApprover.自动通过,l.statusWithoutApprover.自动拒绝].includes(c[l.defaultFile.approveType])?(o.openBlock(),o.createElementBlock("span",Zf,o.toDisplayString(c[l.defaultFile.approveTypeName]),1)):c[l.defaultFile.executorEmptyStrategy]&&c[l.defaultFile.executorEmpty]?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createCommentVNode(" 没有审批人,并且有指定默认审批方式 "),o.createElementVNode("span",null,[o.createTextVNode(" 未找到审批人,"),o.createElementVNode("span",null,o.toDisplayString(c[l.defaultFile.executorEmptyStrategy]==l.statusWithoutApprover.自动通过?"将自动通过":c[l.defaultFile.executorEmptyStrategy]==l.statusWithoutApprover.自动转交管理员?"自动转交给管理员":c[l.defaultFile.executorEmptyStrategy]==l.statusWithoutApprover.指定人员审批?`将自动转给指定成员${c[l.defaultFile.reserveExecutorUsers]&&c[l.defaultFile.reserveExecutorUsers][0].userName}`:""),1)])],2112)):(o.openBlock(),o.createElementBlock("span",{key:3,class:o.normalizeClass(c.required?"warn":"")},"请选择"+o.toDisplayString(c[l.defaultFile.nodeType]===l.nodeType.办理节点?"办理人":"审批人"),3))])],2112))])]),o.createElementVNode("div",Kf,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c[l.defaultFile.approvePersonList],(w,v)=>{var O;return o.openBlock(),o.createElementBlock("div",{class:"list",key:w.userId},[o.createElementVNode("div",Xf,[o.createElementVNode("div",Jf,[w.userAvatar?(o.openBlock(),o.createElementBlock("img",{key:0,src:a(w.userAvatar),alt:""},null,8,ep)):(o.openBlock(),o.createElementBlock("div",tp,[o.createElementVNode("span",null,o.toDisplayString(w.userName.slice(-2)),1)])),w.canDele?(o.openBlock(),o.createElementBlock("i",{key:2,onClick:x=>f(_,v),class:"ikapprove ikapprove-shanchu1"},null,8,np)):o.createCommentVNode("v-if",!0)]),o.createElementVNode("div",{class:"name",title:w.userName},o.toDisplayString(w.userName),9,op)]),o.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),c[l.defaultFile.isShowAdd]&&!(c[l.defaultFile.singleApproval]&&((O=c[l.defaultFile.approvePersonList])==null?void 0:O.length)==1)?(o.openBlock(),o.createElementBlock("span",ip,[o.createCommentVNode(" 抄送默认 "),c[l.defaultFile.nodeType]==l.nodeType.抄送节点?(o.openBlock(),o.createElementBlock("span",lp,"+")):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" 审批 "),o.createElementVNode("span",null,o.toDisplayString(c[l.defaultFile.multiExecutorType]=="ANY"?"/":c[l.defaultFile.multiExecutorType]=="ALL"?"+":">"),1)],2112))])):o.createCommentVNode("v-if",!0)])}),128)),o.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 "),c[l.defaultFile.isShowAdd]&&!(c[l.defaultFile.singleApproval]&&((y=c[l.defaultFile.approvePersonList])==null?void 0:y.length)==1)||c[l.defaultFile.isShowAddCopy]?(o.openBlock(),o.createElementBlock("span",{key:0,class:"addBg",onClick:w=>r(c)},[c[l.defaultFile.nodeType]==l.nodeType.审批节点?(o.openBlock(),o.createElementBlock("span",ap)):o.createCommentVNode("v-if",!0),sp],8,rp)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" 添加人组件 "),o.createVNode(o.unref(Mn),{modelValue:c.handList,"onUpdate:modelValue":w=>c.handList=w,show:c.isShow,"onUpdate:show":w=>c.isShow=w,onOk:w=>d(w,_),multiple:c.multiple,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},api:{methods:"post",url:t.pickerUrl,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:o.unref(i)}},"dep-list":c.depList,"user-list":c.userList,"organization-list":c.organizationList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:c.chooseType},null,8,["modelValue","onUpdate:modelValue","show","onUpdate:show","onOk","multiple","api","dep-list","user-list","organization-list","chooseType"])])])])}),128))]))}}),s5="",up=de(K(dp,[["__scopeId","data-v-46507da1"]]));var ir={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(t){return"另外 "+t+" 个"},noEventsText:"没有事件显示"},Yn,j,lr,rr,Xt,Tt,ar,sr,cr,Qn={},dr=[],fp=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function mt(t,e){for(var n in e)t[n]=e[n];return t}function ur(t){var e=t.parentNode;e&&e.removeChild(t)}function E(t,e,n){var i,l,r,a={};for(r in e)r=="key"?i=e[r]:r=="ref"?l=e[r]:a[r]=e[r];if(arguments.length>2&&(a.children=arguments.length>3?Yn.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(r in t.defaultProps)a[r]===void 0&&(a[r]=t.defaultProps[r]);return Zn(t,a,i,l,null)}function Zn(t,e,n,i,l){var r={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:l??++lr};return l==null&&j.vnode!=null&&j.vnode(r),r}function De(){return{current:null}}function fe(t){return t.children}function pp(t,e,n,i,l){var r;for(r in n)r==="children"||r==="key"||r in e||Kn(t,r,null,n[r],i);for(r in e)l&&typeof e[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||n[r]===e[r]||Kn(t,r,e[r],n[r],i)}function fr(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||fp.test(e)?n:n+"px"}function Kn(t,e,n,i,l){var r;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof i=="string"&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||fr(t.style,e,"");if(n)for(e in n)i&&n[e]===i[e]||fr(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")r=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+r]=n,n?i||t.addEventListener(e,r?hr:pr,r):t.removeEventListener(e,r?hr:pr,r);else if(e!=="dangerouslySetInnerHTML"){if(l)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,n))}}function pr(t){Xt=!0;try{return this.l[t.type+!1](j.event?j.event(t):t)}finally{Xt=!1}}function hr(t){Xt=!0;try{return this.l[t.type+!0](j.event?j.event(t):t)}finally{Xt=!1}}function Me(t,e){this.props=t,this.context=e}function bn(t,e){if(e==null)return t.__?bn(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?bn(t):null}function mr(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return mr(t)}}function hp(t){Xt?setTimeout(t):sr(t)}function Jo(t){(!t.__d&&(t.__d=!0)&&Tt.push(t)&&!Xn.__r++||ar!==j.debounceRendering)&&((ar=j.debounceRendering)||hp)(Xn)}function Xn(){var t,e,n,i,l,r,a,s;for(Tt.sort(function(d,f){return d.__v.__b-f.__v.__b});t=Tt.shift();)t.__d&&(e=Tt.length,i=void 0,l=void 0,a=(r=(n=t).__v).__e,(s=n.__P)&&(i=[],(l=mt({},r)).__v=r.__v+1,ei(s,r,l,n.__n,s.ownerSVGElement!==void 0,r.__h!=null?[a]:null,i,a??bn(r),r.__h),Er(i,r),r.__e!=a&&mr(r)),Tt.length>e&&Tt.sort(function(d,f){return d.__v.__b-f.__v.__b}));Xn.__r=0}function gr(t,e,n,i,l,r,a,s,d,f){var u,g,h,c,_,p,m,b=i&&i.__k||dr,y=b.length;for(n.__k=[],u=0;u<e.length;u++)if((c=n.__k[u]=(c=e[u])==null||typeof c=="boolean"?null:typeof c=="string"||typeof c=="number"||typeof c=="bigint"?Zn(null,c,null,null,c):Array.isArray(c)?Zn(fe,{children:c},null,null,null):c.__b>0?Zn(c.type,c.props,c.key,c.ref?c.ref:null,c.__v):c)!=null){if(c.__=n,c.__b=n.__b+1,(h=b[u])===null||h&&c.key==h.key&&c.type===h.type)b[u]=void 0;else for(g=0;g<y;g++){if((h=b[g])&&c.key==h.key&&c.type===h.type){b[g]=void 0;break}h=null}ei(t,c,h=h||Qn,l,r,a,s,d,f),_=c.__e,(g=c.ref)&&h.ref!=g&&(m||(m=[]),h.ref&&m.push(h.ref,null,c),m.push(g,c.__c||_,c)),_!=null?(p==null&&(p=_),typeof c.type=="function"&&c.__k===h.__k?c.__d=d=_r(c,d,t):d=yr(t,c,h,b,_,d),typeof n.type=="function"&&(n.__d=d)):d&&h.__e==d&&d.parentNode!=t&&(d=bn(h))}for(n.__e=p,u=y;u--;)b[u]!=null&&(typeof n.type=="function"&&b[u].__e!=null&&b[u].__e==n.__d&&(n.__d=br(i).nextSibling),Cr(b[u],b[u]));if(m)for(u=0;u<m.length;u++)kr(m[u],m[++u],m[++u])}function _r(t,e,n){for(var i,l=t.__k,r=0;l&&r<l.length;r++)(i=l[r])&&(i.__=t,e=typeof i.type=="function"?_r(i,e,n):yr(n,i,i,l,i.__e,e));return e}function Jn(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){Jn(n,e)}):e.push(t)),e}function yr(t,e,n,i,l,r){var a,s,d;if(e.__d!==void 0)a=e.__d,e.__d=void 0;else if(n==null||l!=r||l.parentNode==null)e:if(r==null||r.parentNode!==t)t.appendChild(l),a=null;else{for(s=r,d=0;(s=s.nextSibling)&&d<i.length;d+=1)if(s==l)break e;t.insertBefore(l,r),a=r}return a!==void 0?a:l.nextSibling}function br(t){var e,n,i;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((n=t.__k[e])&&(i=br(n)))return i}return null}function ei(t,e,n,i,l,r,a,s,d){var f,u,g,h,c,_,p,m,b,y,w,v,O,x,C,k=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(d=n.__h,s=e.__e=n.__e,e.__h=null,r=[s]),(f=j.__b)&&f(e);try{e:if(typeof k=="function"){if(m=e.props,b=(f=k.contextType)&&i[f.__c],y=f?b?b.props.value:f.__:i,n.__c?p=(u=e.__c=n.__c).__=u.__E:("prototype"in k&&k.prototype.render?e.__c=u=new k(m,y):(e.__c=u=new Me(m,y),u.constructor=k,u.render=gp),b&&b.sub(u),u.props=m,u.state||(u.state={}),u.context=y,u.__n=i,g=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),k.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=mt({},u.__s)),mt(u.__s,k.getDerivedStateFromProps(m,u.__s))),h=u.props,c=u.state,u.__v=e,g)k.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(k.getDerivedStateFromProps==null&&m!==h&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(m,y),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(m,u.__s,y)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(u.props=m,u.state=u.__s,u.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(B){B&&(B.__=e)}),w=0;w<u._sb.length;w++)u.__h.push(u._sb[w]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(m,u.__s,y),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(h,c,_)})}if(u.context=y,u.props=m,u.__P=t,v=j.__r,O=0,"prototype"in k&&k.prototype.render){for(u.state=u.__s,u.__d=!1,v&&v(e),f=u.render(u.props,u.state,u.context),x=0;x<u._sb.length;x++)u.__h.push(u._sb[x]);u._sb=[]}else do u.__d=!1,v&&v(e),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++O<25);u.state=u.__s,u.getChildContext!=null&&(i=mt(mt({},i),u.getChildContext())),g||u.getSnapshotBeforeUpdate==null||(_=u.getSnapshotBeforeUpdate(h,c)),C=f!=null&&f.type===fe&&f.key==null?f.props.children:f,gr(t,Array.isArray(C)?C:[C],e,n,i,l,r,a,s,d),u.base=e.__e,e.__h=null,u.__h.length&&a.push(u),p&&(u.__E=u.__=null),u.__e=!1}else r==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=mp(n.__e,e,n,i,l,r,a,d);(f=j.diffed)&&f(e)}catch(B){e.__v=null,(d||r!=null)&&(e.__e=s,e.__h=!!d,r[r.indexOf(s)]=null),j.__e(B,e,n)}}function Er(t,e){j.__c&&j.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(i){i.call(n)})}catch(i){j.__e(i,n.__v)}})}function mp(t,e,n,i,l,r,a,s){var d,f,u,g=n.props,h=e.props,c=e.type,_=0;if(c==="svg"&&(l=!0),r!=null){for(;_<r.length;_++)if((d=r[_])&&"setAttribute"in d==!!c&&(c?d.localName===c:d.nodeType===3)){t=d,r[_]=null;break}}if(t==null){if(c===null)return document.createTextNode(h);t=l?document.createElementNS("http://www.w3.org/2000/svg",c):document.createElement(c,h.is&&h),r=null,s=!1}if(c===null)g===h||s&&t.data===h||(t.data=h);else{if(r=r&&Yn.call(t.childNodes),f=(g=n.props||Qn).dangerouslySetInnerHTML,u=h.dangerouslySetInnerHTML,!s){if(r!=null)for(g={},_=0;_<t.attributes.length;_++)g[t.attributes[_].name]=t.attributes[_].value;(u||f)&&(u&&(f&&u.__html==f.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(pp(t,h,g,l,s),u)e.__k=[];else if(_=e.props.children,gr(t,Array.isArray(_)?_:[_],e,n,i,l&&c!=="foreignObject",r,a,r?r[0]:n.__k&&bn(n,0),s),r!=null)for(_=r.length;_--;)r[_]!=null&&ur(r[_]);s||("value"in h&&(_=h.value)!==void 0&&(_!==t.value||c==="progress"&&!_||c==="option"&&_!==g.value)&&Kn(t,"value",_,g.value,!1),"checked"in h&&(_=h.checked)!==void 0&&_!==t.checked&&Kn(t,"checked",_,g.checked,!1))}return t}function kr(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(i){j.__e(i,n)}}function Cr(t,e,n){var i,l;if(j.unmount&&j.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||kr(i,null,e)),(i=t.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(r){j.__e(r,e)}i.base=i.__P=null,t.__c=void 0}if(i=t.__k)for(l=0;l<i.length;l++)i[l]&&Cr(i[l],e,n||typeof t.type!="function");n||t.__e==null||ur(t.__e),t.__=t.__e=t.__d=void 0}function gp(t,e,n){return this.constructor(t,n)}function En(t,e,n){var i,l,r;j.__&&j.__(t,e),l=(i=typeof n=="function")?null:n&&n.__k||e.__k,r=[],ei(e,t=(!i&&n||e).__k=E(fe,null,[t]),l||Qn,Qn,e.ownerSVGElement!==void 0,!i&&n?[n]:l?null:e.firstChild?Yn.call(e.childNodes):null,r,!i&&n?n:l?l.__e:e.firstChild,i),Er(r,t)}function _p(t,e){var n={__c:e="__cC"+cr++,__:t,Consumer:function(i,l){return i.children(l)},Provider:function(i){var l,r;return this.getChildContext||(l=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&l.some(function(s){s.__e=!0,Jo(s)})},this.sub=function(a){l.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){l.splice(l.indexOf(a),1),s&&s.call(a)}}),i.children}};return n.Provider.__=n.Consumer.contextType=n}Yn=dr.slice,j={__e:function(t,e,n,i){for(var l,r,a;e=e.__;)if((l=e.__c)&&!l.__)try{if((r=l.constructor)&&r.getDerivedStateFromError!=null&&(l.setState(r.getDerivedStateFromError(t)),a=l.__d),l.componentDidCatch!=null&&(l.componentDidCatch(t,i||{}),a=l.__d),a)return l.__E=l}catch(s){t=s}throw t}},lr=0,rr=function(t){return t!=null&&t.constructor===void 0},Xt=!1,Me.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=mt({},this.state),typeof t=="function"&&(t=t(mt({},n),this.props)),t&&mt(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Jo(this))},Me.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Jo(this))},Me.prototype.render=fe,Tt=[],sr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Xn.__r=0,cr=0;var Qe,ti,wr,vr=[],ni=[],Sr=j.__b,Ar=j.__r,xr=j.diffed,Dr=j.__c,Nr=j.unmount;function yp(){for(var t;t=vr.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(eo),t.__H.__h.forEach(oi),t.__H.__h=[]}catch(e){t.__H.__h=[],j.__e(e,t.__v)}}j.__b=function(t){Qe=null,Sr&&Sr(t)},j.__r=function(t){Ar&&Ar(t);var e=(Qe=t.__c).__H;e&&(ti===Qe?(e.__h=[],Qe.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ni,n.__N=n.i=void 0})):(e.__h.forEach(eo),e.__h.forEach(oi),e.__h=[])),ti=Qe},j.diffed=function(t){xr&&xr(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(vr.push(e)!==1&&wr===j.requestAnimationFrame||((wr=j.requestAnimationFrame)||bp)(yp)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ni&&(n.__=n.__V),n.i=void 0,n.__V=ni})),ti=Qe=null},j.__c=function(t,e){e.some(function(n){try{n.__h.forEach(eo),n.__h=n.__h.filter(function(i){return!i.__||oi(i)})}catch(i){e.some(function(l){l.__h&&(l.__h=[])}),e=[],j.__e(i,n.__v)}}),Dr&&Dr(t,e)},j.unmount=function(t){Nr&&Nr(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(i){try{eo(i)}catch(l){e=l}}),n.__H=void 0,e&&j.__e(e,n.__v))};var Vr=typeof requestAnimationFrame=="function";function bp(t){var e,n=function(){clearTimeout(i),Vr&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);Vr&&(e=requestAnimationFrame(n))}function eo(t){var e=Qe,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),Qe=e}function oi(t){var e=Qe;t.__c=t.__(),Qe=e}function Ep(t,e){for(var n in e)t[n]=e[n];return t}function Br(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var i in e)if(i!=="__source"&&t[i]!==e[i])return!0;return!1}function Tr(t){this.props=t}(Tr.prototype=new Me).isPureReactComponent=!0,Tr.prototype.shouldComponentUpdate=function(t,e){return Br(this.props,t)||Br(this.state,e)};var Rr=j.__b;j.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Rr&&Rr(t)};var kp=j.__e;j.__e=function(t,e,n,i){if(t.then){for(var l,r=e;r=r.__;)if((l=r.__c)&&l.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),l.__c(t,e)}kp(t,e,n,i)};var Ir=j.unmount;function Or(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(i){typeof i.__c=="function"&&i.__c()}),t.__c.__H=null),(t=Ep({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(i){return Or(i,e,n)})),t}function Mr(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(i){return Mr(i,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function ii(){this.__u=0,this.t=null,this.__b=null}function Lr(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function to(){this.u=null,this.o=null}j.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Ir&&Ir(t)},(ii.prototype=new Me).__c=function(t,e){var n=e.__c,i=this;i.t==null&&(i.t=[]),i.t.push(n);var l=Lr(i.__v),r=!1,a=function(){r||(r=!0,n.__R=null,l?l(s):s())};n.__R=a;var s=function(){if(!--i.__u){if(i.state.__a){var f=i.state.__a;i.__v.__k[0]=Mr(f,f.__c.__P,f.__c.__O)}var u;for(i.setState({__a:i.__b=null});u=i.t.pop();)u.forceUpdate()}},d=e.__h===!0;i.__u++||d||i.setState({__a:i.__b=i.__v.__k[0]}),t.then(a,a)},ii.prototype.componentWillUnmount=function(){this.t=[]},ii.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=Or(this.__b,n,i.__O=i.__P)}this.__b=null}var l=e.__a&&E(fe,null,t.fallback);return l&&(l.__h=null),[E(fe,null,e.__a?null:t.children),l]};var Pr=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function Cp(t){return this.getChildContext=function(){return t.context},t.children}function wp(t){var e=this,n=t.i;e.componentWillUnmount=function(){En(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(i){this.childNodes.push(i),e.i.appendChild(i)},insertBefore:function(i,l){this.childNodes.push(i),e.i.appendChild(i)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),e.i.removeChild(i)}}),En(E(Cp,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function vp(t,e){var n=E(wp,{__v:t,i:e});return n.containerInfo=e,n}(to.prototype=new Me).__a=function(t){var e=this,n=Lr(e.__v),i=e.o.get(t);return i[0]++,function(l){var r=function(){e.props.revealOrder?(i.push(l),Pr(e,t,i)):l()};n?n(r):r()}},to.prototype.render=function(t){this.u=null,this.o=new Map;var e=Jn(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},to.prototype.componentDidUpdate=to.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Pr(t,n,e)})};var Sp=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ap=/^(?: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]/,xp=typeof document<"u",Dp=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};Me.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Me.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var $r=j.event;function Np(){}function Vp(){return this.cancelBubble}function Bp(){return this.defaultPrevented}j.event=function(t){return $r&&(t=$r(t)),t.persist=Np,t.isPropagationStopped=Vp,t.isDefaultPrevented=Bp,t.nativeEvent=t};var zr={configurable:!0,get:function(){return this.class}},Fr=j.vnode;j.vnode=function(t){var e=t.type,n=t.props,i=n;if(typeof e=="string"){var l=e.indexOf("-")===-1;for(var r in i={},n){var a=n[r];xp&&r==="children"&&e==="noscript"||r==="value"&&"defaultValue"in n&&a==null||(r==="defaultValue"&&"value"in n&&n.value==null?r="value":r==="download"&&a===!0?a="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+e)&&!Dp(n.type)?r="oninput":/^onfocus$/i.test(r)?r="onfocusin":/^onblur$/i.test(r)?r="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(r)?r=r.toLowerCase():l&&Ap.test(r)?r=r.replace(/[A-Z0-9]/g,"-$&").toLowerCase():a===null&&(a=void 0),/^oninput$/i.test(r)&&(r=r.toLowerCase(),i[r]&&(r="oninputCapture")),i[r]=a)}e=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Jn(n.children).forEach(function(s){s.props.selected=i.value.indexOf(s.props.value)!=-1})),e=="select"&&i.defaultValue!=null&&(i.value=Jn(n.children).forEach(function(s){s.props.selected=i.multiple?i.defaultValue.indexOf(s.props.value)!=-1:i.defaultValue==s.props.value})),t.props=i,n.class!=n.className&&(zr.enumerable="className"in n,n.className!=null&&(i.class=n.className),Object.defineProperty(i,"className",zr))}t.$$typeof=Sp,Fr&&Fr(t)};var Hr=j.__r;j.__r=function(t){Hr&&Hr(t),t.__c};const Ur=[],li=new Map;function ri(t){Ur.push(t),li.forEach(e=>{Wr(e,t)})}function Tp(t){t.isConnected&&jr(t.getRootNode())}function jr(t){let e=li.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=Ip();n&&(e.nonce=n);const i=t===document?document.head:t,l=t===document?i.querySelector("script,link[rel=stylesheet],link[as=style],style"):i.firstChild;i.insertBefore(e,l)}li.set(t,e),Rp(e)}}function Rp(t){for(const e of Ur)Wr(t,e)}function Wr(t,e){const{sheet:n}=t,i=n.cssRules.length;e.split("}").forEach((l,r)=>{l=l.trim(),l&&n.insertRule(l+"}",i+r)})}let ai;function Ip(){return ai===void 0&&(ai=Op()),ai}function Op(){const t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&jr(document);var Mp=':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;-webkit-user-select: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;-webkit-user-select:none;-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)}';ri(Mp);class si{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:i}=this;e in i&&(n?delete i[e]:(i[e]-=1,i[e]<=0&&delete i[e]),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 ci(t){t.parentNode&&t.parentNode.removeChild(t)}function ve(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(Lp(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function Lp(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function Pp(t,e){let n=t instanceof HTMLElement?[t]:t,i=[];for(let l=0;l<n.length;l+=1){let r=n[l].querySelectorAll(e);for(let a=0;a<r.length;a+=1)i.push(r[a])}return i}const $p=/(top|left|right|bottom|width|height)$/i;function kn(t,e){for(let n in e)Gr(t,n,e[n])}function Gr(t,e,n){n==null?t.style[e]="":typeof n=="number"&&$p.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function qr(t){var e,n;return(n=(e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])!==null&&n!==void 0?n:t.target}let Yr=0;function no(){return Yr+=1,"fc-dom-"+Yr}function oo(t){t.preventDefault()}function zp(t,e){return n=>{let i=ve(n.target,t);i&&e.call(i,n,i)}}function Qr(t,e,n,i){let l=zp(n,i);return t.addEventListener(e,l),()=>{t.removeEventListener(e,l)}}function Fp(t,e,n,i){let l;return Qr(t,"mouseover",e,(r,a)=>{if(a!==l){l=a,n(r,a);let s=d=>{l=null,i(d,a),a.removeEventListener("mouseleave",s)};a.addEventListener("mouseleave",s)}})}const Zr=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Hp(t,e){let n=i=>{e(i),Zr.forEach(l=>{t.removeEventListener(l,n)})};Zr.forEach(i=>{t.addEventListener(i,n)})}function Kr(t){return Object.assign({onClick:t},Xr(t))}function Xr(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let Jr=0;function Rt(){return Jr+=1,String(Jr)}function di(){document.body.classList.add("fc-not-allowed")}function ui(){document.body.classList.remove("fc-not-allowed")}function Up(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",oo)}function jp(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",oo)}function Wp(t){t.addEventListener("contextmenu",oo)}function Gp(t){t.removeEventListener("contextmenu",oo)}function qp(t){let e=[],n=[],i,l;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),i=0;i<n.length;i+=1)l=n[i],typeof l=="string"?e.push(l.charAt(0)==="-"?{field:l.substring(1),order:-1}:{field:l,order:1}):typeof l=="function"&&e.push({func:l});return e}function Yp(t,e,n){let i,l;for(i=0;i<n.length;i+=1)if(l=Qp(t,e,n[i]),l)return l;return 0}function Qp(t,e,n){return n.func?n.func(t,e):Zp(t[n.field],e[n.field])*(n.order||1)}function Zp(t,e){return!t&&!e?0:e==null?-1:t==null?1:typeof t=="string"||typeof e=="string"?String(t).localeCompare(String(e)):t-e}function Jt(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function Cn(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((i,l,r)=>i.replace("$"+r,l||""),t):n}function Kp(t,e){return t-e}function io(t){return t%1===0}function Xp(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}const ea=["years","months","days","milliseconds"],Jp=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function ee(t,e){return typeof t=="string"?eh(t):typeof t=="object"&&t?ta(t):typeof t=="number"?ta({[e||"milliseconds"]:t}):null}function eh(t){let e=Jp.exec(t);if(e){let n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function ta(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=n*7,e.specifiedWeeks=!0),e}function th(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function fi(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function nh(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function oh(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function ih(t){return en(t)/365}function lh(t){return en(t)/30}function en(t){return Fe(t)/864e5}function Fe(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function pi(t,e){let n=null;for(let i=0;i<ea.length;i+=1){let l=ea[i];if(e[l]){let r=t[l]/e[l];if(!io(r)||n!==null&&n!==r)return null;n=r}else if(t[l])return null}return n}function hi(t){let e=t.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return t.days?t.specifiedWeeks&&t.days%7===0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function gt(t,e,n){if(t===e)return!0;let i=t.length,l;if(i!==e.length)return!1;for(l=0;l<i;l+=1)if(!(n?n(t[l],e[l]):t[l]===e[l]))return!1;return!0}const rh=["sun","mon","tue","wed","thu","fri","sat"];function na(t,e){let n=yt(t);return n[2]+=e*7,Ie(n)}function Se(t,e){let n=yt(t);return n[2]+=e,Ie(n)}function _t(t,e){let n=yt(t);return n[6]+=e,Ie(n)}function ah(t,e){return It(t,e)/7}function It(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function sh(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function ch(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function dh(t,e){return(e.valueOf()-t.valueOf())/1e3}function uh(t,e){let n=ue(t),i=ue(e);return{years:0,months:0,days:Math.round(It(n,i)),milliseconds:e.valueOf()-i.valueOf()-(t.valueOf()-n.valueOf())}}function fh(t,e){let n=lo(t,e);return n!==null&&n%7===0?n/7:null}function lo(t,e){return bt(t)===bt(e)?Math.round(It(t,e)):null}function ue(t){return Ie([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function ph(t){return Ie([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function hh(t){return Ie([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function mh(t){return Ie([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function gh(t,e,n){let i=t.getUTCFullYear(),l=mi(t,i,e,n);if(l<1)return mi(t,i-1,e,n);let r=mi(t,i+1,e,n);return r>=1?Math.min(l,r):l}function mi(t,e,n,i){let l=Ie([e,0,1+_h(e,n,i)]),r=ue(t),a=Math.round(It(l,r));return Math.floor(a/7)+1}function _h(t,e,n){let i=7+e-n;return-((7+Ie([t,0,i]).getUTCDay()-e)%7)+i-1}function oa(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function ia(t){return new Date(t[0],t[1]||0,t[2]==null?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function yt(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function Ie(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function la(t){return!isNaN(t.valueOf())}function bt(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function ra(t,e,n=!1){let i=t.toISOString();return i=i.replace(".000",""),n&&(i=i.replace("T00:00:00Z","")),i.length>10&&(e==null?i=i.replace("Z",""):e!==0&&(i=i.replace("Z",_i(e,!0)))),i}function gi(t){return t.toISOString().replace(/T.*$/,"")}function yh(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function bh(t){return Jt(t.getUTCHours(),2)+":"+Jt(t.getUTCMinutes(),2)+":"+Jt(t.getUTCSeconds(),2)}function _i(t,e=!1){let n=t<0?"-":"+",i=Math.abs(t),l=Math.floor(i/60),r=Math.round(i%60);return e?`${n+Jt(l,2)}:${Jt(r,2)}`:`GMT${n}${l}${r?`:${Jt(r,2)}`:""}`}function q(t,e,n){let i,l;return function(...r){if(!i)l=t.apply(this,r);else if(!gt(i,r)){n&&n(l);let a=t.apply(this,r);(!e||!e(a,l))&&(l=a)}return i=r,l}}function ro(t,e,n){let i,l;return r=>{if(!i)l=t.call(this,r);else if(!Ze(i,r)){n&&n(l);let a=t.call(this,r);(!e||!e(a,l))&&(l=a)}return i=r,l}}const aa={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},ao={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},so=/\s*([ap])\.?m\.?/i,Eh=/,/g,kh=/\s+/g,Ch=/\u200e/g,wh=/UTC|GMT/;class vh{constructor(e){let n={},i={},l=0;for(let r in e)r in aa?(i[r]=e[r],l=Math.max(aa[r],l)):(n[r]=e[r],r in ao&&(l=Math.max(ao[r],l)));this.standardDateProps=n,this.extendedSettings=i,this.severity=l,this.buildFormattingFunc=q(sa)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,i,l){let{standardDateProps:r,extendedSettings:a}=this,s=Vh(e.marker,n.marker,i.calendarSystem);if(!s)return this.format(e,i);let d=s;d>1&&(r.year==="numeric"||r.year==="2-digit")&&(r.month==="numeric"||r.month==="2-digit")&&(r.day==="numeric"||r.day==="2-digit")&&(d=1);let f=this.format(e,i),u=this.format(n,i);if(f===u)return f;let g=Bh(r,d),h=sa(g,a,i),c=h(e),_=h(n),p=Th(f,c,u,_),m=a.separator||l||i.defaultSeparator||"";return p?p.before+c+m+_+p.after:f+m+u}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 sa(t,e,n){let i=Object.keys(t).length;return i===1&&t.timeZoneName==="short"?l=>_i(l.timeZoneOffset):i===0&&e.week?l=>Nh(n.computeWeekNumber(l.marker),n.weekText,n.weekTextLong,n.locale,e.week):Sh(t,e,n)}function Sh(t,e,n){t=Object.assign({},t),e=Object.assign({},e),Ah(t,e),t.timeZone="UTC";let i=new Intl.DateTimeFormat(n.locale.codes,t),l;if(e.omitZeroMinute){let r=Object.assign({},t);delete r.minute,l=new Intl.DateTimeFormat(n.locale.codes,r)}return r=>{let{marker:a}=r,s;l&&!a.getUTCMinutes()?s=l:s=i;let d=s.format(a);return xh(d,r,t,e,n)}}function Ah(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),t.timeZoneName==="long"&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}function xh(t,e,n,i,l){return t=t.replace(Ch,""),n.timeZoneName==="short"&&(t=Dh(t,l.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":_i(e.timeZoneOffset))),i.omitCommas&&(t=t.replace(Eh,"").trim()),i.omitZeroMinute&&(t=t.replace(":00","")),i.meridiem===!1?t=t.replace(so,"").trim():i.meridiem==="narrow"?t=t.replace(so,(r,a)=>a.toLocaleLowerCase()):i.meridiem==="short"?t=t.replace(so,(r,a)=>`${a.toLocaleLowerCase()}m`):i.meridiem==="lowercase"&&(t=t.replace(so,r=>r.toLocaleLowerCase())),t=t.replace(kh," "),t=t.trim(),t}function Dh(t,e){let n=!1;return t=t.replace(wh,()=>(n=!0,e)),n||(t+=` ${e}`),t}function Nh(t,e,n,i,l){let r=[];return l==="long"?r.push(n):(l==="short"||l==="narrow")&&r.push(e),(l==="long"||l==="short")&&r.push(" "),r.push(i.simpleNumberFormat.format(t)),i.options.direction==="rtl"&&r.reverse(),r.join("")}function Vh(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:bt(t)!==bt(e)?1:0}function Bh(t,e){let n={};for(let i in t)(!(i in ao)||ao[i]<=e)&&(n[i]=t[i]);return n}function Th(t,e,n,i){let l=0;for(;l<t.length;){let r=t.indexOf(e,l);if(r===-1)break;let a=t.substr(0,r);l=r+e.length;let s=t.substr(l),d=0;for(;d<n.length;){let f=n.indexOf(i,d);if(f===-1)break;let u=n.substr(0,f);d=f+i.length;let g=n.substr(d);if(a===u&&s===g)return{before:a,after:s}}}return null}function ca(t,e){let n=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function co(t,e,n,i){let l=ca(t,n.calendarSystem),r=e?ca(e,n.calendarSystem):null;return{date:l,start:l,end:r,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:i||n.defaultSeparator}}class Rh{constructor(e){this.cmdStr=e}format(e,n,i){return n.cmdFormatter(this.cmdStr,co(e,null,n,i))}formatRange(e,n,i,l){return i.cmdFormatter(this.cmdStr,co(e,n,i,l))}}class Ih{constructor(e){this.func=e}format(e,n,i){return this.func(co(e,null,n,i))}formatRange(e,n,i,l){return this.func(co(e,n,i,l))}}function he(t){return typeof t=="object"&&t?new vh(t):typeof t=="string"?new Rh(t):typeof t=="function"?new Ih(t):null}const da={navLinkDayClick:N,navLinkWeekClick:N,duration:ee,bootstrapFontAwesome:N,buttonIcons:N,customButtons:N,defaultAllDayEventDuration:ee,defaultTimedEventDuration:ee,nextDayThreshold:ee,scrollTime:ee,scrollTimeReset:Boolean,slotMinTime:ee,slotMaxTime:ee,dayPopoverFormat:he,slotDuration:ee,snapDuration:ee,headerToolbar:N,footerToolbar:N,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:he,dayHeaderClassNames:N,dayHeaderContent:N,dayHeaderDidMount:N,dayHeaderWillUnmount:N,dayCellClassNames:N,dayCellContent:N,dayCellDidMount:N,dayCellWillUnmount:N,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:N,weekNumbers:Boolean,weekNumberClassNames:N,weekNumberContent:N,weekNumberDidMount:N,weekNumberWillUnmount:N,editable:Boolean,viewClassNames:N,viewDidMount:N,viewWillUnmount:N,nowIndicator:Boolean,nowIndicatorClassNames:N,nowIndicatorContent:N,nowIndicatorDidMount:N,nowIndicatorWillUnmount:N,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:N,locale:N,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:N,eventOrder:qp,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:N,contentHeight:N,direction:String,weekNumberFormat:he,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:N,initialDate:N,now:N,eventDataTransform:N,stickyHeaderDates:N,stickyFooterScrollbar:N,viewHeight:N,defaultAllDay:Boolean,eventSourceFailure:N,eventSourceSuccess:N,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:N,eventConstraint:N,eventAllow:N,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:N,eventContent:N,eventDidMount:N,eventWillUnmount:N,selectConstraint:N,selectOverlap:N,selectAllow:N,droppable:Boolean,unselectCancel:String,slotLabelFormat:N,slotLaneClassNames:N,slotLaneContent:N,slotLaneDidMount:N,slotLaneWillUnmount:N,slotLabelClassNames:N,slotLabelContent:N,slotLabelDidMount:N,slotLabelWillUnmount:N,dayMaxEvents:N,dayMaxEventRows:N,dayMinWidth:Number,slotLabelInterval:ee,allDayText:String,allDayClassNames:N,allDayContent:N,allDayDidMount:N,allDayWillUnmount:N,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:he,rerenderDelay:Number,moreLinkText:N,moreLinkHint:N,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:N,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:ee,hiddenDays:N,fixedWeekCount:Boolean,validRange:N,visibleRange:N,titleFormat:N,eventInteractive:Boolean,noEventsText:String,viewHint:N,navLinkHint:N,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:N,moreLinkClassNames:N,moreLinkContent:N,moreLinkDidMount:N,moreLinkWillUnmount:N,monthStartFormat:he,handleCustomRendering:N,customRenderingMetaMap:N,customRenderingReplaces:Boolean},wn={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"}},ua={datesSet:N,eventsSet:N,eventAdd:N,eventChange:N,eventRemove:N,windowResize:N,eventClick:N,eventMouseEnter:N,eventMouseLeave:N,select:N,unselect:N,loading:N,_unmount:N,_beforeprint:N,_afterprint:N,_noEventDrop:N,_noEventResize:N,_resize:N,_scrollRequest:N},fa={buttonText:N,buttonHints:N,views:N,plugins:N,initialEvents:N,events:N,eventSources:N},Ot={headerToolbar:Mt,footerToolbar:Mt,buttonText:Mt,buttonHints:Mt,buttonIcons:Mt,dateIncrement:Mt,plugins:uo,events:uo,eventSources:uo,resources:uo};function Mt(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?Ze(t,e):t===e}function uo(t,e){return Array.isArray(t)&&Array.isArray(e)?gt(t,e):t===e}const Oh={type:String,component:N,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:N,usesMinMaxTime:Boolean,classNames:N,content:N,didMount:N,willUnmount:N};function yi(t){return Ei(t,Ot)}function bi(t,e){let n={},i={};for(let l in e)l in t&&(n[l]=e[l](t[l]));for(let l in t)l in e||(i[l]=t[l]);return{refined:n,extra:i}}function N(t){return t}const{hasOwnProperty:fo}=Object.prototype;function Ei(t,e){let n={};if(e){for(let i in e)if(e[i]===Mt){let l=[];for(let r=t.length-1;r>=0;r-=1){let a=t[r][i];if(typeof a=="object"&&a)l.unshift(a);else if(a!==void 0){n[i]=a;break}}l.length&&(n[i]=Ei(l))}}for(let i=t.length-1;i>=0;i-=1){let l=t[i];for(let r in l)r in n||(n[r]=l[r])}return n}function Lt(t,e){let n={};for(let i in t)e(t[i],i)&&(n[i]=t[i]);return n}function nt(t,e){let n={};for(let i in t)n[i]=e(t[i],i);return n}function pa(t){let e={};for(let n of t)e[n]=!0;return e}function ki(t){let e=[];for(let n in t)e.push(t[n]);return e}function Ze(t,e){if(t===e)return!0;for(let n in t)if(fo.call(t,n)&&!(n in e))return!1;for(let n in e)if(fo.call(e,n)&&t[n]!==e[n])return!1;return!0}const Mh=/^on[A-Z]/;function Lh(t,e){const n=Ci(t,e);for(let i of n)if(!Mh.test(i))return!1;return!0}function Ci(t,e){let n=[];for(let i in t)fo.call(t,i)&&(i in e||n.push(i));for(let i in e)fo.call(e,i)&&t[i]!==e[i]&&n.push(i);return n}function wi(t,e,n={}){if(t===e)return!0;for(let i in e)if(!(i in t&&Ph(t[i],e[i],n[i])))return!1;for(let i in t)if(!(i in e))return!1;return!0}function Ph(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function $h(t,e=0,n,i=1){let l=[];n==null&&(n=Object.keys(t).length);for(let r=e;r<n;r+=i){let a=t[r];a!==void 0&&l.push(a)}return l}let ha={};function zh(t,e){ha[t]=e}function Fh(t){return new ha[t]}class Hh{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Ie(e)}markerToArray(e){return yt(e)}}zh("gregory",Hh);const Uh=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function jh(t){let e=Uh.exec(t);if(e){let n=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?+`0.${e[12]}`*1e3:0));if(la(n)){let i=null;return e[13]&&(i=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:n,isTimeUnspecified:!e[6],timeZoneOffset:i}}}return null}class Wh{constructor(e){let n=this.timeZone=e.timeZone,i=n!=="local"&&n!=="UTC";e.namedTimeZoneImpl&&i&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!i||this.namedTimeZoneImpl),this.calendarSystem=Fh(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay=="number"&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation=="function"&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let n=this.createMarkerMeta(e);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):Ie(oa(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let n=null;return typeof e=="number"?n=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(n=this.timestampToMarker(e))):Array.isArray(e)&&(n=Ie(e)),n===null||!la(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=jh(e);if(n===null)return null;let{marker:i}=n,l=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?i=this.timestampToMarker(i.valueOf()-n.timeZoneOffset*60*1e3):l=n.timeZoneOffset),{marker:i,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:l}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,n){let i=this.calendarSystem.markerToArray(e);return i[0]+=n.years,i[1]+=n.months,i[2]+=n.days,i[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(i)}subtract(e,n){let i=this.calendarSystem.markerToArray(e);return i[0]-=n.years,i[1]-=n.months,i[2]-=n.days,i[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(i)}addYears(e,n){let i=this.calendarSystem.markerToArray(e);return i[0]+=n,this.calendarSystem.arrayToMarker(i)}addMonths(e,n){let i=this.calendarSystem.markerToArray(e);return i[1]+=n,this.calendarSystem.arrayToMarker(i)}diffWholeYears(e,n){let{calendarSystem:i}=this;return bt(e)===bt(n)&&i.getMarkerDay(e)===i.getMarkerDay(n)&&i.getMarkerMonth(e)===i.getMarkerMonth(n)?i.getMarkerYear(n)-i.getMarkerYear(e):null}diffWholeMonths(e,n){let{calendarSystem:i}=this;return bt(e)===bt(n)&&i.getMarkerDay(e)===i.getMarkerDay(n)?i.getMarkerMonth(n)-i.getMarkerMonth(e)+(i.getMarkerYear(n)-i.getMarkerYear(e))*12:null}greatestWholeUnit(e,n){let i=this.diffWholeYears(e,n);return i!==null?{unit:"year",value:i}:(i=this.diffWholeMonths(e,n),i!==null?{unit:"month",value:i}:(i=fh(e,n),i!==null?{unit:"week",value:i}:(i=lo(e,n),i!==null?{unit:"day",value:i}:(i=sh(e,n),io(i)?{unit:"hour",value:i}:(i=ch(e,n),io(i)?{unit:"minute",value:i}:(i=dh(e,n),io(i)?{unit:"second",value:i}:{unit:"millisecond",value:n.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,n,i){let l;return i.years&&(l=this.diffWholeYears(e,n),l!==null)?l/ih(i):i.months&&(l=this.diffWholeMonths(e,n),l!==null)?l/lh(i):i.days&&(l=lo(e,n),l!==null)?l/en(i):(n.valueOf()-e.valueOf())/Fe(i)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?ue(e):n==="hour"?ph(e):n==="minute"?hh(e):n==="second"?mh(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):gh(e,this.weekDow,this.weekDoy)}format(e,n,i={}){return n.format({marker:e,timeZoneOffset:i.forcedTzo!=null?i.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,n,i,l={}){return l.isEndExclusive&&(n=_t(n,-1)),i.formatRange({marker:e,timeZoneOffset:l.forcedStartTzo!=null?l.forcedStartTzo:this.offsetForMarker(e)},{marker:n,timeZoneOffset:l.forcedEndTzo!=null?l.forcedEndTzo:this.offsetForMarker(n)},this,l.defaultSeparator)}formatIso(e,n={}){let i=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?i=n.forcedTzo:i=this.offsetForMarker(e)),ra(e,i,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?Ie(oa(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):Ie(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-ia(yt(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(yt(e)):null}toDate(e,n){return this.timeZone==="local"?ia(yt(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(yt(e))*1e3*60):new Date(e.valueOf()-(n||0))}}class vn{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let n,i;if(typeof e=="object"&&e){n=Object.assign({},this.iconClasses);for(i in e)n[i]=this.applyIconOverridePrefix(e[i]);this.iconClasses=n}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let n=this.iconOverridePrefix;return n&&e.indexOf(n)!==0&&(e=n+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,n){let i;return n&&this.rtlIconClasses?i=this.rtlIconClasses[e]||this.iconClasses[e]:i=this.iconClasses[e],i?`${this.baseIconClass} ${i}`:""}getCustomButtonIconClass(e){let n;return this.iconOverrideCustomButtonOption&&(n=e[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}vn.prototype.classes={},vn.prototype.iconClasses={},vn.prototype.baseIconClass="",vn.prototype.iconOverridePrefix="";function ma(t){t();let e=j.debounceRendering,n=[];function i(l){n.push(l)}for(j.debounceRendering=i,En(E(Gh,{}),document.createElement("div"));n.length;)n.shift()();j.debounceRendering=e}class Gh extends Me{render(){return E("div",{})}componentDidMount(){this.setState({})}}function ga(t){let e=_p(t),n=e.Provider;return e.Provider=function(){let i=!this.getChildContext,l=n.apply(this,arguments);if(i){let r=[];this.shouldComponentUpdate=a=>{this.props.value!==a.value&&r.forEach(s=>{s.context=a.value,s.forceUpdate()})},this.sub=a=>{r.push(a);let s=a.componentWillUnmount;a.componentWillUnmount=()=>{r.splice(r.indexOf(a),1),s&&s.call(a)}}}return l},e}class qh{constructor(e,n,i,l){this.execFunc=e,this.emitter=n,this.scrollTime=i,this.scrollTimeReset=l,this.handleScrollRequest=r=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},r),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const ot=ga({});function Yh(t,e,n,i,l,r,a,s,d,f,u,g,h){return{dateEnv:l,options:n,pluginHooks:a,emitter:f,dispatch:s,getCurrentData:d,calendarApi:u,viewSpec:t,viewApi:e,dateProfileGenerator:i,theme:r,isRtl:n.direction==="rtl",addResizeHandler(c){f.on("_resize",c)},removeResizeHandler(c){f.off("_resize",c)},createScrollResponder(c){return new qh(c,f,ee(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:g,unregisterInteractiveComponent:h}}class Pt extends Me{shouldComponentUpdate(e,n){return this.debug&&console.log(Ci(e,this.props),Ci(n,this.state)),!wi(this.props,e,this.propEquality)||!wi(this.state,n,this.stateEquality)}safeSetState(e){wi(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Pt.addPropsEquality=Qh,Pt.addStateEquality=Zh,Pt.contextType=ot,Pt.prototype.propEquality={},Pt.prototype.stateEquality={};class re extends Pt{}re.contextType=ot;function Qh(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function Zh(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function it(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class vi extends re{constructor(){super(...arguments),this.id=Rt(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:n}=this.context,{generatorName:i}=this.props;(!n.customRenderingReplaces||!Si(i,n))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&it(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:i}=n,{customGenerator:l,defaultGenerator:r,renderProps:a}=e,s=_a(e,[],this.handleEl);let d=!1,f,u=[],g;if(l!=null){const h=typeof l=="function"?l(a,E):l;if(h===!0)d=!0;else{const c=h&&typeof h=="object";c&&"html"in h?s.dangerouslySetInnerHTML={__html:h.html}:c&&"domNodes"in h?u=Array.prototype.slice.call(h.domNodes):(c?rr(h):typeof h!="function")?f=h:g=h}}else d=!Si(e.generatorName,i);return d&&r&&(f=r(a)),this.queuedDomNodes=u,this.currentGeneratorMeta=g,E(e.elTag,s,f)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;const{props:i,context:l}=this,{handleCustomRendering:r,customRenderingMetaMap:a}=l.options;if(r){const s=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:a==null?void 0:a[i.generatorName];s&&r(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:s},i),{elClasses:(i.elClasses||[]).filter(Kh)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,i=this.base;if(!gt(e,n)){n.forEach(ci);for(let l of e)i.appendChild(l);this.currentDomNodes=e}}}vi.addPropsEquality({elClasses:gt,elStyle:Ze,elAttrs:Lh,renderProps:Ze});function Si(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function _a(t,e,n){const i=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(i.className=(t.elClasses||[]).concat(e||[]).concat(i.className||[]).filter(Boolean).join(" ")),t.elStyle&&(i.style=t.elStyle),i}function Kh(t){return!!t}const ya=ga(0);class Le extends Me{constructor(){super(...arguments),this.InnerContent=Xh.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(it(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,n=Jh(e.classNameGenerator,e.renderProps);if(e.children){const i=_a(e,n,this.handleEl),l=e.children(this.InnerContent,e.renderProps,i);return e.elTag?E(e.elTag,i,l):l}else return E(vi,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var e,n;this.el?(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,n;(n=(e=this.props).willUnmount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}Le.contextType=ya;function Xh(t,e){const n=t.props;return E(vi,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function Jh(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class po extends re{render(){let{props:e,context:n}=this,{options:i}=n,l={view:n.viewApi};return E(Le,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...ba(e.viewSpec),...e.elClasses||[]],renderProps:l,classNameGenerator:i.viewClassNames,generatorName:void 0,didMount:i.viewDidMount,willUnmount:i.viewWillUnmount}),()=>e.children)}}function ba(t){return[`fc-${t.type}-view`,"fc-view"]}function em(t,e){let n=null,i=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(i=e.createMarker(t.end)),!n&&!i||n&&i&&i<n?null:{start:n,end:i}}function Ea(t,e){let n=[],{start:i}=e,l,r;for(t.sort(tm),l=0;l<t.length;l+=1)r=t[l],r.start>i&&n.push({start:i,end:r.start}),r.end>i&&(i=r.end);return i<e.end&&n.push({start:i,end:e.end}),n}function tm(t,e){return t.start.valueOf()-e.start.valueOf()}function $t(t,e){let{start:n,end:i}=t,l=null;return e.start!==null&&(n===null?n=e.start:n=new Date(Math.max(n.valueOf(),e.start.valueOf()))),e.end!=null&&(i===null?i=e.end:i=new Date(Math.min(i.valueOf(),e.end.valueOf()))),(n===null||i===null||n<i)&&(l={start:n,end:i}),l}function nm(t,e){return(t.start===null?null:t.start.valueOf())===(e.start===null?null:e.start.valueOf())&&(t.end===null?null:t.end.valueOf())===(e.end===null?null:e.end.valueOf())}function Ai(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function ho(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function lt(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function om(t,e){return e.start!=null&&t<e.start?e.start:e.end!=null&&t>=e.end?new Date(e.end.valueOf()-1):t}function ka(t){let e=Math.floor(It(t.start,t.end))||1,n=ue(t.start),i=Se(n,e);return{start:n,end:i}}function Ca(t,e=ee(0)){let n=null,i=null;if(t.end){i=ue(t.end);let l=t.end.valueOf()-i.valueOf();l&&l>=Fe(e)&&(i=Se(i,1))}return t.start&&(n=ue(t.start),i&&i<=n&&(i=Se(n,1))),{start:n,end:i}}function tn(t,e,n,i){return i==="year"?ee(n.diffWholeYears(t,e),"year"):i==="month"?ee(n.diffWholeMonths(t,e),"month"):uh(t,e)}function im(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function lm(t,e){let n=t.initialDate;return n!=null?e.createMarker(n):Sn(t.now,e)}function Sn(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class wa{constructor(e){this.props=e,this.nowDate=Sn(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,n,i){let{dateEnv:l}=this.props,r=l.subtract(l.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(r,-1,i)}buildNext(e,n,i){let{dateEnv:l}=this.props,r=l.add(l.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(r,1,i)}build(e,n,i=!0){let{props:l}=this,r,a,s,d,f,u;return r=this.buildValidRange(),r=this.trimHiddenDays(r),i&&(e=om(e,r)),a=this.buildCurrentRangeInfo(e,n),s=/^(year|month|week|day)$/.test(a.unit),d=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,s),d=this.trimHiddenDays(d),f=d,l.showNonCurrentDates||(f=$t(f,a.range)),f=this.adjustActiveRange(f),f=$t(f,r),u=Ai(a.range,r),lt(d,e)||(e=d.start),{currentDate:e,validRange:r,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:s,activeRange:f,renderRange:d,slotMinTime:l.slotMinTime,slotMaxTime:l.slotMaxTime,isValid:u,dateIncrement:this.buildDateIncrement(a.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:i}=this,l=null,r=null,a=null,s;return i.duration?(l=i.duration,r=i.durationUnit,a=this.buildRangeFromDuration(e,n,l,r)):(s=this.props.dayCount)?(r="day",a=this.buildRangeFromDayCount(e,n,s)):(a=this.buildCustomVisibleRange(e))?r=i.dateEnv.greatestWholeUnit(a.start,a.end).unit:(l=this.getFallbackDuration(),r=hi(l).unit,a=this.buildRangeFromDuration(e,n,l,r)),{duration:l,unit:r,range:a}}getFallbackDuration(){return ee({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:i,slotMinTime:l,slotMaxTime:r}=this.props,{start:a,end:s}=e;return i&&(en(l)<0&&(a=ue(a),a=n.add(a,l)),en(r)>1&&(s=ue(s),s=Se(s,-1),s=n.add(s,r))),{start:a,end:s}}buildRangeFromDuration(e,n,i,l){let{dateEnv:r,dateAlignment:a}=this.props,s,d,f;if(!a){let{dateIncrement:g}=this.props;g&&Fe(g)<Fe(i)?a=hi(g).unit:a=l}en(i)<=1&&this.isHiddenDay(s)&&(s=this.skipHiddenDays(s,n),s=ue(s));function u(){s=r.startOf(e,a),d=r.add(s,i),f={start:s,end:d}}return u(),this.trimHiddenDays(f)||(e=this.skipHiddenDays(e,n),u()),f}buildRangeFromDayCount(e,n,i){let{dateEnv:l,dateAlignment:r}=this.props,a=0,s=e,d;r&&(s=l.startOf(s,r)),s=ue(s),s=this.skipHiddenDays(s,n),d=s;do d=Se(d,1),this.isHiddenDay(d)||(a+=1);while(a<i);return{start:s,end:d}}buildCustomVisibleRange(e){let{props:n}=this,i=n.visibleRangeInput,l=typeof i=="function"?i.call(n.calendarApi,n.dateEnv.toDate(e)):i,r=this.refineRange(l);return r&&(r.start==null||r.end==null)?null:r}buildRenderRange(e,n,i){return e}buildDateIncrement(e){let{dateIncrement:n}=this.props,i;return n||((i=this.props.dateAlignment)?ee(1,i):e||ee({days:1}))}refineRange(e){if(e){let n=em(e,this.props.dateEnv);return n&&(n=Ca(n)),n}return null}initHiddenDays(){let e=this.props.hiddenDays||[],n=[],i=0,l;for(this.props.weekends===!1&&e.push(0,6),l=0;l<7;l+=1)(n[l]=e.indexOf(l)!==-1)||(i+=1);if(!i)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:n,end:i}=e;return n&&(n=this.skipHiddenDays(n)),i&&(i=this.skipHiddenDays(i,-1,!0)),n==null||i==null||n<i?{start:n,end:i}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,n=1,i=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(i?n:0)+7)%7];)e=Se(e,n);return e}}function xi(t,e,n,i){return{instanceId:Rt(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:i??null}}function rm(t,e,n,i){for(let l=0;l<i.length;l+=1){let r=i[l].parse(t,n);if(r){let{allDay:a}=t;return a==null&&(a=e,a==null&&(a=r.allDayGuess,a==null&&(a=!1))),{allDay:a,duration:r.duration,typeData:r.typeData,typeId:l}}}return null}function zt(t,e,n){let{dateEnv:i,pluginHooks:l,options:r}=n,{defs:a,instances:s}=t;s=Lt(s,d=>!a[d.defId].recurringDef);for(let d in a){let f=a[d];if(f.recurringDef){let{duration:u}=f.recurringDef;u||(u=f.allDay?r.defaultAllDayEventDuration:r.defaultTimedEventDuration);let g=am(f,u,e,i,l.recurringTypes);for(let h of g){let c=xi(d,{start:h,end:i.add(h,u)});s[c.instanceId]=c}}}return{defs:a,instances:s}}function am(t,e,n,i,l){let a=l[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:i.subtract(n.start,e),end:n.end},i);return t.allDay&&(a=a.map(ue)),a}const mo={id:String,groupId:String,title:String,url:String,interactive:Boolean},va={start:N,end:N,date:N,allDay:Boolean},sm=Object.assign(Object.assign(Object.assign({},mo),va),{extendedProps:N});function Sa(t,e,n,i,l=Di(n),r,a){let{refined:s,extra:d}=Aa(t,n,l),f=dm(e,n),u=rm(s,f,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let h=Ni(s,d,e?e.sourceId:"",u.allDay,!!u.duration,n,r);return h.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:h,instance:null}}let g=cm(s,f,n,i);if(g){let h=Ni(s,d,e?e.sourceId:"",g.allDay,g.hasEnd,n,r),c=xi(h.defId,g.range,g.forcedStartTzo,g.forcedEndTzo);return a&&h.publicId&&a[h.publicId]&&(c.instanceId=a[h.publicId]),{def:h,instance:c}}return null}function Aa(t,e,n=Di(e)){return bi(t,n)}function Di(t){return Object.assign(Object.assign(Object.assign({},_o),sm),t.pluginHooks.eventRefiners)}function Ni(t,e,n,i,l,r,a){let s={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(a&&t.id?a[t.id]:"")||Rt(),sourceId:n,allDay:i,hasEnd:l,interactive:t.interactive,ui:yo(t,r),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let d of r.pluginHooks.eventDefMemberAdders)Object.assign(s,d(t));return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function cm(t,e,n,i){let{allDay:l}=t,r,a=null,s=!1,d,f=null,u=t.start!=null?t.start:t.date;if(r=n.dateEnv.createMarkerMeta(u),r)a=r.marker;else if(!i)return null;return t.end!=null&&(d=n.dateEnv.createMarkerMeta(t.end)),l==null&&(e!=null?l=e:l=(!r||r.isTimeUnspecified)&&(!d||d.isTimeUnspecified)),l&&a&&(a=ue(a)),d&&(f=d.marker,l&&(f=ue(f)),a&&f<=a&&(f=null)),f?s=!0:i||(s=n.options.forceEventDuration||!1,f=n.dateEnv.add(a,l?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:l,hasEnd:s,range:{start:a,end:f},forcedStartTzo:r?r.forcedTzo:null,forcedEndTzo:d?d.forcedTzo:null}}function dm(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function An(t,e,n,i,l,r){let a=Pe(),s=Di(n);for(let d of t){let f=Sa(d,e,n,i,s,l,r);f&&Vi(f,a)}return a}function Vi(t,e=Pe()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function Bi(t,e){let n=t.instances[e];if(n){let i=t.defs[n.defId],l=go(t,r=>um(i,r));return l.defs[i.defId]=i,l.instances[n.instanceId]=n,l}return Pe()}function um(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function Pe(){return{defs:{},instances:{}}}function Ti(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function go(t,e){let n=Lt(t.defs,e),i=Lt(t.instances,l=>n[l.defId]);return{defs:n,instances:i}}function fm(t,e){let{defs:n,instances:i}=t,l={},r={};for(let a in n)e.defs[a]||(l[a]=n[a]);for(let a in i)!e.instances[a]&&l[i[a].defId]&&(r[a]=i[a]);return{defs:l,instances:r}}function pm(t,e){return Array.isArray(t)?An(t,null,e,!0):typeof t=="object"&&t?An([t],null,e,!0):t!=null?String(t):null}function xa(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const _o={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:N,overlap:N,allow:N,className:xa,classNames:xa,color:String,backgroundColor:String,borderColor:String,textColor:String},hm={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function yo(t,e){let n=pm(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:n!=null?[n]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function Da(t){return t.reduce(mm,hm)}function mm(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}const gm={id:String,defaultAllDay:Boolean,url:String,format:String,events:N,eventDataTransform:N,success:N,failure:N};function Na(t,e,n=Va(e)){let i;if(typeof t=="string"?i={url:t}:typeof t=="function"||Array.isArray(t)?i={events:t}:typeof t=="object"&&t&&(i=t),i){let{refined:l,extra:r}=bi(i,n),a=_m(l,e);if(a)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:l.defaultAllDay,eventDataTransform:l.eventDataTransform,success:l.success,failure:l.failure,publicId:l.id||"",sourceId:Rt(),sourceDefId:a.sourceDefId,meta:a.meta,ui:yo(l,e),extendedProps:r}}return null}function Va(t){return Object.assign(Object.assign(Object.assign({},_o),gm),t.pluginHooks.eventSourceRefiners)}function _m(t,e){let n=e.pluginHooks.eventSourceDefs;for(let i=n.length-1;i>=0;i-=1){let r=n[i].parseMeta(t);if(r)return{sourceDefId:i,meta:r}}return null}function ym(t,e,n,i,l){switch(e.type){case"RECEIVE_EVENTS":return bm(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,l);case"RESET_RAW_EVENTS":return Em(t,n[e.sourceId],e.rawEvents,i.activeRange,l);case"ADD_EVENTS":return km(t,e.eventStore,i?i.activeRange:null,l);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return Ti(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return i?zt(t,i.activeRange,l):t;case"REMOVE_EVENTS":return fm(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return Ia(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return go(t,r=>!r.sourceId);case"REMOVE_ALL_EVENTS":return Pe();default:return t}}function bm(t,e,n,i,l,r){if(e&&n===e.latestFetchId){let a=An(Ba(l,e,r),e,r);return i&&(a=zt(a,i,r)),Ti(Ia(t,e.sourceId),a)}return t}function Em(t,e,n,i,l){const{defIdMap:r,instanceIdMap:a}=wm(t);let s=An(Ba(n,e,l),e,l,!1,r,a);return zt(s,i,l)}function Ba(t,e,n){let i=n.options.eventDataTransform,l=e?e.eventDataTransform:null;return l&&(t=Ta(t,l)),i&&(t=Ta(t,i)),t}function Ta(t,e){let n;if(!e)n=t;else{n=[];for(let i of t){let l=e(i);l?n.push(l):l==null&&n.push(i)}}return n}function km(t,e,n,i){return n&&(e=zt(e,n,i)),Ti(t,e)}function Ra(t,e,n){let{defs:i}=t,l=nt(t.instances,r=>i[r.defId].allDay?r:Object.assign(Object.assign({},r),{range:{start:n.createMarker(e.toDate(r.range.start,r.forcedStartTzo)),end:n.createMarker(e.toDate(r.range.end,r.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:r.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:r.forcedEndTzo}));return{defs:i,instances:l}}function Ia(t,e){return go(t,n=>n.sourceId!==e)}function Cm(t,e){return{defs:t.defs,instances:Lt(t.instances,n=>!e[n.instanceId])}}function wm(t){const{defs:e,instances:n}=t,i={},l={};for(let r in e){const a=e[r],{publicId:s}=a;s&&(i[s]=r)}for(let r in n){const a=n[r],s=e[a.defId],{publicId:d}=s;d&&(l[d]=r)}return{defIdMap:i,instanceIdMap:l}}class bo{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){vm(this.handlers,e,n)}off(e,n){Sm(this.handlers,e,n)}trigger(e,...n){let i=this.handlers[e]||[],l=this.options&&this.options[e],r=[].concat(l||[],i);for(let a of r)a.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function vm(t,e,n){(t[e]||(t[e]=[])).push(n)}function Sm(t,e,n){n?t[e]&&(t[e]=t[e].filter(i=>i!==n)):delete t[e]}const Am={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function xm(t,e){return An(Dm(t),null,e)}function Dm(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(n=>n.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(n=>Object.assign(Object.assign({},Am),n)),e}function Oa(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},Ri(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Nm(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function Ri(t,e){let n={};for(let i of e.pluginHooks.dateSpanTransforms)Object.assign(n,i(t,e));return Object.assign(n,Um(t,e.dateEnv)),n}function Ma(t,e,n){let{dateEnv:i,options:l}=n,r=e;return t?(r=ue(r),r=i.add(r,l.defaultAllDayEventDuration)):r=i.add(r,l.defaultTimedEventDuration),r}function Ii(t,e,n,i){let l=Eo(t.defs,e),r=Pe();for(let a in t.defs){let s=t.defs[a];r.defs[a]=Vm(s,l[a],n,i)}for(let a in t.instances){let s=t.instances[a],d=r.defs[s.defId];r.instances[a]=Bm(s,d,l[s.defId],n,i)}return r}function Vm(t,e,n,i){let l=n.standardProps||{};l.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(l.hasEnd=!0);let r=Object.assign(Object.assign(Object.assign({},t),l),{ui:Object.assign(Object.assign({},t.ui),l.ui)});n.extendedProps&&(r.extendedProps=Object.assign(Object.assign({},r.extendedProps),n.extendedProps));for(let a of i.pluginHooks.eventDefMutationAppliers)a(r,n,i);return!r.hasEnd&&i.options.forceEventDuration&&(r.hasEnd=!0),r}function Bm(t,e,n,i,l){let{dateEnv:r}=l,a=i.standardProps&&i.standardProps.allDay===!0,s=i.standardProps&&i.standardProps.hasEnd===!1,d=Object.assign({},t);return a&&(d.range=ka(d.range)),i.datesDelta&&n.startEditable&&(d.range={start:r.add(d.range.start,i.datesDelta),end:r.add(d.range.end,i.datesDelta)}),i.startDelta&&n.durationEditable&&(d.range={start:r.add(d.range.start,i.startDelta),end:d.range.end}),i.endDelta&&n.durationEditable&&(d.range={start:d.range.start,end:r.add(d.range.end,i.endDelta)}),s&&(d.range={start:d.range.start,end:Ma(e.allDay,d.range.start,l)}),e.allDay&&(d.range={start:ue(d.range.start),end:ue(d.range.end)}),d.range.end<d.range.start&&(d.range.end=Ma(e.allDay,d.range.start,l)),d}class nn{constructor(e,n){this.context=e,this.internalEventSource=n}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 pe{constructor(e,n,i){this._context=e,this._def=n,this._instance=i||null}setProp(e,n){if(e in va)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=mo[e](n),this.mutate({standardProps:{publicId:n}});else if(e in mo)n=mo[e](n),this.mutate({standardProps:{[e]:n}});else if(e in _o){let i=_o[e](n);e==="color"?i={backgroundColor:n,borderColor:n}:e==="editable"?i={startEditable:n,durationEditable:n}:i={[e]:n},this.mutate({standardProps:{ui:i}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,n){this.mutate({extendedProps:{[e]:n}})}setStart(e,n={}){let{dateEnv:i}=this._context,l=i.createMarker(e);if(l&&this._instance){let r=this._instance.range,a=tn(r.start,l,i,n.granularity);n.maintainDuration?this.mutate({datesDelta:a}):this.mutate({startDelta:a})}}setEnd(e,n={}){let{dateEnv:i}=this._context,l;if(!(e!=null&&(l=i.createMarker(e),!l))&&this._instance)if(l){let r=tn(this._instance.range.end,l,i,n.granularity);this.mutate({endDelta:r})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,n,i={}){let{dateEnv:l}=this._context,r={allDay:i.allDay},a=l.createMarker(e),s;if(a&&!(n!=null&&(s=l.createMarker(n),!s))&&this._instance){let d=this._instance.range;i.allDay===!0&&(d=ka(d));let f=tn(d.start,a,l,i.granularity);if(s){let u=tn(d.end,s,l,i.granularity);th(f,u)?this.mutate({datesDelta:f,standardProps:r}):this.mutate({startDelta:f,endDelta:u,standardProps:r})}else r.hasEnd=!1,this.mutate({datesDelta:f,standardProps:r})}}moveStart(e){let n=ee(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=ee(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=ee(e);n&&this.mutate({datesDelta:n})}setAllDay(e,n={}){let i={allDay:e},{maintainDuration:l}=n;l==null&&(l=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(i.hasEnd=l),this.mutate({standardProps:i})}formatRange(e){let{dateEnv:n}=this._context,i=this._instance,l=he(e);return this._def.hasEnd?n.formatRange(i.range.start,i.range.end,l,{forcedStartTzo:i.forcedStartTzo,forcedEndTzo:i.forcedEndTzo}):n.format(i.range.start,l,{forcedTzo:i.forcedStartTzo})}mutate(e){let n=this._instance;if(n){let i=this._def,l=this._context,{eventStore:r}=l.getCurrentData(),a=Bi(r,n.instanceId);a=Ii(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,l);let d=new pe(l,i,n);this._def=a.defs[i.defId],this._instance=a.instances[n.instanceId],l.dispatch({type:"MERGE_EVENTS",eventStore:a}),l.emitter.trigger("eventChange",{oldEvent:d,event:this,relatedEvents:Ft(a,l,n),revert(){l.dispatch({type:"RESET_EVENTS",eventStore:r})}})}}remove(){let e=this._context,n=La(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:n}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:e}=this._def;return e?new nn(this._context,this._context.getCurrentData().eventSources[e]):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 e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.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(e={}){let n=this._def,{ui:i}=n,{startStr:l,endStr:r}=this,a={allDay:n.allDay};return n.title&&(a.title=n.title),l&&(a.start=l),r&&(a.end=r),n.publicId&&(a.id=n.publicId),n.groupId&&(a.groupId=n.groupId),n.url&&(a.url=n.url),i.display&&i.display!=="auto"&&(a.display=i.display),e.collapseColor&&i.backgroundColor&&i.backgroundColor===i.borderColor?a.color=i.backgroundColor:(i.backgroundColor&&(a.backgroundColor=i.backgroundColor),i.borderColor&&(a.borderColor=i.borderColor)),i.textColor&&(a.textColor=i.textColor),i.classNames.length&&(a.classNames=i.classNames),Object.keys(n.extendedProps).length&&(e.collapseExtendedProps?Object.assign(a,n.extendedProps):a.extendedProps=n.extendedProps),a}toJSON(){return this.toPlainObject()}}function La(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function Ft(t,e,n){let{defs:i,instances:l}=t,r=[],a=n?n.instanceId:"";for(let s in l){let d=l[s],f=i[d.defId];d.instanceId!==a&&r.push(new pe(e,f,d))}return r}function Pa(t,e,n,i){let l={},r={},a={},s=[],d=[],f=Eo(t.defs,e);for(let u in t.defs){let g=t.defs[u];f[g.defId].display==="inverse-background"&&(g.groupId?(l[g.groupId]=[],a[g.groupId]||(a[g.groupId]=g)):r[u]=[])}for(let u in t.instances){let g=t.instances[u],h=t.defs[g.defId],c=f[h.defId],_=g.range,p=!h.allDay&&i?Ca(_,i):_,m=$t(p,n);m&&(c.display==="inverse-background"?h.groupId?l[h.groupId].push(m):r[g.defId].push(m):c.display!=="none"&&(c.display==="background"?s:d).push({def:h,ui:c,instance:g,range:m,isStart:p.start&&p.start.valueOf()===m.start.valueOf(),isEnd:p.end&&p.end.valueOf()===m.end.valueOf()}))}for(let u in l){let g=l[u],h=Ea(g,n);for(let c of h){let _=a[u],p=f[_.defId];s.push({def:_,ui:p,instance:null,range:c,isStart:!1,isEnd:!1})}}for(let u in r){let g=r[u],h=Ea(g,n);for(let c of h)s.push({def:t.defs[u],ui:f[u],instance:null,range:c,isStart:!1,isEnd:!1})}return{bg:s,fg:d}}function Tm(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function $a(t,e){t.fcSeg=e}function on(t){return t.fcSeg||t.parentNode.fcSeg||null}function Eo(t,e){return nt(t,n=>za(n,e))}function za(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),Da(n)}function Fa(t,e){let n=t.map(Rm);return n.sort((i,l)=>Yp(i,l,e)),n.map(i=>i._seg)}function Rm(t){let{eventRange:e}=t,n=e.def,i=e.instance?e.instance.range:e.range,l=i.start?i.start.valueOf():0,r=i.end?i.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:l,end:r,duration:r-l,allDay:Number(n.allDay),_seg:t})}function Im(t,e){let{pluginHooks:n}=e,i=n.isDraggableTransformers,{def:l,ui:r}=t.eventRange,a=r.startEditable;for(let s of i)a=s(a,l,r,e);return a}function Om(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function Mm(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function Ha(t,e,n,i,l,r,a){let{dateEnv:s,options:d}=n,{displayEventTime:f,displayEventEnd:u}=d,g=t.eventRange.def,h=t.eventRange.instance;f==null&&(f=i!==!1),u==null&&(u=l!==!1);let c=h.range.start,_=h.range.end,p=r||t.start||t.eventRange.range.start,m=a||t.end||t.eventRange.range.end,b=ue(c).valueOf()===ue(p).valueOf(),y=ue(_t(_,-1)).valueOf()===ue(_t(m,-1)).valueOf();return f&&!g.allDay&&(b||y)?(p=b?c:p,m=y?_:m,u&&g.hasEnd?s.formatRange(p,m,e,{forcedStartTzo:r?null:h.forcedStartTzo,forcedEndTzo:a?null:h.forcedEndTzo}):s.format(p,e,{forcedTzo:r?null:h.forcedStartTzo})):""}function Et(t,e,n){let i=t.eventRange.range;return{isPast:i.end<(n||e.start),isFuture:i.start>=(n||e.end),isToday:e&<(e,i.start)}}function Lm(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function Ua(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function ja(t,e){let{def:n,instance:i}=t.eventRange,{url:l}=n;if(l)return{href:l};let{emitter:r,options:a}=e,{eventInteractive:s}=a;return s==null&&(s=n.interactive,s==null&&(s=!!r.hasHandlers("eventClick"))),s?Xr(d=>{r.trigger("eventClick",{el:d.target,event:new pe(e,n,i),jsEvent:d,view:e.viewApi})}):{}}const Pm={start:N,end:N,allDay:Boolean};function $m(t,e,n){let i=zm(t,e),{range:l}=i;if(!l.start)return null;if(!l.end){if(n==null)return null;l.end=e.add(l.start,n)}return i}function zm(t,e){let{refined:n,extra:i}=bi(t,Pm),l=n.start?e.createMarkerMeta(n.start):null,r=n.end?e.createMarkerMeta(n.end):null,{allDay:a}=n;return a==null&&(a=l&&l.isTimeUnspecified&&(!r||r.isTimeUnspecified)),Object.assign({range:{start:l?l.marker:null,end:r?r.marker:null},allDay:a},i)}function Fm(t,e){return nm(t.range,e.range)&&t.allDay===e.allDay&&Hm(t,e)}function Hm(t,e){for(let n in e)if(n!=="range"&&n!=="allDay"&&t[n]!==e[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}function Um(t,e){return Object.assign(Object.assign({},Ga(t.range,e,t.allDay)),{allDay:t.allDay})}function Wa(t,e,n){return Object.assign(Object.assign({},Ga(t,e,n)),{timeZone:e.timeZone})}function Ga(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function jm(t,e,n){let i=Aa({editable:!1},n),l=Ni(i.refined,i.extra,"",t.allDay,!0,n);return{def:l,ui:za(l,e),instance:xi(l.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function Wm(t,e,n){let i=!1,l=function(s){i||(i=!0,e(s))},r=function(s){i||(i=!0,n(s))},a=t(l,r);a&&typeof a.then=="function"&&a.then(l,r)}class qa extends Error{constructor(e,n){super(e),this.response=n}}function Gm(t,e,n){t=t.toUpperCase();const i={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(i.body=new URLSearchParams(n),i.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,i).then(l=>{if(l.ok)return l.json().then(r=>[r,l],()=>{throw new qa("Failure parsing JSON",l)});throw new qa("Request failed",l)})}let Oi;function Ya(){return Oi==null&&(Oi=qm()),Oi}function qm(){if(typeof document>"u")return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="<table><tr><td><div></div></td></tr></table>",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}class Ym extends re{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options:n}=e,{forPrint:i}=this.state,l=i||n.height==="auto"||n.contentHeight==="auto",r=!l&&n.height!=null?n.height:"",a=["fc",i?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return Ya()||a.push("fc-liquid-hack"),e.children(a,r,l,i)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class ln{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function Qm(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function Mi(t){return{[t.component.uid]:t}}const Li={};class Zm{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:i}=this;i.currentCalendarOptionsRefiners[e]?i.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:i}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:i.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let i=this.getCurrentData(),l;n=n||"day",l=i.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),l?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:l.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:i}=this.getCurrentData(),l=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]),r,a;for(let s in n)l.push(s);for(r=0;r<l.length;r+=1)if(a=n[l[r]],a&&a.singleUnit===e)return a;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Sn(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(e)})}incrementDate(e){let n=this.getCurrentData(),i=ee(e);i&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,i)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,n){let{dateEnv:i}=this.getCurrentData();return i.format(i.createMarker(e),he(n))}formatRange(e,n,i){let{dateEnv:l}=this.getCurrentData();return l.formatRange(l.createMarker(e),l.createMarker(n),he(i),i)}formatIso(e,n){let{dateEnv:i}=this.getCurrentData();return i.formatIso(i.createMarker(e),{omitTime:n})}select(e,n){let i;n==null?e.start!=null?i=e:i={start:e,end:null}:i={start:e,end:n};let l=this.getCurrentData(),r=$m(i,l.dateEnv,ee({days:1}));r&&(this.dispatch({type:"SELECT_DATES",selection:r}),Oa(r,null,l))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),Nm(e,n))}addEvent(e,n){if(e instanceof pe){let a=e._def,s=e._instance;return this.getCurrentData().eventStore.defs[a.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Vi({def:a,instance:s})}),this.triggerEventAdd(e)),e}let i=this.getCurrentData(),l;if(n instanceof nn)l=n.internalEventSource;else if(typeof n=="boolean")n&&([l]=ki(i.eventSources));else if(n!=null){let a=this.getEventSourceById(n);if(!a)return console.warn(`Could not find an event source with ID "${n}"`),null;l=a.internalEventSource}let r=Sa(e,l,i,!1);if(r){let a=new pe(i,r.def,r.def.recurringDef?null:r.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Vi(r)}),this.triggerEventAdd(a),a}return null}triggerEventAdd(e){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:La(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:i,instances:l}=n.eventStore;e=String(e);for(let r in i){let a=i[r];if(a.publicId===e){if(a.recurringDef)return new pe(n,a,null);for(let s in l){let d=l[s];if(d.defId===a.defId)return new pe(n,a,d)}}}return null}getEvents(){let e=this.getCurrentData();return Ft(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,i=[];for(let l in n)i.push(new nn(e,n[l]));return i}getEventSourceById(e){let n=this.getCurrentData(),i=n.eventSources;e=String(e);for(let l in i)if(i[l].publicId===e)return new nn(n,i[l]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof nn)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let i=Na(e,n);return i?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[i]}),new nn(n,i)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=ee(e);n&&this.trigger("_scrollRequest",{time:n})}}function Km(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function Qa(t,e){let n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}function Xm(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}function Jm(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function eg(t,e){return{left:t.left-e.left,top:t.top-e.top}}const Pi=Pe();class tg{constructor(){this.getKeysForEventDefs=q(this._getKeysForEventDefs),this.splitDateSelection=q(this._splitDateSpan),this.splitEventStore=q(this._splitEventStore),this.splitIndividualUi=q(this._splitIndividualUi),this.splitEventDrag=q(this._splitInteraction),this.splitEventResize=q(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let n=this.getKeyInfo(e),i=this.getKeysForEventDefs(e.eventStore),l=this.splitDateSelection(e.dateSelection),r=this.splitIndividualUi(e.eventUiBases,i),a=this.splitEventStore(e.eventStore,i),s=this.splitEventDrag(e.eventDrag),d=this.splitEventResize(e.eventResize),f={};this.eventUiBuilders=nt(n,(u,g)=>this.eventUiBuilders[g]||q(ng));for(let u in n){let g=n[u],h=a[u]||Pi,c=this.eventUiBuilders[u];f[u]={businessHours:g.businessHours||e.businessHours,dateSelection:l[u]||null,eventStore:h,eventUiBases:c(e.eventUiBases[""],g.ui,r[u]),eventSelection:h.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[u]||null,eventResize:d[u]||null}}return f}_splitDateSpan(e){let n={};if(e){let i=this.getKeysForDateSpan(e);for(let l of i)n[l]=e}return n}_getKeysForEventDefs(e){return nt(e.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(e,n){let{defs:i,instances:l}=e,r={};for(let a in i)for(let s of n[a])r[s]||(r[s]=Pe()),r[s].defs[a]=i[a];for(let a in l){let s=l[a];for(let d of n[s.defId])r[d]&&(r[d].instances[a]=s)}return r}_splitIndividualUi(e,n){let i={};for(let l in e)if(l)for(let r of n[l])i[r]||(i[r]={}),i[r][l]=e[l];return i}_splitInteraction(e){let n={};if(e){let i=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),l=this._getKeysForEventDefs(e.mutatedEvents),r=this._splitEventStore(e.mutatedEvents,l),a=s=>{n[s]||(n[s]={affectedEvents:i[s]||Pi,mutatedEvents:r[s]||Pi,isEvent:e.isEvent})};for(let s in i)a(s);for(let s in r)a(s)}return n}}function ng(t,e,n){let i=[];t&&i.push(t),e&&i.push(e);let l={"":Da(i)};return n&&Object.assign(l,n),l}function Za(t,e,n,i){return{dow:t.getUTCDay(),isDisabled:!!(i&&!lt(i.activeRange,t)),isOther:!!(i&&!lt(i.currentRange,t)),isToday:!!(e&<(e,t)),isPast:!!(n?t<n:e&&t<e.start),isFuture:!!(n?t>n:e&&t>=e.end)}}function $i(t,e){let n=["fc-day",`fc-day-${rh[t.dow]}`];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}const og=he({year:"numeric",month:"long",day:"numeric"}),ig=he({week:"long"});function ko(t,e,n="day",i=!0){const{dateEnv:l,options:r,calendarApi:a}=t;let s=l.format(e,n==="week"?ig:og);if(r.navLinks){let d=l.toDate(e);const f=u=>{let g=n==="day"?r.navLinkDayClick:n==="week"?r.navLinkWeekClick:null;typeof g=="function"?g.call(a,l.toDate(e),u):(typeof g=="string"&&(n=g),a.zoomTo(e,n))};return Object.assign({title:Cn(r.navLinkHint,[s,d],s),"data-navlink":""},i?Kr(f):{onClick:f})}return{"aria-label":s}}let zi=null;function lg(){return zi===null&&(zi=rg()),zi}function rg(){let t=document.createElement("div");kn(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);let n=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return ci(t),n}let Fi;function ag(){return Fi||(Fi=sg()),Fi}function sg(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=Ka(t);return document.body.removeChild(t),e}function Ka(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function cg(t,e=!1){let n=window.getComputedStyle(t),i=parseInt(n.borderLeftWidth,10)||0,l=parseInt(n.borderRightWidth,10)||0,r=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,s=Ka(t),d=s.y-i-l,f=s.x-r-a,u={borderLeft:i,borderRight:l,borderTop:r,borderBottom:a,scrollbarBottom:f,scrollbarLeft:0,scrollbarRight:0};return lg()&&n.direction==="rtl"?u.scrollbarLeft=d:u.scrollbarRight=d,e&&(u.paddingLeft=parseInt(n.paddingLeft,10)||0,u.paddingRight=parseInt(n.paddingRight,10)||0,u.paddingTop=parseInt(n.paddingTop,10)||0,u.paddingBottom=parseInt(n.paddingBottom,10)||0),u}function dg(t,e=!1,n){let i=n?t.getBoundingClientRect():Hi(t),l=cg(t,e),r={left:i.left+l.borderLeft+l.scrollbarLeft,right:i.right-l.borderRight-l.scrollbarRight,top:i.top+l.borderTop,bottom:i.bottom-l.borderBottom-l.scrollbarBottom};return e&&(r.left+=l.paddingLeft,r.right-=l.paddingRight,r.top+=l.paddingTop,r.bottom-=l.paddingBottom),r}function Hi(t){let e=t.getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,right:e.right+window.pageXOffset,bottom:e.bottom+window.pageYOffset}}function ug(t){let e=Xa(t),n=t.getBoundingClientRect();for(let i of e){let l=Qa(n,i.getBoundingClientRect());if(l)n=l;else return null}return n}function Xa(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}class rn{constructor(e,n,i,l){this.els=n;let r=this.originClientRect=e.getBoundingClientRect();i&&this.buildElHorizontals(r.left),l&&this.buildElVerticals(r.top)}buildElHorizontals(e){let n=[],i=[];for(let l of this.els){let r=l.getBoundingClientRect();n.push(r.left-e),i.push(r.right-e)}this.lefts=n,this.rights=i}buildElVerticals(e){let n=[],i=[];for(let l of this.els){let r=l.getBoundingClientRect();n.push(r.top-e),i.push(r.bottom-e)}this.tops=n,this.bottoms=i}leftToIndex(e){let{lefts:n,rights:i}=this,l=n.length,r;for(r=0;r<l;r+=1)if(e>=n[r]&&e<i[r])return r}topToIndex(e){let{tops:n,bottoms:i}=this,l=n.length,r;for(r=0;r<l;r+=1)if(e>=n[r]&&e<i[r])return r}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Co(this.tops||[],e.tops||[])&&Co(this.bottoms||[],e.bottoms||[])&&Co(this.lefts||[],e.lefts||[])&&Co(this.rights||[],e.rights||[])}}function Co(t,e){const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(Math.round(t[i])!==Math.round(e[i]))return!1;return!0}class Ui{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 fg extends Ui{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class pg extends Ui{getScrollTop(){return window.pageYOffset}getScrollLeft(){return window.pageXOffset}setScrollTop(e){window.scroll(window.pageXOffset,e)}setScrollLeft(e){window.scroll(e,window.pageYOffset)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class Ke extends re{constructor(){super(...arguments),this.uid=Rt()}prepareHits(){}queryHit(e,n,i,l){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!ve(e,".fc-event-mirror")}isValidDateDownEl(e){return!ve(e,".fc-event:not(.fc-bg-event)")&&!ve(e,".fc-more-link")&&!ve(e,"a[data-navlink]")&&!ve(e,".fc-popover")}}class Ja{constructor(e=n=>n.thickness){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let n=[];for(let i of e)this.insertEntry(i,n);return n}insertEntry(e,n){let i=this.findInsertion(e);return this.isInsertionValid(i,e)?(this.insertEntryAt(e,i),1):this.handleInvalidInsertion(i,e,n)}isInsertionValid(e,n){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,n,i){return this.allowReslicing&&e.touchingEntry?this.splitEntry(n,e.touchingEntry,i):(i.push(n),0)}splitEntry(e,n,i){let l=0,r=[],a=e.span,s=n.span;return a.start<s.start&&(l+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.start,end:s.start}},r)),a.end>s.end&&(l+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:a.end}},r)),l?(i.push({index:e.index,thickness:e.thickness,span:Wi(s,a)},...r),l):(i.push(e),0)}insertEntryAt(e,n){let{entriesByLevel:i,levelCoords:l}=this;n.lateral===-1?(Gi(l,n.level,n.levelCoord),Gi(i,n.level,[e])):Gi(i[n.level],n.lateral,e),this.stackCnts[Ht(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:i,strictOrder:l,stackCnts:r}=this,a=n.length,s=0,d=-1,f=-1,u=null,g=0;for(let _=0;_<a;_+=1){let p=n[_];if(!l&&p>=s+this.getEntryThickness(e))break;let m=i[_],b,y=qi(m,e.span.start,ji),w=y[0]+y[1];for(;(b=m[w])&&b.span.start<e.span.end;){let v=p+this.getEntryThickness(b);v>s&&(s=v,u=b,d=_,f=w),v===s&&(g=Math.max(g,r[Ht(b)]+1)),w+=1}}let h=0;if(u)for(h=d+1;h<a&&n[h]<s;)h+=1;let c=-1;return h<a&&n[h]===s&&(c=qi(i[h],e.span.end,ji)[0]),{touchingLevel:d,touchingLateral:f,touchingEntry:u,stackCnt:g,levelCoord:s,level:h,lateral:c}}toRects(){let{entriesByLevel:e,levelCoords:n}=this,i=e.length,l=[];for(let r=0;r<i;r+=1){let a=e[r],s=n[r];for(let d of a)l.push(Object.assign(Object.assign({},d),{thickness:this.getEntryThickness(d),levelCoord:s}))}return l}}function ji(t){return t.span.end}function Ht(t){return t.index+":"+t.span.start}function hg(t){let e=[];for(let n of t){let i=[],l={span:n.span,entries:[n]};for(let r of e)Wi(r.span,l.span)?l={entries:r.entries.concat(l.entries),span:mg(r.span,l.span)}:i.push(r);i.push(l),e=i}return e}function mg(t,e){return{start:Math.min(t.start,e.start),end:Math.max(t.end,e.end)}}function Wi(t,e){let n=Math.max(t.start,e.start),i=Math.min(t.end,e.end);return n<i?{start:n,end:i}:null}function Gi(t,e,n){t.splice(e,0,n)}function qi(t,e,n){let i=0,l=t.length;if(!l||e<n(t[i]))return[0,0];if(e>n(t[l-1]))return[l,0];for(;i<l;){let r=Math.floor(i+(l-i)/2),a=n(t[r]);if(e<a)l=r;else if(e>a)i=r+1;else return[r,1]}return[i,0]}class gg{constructor(e,n){this.emitter=new bo}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const Yi={};function _g(t,e){return!t||e>10?he({weekday:"short"}):e>1?he({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):he({weekday:"long"})}const es="fc-col-header-cell";function ts(t){return t.text}class yg extends re{render(){let{dateEnv:e,options:n,theme:i,viewApi:l}=this.context,{props:r}=this,{date:a,dateProfile:s}=r,d=Za(a,r.todayRange,null,s),f=[es].concat($i(d,i)),u=e.format(a,r.dayHeaderFormat),g=!d.isDisabled&&r.colCnt>1?ko(this.context,a):{},h=Object.assign(Object.assign(Object.assign({date:e.toDate(a),view:l},r.extraRenderProps),{text:u}),d);return E(Le,{elTag:"th",elClasses:f,elAttrs:Object.assign({role:"columnheader",colSpan:r.colSpan,"data-date":d.isDisabled?void 0:gi(a)},r.extraDataAttrs),renderProps:h,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:ts,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},c=>E("div",{className:"fc-scrollgrid-sync-inner"},!d.isDisabled&&E(c,{elTag:"a",elAttrs:g,elClasses:["fc-col-header-cell-cushion",r.isSticky&&"fc-sticky"]})))}}const bg=he({weekday:"long"});class Eg extends re{render(){let{props:e}=this,{dateEnv:n,theme:i,viewApi:l,options:r}=this.context,a=Se(new Date(2592e5),e.dow),s={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},d=n.format(a,e.dayHeaderFormat),f=Object.assign(Object.assign(Object.assign(Object.assign({date:a},s),{view:l}),e.extraRenderProps),{text:d});return E(Le,{elTag:"th",elClasses:[es,...$i(s,i),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:f,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:ts,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},u=>E("div",{className:"fc-scrollgrid-sync-inner"},E(u,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(a,bg)}})))}}class xn extends Me{constructor(e,n){super(e,n),this.initialNowDate=Sn(n.options.now,n.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:n}=this,i=_t(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),l=n.dateEnv.startOf(i,e.unit),r=n.dateEnv.add(l,ee(1,e.unit)),a=r.valueOf()-i.valueOf();return a=Math.min(1e3*60*60*24,a),{currentState:{nowDate:l,todayRange:ns(l)},nextState:{nowDate:r,todayRange:ns(r)},waitMs:a}}setTimeout(){let{nextState:e,waitMs:n}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}xn.contextType=ot;function ns(t){let e=ue(t),n=Se(e,1);return{start:e,end:n}}class os extends re{constructor(){super(...arguments),this.createDayHeaderFormatter=q(kg)}render(){let{context:e}=this,{dates:n,dateProfile:i,datesRepDistinctDays:l,renderIntro:r}=this.props,a=this.createDayHeaderFormatter(e.options.dayHeaderFormat,l,n.length);return E(xn,{unit:"day"},(s,d)=>E("tr",{role:"row"},r&&r("day"),n.map(f=>l?E(yg,{key:f.toISOString(),date:f,dateProfile:i,todayRange:d,colCnt:n.length,dayHeaderFormat:a}):E(Eg,{key:f.getUTCDay(),dow:f.getUTCDay(),dayHeaderFormat:a}))))}}function kg(t,e,n){return t||_g(e,n)}class is{constructor(e,n){let i=e.start,{end:l}=e,r=[],a=[],s=-1;for(;i<l;)n.isHiddenDay(i)?r.push(s+.5):(s+=1,r.push(s),a.push(i)),i=Se(i,1);this.dates=a,this.indices=r,this.cnt=a.length}sliceRange(e){let n=this.getDateDayIndex(e.start),i=this.getDateDayIndex(Se(e.end,-1)),l=Math.max(0,n),r=Math.min(this.cnt-1,i);return l=Math.ceil(l),r=Math.floor(r),l<=r?{firstIndex:l,lastIndex:r,isStart:n===l,isEnd:i===r}:null}getDateDayIndex(e){let{indices:n}=this,i=Math.floor(It(this.dates[0],e));return i<0?n[0]-1:i>=n.length?n[n.length-1]+1:n[i]}}class ls{constructor(e,n){let{dates:i}=e,l,r,a;if(n){for(r=i[0].getUTCDay(),l=1;l<i.length&&i[l].getUTCDay()!==r;l+=1);a=Math.ceil(i.length/l)}else a=1,l=i.length;this.rowCnt=a,this.colCnt=l,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let n=0;n<this.rowCnt;n+=1){let i=[];for(let l=0;l<this.colCnt;l+=1)i.push(this.buildCell(n,l));e.push(i)}return e}buildCell(e,n){let i=this.daySeries.dates[e*this.colCnt+n];return{key:i.toISOString(),date:i}}buildHeaderDates(){let e=[];for(let n=0;n<this.colCnt;n+=1)e.push(this.cells[0][n].date);return e}sliceRange(e){let{colCnt:n}=this,i=this.daySeries.sliceRange(e),l=[];if(i){let{firstIndex:r,lastIndex:a}=i,s=r;for(;s<=a;){let d=Math.floor(s/n),f=Math.min((d+1)*n,a+1);l.push({row:d,firstCol:s%n,lastCol:(f-1)%n,isStart:i.isStart&&s===r,isEnd:i.isEnd&&f-1===a}),s=f}}return l}}class rs{constructor(){this.sliceBusinessHours=q(this._sliceBusinessHours),this.sliceDateSelection=q(this._sliceDateSpan),this.sliceEventStore=q(this._sliceEventStore),this.sliceEventDrag=q(this._sliceInteraction),this.sliceEventResize=q(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,n,i,l,...r){let{eventUiBases:a}=e,s=this.sliceEventStore(e.eventStore,a,n,i,...r);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,n,i,a,l,...r),businessHourSegs:this.sliceBusinessHours(e.businessHours,n,i,l,...r),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag(e.eventDrag,a,n,i,...r),eventResize:this.sliceEventResize(e.eventResize,a,n,i,...r),eventSelection:e.eventSelection}}sliceNowDate(e,n,i,l,...r){return this._sliceDateSpan({range:{start:e,end:_t(e,1)},allDay:!1},n,i,{},l,...r)}_sliceBusinessHours(e,n,i,l,...r){return e?this._sliceEventStore(zt(e,wo(n,!!i),l),{},n,i,...r).bg:[]}_sliceEventStore(e,n,i,l,...r){if(e){let a=Pa(e,n,wo(i,!!l),l);return{bg:this.sliceEventRanges(a.bg,r),fg:this.sliceEventRanges(a.fg,r)}}return{bg:[],fg:[]}}_sliceInteraction(e,n,i,l,...r){if(!e)return null;let a=Pa(e.mutatedEvents,n,wo(i,!!l),l);return{segs:this.sliceEventRanges(a.fg,r),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,n,i,l,r,...a){if(!e)return[];let s=wo(n,!!i),d=$t(e.range,s);if(d){e=Object.assign(Object.assign({},e),{range:d});let f=jm(e,l,r),u=this.sliceRange(e.range,...a);for(let g of u)g.eventRange=f;return u}return[]}sliceEventRanges(e,n){let i=[];for(let l of e)i.push(...this.sliceEventRange(l,n));return i}sliceEventRange(e,n){let i=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(i={start:i.start,end:Se(i.start,1)});let l=this.sliceRange(i,...n);for(let r of l)r.eventRange=e,r.isStart=e.isStart&&r.isStart,r.isEnd=e.isEnd&&r.isEnd;return l}}function wo(t,e){let n=t.activeRange;return e?n:{start:_t(n.start,t.slotMinTime.milliseconds),end:_t(n.end,t.slotMaxTime.milliseconds-864e5)}}function as(t,e,n){let{instances:i}=t.mutatedEvents;for(let l in i)if(!ho(e.validRange,i[l].range))return!1;return ss({eventDrag:t},n)}function Cg(t,e,n){return ho(e.validRange,t.range)?ss({dateSelection:t},n):!1}function ss(t,e){let n=e.getCurrentData(),i=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||wg)(i,e)}function wg(t,e,n={},i){return!(t.eventDrag&&!vg(t,e,n,i)||t.dateSelection&&!Sg(t,e,n,i))}function vg(t,e,n,i){let l=e.getCurrentData(),r=t.eventDrag,a=r.mutatedEvents,s=a.defs,d=a.instances,f=Eo(s,r.isEvent?t.eventUiBases:{"":l.selectionConfig});i&&(f=nt(f,i));let u=Cm(t.eventStore,r.affectedEvents.instances),g=u.defs,h=u.instances,c=Eo(g,t.eventUiBases);for(let _ in d){let p=d[_],m=p.range,b=f[p.defId],y=s[p.defId];if(!cs(b.constraints,m,u,t.businessHours,e))return!1;let{eventOverlap:w}=e.options,v=typeof w=="function"?w:null;for(let x in h){let C=h[x];if(Ai(m,C.range)&&(c[C.defId].overlap===!1&&r.isEvent||b.overlap===!1||v&&!v(new pe(e,g[C.defId],C),new pe(e,y,p))))return!1}let O=l.eventStore;for(let x of b.allows){let C=Object.assign(Object.assign({},n),{range:p.range,allDay:y.allDay}),k=O.defs[y.defId],B=O.instances[_],V;if(k?V=new pe(e,k,B):V=new pe(e,y),!x(Ri(C,e),V))return!1}}return!0}function Sg(t,e,n,i){let l=t.eventStore,r=l.defs,a=l.instances,s=t.dateSelection,d=s.range,{selectionConfig:f}=e.getCurrentData();if(i&&(f=i(f)),!cs(f.constraints,d,l,t.businessHours,e))return!1;let{selectOverlap:u}=e.options,g=typeof u=="function"?u:null;for(let h in a){let c=a[h];if(Ai(d,c.range)&&(f.overlap===!1||g&&!g(new pe(e,r[c.defId],c),null)))return!1}for(let h of f.allows){let c=Object.assign(Object.assign({},n),s);if(!h(Ri(c,e),null))return!1}return!0}function cs(t,e,n,i,l){for(let r of t)if(!xg(Ag(r,e,n,i,l),e))return!1;return!0}function Ag(t,e,n,i,l){return t==="businessHours"?Qi(zt(i,e,l)):typeof t=="string"?Qi(go(n,r=>r.groupId===t)):typeof t=="object"&&t?Qi(zt(t,e,l)):[]}function Qi(t){let{instances:e}=t,n=[];for(let i in e)n.push(e[i].range);return n}function xg(t,e){for(let n of t)if(ho(n,e))return!0;return!1}const vo=/^(visible|hidden)$/;class Dg extends re{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,it(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:i}=e,l=n&&i,r=["fc-scroller"];return n&&(i?r.push("fc-scroller-liquid-absolute"):r.push("fc-scroller-liquid")),E("div",{ref:this.handleEl,className:r.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:l&&-(e.overcomeLeft||0)||"",right:l&&-(e.overcomeRight||0)||"",bottom:l&&-(e.overcomeBottom||0)||"",marginLeft:!l&&-(e.overcomeLeft||0)||"",marginRight:!l&&-(e.overcomeRight||0)||"",marginBottom:!l&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(vo.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:i}=e;for(let l=0;l<i.length;l+=1)if(i[l].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(vo.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:i}=e;for(let l=0;l<i.length;l+=1)if(i[l].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return vo.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return vo.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class rt{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,i)=>{let{depths:l,currentMap:r}=this,a=!1,s=!1;n!==null?(a=i in r,r[i]=n,l[i]=(l[i]||0)+1,s=!0):(l[i]-=1,l[i]||(delete r[i],delete this.callbackMap[i],a=!0)),this.masterCallback&&(a&&this.masterCallback(null,String(i)),s&&this.masterCallback(n,String(i)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=i=>{this.handleValue(i,String(e))}),n}collect(e,n,i){return $h(this.currentMap,e,n,i)}getAll(){return ki(this.currentMap)}}function Ng(t){let e=Pp(t,".fc-scrollgrid-shrink"),n=0;for(let i of e)n=Math.max(n,Xp(i));return Math.ceil(n)}function ds(t,e){return t.liquid&&e.liquid}function Vg(t,e){return e.maxHeight!=null||ds(t,e)}function Bg(t,e,n,i){let{expandRows:l}=n;return typeof e.content=="function"?e.content(n):E("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:l?n.clientHeight:""}},n.tableColGroupNode,E(i?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function Tg(t,e){return gt(t,e,Ze)}function Rg(t,e){let n=[];for(let i of t){let l=i.span||1;for(let r=0;r<l;r+=1)n.push(E("col",{style:{width:i.width==="shrink"?Ig(e):i.width||"",minWidth:i.minWidth||""}}))}return E("colgroup",{},...n)}function Ig(t){return t??4}function Og(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function Mg(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function Lg(t,e){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${t.type}`,t.className];return e&&t.liquid&&t.maxHeight==null&&n.push("fc-scrollgrid-section-liquid"),t.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function Zi(t){return E("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function So(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function us(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class Ki extends re{constructor(){super(...arguments),this.processCols=q(e=>e,Tg),this.renderMicroColGroup=q(Rg),this.scrollerRefs=new rt,this.scrollerElRefs=new rt(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:e,state:n,context:i}=this,l=e.sections||[],r=this.processCols(e.cols),a=this.renderMicroColGroup(r,n.shrinkWidth),s=Mg(e.liquid,i);e.collapsibleWidth&&s.push("fc-scrollgrid-collapsible");let d=l.length,f=0,u,g=[],h=[],c=[];for(;f<d&&(u=l[f]).type==="header";)g.push(this.renderSection(u,a,!0)),f+=1;for(;f<d&&(u=l[f]).type==="body";)h.push(this.renderSection(u,a,!1)),f+=1;for(;f<d&&(u=l[f]).type==="footer";)c.push(this.renderSection(u,a,!0)),f+=1;let _=!Ya();const p={role:"rowgroup"};return E("table",{role:"grid",className:s.join(" "),style:{height:e.height}},!!(!_&&g.length)&&E("thead",p,...g),!!(!_&&h.length)&&E("tbody",p,...h),!!(!_&&c.length)&&E("tfoot",p,...c),_&&E("tbody",p,...g,...h,...c))}renderSection(e,n,i){return"outerContent"in e?E(fe,{key:e.key},e.outerContent):E("tr",{key:e.key,role:"presentation",className:Lg(e,this.props.liquid).join(" ")},this.renderChunkTd(e,n,e.chunk,i))}renderChunkTd(e,n,i,l){if("outerContent"in i)return i.outerContent;let{props:r}=this,{forceYScrollbars:a,scrollerClientWidths:s,scrollerClientHeights:d}=this.state,f=Vg(r,e),u=ds(r,e),g=r.liquid?a?"scroll":f?"auto":"hidden":"visible",h=e.key,c=Bg(e,i,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!r.collapsibleWidth&&s[h]!==void 0?s[h]:null,clientHeight:d[h]!==void 0?d[h]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},l);return E(l?"th":"td",{ref:i.elRef,role:"presentation"},E("div",{className:`fc-scroller-harness${u?" fc-scroller-harness-liquid":""}`},E(Dg,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:g,overflowX:r.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},c)))}_handleScrollerEl(e,n){let i=Pg(this.props.sections,n);i&&it(i.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Og(this.props.cols)?Ng(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=ag(),{scrollerRefs:n,scrollerElRefs:i}=this,l=!1,r={},a={};for(let s in n.currentMap){let d=n.currentMap[s];if(d&&d.needsYScrolling()){l=!0;break}}for(let s of this.props.sections){let d=s.key,f=i.currentMap[d];if(f){let u=f.parentNode;r[d]=Math.floor(u.getBoundingClientRect().width-(l?e.y:0)),a[d]=Math.floor(u.getBoundingClientRect().height)}}return{forceYScrollbars:l,scrollerClientWidths:r,scrollerClientHeights:a}}}Ki.addStateEquality({scrollerClientWidths:Ze,scrollerClientHeights:Ze});function Pg(t,e){for(let n of t)if(n.key===e)return n;return null}class Xi extends re{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&$a(e,this.props.seg)}}render(){const{props:e,context:n}=this,{options:i}=n,{seg:l}=e,{eventRange:r}=l,{ui:a}=r,s={event:new pe(n,r.def,r.instance),view:n.viewApi,timeText:e.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!e.disableDragging&&Im(l,n),isStartResizable:!e.disableResizing&&Om(l,n),isEndResizable:!e.disableResizing&&Mm(l),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!l.isStart,isEnd:!!l.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return E(Le,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Lm(s),...l.eventRange.ui.classNames,...e.elClasses||[]],renderProps:s,generatorName:"eventContent",customGenerator:i.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.eventClassNames,didMount:i.eventDidMount,willUnmount:i.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&$a(this.el,this.props.seg)}}class fs extends re{render(){let{props:e,context:n}=this,{options:i}=n,{seg:l}=e,{ui:r}=l.eventRange,a=i.eventTimeFormat||e.defaultTimeFormat,s=Ha(l,a,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return E(Xi,Object.assign({},e,{elTag:"a",elStyle:{borderColor:r.borderColor,backgroundColor:r.backgroundColor},elAttrs:ja(l,n),defaultGenerator:$g,timeText:s}),(d,f)=>E(fe,null,E(d,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:f.textColor}}),!!f.isStartResizable&&E("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!f.isEndResizable&&E("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function $g(t){return E("div",{className:"fc-event-main-frame"},t.timeText&&E("div",{className:"fc-event-time"},t.timeText),E("div",{className:"fc-event-title-container"},E("div",{className:"fc-event-title fc-sticky"},t.event.title||E(fe,null," "))))}const Ji=t=>E(ot.Consumer,null,e=>{let{options:n}=e,i={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return E(Le,Object.assign({},t,{elTag:t.elTag||"div",renderProps:i,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),zg=he({day:"numeric"});class el extends re{constructor(){super(...arguments),this.refineRenderProps=ro(Fg)}render(){let{props:e,context:n}=this,{options:i}=n,l=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:i.monthStartFormat});return E(Le,Object.assign({},e,{elClasses:[...$i(l,n.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),l.isDisabled?{}:{"data-date":gi(e.date)}),renderProps:l,generatorName:"dayCellContent",customGenerator:i.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:l.isDisabled?void 0:i.dayCellClassNames,didMount:i.dayCellDidMount,willUnmount:i.dayCellWillUnmount}))}}function tl(t){return!!(t.dayCellContent||Si("dayCellContent",t))}function Fg(t){let{date:e,dateEnv:n,dateProfile:i,isMonthStart:l}=t,r=Za(e,t.todayRange,null,i),a=t.showDayNumber?n.format(e,l?t.monthStartFormat:zg):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},r),{isMonthStart:l,dayNumberText:a}),t.extraRenderProps)}class ps extends re{render(){let{props:e}=this,{seg:n}=e;return E(Xi,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:Hg,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function Hg(t){let{title:e}=t.event;return e&&E("div",{className:"fc-event-title"},t.event.title)}function hs(t){return E("div",{className:`fc-${t}`})}const ms=t=>E(ot.Consumer,null,e=>{let{dateEnv:n,options:i}=e,{date:l}=t,r=i.weekNumberFormat||t.defaultFormat,a=n.computeWeekNumber(l),s=n.format(l,r);return E(Le,Object.assign({},t,{renderProps:{num:a,text:s,date:l},generatorName:"weekNumberContent",customGenerator:i.weekNumberContent,defaultGenerator:Ug,classNameGenerator:i.weekNumberClassNames,didMount:i.weekNumberDidMount,willUnmount:i.weekNumberWillUnmount}))});function Ug(t){return t.text}const nl=10;class jg extends re{constructor(){super(...arguments),this.state={titleId:no()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&it(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=qr(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:i,state:l}=this,r=["fc-popover",e.getClass("popover")].concat(i.extraClassNames||[]);return vp(E("div",Object.assign({},i.extraAttrs,{id:i.id,className:r.join(" "),"aria-labelledby":l.titleId,ref:this.handleRootEl}),E("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},E("span",{className:"fc-popover-title",id:l.titleId},i.title),E("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),E("div",{className:"fc-popover-body "+e.getClass("popoverContent")},i.children)),i.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:e}=this.context,{alignmentEl:n,alignGridTop:i}=this.props,{rootEl:l}=this,r=ug(n);if(r){let a=l.getBoundingClientRect(),s=i?ve(n,".fc-scrollgrid").getBoundingClientRect().top:r.top,d=e?r.right-a.width:r.left;s=Math.max(s,nl),d=Math.min(d,document.documentElement.clientWidth-nl-a.width),d=Math.max(d,nl);let f=l.offsetParent.getBoundingClientRect();kn(l,{top:s-f.top,left:d-f.left})}}}class Wg extends Ke{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:n}=this.context,{props:i}=this,{startDate:l,todayRange:r,dateProfile:a}=i,s=n.format(l,e.dayPopoverFormat);return E(el,{elRef:this.handleRootEl,date:l,dateProfile:a,todayRange:r},(d,f,u)=>E(jg,{elRef:u.ref,id:i.id,title:s,extraClassNames:["fc-more-popover"].concat(u.className||[]),extraAttrs:u,parentEl:i.parentEl,alignmentEl:i.alignmentEl,alignGridTop:i.alignGridTop,onClose:i.onClose},tl(e)&&E(d,{elTag:"div",elClasses:["fc-more-popover-misc"]}),i.children))}queryHit(e,n,i,l){let{rootEl:r,props:a}=this;return e>=0&&e<i&&n>=0&&n<l?{dateProfile:a.dateProfile,dateSpan:Object.assign({allDay:!a.forceTimed,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:r,rect:{left:0,top:0,right:i,bottom:l},layer:1}:null}}class gs extends re{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:no()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&it(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:i}=this,{moreLinkClick:l}=i.options,r=_s(n).start;function a(s){let{def:d,instance:f,range:u}=s.eventRange;return{event:new pe(i,d,f),start:i.dateEnv.toDate(u.start),end:i.dateEnv.toDate(u.end),isStart:s.isStart,isEnd:s.isEnd}}typeof l=="function"&&(l=l({date:r,allDay:!!n.allDayDate,allSegs:n.allSegs.map(a),hiddenSegs:n.hiddenSegs.map(a),jsEvent:e,view:i.viewApi})),!l||l==="popover"?this.setState({isPopoverOpen:!0}):typeof l=="string"&&i.calendarApi.zoomTo(r,l)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return E(ot.Consumer,null,i=>{let{viewApi:l,options:r,calendarApi:a}=i,{moreLinkText:s}=r,{moreCnt:d}=e,f=_s(e),u=typeof s=="function"?s.call(a,d):`+${d} ${s}`,g=Cn(r.moreLinkHint,[d],u),h={num:d,shortText:`+${d}`,text:u,view:l};return E(fe,null,!!e.moreCnt&&E(Le,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),Kr(this.handleClick)),{title:g,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:r.moreLinkContent,defaultGenerator:e.defaultGenerator||Gg,classNameGenerator:r.moreLinkClassNames,didMount:r.moreLinkDidMount,willUnmount:r.moreLinkWillUnmount},e.children),n.isPopoverOpen&&E(Wg,{id:n.popoverId,startDate:f.start,endDate:f.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=ve(this.linkEl,".fc-view-harness"))}}function Gg(t){return t.text}function _s(t){if(t.allDayDate)return{start:t.allDayDate,end:Se(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:ys(e),end:Yg(e)}}function ys(t){return t.reduce(qg).eventRange.range.start}function qg(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function Yg(t){return t.reduce(Qg).eventRange.range.end}function Qg(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class Zg{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let n of this.handlers)n(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class Kg extends Zg{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:n}=this;let i=!1;e.isActive?(n.set(e.id,e),i=!0):n.has(e.id)&&(n.delete(e.id),i=!0),i&&this.set(n)}}const Xg=[],bs={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"},Es=Object.assign(Object.assign({},bs),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function Jg(t){let e=t.length>0?t[0].code:"en",n=Xg.concat(t),i={en:Es};for(let l of n)i[l.code]=l;return{map:i,defaultCode:e}}function ks(t,e){return typeof t=="object"&&!Array.isArray(t)?Cs(t.code,[t.code],t):e0(t,e)}function e0(t,e){let n=[].concat(t||[]),i=t0(n,e)||Es;return Cs(t,n,i)}function t0(t,e){for(let n=0;n<t.length;n+=1){let i=t[n].toLocaleLowerCase().split("-");for(let l=i.length;l>0;l-=1){let r=i.slice(0,l).join("-");if(e[r])return e[r]}}return null}function Cs(t,e,n){let i=Ei([bs,n],["buttonText"]);delete i.code;let{week:l}=i;return delete i.week,{codeArg:t,codes:e,week:l,simpleNumberFormat:new Intl.NumberFormat(t),options:i}}function at(t){return{id:Rt(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function n0(t,e){let n={},i={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 l(r){for(let a of r){const s=a.name,d=n[s];d===void 0?(n[s]=a.id,l(a.deps),i=i0(i,a)):d!==a.id&&console.warn(`Duplicate plugin '${s}'`)}}return t&&l(t),l(e),i}function o0(){let t=[],e=[],n;return(i,l)=>((!n||!gt(i,t)||!gt(l,e))&&(n=n0(i,l)),t=i,e=l,n)}function i0(t,e){return{premiumReleaseDate:l0(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function l0(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class kt extends vn{}kt.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},kt.prototype.baseIconClass="fc-icon",kt.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"},kt.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},kt.prototype.iconOverrideOption="buttonIcons",kt.prototype.iconOverrideCustomButtonOption="icon",kt.prototype.iconOverridePrefix="fc-icon-";function r0(t,e){let n={},i;for(i in t)ol(i,n,t,e);for(i in e)ol(i,n,t,e);return n}function ol(t,e,n,i){if(e[t])return e[t];let l=a0(t,e,n,i);return l&&(e[t]=l),l}function a0(t,e,n,i){let l=n[t],r=i[t],a=u=>l&&l[u]!==null?l[u]:r&&r[u]!==null?r[u]:null,s=a("component"),d=a("superType"),f=null;if(d){if(d===t)throw new Error("Can't have a custom view type that references itself");f=ol(d,e,n,i)}return!s&&f&&(s=f.component),s?{type:t,component:s,defaults:Object.assign(Object.assign({},f?f.defaults:{}),l?l.rawOptions:{}),overrides:Object.assign(Object.assign({},f?f.overrides:{}),r?r.rawOptions:{})}:null}function ws(t){return nt(t,s0)}function s0(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=vs(e):n&&!(n.prototype instanceof re)&&(n=vs(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function vs(t){return e=>E(ot.Consumer,null,n=>E(Le,{elTag:"div",elClasses:ba(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function c0(t,e,n,i){let l=ws(t),r=ws(e.views),a=r0(l,r);return nt(a,s=>d0(s,r,e,n,i))}function d0(t,e,n,i,l){let r=t.overrides.duration||t.defaults.duration||i.duration||n.duration,a=null,s="",d="",f={};if(r&&(a=u0(r),a)){let h=hi(a);s=h.unit,h.value===1&&(d=s,f=e[s]?e[s].rawOptions:{})}let u=h=>{let c=h.buttonText||{},_=t.defaults.buttonTextKey;return _!=null&&c[_]!=null?c[_]:c[t.type]!=null?c[t.type]:c[d]!=null?c[d]:null},g=h=>{let c=h.buttonHints||{},_=t.defaults.buttonTextKey;return _!=null&&c[_]!=null?c[_]:c[t.type]!=null?c[t.type]:c[d]!=null?c[d]:null};return{type:t.type,component:t.component,duration:a,durationUnit:s,singleUnit:d,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},f),t.overrides),buttonTextOverride:u(i)||u(n)||t.overrides.buttonText,buttonTextDefault:u(l)||t.defaults.buttonText||u(wn)||t.type,buttonTitleOverride:g(i)||g(n)||t.overrides.buttonHint,buttonTitleDefault:g(l)||t.defaults.buttonHint||g(wn)}}let Ss={};function u0(t){let e=JSON.stringify(t),n=Ss[e];return n===void 0&&(n=ee(t),Ss[e]=n),n}function f0(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function p0(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function h0(t,e,n,i){let l;switch(e.type){case"CHANGE_VIEW_TYPE":return i.build(e.dateMarker||n);case"CHANGE_DATE":return i.build(e.dateMarker);case"PREV":if(l=i.buildPrev(t,n),l.isValid)return l;break;case"NEXT":if(l=i.buildNext(t,n),l.isValid)return l;break}return t}function m0(t,e,n){let i=e?e.activeRange:null;return xs({},C0(t,n),i,n)}function g0(t,e,n,i){let l=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return xs(t,e.sources,l,i);case"REMOVE_EVENT_SOURCE":return y0(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Ds(t,l,i):t;case"FETCH_EVENT_SOURCES":return il(t,e.sourceIds?pa(e.sourceIds):Ns(t,i),l,e.isRefetch||!1,i);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return k0(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function _0(t,e,n){let i=e?e.activeRange:null;return il(t,Ns(t,n),i,!0,n)}function As(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function xs(t,e,n,i){let l={};for(let r of e)l[r.sourceId]=r;return n&&(l=Ds(l,n,i)),Object.assign(Object.assign({},t),l)}function y0(t,e){return Lt(t,n=>n.sourceId!==e)}function Ds(t,e,n){return il(t,Lt(t,i=>b0(i,e,n)),e,!1,n)}function b0(t,e,n){return Vs(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function il(t,e,n,i,l){let r={};for(let a in t){let s=t[a];e[a]?r[a]=E0(s,n,i,l):r[a]=s}return r}function E0(t,e,n,i){let{options:l,calendarApi:r}=i,a=i.pluginHooks.eventSourceDefs[t.sourceDefId],s=Rt();return a.fetch({eventSource:t,range:e,isRefetch:n,context:i},d=>{let{rawEvents:f}=d;l.eventSourceSuccess&&(f=l.eventSourceSuccess.call(r,f,d.response)||f),t.success&&(f=t.success.call(r,f,d.response)||f),i.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:s,fetchRange:e,rawEvents:f})},d=>{let f=!1;l.eventSourceFailure&&(l.eventSourceFailure.call(r,d),f=!0),t.failure&&(t.failure(d),f=!0),f||console.warn(d.message,d),i.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:s,fetchRange:e,error:d})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:s})}function k0(t,e,n,i){let l=t[e];return l&&n===l.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},l),{isFetching:!1,fetchRange:i})}):t}function Ns(t,e){return Lt(t,n=>Vs(n,e))}function C0(t,e){let n=Va(e),i=[].concat(t.eventSources||[]),l=[];t.initialEvents&&i.unshift(t.initialEvents),t.events&&i.unshift(t.events);for(let r of i){let a=Na(r,e,n);a&&l.push(a)}return l}function Vs(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function w0(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function v0(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function S0(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function A0(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function x0(t,e,n,i,l){let r=t.headerToolbar?Bs(t.headerToolbar,t,e,n,i,l):null,a=t.footerToolbar?Bs(t.footerToolbar,t,e,n,i,l):null;return{header:r,footer:a}}function Bs(t,e,n,i,l,r){let a={},s=[],d=!1;for(let f in t){let u=t[f],g=D0(u,e,n,i,l,r);a[f]=g.widgets,s.push(...g.viewsWithButtons),d=d||g.hasTitle}return{sectionWidgets:a,viewsWithButtons:s,hasTitle:d}}function D0(t,e,n,i,l,r){let a=e.direction==="rtl",s=e.customButtons||{},d=n.buttonText||{},f=e.buttonText||{},u=n.buttonHints||{},g=e.buttonHints||{},h=t?t.split(" "):[],c=[],_=!1;return{widgets:h.map(m=>m.split(",").map(b=>{if(b==="title")return _=!0,{buttonName:b};let y,w,v,O,x,C;if(y=s[b])v=k=>{y.click&&y.click.call(k.target,k,k.target)},(O=i.getCustomButtonIconClass(y))||(O=i.getIconClass(b,a))||(x=y.text),C=y.hint||y.text;else if(w=l[b]){c.push(b),v=()=>{r.changeView(b)},(x=w.buttonTextOverride)||(O=i.getIconClass(b,a))||(x=w.buttonTextDefault);let k=w.buttonTextOverride||w.buttonTextDefault;C=Cn(w.buttonTitleOverride||w.buttonTitleDefault||e.viewHint,[k,b],k)}else if(r[b])if(v=()=>{r[b]()},(x=d[b])||(O=i.getIconClass(b,a))||(x=f[b]),b==="prevYear"||b==="nextYear"){let k=b==="prevYear"?"prev":"next";C=Cn(u[k]||g[k],[f.year||"year","year"],f[b])}else C=k=>Cn(u[b]||g[b],[f[k]||k,k],f[b]);return{buttonName:b,buttonClick:v,buttonIcon:O,buttonText:x,buttonHint:C}})),viewsWithButtons:c,hasTitle:_}}class N0{constructor(e,n,i){this.type=e,this.getCurrentData=n,this.dateEnv=i}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(e){return this.getCurrentData().options[e]}}const V0=at({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}}]}),B0=at({name:"func-event-source",eventSourceDefs:[{parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:i}=t.context,l=t.eventSource.meta;Wm(l.bind(null,Wa(t.range,i)),r=>e({rawEvents:r}),n)}}]}),T0=at({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:N,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){const{meta:i}=t.eventSource,l=R0(i,t.range,t.context);Gm(i.method,i.url,l).then(([r,a])=>{e({rawEvents:r,response:a})},n)}}]});function R0(t,e,n){let{dateEnv:i,options:l}=n,r,a,s,d,f={};return r=t.startParam,r==null&&(r=l.startParam),a=t.endParam,a==null&&(a=l.endParam),s=t.timeZoneParam,s==null&&(s=l.timeZoneParam),typeof t.extraParams=="function"?d=t.extraParams():d=t.extraParams||{},Object.assign(f,d),f[r]=i.formatIso(e.start),f[a]=i.formatIso(e.end),i.timeZone!=="local"&&(f[s]=i.timeZone),f}const I0=at({name:"simple-recurring-event",recurringTypes:[{parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let n={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null},i;return t.duration&&(i=t.duration),!i&&t.startTime&&t.endTime&&(i=nh(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:i,typeData:n}}return null},expand(t,e,n){let i=$t(e,{start:t.startRecur,end:t.endRecur});return i?O0(t.daysOfWeek,t.startTime,i,n):[]}}],eventRefiners:{daysOfWeek:N,startTime:ee,endTime:ee,duration:ee,startRecur:N,endRecur:N}});function O0(t,e,n,i){let l=t?pa(t):null,r=ue(n.start),a=n.end,s=[];for(;r<a;){let d;(!l||l[r.getUTCDay()])&&(e?d=i.add(r,e):d=r,s.push(d)),r=Se(r,1)}return s}const M0=at({name:"change-handler",optionChangeHandlers:{events(t,e){Ts([t],e)},eventSources:Ts}});function Ts(t,e){let n=ki(e.getCurrentData().eventSources);if(n.length===1&&t.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(t[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:t[0]});return}let i=[];for(let l of t){let r=!1;for(let a=0;a<n.length;a+=1)if(n[a]._raw===l){n.splice(a,1),r=!0;break}r||i.push(l)}for(let l of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:l.sourceId});for(let l of i)e.calendarApi.addEventSource(l)}function L0(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},Wa(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function P0(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Ft(t,e))}const $0=[V0,B0,T0,I0,M0,at({name:"misc",isLoadingFuncs:[t=>As(t.eventSources)],propSetHandlers:{dateProfile:L0,eventStore:P0}})];class z0{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new si(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],i;for(;i=e.shift();)this.runTask(i),n.push(i);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function F0(t,e,n){let i;return/^(year|month)$/.test(t.currentRangeUnit)?i=t.currentRange:i=t.activeRange,n.formatRange(i.start,i.end,he(e.titleFormat||H0(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function H0(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=lo(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class U0{constructor(e){this.computeCurrentViewData=q(this._computeCurrentViewData),this.organizeRawLocales=q(Jg),this.buildLocale=q(ks),this.buildPluginHooks=o0(),this.buildDateEnv=q(j0),this.buildTheme=q(W0),this.parseToolbars=q(x0),this.buildViewSpecs=q(c0),this.buildDateProfileGenerator=ro(G0),this.buildViewApi=q(q0),this.buildViewUiProps=ro(Z0),this.buildEventUiBySource=q(Y0,Ze),this.buildEventUiBases=q(Q0),this.parseContextBusinessHours=ro(K0),this.buildTitle=q(F0),this.emitter=new bo,this.actionRunner=new z0(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=h=>{this.actionRunner.request(h)},this.props=e,this.actionRunner.pause();let n={},i=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),l=i.calendarOptions.initialView||i.pluginHooks.initialView,r=this.computeCurrentViewData(l,i,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(r.options);let a=lm(i.calendarOptions,i.dateEnv),s=r.dateProfileGenerator.build(a);lt(s.activeRange,a)||(a=s.currentRange.start);let d={dateEnv:i.dateEnv,options:i.calendarOptions,pluginHooks:i.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let h of i.pluginHooks.contextInit)h(d);let f=m0(i.calendarOptions,s,d),u={dynamicOptionOverrides:n,currentViewType:l,currentDate:a,dateProfile:s,businessHours:this.parseContextBusinessHours(d),eventSources:f,eventUiBases:{},eventStore:Pe(),renderableEventStore:Pe(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(d).selectionConfig},g=Object.assign(Object.assign({},d),u);for(let h of i.pluginHooks.reducers)Object.assign(u,h(null,null,g));ll(u,d)&&this.emitter.trigger("loading",!0),this.state=u,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:i}=this;n===void 0?i.optionOverrides=e:(i.optionOverrides=Object.assign(Object.assign({},i.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:i,emitter:l}=this,r=p0(i.dynamicOptionOverrides,e),a=this.computeOptionsData(n.optionOverrides,r,n.calendarApi),s=f0(i.currentViewType,e),d=this.computeCurrentViewData(s,a,n.optionOverrides,r);n.calendarApi.currentDataManager=this,l.setThisContext(n.calendarApi),l.setOptions(d.options);let f={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:l,getCurrentData:this.getCurrentData},{currentDate:u,dateProfile:g}=i;this.data&&this.data.dateProfileGenerator!==d.dateProfileGenerator&&(g=d.dateProfileGenerator.build(u)),u=im(u,e),g=h0(g,e,u,d.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!lt(g.currentRange,u))&&(u=g.currentRange.start);let h=g0(i.eventSources,e,g,f),c=ym(i.eventStore,e,h,g,f),p=As(h)&&!d.options.progressiveEventRendering&&i.renderableEventStore||c,{eventUiSingleBase:m,selectionConfig:b}=this.buildViewUiProps(f),y=this.buildEventUiBySource(h),w=this.buildEventUiBases(p.defs,m,y),v={dynamicOptionOverrides:r,currentViewType:s,currentDate:u,dateProfile:g,eventSources:h,eventStore:c,renderableEventStore:p,selectionConfig:b,eventUiBases:w,businessHours:this.parseContextBusinessHours(f),dateSelection:w0(i.dateSelection,e),eventSelection:v0(i.eventSelection,e),eventDrag:S0(i.eventDrag,e),eventResize:A0(i.eventResize,e)},O=Object.assign(Object.assign({},f),v);for(let k of a.pluginHooks.reducers)Object.assign(v,k(i,e,O));let x=ll(i,f),C=ll(v,f);!x&&C?l.trigger("loading",!0):x&&!C&&l.trigger("loading",!1),this.state=v,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,i=this.data,l=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),r=this.computeCurrentViewData(n.currentViewType,l,e.optionOverrides,n.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(n.dateProfile,r.options,l.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},l),r),n),s=l.pluginHooks.optionChangeHandlers,d=i&&i.calendarOptions,f=l.calendarOptions;if(d&&d!==f){d.timeZone!==f.timeZone&&(n.eventSources=a.eventSources=_0(a.eventSources,n.dateProfile,a),n.eventStore=a.eventStore=Ra(a.eventStore,i.dateEnv,a.dateEnv),n.renderableEventStore=a.renderableEventStore=Ra(a.renderableEventStore,i.dateEnv,a.dateEnv));for(let u in s)(this.optionsForHandling.indexOf(u)!==-1||d[u]!==f[u])&&s[u](f[u],a)}this.optionsForHandling=[],e.onData&&e.onData(a)}computeOptionsData(e,n,i){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:l,pluginHooks:r,localeDefaults:a,availableLocaleData:s,extra:d}=this.processRawCalendarOptions(e,n);Rs(d);let f=this.buildDateEnv(l.timeZone,l.locale,l.weekNumberCalculation,l.firstDay,l.weekText,r,s,l.defaultRangeSeparator),u=this.buildViewSpecs(r.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,a),g=this.buildTheme(l,r),h=this.parseToolbars(l,this.stableOptionOverrides,g,u,i);return this.stableCalendarOptionsData={calendarOptions:l,pluginHooks:r,dateEnv:f,viewSpecs:u,theme:g,toolbarConfig:h,localeDefaults:a,availableRawLocales:s.map}}processRawCalendarOptions(e,n){let{locales:i,locale:l}=yi([wn,e,n]),r=this.organizeRawLocales(i),a=r.map,s=this.buildLocale(l||r.defaultCode,a).options,d=this.buildPluginHooks(e.plugins||[],$0),f=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},da),ua),fa),d.listenerRefiners),d.optionRefiners),u={},g=yi([wn,s,e,n]),h={},c=this.currentCalendarOptionsInput,_=this.currentCalendarOptionsRefined,p=!1;for(let m in g)this.optionsForRefining.indexOf(m)===-1&&(g[m]===c[m]||Ot[m]&&m in c&&Ot[m](c[m],g[m]))?h[m]=_[m]:f[m]?(h[m]=f[m](g[m]),p=!0):u[m]=c[m];return p&&(this.currentCalendarOptionsInput=g,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:d,availableLocaleData:r,localeDefaults:s,extra:u}}_computeCurrentViewData(e,n,i,l){let r=n.viewSpecs[e];if(!r)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:a,extra:s}=this.processRawViewOptions(r,n.pluginHooks,n.localeDefaults,i,l);Rs(s);let d=this.buildDateProfileGenerator({dateProfileGeneratorClass:r.optionDefaults.dateProfileGeneratorClass,duration:r.duration,durationUnit:r.durationUnit,usesMinMaxTime:r.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,nowInput:a.now,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,fixedWeekCount:a.fixedWeekCount}),f=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:r,options:a,dateProfileGenerator:d,viewApi:f}}processRawViewOptions(e,n,i,l,r){let a=yi([wn,e.optionDefaults,i,l,e.optionOverrides,r]),s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},da),ua),fa),Oh),n.listenerRefiners),n.optionRefiners),d={},f=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,g=!1,h={};for(let c in a)a[c]===f[c]||Ot[c]&&Ot[c](a[c],f[c])?d[c]=u[c]:(a[c]===this.currentCalendarOptionsInput[c]||Ot[c]&&Ot[c](a[c],this.currentCalendarOptionsInput[c])?c in this.currentCalendarOptionsRefined&&(d[c]=this.currentCalendarOptionsRefined[c]):s[c]?d[c]=s[c](a[c]):h[c]=a[c],g=!0);return g&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=d),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}}function j0(t,e,n,i,l,r,a,s){let d=ks(e||a.defaultCode,a.map);return new Wh({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:r.namedTimeZonedImpl,locale:d,weekNumberCalculation:n,firstDay:i,weekText:l,cmdFormatter:r.cmdFormatter,defaultSeparator:s})}function W0(t,e){let n=e.themeClasses[t.themeSystem]||kt;return new n(t)}function G0(t){let e=t.dateProfileGeneratorClass||wa;return new e(t)}function q0(t,e,n){return new N0(t,e,n)}function Y0(t){return nt(t,e=>e.ui)}function Q0(t,e,n){let i={"":e};for(let l in t){let r=t[l];r.sourceId&&n[r.sourceId]&&(i[l]=n[r.sourceId])}return i}function Z0(t){let{options:e}=t;return{eventUiSingleBase:yo({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:yo({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function ll(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function K0(t){return xm(t.options.businessHours,t)}function Rs(t,e){for(let n in t)console.warn(`Unknown option '${n}'`+(e?` for view '${e}'`:""))}class X0 extends re{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return E("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:i}=this.context,l=[],r=!0;for(let a of e){let{buttonName:s,buttonClick:d,buttonText:f,buttonIcon:u,buttonHint:g}=a;if(s==="title")r=!1,l.push(E("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let h=s===n.activeButton,c=!n.isTodayEnabled&&s==="today"||!n.isPrevEnabled&&s==="prev"||!n.isNextEnabled&&s==="next",_=[`fc-${s}-button`,i.getClass("button")];h&&_.push(i.getClass("buttonActive")),l.push(E("button",{type:"button",title:typeof g=="function"?g(n.navUnit):g,disabled:c,"aria-pressed":h,className:_.join(" "),onClick:d},f||(u?E("span",{className:u,role:"img"}):"")))}}if(l.length>1){let a=r&&i.getClass("buttonGroup")||"";return E("div",{className:a},...l)}return l[0]}}class Is extends re{render(){let{model:e,extraClassName:n}=this.props,i=!1,l,r,a=e.sectionWidgets,s=a.center;return a.left?(i=!0,l=a.left):l=a.start,a.right?(i=!0,r=a.right):r=a.end,E("div",{className:[n||"","fc-toolbar",i?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",l||[]),this.renderSection("center",s||[]),this.renderSection("end",r||[]))}renderSection(e,n){let{props:i}=this;return E(X0,{key:e,widgetGroups:n,title:i.title,navUnit:i.navUnit,activeButton:i.activeButton,isTodayEnabled:i.isTodayEnabled,isPrevEnabled:i.isPrevEnabled,isNextEnabled:i.isNextEnabled,titleId:i.titleId})}}class J0 extends re{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,it(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:i}=e,l=["fc-view-harness",i||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],r="",a="";return i?n.availableWidth!==null?r=n.availableWidth/i:a=`${1/i*100}%`:r=e.height||"",E("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:l.join(" "),style:{height:r,paddingBottom:a}},e.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 e3 extends ln{constructor(e){super(e),this.handleSegClick=(n,i)=>{let{component:l}=this,{context:r}=l,a=on(i);if(a&&l.isValidSegDownEl(n.target)){let s=ve(n.target,".fc-event-forced-url"),d=s?s.querySelector("a[href]").href:"";r.emitter.trigger("eventClick",{el:i,event:new pe(l.context,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:r.viewApi}),d&&!n.defaultPrevented&&(window.location.href=d)}},this.destroy=Qr(e.el,"click",".fc-event",this.handleSegClick)}}class t3 extends ln{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,i)=>{on(i)&&(this.currentSegEl=i,this.triggerEvent("eventMouseEnter",n,i))},this.handleSegLeave=(n,i)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,i))},this.removeHoverListeners=Fp(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,i){let{component:l}=this,{context:r}=l,a=on(i);(!n||l.isValidSegDownEl(n.target))&&r.emitter.trigger(e,{el:i,event:new pe(r,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:r.viewApi})}}class n3 extends Pt{constructor(){super(...arguments),this.buildViewContext=q(Yh),this.buildViewPropTransformers=q(i3),this.buildToolbarProps=q(o3),this.headerRef=De(),this.footerRef=De(),this.interactionsStore={},this.state={viewLabelId:no()},this.registerInteractiveComponent=(e,n)=>{let i=Qm(e,n),a=[e3,t3].concat(this.props.pluginHooks.componentInteractions).map(s=>new s(i));this.interactionsStore[e.uid]=a,Li[e.uid]=i},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let i of n)i.destroy();delete this.interactionsStore[e.uid]}delete Li[e.uid]},this.resizeRunner=new si(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:i}=e,l=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,Sn(e.options.now,e.dateEnv),e.viewTitle),r=!1,a="",s;e.isHeightAuto||e.forPrint?a="":i.height!=null?r=!0:i.contentHeight!=null?a=i.contentHeight:s=Math.max(i.aspectRatio,.5);let d=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),f=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return E(ot.Provider,{value:d},n.header&&E(Is,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:f},l)),E(J0,{liquid:r,height:a,aspectRatio:s,labeledById:f},this.renderView(e),this.buildAppendContent()),n.footer&&E(Is,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},l)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(i=>new i(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let i in n)n[i](e[i],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:i}=n.pluginHooks;for(let l in i)n[l]!==e[l]&&i[l](n[l],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,n=e.pluginHooks.viewContainerAppends.map(i=>i(e));return E(fe,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:i}=e,l={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},r=this.buildViewPropTransformers(n.viewPropsTransformers);for(let s of r)Object.assign(l,s.transform(l,e));let a=i.component;return E(a,Object.assign({},l))}}function o3(t,e,n,i,l,r){let a=n.build(l,void 0,!1),s=n.buildPrev(e,i,!1),d=n.buildNext(e,i,!1);return{title:r,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:a.isValid&&!lt(e.currentRange,l),isPrevEnabled:s.isValid,isNextEnabled:d.isValid}}function i3(t){return t.map(e=>new e)}let l3=class extends Zm{constructor(e,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=i=>{switch(i.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=i=>{this.currentData=i,this.renderRunner.request(i.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:i}=this;ma(()=>{En(E(Ym,{options:i.calendarOptions,theme:i.theme,emitter:i.emitter},(l,r,a,s)=>(this.setClassNames(l),this.setHeight(r),E(ya.Provider,{value:this.customContentRenderId},E(n3,Object.assign({isHeightAuto:a,forPrint:s},i))))),this.el)})}else this.isRendered&&(this.isRendered=!1,En(null,this.el),this.setClassNames([]),this.setHeight(""))},Tp(e),this.el=e,this.renderRunner=new si(this.handleRenderRequest),new U0({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){ma(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,n){this.currentDataManager.resetOptions(e,n)}setClassNames(e){if(!gt(e,this.currentClassNames)){let{classList:n}=this.el;for(let i of this.currentClassNames)n.remove(i);for(let i of e)n.add(i);this.currentClassNames=e}}setHeight(e){Gr(this.el,"height",e)}};const r3={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},Os=o.defineComponent({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:c3(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(o.h(a3,{key:e.id,customRendering:e}));return o.h("div",{attrs:{"data-fc-render-id":this.renderId}},o.h(o.Fragment,t))},mounted(){const t=new Kg;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),n=new l3(this.$el,e);this.calendar=n,n.render(),t.subscribe(i=>{this.customRenderingMap=i,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:s3()}),a3=o.defineComponent({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return o.h(o.Teleport,{to:t.containerEl},e)}});function _5(t){return t}function s3(){let t={options:{deep:!0,handler(e){let n=this.getApi();n.pauseRendering();let i=this.buildOptions(e);n.resetOptions(i),this.renderId++}}};for(let e in r3)t[`options.${e}`]={deep:!0,handler(n){if(n!==void 0){let i=this.getApi();i.pauseRendering(),i.resetOptions({[e]:n},[e]),this.renderId++}}};return t}function c3(t){const e={};for(const n in t)e[d3(n)]=t[n];return e}function d3(t){return t.split("-").map((e,n)=>n?u3(e):e).join("")}function u3(t){return t.charAt(0).toUpperCase()+t.slice(1)}class f3 extends Ke{constructor(){super(...arguments),this.headerElRef=De()}renderSimpleLayout(e,n){let{props:i,context:l}=this,r=[],a=So(l.options);return e&&r.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),r.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),E(po,{elClasses:["fc-daygrid"],viewSpec:l.viewSpec},E(Ki,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[],sections:r}))}renderHScrollLayout(e,n,i,l){let r=this.context.pluginHooks.scrollGridImpl;if(!r)throw new Error("No ScrollGrid implementation");let{props:a,context:s}=this,d=!a.forPrint&&So(s.options),f=!a.forPrint&&us(s.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:d,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),f&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:Zi}]}),E(po,{elClasses:["fc-daygrid"],viewSpec:s.viewSpec},E(r,{liquid:!a.isHeightAuto&&!a.forPrint,forPrint:a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:i,minWidth:l}]}],sections:u}))}}function Ao(t,e){let n=[];for(let i=0;i<e;i+=1)n[i]=[];for(let i of t)n[i.row].push(i);return n}function xo(t,e){let n=[];for(let i=0;i<e;i+=1)n[i]=[];for(let i of t)n[i.firstCol].push(i);return n}function Ms(t,e){let n=[];if(t){for(let i=0;i<e;i+=1)n[i]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let i of t.segs)n[i.row].segs.push(i)}else for(let i=0;i<e;i+=1)n[i]=null;return n}const Ls=he({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Ps(t){let{display:e}=t.eventRange.ui;return e==="list-item"||e==="auto"&&!t.eventRange.def.allDay&&t.firstCol===t.lastCol&&t.isStart&&t.isEnd}class $s extends re{render(){let{props:e}=this;return E(fs,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Ls,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class zs extends re{render(){let{props:e,context:n}=this,{options:i}=n,{seg:l}=e,r=i.eventTimeFormat||Ls,a=Ha(l,r,n,!0,e.defaultDisplayEventEnd);return E(Xi,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:ja(e.seg,n),defaultGenerator:p3,timeText:a,isResizing:!1,isDateSelecting:!1}))}}function p3(t){return E(fe,null,E("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&E("div",{className:"fc-event-time"},t.timeText),E("div",{className:"fc-event-title"},t.event.title||E(fe,null," ")))}class h3 extends re{constructor(){super(...arguments),this.compileSegs=q(m3)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:i}=this.compileSegs(e.singlePlacements);return E(gs,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:i,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let l=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return E(fe,null,n.map(r=>{let a=r.eventRange.instance.instanceId;return E("div",{className:"fc-daygrid-event-harness",key:a,style:{visibility:l[a]?"hidden":""}},Ps(r)?E(zs,Object.assign({seg:r,isDragging:!1,isSelected:a===e.eventSelection,defaultDisplayEventEnd:!1},Et(r,e.todayRange))):E($s,Object.assign({seg:r,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===e.eventSelection,defaultDisplayEventEnd:!1},Et(r,e.todayRange))))}))}})}}function m3(t){let e=[],n=[];for(let i of t)e.push(i.seg),i.isVisible||n.push(i.seg);return{allSegs:e,invisibleSegs:n}}const g3=he({week:"narrow"});class _3 extends Ke{constructor(){super(...arguments),this.rootElRef=De(),this.state={dayNumberId:no()},this.handleRootEl=e=>{it(this.rootElRef,e),it(this.props.elRef,e)}}render(){let{context:e,props:n,state:i,rootElRef:l}=this,{options:r,dateEnv:a}=e,{date:s,dateProfile:d}=n;const f=n.showDayNumber&&b3(s,d.currentRange,a);return E(el,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":i.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:y3,date:s,dateProfile:d,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:f,extraRenderProps:n.extraRenderProps},(u,g)=>E("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&E(ms,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:ko(e,s,"week"),date:s,defaultFormat:g3}),!g.isDisabled&&(n.showDayNumber||tl(r)||n.forceDayTop)?E("div",{className:"fc-daygrid-day-top"},E(u,{elTag:"a",elClasses:["fc-daygrid-day-number",f&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},ko(e,s)),{id:i.dayNumberId})})):n.showDayNumber?E("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},E("a",{className:"fc-daygrid-day-number"}," ")):void 0,E("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,E("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},E(h3,{allDayDate:s,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:l,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),E("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function y3(t){return t.dayNumberText||E(fe,null," ")}function b3(t,e,n){const{start:i,end:l}=e,r=_t(l,-1),a=n.getYear(i),s=n.getMonth(i),d=n.getYear(r),f=n.getMonth(r);return!(a===d&&s===f)&&(t.valueOf()===i.valueOf()||n.getDay(t)===1&&t.valueOf()<l.valueOf())}function Fs(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function Hs(t){return Fs(t)+":"+t.lastCol}function E3(t,e,n,i,l,r,a){let s=new w3(b=>{let y=t[b.index].eventRange.instance.instanceId+":"+b.span.start+":"+(b.span.end-1);return l[y]});s.allowReslicing=!0,s.strictOrder=i,e===!0||n===!0?(s.maxCoord=r,s.hiddenConsumes=!0):typeof e=="number"?s.maxStackCnt=e:typeof n=="number"&&(s.maxStackCnt=n,s.hiddenConsumes=!0);let d=[],f=[];for(let b=0;b<t.length;b+=1){let y=t[b],w=Hs(y);l[w]!=null?d.push({index:b,span:{start:y.firstCol,end:y.lastCol+1}}):f.push(y)}let u=s.addSegs(d),g=s.toRects(),{singleColPlacements:h,multiColPlacements:c,leftoverMargins:_}=k3(g,t,a),p=[],m=[];for(let b of f){c[b.firstCol].push({seg:b,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let y=b.firstCol;y<=b.lastCol;y+=1)h[y].push({seg:an(b,y,y+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<a.length;b+=1)p.push(0);for(let b of u){let y=t[b.index],w=b.span;c[w.start].push({seg:an(y,w.start,w.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let v=w.start;v<w.end;v+=1)p[v]+=1,h[v].push({seg:an(y,v,v+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<a.length;b+=1)m.push(_[b]);return{singleColPlacements:h,multiColPlacements:c,moreCnts:p,moreMarginTops:m}}function k3(t,e,n){let i=C3(t,n.length),l=[],r=[],a=[];for(let s=0;s<n.length;s+=1){let d=i[s],f=[],u=0,g=0;for(let c of d){let _=e[c.index];f.push({seg:an(_,s,s+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:c.levelCoord,marginTop:c.levelCoord-u}),u=c.levelCoord+c.thickness}let h=[];u=0,g=0;for(let c of d){let _=e[c.index],p=c.span.end-c.span.start>1,m=c.span.start===s;g+=c.levelCoord-u,u=c.levelCoord+c.thickness,p?(g+=c.thickness,m&&h.push({seg:an(_,c.span.start,c.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:c.levelCoord,marginTop:0})):m&&(h.push({seg:an(_,c.span.start,c.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:c.levelCoord,marginTop:g}),g=0)}l.push(f),r.push(h),a.push(g)}return{singleColPlacements:l,multiColPlacements:r,leftoverMargins:a}}function C3(t,e){let n=[];for(let i=0;i<e;i+=1)n.push([]);for(let i of t)for(let l=i.span.start;l<i.span.end;l+=1)n[l].push(i);return n}function an(t,e,n,i){if(t.firstCol===e&&t.lastCol===n-1)return t;let l=t.eventRange,r=l.range,a=$t(r,{start:i[e].date,end:Se(i[n-1].date,1)});return Object.assign(Object.assign({},t),{firstCol:e,lastCol:n-1,eventRange:{def:l.def,ui:Object.assign(Object.assign({},l.ui),{durationEditable:!1}),instance:l.instance,range:a},isStart:t.isStart&&a.start.valueOf()===r.start.valueOf(),isEnd:t.isEnd&&a.end.valueOf()===r.end.valueOf()})}class w3 extends Ja{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:i}=this,l=r=>!this.forceHidden[Ht(r)];for(let r=0;r<i.length;r+=1)i[r]=i[r].filter(l);return n}handleInvalidInsertion(e,n,i){const{entriesByLevel:l,forceHidden:r}=this,{touchingEntry:a,touchingLevel:s,touchingLateral:d}=e;if(this.hiddenConsumes&&a){const f=Ht(a);if(!r[f])if(this.allowReslicing){const u=Object.assign(Object.assign({},a),{span:Wi(a.span,n.span)}),g=Ht(u);r[g]=!0,l[s][d]=u,this.splitEntry(a,n,i)}else r[f]=!0,i.push(a)}return super.handleInvalidInsertion(e,n,i)}}class Us extends Ke{constructor(){super(...arguments),this.cellElRefs=new rt,this.frameElRefs=new rt,this.fgElRefs=new rt,this.segHarnessRefs=new rt,this.rootElRef=De(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:i}=this,{options:l}=i,r=e.cells.length,a=xo(e.businessHourSegs,r),s=xo(e.bgEventSegs,r),d=xo(this.getHighlightSegs(),r),f=xo(this.getMirrorSegs(),r),{singleColPlacements:u,multiColPlacements:g,moreCnts:h,moreMarginTops:c}=E3(Fa(e.fgEventSegs,l.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,l.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),_=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return E("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((p,m)=>{let b=this.renderFgSegs(m,e.forPrint?u[m]:g[m],e.todayRange,_),y=this.renderFgSegs(m,v3(f[m],g),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return E(_3,{key:p.key,elRef:this.cellElRefs.createRef(p.key),innerElRef:this.frameElRefs.createRef(p.key),dateProfile:e.dateProfile,date:p.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&m===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:p.extraRenderProps,extraDataAttrs:p.extraDataAttrs,extraClassNames:p.extraClassNames,extraDateSpan:p.extraDateSpan,moreCnt:h[m],moreMarginTop:c[m],singlePlacements:u[m],fgContentElRef:this.fgElRefs.createRef(p.key),fgContent:E(fe,null,E(fe,null,b),E(fe,null,y)),bgContent:E(fe,null,this.renderFillSegs(d[m],"highlight"),this.renderFillSegs(a[m],"non-business"),this.renderFillSegs(s[m],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let i=this.props;this.updateSizing(!Ze(e,i))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,n,i,l,r,a,s){let{context:d}=this,{eventSelection:f}=this.props,{framePositions:u}=this.state,g=this.props.cells.length===1,h=r||a||s,c=[];if(u)for(let _ of n){let{seg:p}=_,{instanceId:m}=p.eventRange.instance,b=_.isVisible&&!l[m],y=_.isAbsolute,w="",v="";y&&(d.isRtl?(v=0,w=u.lefts[p.lastCol]-u.lefts[p.firstCol]):(w=0,v=u.rights[p.firstCol]-u.rights[p.lastCol])),c.push(E("div",{className:"fc-daygrid-event-harness"+(y?" fc-daygrid-event-harness-abs":""),key:Fs(p),ref:h?null:this.segHarnessRefs.createRef(Hs(p)),style:{visibility:b?"":"hidden",marginTop:y?"":_.marginTop,top:y?_.absoluteTop:"",left:w,right:v}},Ps(p)?E(zs,Object.assign({seg:p,isDragging:r,isSelected:m===f,defaultDisplayEventEnd:g},Et(p,i))):E($s,Object.assign({seg:p,isDragging:r,isResizing:a,isDateSelecting:s,isSelected:m===f,defaultDisplayEventEnd:g},Et(p,i)))))}return c}renderFillSegs(e,n){let{isRtl:i}=this.context,{todayRange:l}=this.props,{framePositions:r}=this.state,a=[];if(r)for(let s of e){let d=i?{right:0,left:r.lefts[s.lastCol]-r.lefts[s.firstCol]}:{left:0,right:r.rights[s.firstCol]-r.rights[s.lastCol]};a.push(E("div",{key:Ua(s.eventRange),className:"fc-daygrid-bg-harness",style:d},n==="bg-event"?E(ps,Object.assign({seg:s},Et(s,l))):hs(n)))}return E(fe,{},...a)}updateSizing(e){let{props:n,state:i,frameElRefs:l}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let d=n.cells.map(f=>l.currentMap[f.key]);if(d.length){let f=this.rootElRef.current,u=new rn(f,d,!0,!1);(!i.framePositions||!i.framePositions.similarTo(u))&&this.setState({framePositions:new rn(f,d,!0,!1)})}}const r=this.state.segHeights,a=this.querySegHeights(),s=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},r),a),maxContentHeight:s?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let i in e){let l=Math.round(e[i].getBoundingClientRect().height);n[i]=Math.max(n[i]||0,l)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],i=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-i.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}}Us.addStateEquality({segHeights:Ze});function v3(t,e){if(!t.length)return[];let n=S3(e);return t.map(i=>({seg:i,isVisible:!0,isAbsolute:!0,absoluteTop:n[i.eventRange.instance.instanceId],marginTop:0}))}function S3(t){let e={};for(let n of t)for(let i of n)e[i.seg.eventRange.instance.instanceId]=i.absoluteTop;return e}class A3 extends Ke{constructor(){super(...arguments),this.splitBusinessHourSegs=q(Ao),this.splitBgEventSegs=q(Ao),this.splitFgEventSegs=q(Ao),this.splitDateSelectionSegs=q(Ao),this.splitEventDrag=q(Ms),this.splitEventResize=q(Ms),this.rowRefs=new rt}render(){let{props:e,context:n}=this,i=e.cells.length,l=this.splitBusinessHourSegs(e.businessHourSegs,i),r=this.splitBgEventSegs(e.bgEventSegs,i),a=this.splitFgEventSegs(e.fgEventSegs,i),s=this.splitDateSelectionSegs(e.dateSelectionSegs,i),d=this.splitEventDrag(e.eventDrag,i),f=this.splitEventResize(e.eventResize,i),u=i>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return E(xn,{unit:"day"},(g,h)=>E(fe,null,e.cells.map((c,_)=>E(Us,{ref:this.rowRefs.createRef(_),key:c.length?c[0].date.toISOString():_,showDayNumbers:i>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:e.dateProfile,cells:c,renderIntro:e.renderRowIntro,businessHourSegs:l[_],eventSelection:e.eventSelection,bgEventSegs:r[_].filter(x3),fgEventSegs:a[_],dateSelectionSegs:s[_],eventDrag:d[_],eventResize:f[_],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:u,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],n=e?e.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new rn(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new rn(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:i,rowPositions:l}=this,r=i.leftToIndex(e),a=l.topToIndex(n);if(a!=null&&r!=null){let s=this.props.cells[a][r];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,r),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(a,r),rect:{left:i.lefts[r],right:i.rights[r],top:l.tops[a],bottom:l.bottoms[a]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let i=this.props.cells[e][n].date,l=Se(i,1);return{start:i,end:l}}}function x3(t){return t.eventRange.def.allDay}class D3 extends Ke{constructor(){super(...arguments),this.elRef=De(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:i,expandRows:l}=e,r=i===!0||n===!0;r&&!l&&(r=!1,n=null,i=null);let a=["fc-daygrid-body",r?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",l?"":"fc-daygrid-body-natural"];return E("div",{ref:this.elRef,className:a.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},E("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:l?e.clientHeight:""}},e.colGroupNode,E("tbody",{role:"presentation"},E(A3,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:i,dayMaxEventRows:n,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=N3(this.elRef.current,this.props.dateProfile);if(e){const n=e.closest(".fc-daygrid-body"),i=n.closest(".fc-scroller"),l=e.getBoundingClientRect().top-n.getBoundingClientRect().top;i.scrollTop=l?l+1:0}this.needsScrollReset=!1}}}function N3(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${yh(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${gi(e.currentDate)}"]`)),n}class V3 extends rs{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class js extends Ke{constructor(){super(...arguments),this.slicer=new V3,this.tableRef=De()}render(){let{props:e,context:n}=this;return E(D3,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,n,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class B3 extends f3{constructor(){super(...arguments),this.buildDayTableModel=q(T3),this.headerRef=De(),this.tableRef=De()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:i}=this,l=this.buildDayTableModel(i.dateProfile,n),r=e.dayHeaders&&E(os,{ref:this.headerRef,dateProfile:i.dateProfile,dates:l.headerDates,datesRepDistinctDays:l.rowCnt===1}),a=s=>E(js,{ref:this.tableRef,dateProfile:i.dateProfile,dayTableModel:l,businessHours:i.businessHours,dateSelection:i.dateSelection,eventStore:i.eventStore,eventUiBases:i.eventUiBases,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:s.tableColGroupNode,tableMinWidth:s.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!i.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:s.clientWidth,clientHeight:s.clientHeight,forPrint:i.forPrint});return e.dayMinWidth?this.renderHScrollLayout(r,a,l.colCnt,e.dayMinWidth):this.renderSimpleLayout(r,a)}}function T3(t,e){let n=new is(t.renderRange,e);return new ls(n,/year|month|week/.test(t.currentRangeUnit))}class R3 extends wa{buildRenderRange(e,n,i){let l=super.buildRenderRange(e,n,i),{props:r}=this;return I3({currentRange:l,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:r.fixedWeekCount,dateEnv:r.dateEnv})}}function I3(t){let{dateEnv:e,currentRange:n}=t,{start:i,end:l}=n,r;if(t.snapToWeek&&(i=e.startOfWeek(i),r=e.startOfWeek(l),r.valueOf()!==l.valueOf()&&(l=na(r,1))),t.fixedWeekCount){let a=e.startOfWeek(e.startOfMonth(Se(n.end,-1))),s=Math.ceil(ah(a,l));l=na(l,6-s)}return{start:i,end:l}}var O3=':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}';ri(O3);var Ws=at({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:B3,dateProfileGeneratorClass:R3},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}}}}),M3='.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}';ri(M3);class L3 extends tg{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?Tm(e)?["timed","allDay"]:["allDay"]:["timed"]}}const P3=he({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function Gs(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return E(ot.Consumer,null,n=>{if(!t.isLabeled)return E("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:i,options:l,viewApi:r}=n,a=l.slotLabelFormat==null?P3:Array.isArray(l.slotLabelFormat)?he(l.slotLabelFormat[0]):he(l.slotLabelFormat),s={level:0,time:t.time,date:i.toDate(t.date),view:r,text:i.format(t.date,a)};return E(Le,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:s,generatorName:"slotLabelContent",customGenerator:l.slotLabelContent,defaultGenerator:$3,classNameGenerator:l.slotLabelClassNames,didMount:l.slotLabelDidMount,willUnmount:l.slotLabelWillUnmount},d=>E("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},E(d,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function $3(t){return t.text}class z3 extends re{render(){return this.props.slatMetas.map(e=>E("tr",{key:e.key},E(Gs,Object.assign({},e))))}}const F3=he({week:"short"}),H3=5;class U3 extends Ke{constructor(){super(...arguments),this.allDaySplitter=new L3,this.headerElRef=De(),this.rootElRef=De(),this.scrollerElRef=De(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let n=this.scrollerElRef.current;n&&(n.scrollTop=e)},this.renderHeadAxis=(e,n="")=>{let{options:i}=this.context,{dateProfile:l}=this.props,r=l.renderRange,s=It(r.start,r.end)===1?ko(this.context,r.start,"week"):{};return i.weekNumbers&&e==="day"?E(ms,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:r.start,defaultFormat:F3},d=>E("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},E(d,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:s}))):E("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},E("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=e=>{let{options:n,viewApi:i}=this.context,l={text:n.allDayText,view:i};return E(Le,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:l,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:j3,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},r=>E("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},E(r,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,n,i){let{context:l,props:r}=this,a=[],s=So(l.options);return e&&a.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),n&&(a.push({type:"body",key:"all-day",chunk:{content:n}}),a.push({type:"body",key:"all-day-divider",outerContent:E("tr",{role:"presentation",className:"fc-scrollgrid-section"},E("td",{className:"fc-timegrid-divider "+l.theme.getClass("tableCellShaded")}))})),a.push({type:"body",key:"body",liquid:!0,expandRows:!!l.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:i}}),E(po,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:l.viewSpec},E(Ki,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[{width:"shrink"}],sections:a}))}renderHScrollLayout(e,n,i,l,r,a,s){let d=this.context.pluginHooks.scrollGridImpl;if(!d)throw new Error("No ScrollGrid implementation");let{context:f,props:u}=this,g=!u.forPrint&&So(f.options),h=!u.forPrint&&us(f.options),c=[];e&&c.push({type:"header",key:"header",isSticky:g,syncRowHeights:!0,chunks:[{key:"axis",rowContent:p=>E("tr",{role:"presentation"},this.renderHeadAxis("day",p.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),n&&(c.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:p=>E("tr",{role:"presentation"},this.renderTableRowAxis(p.rowSyncHeights[0]))},{key:"cols",content:n}]}),c.push({key:"all-day-divider",type:"body",outerContent:E("tr",{role:"presentation",className:"fc-scrollgrid-section"},E("td",{colSpan:2,className:"fc-timegrid-divider "+f.theme.getClass("tableCellShaded")}))}));let _=f.options.nowIndicator;return c.push({type:"body",key:"body",liquid:!0,expandRows:!!f.options.expandRows,chunks:[{key:"axis",content:p=>E("div",{className:"fc-timegrid-axis-chunk"},E("table",{"aria-hidden":!0,style:{height:p.expandRows?p.clientHeight:""}},p.tableColGroupNode,E("tbody",null,E(z3,{slatMetas:a}))),E("div",{className:"fc-timegrid-now-indicator-container"},E(xn,{unit:_?"minute":"day"},m=>{let b=_&&s&&s.safeComputeTop(m);return typeof b=="number"?E(Ji,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:b},isAxis:!0,date:m}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:i}]}),h&&c.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Zi},{key:"cols",content:Zi}]}),E(po,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:f.viewSpec},E(d,{liquid:!u.isHeightAuto&&!u.forPrint,forPrint:u.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:l,minWidth:r}]}],sections:c}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:n}=this.context.options;return(e===!0||n===!0)&&(e=void 0,n=H3),{dayMaxEvents:e,dayMaxEventRows:n}}}function j3(t){return t.text}class W3{constructor(e,n,i){this.positions=e,this.dateProfile=n,this.slotDuration=i}safeComputeTop(e){let{dateProfile:n}=this;if(lt(n.currentRange,e)){let i=ue(e),l=e.valueOf()-i.valueOf();if(l>=Fe(n.slotMinTime)&&l<Fe(n.slotMaxTime))return this.computeTimeTop(ee(l))}return null}computeDateTop(e,n){return n||(n=ue(e)),this.computeTimeTop(ee(e.valueOf()-n.valueOf()))}computeTimeTop(e){let{positions:n,dateProfile:i}=this,l=n.els.length,r=(e.milliseconds-Fe(i.slotMinTime))/Fe(this.slotDuration),a,s;return r=Math.max(0,r),r=Math.min(l,r),a=Math.floor(r),a=Math.min(a,l-1),s=r-a,n.tops[a]+n.getHeight(a)*s}}class G3 extends re{render(){let{props:e,context:n}=this,{options:i}=n,{slatElRefs:l}=e;return E("tbody",null,e.slatMetas.map((r,a)=>{let s={time:r.time,date:n.dateEnv.toDate(r.date),view:n.viewApi};return E("tr",{key:r.key,ref:l.createRef(r.key)},e.axis&&E(Gs,Object.assign({},r)),E(Le,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!r.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":r.isoTimeStr},renderProps:s,generatorName:"slotLaneContent",customGenerator:i.slotLaneContent,classNameGenerator:i.slotLaneClassNames,didMount:i.slotLaneDidMount,willUnmount:i.slotLaneWillUnmount}))}))}}class q3 extends re{constructor(){super(...arguments),this.rootElRef=De(),this.slatElRefs=new rt}render(){let{props:e,context:n}=this;return E("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},E("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,E(G3,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:n}=this;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new W3(new rn(this.rootElRef.current,Y3(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function Y3(t,e){return e.map(n=>t[n.key])}function Dn(t,e){let n=[],i;for(i=0;i<e;i+=1)n.push([]);if(t)for(i=0;i<t.length;i+=1)n[t[i].col].push(t[i]);return n}function qs(t,e){let n=[];if(t){for(let i=0;i<e;i+=1)n[i]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let i of t.segs)n[i.col].segs.push(i)}else for(let i=0;i<e;i+=1)n[i]=null;return n}class Q3 extends re{render(){let{props:e}=this;return E(gs,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>Ks(e.hiddenSegs,e),defaultGenerator:Z3,forceTimed:!0},n=>E(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function Z3(t){return t.shortText}function K3(t,e,n){let i=new Ja;e!=null&&(i.strictOrder=e),n!=null&&(i.maxStackCnt=n);let l=i.addSegs(t),r=hg(l),a=X3(i);return a=n1(a,1),{segRects:o1(a),hiddenGroups:r}}function X3(t){const{entriesByLevel:e}=t,n=rl((i,l)=>i+":"+l,(i,l)=>{let r=t1(t,i,l),a=Ys(r,n),s=e[i][l];return[Object.assign(Object.assign({},s),{nextLevelNodes:a[0]}),s.thickness+a[1]]});return Ys(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}function Ys(t,e){if(!t)return[[],0];let{level:n,lateralStart:i,lateralEnd:l}=t,r=i,a=[];for(;r<l;)a.push(e(n,r)),r+=1;return a.sort(J3),[a.map(e1),a[0][1]]}function J3(t,e){return e[1]-t[1]}function e1(t){return t[0]}function t1(t,e,n){let{levelCoords:i,entriesByLevel:l}=t,r=l[e][n],a=i[e]+r.thickness,s=i.length,d=e;for(;d<s&&i[d]<a;d+=1);for(;d<s;d+=1){let f=l[d],u,g=qi(f,r.span.start,ji),h=g[0]+g[1],c=h;for(;(u=f[c])&&u.span.start<r.span.end;)c+=1;if(h<c)return{level:d,lateralStart:h,lateralEnd:c}}return null}function n1(t,e){const n=rl((i,l,r)=>Ht(i),(i,l,r)=>{let{nextLevelNodes:a,thickness:s}=i,d=s+r,f=s/d,u,g=[];if(!a.length)u=e;else for(let c of a)if(u===void 0){let _=n(c,l,d);u=_[0],g.push(_[1])}else{let _=n(c,u,0);g.push(_[1])}let h=(u-l)*f;return[u-h,Object.assign(Object.assign({},i),{thickness:h,nextLevelNodes:g})]});return t.map(i=>n(i,0,0)[1])}function o1(t){let e=[];const n=rl((l,r,a)=>Ht(l),(l,r,a)=>{let s=Object.assign(Object.assign({},l),{levelCoord:r,stackDepth:a,stackForward:0});return e.push(s),s.stackForward=i(l.nextLevelNodes,r+l.thickness,a+1)+1});function i(l,r,a){let s=0;for(let d of l)s=Math.max(n(d,r,a),s);return s}return i(t,0,0),e}function rl(t,e){const n={};return(...i)=>{let l=t(...i);return l in n?n[l]:n[l]=e(...i)}}function Qs(t,e,n=null,i=0){let l=[];if(n)for(let r=0;r<t.length;r+=1){let a=t[r],s=n.computeDateTop(a.start,e),d=Math.max(s+(i||0),n.computeDateTop(a.end,e));l.push({start:Math.round(s),end:Math.round(d)})}return l}function i1(t,e,n,i){let l=[],r=[];for(let f=0;f<t.length;f+=1){let u=e[f];u?l.push({index:f,thickness:1,span:u}):r.push(t[f])}let{segRects:a,hiddenGroups:s}=K3(l,n,i),d=[];for(let f of a)d.push({seg:t[f.index],rect:f});for(let f of r)d.push({seg:f,rect:null});return{segPlacements:d,hiddenGroups:s}}const l1=he({hour:"numeric",minute:"2-digit",meridiem:!1});class Zs extends re{render(){return E(fs,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:l1}))}}class r1 extends re{constructor(){super(...arguments),this.sortEventSegs=q(Fa)}render(){let{props:e,context:n}=this,{options:i}=n,l=i.selectMirror,r=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||l&&e.dateSelectionSegs||[],a=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},s=this.sortEventSegs(e.fgEventSegs,i.eventOrder);return E(el,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},d=>E("div",{className:"fc-timegrid-col-frame"},E("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),E("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,a,!1,!1,!1)),E("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(r,{},!!e.eventDrag,!!e.eventResize,!!l,"mirror")),E("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),tl(i)&&E(d,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,n,i,l,r,a){let{props:s}=this;return s.forPrint?Ks(e,s):this.renderPositionedFgSegs(e,n,i,l,r,a)}renderPositionedFgSegs(e,n,i,l,r,a){let{eventMaxStack:s,eventShortHeight:d,eventOrderStrict:f,eventMinHeight:u}=this.context.options,{date:g,slatCoords:h,eventSelection:c,todayRange:_,nowDate:p}=this.props,m=i||l||r,b=Qs(e,g,h,u),{segPlacements:y,hiddenGroups:w}=i1(e,b,f,s);return E(fe,null,this.renderHiddenGroups(w,e),y.map(v=>{let{seg:O,rect:x}=v,C=O.eventRange.instance.instanceId,k=m||!!(!n[C]&&x),B=al(x&&x.span),V=!m&&x?this.computeSegHStyle(x):{left:0,right:0},P=!!x&&x.stackForward>0,T=!!x&&x.span.end-x.span.start<d;return E("div",{className:"fc-timegrid-event-harness"+(P?" fc-timegrid-event-harness-inset":""),key:a||C,style:Object.assign(Object.assign({visibility:k?"":"hidden"},B),V)},E(Zs,Object.assign({seg:O,isDragging:i,isResizing:l,isDateSelecting:r,isSelected:C===c,isShort:T},Et(O,_,p))))}))}renderHiddenGroups(e,n){let{extraDateSpan:i,dateProfile:l,todayRange:r,nowDate:a,eventSelection:s,eventDrag:d,eventResize:f}=this.props;return E(fe,null,e.map(u=>{let g=al(u.span),h=a1(u.entries,n);return E(Q3,{key:ra(ys(h)),hiddenSegs:h,top:g.top,bottom:g.bottom,extraDateSpan:i,dateProfile:l,todayRange:r,nowDate:a,eventSelection:s,eventDrag:d,eventResize:f})}))}renderFillSegs(e,n){let{props:i,context:l}=this,a=Qs(e,i.date,i.slatCoords,l.options.eventMinHeight).map((s,d)=>{let f=e[d];return E("div",{key:Ua(f.eventRange),className:"fc-timegrid-bg-harness",style:al(s)},n==="bg-event"?E(ps,Object.assign({seg:f},Et(f,i.todayRange,i.nowDate))):hs(n))});return E(fe,null,a)}renderNowIndicator(e){let{slatCoords:n,date:i}=this.props;return n?e.map((l,r)=>E(Ji,{key:r,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(l.start,i)},isAxis:!1,date:i})):null}computeSegHStyle(e){let{isRtl:n,options:i}=this.context,l=i.slotEventOverlap,r=e.levelCoord,a=e.levelCoord+e.thickness,s,d;l&&(a=Math.min(1,r+(a-r)*2)),n?(s=1-a,d=r):(s=r,d=1-a);let f={zIndex:e.stackDepth+1,left:s*100+"%",right:d*100+"%"};return l&&!e.stackForward&&(f[n?"marginLeft":"marginRight"]=10*2),f}}function Ks(t,{todayRange:e,nowDate:n,eventSelection:i,eventDrag:l,eventResize:r}){let a=(l?l.affectedInstances:null)||(r?r.affectedInstances:null)||{};return E(fe,null,t.map(s=>{let d=s.eventRange.instance.instanceId;return E("div",{key:d,style:{visibility:a[d]?"hidden":""}},E(Zs,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:d===i,isShort:!1},Et(s,e,n))))}))}function al(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function a1(t,e){return t.map(n=>e[n.index])}class s1 extends re{constructor(){super(...arguments),this.splitFgEventSegs=q(Dn),this.splitBgEventSegs=q(Dn),this.splitBusinessHourSegs=q(Dn),this.splitNowIndicatorSegs=q(Dn),this.splitDateSelectionSegs=q(Dn),this.splitEventDrag=q(qs),this.splitEventResize=q(qs),this.rootElRef=De(),this.cellElRefs=new rt}render(){let{props:e,context:n}=this,i=n.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),l=e.cells.length,r=this.splitFgEventSegs(e.fgEventSegs,l),a=this.splitBgEventSegs(e.bgEventSegs,l),s=this.splitBusinessHourSegs(e.businessHourSegs,l),d=this.splitNowIndicatorSegs(e.nowIndicatorSegs,l),f=this.splitDateSelectionSegs(e.dateSelectionSegs,l),u=this.splitEventDrag(e.eventDrag,l),g=this.splitEventResize(e.eventResize,l);return E("div",{className:"fc-timegrid-cols",ref:this.rootElRef},E("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,E("tbody",{role:"presentation"},E("tr",{role:"row"},e.axis&&E("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},E("div",{className:"fc-timegrid-col-frame"},E("div",{className:"fc-timegrid-now-indicator-container"},typeof i=="number"&&E(Ji,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:i},isAxis:!0,date:e.nowDate})))),e.cells.map((h,c)=>E(r1,{key:h.key,elRef:this.cellElRefs.createRef(h.key),dateProfile:e.dateProfile,date:h.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:h.extraRenderProps,extraDataAttrs:h.extraDataAttrs,extraClassNames:h.extraClassNames,extraDateSpan:h.extraDateSpan,fgEventSegs:r[c],bgEventSegs:a[c],businessHourSegs:s[c],nowIndicatorSegs:d[c],dateSelectionSegs:f[c],eventDrag:u[c],eventResize:g[c],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new rn(this.rootElRef.current,c1(this.cellElRefs.currentMap,e.cells),!0,!1))}}function c1(t,e){return e.map(n=>t[n.key])}class d1 extends Ke{constructor(){super(...arguments),this.processSlotOptions=q(u1),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:n}=this.props,{slatCoords:i}=this.state;if(n&&i){if(e.time){let l=i.computeTimeTop(e.time);l=Math.ceil(l),l&&(l+=1),n(l)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:n}=this;return E("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},E(q3,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),E(s1,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,n){let{dateEnv:i,options:l}=this.context,{colCoords:r}=this,{dateProfile:a}=this.props,{slatCoords:s}=this.state,{snapDuration:d,snapsPerSlot:f}=this.processSlotOptions(this.props.slotDuration,l.snapDuration),u=r.leftToIndex(e),g=s.positions.topToIndex(n);if(u!=null&&g!=null){let h=this.props.cells[u],c=s.positions.tops[g],_=s.positions.getHeight(g),p=(n-c)/_,m=Math.floor(p*f),b=g*f+m,y=this.props.cells[u].date,w=fi(a.slotMinTime,oh(d,b)),v=i.add(y,w),O=i.add(v,d);return{dateProfile:a,dateSpan:Object.assign({range:{start:v,end:O},allDay:!1},h.extraDateSpan),dayEl:r.els[u],rect:{left:r.lefts[u],right:r.rights[u],top:c,bottom:c+_},layer:0}}return null}}function u1(t,e){let n=e||t,i=pi(t,n);return i===null&&(n=t,i=1),{snapDuration:n,snapsPerSlot:i}}class f1 extends rs{sliceRange(e,n){let i=[];for(let l=0;l<n.length;l+=1){let r=$t(e,n[l]);r&&i.push({start:r.start,end:r.end,isStart:r.start.valueOf()===e.start.valueOf(),isEnd:r.end.valueOf()===e.end.valueOf(),col:l})}return i}}class p1 extends Ke{constructor(){super(...arguments),this.buildDayRanges=q(h1),this.slicer=new f1,this.timeColsRef=De()}render(){let{props:e,context:n}=this,{dateProfile:i,dayTableModel:l}=e,{nowIndicator:r,nextDayThreshold:a}=n.options,s=this.buildDayRanges(l,i,n.dateEnv);return E(xn,{unit:r?"minute":"day"},(d,f)=>E(d1,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,i,null,n,s),{forPrint:e.forPrint,axis:e.axis,dateProfile:i,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:l.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:d,nowIndicatorSegs:r&&this.slicer.sliceNowDate(d,i,a,n,s),todayRange:f,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function h1(t,e,n){let i=[];for(let l of t.headerDates)i.push({start:n.add(l,e.slotMinTime),end:n.add(l,e.slotMaxTime)});return i}const Xs=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function m1(t,e,n,i,l){let r=new Date(0),a=t,s=ee(0),d=n||g1(i),f=[];for(;Fe(a)<Fe(e);){let u=l.add(r,a),g=pi(s,d)!==null;f.push({date:u,time:a,key:u.toISOString(),isoTimeStr:bh(u),isLabeled:g}),a=fi(a,i),s=fi(s,i)}return f}function g1(t){let e,n,i;for(e=Xs.length-1;e>=0;e-=1)if(n=ee(Xs[e]),i=pi(n,t),i!==null&&i>1)return n;return t}class _1 extends U3{constructor(){super(...arguments),this.buildTimeColsModel=q(y1),this.buildSlatMetas=q(m1)}render(){let{options:e,dateEnv:n,dateProfileGenerator:i}=this.context,{props:l}=this,{dateProfile:r}=l,a=this.buildTimeColsModel(r,i),s=this.allDaySplitter.splitProps(l),d=this.buildSlatMetas(r.slotMinTime,r.slotMaxTime,e.slotLabelInterval,e.slotDuration,n),{dayMinWidth:f}=e,u=!f,g=f,h=e.dayHeaders&&E(os,{dates:a.headerDates,dateProfile:r,datesRepDistinctDays:!0,renderIntro:u?this.renderHeadAxis:null}),c=e.allDaySlot!==!1&&(p=>E(js,Object.assign({},s.allDay,{dateProfile:r,dayTableModel:a,nextDayThreshold:e.nextDayThreshold,tableMinWidth:p.tableMinWidth,colGroupNode:p.tableColGroupNode,renderRowIntro:u?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:p.clientWidth,clientHeight:p.clientHeight,forPrint:l.forPrint},this.getAllDayMaxEventProps()))),_=p=>E(p1,Object.assign({},s.timed,{dayTableModel:a,dateProfile:r,axis:u,slotDuration:e.slotDuration,slatMetas:d,forPrint:l.forPrint,tableColGroupNode:p.tableColGroupNode,tableMinWidth:p.tableMinWidth,clientWidth:p.clientWidth,clientHeight:p.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:p.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return g?this.renderHScrollLayout(h,c,_,a.colCnt,f,d,this.state.slatCoords):this.renderSimpleLayout(h,c,_)}}function y1(t,e){let n=new is(t.renderRange,e);return new ls(n,!1)}var Js=at({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:_1,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});Yi.touchMouseIgnoreWait=500;let sl=0,Do=0,cl=!1;class ec{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=n=>{if(!this.shouldIgnoreMouse()&&b1(n)&&this.tryStart(n)){let i=this.createEventFromMouse(n,!0);this.emitter.trigger("pointerdown",i),this.initScrollWatch(i),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=n=>{let i=this.createEventFromMouse(n);this.recordCoords(i),this.emitter.trigger("pointermove",i)},this.handleMouseUp=n=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(n)),this.cleanup()},this.handleTouchStart=n=>{if(this.tryStart(n)){this.isTouchDragging=!0;let i=this.createEventFromTouch(n,!0);this.emitter.trigger("pointerdown",i),this.initScrollWatch(i);let l=n.target;this.shouldIgnoreMove||l.addEventListener("touchmove",this.handleTouchMove),l.addEventListener("touchend",this.handleTouchEnd),l.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=n=>{let i=this.createEventFromTouch(n);this.recordCoords(i),this.emitter.trigger("pointermove",i)},this.handleTouchEnd=n=>{if(this.isDragging){let i=n.target;i.removeEventListener("touchmove",this.handleTouchMove),i.removeEventListener("touchend",this.handleTouchEnd),i.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(n)),this.cleanup(),this.isTouchDragging=!1,E1()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let i=window.pageXOffset-this.prevScrollX+this.prevPageX,l=window.pageYOffset-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:n,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:i,pageY:l,deltaX:i-this.origPageX,deltaY:l-this.origPageY})}},this.containerEl=e,this.emitter=new bo,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),k1()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),C1()}tryStart(e){let n=this.querySubjectEl(e),i=e.target;return n&&(!this.handleSelector||ve(i,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){cl=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?ve(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return sl||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(cl=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,n){let i=0,l=0;return n?(this.origPageX=e.pageX,this.origPageY=e.pageY):(i=e.pageX-this.origPageX,l=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:i,deltaY:l}}createEventFromTouch(e,n){let i=e.touches,l,r,a=0,s=0;return i&&i.length?(l=i[0].pageX,r=i[0].pageY):(l=e.pageX,r=e.pageY),n?(this.origPageX=l,this.origPageY=r):(a=l-this.origPageX,s=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:l,pageY:r,deltaX:a,deltaY:s}}}function b1(t){return t.button===0&&!t.ctrlKey}function E1(){sl+=1,setTimeout(()=>{sl-=1},Yi.touchMouseIgnoreWait)}function k1(){Do+=1,Do===1&&window.addEventListener("touchmove",tc,{passive:!1})}function C1(){Do-=1,Do||window.removeEventListener("touchmove",tc,{passive:!1})}function tc(t){cl&&t.preventDefault()}class w1{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,n,i){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=n-window.pageXOffset,this.origScreenY=i-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,n){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=n-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,n){let i=()=>{this.cleanup(),n()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(i,this.revertDuration):setTimeout(i,0)}doRevertAnimation(e,n){let i=this.mirrorEl,l=this.sourceEl.getBoundingClientRect();i.style.transition="top "+n+"ms,left "+n+"ms",kn(i,{left:l.left,top:l.top}),Hp(i,()=>{i.style.transition="",e()})}cleanup(){this.mirrorEl&&(ci(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&kn(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,n=this.mirrorEl;return n||(n=this.mirrorEl=this.sourceEl.cloneNode(!0),n.style.userSelect="none",n.style.webkitUserSelect="none",n.classList.add("fc-event-dragging"),kn(n,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(n)),n}}class nc extends Ui{constructor(e,n){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=n,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.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(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class oc extends nc{constructor(e,n){super(new fg(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return dg(this.scrollController.el)}}class v1 extends nc{constructor(e){super(new pg,e)}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 ic=typeof performance=="function"?performance.now:Date.now;class S1{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 e=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(e){let n=ic();this.handleSide(e,(n-this.msSinceRequest)/1e3),this.requestAnimation(n)}else this.isAnimating=!1}}}start(e,n,i){this.isEnabled&&(this.scrollCaches=this.buildCaches(i),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,n))}handleMove(e,n){if(this.isEnabled){let i=e-window.pageXOffset,l=n-window.pageYOffset,r=this.pointerScreenY===null?0:l-this.pointerScreenY,a=this.pointerScreenX===null?0:i-this.pointerScreenX;r<0?this.everMovedUp=!0:r>0&&(this.everMovedDown=!0),a<0?this.everMovedLeft=!0:a>0&&(this.everMovedRight=!0),this.pointerScreenX=i,this.pointerScreenY=l,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(ic()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,n){let{scrollCache:i}=e,{edgeThreshold:l}=this,r=l-e.distance,a=r*r/(l*l)*this.maxVelocity*n,s=1;switch(e.name){case"left":s=-1;case"right":i.setScrollLeft(i.getScrollLeft()+a*s);break;case"top":s=-1;case"bottom":i.setScrollTop(i.getScrollTop()+a*s);break}}computeBestEdge(e,n){let{edgeThreshold:i}=this,l=null,r=this.scrollCaches||[];for(let a of r){let s=a.clientRect,d=e-s.left,f=s.right-e,u=n-s.top,g=s.bottom-n;d>=0&&f>=0&&u>=0&&g>=0&&(u<=i&&this.everMovedUp&&a.canScrollUp()&&(!l||l.distance>u)&&(l={scrollCache:a,name:"top",distance:u}),g<=i&&this.everMovedDown&&a.canScrollDown()&&(!l||l.distance>g)&&(l={scrollCache:a,name:"bottom",distance:g}),d<=i&&this.everMovedLeft&&a.canScrollLeft()&&(!l||l.distance>d)&&(l={scrollCache:a,name:"left",distance:d}),f<=i&&this.everMovedRight&&a.canScrollRight()&&(!l||l.distance>f)&&(l={scrollCache:a,name:"right",distance:f}))}return l}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new v1(!1):new oc(n,!1))}queryScrollEls(e){let n=[];for(let i of this.scrollQuery)typeof i=="object"?n.push(i):n.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(i)));return n}}class Nn extends gg{constructor(e,n){super(e),this.containerEl=e,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=l=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,Up(document.body),Wp(document.body),l.isTouch||l.origEvent.preventDefault(),this.emitter.trigger("pointerdown",l),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(l.subjectEl,l.pageX,l.pageY),this.startDelay(l),this.minDistance||this.handleDistanceSurpassed(l)))},this.onPointerMove=l=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",l),!this.isDistanceSurpassed){let r=this.minDistance,a,{deltaX:s,deltaY:d}=l;a=s*s+d*d,a>=r*r&&this.handleDistanceSurpassed(l)}this.isDragging&&(l.origEvent.type!=="scroll"&&(this.mirror.handleMove(l.pageX,l.pageY),this.autoScroller.handleMove(l.pageX,l.pageY)),this.emitter.trigger("dragmove",l))}},this.onPointerUp=l=>{this.isInteracting&&(this.isInteracting=!1,jp(document.body),Gp(document.body),this.emitter.trigger("pointerup",l),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(l)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let i=this.pointer=new ec(e);i.emitter.on("pointerdown",this.onPointerDown),i.emitter.on("pointermove",this.onPointerMove),i.emitter.on("pointerup",this.onPointerUp),n&&(i.selector=n),this.mirror=new w1,this.autoScroller=new S1}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class A1{constructor(e){this.origRect=Hi(e),this.scrollCaches=Xa(e).map(n=>new oc(n,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let n of this.scrollCaches)e+=n.origScrollLeft-n.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let n of this.scrollCaches)e+=n.origScrollTop-n.getScrollTop();return e}isWithinClipping(e,n){let i={left:e,top:n};for(let l of this.scrollCaches)if(!x1(l.getEventTarget())&&!Km(i,l.clientRect))return!1;return!0}}function x1(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class No{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=i=>{let{dragging:l}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(i),this.initialHit||!this.requireInitial?(l.setIgnoreMove(!1),this.emitter.trigger("pointerdown",i)):l.setIgnoreMove(!0)},this.handleDragStart=i=>{this.emitter.trigger("dragstart",i),this.handleMove(i,!0)},this.handleDragMove=i=>{this.emitter.trigger("dragmove",i),this.handleMove(i)},this.handlePointerUp=i=>{this.releaseHits(),this.emitter.trigger("pointerup",i)},this.handleDragEnd=i=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,i),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",i)},this.droppableStore=n,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new bo}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},i=n,l=e.subjectEl,r;l instanceof HTMLElement&&(r=Hi(l),i=Xm(i,r));let a=this.initialHit=this.queryHitForOffset(i.left,i.top);if(a){if(this.useSubjectCenter&&r){let s=Qa(r,a.rect);s&&(i=Jm(s))}this.coordAdjust=eg(i,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,n){let i=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(n||!Vo(this.movingHit,i))&&(this.movingHit=i,this.emitter.trigger("hitupdate",i,!1,e))}prepareHits(){this.offsetTrackers=nt(this.droppableStore,e=>(e.component.prepareHits(),new A1(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let n in e)e[n].destroy();this.offsetTrackers={}}queryHitForOffset(e,n){let{droppableStore:i,offsetTrackers:l}=this,r=null;for(let a in i){let s=i[a].component,d=l[a];if(d&&d.isWithinClipping(e,n)){let f=d.computeLeft(),u=d.computeTop(),g=e-f,h=n-u,{origRect:c}=d,_=c.right-c.left,p=c.bottom-c.top;if(g>=0&&g<_&&h>=0&&h<p){let m=s.queryHit(g,h,_,p);m&&ho(m.dateProfile.activeRange,m.dateSpan.range)&&(!r||m.layer>r.layer)&&(m.componentId=a,m.context=s.context,m.rect.left+=f,m.rect.right+=f,m.rect.top+=u,m.rect.bottom+=u,r=m)}}}return r}}function Vo(t,e){return!t&&!e?!0:!!t!=!!e?!1:Fm(t.dateSpan,e.dateSpan)}function lc(t,e){let n={};for(let i of e.pluginHooks.datePointTransforms)Object.assign(n,i(t,e));return Object.assign(n,D1(t,e.dateEnv)),n}function D1(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class N1 extends ln{constructor(e){super(e),this.handlePointerDown=i=>{let{dragging:l}=this,r=i.origEvent.target;l.setIgnoreMove(!this.component.isValidDateDownEl(r))},this.handleDragEnd=i=>{let{component:l}=this,{pointer:r}=this.dragging;if(!r.wasTouchScroll){let{initialHit:a,finalHit:s}=this.hitDragging;if(a&&s&&Vo(a,s)){let{context:d}=l,f=Object.assign(Object.assign({},lc(a.dateSpan,d)),{dayEl:a.dayEl,jsEvent:i.origEvent,view:d.viewApi||d.calendarApi.view});d.emitter.trigger("dateClick",f)}}},this.dragging=new Nn(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new No(this.dragging,Mi(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class V1 extends ln{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=a=>{let{component:s,dragging:d}=this,{options:f}=s.context,u=f.selectable&&s.isValidDateDownEl(a.origEvent.target);d.setIgnoreMove(!u),d.delay=a.isTouch?B1(s):null},this.handleDragStart=a=>{this.component.context.calendarApi.unselect(a)},this.handleHitUpdate=(a,s)=>{let{context:d}=this.component,f=null,u=!1;if(a){let g=this.hitDragging.initialHit;a.componentId===g.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(g,a)||(f=T1(g,a,d.pluginHooks.dateSelectionTransformers)),(!f||!Cg(f,a.dateProfile,d))&&(u=!0,f=null)}f?d.dispatch({type:"SELECT_DATES",selection:f}):s||d.dispatch({type:"UNSELECT_DATES"}),u?di():ui(),s||(this.dragSelection=f)},this.handlePointerUp=a=>{this.dragSelection&&(Oa(this.dragSelection,a,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:i}=n.context,l=this.dragging=new Nn(e.el);l.touchScrollAllowed=!1,l.minDistance=i.selectMinDistance||0,l.autoScroller.isEnabled=i.dragScroll;let r=this.hitDragging=new No(this.dragging,Mi(e));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function B1(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function T1(t,e,n){let i=t.dateSpan,l=e.dateSpan,r=[i.range.start,i.range.end,l.range.start,l.range.end];r.sort(Kp);let a={};for(let s of n){let d=s(t,e);if(d===!1)return null;d&&Object.assign(a,d)}return a.range={start:r[0],end:r[3]},a.allDay=i.allDay,a}class Vn extends ln{constructor(e){super(e),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=a=>{let s=a.origEvent.target,{component:d,dragging:f}=this,{mirror:u}=f,{options:g}=d.context,h=d.context;this.subjectEl=a.subjectEl;let c=this.subjectSeg=on(a.subjectEl),p=(this.eventRange=c.eventRange).instance.instanceId;this.relevantEvents=Bi(h.getCurrentData().eventStore,p),f.minDistance=a.isTouch?0:g.eventDragMinDistance,f.delay=a.isTouch&&p!==d.props.eventSelection?I1(d):null,g.fixedMirrorParent?u.parentNode=g.fixedMirrorParent:u.parentNode=ve(s,".fc"),u.revertDuration=g.dragRevertDuration;let m=d.isValidSegDownEl(s)&&!ve(s,".fc-event-resizer");f.setIgnoreMove(!m),this.isDragging=m&&a.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=a=>{let s=this.component.context,d=this.eventRange,f=d.instance.instanceId;a.isTouch?f!==this.component.props.eventSelection&&s.dispatch({type:"SELECT_EVENT",eventInstanceId:f}):s.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(s.calendarApi.unselect(a),s.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new pe(s,d.def,d.instance),jsEvent:a.origEvent,view:s.viewApi}))},this.handleHitUpdate=(a,s)=>{if(!this.isDragging)return;let d=this.relevantEvents,f=this.hitDragging.initialHit,u=this.component.context,g=null,h=null,c=null,_=!1,p={affectedEvents:d,mutatedEvents:Pe(),isEvent:!0};if(a){g=a.context;let m=g.options;u===g||m.editable&&m.droppable?(h=R1(f,a,g.getCurrentData().pluginHooks.eventDragMutationMassagers),h&&(c=Ii(d,g.getCurrentData().eventUiBases,h,g),p.mutatedEvents=c,as(p,a.dateProfile,g)||(_=!0,h=null,c=null,p.mutatedEvents=Pe()))):g=null}this.displayDrag(g,p),_?di():ui(),s||(u===g&&Vo(f,a)&&(h=null),this.dragging.setMirrorNeedsRevert(!h),this.dragging.setMirrorIsVisible(!a||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=g,this.validMutation=h,this.mutatedRelevantEvents=c)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=a=>{if(this.isDragging){let s=this.component.context,d=s.viewApi,{receivingContext:f,validMutation:u}=this,g=this.eventRange.def,h=this.eventRange.instance,c=new pe(s,g,h),_=this.relevantEvents,p=this.mutatedRelevantEvents,{finalHit:m}=this.hitDragging;if(this.clearDrag(),s.emitter.trigger("eventDragStop",{el:this.subjectEl,event:c,jsEvent:a.origEvent,view:d}),u){if(f===s){let b=new pe(s,p.defs[g.defId],h?p.instances[h.instanceId]:null);s.dispatch({type:"MERGE_EVENTS",eventStore:p});let y={oldEvent:c,event:b,relatedEvents:Ft(p,s,h),revert(){s.dispatch({type:"MERGE_EVENTS",eventStore:_})}},w={};for(let v of s.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(w,v(u,s));s.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},y),w),{el:a.subjectEl,delta:u.datesDelta,jsEvent:a.origEvent,view:d})),s.emitter.trigger("eventChange",y)}else if(f){let b={event:c,relatedEvents:Ft(_,s,h),revert(){s.dispatch({type:"MERGE_EVENTS",eventStore:_})}};s.emitter.trigger("eventLeave",Object.assign(Object.assign({},b),{draggedEl:a.subjectEl,view:d})),s.dispatch({type:"REMOVE_EVENTS",eventStore:_}),s.emitter.trigger("eventRemove",b);let y=p.defs[g.defId],w=p.instances[h.instanceId],v=new pe(f,y,w);f.dispatch({type:"MERGE_EVENTS",eventStore:p});let O={event:v,relatedEvents:Ft(p,f,w),revert(){f.dispatch({type:"REMOVE_EVENTS",eventStore:p})}};f.emitter.trigger("eventAdd",O),a.isTouch&&f.dispatch({type:"SELECT_EVENT",eventInstanceId:h.instanceId}),f.emitter.trigger("drop",Object.assign(Object.assign({},lc(m.dateSpan,f)),{draggedEl:a.subjectEl,jsEvent:a.origEvent,view:m.context.viewApi})),f.emitter.trigger("eventReceive",Object.assign(Object.assign({},O),{draggedEl:a.subjectEl,view:m.context.viewApi}))}}else s.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:i}=n.context,l=this.dragging=new Nn(e.el);l.pointer.selector=Vn.SELECTOR,l.touchScrollAllowed=!1,l.autoScroller.isEnabled=i.dragScroll;let r=this.hitDragging=new No(this.dragging,Li);r.useSubjectCenter=e.useEventCenter,r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("pointerup",this.handlePointerUp),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,n){let i=this.component.context,l=this.receivingContext;l&&l!==e&&(l===i?l.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:n.affectedEvents,mutatedEvents:Pe(),isEvent:!0}}):l.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:n})}clearDrag(){let e=this.component.context,{receivingContext:n}=this;n&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e!==n&&e.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}}Vn.SELECTOR=".fc-event-draggable, .fc-event-resizable";function R1(t,e,n){let i=t.dateSpan,l=e.dateSpan,r=i.range.start,a=l.range.start,s={};i.allDay!==l.allDay&&(s.allDay=l.allDay,s.hasEnd=e.context.options.allDayMaintainDuration,l.allDay&&(r=ue(r)));let d=tn(r,a,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);d.milliseconds&&(s.allDay=!1);let f={datesDelta:d,standardProps:s};for(let u of n)u(f,t,e);return f}function I1(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class O1 extends ln{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=r=>{let{component:a}=this,s=this.querySegEl(r),d=on(s),f=this.eventRange=d.eventRange;this.dragging.minDistance=a.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(r.origEvent.target)||r.isTouch&&this.component.props.eventSelection!==f.instance.instanceId)},this.handleDragStart=r=>{let{context:a}=this.component,s=this.eventRange;this.relevantEvents=Bi(a.getCurrentData().eventStore,this.eventRange.instance.instanceId);let d=this.querySegEl(r);this.draggingSegEl=d,this.draggingSeg=on(d),a.calendarApi.unselect(),a.emitter.trigger("eventResizeStart",{el:d,event:new pe(a,s.def,s.instance),jsEvent:r.origEvent,view:a.viewApi})},this.handleHitUpdate=(r,a,s)=>{let{context:d}=this.component,f=this.relevantEvents,u=this.hitDragging.initialHit,g=this.eventRange.instance,h=null,c=null,_=!1,p={affectedEvents:f,mutatedEvents:Pe(),isEvent:!0};r&&(r.componentId===u.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(u,r)||(h=M1(u,r,s.subjectEl.classList.contains("fc-event-resizer-start"),g.range))),h&&(c=Ii(f,d.getCurrentData().eventUiBases,h,d),p.mutatedEvents=c,as(p,r.dateProfile,d)||(_=!0,h=null,c=null,p.mutatedEvents=null)),c?d.dispatch({type:"SET_EVENT_RESIZE",state:p}):d.dispatch({type:"UNSET_EVENT_RESIZE"}),_?di():ui(),a||(h&&Vo(u,r)&&(h=null),this.validMutation=h,this.mutatedRelevantEvents=c)},this.handleDragEnd=r=>{let{context:a}=this.component,s=this.eventRange.def,d=this.eventRange.instance,f=new pe(a,s,d),u=this.relevantEvents,g=this.mutatedRelevantEvents;if(a.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:f,jsEvent:r.origEvent,view:a.viewApi}),this.validMutation){let h=new pe(a,g.defs[s.defId],d?g.instances[d.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:g});let c={oldEvent:f,event:h,relatedEvents:Ft(g,a,d),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:u})}};a.emitter.trigger("eventResize",Object.assign(Object.assign({},c),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||ee(0),endDelta:this.validMutation.endDelta||ee(0),jsEvent:r.origEvent,view:a.viewApi})),a.emitter.trigger("eventChange",c)}else a.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,i=this.dragging=new Nn(e.el);i.pointer.selector=".fc-event-resizer",i.touchScrollAllowed=!1,i.autoScroller.isEnabled=n.context.options.dragScroll;let l=this.hitDragging=new No(this.dragging,Mi(e));l.emitter.on("pointerdown",this.handlePointerDown),l.emitter.on("dragstart",this.handleDragStart),l.emitter.on("hitupdate",this.handleHitUpdate),l.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return ve(e.subjectEl,".fc-event")}}function M1(t,e,n,i){let l=t.context.dateEnv,r=t.dateSpan.range.start,a=e.dateSpan.range.start,s=tn(r,a,l,t.largeUnit);if(n){if(l.add(i.start,s)<i.end)return{startDelta:s}}else if(l.add(i.end,s)>i.start)return{endDelta:s};return null}class L1{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=i=>{i.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=i=>{let l=this.context.options.unselectCancel,r=qr(i.origEvent);this.matchesCancel=!!ve(r,l),this.matchesEvent=!!ve(r,Vn.SELECTOR)},this.onDocumentPointerUp=i=>{let{context:l}=this,{documentPointer:r}=this,a=l.getCurrentData();if(!r.wasTouchScroll){if(a.dateSelection&&!this.isRecentPointerDateSelect){let s=l.options.unselectAuto;s&&(!s||!this.matchesCancel)&&l.calendarApi.unselect(i)}a.eventSelection&&!this.matchesEvent&&l.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let n=this.documentPointer=new ec(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const P1={fixedMirrorParent:N},$1={dateClick:N,eventDragStart:N,eventDragStop:N,eventDrop:N,eventResizeStart:N,eventResizeStop:N,eventResize:N,drop:N,eventReceive:N,eventLeave:N};Yi.dataAttrPrefix="";var rc=at({name:"@fullcalendar/interaction",componentInteractions:[N1,V1,Vn,O1],calendarInteractions:[L1],elementDraggingImpl:Nn,optionRefiners:P1,listenerRefiners:$1});let z1=0,F1=new Date().toISOString().replace(/T.*$/,"");const H1=[{id:U1(),title:"All-day event",start:F1}];function U1(){return String(z1++)}const Bn=t=>(o.pushScopeId("data-v-5b784b52"),t=t(),o.popScopeId(),t),j1={class:"demo-app"},W1={class:"demo-app-main"},G1={class:"title-line"},q1=["title","onClick"],Y1={key:0,style:{width:"90%"}},Q1=Bn(()=>o.createElementVNode("span",{class:"to"},"至",-1)),Z1={key:1,style:{width:"90%"}},K1=Bn(()=>o.createElementVNode("span",{class:"to"},"至",-1)),X1={key:2,style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},J1={key:0,style:{"margin-left":"2%"}},e_=Bn(()=>o.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),t_={key:1},n_=Bn(()=>o.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),o_={key:0,class:"placeholder"},i_={class:"info"},l_=Bn(()=>o.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)),r_={class:"dialog-footer"},a_={name:"IkApprovalProcess"},s_=o.defineComponent({...a_,props:{dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},emits:["delete","success"],setup(t,{emit:e}){const n=e,i=p=>{if(s.selectInfo=p,r(),p.view.type=="dayGridMonth"){let b=p.end.getTime()-864e5;s.timeType="month",s.form.startDate=$.ikDate.toYMD(p.start),s.form.endDate=$.ikDate.toYMD(new Date(b))}else p.view.type=="timeGridWeek"?(s.timeType="week",s.form.startDate=$.ikDate.toYMDHM(p.start),s.form.endDate=$.ikDate.toYMDHM(p.end)):p.view.type=="timeGridDay"&&(s.timeType="day",s.form.startDate=$.ikDate.toYMD(p.start),s.form.endDate=$.ikDate.toYMD(p.start),s.form.startTime=$.ikDate.toDateTime(p.start),s.form.endTime=$.ikDate.toDateTime(p.end));p.view.calendar.unselect(),o.nextTick(()=>{s.title="新建日程",s.dialogVisible=!0})},l=(p,m)=>{s.title="修改日程",s.dialogVisible=!0},r=p=>{fetch("http://192.168.2.45:6002/component/pick/mix",{method:"POST",body:JSON.stringify({parentDepartmentId:p||"",name:""}),headers:{Authorization:"Bearer iking","Content-Type":"application/json"}}).then(y=>{y.json().then(w=>{const{success:v,data:O}=w;if(!v)return;const{departments:x,users:C,roles:k,posts:B}=O;s.depList=x,s.userList=C,s.roleList=k,s.postList=B})}).catch(y=>{console.info("error: ",y)})},a=p=>{s.currentEvents=p},s=o.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:ir,plugins:[Ws,Js,rc],headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},firstDay:1,initialView:"dayGridMonth",initialEvents:H1,editable:!0,selectable:!0,selectMirror:!0,dayMaxEvents:!0,weekends:!0,select:i,eventClick:p=>l(),eventsSet:a},currentEvents:[]}),d=()=>{var p;(p=s.formRef)==null||p.resetFields(),s.form={title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},s.dialogVisible=!1},f=async()=>{var b,y,w,v;let p=(y=(b=s.selectInfo)==null?void 0:b.view)==null?void 0:y.calendar,m={id:new Date().getTime(),title:s.form.title,start:(w=s.selectInfo)==null?void 0:w.startStr,end:(v=s.selectInfo)==null?void 0:v.endStr,allDay:s.allDay};await p.addEvent(m),n("success",m),d()},u=p=>{S.ElMessageBox.confirm(`你确定删除事件'${p.event.title}'?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{S.ElMessage({type:"success",message:"删除成功"}),p.event.remove(),n("delete",p.event)})},g=p=>{s.handList=p.list,s.form.personList=p.list},h=()=>{s.isShow=!0},c=p=>{r(p==null?void 0:p.elementId)},_=p=>{s.form.personList.splice(p,1),s.handList=s.form.personList};return(p,m)=>{const b=o.resolveComponent("el-checkbox");return o.openBlock(),o.createElementBlock("div",j1,[o.createElementVNode("div",W1,[o.createVNode(o.unref(Os),{class:"demo-app-calendar",options:s.calendarOptions},{eventContent:o.withCtx(y=>[o.createElementVNode("div",G1,[o.createElementVNode("span",{class:"title",title:y.event.title,onClick:o.withModifiers(w=>l(),["stop"])},o.toDisplayString(y.event.title),9,q1),o.createVNode(o.unref(S.ElIcon),{size:16,onClick:o.withModifiers(w=>u(y),["stop"])},{default:o.withCtx(()=>[o.createVNode(o.unref(Xl))]),_:2},1032,["onClick"])])]),_:1},8,["options"])]),o.createCommentVNode(" 新建日程 "),o.createVNode(o.unref(S.ElDialog),{modelValue:s.dialogVisible,"onUpdate:modelValue":m[12]||(m[12]=y=>s.dialogVisible=y),title:s.title,width:"30%",ref:"formRef",onClose:d},{footer:o.withCtx(()=>[o.createElementVNode("span",r_,[o.createVNode(o.unref(S.ElButton),{onClick:d},{default:o.withCtx(()=>[o.createTextVNode("取消")]),_:1}),o.createVNode(o.unref(S.ElButton),{type:"primary",onClick:f},{default:o.withCtx(()=>[o.createTextVNode("确定")]),_:1})])]),default:o.withCtx(()=>[o.createVNode(o.unref(S.ElForm),{model:s.form},{default:o.withCtx(()=>[o.createVNode(o.unref(S.ElFormItem),null,{default:o.withCtx(()=>[o.createVNode(o.unref(S.ElIcon),{class:"icon"},{default:o.withCtx(()=>[o.createVNode(o.unref(Yl))]),_:1}),o.createVNode(o.unref(S.ElInput),{modelValue:s.form.title,"onUpdate:modelValue":m[0]||(m[0]=y=>s.form.title=y),placeholder:`添加${s.form.type==1?"会议":"活动"}标题`,style:{width:"70%"},clearable:""},null,8,["modelValue","placeholder"]),o.createVNode(o.unref(S.ElSelect),{modelValue:s.form.type,"onUpdate:modelValue":m[1]||(m[1]=y=>s.form.type=y),style:{width:"20%"}},{default:o.withCtx(()=>[o.createVNode(o.unref(S.ElOption),{label:"会议",value:1}),o.createVNode(o.unref(S.ElOption),{label:"活动",value:2})]),_:1},8,["modelValue"])]),_:1}),o.createVNode(o.unref(S.ElFormItem),null,{default:o.withCtx(()=>[o.createVNode(o.unref(S.ElIcon),{class:"icon"},{default:o.withCtx(()=>[o.createVNode(o.unref(Zl))]),_:1}),s.timeType=="month"?(o.openBlock(),o.createElementBlock("div",Y1,[o.createVNode(o.unref(S.ElDatePicker),{modelValue:s.form.startDate,"onUpdate:modelValue":m[2]||(m[2]=y=>s.form.startDate=y),type:"date",placeholder:"开始日期",style:{width:"48%"}},null,8,["modelValue"]),Q1,o.createVNode(o.unref(S.ElDatePicker),{modelValue:s.form.endDate,"onUpdate:modelValue":m[3]||(m[3]=y=>s.form.endDate=y),type:"date",placeholder:"结束日期",style:{width:"48%"}},null,8,["modelValue"])])):o.createCommentVNode("v-if",!0),s.timeType=="week"?(o.openBlock(),o.createElementBlock("div",Z1,[o.createVNode(o.unref(S.ElDatePicker),{modelValue:s.form.startDate,"onUpdate:modelValue":m[4]||(m[4]=y=>s.form.startDate=y),type:"datetime",placeholder:"开始日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"]),K1,o.createVNode(o.unref(S.ElDatePicker),{modelValue:s.form.endDate,"onUpdate:modelValue":m[5]||(m[5]=y=>s.form.endDate=y),type:"datetime",placeholder:"结束日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"])])):o.createCommentVNode("v-if",!0),s.timeType=="day"?(o.openBlock(),o.createElementBlock("div",X1,[o.createVNode(o.unref(S.ElDatePicker),{modelValue:s.form.startDate,"onUpdate:modelValue":m[6]||(m[6]=y=>s.form.startDate=y),type:"date",placeholder:"开始日期",style:o.normalizeStyle({width:s.allDay?"45%":"90%"})},null,8,["modelValue","style"]),s.allDay?(o.openBlock(),o.createElementBlock("div",t_,[n_,o.createVNode(o.unref(S.ElDatePicker),{modelValue:s.form.endDate,"onUpdate:modelValue":m[9]||(m[9]=y=>s.form.endDate=y),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(o.openBlock(),o.createElementBlock("div",J1,[o.createVNode(o.unref(S.ElTimePicker),{modelValue:s.form.startTime,"onUpdate:modelValue":m[7]||(m[7]=y=>s.form.startTime=y),type:"datetime",placeholder:"开始日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),e_,o.createVNode(o.unref(S.ElTimePicker),{modelValue:s.form.endTime,"onUpdate:modelValue":m[8]||(m[8]=y=>s.form.endTime=y),type:"datetime",placeholder:"结束日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),o.createVNode(b,{modelValue:s.allDay,"onUpdate:modelValue":m[10]||(m[10]=y=>s.allDay=y),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])):o.createCommentVNode("v-if",!0)]),_:1}),o.createVNode(o.unref(S.ElFormItem),null,{default:o.withCtx(()=>[o.createVNode(o.unref(S.ElIcon),{class:"icon"},{default:o.withCtx(()=>[o.createVNode(o.unref(gu))]),_:1}),o.createElementVNode("div",{class:"personBlock",onClick:o.withModifiers(h,["stop"])},[s.form.personList.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(s.form.personList,(y,w)=>(o.openBlock(),o.createElementBlock("div",{key:w,class:"nameBlock"},[o.createElementVNode("div",i_,[l_,o.createElementVNode("div",null,o.toDisplayString(y.elementName),1)]),o.createVNode(o.unref(S.ElIcon),{class:"close",onClick:o.withModifiers(v=>_(w),["stop"])},{default:o.withCtx(()=>[o.createVNode(o.unref(Kl))]),_:2},1032,["onClick"])]))),128)):(o.openBlock(),o.createElementBlock("span",o_,"添加参与人"))])]),_:1}),o.createVNode(o.unref(S.ElFormItem),null,{default:o.withCtx(()=>[o.createVNode(o.unref(S.ElIcon),{class:"icon"},{default:o.withCtx(()=>[o.createVNode(o.unref(ou))]),_:1}),o.createVNode(o.unref(S.ElInput),{modelValue:s.form.location,"onUpdate:modelValue":m[11]||(m[11]=y=>s.form.location=y),placeholder:"添加地点",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),o.createCommentVNode(" 选人组件 "),o.createVNode(o.unref(Mn),{modelValue:s.handList,"onUpdate:modelValue":m[13]||(m[13]=y=>s.handList=y),show:s.isShow,"onUpdate:show":m[14]||(m[14]=y=>s.isShow=y),onOk:g,multiple:!0,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},"dep-list":s.depList,"user-list":s.userList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:["user"],onHandChild:c},null,8,["modelValue","show","dep-list","user-list"])])}}}),b5="",c_=de(K(s_,[["__scopeId","data-v-5b784b52"]])),d_={class:"ik-hor-step-content"},u_={class:"flex"},f_=["onClick"],p_=["id","onClick"],h_=o.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(t,{emit:e}){const n=t,i=e,l=o.ref(!1),r=o.ref(),a=o.ref(),s=o.ref(!1);o.watch(()=>n.active,p=>{let m=document.getElementById("stepItemContent"),b=document.getElementById(`stepItem${p}`),y=document.getElementById("stepItem0");const w=b&&y?(b==null?void 0:b.offsetLeft)-(y==null?void 0:y.offsetLeft):0;m&&b&&(m.scrollLeft=w>(m==null?void 0:m.clientWidth)?w-(m==null?void 0:m.offsetLeft):0)}),o.onMounted(()=>{o.nextTick(()=>{let m=document.getElementById("stepItemContent"),b=(m==null?void 0:m.scrollWidth)>(m==null?void 0:m.clientWidth);l.value=b,window.addEventListener("resize",p,!0)});const p=()=>{let m=document.getElementById("stepItemContent"),b=(m==null?void 0:m.scrollWidth)>(m==null?void 0:m.clientWidth);l.value=b}});const d=(p,m)=>{if(!n.needClick)return;i("update:active",m),i("click",p);let b=document.getElementById("stepItemContent"),y=document.getElementById(`stepItem${m}`),w=document.getElementById("stepItem0");const v=y&&w?(y==null?void 0:y.offsetLeft)-(w==null?void 0:w.offsetLeft):0;b&&y&&(b.scrollLeft=v>(b==null?void 0:b.clientWidth)?v-(b==null?void 0:b.offsetLeft):0)},f=()=>{let p=document.getElementById("stepItemContent");p&&(p.scrollLeft=p.scrollLeft-20)},u=()=>{let p=document.getElementById("stepItemContent");p&&(p.scrollLeft=p.scrollLeft+20)},g=()=>{clearInterval(a.value);let p=document.getElementById("stepItemContent");s.value=!1,a.value=setInterval(()=>{s.value=!0,p&&(p.scrollLeft=p.scrollLeft-20)},100)},h=()=>{clearInterval(a.value),s.value||f()},c=()=>{clearInterval(r.value);let p=document.getElementById("stepItemContent");s.value=!1,r.value=setInterval(()=>{s.value=!0,p&&(p.scrollLeft=p.scrollLeft+20)},100)},_=()=>{clearInterval(r.value),s.value||u()};return(p,m)=>{const b=o.resolveComponent("el-icon");return o.openBlock(),o.createElementBlock("div",d_,[o.createElementVNode("div",u_,[l.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"icon-left",onMousedown:g,onMouseup:h,onClick:f},[o.createVNode(b,{class:"operation-icon"},{default:o.withCtx(()=>[o.createVNode(o.unref(Gl),{size:"26px"})]),_:1})],32)):o.createCommentVNode("v-if",!0),o.createElementVNode("div",{class:"step-item-content",id:"stepItemContent",style:o.normalizeStyle({justifyContent:l.value?"flex-start":"center"})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.list,(y,w)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(`step-item ${w<=t.active?"step-item-active":""}`),key:w},[w!=0?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(`step-border ${w<=t.active?"step-border-greater-than":""}`),style:o.normalizeStyle({width:`${t.spaceNum.indexOf("px")!=-1?t.spaceNum:`${t.spaceNum}px`}`})},null,6)):o.createCommentVNode("v-if",!0),o.createElementVNode("span",{class:o.normalizeClass(`step-num ${w===t.active?"step-num-active":w<t.active?"step-num-greater-than":""}`),onClick:v=>d(y,w),style:o.normalizeStyle({backgroundColor:w===t.active&&t.activeColor?t.activeColor:"",cursor:y&&y.disabled?"not-allowed":t.needClick?"pointer":"context-menu"})},[o.renderSlot(p.$slots,"icon",{data:{item:y,index:w}},()=>[o.createTextVNode(o.toDisplayString(w+1),1)],!0)],14,f_),o.createElementVNode("span",{id:`stepItem${w}`,class:o.normalizeClass(`step-label ${t.active===w?"step-label-active":w<t.active?"step-label-greater-than":""} step-item-${w}`),style:o.normalizeStyle({color:w===t.active&&t.activeColor?t.activeColor:"",cursor:y&&y.disabled?"not-allowed":t.needClick?"pointer":"context-menu"}),onClick:v=>d(y,w)},o.toDisplayString(y[t.propsField.title]),15,p_)],2))),128))],4),l.value?(o.openBlock(),o.createElementBlock("div",{key:1,class:"icon-right",onMousedown:c,onMouseup:_,onClick:u},[o.createVNode(b,{class:"operation-icon"},{default:o.withCtx(()=>[o.createVNode(o.unref(ql))]),_:1})],32)):o.createCommentVNode("v-if",!0)])])}}}),k5="",m_=de(K(h_,[["__scopeId","data-v-c8da17cd"]])),g_=typeof btoa=="function",dl=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const ac=typeof TextEncoder=="function"?new TextEncoder:void 0,__="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Tn=Array.prototype.slice.call(__);(t=>{let e={};return t.forEach((n,i)=>e[n]=i),e})(Tn);const Xe=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const y_=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),sc=g_?t=>btoa(t):dl?t=>Buffer.from(t,"binary").toString("base64"):t=>{let e,n,i,l,r="";const a=t.length%3;for(let s=0;s<t.length;){if((n=t.charCodeAt(s++))>255||(i=t.charCodeAt(s++))>255||(l=t.charCodeAt(s++))>255)throw new TypeError("invalid character found");e=n<<16|i<<8|l,r+=Tn[e>>18&63]+Tn[e>>12&63]+Tn[e>>6&63]+Tn[e&63]}return a?r.slice(0,a-3)+"===".substring(a):r},b_=dl?t=>Buffer.from(t).toString("base64"):t=>{let n=[];for(let i=0,l=t.length;i<l;i+=4096)n.push(Xe.apply(null,t.subarray(i,i+4096)));return sc(n.join(""))},E_=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?Xe(192|e>>>6)+Xe(128|e&63):Xe(224|e>>>12&15)+Xe(128|e>>>6&63)+Xe(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return Xe(240|e>>>18&7)+Xe(128|e>>>12&63)+Xe(128|e>>>6&63)+Xe(128|e&63)}},k_=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,C_=t=>t.replace(k_,E_),cc=dl?t=>Buffer.from(t,"utf8").toString("base64"):ac?t=>b_(ac.encode(t)):t=>sc(C_(t)),w_=(t,e=!1)=>e?y_(cc(t)):cc(t),v_=["src"],dc=o.defineComponent({__name:"IKPreviewFile",props:{modelValue:{type:Boolean,default:!1},kkUrl:{required:!0,type:String,default:""},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},fileName:{type:String,default:""}},setup(t){const e=t,n=o.ref(null),i=o.computed(()=>!e.kkUrl||!e.url?"":`${e.kkUrl}${encodeURIComponent(w_(`${e.loadUrl}${e.url}${e.fileName?`&fullfilename=${e.fileName}`:""}`))}`),l=o.ref(e.modelValue);return o.watch(()=>e.modelValue,r=>{l.value=r}),(r,a)=>(o.openBlock(),o.createBlock(o.unref(S.ElDialog),{fullscreen:"",modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=s=>l.value=s),"destroy-on-close":"","append-to-body":"","modal-class":"ik-file-preview-modal",onClose:a[1]||(a[1]=s=>r.$emit("update:modelValue",!1)),class:"ik-file-preview"},{default:o.withCtx(()=>[o.createElementVNode("iframe",{ref_key:"freamRef",ref:n,"cross-origin":"",src:i.value,frameborder:"0",allowfullscreen:"",seamless:""},null,8,v_)]),_:1},8,["modelValue"]))}}),v5="",S_=de(dc),A_={key:0,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"},x_=[o.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),o.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),o.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)],D_={key:1,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"},N_=[o.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),o.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),o.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),o.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)],V_={key:2,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"},B_=[o.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),o.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)],T_={key:3,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"},R_=[o.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),o.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)],I_={key:4,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"},O_=[o.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),o.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)],M_={key:5,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"},L_=[o.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),o.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)],P_={key:6,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"},$_=[o.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),o.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)],z_={key:7,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"},F_=[o.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),o.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)],H_={key:8,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"},U_=[o.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),o.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)],j_={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"},W_=[o.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),o.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),o.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)],uc=o.defineComponent({__name:"FileIcon",props:{type:{type:String,default:"unknow"}},setup(t){return(e,n)=>t.type==="unknow"?(o.openBlock(),o.createElementBlock("svg",A_,x_)):t.type==="image"?(o.openBlock(),o.createElementBlock("svg",D_,N_)):t.type==="zip"?(o.openBlock(),o.createElementBlock("svg",V_,B_)):t.type==="ppt"?(o.openBlock(),o.createElementBlock("svg",T_,R_)):t.type==="word"?(o.openBlock(),o.createElementBlock("svg",I_,O_)):t.type==="pdf"?(o.openBlock(),o.createElementBlock("svg",M_,L_)):t.type==="txt"?(o.openBlock(),o.createElementBlock("svg",P_,$_)):t.type==="audio"?(o.openBlock(),o.createElementBlock("svg",z_,F_)):t.type==="video"?(o.openBlock(),o.createElementBlock("svg",H_,U_)):t.type==="excal"?(o.openBlock(),o.createElementBlock("svg",j_,W_)):o.createCommentVNode("v-if",!0)}}),ul=t=>t%1===0?t.toString():t.toFixed(2),Ee=(t,e)=>{var l,r,a,s,d;const n=(l=t==null?void 0:t.response)!=null&&l.data?fc((a=(r=t==null?void 0:t.response)==null?void 0:r.data)==null?void 0:a.suffix):((s=t.raw)==null?void 0:s.type)||fc(t[e.suffix]),i=((d=t.raw)==null?void 0:d.name)||t[e.name];return n!=null&&n.includes("sheet")||n==="excal"?"excal":n!=null&&n.includes("zip")||n==="zip"||n==="application/x-compressed"?"zip":n!=null&&n.includes("image")||n==="image"?"image":n!=null&&n.includes("video")||n==="video"?"video":n!=null&&n.includes("audio")||n==="audio"?"audio":n!=null&&n.includes("pdf")||n==="pdf"?"pdf":n!=null&&n.includes("text")||n==="txt"?"txt":n!=null&&n.includes("word")||n==="word"?"word":i!=null&&i.includes("ppt")||n==="ppt"?"ppt":"unknow"},fc=t=>{const e=t==null?void 0:t.toLocaleLowerCase();switch(e!=null&&e.startsWith(".")?e:`.${e}`){case".doc":case".docx":case".docxf":case".docm":case".dot":case".dotm":case".dotx":case".epub":case".fodt":case".htm":case".html":case".mht":case".odt":case".ott":case".rtf":case".txt":case".djvu":case".oxps":case".oform":case".fb2":case".xml":case".xps":return"word";case".csv":case".xls":case".xlsx":case".fods":case".ods":case".ots":case".xlsb":case".xlsm":case".xlt":case".xltm":case".xltx":return"excal";case".fodp":case".odp":case".otp":case".pot":case".potm":case".potx":case".pps":case".ppsm":case".ppsx":case".ppt":case".pptm":case".pptx":return"ppt";case".zip":case".rar":case".7z":case".apz":case".ar":case".bz":case".car":case".dar":case".cpgz":case".f":case".ha":case".hbc":case".hbc2":case".hbe":case".hpk":case".hyp":return"zip";case".png":case".jpg":case".jpeg":case".bmp":case".gif":case".webp":case".psd":case".svg":case".tiff":return"image";case".avi":case".wmv":case".mpeg":case".mp4":case".mpm4v":case".mov":case".asf":case".flv":case".f4v":case".rmvb":case".rm":case".3gp":case".vob":return"video";case"audio":return"audio";case".txt":return"txt";case".pdf":return"pdf";case t:case"":return"unknow"}},G_={class:"ik-flie-list"},q_={class:"name"},Y_={key:1},Q_=["src"],Z_={class:"file-icon"},K_={class:"file-name-loading"},X_={class:"file-name"},J_={key:0},e6={key:0,class:"file-size"},t6={class:"name"},n6={class:"file-name-loading"},o6={class:"file-name"},i6={class:"file-size"},l6={class:"operate-btn"},r6={class:"card"},a6={class:"title"},s6={class:"ik-flie-list"},c6={class:"name"},d6={key:1},u6=["src"],f6={class:"file-icon"},p6={class:"file-name-loading"},h6={class:"file-name"},m6={key:0},g6={key:0,class:"file-size"},_6=o.defineComponent({__name:"index",props:{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:""},modelValue:{type:Array,default:()=>[]},defaultFileds:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})},preview:{type:Boolean,default:!1},customIconData:{type:Object,default:()=>({})},customIconFields:{type:Object,default:()=>({type:"type",icon:"icon"})},onlinePreviewUrl:{type:String,default:""}},emits:["delete","exceed","success","error","outSize"],setup(t,{emit:e}){const n=t,i=e,r={...{name:"name",url:"url",suffix:"suffix"},...n.defaultFileds},a=o.computed(()=>n.size),s=o.ref(null),d=o.ref(null),f=o.ref(n.modelValue);o.watch(()=>n.modelValue,V=>{f.value=V},{deep:!0});const u=o.ref([]),g=o.ref(!1),h=o.ref(!1),c=o.ref(null),_=(V,P)=>{f.value=$._.cloneDeep(P)},p=V=>{const P=V.size/1024/1024;if(!(P<a.value)){i("outSize"),S.ElMessage({message:`上传文件大小(${P.toFixed(4)}MB)超出允许最大值(${n.size}MB),请重新选择`,type:"warning",showClose:!0,duration:5e3});const F=f.value.findIndex(W=>W.uid===V.uid);return f.value.splice(F,1),!1}return!0},m=()=>!1,b=(V,P)=>{var T,F;V.status="ready",P!==void 0&&u.value.splice(P,1),(T=s.value)==null||T.handleStart(V.raw),(F=s.value)==null||F.submit()},y=(V,P)=>{var M,ie;const T=f.value.length,F=n.limit-T;let W=0;for(;W<F&&W<V.length;)(M=s.value)==null||M.handleStart(V[W]),(ie=s.value)==null||ie.submit(),W++;S.ElMessage({message:(n==null?void 0:n.limitText)||`最大可上传${n.limit}个文件,已忽略超出文件`,type:"warning",showClose:!0,duration:5e3}),i("exceed",V)},w=(V,P,T)=>{i("success",V,P,T)},v=(V,P,T)=>{u.value.push(P),i("error",V,P,T)},O=V=>{V&&Ee(V,r)==="video"||V&&Ee(V,r)==="image"?(c.value={...V,url:V[r.url].startsWith("http")?V[r.url]:`${n.loadUrl}${V[r.url]}`},h.value=!0):window.open(n.loadUrl+V[r.url])},x=V=>{$.ikFile.downloadByOnlineUrl(V[r.url],V[r.name])},C=(V,P=!1)=>{var T;(T=s.value)==null||T.abort(V)},k=V=>{var P;V.status!=="success"&&C(V),(P=s.value)==null||P.handleRemove(V),f.value=f.value.filter(T=>T.uid!==V.uid),i("delete",V)},B=(V,P)=>{u.value.splice(P,1)};return(V,P)=>{var F,W;const T=o.resolveComponent("el-image-viewer");return o.openBlock(),o.createElementBlock(o.Fragment,null,[t.preview?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[t.type==="button"?(o.openBlock(),o.createBlock(o.unref(S.ElUpload),o.mergeProps({key:0,"file-list":f.value,"onUpdate:fileList":P[0]||(P[0]=M=>f.value=M),class:"ik-file-upload"},V.$attrs,{accept:t.accept,action:t.action,ref_key:"refUpload",ref:s,"on-change":_,"before-upload":p,"before-remove":m,"on-exceed":y,multiple:t.multiple,headers:t.headers,limit:t.limit,"on-success":w,"on-error":v}),{trigger:o.withCtx(()=>[V.$slots.trigger?o.renderSlot(V.$slots,"trigger",{key:0},void 0,!0):(o.openBlock(),o.createBlock(o.unref(S.ElButton),{key:1,type:"primary",disabled:f.value.length===t.limit,icon:o.unref(hu)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(t.title),1)]),_:1},8,["disabled","icon"]))]),file:o.withCtx(({file:M})=>[o.createElementVNode("div",G_,[o.createElementVNode("div",q_,[!V.$slots.fileIcon&&(!t.customIconData[o.unref(Ee)(M,r)]||!t.customIconData[o.unref(Ee)(M,r)][t.customIconFields.icon])?(o.openBlock(),o.createBlock(uc,{key:0,type:o.unref(Ee)(M,r)},null,8,["type"])):!V.$slots.fileIcon&&t.customIconData[o.unref(Ee)(M,r)]&&t.customIconData[o.unref(Ee)(M,r)][t.customIconFields.icon]?(o.openBlock(),o.createElementBlock("div",Y_,[t.customIconData[o.unref(Ee)(M,r)][t.customIconFields.type]==="img"?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.customIconData[o.unref(Ee)(M,r)][t.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,Q_)):(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass([t.customIconData[o.unref(Ee)(M,r)][t.customIconFields.icon],"file-icon-size"])},null,2))])):o.createCommentVNode("v-if",!0),o.createElementVNode("div",Z_,[o.renderSlot(V.$slots,"fileIcon",{file:M},void 0,!0)]),o.createElementVNode("div",K_,[o.createElementVNode("p",X_,[o.createTextVNode(o.toDisplayString(M[r.name]||M.name)+" ",1),M.percentage&&M.percentage!==100?(o.openBlock(),o.createElementBlock("span",J_,"("+o.toDisplayString(M.percentage)+"%)",1)):o.createCommentVNode("v-if",!0)]),M.percentage===100?(o.openBlock(),o.createElementBlock("p",e6,o.toDisplayString(o.unref(ul)(M.size/1024/1024))+"MB ",1)):o.createCommentVNode("v-if",!0),M.percentage&&M.percentage!==100?(o.openBlock(),o.createBlock(o.unref(S.ElProgress),{key:1,"text-inside":"",percentage:M.percentage,color:"var(--el-color-primary)","striped-flow":"",striped:"","show-text":!1},null,8,["percentage"])):o.createCommentVNode("v-if",!0)])]),t.preview?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[t.preview||M.percentage===100?(o.openBlock(),o.createBlock(o.unref(S.ElIcon),{key:0,title:"预览",class:"primary"},{default:o.withCtx(()=>[o.createVNode(o.unref(tr),{onClick:ie=>O(M)},null,8,["onClick"])]),_:2},1024)):o.createCommentVNode("v-if",!0),o.createVNode(o.unref(S.ElIcon),{title:"下载",class:"primary"},{default:o.withCtx(()=>[o.createVNode(o.unref(Zo),{onClick:ie=>x(M)},null,8,["onClick"])]),_:2},1024)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[M.status==="success"?(o.openBlock(),o.createBlock(o.unref(S.ElIcon),{key:0,title:"删除",class:"error"},{default:o.withCtx(()=>[o.createVNode(o.unref(yn),{onClick:ie=>k(M)},null,8,["onClick"])]),_:2},1024)):(o.openBlock(),o.createBlock(o.unref(S.ElIcon),{key:1,title:"取消上传"},{default:o.withCtx(()=>[o.createVNode(o.unref(Ql),{onClick:ie=>k(M)},null,8,["onClick"])]),_:2},1024))],64))])]),default:o.withCtx(()=>{var M;return[!t.preview&&t.tip?(o.openBlock(),o.createBlock(o.unref(S.ElTooltip),{key:0,effect:"dark",content:n.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:o.withCtx(()=>[o.createVNode(o.unref(S.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:o.withCtx(()=>[o.createVNode(o.unref(au))]),_:1})]),_:1},8,["content"])):o.createCommentVNode("v-if",!0),(M=u.value)!=null&&M.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(u.value,(ie,Ce)=>(o.openBlock(),o.createElementBlock("div",{class:"ik-error-flie-list",key:ie.uid},[o.createElementVNode("div",t6,[o.createVNode(o.unref(S.ElIcon),{size:32,class:"info",style:{"vertical-align":"middle"}},{default:o.withCtx(()=>[o.createVNode(o.unref(bu))]),_:1}),o.createElementVNode("div",n6,[o.createElementVNode("p",o6,o.toDisplayString(ie[r.name]||ie.name),1),o.createElementVNode("p",i6,o.toDisplayString(o.unref(ul)(ie.size/1024/1024))+"MB ",1)])]),o.withDirectives(o.createElementVNode("div",l6,[o.createVNode(o.unref(S.ElIcon),{style:{"vertical-align":"middle"},onClick:dt=>b(ie,Ce),title:"重新上传",class:"primary"},{default:o.withCtx(()=>[o.createVNode(o.unref(Ko))]),_:2},1032,["onClick"]),o.createVNode(o.unref(S.ElIcon),{class:"error",onClick:dt=>B(ie,Ce),title:"删除"},{default:o.withCtx(()=>[o.createVNode(o.unref(yn))]),_:2},1032,["onClick"])],512),[[o.vShow,(ie==null?void 0:ie.status)==="fail"]])]))),128)):o.createCommentVNode("v-if",!0)]}),_:3},16,["file-list","accept","action","multiple","headers","limit"])):(o.openBlock(),o.createBlock(o.unref(S.ElUpload),o.mergeProps({key:1,"file-list":f.value,"onUpdate:fileList":P[1]||(P[1]=M=>f.value=M),class:"ik-file-pload-card"},V.$attrs,{accept:t.accept,action:t.action,ref_key:"refUpload",ref:s,"on-change":_,"before-upload":p,"before-remove":m,"on-exceed":y,multiple:t.multiple,headers:t.headers,limit:t.limit,"on-success":w,"on-error":v}),{file:o.withCtx(({file:M})=>[o.createElementVNode("div",s6,[o.createElementVNode("div",c6,[!V.$slots.fileIcon&&(!t.customIconData[o.unref(Ee)(M,r)]||!t.customIconData[o.unref(Ee)(M,r)][t.customIconFields.icon])?(o.openBlock(),o.createBlock(uc,{key:0,type:o.unref(Ee)(M,r)},null,8,["type"])):!V.$slots.fileIcon&&t.customIconData[o.unref(Ee)(M,r)]&&t.customIconData[o.unref(Ee)(M,r)][t.customIconFields.icon]?(o.openBlock(),o.createElementBlock("div",d6,[t.customIconData[o.unref(Ee)(M,r)][t.customIconFields.type]==="img"?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.customIconData[o.unref(Ee)(M,r)][t.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,u6)):(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass([t.customIconData[o.unref(Ee)(M,r)][t.customIconFields.icon],"file-icon-size"])},null,2))])):o.createCommentVNode("v-if",!0),o.createElementVNode("div",f6,[o.renderSlot(V.$slots,"fileIcon",{file:M},void 0,!0)]),o.createElementVNode("div",p6,[o.createElementVNode("p",h6,[o.createTextVNode(o.toDisplayString(M[r.name]||M.name)+" ",1),M.percentage&&M.percentage!==100?(o.openBlock(),o.createElementBlock("span",m6,"("+o.toDisplayString(M.percentage)+"%)",1)):o.createCommentVNode("v-if",!0)]),M.percentage===100?(o.openBlock(),o.createElementBlock("p",g6,o.toDisplayString(o.unref(ul)(M.size/1024/1024))+"MB ",1)):o.createCommentVNode("v-if",!0),M.percentage&&M.percentage!==100?(o.openBlock(),o.createBlock(o.unref(S.ElProgress),{key:1,"text-inside":"",percentage:M.percentage,color:"var(--el-color-primary)","striped-flow":"",striped:"","show-text":!1},null,8,["percentage"])):o.createCommentVNode("v-if",!0)])]),t.preview?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[t.preview||M.percentage===100?(o.openBlock(),o.createBlock(o.unref(S.ElIcon),{key:0,title:"预览",class:"primary"},{default:o.withCtx(()=>[o.createVNode(o.unref(tr),{onClick:ie=>O(M)},null,8,["onClick"])]),_:2},1024)):o.createCommentVNode("v-if",!0),o.createVNode(o.unref(S.ElIcon),{title:"下载",class:"primary"},{default:o.withCtx(()=>[o.createVNode(o.unref(Zo),{onClick:ie=>x(M)},null,8,["onClick"])]),_:2},1024)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[M.status==="success"?(o.openBlock(),o.createBlock(o.unref(S.ElIcon),{key:0,title:"删除",class:"error"},{default:o.withCtx(()=>[o.createVNode(o.unref(yn),{onClick:ie=>k(M)},null,8,["onClick"])]),_:2},1024)):(o.openBlock(),o.createBlock(o.unref(S.ElIcon),{key:1,title:"取消上传"},{default:o.withCtx(()=>[o.createVNode(o.unref(Ql),{onClick:ie=>k(M)},null,8,["onClick"])]),_:2},1024))],64))])]),default:o.withCtx(()=>[o.createElementVNode("div",r6,[o.createElementVNode("div",a6,[o.createVNode(o.unref(me),{name:"iksvg_yidong",bg:"",size:48}),o.createElementVNode("span",null,o.toDisplayString(t.title),1)]),o.createVNode(o.unref(me),{name:"iksvg_daoru",bg:"",size:40,padding:"8px"})])]),_:3},16,["file-list","accept","action","multiple","headers","limit"]))],64)),o.createVNode(dc,{visible:g.value,"onUpdate:visible":P[2]||(P[2]=M=>g.value=M),file:c.value,fileType:c.value&&o.unref(Ee)(c.value,r),defaultFields:r},null,8,["visible","file","fileType"]),(F=c.value)!=null&&F.url&&h.value?(o.openBlock(),o.createBlock(T,{key:1,onClose:P[3]||(P[3]=M=>(c.value=null,h.value=!1)),ref_key:"previewImgRef",ref:d,"url-list":[(W=c.value)==null?void 0:W.url]},null,8,["url-list"])):o.createCommentVNode("v-if",!0)],64)}}}),Q5="",Z5="",y6=de(K(_6,[["__scopeId","data-v-5bc2d189"]])),b6={},E6={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"},k6=[o.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),o.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),o.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),o.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),o.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),o.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),o.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),o.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 C6(t,e){return o.openBlock(),o.createElementBlock("svg",E6,k6)}const w6=K(b6,[["render",C6]]),pc=t=>(o.pushScopeId("data-v-57dbfa30"),t=t(),o.popScopeId(),t),v6={key:1,class:"upload-btn"},S6={class:"tip"},A6={class:"loading-statu"},x6={class:"operate-btn"},D6={key:0},N6={class:"el-upload-list el-upload-list--picture-card",style:{float:"left"}},V6=["onClick"],B6=pc(()=>o.createElementVNode("span",{class:"error"},"上传错误",-1)),T6=pc(()=>o.createElementVNode("p",null,"点击重新上传",-1)),R6=["src"],I6={class:"demo-image__preview"},O6=o.defineComponent({__name:"index",props:{title:{type:String,default:"上传图片"},loadUrl:{type:String,default:""},action:{type:String,default:""},limit:{type:Number,default:5},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:""},modelValue:{type:Array,default:()=>[]}},emits:["delete","success"],setup(t,{emit:e}){const n=t;o.watch(()=>n.modelValue,C=>{a.value=C.map(k=>{var B;return{...k,__url:(B=k.url)!=null&&B.startsWith("http")?k.url:`${n.loadUrl}${k.url}`}})},{deep:!0});const i=e,l=o.computed(()=>n.size),r=o.ref(null),a=o.ref(n.modelValue.map(C=>{var k;return{...C,__url:(k=C.url)!=null&&k.startsWith("http")?C.url:`${n.loadUrl}${C.url}`}})),s=o.ref([]),d=o.ref(!1),f=o.ref(0),u=o.computed(()=>n.tipText||`最多可上传${n.limit}张图片, 每张图片不能超过${n.size}MB`),g=(C,k)=>{a.value=$._.cloneDeep(k.map(B=>{var V,P;return{...B,__url:(V=B.url)!=null&&V.startsWith("http")||(P=B.url)!=null&&P.startsWith("blob:")?B.url:`${n.loadUrl}${B.url}`}})),console.log("fileList.value: ",a.value)},h=C=>!(!(C.type==="image/jpeg"||C.type==="image/png")||!(C.size/1024/1024<l.value)),c=()=>!1,_=(C,k)=>{var B,V;C.status="ready",k!==void 0&&s.value.splice(k,1),(B=r.value)==null||B.handleStart(C.raw),(V=r.value)==null||V.submit()},p=(C,k)=>{var T,F;const B=a.value.length,V=n.limit-B;let P=0;for(;P<V&&P<C.length;)(T=r.value)==null||T.handleStart(C[P]),(F=r.value)==null||F.submit(),P++},m=(C,k,B)=>{i("success",C,k,B)},b=(C,k,B)=>{s.value.push({...k,__url:k.url})},y=C=>{d.value=!0,f.value=a.value.findIndex(k=>k.url===C.url)},w=C=>{$.ikFile.downloadByOnlineUrl(C.__url||C.url,C.name)},v=C=>{var k;(k=r.value)==null||k.abort(C)},O=C=>{var k;C.status!=="success"&&v(C),(k=r.value)==null||k.handleRemove(C),a.value=a.value.filter(B=>B.uid!==C.uid),i("delete",C)},x=(C,k)=>{s.value.splice(k,1)};return(C,k)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(o.unref(S.ElUpload),{class:o.normalizeClass(["ik-image-upload",{preview:t.preview}]),ref_key:"refUpload",ref:r,"list-type":"picture-card",accept:t.accept,action:t.action,"file-list":a.value,"onUpdate:fileList":k[0]||(k[0]=B=>a.value=B),multiple:t.multiple,limit:t.limit,"on-change":g,"before-upload":h,"before-remove":c,"on-exceed":p,"on-success":m,"on-error":b,drag:""},o.createSlots({trigger:o.withCtx(()=>[C.$slots.trigger?o.renderSlot(C.$slots,"trigger",{key:0},void 0,!0):(o.openBlock(),o.createElementBlock("div",v6,[o.createVNode(o.unref(S.ElIcon),null,{default:o.withCtx(()=>[o.createVNode(o.unref(er))]),_:1}),o.createElementVNode("span",null,o.toDisplayString(t.title),1)]))]),file:o.withCtx(({file:B})=>[o.createElementVNode("div",{class:o.normalizeClass(["load-list",{loading:B.status==="uploading"}]),"element-loading-background":"var(--ik-upload-bg)"},[o.withDirectives(o.createElementVNode("div",A6,[o.createVNode(w6),o.createTextVNode(" 上传"+o.toDisplayString(B.percentage)+"% ",1)],512),[[o.vShow,B.status==="uploading"]]),o.createCommentVNode(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),o.createVNode(o.unref(S.ElImage),{style:{width:"100%",height:"100%"},src:B.__url||B.url,"zoom-rate":1.2,"initial-index":0,fit:"contain"},null,8,["src"]),o.createElementVNode("span",x6,[o.createElementVNode("span",null,[o.createVNode(o.unref(S.ElIcon),{onClick:V=>y(B)},{default:o.withCtx(()=>[o.createVNode(o.unref(ku))]),_:2},1032,["onClick"])]),o.createElementVNode("span",null,[o.createVNode(o.unref(S.ElIcon),{onClick:V=>w(B)},{default:o.withCtx(()=>[o.createVNode(o.unref(Zo))]),_:2},1032,["onClick"])]),t.preview?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("span",D6,[o.createVNode(o.unref(S.ElIcon),{onClick:V=>O(B)},{default:o.withCtx(()=>[o.createVNode(o.unref(yn))]),_:2},1032,["onClick"])]))])],2)]),default:o.withCtx(()=>[o.createElementVNode("ul",N6,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(B,V)=>(o.openBlock(),o.createElementBlock("li",{class:"el-upload-list__item",key:B.uid},[o.createElementVNode("span",null,[o.createVNode(o.unref(S.ElIcon),{onClick:P=>x(B,V)},{default:o.withCtx(()=>[o.createVNode(o.unref(Kl))]),_:2},1032,["onClick"])]),o.createElementVNode("div",{class:o.normalizeClass(["load-list",{loading:B.status==="uploading",fail:B.status==="fail"}]),"element-loading-background":"var(--ik-upload-bg)"},[o.withDirectives(o.createElementVNode("div",{class:"loading-statu",onClick:P=>_(B,V)},[o.createVNode(o.unref(S.ElIcon),{size:24},{default:o.withCtx(()=>[o.createVNode(o.unref(Ko))]),_:1}),B6,T6],8,V6),[[o.vShow,B.status==="fail"]]),o.createElementVNode("img",{src:B.__url,alt:"",style:o.normalizeStyle({"object-fit":t.fit})},null,12,R6)],2)]))),128))])]),_:2},[t.tip?{name:"tip",fn:o.withCtx(()=>[o.createElementVNode("span",S6,o.toDisplayString(u.value),1)]),key:"0"}:void 0]),1032,["class","accept","action","file-list","multiple","limit"]),o.createCommentVNode(" 文件预览 "),o.createElementVNode("div",I6,[d.value?(o.openBlock(),o.createBlock(o.unref(S.ElImageViewer),{key:0,"hide-on-click-modal":"",onClose:k[1]||(k[1]=()=>{d.value=!1}),"url-list":a.value.map(B=>B.__url),"initial-index":f.value},null,8,["url-list","initial-index"])):o.createCommentVNode("v-if",!0)])],64))}}),rC="",M6=de(K(O6,[["__scopeId","data-v-57dbfa30"]])),L6=["src"],P6={name:"IkPrintConfig"},$6=o.defineComponent({...P6,props:{id:{},srcPrefix:{default:""},token:{}},emits:["created"],setup(t,{emit:e}){const n=t,i=e,l=o.computed(()=>!!n.id),r=o.reactive({currentId:n.id,loading:!0,src:""}),a=async()=>{fetch(`${n.srcPrefix??""}/jmreport/save`,{method:"POST",body:JSON.stringify({}),headers:{"Content-Type":"application/json",Authorization:n.token??""}}).then(d=>d.json()).then(({code:d,result:f})=>{if(d===200){const u=f.id;r.currentId=u,r.src=`${n.srcPrefix??""}/jmreport/index/${r.currentId}?token=${n.token}&menuType=printinfo`,i("created",r.currentId)}}).catch(d=>{console.error(d)})},s=()=>{if(!l.value){a();return}r.src=`${n.srcPrefix??""}/jmreport/index/${r.currentId}?token=${n.token}`};return o.onMounted(()=>{s()}),(d,f)=>r.src?(o.openBlock(),o.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:r.src,frameborder:"0"},null,8,L6)):o.createCommentVNode("v-if",!0)}}),z6=de($6),F6=["src"],H6={name:"IkPrintView"},U6=o.defineComponent({...H6,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(t,{emit:e}){const n=t,i=e,l=o.computed({get:()=>n.modelValue,set:s=>{i("update:modelValue",s)}}),r=o.reactive({src:"",showIframe:!1}),a=()=>{r.showIframe=!1,r.src=`${n.srcPrefix}/jmreport/view/${n.templateId}?token=${n.token??""}&${n.idKey}=${n.dataId}`,setTimeout(()=>{r.showIframe=!0},300)};return o.watch(()=>l.value,s=>{s&&a()}),o.onMounted(()=>{l.value&&a()}),(s,d)=>{const f=o.resolveComponent("el-dialog");return o.openBlock(),o.createBlock(f,{modelValue:l.value,"onUpdate:modelValue":d[0]||(d[0]=u=>l.value=u),fullscreen:"",title:"预览"},{default:o.withCtx(()=>[o.createElementVNode("div",{style:o.normalizeStyle({width:n.width,height:n.height})},[r.showIframe?(o.openBlock(),o.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:r.src,frameborder:"0"},null,8,F6)):o.createCommentVNode("v-if",!0)],4)]),_:1},8,["modelValue"])}}}),j6=de(U6),W6={class:"ik-full-calendar"},G6=["onClick"],q6={key:0,class:"event-title allday"},Y6={key:0,class:"event-title-time"},Q6={key:1,class:"event-title no-allday"},Z6={class:"event-title-time"},K6={class:"event-title-text"},X6={name:"IkFullCalendar"},J6=o.defineComponent({...X6,props:{options:{default:{}},removable:{type:Boolean,default:!0},modelValue:{default:[]},tooltipFieldName:{default:"remark"}},emits:["added","deleted","update:modelValue","eventClick","deleteClick","dateSelect"],setup(t,{expose:e,emit:n}){const i=t,l=o.computed({get:()=>i.modelValue,set:y=>r("update:modelValue",y)}),r=n,a=o.ref(null),s=y=>{},d=o.ref("dayGridMonth"),f=y=>{r("dateSelect",y)},u=y=>{r("eventClick",y)},g=y=>{r("deleteClick",y)},h=()=>({locale:ir,plugins:[Ws,rc,Js],headerToolbar:{left:"dayGridMonth,timeGridWeek,timeGridDay prev,today,next",center:"title",right:""},firstDay:1,initialView:"dayGridMonth",weekends:!0,editable:!0,selectable:!0,selectMirror:!0,dateClick:s,select:f,...i.options,events:l.value}),c=o.reactive({timeType:"month",options:h()}),_=o.ref(null),p=()=>{var y;c.options=h(),(y=a.value)==null||y.buildOptions(c.options)};e({...{prev:()=>{var y;(y=_.value)==null||y.prev()},next:()=>{var y;(y=_.value)==null||y.next()},today:()=>{var y;(y=_.value)==null||y.today()},changeView:y=>{var w;(w=_.value)==null||w.changeView(y),d.value=y},getDate:()=>{var y;return(y=_.value)==null?void 0:y.getDate()},getView:()=>{var y;return(y=_.value)==null?void 0:y.view},unselect:()=>{var y;return(y=_.value)==null?void 0:y.unselect()}}}),o.watch(()=>l.value,()=>{p()});const b=()=>{var y;_.value=(y=a.value)==null?void 0:y.getApi()};return o.onMounted(()=>{b()}),(y,w)=>{const v=o.resolveComponent("el-tooltip"),O=o.resolveComponent("el-icon");return o.openBlock(),o.createElementBlock("div",W6,[o.createVNode(o.unref(Os),{ref_key:"_ref",ref:a,options:c.options,style:{height:"100%"}},{eventContent:o.withCtx(x=>[o.createElementVNode("div",{class:"title-line",onClick:C=>u(x)},[o.createVNode(v,null,{content:o.withCtx(()=>{var C,k;return[o.createCommentVNode(" {{arg}} "),o.createTextVNode(" "+o.toDisplayString((k=(C=x.event)==null?void 0:C.extendedProps)==null?void 0:k[i.tooltipFieldName]),1)]}),default:o.withCtx(()=>[x.event.allDay?(o.openBlock(),o.createElementBlock("span",q6,[d.value==="dayGridMonth"?(o.openBlock(),o.createElementBlock("span",Y6,o.toDisplayString("(全天)"))):o.createCommentVNode("v-if",!0),o.createElementVNode("span",null,o.toDisplayString(x.event.title),1)])):(o.openBlock(),o.createElementBlock("span",Q6,[o.createElementVNode("span",Z6,o.toDisplayString(o.unref($.ikDate).toDateTime(x.event.startStr,"HH:mm")),1),o.createElementVNode("span",K6,o.toDisplayString(x.event.title),1)]))]),_:2},1024),i.removable?(o.openBlock(),o.createBlock(O,{key:0,size:16,onClick:o.withModifiers(C=>g(x),["stop"])},{default:o.withCtx(()=>[o.createVNode(o.unref(Xl))]),_:2},1032,["onClick"])):o.createCommentVNode("v-if",!0)],8,G6)]),_:1},8,["options"])])}}}),sC="",ey=K(J6,[["__scopeId","data-v-421b620c"]]);class ty{constructor(){Kt(this,"id",new Date().getTime());Kt(this,"title","");Kt(this,"start","");Kt(this,"end","");Kt(this,"allDay",!1);Kt(this,"extendedProps",{})}}const hc=de(ey),ny={class:"inline-block ik-svg-icon ik-icon line-height-[0] inline-flex justify-center"},oy={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},iy=["xlink:href"],ly=["src"],ry={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},ay=["xlink:href"],sy=["src"],me=de(o.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},opacity:{default:.5},size:{default:""},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"0"},warning:{type:Boolean},notip:{type:Boolean,default:!1},title:{}},setup(t){const e=t,n=o.computed(()=>{var l;return/^http?:\/\//.test(e.name)?"img":/i-[^:]+:[^:]+/.test(e.name)?"unocss":e.name.startsWith("iksig")?"iksig":(l=e.name)!=null&&l.includes(":")?"iconify":"svg"}),i=o.computed(()=>{const l=[];if(e.flip)switch(e.flip){case"horizontal":l.push("rotateY(180deg)");break;case"vertical":l.push("rotateX(180deg)");break;case"both":l.push("rotateX(180deg)"),l.push("rotateY(180deg)");break}return e.rotate&&l.push(`rotate(${e.rotate%360}deg)`),{...e.color&&{color:e.color},...e.size&&{fontSize:typeof e.size=="number"?`${e.size}px`:e.size},...l.length&&{transform:l.join(" ")},padding:e.padding,...e.color&&n.value!=="iksig"?{"--ik-color-icon-dark":e.color,"--ik-color-icon-light":$.ikColor.setOpacity(e.color,e.opacity||.4)}:{}}});return(l,r)=>{const a=o.resolveComponent("el-tooltip");return o.openBlock(),o.createElementBlock("span",ny,[l.notip||!l.title?(o.openBlock(),o.createElementBlock("i",{key:0,class:o.normalizeClass(["relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition",{[l.name]:n.value==="unocss","show-bg":l.showBg||l.bg,default:l.size==="default",small:l.size==="small",big:l.size==="big",warning:l.warning}]),style:o.normalizeStyle(i.value)},[n.value==="iksig"?(o.openBlock(),o.createElementBlock("i",{key:0,class:o.normalizeClass(`iksig ${l.name}`),style:o.normalizeStyle(i.value)},null,6)):n.value==="svg"?(o.openBlock(),o.createElementBlock("svg",oy,[o.createElementVNode("use",{"xlink:href":`#${l.name}`},null,8,iy)])):n.value==="img"?(o.openBlock(),o.createElementBlock("img",{key:2,src:l.name,class:"h-[1em] w-[1em]"},null,8,ly)):o.createCommentVNode("v-if",!0)],6)):(o.openBlock(),o.createBlock(a,{key:1,content:l.title},{default:o.withCtx(()=>[o.createElementVNode("i",{class:o.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition",{[l.name]:n.value==="unocss","show-bg":l.showBg||l.bg,default:l.size==="default",small:l.size==="small",big:l.size==="big",warning:l.warning}]),style:o.normalizeStyle(i.value)},[n.value==="iksig"?(o.openBlock(),o.createElementBlock("i",{key:0,class:o.normalizeClass(`iksig ${l.name}`),style:o.normalizeStyle(i.value)},null,6)):n.value==="svg"?(o.openBlock(),o.createElementBlock("svg",ry,[o.createElementVNode("use",{"xlink:href":`#${l.name}`},null,8,ay)])):n.value==="img"?(o.openBlock(),o.createElementBlock("img",{key:2,src:l.name,class:"h-[1em] w-[1em]"},null,8,sy)):o.createCommentVNode("v-if",!0)],6)]),_:1},8,["content"]))])}}})),fl=t=>(o.pushScopeId("data-v-600ed17b"),t=t(),o.popScopeId(),t),cy={class:"ik-schedule"},dy={class:"ik-schedule__left"},uy={class:"ik-schedule__header"},fy={class:"ik-schedule__title"},py=fl(()=>o.createElementVNode("div",{class:"ik-schedule__header-right"},null,-1)),hy={class:"ik-schedule__body"},my={style:{"font-size":"18px"}},gy={key:0},_y={style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},yy={key:0,style:{"margin-left":"2%"}},by=fl(()=>o.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),Ey={key:1},ky=fl(()=>o.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),Cy={class:"dialog-footer"},wy={name:"IkSchedule"},vy=o.defineComponent({...wy,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(t,{expose:e,emit:n}){var C;const i=t,l=n,r=!!o.useSlots().form,a=o.computed({get:()=>i.modelValue,set:k=>{l("update:modelValue",k)}}),s=o.computed(()=>({...i.options,headerToolbar:!1})),d=o.reactive({currentView:(C=i.options)==null?void 0:C.initialView,viewTitle:"",rightLabel:"今日",timeType:"month",currentDate:null}),f=o.ref(null),u=k=>{var B;(B=f.value)==null||B.changeView(k),d.currentView=k,g()},g=()=>{var B;const k=(B=f.value)==null?void 0:B.getView();d.viewTitle=k==null?void 0:k.title},h=()=>{var k;(k=f.value)==null||k.prev(),g()},c=()=>{var k;(k=f.value)==null||k.next(),g()},_=()=>{var k;(k=f.value)==null||k.today(),g()},p=k=>d.currentView===k,m=o.ref(null),b={createDefaultForm:()=>({title:"",allDay:!1,type:1,startDate:"",endDate:"",startTime:"",endTime:"",location:"",remark:""}),close:()=>{w.value=!1},customSubmit:k=>{var V,P;let B={...k,id:void 0,allDay:y.form.allDay,start:(V=y.selectInfo)==null?void 0:V.startStr,end:(P=y.selectInfo)==null?void 0:P.endStr};b.operation(B),b.close()},operation:k=>{var B;y.operation==="add"?l("submitAdd",k):(k.id=(B=y.editEvent)==null?void 0:B.id,l("submitUpdate",k))},submit:async()=>{var B,V;if(r){l("submit");return}if(!y.form.title){S.ElMessage.info("标题不能为空");return}if(!y.form.allDay&&(!y.form.startTime||!y.form.endTime)){S.ElMessage.info("时间不能为空");return}let k={id:void 0,title:y.form.title,allDay:y.form.allDay,start:(B=y.selectInfo)==null?void 0:B.startStr,end:(V=y.selectInfo)==null?void 0:V.endStr,extendedProps:{...y.form}};if(k.allDay)k.start=$.ikDate.toDate(y.form.startDate),k.end=$.ikDate.toDate(y.form.endDate);else{const P=$.ikDate.toDate(y.form.startDate),T=$.ikDate.toDateTime(y.form.startTime).substring(10),F=$.ikDate.toDateTime(y.form.endTime).substring(10);k.start=`${P}${T}`,k.end=`${P}${F}`,k.extendedProps.startTime=k.start,k.extendedProps.endTime=k.end}b.operation(k),b.close()},reset:()=>{var k;y.form=b.createDefaultForm(),(k=m.value)==null||k.clearValidate()},edit:()=>{y.editable=!0,y.title="编辑日程"},cancelEdit:()=>{y.editable=!1,y.title="日程信息"},del:()=>{x(y.clickInfo)}},y=o.reactive({operation:"update",selectInfo:{},editEvent:void 0,title:"",visible:!1,allDay:!1,form:b.createDefaultForm(),editable:!1,clickInfo:null}),w=o.computed({get:()=>y.visible,set:k=>{y.visible=k}}),v=k=>{var B;if(y.form.allDay=k.allDay,y.selectInfo=k,b.reset(),k.view.type=="dayGridMonth"){let V=k.end.getTime()-864e5;d.timeType="month",y.form.startDate=$.ikDate.toYMD(k.start),y.form.endDate=$.ikDate.toYMD(new Date(V)),y.form.allDay=!0}else k.view.type=="timeGridWeek"?d.timeType="week":k.view.type=="timeGridDay"&&(d.timeType="day"),y.form.startDate=$.ikDate.toYMD(k.start),y.form.endDate=$.ikDate.toYMD(k.start),y.form.startTime=$.ikDate.toDateTime(k.start),y.form.endTime=$.ikDate.toDateTime(k.end);(B=f.value)==null||B.unselect(),o.nextTick(()=>{y.title="新建日程",y.operation="add",y.editable=!0,w.value=!0,l("editOpen",JSON.parse(JSON.stringify(y)))})},O=k=>{y.title="日程信息",y.operation="update",y.clickInfo=k,y.editEvent=k.event;debugger;y.editEvent.allDay?(y.form.startDate=y.editEvent.startStr,y.form.endDate=y.editEvent.startStr):(y.form.startDate=y.editEvent.startStr,y.form.startTime=y.editEvent.start,y.form.endTime=y.editEvent.end),y.form.title=y.editEvent.title,y.form.allDay=y.editEvent.allDay,Pd.copyValue(y.form,y.editEvent.extendedProps),b.cancelEdit(),w.value=!0,l("editOpen",JSON.parse(JSON.stringify(y)))},x=k=>{S.ElMessageBox.confirm(`你确定删除事件 ${k.event.title} ?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{b.close(),l("submitDelete",k.event.id)})};return e({customSubmit:k=>b.customSubmit(k)}),o.onMounted(()=>{g()}),(k,B)=>{const V=o.resolveComponent("el-button"),P=o.resolveComponent("el-button-group"),T=o.resolveComponent("el-icon"),F=o.resolveComponent("el-space"),W=o.resolveComponent("el-input"),M=o.resolveComponent("el-form-item"),ie=o.resolveComponent("el-date-picker"),Ce=o.resolveComponent("el-time-picker"),dt=o.resolveComponent("el-checkbox"),ke=o.resolveComponent("el-form"),ut=o.resolveComponent("el-dialog");return o.openBlock(),o.createElementBlock("div",cy,[o.createElementVNode("div",dy,[o.createElementVNode("div",uy,[o.createVNode(F,{style:{"flex-shrink":"0"},size:24},{default:o.withCtx(()=>[o.createVNode(P,null,{default:o.withCtx(()=>[o.createVNode(V,{onClick:B[0]||(B[0]=ae=>u("dayGridMonth")),type:p("dayGridMonth")?"primary":""},{default:o.withCtx(()=>[o.createTextVNode("月")]),_:1},8,["type"]),o.createVNode(V,{onClick:B[1]||(B[1]=ae=>u("timeGridWeek")),type:p("timeGridWeek")?"primary":""},{default:o.withCtx(()=>[o.createTextVNode("周")]),_:1},8,["type"]),o.createVNode(V,{onClick:B[2]||(B[2]=ae=>u("timeGridDay")),type:p("timeGridDay")?"primary":""},{default:o.withCtx(()=>[o.createTextVNode("日")]),_:1},8,["type"])]),_:1}),o.createElementVNode("span",fy,o.toDisplayString(d.viewTitle),1),o.createVNode(P,{style:{"flex-shrink":"0"}},{default:o.withCtx(()=>[o.createVNode(V,{onClick:h},{default:o.withCtx(()=>[o.createVNode(T,null,{default:o.withCtx(()=>[o.createVNode(o.unref(Gl))]),_:1})]),_:1}),o.createVNode(V,{onClick:_},{default:o.withCtx(()=>[o.createTextVNode("今天")]),_:1}),o.createVNode(V,{onClick:c},{default:o.withCtx(()=>[o.createVNode(T,null,{default:o.withCtx(()=>[o.createVNode(o.unref(ql))]),_:1})]),_:1})]),_:1})]),_:1}),py]),o.createElementVNode("div",hy,[o.createVNode(o.unref(hc),{removable:k.removable,onDateSelect:v,onDeleteClick:x,onEventClick:O,ref_key:"_refCalendar",ref:f,options:s.value,modelValue:a.value,"onUpdate:modelValue":B[3]||(B[3]=ae=>a.value=ae)},null,8,["removable","options","modelValue"])])]),o.createCommentVNode(" 新建/修改对话框 "),o.createVNode(ut,{width:"700px",modelValue:w.value,"onUpdate:modelValue":B[11]||(B[11]=ae=>w.value=ae)},{header:o.withCtx(()=>[o.createElementVNode("div",null,[o.createElementVNode("span",my,o.toDisplayString(y.title),1),y.operation==="update"?(o.openBlock(),o.createElementBlock("span",gy,[y.editable?(o.openBlock(),o.createBlock(o.unref(me),{key:1,style:{"margin-left":"4px"},name:"iksvg_qiehuan-daohang",onClick:b.cancelEdit},null,8,["onClick"])):(o.openBlock(),o.createBlock(o.unref(me),{key:0,style:{"margin-left":"4px"},name:"iksvg_xiugai",onClick:b.edit},null,8,["onClick"]))])):o.createCommentVNode("v-if",!0)])]),footer:o.withCtx(()=>[o.createElementVNode("span",Cy,[o.renderSlot(k.$slots,"form-footer",{},()=>[o.createElementVNode("span",null,[o.createVNode(V,{onClick:b.close},{default:o.withCtx(()=>[o.createTextVNode("取消")]),_:1},8,["onClick"]),o.createVNode(V,{onClick:b.del},{default:o.withCtx(()=>[o.createTextVNode("删除")]),_:1},8,["onClick"]),o.createVNode(V,{type:"primary",onClick:b.submit},{default:o.withCtx(()=>[o.createTextVNode("确定")]),_:1},8,["onClick"])])],!0)])]),default:o.withCtx(()=>[o.renderSlot(k.$slots,"form",{},()=>[o.createVNode(ke,{ref_key:"_editFormRef",ref:m,model:y.form,disabled:!y.editable},{default:o.withCtx(()=>[o.createVNode(M,null,{default:o.withCtx(()=>[o.createVNode(T,{class:"icon"},{default:o.withCtx(()=>[o.createVNode(o.unref(Yl))]),_:1}),o.createVNode(W,{modelValue:y.form.title,"onUpdate:modelValue":B[4]||(B[4]=ae=>y.form.title=ae),placeholder:"请输入标题",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1}),o.createVNode(M,null,{default:o.withCtx(()=>[o.createVNode(T,{class:"icon"},{default:o.withCtx(()=>[o.createVNode(o.unref(Zl))]),_:1}),o.createElementVNode("div",_y,[o.createVNode(ie,{disabled:"",modelValue:y.form.startDate,"onUpdate:modelValue":B[5]||(B[5]=ae=>y.form.startDate=ae),type:"date",placeholder:"开始日期",style:o.normalizeStyle({width:y.form.allDay?"45%":"90%"})},null,8,["modelValue","style"]),y.form.allDay?(o.openBlock(),o.createElementBlock("div",Ey,[ky,o.createVNode(ie,{disabled:"",modelValue:y.form.endDate,"onUpdate:modelValue":B[8]||(B[8]=ae=>y.form.endDate=ae),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(o.openBlock(),o.createElementBlock("div",yy,[o.createVNode(Ce,{modelValue:y.form.startTime,"onUpdate:modelValue":B[6]||(B[6]=ae=>y.form.startTime=ae),type:"datetime",placeholder:"开始时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),by,o.createVNode(Ce,{modelValue:y.form.endTime,"onUpdate:modelValue":B[7]||(B[7]=ae=>y.form.endTime=ae),type:"datetime",placeholder:"结束时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),o.createVNode(dt,{modelValue:y.form.allDay,"onUpdate:modelValue":B[9]||(B[9]=ae=>y.form.allDay=ae),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])]),_:1}),o.createVNode(M,null,{default:o.withCtx(()=>[o.createVNode(T,{class:"icon"},{default:o.withCtx(()=>[o.createVNode(o.unref(eu))]),_:1}),o.createVNode(W,{type:"textarea",modelValue:y.form.remark,"onUpdate:modelValue":B[10]||(B[10]=ae=>y.form.remark=ae),placeholder:"描述",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","disabled"])],!0)]),_:3},8,["modelValue"])])}}}),dC="",Sy=de(K(vy,[["__scopeId","data-v-600ed17b"]])),Ay={key:0,class:"ik-tabs-split overflow-overlay gl-padding"},xy=o.defineComponent({__name:"IkPageTabs",props:o.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:o.mergeModels(["tabClick","search"],["update:modelValue"]),setup(t,{emit:e}){const n=t,i=e,l=o.useModel(t,"modelValue"),r=o.ref(new Map);for(const s of n.tabs)r.value.set(s.id,n.lazyTab?s.id!==l.value:!1);const a=s=>{l.value=s.paneName,r.value.get(s.paneName)||i("tabClick",s.paneName,s),r.value.set(s.paneName,!1)};return(s,d)=>{const f=o.resolveComponent("el-tab-pane"),u=o.resolveComponent("el-tabs");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createCommentVNode(' <div class="flex-1 contents"> '),o.createVNode(u,{modelValue:l.value,"onUpdate:modelValue":d[0]||(d[0]=g=>l.value=g),class:o.normalizeClass(["ik-tabs",{"is-default":s.$slots.default,"split gl-padding gl-container":t.split}]),onTabClick:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.tabs,g=>(o.openBlock(),o.createBlock(f,{key:g.id,disabled:g==null?void 0:g.disabled,name:g.id},{label:o.withCtx(()=>[o.createElementVNode("span",null,o.toDisplayString(g.label),1)]),default:o.withCtx(()=>[!s.$slots.default&&!r.value.get(g.id)&&!t.split?o.renderSlot(s.$slots,g.id,{key:0},void 0,!0):o.createCommentVNode("v-if",!0)]),_:2},1032,["disabled","name"]))),128)),o.createCommentVNode(" 当存在默认slot且需要展示默认slot时 "),s.$slots.default&&t.defaultSlot&&!t.split?o.renderSlot(s.$slots,"default",{key:0},void 0,!0):o.createCommentVNode("v-if",!0)]),_:3},8,["modelValue","class"]),t.split?(o.openBlock(),o.createElementBlock("div",Ay,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.tabs,g=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[!s.$slots.default&&!r.value.get(g.id)?o.renderSlot(s.$slots,g.id,{key:0},void 0,!0):o.createCommentVNode("v-if",!0)],64))),256)),s.$slots.default&&t.defaultSlot?o.renderSlot(s.$slots,"default",{key:0},void 0,!0):o.createCommentVNode("v-if",!0)])):o.createCommentVNode("v-if",!0),o.createCommentVNode(" </div> ")],64)}}}),fC="",Dy=de(K(xy,[["__scopeId","data-v-e282a7f2"]]));var st=(t=>(t.input="input",t.area="area",t.number="number",t.select="select",t.date="date",t.datetime="datetime",t.checkbox="checkbox",t.radio="radio",t.treeselect="treeselect",t.choosePerson="choosePerson",t))(st||{}),Ut=(t=>(t.year="year",t.month="month",t.date="date",t.dates="dates",t.datetime="datetime",t.week="week",t.datetimerange="datetimerange",t.daterange="daterange",t.monthrange="monthrange",t))(Ut||{});function mc(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!o.isVNode(t)}const Ny=o.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(t,{emit:e,expose:n}){const i=o.ref(),l={},r=o.ref({}),a=o.ref([]),s=o.ref({...r.value});o.watch(a,(I,J)=>{const G=J.filter(H=>!I.includes(H));if(G.length){let H=!1;G.forEach(Z=>{s.value[Z]!==void 0&&(H=!0),s.value[Z]=void 0}),H&&e("search",s.value)}});const d=()=>{a.value=[],t.list.forEach(I=>{var J,G;r.value[I.key]=r.value[I.value],l[I.key]=l[I.value],a.value.push(I.key),(J=s.value)[G=I.key]??(J[G]=I.value||null)})};d(),o.watch(()=>t.list,()=>{d()});const f=o.computed(()=>a.value.map(I=>t.list.find(J=>J.key===I))),u=()=>{var I;s.value.page=1,(I=t.search)==null||I.call(t,s.value),e("search",s.value)};n({resetForm:()=>{var I,J;(J=(I=i.value)==null?void 0:I.resetFields)==null||J.call(I),u()},reRequest:()=>{u()}});const c=()=>{var I;e("search",s.value),(I=t.search)==null||I.call(t,s.value)},_=I=>{I.key==="Enter"&&u()},p=()=>{var I;(I=i.value)==null||I.resetFields(),u()};t.immediate&&u();const m=({maxlength:I,minlength:J,key:G,disabled:H,placeholder:Z,formProp:ce={},value:se,label:le})=>o.createVNode(S.ElInput,o.mergeProps({modelValue:s.value[G],"onUpdate:modelValue":[te=>s.value[G]=te,te=>s.value[G]=te],clearable:!0,maxlength:I,minlength:J,disabled:H,onBlur:()=>c()},ce,{placeholder:(ce==null?void 0:ce.placeholder)||Z||`请输入${le||""}`}),null),b=({key:I,placeholder:J,max:G,min:H,disabled:Z,precision:ce,step:se=1,label:le,formProp:te={}})=>o.createVNode(S.ElInputNumber,o.mergeProps({modelValue:s.value[I],"onUpdate:modelValue":We=>s.value[I]=We,clearable:!0,max:G,min:H,disabled:Z,precision:ce,step:se,onChange:()=>c()},te,{placeholder:(te==null?void 0:te.placeholder)||J||`请输入${le||""}`}),null),y=({key:I,placeholder:J,disabled:G,options:H,label:Z,multiple:ce=!1,filterable:se=!0,formProp:le={}})=>o.createVNode(S.ElSelect,o.mergeProps({modelValue:s.value[I],"onUpdate:modelValue":te=>s.value[I]=te,clearable:!0,disabled:G,multiple:ce,filterable:se,onChange:()=>c()},le,{placeholder:(le==null?void 0:le.placeholder)||J||`请选择${Z||""}`}),{default:()=>[H==null?void 0:H.map(te=>o.createVNode(S.ElOption,{key:te.value,label:te.label,value:te.value},null))]}),w=({key:I,disabled:J,options:G,formProp:H={}})=>o.createVNode(S.ElRadioGroup,o.mergeProps({modelValue:s.value[I],"onUpdate:modelValue":Z=>s.value[I]=Z,disabled:J,onChange:()=>c()},H),{default:()=>[G==null?void 0:G.map(Z=>(H==null?void 0:H.radioType)==="button"?o.createVNode(S.ElRadioButton,{key:Z.value,label:Z.value,name:Z.label},null):o.createVNode(S.ElRadio,{key:Z.value,label:Z.value,name:Z.label},null))]}),v=({key:I,disabled:J,options:G,min:H,max:Z,formProp:ce={}})=>o.createVNode(S.ElCheckboxGroup,o.mergeProps({modelValue:s.value[I],"onUpdate:modelValue":se=>s.value[I]=se,disabled:J,max:Z,min:H,onChange:()=>c()},ce),{default:()=>[G==null?void 0:G.map(se=>o.createVNode(S.ElCheckbox,{key:se.value,label:se.label,value:se.value},null))]}),O=({key:I,label:J,formProp:G={},placeholder:H})=>o.createVNode(S.ElDatePicker,o.mergeProps({modelValue:s.value[I],"onUpdate:modelValue":Z=>s.value[I]=Z,onChange:()=>c()},G,{placeholder:(G==null?void 0:G.placeholder)||H||`请选择${J}时间`}),null),x=({key:I,disabled:J,editable:G=!0,startPlaceholder:H="开始日期",endplaceholder:Z="结束日期",dateType:ce=Ut.date,format:se,placeholder:le="请选择日期",popperclass:te,rangeSeparator:We="-",defaultValue:ft,defaultTime:Bt,valueFormat:tt,disabledDate:Ve=()=>!1,formProp:Be={}})=>{let Te=se;if(Te)switch(ce){case Ut.date:case Ut.dates:Te="YYYY-MM-DD";break;case Ut.year:Te="YYYY";break;case Ut.month:Te="YYYY-MM";break;case Ut.week:Te="YYYY-MM-DD";break;default:Te=""}return o.createVNode(S.ElDatePicker,o.mergeProps({modelValue:s.value[I],"onUpdate:modelValue":Ge=>s.value[I]=Ge,onChange:()=>c(),disabled:J,type:ce,editable:G,startPlaceholder:H,endPlaceholder:Z,rangeSeparator:We,format:Te,popperClass:te,defaultValue:ft,defaultTime:Bt,valueFormat:tt,disabledDate:Ve},Be,{placeholder:(Be==null?void 0:Be.placeholder)||le||"请选择日期"}),null)},C=({key:I,options:J,multiple:G=!1,filterable:H=!0,nodeKey:Z="id",props:ce,highlightCurrent:se=!0,defaultExpandAll:le=!1,expandOnClickNode:te=!1,placeholder:We="全部",checkOnClickNode:ft=!1,showCheckbox:Bt=!1,checkStrictly:tt=!0,defaultCheckedKeys:Ve=[],currentNodeKey:Be="",accordion:Te=!1,formProp:Ge={},label:R})=>o.createVNode(S.ElTreeSelect,o.mergeProps({modelValue:s.value[I],"onUpdate:modelValue":z=>s.value[I]=z,data:J,onChange:()=>c(),clearable:!0,multiple:G,props:ce,placeholder:We,filterable:H,nodeKey:Z,highlightCurrent:se,defaultExpandAll:le,expandOnClickNode:te,checkOnClickNode:ft,showCheckbox:Bt,checkStrictly:tt,defaultCheckedKeys:Ve,currentNodeKey:Be,accordion:Te},Ge,{placeholder:(Ge==null?void 0:Ge.placeholder)||We||`请选择${R||""}`}),null),k=({key:I,selectKey:J,placeholder:G,disabled:H,options:Z,multiple:ce=!1,filterable:se=!0,formProp:le={}})=>o.createVNode(S.ElInput,o.mergeProps({disabled:H,modelValue:s.value[I],"onUpdate:modelValue":te=>s.value[I]=te,onBlur:()=>c()},le,{placeholder:(le==null?void 0:le.placeholder)||G||"全部"}),{prepend:()=>o.createVNode(S.ElSelect,o.mergeProps({disabled:H,multiple:ce,filterable:se,modelValue:s.value[J],"onUpdate:modelValue":te=>s.value[J]=te,onChange:()=>c()},le),{default:()=>[Z==null?void 0:Z.map(te=>o.createVNode(S.ElOption,{key:te.value,label:te.label,value:te.value},null))]})}),B="",V="iking",P=o.ref(null),T=o.ref([]),F=o.ref(!1),W=o.ref(""),M=new Map,ie=I=>{F.value=!0,T.value=M.has(I)?M.get(I):s.value[I],W.value=I},Ce=()=>{M.set(W.value,[]),W.value="",c()},dt=I=>{var J,G;s.value[W.value]=(J=I.list.map(H=>H.elementName))==null?void 0:J.join(","),M.set(W.value,I.list),e("search",s.value),e("pickerChange",I),(G=t.search)==null||G.call(t,s.value)},ke=({key:I,placeholder:J,typeOption:G,_list:H,maxlength:Z,minlength:ce,disabled:se,formProp:le})=>o.createVNode(S.ElInput,o.mergeProps({modelValue:s.value[I],"onUpdate:modelValue":te=>s.value[I]=te,clearable:!0,maxlength:Z,minlength:ce,disabled:se},le,{onClick:()=>ie(I),onClear:()=>Ce(),placeholder:(le==null?void 0:le.placeholder)||J||`点击选择${label||"人员"}`}),null),ut=I=>{switch(I.type){case"":case void 0:case st.input:case"el-input":return m(I);case st.number:case"el-input-number":return b(I);case st.select:case"el-select":return y(I);case st.checkbox:case"el-checkbox":return v(I);case st.radio:case"el-radio-group":case"el-radio":return w(I);case st.date:case"el-date-picker":return x(I);case"el-time-select":return O(I);case st.treeselect:case"el-tree-select":return C(I);case st.choosePerson:return ke(I);case"select-input":return k(I);default:return o.createVNode(o.Fragment,null,null)}},ae=o.computed(()=>{var G;const I=[],J=f.value.length-1;return(G=f.value)==null||G.forEach((H,Z)=>{let ce,se;if(!H)return[];const le=H.col||1;I.push(o.createVNode(S.ElCol,{xl:{span:le*6},lg:{span:le*6},md:{span:le*12},sm:{span:le*24}},{default:()=>[Z===J?o.createVNode("div",{class:"last-form"},[o.createVNode(S.ElFormItem,{label:H.type==="select-input"?"":H.label,prop:H.key},mc(ce=ut(H))?ce:{default:()=>[ce]}),o.createVNode(me,{name:"icon-sousuo1",pop:!0,title:"搜索",size:"big","show-bg":!0,width:40,onClick:()=>c()},null),o.createVNode(me,{name:"icon-zhongzhi",pop:!0,title:"重置并搜索",size:"big","show-bg":!0,width:40,onClick:()=>p()},null)]):o.createVNode(S.ElFormItem,{label:H.type==="select-input"?"":H.label,prop:H.key},mc(se=ut(H))?se:{default:()=>[se]})]}))}),I});return()=>o.createVNode(o.Fragment,null,[o.createVNode(S.ElCard,{class:"gl-search-card",shadow:t.shadow},{default:()=>[o.createVNode(S.ElForm,{class:"auto-search-form",onKeyup:_,ref:i,model:s.value},{default:()=>[o.createVNode(S.ElRow,{gutter:16},{default:()=>[ae.value]})]})]}),o.createVNode(Mn,{ref:P.value,modelValue:T.value,"onUpdate:modelValue":I=>T.value=I,show:F.value,"onUpdate:show":I=>F.value=I,"append-to-body":!0,api:{methods:"post",url:`${B}/server/component/pick/mix`,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:V}},tabs:["group","role","post"],chooseType:["user"],typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},propOption:{name:"elementName",id:"elementId",type:"elementType"},onOk:I=>dt(I)},null)])}}),Vy={class:"header-left"},By={class:"title"},Ty={class:"flex items-center"},Ry=o.defineComponent({__name:"IkPageHead",props:o.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(t){o.useCssVars(f=>({"59e2b6b4":d}));const e=t,n=o.useModel(t,"modelValue"),i=o.ref(e.defaultShow),l=()=>{i.value=!i.value},r=o.computed(()=>e.fields.filter(f=>!f.onlyForm)),a=o.computed(()=>{var f;return(f=e.fields)==null?void 0:f.filter(u=>u.search)}),s=o.computed(()=>a.value.length),d=`${e.headerHeight}px`;return(f,u)=>{const g=o.resolveComponent("el-card");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["ik-page-header",{"show-search":i.value}])},[o.createElementVNode("div",{class:"header",style:o.normalizeStyle({borderColor:t.headerBorder?"var(--ik-border-color)":"transparent",marginBottom:t.headerBorder?"8px":"0"})},[o.createElementVNode("div",Vy,[o.createCommentVNode(' 左侧标题、tab页或自定义内容 v-if="!$slots.headerLeft" '),o.createElementVNode("span",By,o.toDisplayString(t.headerTitle),1),o.renderSlot(f.$slots,"headerLeft",{},void 0,!0)]),o.createCommentVNode(" 默认按钮 "),o.createElementVNode("div",Ty,[o.createCommentVNode(" 右侧操作或自定义内容 "),o.renderSlot(f.$slots,"headerRight",{},void 0,!0),t.exportBtn?(o.openBlock(),o.createBlock(o.unref(me),{key:0,name:"iksvg_xiazai",type:"primary",title:"导出","show-bg":"",size:"default"})):o.createCommentVNode("v-if",!0),s.value?(o.openBlock(),o.createBlock(o.unref(me),{key:1,name:"iksvg_shaixuan1",size:"default",title:i.value?"收起筛选条件":"展开筛选条件","show-bg":"",onClick:l},null,8,["title"])):o.createCommentVNode("v-if",!0),t.refreshBtn?(o.openBlock(),o.createBlock(o.unref(me),{key:2,name:"iksvg_zhongzhi1",title:"保留搜索条件刷新","show-bg":"",size:"default",onClick:t.search},null,8,["onClick"])):o.createCommentVNode("v-if",!0),o.createCommentVNode(` <IkSvgIcon\r
|
|
35
35
|
name="icon-shezhi"\r
|
|
36
36
|
show-bg\r
|
|
37
37
|
:width="40"\r
|
|
38
38
|
size="small"\r
|
|
39
|
-
/> `),
|
|
39
|
+
/> `),o.createVNode(o.unref(Ec),{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=h=>n.value=h),title:"设置表格字段",list:r.value,tab:t.tabId},null,8,["modelValue","list","tab"])])],4),o.createVNode(g,{shadow:"always",class:"search-form"},{default:o.withCtx(()=>[o.createVNode(o.unref(Ny),{list:a.value,search:t.search,loading:t.loading},null,8,["list","search","loading"]),o.createElementVNode("span",{class:"hide-serch",onClick:l},[o.createVNode(o.unref(me),{title:"收起",rotate:"180",name:"icon-shouqi"})])]),_:1})],2)}}}),mC="",Iy=K(Ry,[["__scopeId","data-v-659625f1"]]),gc={headerTitle:{type:String,default:""},headerBorder:{type:Boolean,default:!1},tabs:{type:Array,default:()=>[]},fields:{required:!0,type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},immediate:{type:Boolean,default:!0},total:{type:Number,default:0},search:{type:Function,default:null},selection:{type:Boolean,default:!1},serial:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},tabId:{type:Number||String,default:0},exportBtn:{type:Boolean,default:!1},refreshBtn:{type:Boolean,default:!0},settingBtn:{type:Boolean,default:!0},chooseLen:{type:Number,default:0},current:{type:Number,default:1},defaultShow:{type:Boolean,default:!1},dialogSize:{type:String,default:"l"},title:{type:String,default:""},role:{type:String,default:""},formKey:{type:Object,default:()=>({})},dialogProp:{type:Object,default:()=>{}},headerHeight:{type:Number,default:66}},Oy={class:"total"},My={class:"num"},Ly=o.defineComponent({__name:"IkPage",props:{total:{type:Number,default:0},mini:{type:Boolean,default:!1},search:{type:Function,default:null},current:{type:Number,default:0}},emits:["currentChange","sizeChange"],setup(t,{emit:e}){const n=t,i=e,l=o.ref(1);o.watch(()=>n.current,f=>{l.value=f});const r=[15,30,60,100,200,500],a=o.ref(r[0]),s=f=>{i("sizeChange",f),n==null||n.search({page:l.value,rows:a.value})},d=f=>{i("currentChange",f),n==null||n.search({page:l.value,rows:a.value})};return(f,u)=>{const g=o.resolveComponent("el-pagination");return o.openBlock(),o.createBlock(g,o.mergeProps({"current-page":l.value,"onUpdate:currentPage":u[0]||(u[0]=h=>l.value=h),"page-size":a.value,"onUpdate:pageSize":u[1]||(u[1]=h=>a.value=h)},f.$attrs,{layout:"slot, ->, sizes, prev, pager, next, jumper",small:t.mini,total:t.total,"page-sizes":r,class:"ik-pagin-action",onSizeChange:s,onCurrentChange:d}),{default:o.withCtx(()=>[o.createElementVNode("span",Oy,[o.createTextVNode(" 共"),o.createElementVNode("span",My,o.toDisplayString(t.total),1),o.createTextVNode(" 项数据 ")])]),_:1},16,["current-page","page-size","small","total"])}}}),gC="",Py=K(Ly,[["__scopeId","data-v-e7b4fc6e"]]),$y=o.defineComponent({__name:"IkPageTable",props:gc,emits:["selection-change","page-change"],setup(t,{expose:e,emit:n}){var h;const i=t,l=n,{attrs:r}=o.getCurrentInstance(),a=o.ref({page:((h=r.page)==null?void 0:h.page)||1,rows:15}),s=o.computed(()=>{const{page:c,rows:_}=(r==null?void 0:r.page)||a.value,p=$._.cloneDeep(i.tableData);return p.forEach((m,b)=>{m.__index=c===1?b+1:(c-1)*_+b+1}),p}),d=c=>{a.value=c,l("page-change",c),i.search()},f=o.ref([]),u=c=>{f.value=c,l("selection-change",c)},g=o.ref();return e({table:g}),(c,_)=>{var y,w,v;const p=o.resolveComponent("el-table-column"),m=o.resolveComponent("el-table"),b=o.resolveDirective("loading");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createCommentVNode(" 自定义表格 "),(y=c.$slots)!=null&&y.table?o.renderSlot(c.$slots,"table",{key:0},void 0,!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" 默认表格 "),o.createVNode(o.Transition,{name:"el-zoom-in-center"},{default:o.withCtx(()=>[o.withDirectives((o.openBlock(),o.createBlock(m,o.mergeProps({ref_key:"refTable",ref:g},{...c.$attrs,...i},{data:s.value,style:{width:"100%"},onSelectionChange:u}),{default:o.withCtx(()=>[c.selection?(o.openBlock(),o.createBlock(p,{key:0,type:"selection",align:"center",width:"56"})):o.createCommentVNode("v-if",!0),c.serial?(o.openBlock(),o.createBlock(p,{key:1,prop:"__index",label:"序号",width:60,align:"center"})):o.createCommentVNode("v-if",!0),o.renderSlot(c.$slots,"default",{},void 0,!0)]),_:3},16,["data"])),[[b,c.loading]])]),_:3})],64)),o.createCommentVNode(" 分页 "),c.total?(o.openBlock(),o.createBlock(Py,{key:2,current:((v=(w=c.$attrs)==null?void 0:w.page)==null?void 0:v.page)||1,total:c.total,search:d},null,8,["current","total"])):o.createCommentVNode("v-if",!0)],64)}}}),_C="",zy=K($y,[["__scopeId","data-v-41391707"]]),Fy={class:"choose"},Hy={class:"btn"},Uy=o.defineComponent({__name:"index",props:o.mergeModels(gc,{modelValue:{type:Object,default:()=>({page:1,rows:15})},modelModifiers:{}}),emits:o.mergeModels(["selection-change","delete","download","addFunction"],["update:modelValue"]),setup(t,{expose:e,emit:n}){const i=t,l=n,r=o.useModel(t,"modelValue"),a=()=>{var x;(x=r==null?void 0:r.value)!=null&&x.page&&(r.value={page:1,rows:15})};a();const s=x=>{r.value={...r.value,...x}},d=x=>{var k;a();const C=(x==null?void 0:x.type)==="click"?{}:x;r.value={...r.value,...C},(k=i==null?void 0:i.search)==null||k.call(i,{...r.value})},f=o.ref([]),u=x=>{f.value=x,l("selection-change",x)},g=o.computed(()=>f.value.length||i.chooseLen),h=o.ref(i.fields),c=o.computed(()=>"light"),_=o.ref(),p=o.ref(),m=o.ref(),b=o.ref(!1),y=o.ref(void 0),w=o.ref(i.title||""),v=x=>{y.value=x?{...x}:null,i.title?i.title.includes("新增")||i.title.includes("修改")?w.value=x?i.title.replace(/新增/g,"修改"):i.title.replace(/修改/g,"新增"):w.value=x?`修改${i.title}`:`新增${i.title}`:w.value=x?"修改":"新增",b.value=!0},O=o.computed(()=>i.fields.find(x=>x.isEdit));return e({table:_,header:p,chooseList:f,srotFields:h,pageData:r,dialog:m,handAdd:v}),(x,C)=>{const k=o.resolveComponent("el-button"),B=o.resolveComponent("IkNumberDuration"),V=o.resolveComponent("el-table-column"),P=o.resolveDirective("role");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createCommentVNode(" 标题 + 搜索表单 "),o.createVNode(Iy,o.mergeProps({ref_key:"refHeader",ref:p},{...x.$attrs,...i},{modelValue:h.value,"onUpdate:modelValue":C[1]||(C[1]=T=>h.value=T),loading:x.loading,search:d,"tab-id":x.tabId}),{headerLeft:o.withCtx(()=>[o.renderSlot(x.$slots,"headerLeft",{},void 0,!0)]),headerRight:o.withCtx(()=>[o.renderSlot(x.$slots,"headerRight",{},()=>[O.value?o.withDirectives((o.openBlock(),o.createBlock(k,{key:0,type:"primary",onClick:C[0]||(C[0]=T=>v(null))},{default:o.withCtx(()=>[o.createTextVNode(" 新增 ")]),_:1})),[[P,x.role]]):o.createCommentVNode("v-if",!0)],!0)]),_:3},16,["modelValue","loading","tab-id"]),o.createCommentVNode(" 选中表格项 "),x.selection?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["hand-selection",{select:g.value}])},[o.createElementVNode("p",Fy,[o.createTextVNode(" 已选 "),o.createElementVNode("span",null,[o.createVNode(B,{value:g.value},null,8,["value"])]),o.createTextVNode(" 条 ")]),o.createElementVNode("div",Hy,[x.$slots.selectionRight?o.renderSlot(x.$slots,"selectionRight",{key:1},void 0,!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(me),{name:"icon-shanchu","show-bg":"",size:"default",onClick:C[2]||(C[2]=T=>x.$emit("delete",f.value))}),o.createVNode(o.unref(me),{ize:"default",name:"icon-xiazai","show-bg":"",onClick:C[3]||(C[3]=T=>x.$emit("download",f.value))})],64))])],2)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" 自定义表格 "),o.renderSlot(x.$slots,"table",{},()=>[o.createVNode(zy,o.mergeProps({ref_key:"refTable",ref:_,page:r.value},{...x.$attrs,...i},{onPageChange:s,onSelectionChange:u}),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,T=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:T.key},[T.show?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[T.tableSlot?(o.openBlock(),o.createBlock(V,o.mergeProps({key:1,align:T.align,width:T.width,"min-width":T.minWidth,"show-overflow-tooltip":{effect:c.value??"light"}},{...T,...x.$attrs,...i}),{default:o.withCtx(F=>[o.renderSlot(x.$slots,T.tableSlot,{data:F},void 0,!0)]),_:2},1040,["align","width","min-width","show-overflow-tooltip"])):(o.openBlock(),o.createBlock(V,o.mergeProps({key:0,prop:T.key,width:T.width,"min-width":T.minWidth,align:T.align,"show-overflow-tooltip":{effect:c.value??"light"},"show-arrow":!1},{...T,...x.$attrs,...i}),null,16,["prop","width","min-width","align","show-overflow-tooltip"]))],64)):o.createCommentVNode("v-if",!0)],64))),128))]),_:3},16,["page"])],!0),o.createCommentVNode(" 新增修改 "),o.createCommentVNode(` <IkDialog\r
|
|
40
40
|
v-if="needAutoForm"\r
|
|
41
41
|
ref="refIkDialog"\r
|
|
42
42
|
v-bind="{ ...dialogProp }"\r
|
|
@@ -47,4 +47,8 @@
|
|
|
47
47
|
:form-key="formKey"\r
|
|
48
48
|
:edit-data="editData"\r
|
|
49
49
|
@addFunction="sureAdd"\r
|
|
50
|
-
/> `)],64)}}}),Yk="",e_=de(X(Jy,[["__scopeId","data-v-a4dd744c"]])),t_={},n_={t:"1672196428320",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3618",width:"200",height:"200"},o_=[n.createElementVNode("path",{d:"M384 250V134a70 70 0 0 0-70-70H134a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70z m-80-10H144v-96h160zM890 704H710a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70V774a70 70 0 0 0-70-70z m-10 176H720v-96h160zM890 384H710a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70V454a70 70 0 0 0-70-70z m-10 176H720v-96h160zM536 504H264v-80a40 40 0 0 0-40-40 40 40 0 0 0-40 40v432a40 40 0 0 0 40 40h312a40 40 0 0 0 40-40 40 40 0 0 0-40-40H264V584h272a40 40 0 0 0 40-40 40 40 0 0 0-40-40z","p-id":"3619","data-spm-anchor-id":"a313x.7781069.0.i2",class:"selected"},null,-1)];function l_(t,e){return n.openBlock(),n.createElementBlock("svg",n_,o_)}const Il=X(t_,[["render",l_]]),r_={},i_={t:"1672197639916",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"19012"},a_=[n.createElementVNode("path",{d:"M863.1 255.1H551.3c-25.1 0-49.2-9.8-67.1-27.4l-75-73.4c-17.9-17.5-42-27.4-67.1-27.4H161c-53 0-96 43-96 96v512.8c0 53 43 96 96 96h702c53 0 96-43 96-96V351.1c0.1-53-42.9-96-95.9-96z m-31 161.1c0 17.7-14.3 32-32 32H224c-17.7 0-32-14.3-32-32v-0.1c0-17.7 14.3-32 32-32h576.1c17.7 0 32 14.3 32 32v0.1z","p-id":"19013"},null,-1)];function s_(t,e){return n.openBlock(),n.createElementBlock("svg",i_,a_)}const en=X(r_,[["render",s_]]),c_={},d_={t:"1672197222005",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"14755"},u_=[n.createElementVNode("path",{d:"M959.68 921.024c-15.232-181.696-139.648-331.968-307.84-386.624 70.464-45.632 117.248-124.48 117.248-214.464C769.152 178.624 654.208 64 512.512 64 370.752 64 255.808 178.624 255.808 319.936c0 89.984 46.784 168.832 117.248 214.528-168.192 54.592-292.544 204.864-307.84 386.56-0.192 3.456-0.64 5.44 0 10.176C66.496 947.2 80.64 960 96.704 960c17.92 0 32.064-14.656 32.064-32 16.704-197.76 182.272-351.936 383.744-351.936 201.408 0 366.976 154.176 383.68 351.936 0 17.344 14.144 32 32.064 32 16.064 0 30.208-12.8 31.424-28.8C960.32 926.464 959.936 924.416 959.68 921.024zM320 319.936C320 213.952 406.208 128 512.512 128s192.448 85.952 192.448 191.936c0 106.048-86.144 192-192.448 192S320 425.984 320 319.936z","p-id":"14756"},null,-1)];function f_(t,e){return n.openBlock(),n.createElementBlock("svg",d_,u_)}const eo=X(c_,[["render",f_]]),p_={},h_={t:"1672194715727",class:"icon",viewBox:"0 0 1024 1024",version:"1.1","p-id":"2667"},m_=[n.createElementVNode("path",{d:"M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",fill:"#5D5D5D","p-id":"2668"},null,-1),n.createElementVNode("path",{d:"M454.878536 70.285786C239.51556 70.285786 64.93236 244.847497 64.93236 460.231963c0 215.341486 174.583201 389.945153 389.945153 389.945153 215.362976 0 389.9472-174.603667 389.9472-389.945153C844.825736 244.847497 670.241512 70.285786 454.878536 70.285786zM454.878536 805.611108c-190.750415 0-345.381192-154.626683-345.381192-345.379145 0-190.751439 154.629753-345.380168 345.381192-345.380168 190.752462 0 345.382215 154.62873 345.382215 345.380168C800.259728 650.983401 645.630998 805.611108 454.878536 805.611108z",fill:"#5D5D5D","p-id":"2669"},null,-1)];function g_(t,e){return n.openBlock(),n.createElementBlock("svg",h_,m_)}const y_=X(p_,[["render",g_]]),__={},b_={t:"1672212880079",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"19924"},k_=[n.createElementVNode("path",{d:"M806.4 263.2l-45.6-45.6L512 467.2 263.2 217.6l-45.6 45.6L467.2 512 217.6 760.8l45.6 45.6L512 557.6l248.8 248.8 45.6-45.6L557.6 512z","p-id":"19925"},null,-1)];function E_(t,e){return n.openBlock(),n.createElementBlock("svg",b_,k_)}const C_=X(__,[["render",E_]]),w_={},v_={t:"1672216076738",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"28376"},S_=[n.createElementVNode("path",{d:"M501.937582 545.097053c147.891962 0 268.231366-118.534055 268.223274-264.288929 0-145.746783-120.330301-264.28994-268.222263-264.28994-147.890951 0-268.221252 118.584625-268.221252 264.28994C233.71633 426.520519 354.046631 545.097053 501.937582 545.097053zM612.471463 570.546911 411.497184 570.546911c-186.760063 0-338.664249 149.569875-338.664249 333.472733l0 19.794109c0 96.139636 149.47278 96.139636 338.664249 96.139636l200.974278 0c181.747565 0 338.694591 0 338.694591-96.139636l0-19.794109C951.164031 720.158252 799.235571 570.546911 612.471463 570.546911z","p-id":"28377"},null,-1)];function A_(t,e){return n.openBlock(),n.createElementBlock("svg",v_,S_)}const It=X(w_,[["render",A_]]),x_={},D_={t:"1680231254898",class:"icon",viewBox:"0 0 1154 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9556"},N_=[n.createElementVNode("path",{d:"M1015.808 64.512q62.464 0 99.84 31.744t37.376 96.256l0 568.32q0 27.648-10.24 52.224t-28.16 43.008-41.984 29.184-50.688 10.752l-892.928 0q-26.624 0-50.176-10.24t-40.96-27.136-27.648-39.424-10.24-48.128l0-580.608q0-55.296 33.792-90.624t95.232-35.328l886.784 0zM287.744 253.952q-19.456 0-36.864 7.168t-30.72 19.968-20.992 30.72-7.68 38.4 7.68 37.888 20.992 30.72 30.72 20.992 36.864 7.68q21.504 0 39.424-7.68t30.72-20.992 20.48-30.72 7.68-37.888q0-41.984-27.648-69.12t-70.656-27.136zM448.512 608.256q0-19.456-7.68-37.376t-20.48-30.72-30.72-20.48-37.376-7.68l-128 0q-39.936 0-67.584 28.16t-27.648 68.096l0 4.096 0 92.16 319.488 0 0-92.16 0-4.096zM923.648 709.632q20.48 0 30.208-10.24t9.728-24.576-11.264-25.088-31.744-10.752l-305.152 0q-20.48 0-30.72 10.752t-10.24 25.088 10.24 24.576 29.696 10.24l309.248 0zM924.672 577.536q20.48 0 29.696-10.24t9.216-24.576q0-15.36-8.704-25.6t-29.184-10.24l-313.344 0q-20.48 0-29.696 10.24t-9.216 25.6q0 14.336 8.704 24.576t29.184 10.24l313.344 0zM925.696 447.488q15.36 0 26.624-10.24t11.264-24.576-11.264-23.04-26.624-8.704l-207.872 0q-15.36 0-26.112 8.704t-10.752 23.04 10.752 24.576 26.112 10.24l207.872 0z","p-id":"9557"},null,-1)];function V_(t,e){return n.openBlock(),n.createElementBlock("svg",D_,N_)}const Rl=X(x_,[["render",V_]]),B_={},T_={t:"1698719360533",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15490",width:"200",height:"200"},I_=[n.createElementVNode("path",{d:"M960 704h-63.616v-167.392a32 32 0 0 0-32-32H544V416h160a32 32 0 0 0 32-32V96a32 32 0 0 0-32-32H320a32 32 0 0 0-32 32v288a32 32 0 0 0 32 32h160v88.608H161.984a32 32 0 0 0-32 31.968L129.792 704H64a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32H193.792l0.16-135.392H480V704h-64a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32h-64v-135.392h288.384V704H768a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32zM352 128h320v224H352V128zM224 896H96v-128h128v128z m352 0h-128v-128h128v128z m352 0h-128v-128h128v128z","p-id":"15491"},null,-1)];function R_(t,e){return n.openBlock(),n.createElementBlock("svg",T_,I_)}const tn=X(B_,[["render",R_]]),zs={list:{type:Array,default:()=>[]},handList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},fixPropOpt:{type:Object,default:()=>{}},height:{type:String,default:"404px"}},M_={class:"left-pick-list"},O_={class:"post-view-list"},L_=["title"],P_={class:"ik-picker-single"},z_=["title"],F_=n.defineComponent({__name:"PostList",props:zs,emits:["change","check"],setup(t,{emit:e}){var g,m;const o=t,l=n.computed(()=>{var c,y;return((c=o.handList)==null?void 0:c.length)===((y=o.list)==null?void 0:y.length)}),r=n.computed(()=>{var p,h,b,_;const c=(p=o.handList)==null?void 0:p.length,y=(h=o.list)==null?void 0:h.length;return o.multiple?i.value=o.handList.map(w=>w[o.fixPropOpt.id]):a.value=(_=(b=o.handList)==null?void 0:b[0])==null?void 0:_[o.fixPropOpt.id],c>0&&c<y}),i=n.ref(o.handList.map(c=>c[o.fixPropOpt.id])),a=n.ref((m=(g=o.handList)==null?void 0:g[0])==null?void 0:m[o.fixPropOpt.id]),s=e,d=c=>{const y=c?o.list.map(p=>p[o.fixPropOpt.id]):[];s("change",y,c?o.list:[])},f=c=>{s("change",c,o.list)},u=c=>{s("change",c,o.list)};return(c,y)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createCommentVNode(" 遍历list多选 "),n.createElementVNode("div",M_,[c.multiple?(n.openBlock(),n.createBlock(n.unref(v.ElCheckbox),{key:0,modelValue:l.value,"onUpdate:modelValue":y[0]||(y[0]=p=>l.value=p),indeterminate:r.value,onChange:d},{default:n.withCtx(()=>[n.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):n.createCommentVNode("v-if",!0),n.createElementVNode("ul",O_,[c.multiple?(n.openBlock(),n.createBlock(n.unref(v.ElCheckboxGroup),{key:0,modelValue:i.value,"onUpdate:modelValue":y[1]||(y[1]=p=>i.value=p),onChange:f},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.list,p=>(n.openBlock(),n.createElementBlock("li",{key:p[o.fixPropOpt.id]},[n.createVNode(n.unref(v.ElCheckbox),{label:p[o.fixPropOpt.id]},{default:n.withCtx(()=>[n.createVNode(Rl),n.createElementVNode("p",{title:p[o.fixPropOpt.name]},n.toDisplayString(p[o.fixPropOpt.name]),9,L_)]),_:2},1032,["label"])]))),128))]),_:1},8,["modelValue"])):(n.openBlock(),n.createBlock(n.unref(v.ElRadioGroup),{key:1,isIndeterminate:r.value,modelValue:a.value,"onUpdate:modelValue":y[2]||(y[2]=p=>a.value=p),onChange:u},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.list,p=>(n.openBlock(),n.createElementBlock("li",{class:"w-full",key:p[o.fixPropOpt.id]},[n.createVNode(n.unref(v.ElRadio),{label:p[o.fixPropOpt.id]},{default:n.withCtx(()=>[n.createElementVNode("div",P_,[n.createVNode(Rl),n.createElementVNode("p",{title:p[o.fixPropOpt.name]},n.toDisplayString(p[o.fixPropOpt.name]),9,z_)])]),_:2},1032,["label"])]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])])],2112))}}),rE="",$_=X(F_,[["__scopeId","data-v-a87521f6"]]),H_={class:"left-pick-list"},U_={class:"role-view-list"},j_=["title"],W_={class:"ik-picker-single"},G_=["title"],q_=n.defineComponent({__name:"RoleList",props:zs,emits:["change","check"],setup(t,{emit:e}){var g,m;const o=t,l=n.computed(()=>{var c,y;return((c=o.handList)==null?void 0:c.length)===((y=o.list)==null?void 0:y.length)}),r=n.computed(()=>{var p,h,b,_;const c=(p=o.handList)==null?void 0:p.length,y=(h=o.list)==null?void 0:h.length;return o.multiple?i.value=o.handList.map(w=>w[o.fixPropOpt.id]):a.value=(_=(b=o.handList)==null?void 0:b[0])==null?void 0:_[o.fixPropOpt.id],c>0&&c<y}),i=n.ref(o.handList.map(c=>c[o.fixPropOpt.id])),a=n.ref((m=(g=o.handList)==null?void 0:g[0])==null?void 0:m[o.fixPropOpt.id]),s=e,d=c=>{const y=c?o.list.map(p=>p[o.fixPropOpt.id]):[];s("change",y,c?o.list:[])},f=c=>{s("change",c,o.list)},u=c=>{s("change",c,o.list)};return(c,y)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createCommentVNode(" 遍历list多选 "),n.createElementVNode("div",H_,[c.multiple?(n.openBlock(),n.createBlock(n.unref(v.ElCheckbox),{key:0,modelValue:l.value,"onUpdate:modelValue":y[0]||(y[0]=p=>l.value=p),indeterminate:r.value,onChange:d},{default:n.withCtx(()=>[n.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):n.createCommentVNode("v-if",!0),n.createElementVNode("ul",U_,[c.multiple?(n.openBlock(),n.createBlock(n.unref(v.ElCheckboxGroup),{key:0,modelValue:i.value,"onUpdate:modelValue":y[1]||(y[1]=p=>i.value=p),onChange:f},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.list,p=>(n.openBlock(),n.createElementBlock("li",{key:p[c.fixPropOpt.id]},[n.createVNode(n.unref(v.ElCheckbox),{label:p[c.fixPropOpt.id],value:p[c.fixPropOpt.id],disabled:p.disabled},{default:n.withCtx(()=>[n.createVNode(It),n.createElementVNode("p",{title:p[c.fixPropOpt.name]},n.toDisplayString(p[c.fixPropOpt.name]),9,j_)]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["modelValue"])):(n.openBlock(),n.createBlock(n.unref(v.ElRadioGroup),{key:1,indeterminate:r.value,modelValue:a.value,"onUpdate:modelValue":y[2]||(y[2]=p=>a.value=p),onChange:u},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.list,p=>(n.openBlock(),n.createElementBlock("li",{class:"w-full",key:p[c.fixPropOpt.id]},[n.createVNode(n.unref(v.ElRadio),{label:p[c.fixPropOpt.id],value:p[c.fixPropOpt.id],disabled:p.disabled},{default:n.withCtx(()=>[n.createElementVNode("div",W_,[n.createVNode(It),n.createElementVNode("p",{title:p[c.fixPropOpt.name]},n.toDisplayString(p[c.fixPropOpt.name]),9,G_)])]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["indeterminate","modelValue"]))])])],2112))}}),iE="",Y_=X(q_,[["__scopeId","data-v-a51e0920"]]);var Ee=(t=>(t.org="organization",t.dep="dep",t.user="user",t.role="role",t.post="post",t.dep_user="dep_user",t))(Ee||{}),nn=(t=>(t.group="group",t.role="role",t.post="post",t))(nn||{});const at={animation:200,group:"gl",disabled:!1,ghostClass:"ghost",sort:!0,delay:100,showIcon:!0,itemStyle:{radius:25,bottom:8,background:"#0000"}},Q_={topLink:{type:Boolean,default:!0},children:{type:Boolean,default:!0},modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},pid:{type:String,default:""},orgPid:{type:String,default:"root"},org:{type:Object,default:()=>null},immediate:{type:Boolean,default:!1},show:{type:Boolean,default:!1,required:!0},width:{type:String,default:"685px"},height:{type:String,default:"580px"},title:{type:String,default:"选择人员"},organizationList:{type:Array,default:()=>[]},depList:{type:Array,default:()=>[]},userList:{type:Array,default:()=>[]},roleList:{type:Array,default:()=>[]},postList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},tabs:{type:Array,validator:t=>{if(t===void 0)return!0;if(Array.isArray(t)){if(!(t!=null&&t.length))return!1}else return console.error("IkingPicker参数错误:tabs必须是Array类型"),!1;return!0},default:()=>["group","role","post"]},showDep:{type:Boolean,default:!0},chooseType:{type:Array,default:()=>["dep"]},api:{type:Object,default:()=>({methods:"post",headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:"Bearer iking"},url:`${location.origin}${location.pathname}/serve/component/pick/mix`,param:null,paramKey:"type"})},typeOption:{type:Object,default:()=>{}},propOption:{type:Object,default:()=>null},search:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},imageBaseUrl:{type:String,default:""},cache:{type:Boolean,default:!0},placeholder:{type:String,default:"模糊搜索组织、人员、角色、岗位"},emptyText:{type:String,default:"暂无数据"}},Fs=t=>{const e=window.location.search;return new URLSearchParams(e).get(t)},Z_=t=>{const e=P.ikStore.local.getItem("x_domain");e&&(t["X-DOMAIN"]=e)},X_=t=>{var l;const e=Fs("domain");if(e){t["X-DOMAIN"]=e;const r=Fs("code");e==="APPLICATION"&&(t["X-APP"]=r)}else Z_(t);const o=(l=P.ikStore.local.getItem("tenant"))==null?void 0:l.code;o&&(t["X-TENANT"]=o)},K_=(t,e)=>{const o=n.ref([]),l=async(i,a,s)=>{var B,I;const{url:d,methods:f,headers:u,param:g}=t.value||{},m={parentOrgId:i,...g||{},parentDepartmentId:a||"",name:s||""},c={method:f,url:d,headers:{"Content-Type":"application/json;charset=UTF-8",...u},data:JSON.stringify(m)};X_(c.headers);const y=await zl(c),{success:p,data:h}=y.data;if(!p)return{depList:[],roleList:[],postList:[],userList:[],organizationList:[],rootOrganization:{},rootDepartment:{}};const{departments:b,roles:_,posts:w,users:S,organizations:O,rootOrganization:N,rootDepartment:C}=h,E=N||C;return o.value[0]=e.org?{...e.org,id:e.elementId,elementType:(I=(B=e.org)==null?void 0:B.elementType)==null?void 0:I.toLocaleUpperCase()}:{...E,id:E.elementId},{depList:P._.cloneDeep(b),roleList:P._.cloneDeep(_),postList:P._.cloneDeep(w),userList:P._.cloneDeep(S),organizationList:P._.cloneDeep(O),rootOrganization:N,rootDepartment:C}};return{handData:l,handSetChild:(i,a)=>{l(i==null?void 0:i.elementId,a)},bannerList:o}},J_={shadow:"hover",class:"sel-list"},e2={key:0},t2={key:0,class:"check-all"},n2={key:0,class:"view-list"},o2={key:0,class:"filter-user"},l2=["title"],r2={class:"filter-user"},i2=["title"],a2={key:2,class:"next-child"},s2={class:"filter-user"},c2=["title"],d2={key:1,class:"filter-user"},u2=["title"],f2={key:2,class:"next-child"},p2={class:"text-over-flow"},h2=["title"],m2=["title"],g2={key:2,class:"next-child"},y2={key:1,class:"empty"},_2=n.createElementVNode("div",{class:"split-div"},null,-1),b2={class:"choose-list"},k2={class:"choose-item"},E2=n.createElementVNode("div",null,"已选",-1),C2={class:"dialog-footer"},w2=n.defineComponent({__name:"picker",props:Q_,emits:["handChild","update:show","update:modelValue","ok","search"],setup(t,{expose:e,emit:o}){n.useCssVars(D=>({"06538f00":K.value}));const l=t,r=n.ref(""),i=n.ref(""),a=n.ref(""),s=n.ref([]),d=n.ref([]),f=n.ref([]),u=n.ref([]),g=n.ref([]),m=n.ref(!1),c=l.imageBaseUrl||`${location.origin}/server/oss/download?fileUrl=`,y=D=>D?D.startsWith("http")?D:`${c}${D}`:"";n.watch(()=>l.api,()=>{l.show&&I("")});const p=n.computed(()=>({name:"name",type:"type",id:"id",avatar:"avatar",...l.propOption})),h=n.computed(()=>({dep:"DEPT",user:"USER",role:"ROLE",post:"POST",organization:"ORGANIZATION",...l.typeOption})),b=n.ref([]),_=K_(n.toRef(l,"api"),l),w=_.handData,S=_.bannerList;l.immediate&&w(a.value,i.value,r.value);const O=D=>(D.forEach(L=>{var A,U;L.disabled=((U=(A=l.modelValue)==null?void 0:A.find(ye=>ye[p.value.id]===L[p.value.id]))==null?void 0:U.disabled)||!1}),D),N=async()=>{var D,L,A,U,ye,Ke,Mt,sn,oc;m.value=!0;try{if((D=l.depList)!=null&&D.length||(L=l.userList)!=null&&L.length||(A=l.roleList)!=null&&A.length||(U=l.postList)!=null&&U.length){s.value=(ye=l.userList)==null?void 0:ye.filter(Le=>Le[p.value.name].includes(r.value)),d.value=(Ke=l.depList)==null?void 0:Ke.filter(Le=>Le[p.value.name].includes(r.value)),f.value=(Mt=l.roleList)==null?void 0:Mt.filter(Le=>Le[p.value.name].includes(r.value)),u.value=(sn=l.postList)==null?void 0:sn.filter(Le=>Le[p.value.name].includes(r.value)),g.value=(oc=l.organizationList)==null?void 0:oc.filter(Le=>Le[p.value.name].includes(r.value)),J(),m.value=!1;return}const Ce=await w(a.value,i.value,r.value);try{s.value=O((Ce==null?void 0:Ce.userList)||[]),d.value=O((Ce==null?void 0:Ce.depList)||[]),f.value=O((Ce==null?void 0:Ce.roleList)||[]),u.value=O((Ce==null?void 0:Ce.postList)||[]),g.value=O((Ce==null?void 0:Ce.organizationList)||[])}catch(Le){m.value=!1,console.info("error: ",Le)}J(),m.value=!1}catch{m.value=!1}},C=n.reactive({org:new Map,dep:new Map,user:new Map,role:new Map,post:new Map,trans:[],single:""}),E=n.reactive({indeterminate:!1,checkAll:0}),B=D=>C.org.has(D)||C.dep.has(D)||C.user.has(D)||C.role.has(D)||C.post.has(D),I=P.ikEvent.debounce(N,300),W=n.computed(()=>{const D=Array.from(C.org.values()),L=Array.from(C.dep.values()),A=Array.from(C.role.values()),U=Array.from(C.user.values()),ye=Array.from(C.post.values());return b.value=[...D,...L,...A,...ye,...U],{list:[...D,...L,...A,...U,...ye],org:{list:D,len:D.length,deps:D},dep:{list:L,len:L.length,deps:L},role:{list:A,len:A.length},user:{list:U,len:U.length},post:{list:ye,len:ye.length}}}),x=n.computed(()=>{const D=l.chooseType.map(A=>A.toLocaleLowerCase());let L=[...D];return D.includes("dep")&&(L=[...L,"organization","dept"]),D.includes("dep_user")&&(L=[...L,"user"]),L}),T=n.computed(()=>x.value.includes(Ee.dep)&&!x.value.includes(Ee.user)&&!x.value.includes(Ee.org)),z=n.computed(()=>x.value.includes(Ee.user)&&!x.value.includes(Ee.dep)&&!x.value.includes(Ee.org)),ee=n.computed(()=>x.value.includes(Ee.org)&&!x.value.includes(Ee.dep)&&!x.value.includes(Ee.user)),me=n.computed(()=>!S.value.length),$=n.computed(()=>!l.max||W.value.list.length<l.max),ce=D=>[h.value.dep,h.value.organization].includes(D[p.value.type])?D.hasOwnProperty("disabled"):!1,pe=n.ref([]),Re=D=>{pe.value=D,pe.value.forEach(L=>{L.readonly=L==null?void 0:L.disabled})},ie=o,M=n.ref(!1),J=(D=!1)=>{var A;const L=(A=l==null?void 0:l.userList)!=null&&A.length?P._.cloneDeep([...l==null?void 0:l.organizationList,...l==null?void 0:l.userList,...l==null?void 0:l.depList]):[...g.value,...d.value,...s.value];return!D&&Re(L),L};n.watch(()=>l.show,async D=>{var L;if(M.value=D,D){i.value=l.pid,a.value=((L=l.org)==null?void 0:L.elementId)||l.orgPid,!l.userList.length&&!l.depList.length&&!l.roleList.length&&!l.postList.length&&!l.organizationList.length?await N():(s.value=l.userList,d.value=l.depList,f.value=l.roleList,u.value=l.postList,g.value=l.organizationList),C.trans=[],E.checkAll=0,E.indeterminate=!1;const A=J(!0);for(const ye of A)B(ye[p.value.id])&&C.trans.push(ye[p.value.id]);const U=A.length===C.trans.length;E.indeterminate=!!(A.length&&!U),E.checkAll=Number(A.length&&U),n.nextTick(()=>{var ye;(ye=l.modelValue)!=null&&ye.length?l.modelValue.forEach(Ke=>{Z(Ke),l.multiple?C.trans.push(Ke[p.value.id]):C.single=Ke[p.value.id]}):Se()})}else Se()}),n.watchEffect(()=>{let D;if(T.value||z.value){const A=s.value.length,U=d.value.length;D=T.value?U:z.value?A:A+A}else D=pe.value.length;const L=C.trans.length;E.indeterminate=C.trans.length?L!==D:!1,E.checkAll=+(D!==0&&L===D)});const G=D=>{if(D){if(C.single="",D[p.value.id]){const L=C.trans.findIndex(A=>A===D[p.value.id]);L!==-1&&C.trans.splice(L,1)}switch(D[p.value.type]){case h.value.dep:return C.dep.delete(D[p.value.id]);case h.value.user:return C.user.delete(D[p.value.id]);case h.value.role:return C.role.delete(D[p.value.id]);case h.value.post:return C.post.delete(D[p.value.id]);case h.value.organization:return C.org.delete(D[p.value.id]);default:return}}},H=D=>{G(D)},Z=D=>{if(!B(D[p.value.id])){const L={...D};switch(D[p.value.type]){case h.value.dep:return C.dep.set(D[p.value.id],L);case h.value.user:return C.user.set(D[p.value.id],L);case h.value.role:return C.role.set(D[p.value.id],L);case h.value.post:return C.post.set(D[p.value.id],L);case h.value.organization:return C.org.set(D[p.value.id],L);default:return}}};n.watch(()=>C.trans,D=>{if(!D.length)pe.value.forEach(L=>{L.disabled=!1;try{l.multiple&&G(L)}catch{}});else{const L=pe.value.filter(U=>!D.includes(U[p.value.id]));for(const U of L)U.disabled=!1,l.multiple&&G(U);const A=pe.value.filter(U=>D.includes(U[p.value.id]));for(const U of A)U.disabled=ce(U),Z(U)}},{deep:!0}),n.watch(()=>C.single,D=>{if(D){const L=pe.value.find(A=>A[p.value.id]===D);L&&(C.dep.clear(),C.user.clear(),C.role.clear(),C.post.clear(),C.org.clear(),C.trans=[],n.nextTick(()=>{Z(L)}))}});const se=D=>{if(D){let L=[];if(x.value.includes("dep")||x.value.includes("dep_user")){const A=pe.value.filter(U=>U[p.value.type].toLocaleUpperCase()===h.value[Ee.dep].toLocaleUpperCase());L=[...L,...A]}if(x.value.includes("user")||x.value.includes("dep_user")){const A=pe.value.filter(U=>U[p.value.type].toLocaleUpperCase()===h.value[Ee.user].toLocaleUpperCase());L=[...L,...A]}if(x.value.includes("organization")){const A=pe.value.filter(U=>U[p.value.type].toLocaleUpperCase()===h.value[Ee.org].toLocaleUpperCase());L=[...L,...A]}L.forEach(A=>{!C.trans.includes(A[p.value.id])&&C.trans.push(A[p.value.id])})}else pe.value.forEach(L=>{const A=C.trans.findIndex(U=>U===L[p.value.id]);A>=0&&C.trans.splice(A,1)})},ae=D=>{D[p.value.type]===h.value.organization?(a.value=D==null?void 0:D.elementId,i.value=""):(a.value="",i.value=D==null?void 0:D.elementId),N(),S.value.push(D)},le=()=>{const D=S.value.length-2,L=D<0?0:D,A=S.value[L];A[p.value.type]===h.value.organization?(a.value=D<0?"root":(A==null?void 0:A.elementId)||(A==null?void 0:A.id),i.value=""):(a.value="",i.value=D<0?"":(A==null?void 0:A.elementId)||(A==null?void 0:A.id)),N(),S.value.pop()},ne=n.computed(()=>S.value.length),Me=(D,L)=>{!L&&!l.topLink||L!==ne.value-1&&(D[p.value.type]===h.value.organization?(a.value=D==null?void 0:D.elementId,i.value=""):(a.value="",i.value=D==null?void 0:D.elementId),N(),S.value.splice(L+1))},Xe=n.computed(()=>l.chooseType.includes("role")&&l.chooseType.length===1),st=n.computed(()=>l.chooseType.includes("post")&&l.chooseType.length===1),Ue=n.ref(l.tabs[0]),ve=n.ref(l.tabs[0]);n.watchEffect(()=>(ve.value=Xe.value?l.tabs[1]:st.value?l.tabs[2]:Ue.value,ve.value));const Se=()=>{var D;C.dep.clear(),C.user.clear(),C.role.clear(),C.post.clear(),C.org.clear(),C.trans=[],Te.value=[],Rt.value=[],Ue.value=l.tabs[0],ve.value=l.tabs[0],r.value="",i.value=l.pid,a.value=((D=l.org)==null?void 0:D.elementId)||l.orgPid,C.single="",b.value=[]},Ae=()=>{var D;ie("ok",P._.cloneDeep({...W.value,sort:b.value})),ie("update:modelValue",P._.cloneDeep(((D=W.value)==null?void 0:D.list)||[])),ie("update:show",!1),Se()},Oe=()=>{ie("update:show",!1),Se()};e({handClear:Se,handRomeve:H,handDelete:G});const R=n.computed(()=>{const D=x.value;return!!((D.includes("post")||D.includes("role"))&&D.length>1)}),F=n.computed(()=>[{label:"group",name:"组织架构"},{label:"role",name:"角色列表"},{label:"post",name:"岗位列表"}].filter(D=>l.tabs.includes(D.label))),Y=n.computed(()=>`${(typeof l.width=="string"?Number.parseInt(l.width):l.width)/2-30}px`),K=n.computed(()=>`${typeof l.height=="string"?Number.parseInt(l.height):l.height}px`),oe=()=>{l.multiple||(C.post.clear(),C.role.clear(),C.user.clear(),C.dep.clear(),C.single="")},Te=n.ref([]),an=(D,L)=>{l.multiple||(C.single="");const A=l.multiple?D:[D];if(!A.length){C.role.clear();return}oe(),L.forEach(U=>{A!=null&&A.includes(U[p.value.id])?Z(U):G(U)})};n.watch(()=>W.value.role.len,D=>{Te.value=P._.cloneDeep(W.value.role.list)});const Rt=n.ref([]),xe=(D,L)=>{l.multiple||(C.single="");const A=l.multiple?D:[D];if(!A.length){C.post.clear();return}oe(),L.forEach(U=>{A!=null&&A.includes(U[p.value.id])?Z(U):G(U)})};return n.watch(()=>W.value.post.len,D=>{Rt.value=P._.cloneDeep(W.value.post.list)}),n.watch(()=>r.value,D=>{I("")}),(D,L)=>(n.openBlock(),n.createBlock(n.unref(v.ElDialog),{modelValue:M.value,"onUpdate:modelValue":L[6]||(L[6]=A=>M.value=A),title:D.title,"destroy-on-close":"","close-on-click-modal":!1,"close-on-click-escape":!1,draggable:"","align-center":"",width:typeof D.width=="string"?D.width:`${D.width}%`,class:"p_p_picker-dialog","modal-class":"p_p_picker-dialog-modal",onClose:Oe},{footer:n.withCtx(()=>[n.createElementVNode("span",C2,[n.createVNode(n.unref(v.ElButton),{onClick:n.withModifiers(Oe,["stop"])},{default:n.withCtx(()=>[n.createTextVNode("取消")]),_:1}),n.createVNode(n.unref(v.ElButton),{type:"primary",onClick:n.withModifiers(Ae,["stop"])},{default:n.withCtx(()=>[n.createTextVNode(" 确定 ")]),_:1})])]),default:n.withCtx(()=>[n.createElementVNode("div",{class:"dep-use-picker",style:n.normalizeStyle({height:K.value})},[n.createElementVNode("div",J_,[n.createElementVNode("div",null,[n.createVNode(n.unref(v.ElInput),{modelValue:r.value,"onUpdate:modelValue":L[0]||(L[0]=A=>r.value=A),clearable:"",placeholder:D.placeholder,"prefix-icon":y_,style:n.normalizeStyle({width:Y.value})},null,8,["modelValue","placeholder","style"]),R.value?(n.openBlock(),n.createBlock(n.unref(v.ElRadioGroup),{key:0,modelValue:Ue.value,"onUpdate:modelValue":L[1]||(L[1]=A=>Ue.value=A),class:"ik-picker-tab",style:n.normalizeStyle({width:Y.value})},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(F.value,A=>(n.openBlock(),n.createBlock(n.unref(v.ElRadioButton),{label:A.label,key:A.label},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(A.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","style"])):n.createCommentVNode("v-if",!0)]),n.createCommentVNode(" 过滤 "),ve.value===n.unref(nn).group?(n.openBlock(),n.createElementBlock("div",e2,[n.createCommentVNode(" 面包屑 全选 "),n.createVNode(n.unref(v.ElBreadcrumb),{separator:">",class:n.normalizeClass(["banner",{"top-unlink":!D.topLink}])},{default:n.withCtx(()=>[ne.value?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(n.unref(S),(A,U)=>(n.openBlock(),n.createBlock(n.unref(v.ElBreadcrumbItem),{key:A[p.value.id],onClick:n.withModifiers(ye=>Me(A,U),["stop"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(A[p.value.name]),1)]),_:2},1032,["onClick"]))),128)):n.createCommentVNode("v-if",!0)]),_:1},8,["class"]),n.createCommentVNode(" 全选框 "),D.multiple?(n.openBlock(),n.createElementBlock("div",t2,[n.createVNode(n.unref(v.ElCheckbox),{modelValue:E.checkAll,"onUpdate:modelValue":L[2]||(L[2]=A=>E.checkAll=A),indeterminate:E.indeterminate,"true-label":1,"false-label":0,disabled:!D.multiple,onChange:se,onInput:se},{default:n.withCtx(()=>[n.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate","disabled"]),ne.value>1?n.withDirectives((n.openBlock(),n.createBlock(n.unref(v.ElButton),{key:0,link:"",type:"primary",onClick:n.withModifiers(le,["stop"])},{default:n.withCtx(()=>[n.createTextVNode("上一级")]),_:1},512)),[[n.vShow,!me.value]]):n.createCommentVNode("v-if",!0)])):n.createCommentVNode("v-if",!0)])):n.createCommentVNode("v-if",!0),n.createCommentVNode(" 左侧列表 "),n.createCommentVNode(" 部门&人员 "),ve.value===n.unref(nn).group?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[pe.value.length?n.withDirectives((n.openBlock(),n.createElementBlock("ul",n2,[n.createCommentVNode(" +++++++++++++++++++++++ 多选 ++++++++++++++++++++++ "),D.multiple?(n.openBlock(),n.createBlock(n.unref(v.ElCheckboxGroup),{key:0,modelValue:C.trans,"onUpdate:modelValue":L[3]||(L[3]=A=>C.trans=A)},{default:n.withCtx(()=>[n.createCommentVNode(" <template> "),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(g.value,A=>(n.openBlock(),n.createElementBlock("li",{key:A[p.value.id]},[x.value.includes(n.unref(Ee).org)?(n.openBlock(),n.createBlock(n.unref(v.ElCheckbox),{key:1,label:A[p.value.id],disabled:!$.value||(A==null?void 0:A.readonly)},{default:n.withCtx(()=>[n.createElementVNode("div",r2,[n.createCommentVNode(" 部门icon前缀 "),n.createVNode(tn),n.createElementVNode("p",{title:A[p.value.name]},n.toDisplayString(A[p.value.name]),9,i2)])]),_:2},1032,["label","disabled"])):(n.openBlock(),n.createElementBlock("div",o2,[n.createCommentVNode(" 部门icon前缀 "),n.createVNode(tn),n.createElementVNode("p",{title:A[p.value.name]},n.toDisplayString(A[p.value.name]),9,l2)])),D.children?(n.openBlock(),n.createElementBlock("div",a2,[[h.value.organization,h.value.dep,h.value.role].includes(A[p.value.type])?(n.openBlock(),n.createBlock(n.unref(v.ElButton),{key:0,link:"",type:"primary",onClick:n.withModifiers(U=>ae(A),["stop"]),disabled:A.disabled},{icon:n.withCtx(()=>[n.createVNode(Il)]),default:n.withCtx(()=>[n.createTextVNode(" 下级 ")]),_:2},1032,["onClick","disabled"])):n.createCommentVNode("v-if",!0)])):n.createCommentVNode("v-if",!0)]))),128)),n.createCommentVNode(" </template> "),(!z.value||D.showDep)&&!ee.value?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(d.value,A=>(n.openBlock(),n.createElementBlock("li",{key:A[p.value.id]},[D.chooseType.includes(n.unref(Ee).dep)||D.chooseType.includes(n.unref(Ee).dep_user)?(n.openBlock(),n.createBlock(n.unref(v.ElCheckbox),{key:0,label:A[p.value.id],disabled:!$.value||(A==null?void 0:A.readonly)},{default:n.withCtx(()=>[n.createElementVNode("div",s2,[n.createCommentVNode(" 部门icon前缀 "),n.createVNode(en),n.createElementVNode("p",{title:A[p.value.name]},n.toDisplayString(A[p.value.name]),9,c2)])]),_:2},1032,["label","disabled"])):(n.openBlock(),n.createElementBlock("div",d2,[n.createCommentVNode(" 部门icon前缀 "),n.createVNode(en),n.createElementVNode("p",{title:A[p.value.name]},n.toDisplayString(A[p.value.name]),9,u2)])),D.children?(n.openBlock(),n.createElementBlock("div",f2,[[h.value.dep,h.value.role].includes(A[p.value.type])?(n.openBlock(),n.createBlock(n.unref(v.ElButton),{key:0,link:"",type:"primary",onClick:n.withModifiers(U=>ae(A),["stop"]),disabled:A.disabled},{icon:n.withCtx(()=>[n.createVNode(Il)]),default:n.withCtx(()=>[n.createTextVNode(" 下级 ")]),_:2},1032,["onClick","disabled"])):n.createCommentVNode("v-if",!0)])):n.createCommentVNode("v-if",!0)]))),128)):n.createCommentVNode("v-if",!0),D.chooseType.includes("user")||D.chooseType.includes("dep_user")?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(s.value,A=>(n.openBlock(),n.createElementBlock("li",{key:A[p.value.id]},[n.createVNode(n.unref(v.ElCheckbox),{label:A[p.value.id],disabled:!$.value||(A==null?void 0:A.readonly)},{default:n.withCtx(()=>{var U,ye;return[n.createCommentVNode(" icon前缀 "),h.value.dep===A[p.value.type]?(n.openBlock(),n.createBlock(It,{key:0})):h.value.user===A[p.value.type]?(n.openBlock(),n.createBlock(n.unref(v.ElAvatar),{key:1,size:30,src:y((U=p.value)!=null&&U.avatar?A[(ye=p.value)==null?void 0:ye.avatar]:""),icon:eo},null,8,["src"])):n.createCommentVNode("v-if",!0),n.createElementVNode("span",p2,n.toDisplayString(A[p.value.name]),1)]}),_:2},1032,["label","disabled"])]))),128)):n.createCommentVNode("v-if",!0)]),_:1},8,["modelValue"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createCommentVNode(" +++++++++++++++++++++++ 单选 ++++++++++++++++++++++ "),n.createVNode(n.unref(v.ElRadioGroup),{modelValue:C.single,"onUpdate:modelValue":L[4]||(L[4]=A=>C.single=A)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(pe.value,A=>{var U,ye,Ke;return n.openBlock(),n.createElementBlock("li",{key:A[p.value.id]},[x.value.includes((U=A[p.value.type])==null?void 0:U.toLocaleLowerCase())?(n.openBlock(),n.createBlock(n.unref(v.ElRadio),{key:0,label:A[p.value.id],class:n.normalizeClass({readonly:![h.value.organization,h.value.dep,h.value.user].includes(A[p.value.type]),"w-full":!0}),disabled:A.readonly},{default:n.withCtx(()=>{var Mt,sn;return[n.createCommentVNode(" 部门icon前缀 "),h.value.organization===A[p.value.type]?(n.openBlock(),n.createBlock(tn,{key:0})):h.value.dep===A[p.value.type]?(n.openBlock(),n.createBlock(en,{key:1})):h.value.role===A[p.value.type]?(n.openBlock(),n.createBlock(It,{key:2})):h.value.user===A[p.value.type]?(n.openBlock(),n.createBlock(n.unref(v.ElAvatar),{key:3,size:30,src:y((Mt=p.value)!=null&&Mt.avatar?A[(sn=p.value)==null?void 0:sn.avatar]:""),icon:eo},null,8,["src"])):n.createCommentVNode("v-if",!0),n.createElementVNode("span",{class:"text-over-flow",title:A[p.value.name]},n.toDisplayString(A[p.value.name]),9,h2)]}),_:2},1032,["label","class","disabled"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[h.value.organization===A[p.value.type]?(n.openBlock(),n.createBlock(tn,{key:0})):h.value.dep===A[p.value.type]?(n.openBlock(),n.createBlock(en,{key:1})):h.value.role===A[p.value.type]?(n.openBlock(),n.createBlock(It,{key:2})):h.value.user===A[p.value.type]?(n.openBlock(),n.createBlock(n.unref(v.ElAvatar),{key:3,size:30,src:y((ye=p.value)!=null&&ye.avatar?A[(Ke=p.value)==null?void 0:Ke.avatar]:""),icon:eo},null,8,["src"])):n.createCommentVNode("v-if",!0),n.createElementVNode("span",{class:"text-over-flow",title:A[p.value.name]},n.toDisplayString(A[p.value.name]),9,m2)],64)),D.children?(n.openBlock(),n.createElementBlock("div",g2,[[h.value.organization,h.value.dep,h.value.role].includes(A[p.value.type])?(n.openBlock(),n.createBlock(n.unref(v.ElButton),{key:0,link:"",type:"primary",onClick:n.withModifiers(Mt=>ae(A),["stop"])},{icon:n.withCtx(()=>[n.createVNode(Il)]),default:n.withCtx(()=>[n.createTextVNode(" 下级 ")]),_:2},1032,["onClick"])):n.createCommentVNode("v-if",!0)])):n.createCommentVNode("v-if",!0)])}),128))]),_:1},8,["modelValue"])],2112))])),[[n.unref(v.vLoading),m.value]]):(n.openBlock(),n.createElementBlock("div",y2,n.toDisplayString(D.emptyText),1))],64)):ve.value===n.unref(nn).role?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createCommentVNode(" 角色 "),n.withDirectives(n.createVNode(Y_,{fixPropOpt:p.value,list:f.value,max:D.max,multiple:D.multiple,"hand-list":Te.value,onChange:an},null,8,["fixPropOpt","list","max","multiple","hand-list"]),[[n.unref(v.vLoading),m.value]])],64)):ve.value===n.unref(nn).post?(n.openBlock(),n.createElementBlock(n.Fragment,{key:3},[n.createCommentVNode(" 岗位 "),n.withDirectives(n.createVNode($_,{fixPropOpt:p.value,list:u.value,max:D.max,multiple:D.multiple,"hand-list":Rt.value,onChange:xe},null,8,["fixPropOpt","list","max","multiple","hand-list"]),[[n.unref(v.vLoading),m.value]])],64)):n.createCommentVNode("v-if",!0)]),_2,n.createCommentVNode(" 已选列表 "),n.createElementVNode("div",b2,[n.createElementVNode("div",k2,[E2,n.createVNode(n.unref(v.ElButton),{type:"primary",link:"",onClick:n.withModifiers(Se,["stop"])},{default:n.withCtx(()=>[n.createTextVNode("清空")]),_:1})]),n.createCommentVNode(" 已选列表可拖拽 "),n.createVNode(n.unref(Pl),{tag:"ul",name:"fade","item-key":"elementId",modelValue:b.value,"onUpdate:modelValue":L[5]||(L[5]=A=>b.value=A),style:n.normalizeStyle({height:`calc(${K.value} + 21px)`}),animation:n.unref(at).animation,group:n.unref(at).group,disabled:n.unref(at).disabled,ghostClass:n.unref(at).ghostClass,forceFallback:n.unref(at).ghostClass},{item:n.withCtx(({element:A})=>[n.createVNode(n.Transition,{type:"transition",name:"flip-list"},{default:n.withCtx(()=>[n.createElementVNode("li",{class:n.normalizeClass(["list-group-item"]),style:n.normalizeStyle({borderRadius:`${n.unref(at).itemStyle.radius}px`,marginBottom:`${n.unref(at).itemStyle.bottom}px`,backgroundColor:`${n.unref(at).itemStyle.background}`})},[n.createElementVNode("div",null,[n.createCommentVNode(" 部门icon前缀 "),h.value.organization===A[p.value.type]?(n.openBlock(),n.createBlock(tn,{key:0})):n.createCommentVNode("v-if",!0),h.value.dep===A[p.value.type]?(n.openBlock(),n.createBlock(en,{key:1})):h.value.role===A[p.value.type]?(n.openBlock(),n.createBlock(It,{key:2})):h.value.post===A[p.value.type]?(n.openBlock(),n.createBlock(Rl,{key:3})):h.value.user===A[p.value.type]?(n.openBlock(),n.createBlock(n.unref(v.ElAvatar),{key:4,size:30,src:y(p.value.avatar?A[p.value.avatar]:""),icon:eo},null,8,["src"])):n.createCommentVNode("v-if",!0),n.createElementVNode("span",null,n.toDisplayString(A[p.value.name]),1)]),n.withDirectives(n.createVNode(C_,{class:"close",onClick:n.withModifiers(U=>H(A),["stop"])},null,8,["onClick"]),[[n.vShow,!(A!=null&&A.readonly)]])],4)]),_:2},1024)]),_:1},8,["modelValue","style","animation","group","disabled","ghostClass","forceFallback"])])],4)]),_:1},8,["modelValue","title","width"]))}}),aE="",on=de(w2),v2={},S2={t:"1672194715727",class:"icon",viewBox:"0 0 1024 1024",version:"1.1","p-id":"2667"},A2=[n.createElementVNode("path",{d:"M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",fill:"#5D5D5D","p-id":"2668"},null,-1),n.createElementVNode("path",{d:"M454.878536 70.285786C239.51556 70.285786 64.93236 244.847497 64.93236 460.231963c0 215.341486 174.583201 389.945153 389.945153 389.945153 215.362976 0 389.9472-174.603667 389.9472-389.945153C844.825736 244.847497 670.241512 70.285786 454.878536 70.285786zM454.878536 805.611108c-190.750415 0-345.381192-154.626683-345.381192-345.379145 0-190.751439 154.629753-345.380168 345.381192-345.380168 190.752462 0 345.382215 154.62873 345.382215 345.380168C800.259728 650.983401 645.630998 805.611108 454.878536 805.611108z",fill:"#5D5D5D","p-id":"2669"},null,-1)];function x2(t,e){return n.openBlock(),n.createElementBlock("svg",S2,A2)}const D2=X(v2,[["render",x2]]),N2={},V2={t:"1710907270798",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8420",width:"200",height:"200"},B2=[n.createElementVNode("path",{d:"M512 1024A512 512 0 1 0 512 0a512 512 0 0 0 0 1024z",fill:"var(--ik-color-icon-dark)","p-id":"8421"},null,-1),n.createElementVNode("path",{d:"M655.701333 327.082667a41.216 41.216 0 0 1 57.002667-1.194667 39.082667 39.082667 0 0 1 1.109333 56.490667l-145.237333 145.92 145.237333 146.005333c13.824 13.909333 15.189333 35.072 4.266667 50.346667l-5.376 6.144a41.216 41.216 0 0 1-57.002667-1.109334L511.914667 585.130667 368.298667 729.685333a40.96 40.96 0 0 1-42.24 9.557334l-7.68-3.242667-7.082667-5.12a39.082667 39.082667 0 0 1-1.109333-56.576l145.066666-146.005333-145.066666-145.92a39.082667 39.082667 0 0 1-4.266667-50.346667l5.376-6.144a41.216 41.216 0 0 1 57.002667 1.194667L512 471.381333z",fill:"#FFFFFF","p-id":"8422"},null,-1)];function T2(t,e){return n.openBlock(),n.createElementBlock("svg",V2,B2)}const I2=X(N2,[["render",T2]]),R2={},M2={t:"1710904463698",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7124",width:"200",height:"200"},O2=[n.createElementVNode("path",{d:"M512 512a235.392 235.392 0 0 0 235.2-235.52A235.392 235.392 0 0 0 512 40.96a235.392 235.392 0 0 0-235.2 235.52A235.392 235.392 0 0 0 512 512z",fill:"var(--ik-color-icon-light-hover)","p-id":"7125"},null,-1),n.createElementVNode("path",{d:"M41.984 901.12c0 57.408 46.784 103.872 104.512 103.872h731.52c57.664 0 104.448-46.464 104.448-103.808v-51.968c0-143.36-116.992-259.648-261.248-259.648H303.232c-144.256 0-261.248 116.224-261.248 259.648v51.968z",fill:"var(--ik-color-tag-primary)","p-id":"7126"},null,-1)];function L2(t,e){return n.openBlock(),n.createElementBlock("svg",M2,O2)}const P2=X(R2,[["render",L2]]),z2={},F2={t:"1710904436436",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6989",width:"200",height:"200"},$2=[n.createElementVNode("path",{d:"M421.952281 288.898297a42.687867 42.687867 0 0 0-42.111868 31.167903l-122.367618 461.694557a49.919844 49.919844 0 0 0 19.19994 52.223837l232.319274 173.503458a57.59982 57.59982 0 0 0 67.45579 0.447998l234.175268-169.59947a49.983844 49.983844 0 0 0 19.967937-52.351836l-118.783628-465.598545a42.623867 42.623867 0 0 0-41.919869-31.487902H421.952281z",fill:"var(--ik-color-tag-primary)","p-id":"6990"},null,-1),n.createElementVNode("path",{d:"M354.048494 0.0032a44.67186 44.67186 0 0 0-36.479886 18.175943 39.103878 39.103878 0 0 0-4.223987 38.59188L377.792419 206.722554c6.591979 15.359952 22.39993 25.47192 40.127875 25.407921h255.487202c17.919944 0 33.919894-10.431967 40.319874-26.239918L774.39918 56.003025a39.167878 39.167878 0 0 0-4.863985-38.079881A44.67186 44.67186 0 0 0 733.439308 0.0032H354.048494z",fill:"var(--ik-color-icon-light-hover)","p-id":"6991"},null,-1)];function H2(t,e){return n.openBlock(),n.createElementBlock("svg",F2,$2)}const U2=X(z2,[["render",H2]]),j2={},W2={t:"1710904287393",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6854",width:"200",height:"200"},G2=[n.createElementVNode("path",{d:"M512 271.296c27.264 0 49.792 22.336 51.136 50.816l0.064 2.688v147.072H832c62.272 0 113.28 51.776 115.2 116.8v103.872c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752l-0.064-2.688V592.256a13.184 13.184 0 0 0-11.328-13.312L832 578.88H563.2v113.664c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L460.8 692.48V578.88H192a12.992 12.992 0 0 0-12.736 11.776l-0.064 1.6v100.288c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L76.8 692.48V592.256c0-65.088 49.536-118.4 111.808-120.32H460.8v-147.2c0-29.504 22.912-53.44 51.2-53.44z",fill:"var(--ik-color-icon-light-hover)","p-id":"6855"},null,-1),n.createElementVNode("path",{d:"M204.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H51.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM588.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H435.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM972.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504h-153.6c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM665.6 64c28.288 0 51.2 23.936 51.2 53.504v213.952c0 29.568-22.912 53.504-51.2 53.504H358.4c-28.288 0-51.2-23.936-51.2-53.504V117.504c0-29.568 22.912-53.504 51.2-53.504h307.2z",fill:"var(--ik-color-tag-primary)","p-id":"6856"},null,-1)];function q2(t,e){return n.openBlock(),n.createElementBlock("svg",W2,G2)}const Y2=X(j2,[["render",q2]]),Q2={class:"avatar"},Z2={key:3,class:"user_box"},X2={key:1,class:"avatar_name"},K2=n.defineComponent({__name:"Avatar",props:{fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},element:{type:Object,default:()=>{}},imageBaseUrl:{type:String,default:""}},setup(t){const e=t,o=`${e.imageBaseUrl}/server/oss/download?fileUrl=`||`${location.origin}/server/oss/download?fileUrl=`,l=r=>r?r.startsWith("http")?r:`${o}${r}`:"";return(r,i)=>{const a=n.resolveComponent("el-avatar");return n.openBlock(),n.createElementBlock("div",Q2,[e.fixTypeOpt.group===t.element[e.fixPropOpt.type]?(n.openBlock(),n.createBlock(Y2,{key:0})):e.fixTypeOpt.role===t.element[e.fixPropOpt.type]?(n.openBlock(),n.createBlock(P2,{key:1})):e.fixTypeOpt.post===t.element[e.fixPropOpt.type]?(n.openBlock(),n.createBlock(U2,{key:2})):e.fixTypeOpt.user===t.element[e.fixPropOpt.type]?(n.openBlock(),n.createElementBlock("div",Z2,[t.element[t.fixPropOpt.avatar]?(n.openBlock(),n.createBlock(a,{key:0,shape:"square",src:l(t.fixPropOpt.avatar?t.element[t.fixPropOpt.avatar]:"")},null,8,["src"])):(n.openBlock(),n.createElementBlock("div",X2,n.toDisplayString(t.element[t.fixPropOpt.name].slice(-2)),1))])):n.createCommentVNode("v-if",!0)])}}}),_E="",Ct=X(K2,[["__scopeId","data-v-bc7cca29"]]),Ml="data:image/webp;base64,UklGRogSAABXRUJQVlA4WAoAAAAwAAAAxwAAzQAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBI4gsAAAXwh21/2rb//yncJGWGwWvMXFi6wpNh8GRmZmZmZmYeMzMzlobdnuvw+SynSVvbKiTx4ViWHcly/nodz4hw4LaNIylb5mbLeTIl2S+A/+u0//zH3hUlGHLVu1GC0Ze+HyUoKPo0SnClc0aU4Ontu6IEfzzWFiVYeGWU2Ede90qU4LMfj0YH3FOvihLnl/atiQ6k/RgtzlPfPxwduCXj0yiR0j1+Sygq0Pfr6/iosA/6/M6G6PC98+5t3qiw33j5fVEhL3W81/Z2CKfi02lG/c2Q/8YX2PQh54cv1htzKe6VuBewtxW/8NBpQy5Z757y4VasjFcynoJGXLJcdef0GSJOR//Pf11kyMvKbVcu/rMDp8P+5Ogn6w241POu3Gnzglghlzz+w2IDno6Tb/T/thsrxHzp/du/gozNpZBIX3npNdkrZ+LWRlPK2POHrPuVkawOO3tWmfdX7d/fSW8yllyVtXneWfyY+I2v3HKExbE4dJ8TgI7dm7fsFMgz8OIisHXRP4YxqR77Ev0DYfWCpa0Rg13LJ0xIP7Z6W6cBLA64ebTyYqWEzllflxERWjAh13F8+44mw1nlsvan4kSsf7oqcuLv3VXWYUzL9ZTFJpyI4JcvdBt3hv/2K3gVWybyxgo+XC6/BC9j+WTjPiXv64OXcd1c495GbknAsnIiMG47Z5UDxylpVBi4XTvLjKF6CDByu+1Xq5IZNwNDtytmxiiYvBwYu3lm9kaoz5a+IQzekj6+3QpA7crftxsWJNPna/qd+DH2mcdAlLD5Vxs9mMdu744SvP9LTZTgxVUVUYJHKlQeNA30xNWfOtVkwDi7gkrc+R6PJwX4kgDgT6HWbLyv6+Mp9IxEkqQwODmc4l+8hkjMOI/Hk4XoUKBFW7viX1oMixxPoWcM8vWAJxKdbYp/8RkJtlGFHg+a3KlDQnSr4l/8rJPm8RTmumRRGiHZAL986+5dTGIZVujxDECURQDxplSNDbFG4niPpyBeVhcp5NvzwI9sUfDrELOsT494B7EVDzaVSvpIQaFJPz7AEpOXAh0Tyi9jaF2pHE4QGq3aVSgyw12/AoLQadbvzKShx3ronMZBrITiF94HJKHTsK8fY4OUmgTdExi3nwk+f4KkRuik1LQt54gsfNUccbDQR7dMZ4DpNzEx1moHt+uesXvNbEz+T57VPWsvYGQt7h51ROdcvIqZGL/uQn1jLhvNTtJ17Txdc+tfDOXAZ4byOiamujc7BLc8WaVjnv4EsHL3xvmLGnXdrs8u78sCXevmL2rRf+Oyi4qKRlr0TMeaeUv9zEyZ+MKioglWvVKwBzBmZWP1ymgdLyqZRfYjlRrS3t35LDJsVOfeM/S45GMRwj1vq6eLOzwM8tJtHZCf8zOtL4kRi0QBQrjjbfUvk2L2uOsNCKEAf15MB+u6AdIu2+sH1Nh4DnP8b7MJwfsQnfTi7o8lzch24HXV9PF85vhrotR+ZJszlwbugwmSaLTw4X4VVl3MGnkbOyA6In1PtVPglZelXXGqfkdlYi+Zwhrrx4cdgBaXUEjA0447ws5XVHyt0rJFlzPGxGXhjlT4oPWlNuJ8+VinJFlJzQcii6Tem35kVhswV4yQ2o8prJ5Pmr5H7J3yKFII/7WSQRIXZXDc8Sf42/8QOwQMbW+3EmbGjaAT4n6e+TTEHt9cznEcP3f20V5hcKdNC8kydp9JRi4oVtp9zDFuLc9xPOc7/TIQpSdxG/d5M1HWXgAkUOcr7qtYFmCM1fnyznVNdIQJNx/jg/a1JNPxi1YDALrCmrHCK1azxcXLkJ3rPwggSEVcby49QoycvVkyUGUTfuNYwlw2HNlduSYFWCfUTSXG73cAJdgeWHSaJW6eFuDk6jwnAECUIo/a9n2AEJbadARJsoruubUMYa/uE5DPprGSCuUB15vcDyFCXL4IKMELX3uYIR7/AiBkS/MKOUgOwK91wlTtsUs9j0ZBanH31c1hAGXoPZYmwwsjLAhdAtpyKX6hPijbQQh/ghK14l+QGZZNAiDIcbw4CCAEOKkf8U6oJZUUbS9URaH+z05WGHAMyPAcHGFWorL9u4AQJWscMt2yZqzwQ2uZ+fHamzJydUpvFF6QriqSO5l1xAJX7ssD4+JjQ6jXfc28IAiQP70lwAqmf7MQ5LQuPttutdkCEDk1+QUeCpCrqiLbGuvMiw5mdkC48DOMIgZAw41gR0ASCfk+601xFTkQwtc30WpPLP93pwrM/PjpXhSpqKzYI06FUHhjE70WHWcU2/MXxsdnIonEiUaO5/lT2wumQgjf2EiRLoEt8POt8HHfeRz30jZUhYc2NZ0QLmAJtXVjwu8c/6KSaYKBUn3pKVV4DgcUqHKiA8LFH+NxZaanXz0hOcGsNwRvc0NtS1NTU1NDA1TyBxdGMbrlW95aTwM0gpyAEC5/H8HRIycnJyszXvFdkpCcEW/VCx3eZq+A1dFaV1tbe7a2q+h3jntpK0rRnxDCd1fTAI0gNQKEq9/N7tOnd68Mk7pzU1OdzpgYEz3QnMvb7OU0Kgo1WCa2+55XLPGlv0EIP1xOAcXC+3eXaPaecWqW5cywiqYYp9NFa0AEvM3etoh0pYwMBCt3twS6Ic/1e4bn4FfzKJE9avRLYijoP6xJmeI1qXEiEAGwulwuogNCjq5+X0tbSAyJYd3aSR0RCNY0oBrShocCcNOSmqPtBEFn4ai8senAVhwMBbn9qvpUlps0i+QB5Gh2ulxu9QGhdaS2tfhaQ6hc+T7tl9KHBYKnalEyhgWDwdrTQDxbWbY/QAx7flGuAxmwnlAw2FEe1hhRpVv2geQJxB12l9vtjGxAiO0+nz+EyMQcwyIkIZrIHBII/nMGJWdQMBhsrEE0cDvXVBOh96QSt0KCLUMMiaHGSHW6U8ySD7AOMbncsW6bKmjD/T5/AKNPRayoLa1MEEOCYuLGxYui2OHH5Dezd4uRMvz60RRW0xQn1hOoBIc7NtZlwgcmv9/fjdemdqSwaBz+7nREZN2bR2Al0tZjicpK/Eg1u2PjYm1yYPL7WzuBrAmrKiwCK4VKpPh+XQRceF8MGuBoVDqUTlH1U0ycydcJtExENSmUGvvtKs3ccDOxQKpxEpmUTtFwxEnQdrsMrbj3hNaLBa/QzQisSXYNHR2ZELwqak1d87VGPhsg52dUK+MBlXNYCPmGYv7nSY0skBdpypWJtsjHsQYpdNn/ska+60k1ZVaEFykYa/KTLCQiX1Js5fcrtD79GNXcXxmxEyyEH6DLsec1J0aPXqSHzRTrVHiIxPto7ydf82tv+43Xm3VRGW/G+Unhy4iE0Gvehu87IhE1+KE+uqh0x2h5Rnfnmt+rItRlLr2uhy4qY830niH0wVGxtFwk0Iu5E8ea9VApBWOcnxQSlL5UEUOjpnrnVi8picmlxQPoF+wuk8b3qbqVeE564uihAxxZpWkFuSPstCtdNoWfMN5SfTTsVmLNkHP1/Udqz9SG6PTkkFHDB1jpVkorP/YZDUf5PmLdf+zA/uoA5VE5YNDAgWkRqY50sXJa9PDMwV1Hj0vX9GHx/fr06dXDTmnBjAGRPUD164Zin2b07JmTlZVsIi43xhJ2muaQRS5506U5MjPS09LT0hLNBCulAaT5AVK6X61URW/DIjE5OTkxMT4hMcUduUSHGes0hS8Jwt/WBRixjB+sBCpt+Pcpj6SaNWcqYMZuuJnEqLGZqIWsusdUslCdD+1X8kiIs1ql91E5Cy+cBBpNp2vOy2OIeNlqwryU5E1vHQY6MiKdfP8lRNRZMCu/DKGr754GrFnJg7FEMj2LifB5w48CYM8SbruQSGSWNpLnf38qB2xavxsKTCQqzcT25jlrpWSOWetzZZGNRMFE5C9OLt1Ir6SXTPaC83pHvskRLNI1fsdaaXU0AOtdMr5XpLIjrdm7rawbGIWl544ZFkeFUE1FeXUQMGUkZl+vYQP79bSQxF9TXX0UAqLGVH7Ru2ePntnpjkg7v7m+/uypU35A3lgMaempCQmJ8S6n02mzWCymYDAQ7BIEgW/z+XwtjYwviNHc/vMfAFZQOCCwBAAA8CoAnQEqyADOAD5tNpRGpD+iISw1STvwDYlpbuDAdGXYW5+xX+E/B79IvqhdnLddJLmGi5paMwD+h8p7UC/h/9K6qXoHfpyR4P/Uv3L6q0mh/qXmCC5XUh/6l+4p6WqP3L5qDkPaVIRPowOQa5RsItEnpv2qi+aEGdI5VaSY7+i3fjzySZVTfInmLOji/1JNDhsggr75HlBnTop05IyqW9k6rgDx4oGKuZLsiDqTspeWt1TThs95rEvc3BAQ2Cmm/WHPEgITWp1jDj8fnYpacUKlA2fv4bDkY96yZXMjIrnu/KsBeRwGc1mPgGXhZDn5J8bFFYquI/e5SRB/fGWHrUWxTd/6ZFoE99q2r5vdSogeBKsvZRRnOJo1DhTmQzfK+jKPl1XB61eCyIzI2T0HdI/htEFcLySPEI1rIA1ptHGDrClKq1Cj6yIjq1T8SCl5GneZHHtrpmpD/1L9y+qqAAD+ysAAAACruyAAa6B+sspLlClJkLWAAlhaOsmcS18eCdW/9MiovfLi9lIdZV4K9C2nq4XL6pGljxoATLaWY+Fdf+yp8QqRmQOm17DSnKGoocmxvW4jXk3K6solfHw92MfxE9PKbpV6k390KRXwxMKUkfODCBPOGu7AVxFQQDv/surrkKoki8usn4RG7CzImZDOrpVMMa1nuR8WstZYVtabVbc37OMP2Y5Z5xioxwALBSridUAAe2PyFxopohDSWVP/M2RAZ43b7JOT7vDiWAukTn7gZKAljHmig+HiisRYSOsqxzRcwtHuA0ihG2zggPceBgQoJ9OrQn4+9SynodSjUnN3S1msttzAbtHUyHt0dqPI8MmNPuuX8oNYGSrMU/jq1/tuwVAcRYjFSmiVtRyf52fqt8XWRriSR73+gAIbwbhZMdATlGZy0CGP2PPNUcp2aE5oBbmSjStpYBFxz4bcqxQSVdwMV0UOCxRcyEWqPkw7ZCJO8qXyf/uEHIyBNR1plTtcMWPXcI1Dmkhi0cBoqF2quLyff3S3y9RMN/xM9oPh7cT8+rNF9azivisDh4AIyAlaYTSsoJ6JFmrxFP//iZ//3US//7kyGHqb0JWaRZPd5LjuIc4b3Pdxeirqg3w8ux5nlN/CW5YYPR8ygYwahr/iqudOg0NhFAVNXbgNGCTQRj2YmxoT259SWlnA1dtgjuRe2cZOmxqn+mvuyGdvAd9XjPSV4VVEAnROrjCwrgbhyKFpb8s12Za8/F4cSrPOSuadvlSXDEdhrb27ok+DnCnJqOg8Kj9Gqlca2xL+KvTh1u+NuUBnWJWF2Y9f3+xrM9KPN55AGLwUs8yRaGNKw9ngyAAfv8bf7tO4JOhTqKsM4JbfTtFKmlQhMS77J/ZyxsS7I+u5WO0/gjo83E7/80LOn4Ple50oLNP3yW4yTSnlNCwg+COLMFER8MfaIeAHTLvnkH3eDLow61YfoXxUp6SIMiBAHJ75Y1CrZeW1DvEoWdfnDhpz06KBs12oE7Ob6wCwc+FXeaKHfhDxAz/7xTqCDxZf++IGd1QQAB/TN8qRAl4EZQF8tbRrVQIKm2g8cbO8potBMoXyVFfUtI4r31krwmWYxDz2AAAAAAAA",Ol={list:{type:Array,default:()=>[]},handList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},height:{type:String,default:"404px"},imageBaseUrl:{type:String,default:""},emptyText:{type:String,default:"暂无数据"}},J2=t=>(n.pushScopeId("data-v-0a55c123"),t=t(),n.popScopeId(),t),eb={class:"left-pick-list"},tb={key:1,class:"post-view-list"},nb={class:"checkText"},ob={class:"iconBox"},lb={key:0,class:"userCount"},rb=["onClick"],ib={class:"ik-picker-single"},ab={class:"iconBox"},sb={key:0,class:"userCount"},cb={key:2,class:"empty"},db=J2(()=>n.createElementVNode("img",{src:Ml,alt:""},null,-1)),ub=n.defineComponent({__name:"GroupList",props:Ol,emits:["change","check","handChild"],setup(t,{emit:e}){var m,c;const o=t,l=n.computed(()=>{var y,p;return((y=o.handList)==null?void 0:y.length)===((p=o.list)==null?void 0:p.length)}),r=n.computed(()=>{var h,b,_,w;const y=(h=o.handList)==null?void 0:h.length,p=(b=o.list)==null?void 0:b.length;return o.multiple?i.value=o.handList.map(S=>S[o.fixPropOpt.id]):a.value=(w=(_=o.handList)==null?void 0:_[0])==null?void 0:w[o.fixPropOpt.id],y>0&&y<p}),i=n.ref(o.handList.map(y=>y[o.fixPropOpt.id])),a=n.ref((c=(m=o.handList)==null?void 0:m[0])==null?void 0:c[o.fixPropOpt.id]),s=e,d=y=>{const p=y?o.list.map(h=>h[o.fixPropOpt.id]):[];s("change",p,y?o.list:[])},f=y=>{s("change",y,o.list)},u=y=>{s("change",y,o.list)},g=y=>{s("handChild",y)};return(y,p)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createCommentVNode(" 遍历list多选 "),n.createElementVNode("div",eb,[y.multiple?(n.openBlock(),n.createBlock(n.unref(v.ElCheckbox),{key:0,modelValue:l.value,"onUpdate:modelValue":p[0]||(p[0]=h=>l.value=h),indeterminate:r.value,onChange:d},{default:n.withCtx(()=>[n.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):n.createCommentVNode("v-if",!0),y.list&&y.list.length?(n.openBlock(),n.createElementBlock("ul",tb,[y.multiple?(n.openBlock(),n.createBlock(n.unref(v.ElCheckboxGroup),{key:0,modelValue:i.value,"onUpdate:modelValue":p[1]||(p[1]=h=>i.value=h),onChange:f},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(y.list,h=>(n.openBlock(),n.createElementBlock("li",{key:h[o.fixPropOpt.id]},[n.createVNode(n.unref(v.ElCheckbox),{label:h[o.fixPropOpt.id]},{default:n.withCtx(()=>[n.createElementVNode("div",nb,[n.createElementVNode("div",ob,[n.createVNode(Ct,{fixTypeOpt:o.fixTypeOpt,fixPropOpt:o.fixPropOpt,element:h,imageBaseUrl:o.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),n.createElementVNode("p",null,[n.createElementVNode("span",null,n.toDisplayString(h[o.fixPropOpt.name]),1),h[o.fixPropOpt.type]===o.fixTypeOpt.group?(n.openBlock(),n.createElementBlock("span",lb,"("+n.toDisplayString(h.userCount)+")",1)):n.createCommentVNode("v-if",!0)])])]),_:2},1032,["label"]),h[o.fixPropOpt.type]===o.fixTypeOpt.group?(n.openBlock(),n.createElementBlock("span",{key:0,class:"nextLevel",onClick:b=>g(h)},"下级",8,rb)):n.createCommentVNode("v-if",!0)]))),128))]),_:1},8,["modelValue"])):(n.openBlock(),n.createBlock(n.unref(v.ElRadioGroup),{key:1,isIndeterminate:r.value,modelValue:a.value,"onUpdate:modelValue":p[2]||(p[2]=h=>a.value=h),onChange:u},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(y.list,h=>(n.openBlock(),n.createElementBlock("li",{class:"w-full",key:h[o.fixPropOpt.id]},[n.createVNode(n.unref(v.ElRadio),{label:h[o.fixPropOpt.id]},{default:n.withCtx(()=>[n.createElementVNode("div",ib,[n.createElementVNode("div",ab,[n.createVNode(Ct,{fixTypeOpt:o.fixTypeOpt,fixPropOpt:o.fixPropOpt,element:h,imageBaseUrl:o.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),n.createElementVNode("p",null,[n.createElementVNode("span",null,n.toDisplayString(h[o.fixPropOpt.name]),1),h[o.fixPropOpt.type]===o.fixTypeOpt.group?(n.openBlock(),n.createElementBlock("span",sb,"("+n.toDisplayString(h.userCount)+")",1)):n.createCommentVNode("v-if",!0)])])]),_:2},1032,["label"])]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(n.openBlock(),n.createElementBlock("div",cb,[db,n.createElementVNode("div",null,n.toDisplayString(o.emptyText),1)]))])],2112))}}),bE="",fb=X(ub,[["__scopeId","data-v-0a55c123"]]),pb=t=>(n.pushScopeId("data-v-95cdb4dd"),t=t(),n.popScopeId(),t),hb={class:"left-pick-list"},mb={key:1,class:"post-view-list"},gb={class:"iconBox"},yb={class:"ik-picker-single"},_b={class:"iconBox"},bb={key:2,class:"empty"},kb=pb(()=>n.createElementVNode("img",{src:Ml,alt:""},null,-1)),Eb=n.defineComponent({__name:"PostList",props:Ol,emits:["change","check"],setup(t,{emit:e}){var g,m;const o=t,l=n.computed(()=>{var c,y;return((c=o.handList)==null?void 0:c.length)===((y=o.list)==null?void 0:y.length)}),r=n.computed(()=>{var p,h,b,_;const c=(p=o.handList)==null?void 0:p.length,y=(h=o.list)==null?void 0:h.length;return o.multiple?i.value=o.handList.map(w=>w[o.fixPropOpt.id]):a.value=(_=(b=o.handList)==null?void 0:b[0])==null?void 0:_[o.fixPropOpt.id],c>0&&c<y}),i=n.ref(o.handList.map(c=>c[o.fixPropOpt.id])),a=n.ref((m=(g=o.handList)==null?void 0:g[0])==null?void 0:m[o.fixPropOpt.id]),s=e,d=c=>{const y=c?o.list.map(p=>p[o.fixPropOpt.id]):[];s("change",y,c?o.list:[])},f=c=>{s("change",c,o.list)},u=c=>{s("change",c,o.list)};return(c,y)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createCommentVNode(" 遍历list多选 "),n.createElementVNode("div",hb,[c.multiple?(n.openBlock(),n.createBlock(n.unref(v.ElCheckbox),{key:0,modelValue:l.value,"onUpdate:modelValue":y[0]||(y[0]=p=>l.value=p),indeterminate:r.value,onChange:d},{default:n.withCtx(()=>[n.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):n.createCommentVNode("v-if",!0),c.list&&c.list.length?(n.openBlock(),n.createElementBlock("ul",mb,[c.multiple?(n.openBlock(),n.createBlock(n.unref(v.ElCheckboxGroup),{key:0,modelValue:i.value,"onUpdate:modelValue":y[1]||(y[1]=p=>i.value=p),onChange:f},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.list,p=>(n.openBlock(),n.createElementBlock("li",{key:p[o.fixPropOpt.id]},[n.createVNode(n.unref(v.ElCheckbox),{label:p[o.fixPropOpt.id]},{default:n.withCtx(()=>[n.createElementVNode("div",gb,[n.createVNode(Ct,{fixTypeOpt:o.fixTypeOpt,fixPropOpt:o.fixPropOpt,element:p,imageBaseUrl:o.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),n.createElementVNode("p",null,n.toDisplayString(p[o.fixPropOpt.name]),1)]),_:2},1032,["label"])]))),128))]),_:1},8,["modelValue"])):(n.openBlock(),n.createBlock(n.unref(v.ElRadioGroup),{key:1,isIndeterminate:r.value,modelValue:a.value,"onUpdate:modelValue":y[2]||(y[2]=p=>a.value=p),onChange:u},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.list,p=>(n.openBlock(),n.createElementBlock("li",{class:"w-full",key:p[o.fixPropOpt.id]},[n.createVNode(n.unref(v.ElRadio),{label:p[o.fixPropOpt.id]},{default:n.withCtx(()=>[n.createElementVNode("div",yb,[n.createElementVNode("div",_b,[n.createVNode(Ct,{fixTypeOpt:o.fixTypeOpt,fixPropOpt:o.fixPropOpt,element:p,imageBaseUrl:o.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),n.createElementVNode("p",null,n.toDisplayString(p[o.fixPropOpt.name]),1)])]),_:2},1032,["label"])]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(n.openBlock(),n.createElementBlock("div",bb,[kb,n.createElementVNode("div",null,n.toDisplayString(o.emptyText),1)]))])],2112))}}),kE="",Cb=X(Eb,[["__scopeId","data-v-95cdb4dd"]]),wb=t=>(n.pushScopeId("data-v-79596f8b"),t=t(),n.popScopeId(),t),vb={class:"left-pick-list"},Sb={key:1,class:"role-view-list"},Ab={class:"iconBox"},xb=["title"],Db={class:"ik-picker-single"},Nb={class:"iconBox"},Vb=["title"],Bb={key:2,class:"empty"},Tb=wb(()=>n.createElementVNode("img",{src:Ml,alt:""},null,-1)),Ib=n.defineComponent({__name:"RoleList",props:Ol,emits:["change","check"],setup(t,{emit:e}){var g,m;const o=t,l=n.computed(()=>{var c,y;return((c=o.handList)==null?void 0:c.length)===((y=o.list)==null?void 0:y.length)}),r=n.computed(()=>{var p,h,b,_;const c=(p=o.handList)==null?void 0:p.length,y=(h=o.list)==null?void 0:h.length;return o.multiple?i.value=o.handList.map(w=>w[o.fixPropOpt.id]):a.value=(_=(b=o.handList)==null?void 0:b[0])==null?void 0:_[o.fixPropOpt.id],c>0&&c<y}),i=n.ref(o.handList.map(c=>c[o.fixPropOpt.id])),a=n.ref((m=(g=o.handList)==null?void 0:g[0])==null?void 0:m[o.fixPropOpt.id]),s=e,d=c=>{const y=c?o.list.map(p=>p[o.fixPropOpt.id]):[];s("change",y,c?o.list:[])},f=c=>{s("change",c,o.list)},u=c=>{s("change",c,o.list)};return(c,y)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createCommentVNode(" 遍历list多选 "),n.createElementVNode("div",vb,[c.multiple?(n.openBlock(),n.createBlock(n.unref(v.ElCheckbox),{key:0,modelValue:l.value,"onUpdate:modelValue":y[0]||(y[0]=p=>l.value=p),indeterminate:r.value,onChange:d},{default:n.withCtx(()=>[n.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):n.createCommentVNode("v-if",!0),c.list&&c.list.length?(n.openBlock(),n.createElementBlock("ul",Sb,[c.multiple?(n.openBlock(),n.createBlock(n.unref(v.ElCheckboxGroup),{key:0,modelValue:i.value,"onUpdate:modelValue":y[1]||(y[1]=p=>i.value=p),onChange:f},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.list,p=>(n.openBlock(),n.createElementBlock("li",{key:p[c.fixPropOpt.id]},[n.createVNode(n.unref(v.ElCheckbox),{label:p[c.fixPropOpt.id],value:p[c.fixPropOpt.id],disabled:p.disabled},{default:n.withCtx(()=>[n.createElementVNode("div",Ab,[n.createVNode(Ct,{fixTypeOpt:o.fixTypeOpt,fixPropOpt:o.fixPropOpt,element:p,imageBaseUrl:o.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),n.createElementVNode("p",{title:p[c.fixPropOpt.name]},n.toDisplayString(p[c.fixPropOpt.name]),9,xb)]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["modelValue"])):(n.openBlock(),n.createBlock(n.unref(v.ElRadioGroup),{key:1,indeterminate:r.value,modelValue:a.value,"onUpdate:modelValue":y[2]||(y[2]=p=>a.value=p),onChange:u},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.list,p=>(n.openBlock(),n.createElementBlock("li",{class:"w-full",key:p[c.fixPropOpt.id]},[n.createVNode(n.unref(v.ElRadio),{label:p[c.fixPropOpt.id],value:p[c.fixPropOpt.id],disabled:p.disabled},{default:n.withCtx(()=>[n.createElementVNode("div",Db,[n.createElementVNode("div",Nb,[n.createVNode(Ct,{fixTypeOpt:o.fixTypeOpt,fixPropOpt:o.fixPropOpt,element:p,imageBaseUrl:o.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),n.createElementVNode("p",{title:p[c.fixPropOpt.name]},n.toDisplayString(p[c.fixPropOpt.name]),9,Vb)])]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["indeterminate","modelValue"]))])):(n.openBlock(),n.createElementBlock("div",Bb,[Tb,n.createElementVNode("div",null,n.toDisplayString(o.emptyText),1)]))])],2112))}}),EE="",Rb=X(Ib,[["__scopeId","data-v-79596f8b"]]);var ln=(t=>(t.group="group",t.role="role",t.post="post",t))(ln||{});const Mb={topLink:{type:Boolean,default:!0},modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},orgPid:{type:String,default:""},org:{type:Object,default:()=>null},immediate:{type:Boolean,default:!1},show:{type:Boolean,default:!1,required:!0},width:{type:String,default:"685px"},height:{type:String,default:"580px"},title:{type:String,default:"选择人员"},groupList:{type:Array,default:()=>[]},userList:{type:Array,default:()=>[]},roleList:{type:Array,default:()=>[]},postList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},tabs:{type:Array,validator:t=>{if(t===void 0)return!0;if(Array.isArray(t)){if(!(t!=null&&t.length))return!1}else return console.error("IkingPicker参数错误:tabs必须是Array类型"),!1;return!0},default:()=>["group","role","post"]},chooseType:{type:Array,default:()=>["dep"]},api:{type:Object,default:()=>({methods:"post",headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:"Bearer 7035d1067ec043049e626bb79f496581"},url:`${location.origin}${location.pathname}/serve/component/pick/mix`,param:null,paramKey:"type"})},typeOption:{type:Object,default:()=>{}},propOption:{type:Object,default:()=>null},search:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},imageBaseUrl:{type:String,default:""},placeholder:{type:String,default:"请输入"},emptyText:{type:String,default:"暂无数据"}},$s=t=>{const e=window.location.search;return new URLSearchParams(e).get(t)},Ob=t=>{const e=P.ikStore.local.getItem("x_domain");e&&(t["X-DOMAIN"]=e)},Lb=t=>{var l;const e=$s("domain");if(e){t["X-DOMAIN"]=e;const r=$s("code");e==="APPLICATION"&&(t["X-APP"]=r)}else Ob(t);const o=(l=P.ikStore.local.getItem("tenant"))==null?void 0:l.code;o&&(t["X-TENANT"]=o)},Pb=(t,e)=>{const o=n.ref([]),l=async(i,a)=>{var C,E;const{url:s,methods:d,headers:f,param:u}=t.value||{},g={...u||{},parentDepartmentId:i||"",name:a||""},m={method:d,url:s,headers:{"Content-Type":"application/json;charset=UTF-8",...f},data:JSON.stringify(g)};Lb(m.headers);const c=await zl(m),{success:y,data:p}=c.data;if(!y)return{groupList:[],roleList:[],postList:[],userList:[],rootOrganization:{},rootDepartment:{}};const{departments:h,roles:b,posts:_,users:w,rootOrganization:S,rootDepartment:O}=p,N=S||O;return o.value[0]=e.org?{...e.org,id:e.elementId,elementType:(E=(C=e.org)==null?void 0:C.elementType)==null?void 0:E.toLocaleUpperCase()}:{...N,id:N.elementId},{groupList:P._.cloneDeep(h),roleList:P._.cloneDeep(b),postList:P._.cloneDeep(_),userList:P._.cloneDeep(w),rootOrganization:S,rootDepartment:O}};return{handData:l,handSetChild:(i,a)=>{l(i==null?void 0:i.elementId,a)},bannerList:o}},zb={shadow:"hover",class:"sel-list"},Fb={key:0},$b=n.createElementVNode("div",{class:"split-div"},null,-1),Hb={class:"choose-list"},Ub={class:"choose-item"},jb=n.createElementVNode("div",null,"已选",-1),Wb={class:"choose-box"},Gb={class:"list-group-item"},qb={class:""},Yb={class:"avatar_box"},Qb={class:"dialog-footer"},Zb=n.defineComponent({__name:"picker",props:Mb,emits:["handChild","update:show","update:modelValue","ok","search"],setup(t,{expose:e,emit:o}){n.useCssVars(R=>({"402a1416":Me.value}));const l=t,r=n.ref(""),i=n.ref(""),a=n.ref([]),s=n.ref([]),d=n.ref([]),f=n.ref([]),u=n.ref(!1),g=n.computed(()=>s.value.concat(a.value));n.watch(()=>l.api,()=>{l.show&&C("")});const m=n.computed(()=>({name:"name",type:"type",id:"id",avatar:"avatar",...l.propOption})),c=n.computed(()=>({user:"USER",role:"ROLE",post:"POST",group:"DEPT",...l.typeOption})),y=n.ref([]),p=Pb(n.toRef(l,"api"),l),h=p.handData,b=p.bannerList;l.immediate&&h(i.value,r.value);const _=R=>(R.forEach(F=>{var Y,K;F.disabled=((K=(Y=l.modelValue)==null?void 0:Y.find(oe=>oe[m.value.id]===F[m.value.id]))==null?void 0:K.disabled)||!1}),R),w=async()=>{var R,F,Y,K,oe,Te,an,Rt;u.value=!0;try{if((R=l.groupList)!=null&&R.length||(F=l.userList)!=null&&F.length||(Y=l.roleList)!=null&&Y.length||(K=l.postList)!=null&&K.length){a.value=(oe=l.userList)==null?void 0:oe.filter(D=>D[m.value.name].includes(r.value)),s.value=(Te=l.groupList)==null?void 0:Te.filter(D=>D[m.value.name].includes(r.value)),d.value=(an=l.roleList)==null?void 0:an.filter(D=>D[m.value.name].includes(r.value)),f.value=(Rt=l.postList)==null?void 0:Rt.filter(D=>D[m.value.name].includes(r.value)),z(),u.value=!1;return}const xe=await h(i.value,r.value);try{a.value=_((xe==null?void 0:xe.userList)||[]),s.value=_((xe==null?void 0:xe.groupList)||[]),d.value=_((xe==null?void 0:xe.roleList)||[]),f.value=_((xe==null?void 0:xe.postList)||[])}catch(D){u.value=!1,console.info("error: ",D)}z(),u.value=!1}catch{u.value=!1}},S=n.reactive({group:new Map,user:new Map,role:new Map,post:new Map,trans:[],single:""}),O=n.reactive({indeterminate:!1,checkAll:0}),N=R=>S.group.has(R)||S.user.has(R)||S.role.has(R)||S.post.has(R),C=P.ikEvent.debounce(w,300),E=n.computed(()=>{const R=Array.from(S.group.values()),F=Array.from(S.role.values()),Y=Array.from(S.user.values()),K=Array.from(S.post.values());return y.value=[...F,...K,...Y,...R],{list:[...F,...Y,...K,...R],role:{list:F,len:F.length},user:{list:Y,len:Y.length},post:{list:K,len:K.length},groups:{list:R,len:R.length}}}),B=n.computed(()=>[...l.chooseType.map(Y=>Y.toLocaleLowerCase())]),I=n.ref([]),W=R=>{I.value=R,I.value.forEach(F=>{F.readonly=F==null?void 0:F.disabled})},x=o,T=n.ref(!1),z=(R=!1)=>{var Y;const F=(Y=l==null?void 0:l.userList)!=null&&Y.length?P._.cloneDeep([...l==null?void 0:l.userList,...l==null?void 0:l.groupList]):[...s.value,...a.value];return!R&&W(F),F};n.watch(()=>l.show,async R=>{var F;if(T.value=R,R){i.value=((F=l.org)==null?void 0:F.elementId)||l.orgPid,!l.userList.length&&!l.groupList.length&&!l.roleList.length&&!l.postList.length?await w():(a.value=l.userList,s.value=l.groupList,d.value=l.roleList,f.value=l.postList),S.trans=[],O.checkAll=0,O.indeterminate=!1;const Y=z(!0);for(const oe of Y)N(oe[m.value.id])&&S.trans.push(oe[m.value.id]);const K=Y.length===S.trans.length;O.indeterminate=!!(Y.length&&!K),O.checkAll=Number(Y.length&&K),n.nextTick(()=>{var oe;(oe=l.modelValue)!=null&&oe.length?l.modelValue.forEach(Te=>{$(Te),l.multiple?S.trans.push(Te[m.value.id]):S.single=Te[m.value.id]}):Z()})}else Z()}),n.watchEffect(()=>{let R;R=I.value.length;const F=S.trans.length;O.indeterminate=S.trans.length?F!==R:!1,O.checkAll=+(R!==0&&F===R)});const ee=R=>{if(R){if(S.single="",R[m.value.id]){const F=S.trans.findIndex(Y=>Y===R[m.value.id]);F!==-1&&S.trans.splice(F,1)}switch(R[m.value.type]){case c.value.user:return S.user.delete(R[m.value.id]);case c.value.role:return S.role.delete(R[m.value.id]);case c.value.post:return S.post.delete(R[m.value.id]);case c.value.group:return S.group.delete(R[m.value.id]);default:return}}},me=R=>{ee(R)},$=R=>{if(!N(R[m.value.id])){const F={...R};switch(R[m.value.type]){case c.value.user:return S.group.set(R[m.value.id],F);case c.value.role:return S.role.set(R[m.value.id],F);case c.value.post:return S.post.set(R[m.value.id],F);case c.value.group:return S.group.set(R[m.value.id],F);default:return}}},ce=R=>[c.value.group].includes(R[m.value.type])?R.hasOwnProperty("disabled"):!1;n.watch(()=>S.trans,R=>{if(!R.length)I.value.forEach(F=>{F.disabled=!1;try{l.multiple&&ee(F)}catch{}});else{const F=I.value.filter(K=>!R.includes(K[m.value.id]));for(const K of F)K.disabled=!1,l.multiple&&ee(K);const Y=I.value.filter(K=>R.includes(K[m.value.id]));for(const K of Y)K.disabled=ce(K),$(K)}},{deep:!0}),n.watch(()=>S.single,R=>{if(R){const F=I.value.find(Y=>Y[m.value.id]===R);F&&(S.user.clear(),S.role.clear(),S.post.clear(),S.group.clear(),S.trans=[],n.nextTick(()=>{$(F)}))}});const pe=R=>{i.value=R==null?void 0:R.elementId,w(),b.value.push(R)},Re=n.computed(()=>b.value.length),ie=(R,F)=>{!F&&!l.topLink||F!==Re.value-1&&(i.value=R==null?void 0:R.elementId,w(),b.value.splice(F+1))},M=n.computed(()=>l.chooseType.includes("role")&&l.chooseType.length===1),J=n.computed(()=>l.chooseType.includes("post")&&l.chooseType.length===1),G=n.ref(l.tabs[0]),H=n.ref(l.tabs[0]);n.watchEffect(()=>(H.value=M.value?l.tabs[1]:J.value?l.tabs[2]:G.value,H.value));const Z=()=>{S.user.clear(),S.role.clear(),S.post.clear(),S.group.clear(),S.trans=[],ve.value=[],Ae.value=[],G.value=l.tabs[0],H.value=l.tabs[0],r.value="",i.value=l.orgPid,b.value.splice(1,b.value.length),S.single="",y.value=[]},se=()=>{var R;x("ok",P._.cloneDeep({...E.value,sort:y.value})),x("update:modelValue",P._.cloneDeep(((R=E.value)==null?void 0:R.list)||[])),x("update:show",!1),Z()},ae=()=>{x("update:show",!1),Z()};e({handClear:Z,handRomeve:me,handDelete:ee});const le=n.computed(()=>{const R=B.value;return!!((R.includes("post")||R.includes("role"))&&R.length>1)}),ne=n.computed(()=>[{name:"group",label:"组织架构"},{name:"role",label:"角色列表"},{name:"post",label:"岗位列表"}].filter(R=>l.tabs.includes(R.name))),Me=n.computed(()=>`${typeof l.height=="string"?Number.parseInt(l.height):l.height}px`),Xe=()=>{l.multiple||(S.post.clear(),S.role.clear(),S.user.clear(),S.group.clear(),S.single="")},st=n.ref([]),Ue=(R,F)=>{l.multiple||(S.single="");const Y=l.multiple?R:[R];if(!Y.length){S.group.clear();return}Xe(),F.forEach(K=>{Y!=null&&Y.includes(K[m.value.id])?$(K):ee(K)})};n.watch(()=>E.value.groups.len,R=>{st.value=P._.cloneDeep(E.value.groups.list)});const ve=n.ref([]),Se=(R,F)=>{l.multiple||(S.single="");const Y=l.multiple?R:[R];if(!Y.length){S.role.clear();return}Xe(),F.forEach(K=>{Y!=null&&Y.includes(K[m.value.id])?$(K):ee(K)})};n.watch(()=>E.value.role.len,R=>{ve.value=P._.cloneDeep(E.value.role.list)});const Ae=n.ref([]),Oe=(R,F)=>{l.multiple||(S.single="");const Y=l.multiple?R:[R];if(!Y.length){S.post.clear();return}Xe(),F.forEach(K=>{Y!=null&&Y.includes(K[m.value.id])?$(K):ee(K)})};return n.watch(()=>E.value.post.len,R=>{Ae.value=P._.cloneDeep(E.value.post.list)}),n.watch(()=>r.value,R=>{C("")}),(R,F)=>{const Y=n.resolveComponent("el-tab-pane"),K=n.resolveComponent("el-tabs");return n.openBlock(),n.createBlock(n.unref(v.ElDialog),{modelValue:T.value,"onUpdate:modelValue":F[2]||(F[2]=oe=>T.value=oe),title:R.title,"destroy-on-close":"","close-on-click-modal":!1,"close-on-click-escape":!1,draggable:"","align-center":"",width:typeof R.width=="string"?R.width:`${R.width}%`,class:"p_p_picker-dialog","modal-class":"p_p_picker-dialog-modal-user",onClose:ae},{footer:n.withCtx(()=>[n.createElementVNode("span",Qb,[n.createVNode(n.unref(v.ElButton),{onClick:n.withModifiers(ae,["stop"])},{default:n.withCtx(()=>[n.createTextVNode("取消")]),_:1}),n.createVNode(n.unref(v.ElButton),{type:"primary",onClick:n.withModifiers(se,["stop"])},{default:n.withCtx(()=>[n.createTextVNode(" 确定 ")]),_:1})])]),default:n.withCtx(()=>[n.createElementVNode("div",{class:"dep-use-picker",style:n.normalizeStyle({height:Me.value})},[n.createElementVNode("div",zb,[n.createElementVNode("div",null,[n.createVNode(n.unref(v.ElInput),{modelValue:r.value,"onUpdate:modelValue":F[0]||(F[0]=oe=>r.value=oe),clearable:"",placeholder:R.placeholder,"suffix-icon":D2},null,8,["modelValue","placeholder"]),le.value?(n.openBlock(),n.createBlock(K,{key:0,modelValue:G.value,"onUpdate:modelValue":F[1]||(F[1]=oe=>G.value=oe),class:"ik-picker-tab"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(ne.value,oe=>(n.openBlock(),n.createBlock(Y,{label:oe.label,name:oe.name,key:oe.label},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):n.createCommentVNode("v-if",!0)]),n.createCommentVNode(" 过滤 "),H.value===n.unref(ln).group?(n.openBlock(),n.createElementBlock("div",Fb,[n.createCommentVNode(" 面包屑 全选 "),n.createVNode(n.unref(v.ElBreadcrumb),{separator:">",class:n.normalizeClass(["banner",{"top-unlink":!R.topLink}])},{default:n.withCtx(()=>[Re.value?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(n.unref(b),(oe,Te)=>(n.openBlock(),n.createBlock(n.unref(v.ElBreadcrumbItem),{key:oe[m.value.id],onClick:n.withModifiers(an=>ie(oe,Te),["stop"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(oe[m.value.name]),1)]),_:2},1032,["onClick"]))),128)):n.createCommentVNode("v-if",!0)]),_:1},8,["class"])])):n.createCommentVNode("v-if",!0),n.createCommentVNode(" 左侧列表 "),n.createCommentVNode(" 组织架构 "),H.value===n.unref(ln).group?n.withDirectives((n.openBlock(),n.createBlock(fb,{key:1,fixPropOpt:m.value,fixTypeOpt:c.value,list:g.value,max:R.max,multiple:R.multiple,"hand-list":st.value,imageBaseUrl:l.imageBaseUrl,emptyText:l.emptyText,onHandChild:pe,onChange:Ue},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText"])),[[n.unref(v.vLoading),u.value]]):H.value===n.unref(ln).role?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createCommentVNode(" 角色 "),n.withDirectives(n.createVNode(Rb,{fixPropOpt:m.value,fixTypeOpt:c.value,list:d.value,max:R.max,multiple:R.multiple,"hand-list":ve.value,imageBaseUrl:l.imageBaseUrl,emptyText:l.emptyText,onChange:Se},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText"]),[[n.unref(v.vLoading),u.value]])],64)):H.value===n.unref(ln).post?(n.openBlock(),n.createElementBlock(n.Fragment,{key:3},[n.createCommentVNode(" 岗位 "),n.withDirectives(n.createVNode(Cb,{fixPropOpt:m.value,fixTypeOpt:c.value,list:f.value,max:R.max,multiple:R.multiple,"hand-list":Ae.value,imageBaseUrl:l.imageBaseUrl,emptyText:l.emptyText,onChange:Oe},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText"]),[[n.unref(v.vLoading),u.value]])],64)):n.createCommentVNode("v-if",!0)]),$b,n.createCommentVNode(" 已选列表 "),n.createElementVNode("div",Hb,[n.createElementVNode("div",Ub,[jb,n.createVNode(n.unref(v.ElButton),{type:"primary",link:"",onClick:n.withModifiers(Z,["stop"])},{default:n.withCtx(()=>[n.createTextVNode("清空")]),_:1})]),n.createElementVNode("ul",Wb,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(y.value,oe=>(n.openBlock(),n.createElementBlock("li",Gb,[n.createElementVNode("div",qb,[n.createCommentVNode(" icon前缀 "),n.createElementVNode("div",Yb,[n.createVNode(Ct,{fixTypeOpt:c.value,fixPropOpt:m.value,element:oe,imageBaseUrl:l.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),n.createElementVNode("span",null,n.toDisplayString(oe[m.value.name]),1)]),n.withDirectives(n.createVNode(I2,{class:"close",onClick:n.withModifiers(Te=>me(oe),["stop"])},null,8,["onClick"]),[[n.vShow,!(oe!=null&&oe.readonly)]])]))),256))])])],4)]),_:1},8,["modelValue","title","width"])}}}),CE="",Xb=de(Zb),wE="",Kb=de(n.defineComponent({name:"IkBtnContent",components:{MoreFilled:ql},props:{num:{type:Number,default:3},trigger:{type:String,default:"click"},placement:{type:String,default:"bottom"}},setup(t,{slots:e,attrs:o}){const l=n.ref(null),r=n.ref(0),i=a=>a==null?void 0:a.filter(s=>typeof s.children!="string");return n.watchEffect(()=>{var a,s,d;l.value=(s=(a=e.default)==null?void 0:a.call(e))==null?void 0:s.filter(f=>typeof f.children!="string"),r.value=((d=l.value)==null?void 0:d.length)||0}),()=>{var a,s;return n.createVNode("div",{class:"flex"},[(s=i((a=e.default)==null?void 0:a.call(e)))==null?void 0:s.map((d,f)=>f+1>t.num?null:d),r.value>t.num?n.createVNode(n.resolveComponent("el-dropdown"),{trigger:t.trigger,"popper-class":"gl-btn-content"},{default:()=>n.createVNode(n.resolveComponent("el-icon"),{title:"更多",class:"ml-[12px] more-operate"},{default:()=>[n.createVNode(ql,null,null)]}),dropdown:()=>n.createVNode(n.resolveComponent("el-dropdown-menu"),null,{default:()=>{var d,f;return[r.value>t.num?(f=i((d=e.default)==null?void 0:d.call(e)))==null?void 0:f.map((u,g)=>g<t.num?null:n.createVNode(n.resolveComponent("el-dropdown-item"),null,{default:()=>{var m,c;return[n.withDirectives(n.createVNode(n.resolveComponent("el-button"),n.mergeProps(u==null?void 0:u.props,{link:!0}),{default:()=>{var y,p;return[((y=u==null?void 0:u.props)==null?void 0:y.title)||((p=u==null?void 0:u.props)==null?void 0:p.label)]}}),[[n.resolveDirective("role"),(c=(m=u==null?void 0:u.dirs)==null?void 0:m[0])==null?void 0:c.value]])]}})):null]}})}):null])}}})),Jb=n.defineComponent({__name:"index",props:{title:{type:String,default:""},type:{type:String,default:"success"},color:{type:String,default:""},background:{type:String,default:""},effect:{type:String,default:"light"},circle:{type:Boolean,default:!1},circleW:{type:Number,default:8},circleH:{type:Number,default:8},borderWidth:{type:Number,default:1},borderType:{type:String,default:"solid"}},setup(t){const e=t,o=n.computed(()=>e.type?"":{color:e.color,backgroundColor:e.background,borderColor:e.color});return(l,r)=>{const i=n.resolveComponent("el-tag");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createCommentVNode(' <div :style="{ border: `${borderWidth}px ${borderType} ${comColor}` }">\r\n <span :style="{ backgroundColor: comColor }"></span>\r\n <p>{{ title }}</p>\r\n </div> '),n.createVNode(i,{effect:t.effect,class:"ik-statu-tag",type:t.type,style:n.normalizeStyle(o.value)},{default:n.withCtx(()=>[t.circle?(n.openBlock(),n.createElementBlock("span",{key:0,class:"inline-block rounded-full",style:n.normalizeStyle({backgroundColor:`var(--el-color-${t.type})`,width:`${t.circleW}px`,height:`${t.circleH}px`})},null,4)):n.createCommentVNode("v-if",!0),n.createTextVNode(" "+n.toDisplayString(t.title),1)]),_:1},8,["effect","type","style"])],2112)}}}),AE="",e4=de(X(Jb,[["__scopeId","data-v-241ac18b"]])),t4=de(n.defineComponent({__name:"index",props:{effect:{type:String,default:"dark"},content:{type:String,default:""},placement:{type:String,default:"bottom-start"}},setup(t){const e=t,o=n.computed(()=>e.effect);return(l,r)=>{const i=n.resolveComponent("el-tooltip");return n.openBlock(),n.createBlock(i,{class:"gl-tooltip",effect:o.value,content:t.content,placement:t.placement,enterable:!1},{default:n.withCtx(()=>[n.renderSlot(l.$slots,"default")]),_:3},8,["effect","content","placement"])}}})),n4=(t=>(n.pushScopeId("data-v-b848b0c7"),t=t(),n.popScopeId(),t))(()=>n.createElementVNode("i",{class:"ik ik-shezhi"},null,-1)),o4={class:"check-right"},l4={class:"dialog-footer"},r4=n.defineComponent({__name:"IkBtnSetting",props:n.mergeModels({list:{type:Array,default:()=>[]},tab:{type:[String,Number],default:""},type:{type:String,default:"primary"},btnType:{type:String,default:"icon"},circle:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},role:{type:String,default:""},config:{type:Object,default:()=>({t:t=>t,dialog:{l:"700px",sl:"600px"},path:"user_0",user:{id:"111"}})}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:n.mergeModels(["sort"],["update:modelValue"]),setup(t,{emit:e}){const o=t,l=e,r=n.useModel(t,"modelValue"),{t:i,dialog:a,path:s,user:d}=o.config,f=n.computed(()=>`${d==null?void 0:d.id}_${s}${o.tab!==""?`_${o.tab}`:""}`),u=n.ref([]),g=n.ref([]),m=n.ref([]),c=new Map,y=n.ref(!1),p=n.computed(()=>{const C=g.value.length&&g.value.length!==o.list.length;return!C&&g.value.length&&(y.value=!0),!!C}),h=C=>{var B;const E=P._.cloneDeep(m.value);E==null||E.forEach(I=>{var W;if(!g.value.length)m.value=[];else if(!g.value.includes(I==null?void 0:I.key)){const x=(W=m.value)==null?void 0:W.findIndex(T=>T.key===I.key);x!==-1&&m.value.splice(x,1),I.show=!1,c.set(I.key,I)}}),g.value.forEach(I=>{var x;if(((x=m.value)==null?void 0:x.findIndex(T=>(T==null?void 0:T.key)===I))===-1){const T=c.get(I);T&&(T.show=!0,m.value.push(T))}}),(B=m.value)!=null&&B.length||(m.value=P._.cloneDeep(o.list)),C===!0&&(l("sort",P._.cloneDeep(m.value)),r.value=P._.cloneDeep(m.value))},b=C=>{if(C)g.value=o.list.map(E=>E.key);else{const E=o.list.find(B=>!B.key||B.label==="操作");g.value=E?[E.key]:[]}h()},_=()=>{const C=P.ikStore.local.getItem(f.value);try{const E=P._.cloneDeep(o==null?void 0:o.list);if((!C||!(C!=null&&C.length))&&P.ikStore.local.setItem(f.value,E.map(({show:B,type:I,key:W,label:x,width:T,minWidth:z,align:ee})=>({show:B,key:W,type:I,label:x,width:T,minWidth:z,align:ee}))),u.value=[...(E==null?void 0:E.map(B=>(c.set(B.key,B),{...B,show:B.show||!1})))||[]],C){const B=C.filter(I=>I.show).map(I=>I.key);g.value=[...B]}else{const B=u.value.filter(I=>I.show);g.value=B.map(I=>I.key)}h(!0)}catch(E){console.info("error: ",E)}};_(),n.watch(()=>o.list,()=>{_()},{deep:!0});const w=n.ref(!1),S=()=>{w.value=!0},O=C=>{m.value=C},N=()=>{w.value=!1,P.ikStore.local.setItem(f.value,m.value.map(({show:C,key:E,label:B,value:I,width:W,minWidth:x,align:T})=>({show:C,key:E,label:B,value:I,width:W,minWidth:x,align:T}))),console.log("sortList ",m),l("sort",P._.cloneDeep(m.value)),r.value=P._.cloneDeep(m.value)};return(C,E)=>{const B=n.resolveComponent("el-button"),I=n.resolveComponent("el-checkbox"),W=n.resolveComponent("el-checkbox-group"),x=n.resolveComponent("el-dialog"),T=n.resolveDirective("role");return n.openBlock(),n.createElementBlock(n.Fragment,null,[t.btnType==="button"?n.withDirectives((n.openBlock(),n.createBlock(B,n.mergeProps({key:0},C.$attrs,{circle:t.circle,type:t.type,style:{minWidth:t.circle?"40px":"",minHeight:t.circle?"40px":""},onClick:S}),n.createSlots({icon:n.withCtx(()=>[n4]),_:2},[t.circle?void 0:{name:"default",fn:n.withCtx(()=>[n.createCommentVNode(' {{ t("action.setting") }} '),n.createTextVNode(" "+n.toDisplayString(n.unref(i)("设置")),1)]),key:"0"}]),1040,["circle","type","style"])),[[T,C.$props.role]]):n.createCommentVNode("v-if",!0),t.btnType==="icon"?n.withDirectives((n.openBlock(),n.createBlock(n.unref(_e),n.mergeProps({key:1,name:"iksvg_shezhi-daohang","show-bg":"",size:"default"},C.$attrs,{onClick:S}),null,16)),[[T,C.$props.role]]):n.createCommentVNode("v-if",!0),n.createVNode(x,{modelValue:w.value,"onUpdate:modelValue":E[3]||(E[3]=z=>w.value=z),draggable:"",width:t.inline?n.unref(a).l:n.unref(a).sl,"close-on-click-modal":!1,"close-on-press-escape":!1,title:"显示字段","append-to-body":"",onOpen:_},{footer:n.withCtx(()=>[n.createElementVNode("div",l4,[n.createVNode(B,{onClick:E[2]||(E[2]=z=>w.value=!1)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(i)("关闭"))+" ",1),n.createCommentVNode(' {{ t("action.close") }} ')]),_:1}),n.createVNode(B,{type:"primary",disabled:m.value.length<2,onClick:N},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.value.length<2?"至少选择一个字段":n.unref(i)("确定")),1)]),_:1},8,["disabled"])])]),default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["view-fields",[t.inline?null:"un-inline"]])},[n.createElementVNode("div",{style:n.normalizeStyle({flex:t.inline?2:1})},[n.createVNode(I,{modelValue:y.value,"onUpdate:modelValue":E[0]||(E[0]=z=>y.value=z),class:"single-line",indeterminate:p.value,onChange:b},{default:n.withCtx(()=>[n.createTextVNode(" 全选 ")]),_:1},8,["modelValue","indeterminate"]),n.createVNode(W,{modelValue:g.value,"onUpdate:modelValue":E[1]||(E[1]=z=>g.value=z),onChange:h},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(u.value,z=>(n.openBlock(),n.createBlock(I,{key:z.key,disabled:!z.key,label:z.key},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(z.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:1},8,["modelValue"])],4),n.createElementVNode("div",o4,[n.createVNode(n.unref(js),{list:m.value,"item-style":{bottom:4},onChange:O},null,8,["list"])])],2)]),_:1},8,["modelValue","width"])],64)}}}),VE="",Hs=de(X(r4,[["__scopeId","data-v-b848b0c7"]])),Us={animation:200,group:"gl",disabled:!1,ghostClass:"ghost",sort:!0,delay:100,showIcon:!0,itemStyle:{radius:4,bottom:8,background:"var(--ik-sub-sidebar-menu-bg)"}},i4={list:{required:!0,type:Array,default:[]},group:{type:String,default:"draggable"},sort:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},delay:{type:Number,default:0},touchStartThreshold:{type:Number,default:0},disabled:{type:Boolean,default:!1},animation:{type:Number,default:200},handle:{type:String,default:".mover"},filter:{type:String,default:".unmover"},draggable:{type:String,default:".item"},ghostClass:{type:String,default:"ghost"},chosenClass:{type:String,default:"chosen"},dragClass:{type:String,default:"drag"},forceFallback:{type:Boolean,default:!1},fallbackClass:{type:String,default:"fallback"},fallbackOnBody:{type:Boolean,default:!1},fallbackTolerance:{type:Number,default:8},scroll:{type:Boolean,default:!0},scrollFn:{type:Function,default:()=>{}},scrollFensitivity:{type:Number,default:30},scrollSpeed:{type:Number,default:30},itemClass:{type:String,default:""},groupClass:{type:String,default:""},itemStyle:{type:Object,default:()=>({radius:{type:Number,default:30},bottom:{type:Number,default:8},background:{type:String,default:"var(--ik-sub-sidebar-menu-bg)"}})}},a4=n.defineComponent({__name:"IkDragList",props:i4,emits:["change"],setup(t,{emit:e}){const o=t,l=e,r=n.ref([]);n.watch(()=>o.list,f=>{r.value=P._.cloneDeep(f)},{immediate:!0,deep:!0});const i=n.computed(()=>({...Us,...o,itemStyle:{...Us.itemStyle,...o.itemStyle}})),a=n.ref(!1),s=()=>{a.value=!0},d=f=>{a.value=!1;const u=o.list[f.oldIndex];l("change",r.value,{...u,oldIndex:f.oldIndex,newIndex:f.newIndex})};return(f,u)=>{const g=n.resolveComponent("el-icon");return n.openBlock(),n.createBlock(n.unref(Pl),{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=m=>r.value=m),class:n.normalizeClass(["list-group",[i.value.groupClass]]),tag:"ul",attrs:i.value,animation:i.value.animation,group:i.value.group,disabled:i.value.disabled,"ghost-class":i.value.ghostClass,"force-fallback":i.value.ghostClass,"item-key":"order",onStart:s,onEnd:d},{item:n.withCtx(({element:m})=>[n.createVNode(n.Transition,{type:"transition",name:"flip-list"},{default:n.withCtx(()=>[f.$slots.item?n.renderSlot(f.$slots,"item",{key:0,item:m},void 0,!0):(n.openBlock(),n.createElementBlock("li",{key:1,class:n.normalizeClass(["list-group-item",[i.value.itemClass]]),style:n.normalizeStyle({borderRadius:`${i.value.itemStyle.radius}px`,marginBottom:`${i.value.itemStyle.bottom}px`,backgroundColor:`${i.value.itemStyle.background}`})},[i.value.showIcon&&!f.$slots.icon?(n.openBlock(),n.createBlock(g,{key:0},{default:n.withCtx(()=>[n.createVNode(n.unref(_c))]),_:1})):n.renderSlot(f.$slots,"icon",{key:1},void 0,!0),n.createTextVNode(" "+n.toDisplayString(m.label),1)],6))]),_:2},1024)]),_:3},8,["modelValue","class","attrs","animation","group","disabled","ghost-class","force-fallback"])}}}),TE="",js=de(X(a4,[["__scopeId","data-v-d2a34939"]])),Ws={id:"4383166",name:"中台-双色图标",font_family:"iconfont",css_prefix_text:"iksvg_",description:"",glyphs:[{icon_id:"1511006",name:"星星",font_class:"xingxing",unicode:"e602",unicode_decimal:58882},{icon_id:"9591222",name:"收藏",font_class:"shoucang",unicode:"e601",unicode_decimal:58881},{icon_id:"15640548",name:"取消收藏",font_class:"quxiaoshoucang",unicode:"e621",unicode_decimal:58913},{icon_id:"35556399",name:"取消固定",font_class:"quxiaoguding",unicode:"e6f6",unicode_decimal:59126},{icon_id:"36537322",name:"固定",font_class:"guding",unicode:"e6c7",unicode_decimal:59079},{icon_id:"27732960",name:"月亮",font_class:"yueliang",unicode:"e689",unicode_decimal:59017},{icon_id:"38956241",name:"消息模板",font_class:"xiaoximoban",unicode:"e6d7",unicode_decimal:59095},{icon_id:"38953952",name:"组织管理",font_class:"zuzhiguanli",unicode:"e6d6",unicode_decimal:59094},{icon_id:"38921721",name:"流程表单",font_class:"liuchengbiaodan",unicode:"e6ce",unicode_decimal:59086},{icon_id:"38153077",name:"设备管理 2",font_class:"a-shebeiguanli2",unicode:"e750",unicode_decimal:59216},{icon_id:"38153087",name:"巡线系统",font_class:"xunxianxitong",unicode:"e751",unicode_decimal:59217},{icon_id:"38153082",name:"隐患报表",font_class:"yinhuanbaobiao",unicode:"e752",unicode_decimal:59218},{icon_id:"38153079",name:"第三方施工管理",font_class:"disanfangshigongguanli",unicode:"e753",unicode_decimal:59219},{icon_id:"38153080",name:"考勤规则",font_class:"kaoqinguize",unicode:"e754",unicode_decimal:59220},{icon_id:"38153074",name:"人员监控",font_class:"renyuanjiankong",unicode:"e755",unicode_decimal:59221},{icon_id:"38153081",name:"应急预案管理",font_class:"yingjiyuanguanli",unicode:"e756",unicode_decimal:59222},{icon_id:"38153078",name:"维护保养",font_class:"weihubaoyang",unicode:"e757",unicode_decimal:59223},{icon_id:"38153075",name:"事故管理",font_class:"shiguguanli",unicode:"e758",unicode_decimal:59224},{icon_id:"38153076",name:"审批配置、巡线计划",font_class:"xunxianjihua1",unicode:"e759",unicode_decimal:59225},{icon_id:"38153073",name:"考勤统计",font_class:"kaoqintongji",unicode:"e75a",unicode_decimal:59226},{icon_id:"38153097",name:"隐患管理",font_class:"yinhuanguanli1",unicode:"e742",unicode_decimal:59202},{icon_id:"38153096",name:"型号管理",font_class:"xinghaoguanli",unicode:"e743",unicode_decimal:59203},{icon_id:"38153095",name:"设备管理",font_class:"shebeiguanli1",unicode:"e744",unicode_decimal:59204},{icon_id:"38153092",name:"证照管理",font_class:"zhengzhaoguanli",unicode:"e745",unicode_decimal:59205},{icon_id:"38153094",name:"SCAD场站监控",font_class:"SCADchangzhanjiankong",unicode:"e746",unicode_decimal:59206},{icon_id:"38153093",name:"巡线报表",font_class:"xunxianbaobiao",unicode:"e747",unicode_decimal:59207},{icon_id:"38153085",name:"视频管理",font_class:"shipinguanli",unicode:"e748",unicode_decimal:59208},{icon_id:"38153090",name:"证件管理",font_class:"zhengjianguanli",unicode:"e749",unicode_decimal:59209},{icon_id:"38153091",name:"维护报表",font_class:"weihubaobiao",unicode:"e74a",unicode_decimal:59210},{icon_id:"38153084",name:"视频配置",font_class:"shipinpeizhi",unicode:"e74b",unicode_decimal:59211},{icon_id:"38153089",name:"推送记录、预案管理",font_class:"yuanguanli",unicode:"e74c",unicode_decimal:59212},{icon_id:"38153088",name:"视频监控",font_class:"shipinjiankong",unicode:"e74d",unicode_decimal:59213},{icon_id:"38153083",name:"GIS管网系统",font_class:"GISguanwangxitong",unicode:"e74e",unicode_decimal:59214},{icon_id:"38153086",name:"车辆轨迹",font_class:"cheliangguiji",unicode:"e74f",unicode_decimal:59215},{icon_id:"37811065",name:"停用",font_class:"tingyong1",unicode:"e776",unicode_decimal:59254},{icon_id:"37810944",name:"停用",font_class:"tingyong",unicode:"e775",unicode_decimal:59253},{icon_id:"37809704",name:"启用",font_class:"qiyong",unicode:"e772",unicode_decimal:59250},{icon_id:"37768743",name:"复制",font_class:"fuzhi",unicode:"e741",unicode_decimal:59201},{icon_id:"37648812",name:"隐藏",font_class:"yincang",unicode:"e740",unicode_decimal:59200},{icon_id:"37428721",name:"知识库",font_class:"zhishiku",unicode:"e739",unicode_decimal:59193},{icon_id:"37428720",name:"巡线计划",font_class:"xunxianjihua",unicode:"e73a",unicode_decimal:59194},{icon_id:"37428719",name:"维保管理",font_class:"weibaoguanli",unicode:"e73b",unicode_decimal:59195},{icon_id:"37428718",name:"系统管理",font_class:"xitongguanli1",unicode:"e73c",unicode_decimal:59196},{icon_id:"37428717",name:"隐患管理",font_class:"yinhuanguanli",unicode:"e73d",unicode_decimal:59197},{icon_id:"37428716",name:"设备管理",font_class:"shebeiguanli",unicode:"e73e",unicode_decimal:59198},{icon_id:"37428715",name:"考勤管理",font_class:"kaoqinguanli",unicode:"e73f",unicode_decimal:59199},{icon_id:"37033301",name:"卡片",font_class:"kapian",unicode:"e738",unicode_decimal:59192},{icon_id:"37033317",name:"功能设计",font_class:"gongnengsheji",unicode:"e72c",unicode_decimal:59180},{icon_id:"37033319",name:"用户管理",font_class:"yonghuguanli",unicode:"e72d",unicode_decimal:59181},{icon_id:"37033316",name:"审批列表",font_class:"shenpiliebiao",unicode:"e72e",unicode_decimal:59182},{icon_id:"37033311",name:"菜单管理",font_class:"caidanguanli",unicode:"e72f",unicode_decimal:59183},{icon_id:"37033313",name:"参数管理",font_class:"canshuguanli",unicode:"e730",unicode_decimal:59184},{icon_id:"37033314",name:"日志管理",font_class:"rizhiguanli",unicode:"e731",unicode_decimal:59185},{icon_id:"37033315",name:"数据源管理",font_class:"shujuyuanguanli",unicode:"e732",unicode_decimal:59186},{icon_id:"37033310",name:"审批中心",font_class:"shenpizhongxin",unicode:"e733",unicode_decimal:59187},{icon_id:"37033312",name:"角色管理",font_class:"jiaoseguanli",unicode:"e734",unicode_decimal:59188},{icon_id:"37033304",name:"二维码",font_class:"erweima",unicode:"e735",unicode_decimal:59189},{icon_id:"37033303",name:"地址",font_class:"dizhi",unicode:"e736",unicode_decimal:59190},{icon_id:"37033302",name:"GIS",font_class:"GIS",unicode:"e737",unicode_decimal:59191},{icon_id:"37033323",name:"开发工具",font_class:"kaifagongju",unicode:"e6aa",unicode_decimal:59050},{icon_id:"37033324",name:"字典管理",font_class:"zidianguanli",unicode:"e6ae",unicode_decimal:59054},{icon_id:"37033325",name:"租户管理",font_class:"zuhuguanli",unicode:"e6bc",unicode_decimal:59068},{icon_id:"37033322",name:"岗位管理",font_class:"gangweiguanli",unicode:"e728",unicode_decimal:59176},{icon_id:"37033321",name:"系统管理",font_class:"xitongguanli",unicode:"e729",unicode_decimal:59177},{icon_id:"37033320",name:"部门管理",font_class:"bumenguanli",unicode:"e72a",unicode_decimal:59178},{icon_id:"37033318",name:"设置",font_class:"shenpipeizhi",unicode:"e72b",unicode_decimal:59179},{icon_id:"37012624",name:"通用2",font_class:"tongyong2",unicode:"e723",unicode_decimal:59171},{icon_id:"37012622",name:"通用1",font_class:"tongyong1",unicode:"e724",unicode_decimal:59172},{icon_id:"37012623",name:"通用3",font_class:"tongyong3",unicode:"e725",unicode_decimal:59173},{icon_id:"37012621",name:"通用5",font_class:"tongyong5",unicode:"e726",unicode_decimal:59174},{icon_id:"37012620",name:"通用4",font_class:"tongyong4",unicode:"e727",unicode_decimal:59175},{icon_id:"1268",name:"减",font_class:"jian",unicode:"e600",unicode_decimal:58880},{icon_id:"36715193",name:"减-copy",font_class:"jian-copy",unicode:"e722",unicode_decimal:59170},{icon_id:"36651388",name:"评论",font_class:"pinglun",unicode:"e717",unicode_decimal:59159},{icon_id:"36651387",name:"拒绝",font_class:"jujue",unicode:"e718",unicode_decimal:59160},{icon_id:"36651383",name:"同意",font_class:"tongyi",unicode:"e719",unicode_decimal:59161},{icon_id:"36651384",name:"发起",font_class:"faqi",unicode:"e71a",unicode_decimal:59162},{icon_id:"36651382",name:"退回",font_class:"tuihui",unicode:"e71b",unicode_decimal:59163},{icon_id:"36651385",name:"加签",font_class:"jiaqian",unicode:"e71c",unicode_decimal:59164},{icon_id:"36651386",name:"转交",font_class:"zhuanjiao",unicode:"e71d",unicode_decimal:59165},{icon_id:"36651381",name:"等待",font_class:"dengdai",unicode:"e71e",unicode_decimal:59166},{icon_id:"36649809",name:"中英文-导航",font_class:"zhongyingwen-daohang",unicode:"e6d5",unicode_decimal:59093},{icon_id:"36649527",name:"全屏-导航",font_class:"quanping-daohang",unicode:"e6d0",unicode_decimal:59088},{icon_id:"36649526",name:"消息-导航",font_class:"xiaoxi-daohang",unicode:"e6d1",unicode_decimal:59089},{icon_id:"36649523",name:"搜索-导航",font_class:"sousuo-daohang",unicode:"e6d2",unicode_decimal:59090},{icon_id:"36649524",name:"刷新-导航",font_class:"shuaxin-daohang",unicode:"e6d3",unicode_decimal:59091},{icon_id:"36649525",name:"切换-导航",font_class:"qiehuan-daohang",unicode:"e6d4",unicode_decimal:59092},{icon_id:"36649529",name:"太阳-导航",font_class:"taiyang-daohang",unicode:"e679",unicode_decimal:59001},{icon_id:"36649528",name:"设置-导航",font_class:"shezhi-daohang",unicode:"e6cf",unicode_decimal:59087},{icon_id:"36058666",name:"更多",font_class:"gengduo1",unicode:"e6be",unicode_decimal:59070},{icon_id:"36058667",name:"上移",font_class:"shangyi",unicode:"e6bf",unicode_decimal:59071},{icon_id:"36058668",name:"关闭备份",font_class:"guanbibeifen",unicode:"e6c0",unicode_decimal:59072},{icon_id:"36058669",name:"下移",font_class:"xiayi",unicode:"e6c1",unicode_decimal:59073},{icon_id:"36058670",name:"右移",font_class:"youyi",unicode:"e6c2",unicode_decimal:59074},{icon_id:"36058671",name:"展开",font_class:"zhankai",unicode:"e6c3",unicode_decimal:59075},{icon_id:"36058672",name:"返回",font_class:"fanhui",unicode:"e6c4",unicode_decimal:59076},{icon_id:"36058673",name:"关闭",font_class:"guanbi",unicode:"e6c5",unicode_decimal:59077},{icon_id:"36058674",name:"左移",font_class:"zuoyi",unicode:"e6c6",unicode_decimal:59078},{icon_id:"36058676",name:"菜单展开",font_class:"caidanzhankai",unicode:"e6c8",unicode_decimal:59080},{icon_id:"36058677",name:"刷新",font_class:"shuaxin2",unicode:"e6c9",unicode_decimal:59081},{icon_id:"36058678",name:"菜单收起",font_class:"caidanshouqi",unicode:"e6ca",unicode_decimal:59082},{icon_id:"36058679",name:"重置",font_class:"zhongzhi1",unicode:"e6cb",unicode_decimal:59083},{icon_id:"36058680",name:"行高设置",font_class:"hanggaoshezhi",unicode:"e6cc",unicode_decimal:59084},{icon_id:"36058554",name:"电脑",font_class:"diannao",unicode:"e6b6",unicode_decimal:59062},{icon_id:"36058392",name:"时间",font_class:"shijian",unicode:"e6a8",unicode_decimal:59048},{icon_id:"36058393",name:"日历",font_class:"rili1",unicode:"e6a9",unicode_decimal:59049},{icon_id:"36058395",name:"解锁",font_class:"jiesuo",unicode:"e6ab",unicode_decimal:59051},{icon_id:"36058396",name:"全屏",font_class:"quanping",unicode:"e6ac",unicode_decimal:59052},{icon_id:"36058397",name:"汽车",font_class:"qiche",unicode:"e6ad",unicode_decimal:59053},{icon_id:"36058399",name:"列表",font_class:"liebiao",unicode:"e6af",unicode_decimal:59055},{icon_id:"36058400",name:"播放",font_class:"bofang",unicode:"e6b0",unicode_decimal:59056},{icon_id:"36058401",name:"暂停",font_class:"zanting",unicode:"e6b1",unicode_decimal:59057},{icon_id:"36058402",name:"返回顶部",font_class:"fanhuidingbu",unicode:"e6b2",unicode_decimal:59058},{icon_id:"36058403",name:"锁屏",font_class:"suoping",unicode:"e6b3",unicode_decimal:59059},{icon_id:"36058404",name:"归档",font_class:"guidang",unicode:"e6b4",unicode_decimal:59060},{icon_id:"36058405",name:"飞机",font_class:"feiji",unicode:"e6b5",unicode_decimal:59061},{icon_id:"36058407",name:"足迹",font_class:"zuji",unicode:"e6b7",unicode_decimal:59063},{icon_id:"36058408",name:"退出全屏",font_class:"tuichuquanping",unicode:"e6b8",unicode_decimal:59064},{icon_id:"36058409",name:"审核",font_class:"shenhe",unicode:"e6b9",unicode_decimal:59065},{icon_id:"36058410",name:"电话",font_class:"dianhua",unicode:"e6ba",unicode_decimal:59066},{icon_id:"36058411",name:"个人消息、信息",font_class:"xinxi1",unicode:"e6bb",unicode_decimal:59067},{icon_id:"36058413",name:"手机",font_class:"shouji",unicode:"e6bd",unicode_decimal:59069},{icon_id:"36058296",name:"登出",font_class:"dengchu1",unicode:"e6a7",unicode_decimal:59047},{icon_id:"36057796",name:"消息通知",font_class:"xiaoxitongzhi",unicode:"e68f",unicode_decimal:59023},{icon_id:"36057797",name:"详情",font_class:"xiangqing",unicode:"e690",unicode_decimal:59024},{icon_id:"36057798",name:"用户",font_class:"yonghu1",unicode:"e691",unicode_decimal:59025},{icon_id:"36057799",name:"表单",font_class:"biaodan",unicode:"e692",unicode_decimal:59026},{icon_id:"36057800",name:"主页",font_class:"zhuye",unicode:"e693",unicode_decimal:59027},{icon_id:"36057801",name:"成功",font_class:"chenggong",unicode:"e694",unicode_decimal:59028},{icon_id:"36057802",name:"登录",font_class:"denglu",unicode:"e695",unicode_decimal:59029},{icon_id:"36057803",name:"仪表盘",font_class:"yibiaopan",unicode:"e696",unicode_decimal:59030},{icon_id:"36057804",name:"校验码",font_class:"xiaoyanma",unicode:"e697",unicode_decimal:59031},{icon_id:"36057805",name:"文本",font_class:"wenben",unicode:"e698",unicode_decimal:59032},{icon_id:"36057806",name:"警告",font_class:"jinggao",unicode:"e699",unicode_decimal:59033},{icon_id:"36057807",name:"未知文件",font_class:"weizhiwenjian",unicode:"e69a",unicode_decimal:59034},{icon_id:"36057808",name:"登出",font_class:"dengchu",unicode:"e69b",unicode_decimal:59035},{icon_id:"36057809",name:"excel",font_class:"excel",unicode:"e69c",unicode_decimal:59036},{icon_id:"36057810",name:"图片",font_class:"tupian",unicode:"e69d",unicode_decimal:59037},{icon_id:"36057811",name:"失败",font_class:"shibai",unicode:"e69e",unicode_decimal:59038},{icon_id:"36057812",name:"ppt",font_class:"ppt",unicode:"e69f",unicode_decimal:59039},{icon_id:"36057813",name:"音乐",font_class:"yinle",unicode:"e6a0",unicode_decimal:59040},{icon_id:"36057814",name:"压缩包",font_class:"yasuobao",unicode:"e6a1",unicode_decimal:59041},{icon_id:"36057815",name:"word",font_class:"word",unicode:"e6a2",unicode_decimal:59042},{icon_id:"36057816",name:"mov",font_class:"mov",unicode:"e6a3",unicode_decimal:59043},{icon_id:"36057817",name:"zip",font_class:"zip",unicode:"e6a4",unicode_decimal:59044},{icon_id:"36057818",name:"密码",font_class:"mima",unicode:"e6a5",unicode_decimal:59045},{icon_id:"36057819",name:"pdf",font_class:"pdf",unicode:"e6a6",unicode_decimal:59046},{icon_id:"36057137",name:"点赞",font_class:"dianzan",unicode:"e674",unicode_decimal:58996},{icon_id:"36057139",name:"文件夹",font_class:"wenjianjia",unicode:"e67a",unicode_decimal:59002},{icon_id:"36057140",name:"删除",font_class:"shanchu1",unicode:"e67b",unicode_decimal:59003},{icon_id:"36057141",name:"分享",font_class:"fenxiang",unicode:"e67c",unicode_decimal:59004},{icon_id:"36057143",name:"下载",font_class:"xiazai1",unicode:"e67e",unicode_decimal:59006},{icon_id:"36057145",name:"查询",font_class:"chaxun",unicode:"e680",unicode_decimal:59008},{icon_id:"36057146",name:"上传",font_class:"shangchuan",unicode:"e681",unicode_decimal:59009},{icon_id:"36057147",name:"关注",font_class:"guanzhu",unicode:"e682",unicode_decimal:59010},{icon_id:"36057148",name:"功能导航",font_class:"gongnengdaohang",unicode:"e683",unicode_decimal:59011},{icon_id:"36057150",name:"提示说明",font_class:"tishishuoming",unicode:"e685",unicode_decimal:59013},{icon_id:"36057151",name:"统计分析",font_class:"tongjifenxi",unicode:"e686",unicode_decimal:59014},{icon_id:"36057152",name:"导出",font_class:"daochu",unicode:"e687",unicode_decimal:59015},{icon_id:"36057153",name:"预览",font_class:"yulan",unicode:"e688",unicode_decimal:59016},{icon_id:"36057155",name:"导入",font_class:"daoru",unicode:"e68a",unicode_decimal:59018},{icon_id:"36057156",name:"修改",font_class:"xiugai",unicode:"e68b",unicode_decimal:59019},{icon_id:"36057157",name:"显示字段",font_class:"xianshiziduan",unicode:"e68c",unicode_decimal:59020},{icon_id:"36057158",name:"帮助",font_class:"bangzhu",unicode:"e68d",unicode_decimal:59021},{icon_id:"36057159",name:"筛选",font_class:"shaixuan1",unicode:"e68e",unicode_decimal:59022},{icon_id:"35654050",name:"日历",font_class:"rili",unicode:"e672",unicode_decimal:58994},{icon_id:"35653603",name:"更多",font_class:"gengduo",unicode:"e673",unicode_decimal:58995},{icon_id:"35653605",name:"信息提示",font_class:"xinxitishi",unicode:"e675",unicode_decimal:58997},{icon_id:"35653606",name:"删除",font_class:"shanchu",unicode:"e676",unicode_decimal:58998},{icon_id:"35653607",name:"刷新",font_class:"shuaxin1",unicode:"e677",unicode_decimal:58999},{icon_id:"35653608",name:"编辑",font_class:"bianji",unicode:"e678",unicode_decimal:59e3},{icon_id:"35653535",name:"筛选",font_class:"shaixuan",unicode:"e66a",unicode_decimal:58986},{icon_id:"35653536",name:"搜索",font_class:"sousuo1",unicode:"e66b",unicode_decimal:58987},{icon_id:"35653537",name:"重置",font_class:"zhongzhi",unicode:"e66c",unicode_decimal:58988},{icon_id:"35653538",name:"收起",font_class:"shouqi1",unicode:"e66d",unicode_decimal:58989},{icon_id:"35653539",name:"新增",font_class:"xinzeng",unicode:"e66e",unicode_decimal:58990},{icon_id:"35653540",name:"行高",font_class:"hanggao",unicode:"e66f",unicode_decimal:58991},{icon_id:"35653541",name:"设置",font_class:"shezhi1",unicode:"e670",unicode_decimal:58992},{icon_id:"35653542",name:"刷新",font_class:"shuaxin",unicode:"e671",unicode_decimal:58993},{icon_id:"35649462",name:"下载",font_class:"xiazai",unicode:"e669",unicode_decimal:58985},{icon_id:"35649230",name:"动态设置",font_class:"dongtaishezhi",unicode:"e65a",unicode_decimal:58970},{icon_id:"35649231",name:"收起",font_class:"shouqi",unicode:"e65b",unicode_decimal:58971},{icon_id:"35649233",name:"排序",font_class:"paixu",unicode:"e65d",unicode_decimal:58973},{icon_id:"35649235",name:"消息模板、信息",font_class:"xinxi",unicode:"e65f",unicode_decimal:58975},{icon_id:"35649236",name:"用户",font_class:"yonghu",unicode:"e660",unicode_decimal:58976},{icon_id:"35649237",name:"白天",font_class:"baitian",unicode:"e661",unicode_decimal:58977},{icon_id:"35649238",name:"数据",font_class:"shuju",unicode:"e662",unicode_decimal:58978},{icon_id:"35649241",name:"关闭-页面标签",font_class:"guanbi-yemianbiaoqian",unicode:"e665",unicode_decimal:58981},{icon_id:"35649242",name:"资源列表",font_class:"ziyuanliebiao",unicode:"e666",unicode_decimal:58982},{icon_id:"35649243",name:"设置",font_class:"shezhi",unicode:"e667",unicode_decimal:58983},{icon_id:"35649244",name:"展开-导航",font_class:"zhankai-daohang",unicode:"e668",unicode_decimal:58984}]};var Gs;const qs=typeof window<"u",s4=t=>typeof t=="string",Ys=()=>{},c4=qs&&((Gs=window==null?void 0:window.navigator)==null?void 0:Gs.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Qs(t){return typeof t=="function"?t():n.unref(t)}function d4(t){return t}function u4(t){return n.getCurrentScope()?(n.onScopeDispose(t),!0):!1}function rn(t){var e;const o=Qs(t);return(e=o==null?void 0:o.$el)!=null?e:o}const Zs=qs?window:void 0;function Ll(...t){let e,o,l,r;if(s4(t[0])||Array.isArray(t[0])?([o,l,r]=t,e=Zs):[e,o,l,r]=t,!e)return Ys;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const i=[],a=()=>{i.forEach(u=>u()),i.length=0},s=(u,g,m,c)=>(u.addEventListener(g,m,c),()=>u.removeEventListener(g,m,c)),d=n.watch(()=>[rn(e),Qs(r)],([u,g])=>{a(),u&&i.push(...o.flatMap(m=>l.map(c=>s(u,m,c,g))))},{immediate:!0,flush:"post"}),f=()=>{d(),a()};return u4(f),f}let Xs=!1;function f4(t,e,o={}){const{window:l=Zs,ignore:r=[],capture:i=!0,detectIframe:a=!1}=o;if(!l)return;c4&&!Xs&&(Xs=!0,Array.from(l.document.body.children).forEach(m=>m.addEventListener("click",Ys)));let s=!0;const d=m=>r.some(c=>{if(typeof c=="string")return Array.from(l.document.querySelectorAll(c)).some(y=>y===m.target||m.composedPath().includes(y));{const y=rn(c);return y&&(m.target===y||m.composedPath().includes(y))}}),u=[Ll(l,"click",m=>{const c=rn(t);if(!(!c||c===m.target||m.composedPath().includes(c))){if(m.detail===0&&(s=!d(m)),!s){s=!0;return}e(m)}},{passive:!0,capture:i}),Ll(l,"pointerdown",m=>{const c=rn(t);c&&(s=!m.composedPath().includes(c)&&!d(m))},{passive:!0}),a&&Ll(l,"blur",m=>{var c;const y=rn(t);((c=l.document.activeElement)==null?void 0:c.tagName)==="IFRAME"&&!(y!=null&&y.contains(l.document.activeElement))&&e(m)})].filter(Boolean);return()=>u.forEach(m=>m())}const Ks=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Js="__vueuse_ssr_handlers__";Ks[Js]=Ks[Js]||{};var ec;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(ec||(ec={}));var p4=Object.defineProperty,tc=Object.getOwnPropertySymbols,h4=Object.prototype.hasOwnProperty,m4=Object.prototype.propertyIsEnumerable,nc=(t,e,o)=>e in t?p4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,g4=(t,e)=>{for(var o in e||(e={}))h4.call(e,o)&&nc(t,o,e[o]);if(tc)for(var o of tc(e))m4.call(e,o)&&nc(t,o,e[o]);return t};g4({linear:d4},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const y4=n.defineComponent({__name:"index",props:{modelValue:{type:String,default:""},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=n.useModel(t,"modelValue"),o=n.ref(!1);let l=[];const r=n.ref([]),i=n.ref(null);f4(i,g=>{var m,c;((m=g==null?void 0:g.target)==null?void 0:m.className)==="icon-list"||((c=g==null?void 0:g.target)==null?void 0:c.nodeName)==="INPUT"||(o.value=!1)}),function(){l=Ws.glyphs.map(m=>({...m,class:`${Ws.css_prefix_text}${m.font_class}`})),r.value=P._.cloneDeep(l)}();function a(g){e.value=g.class}function s(){e.value=""}const d=n.ref("");n.watch(d,g=>{r.value=l.filter(m=>{var c;return(c=m.name)==null?void 0:c.includes(g)})});const f=()=>{o.value=!0},u=()=>{o.value=!1};return(g,m)=>{const c=n.resolveComponent("el-input"),y=n.resolveComponent("el-popover");return n.openBlock(),n.createBlock(y,{title:"",visible:o.value,ref_key:"target",ref:i,"popper-class":"icon-picker-pop",placement:"top",width:600,trigger:"click"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"icon-picker-header line-height-[0] font-size-[var(--ik-margin-m-28)]",onClick:f},[e.value?(n.openBlock(),n.createBlock(n.unref(_e),{key:0,name:e.value},null,8,["name"])):(n.openBlock(),n.createBlock(n.unref(_e),{key:1,name:"iksvg_guanbibeifen",size:14})),e.value?(n.openBlock(),n.createBlock(n.unref(_e),{key:2,title:"删除图标",onClick:n.withModifiers(s,["stop"]),name:"iksvg_guanbi",warning:"",class:"icon-delete"})):n.createCommentVNode("v-if",!0)])]),default:n.withCtx(()=>[n.createVNode(c,{modelValue:d.value,"onUpdate:modelValue":m[0]||(m[0]=p=>d.value=p),clearable:"",placeholder:"输入图标名称检索"},{suffix:n.withCtx(()=>[n.createVNode(n.unref(_e),{name:"iksvg_sousuo-daohang"})]),_:1},8,["modelValue"]),n.createElementVNode("div",{class:"icon-list",onClick:n.withModifiers(u,["stop"])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value,p=>(n.openBlock(),n.createBlock(n.unref(_e),{title:p.name,key:p.name,name:p.class,onClick:h=>a(p)},null,8,["title","name","onClick"]))),128))])]),_:1},8,["visible"])}}}),$E="",HE="",_4=de(X(y4,[["__scopeId","data-v-84c73332"]])),b4=n.defineComponent({__name:"index",props:n.mergeModels({list:{type:Array},isButton:{type:Boolean,default:!0}},{modelValue:{type:String,default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=n.useModel(t,"modelValue");return(o,l)=>{const r=n.resolveComponent("el-radio-button"),i=n.resolveComponent("el-radio-group");return n.openBlock(),n.createBlock(i,{modelValue:e.value,"onUpdate:modelValue":l[0]||(l[0]=a=>e.value=a),class:"ik-radio-btn"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.list,(a,s)=>(n.openBlock(),n.createBlock(r,{key:s,label:a.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(a.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}}),jE="",k4=de(X(b4,[["__scopeId","data-v-186a428a"]]));Q.EAlign=Ql,Q.EDateType=Je,Q.EType=Pe,Q.Event=h6,Q.IKApprovalProcess=Iu,Q.IKApprovalProcessDetail=au,Q.IKCalendar=T3,Q.IKHorizontalStepBar=P3,Q.IKSearch=ed,Q.IKSearchHead=td,Q.IKVerticalStepBar=sd,Q.IkBtnContent=Kb,Q.IkBtnSetting=Hs,Q.IkDragList=js,Q.IkFullCalendar=is,Q.IkIconPicker=_4,Q.IkPageFull=e_,Q.IkPageTabs=Py,Q.IkPreviewFile=Y3,Q.IkPrintConfig=J1,Q.IkPrintView=o6,Q.IkRadioGroup=k4,Q.IkSchedule=My,Q.IkStatu=e4,Q.IkSvgIcon=_e,Q.IkTooltip=t4,Q.IkUploadFile=B1,Q.IkUploadImage=Q1,Q.IkingPicker=on,Q.IkingPickerUser=Xb,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})});
|
|
50
|
+
/> `)],64)}}}),yC="",jy=de(K(Uy,[["__scopeId","data-v-a4dd744c"]])),Wy={},Gy={t:"1672196428320",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3618",width:"200",height:"200"},qy=[o.createElementVNode("path",{d:"M384 250V134a70 70 0 0 0-70-70H134a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70z m-80-10H144v-96h160zM890 704H710a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70V774a70 70 0 0 0-70-70z m-10 176H720v-96h160zM890 384H710a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70V454a70 70 0 0 0-70-70z m-10 176H720v-96h160zM536 504H264v-80a40 40 0 0 0-40-40 40 40 0 0 0-40 40v432a40 40 0 0 0 40 40h312a40 40 0 0 0 40-40 40 40 0 0 0-40-40H264V584h272a40 40 0 0 0 40-40 40 40 0 0 0-40-40z","p-id":"3619","data-spm-anchor-id":"a313x.7781069.0.i2",class:"selected"},null,-1)];function Yy(t,e){return o.openBlock(),o.createElementBlock("svg",Gy,qy)}const pl=K(Wy,[["render",Yy]]),Qy={},Zy={t:"1672197639916",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"19012"},Ky=[o.createElementVNode("path",{d:"M863.1 255.1H551.3c-25.1 0-49.2-9.8-67.1-27.4l-75-73.4c-17.9-17.5-42-27.4-67.1-27.4H161c-53 0-96 43-96 96v512.8c0 53 43 96 96 96h702c53 0 96-43 96-96V351.1c0.1-53-42.9-96-95.9-96z m-31 161.1c0 17.7-14.3 32-32 32H224c-17.7 0-32-14.3-32-32v-0.1c0-17.7 14.3-32 32-32h576.1c17.7 0 32 14.3 32 32v0.1z","p-id":"19013"},null,-1)];function Xy(t,e){return o.openBlock(),o.createElementBlock("svg",Zy,Ky)}const Rn=K(Qy,[["render",Xy]]),Jy={},e2={t:"1672197222005",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"14755"},t2=[o.createElementVNode("path",{d:"M959.68 921.024c-15.232-181.696-139.648-331.968-307.84-386.624 70.464-45.632 117.248-124.48 117.248-214.464C769.152 178.624 654.208 64 512.512 64 370.752 64 255.808 178.624 255.808 319.936c0 89.984 46.784 168.832 117.248 214.528-168.192 54.592-292.544 204.864-307.84 386.56-0.192 3.456-0.64 5.44 0 10.176C66.496 947.2 80.64 960 96.704 960c17.92 0 32.064-14.656 32.064-32 16.704-197.76 182.272-351.936 383.744-351.936 201.408 0 366.976 154.176 383.68 351.936 0 17.344 14.144 32 32.064 32 16.064 0 30.208-12.8 31.424-28.8C960.32 926.464 959.936 924.416 959.68 921.024zM320 319.936C320 213.952 406.208 128 512.512 128s192.448 85.952 192.448 191.936c0 106.048-86.144 192-192.448 192S320 425.984 320 319.936z","p-id":"14756"},null,-1)];function n2(t,e){return o.openBlock(),o.createElementBlock("svg",e2,t2)}const Bo=K(Jy,[["render",n2]]),o2={},i2={t:"1672194715727",class:"icon",viewBox:"0 0 1024 1024",version:"1.1","p-id":"2667"},l2=[o.createElementVNode("path",{d:"M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",fill:"#5D5D5D","p-id":"2668"},null,-1),o.createElementVNode("path",{d:"M454.878536 70.285786C239.51556 70.285786 64.93236 244.847497 64.93236 460.231963c0 215.341486 174.583201 389.945153 389.945153 389.945153 215.362976 0 389.9472-174.603667 389.9472-389.945153C844.825736 244.847497 670.241512 70.285786 454.878536 70.285786zM454.878536 805.611108c-190.750415 0-345.381192-154.626683-345.381192-345.379145 0-190.751439 154.629753-345.380168 345.381192-345.380168 190.752462 0 345.382215 154.62873 345.382215 345.380168C800.259728 650.983401 645.630998 805.611108 454.878536 805.611108z",fill:"#5D5D5D","p-id":"2669"},null,-1)];function r2(t,e){return o.openBlock(),o.createElementBlock("svg",i2,l2)}const a2=K(o2,[["render",r2]]),s2={},c2={t:"1672212880079",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"19924"},d2=[o.createElementVNode("path",{d:"M806.4 263.2l-45.6-45.6L512 467.2 263.2 217.6l-45.6 45.6L467.2 512 217.6 760.8l45.6 45.6L512 557.6l248.8 248.8 45.6-45.6L557.6 512z","p-id":"19925"},null,-1)];function u2(t,e){return o.openBlock(),o.createElementBlock("svg",c2,d2)}const f2=K(s2,[["render",u2]]),p2={},h2={t:"1672216076738",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"28376"},m2=[o.createElementVNode("path",{d:"M501.937582 545.097053c147.891962 0 268.231366-118.534055 268.223274-264.288929 0-145.746783-120.330301-264.28994-268.222263-264.28994-147.890951 0-268.221252 118.584625-268.221252 264.28994C233.71633 426.520519 354.046631 545.097053 501.937582 545.097053zM612.471463 570.546911 411.497184 570.546911c-186.760063 0-338.664249 149.569875-338.664249 333.472733l0 19.794109c0 96.139636 149.47278 96.139636 338.664249 96.139636l200.974278 0c181.747565 0 338.694591 0 338.694591-96.139636l0-19.794109C951.164031 720.158252 799.235571 570.546911 612.471463 570.546911z","p-id":"28377"},null,-1)];function g2(t,e){return o.openBlock(),o.createElementBlock("svg",h2,m2)}const sn=K(p2,[["render",g2]]),_2={},y2={t:"1680231254898",class:"icon",viewBox:"0 0 1154 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9556"},b2=[o.createElementVNode("path",{d:"M1015.808 64.512q62.464 0 99.84 31.744t37.376 96.256l0 568.32q0 27.648-10.24 52.224t-28.16 43.008-41.984 29.184-50.688 10.752l-892.928 0q-26.624 0-50.176-10.24t-40.96-27.136-27.648-39.424-10.24-48.128l0-580.608q0-55.296 33.792-90.624t95.232-35.328l886.784 0zM287.744 253.952q-19.456 0-36.864 7.168t-30.72 19.968-20.992 30.72-7.68 38.4 7.68 37.888 20.992 30.72 30.72 20.992 36.864 7.68q21.504 0 39.424-7.68t30.72-20.992 20.48-30.72 7.68-37.888q0-41.984-27.648-69.12t-70.656-27.136zM448.512 608.256q0-19.456-7.68-37.376t-20.48-30.72-30.72-20.48-37.376-7.68l-128 0q-39.936 0-67.584 28.16t-27.648 68.096l0 4.096 0 92.16 319.488 0 0-92.16 0-4.096zM923.648 709.632q20.48 0 30.208-10.24t9.728-24.576-11.264-25.088-31.744-10.752l-305.152 0q-20.48 0-30.72 10.752t-10.24 25.088 10.24 24.576 29.696 10.24l309.248 0zM924.672 577.536q20.48 0 29.696-10.24t9.216-24.576q0-15.36-8.704-25.6t-29.184-10.24l-313.344 0q-20.48 0-29.696 10.24t-9.216 25.6q0 14.336 8.704 24.576t29.184 10.24l313.344 0zM925.696 447.488q15.36 0 26.624-10.24t11.264-24.576-11.264-23.04-26.624-8.704l-207.872 0q-15.36 0-26.112 8.704t-10.752 23.04 10.752 24.576 26.112 10.24l207.872 0z","p-id":"9557"},null,-1)];function E2(t,e){return o.openBlock(),o.createElementBlock("svg",y2,b2)}const hl=K(_2,[["render",E2]]),k2={},C2={t:"1698719360533",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15490",width:"200",height:"200"},w2=[o.createElementVNode("path",{d:"M960 704h-63.616v-167.392a32 32 0 0 0-32-32H544V416h160a32 32 0 0 0 32-32V96a32 32 0 0 0-32-32H320a32 32 0 0 0-32 32v288a32 32 0 0 0 32 32h160v88.608H161.984a32 32 0 0 0-32 31.968L129.792 704H64a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32H193.792l0.16-135.392H480V704h-64a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32h-64v-135.392h288.384V704H768a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32zM352 128h320v224H352V128zM224 896H96v-128h128v128z m352 0h-128v-128h128v128z m352 0h-128v-128h128v128z","p-id":"15491"},null,-1)];function v2(t,e){return o.openBlock(),o.createElementBlock("svg",C2,w2)}const In=K(k2,[["render",v2]]),_c={list:{type:Array,default:()=>[]},handList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},fixPropOpt:{type:Object,default:()=>{}},height:{type:String,default:"404px"}},S2={class:"left-pick-list"},A2={class:"post-view-list"},x2=["title"],D2={class:"ik-picker-single"},N2=["title"],V2=o.defineComponent({__name:"PostList",props:_c,emits:["change","check"],setup(t,{emit:e}){var g,h;const n=t,i=o.computed(()=>{var c,_;return((c=n.handList)==null?void 0:c.length)===((_=n.list)==null?void 0:_.length)}),l=o.computed(()=>{var p,m,b,y;const c=(p=n.handList)==null?void 0:p.length,_=(m=n.list)==null?void 0:m.length;return n.multiple?r.value=n.handList.map(w=>w[n.fixPropOpt.id]):a.value=(y=(b=n.handList)==null?void 0:b[0])==null?void 0:y[n.fixPropOpt.id],c>0&&c<_}),r=o.ref(n.handList.map(c=>c[n.fixPropOpt.id])),a=o.ref((h=(g=n.handList)==null?void 0:g[0])==null?void 0:h[n.fixPropOpt.id]),s=e,d=c=>{const _=c?n.list.map(p=>p[n.fixPropOpt.id]):[];s("change",_,c?n.list:[])},f=c=>{s("change",c,n.list)},u=c=>{s("change",c,n.list)};return(c,_)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createCommentVNode(" 遍历list多选 "),o.createElementVNode("div",S2,[c.multiple?(o.openBlock(),o.createBlock(o.unref(S.ElCheckbox),{key:0,modelValue:i.value,"onUpdate:modelValue":_[0]||(_[0]=p=>i.value=p),indeterminate:l.value,onChange:d},{default:o.withCtx(()=>[o.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):o.createCommentVNode("v-if",!0),o.createElementVNode("ul",A2,[c.multiple?(o.openBlock(),o.createBlock(o.unref(S.ElCheckboxGroup),{key:0,modelValue:r.value,"onUpdate:modelValue":_[1]||(_[1]=p=>r.value=p),onChange:f},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.list,p=>(o.openBlock(),o.createElementBlock("li",{key:p[n.fixPropOpt.id]},[o.createVNode(o.unref(S.ElCheckbox),{label:p[n.fixPropOpt.id]},{default:o.withCtx(()=>[o.createVNode(hl),o.createElementVNode("p",{title:p[n.fixPropOpt.name]},o.toDisplayString(p[n.fixPropOpt.name]),9,x2)]),_:2},1032,["label"])]))),128))]),_:1},8,["modelValue"])):(o.openBlock(),o.createBlock(o.unref(S.ElRadioGroup),{key:1,isIndeterminate:l.value,modelValue:a.value,"onUpdate:modelValue":_[2]||(_[2]=p=>a.value=p),onChange:u},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.list,p=>(o.openBlock(),o.createElementBlock("li",{class:"w-full",key:p[n.fixPropOpt.id]},[o.createVNode(o.unref(S.ElRadio),{label:p[n.fixPropOpt.id]},{default:o.withCtx(()=>[o.createElementVNode("div",D2,[o.createVNode(hl),o.createElementVNode("p",{title:p[n.fixPropOpt.name]},o.toDisplayString(p[n.fixPropOpt.name]),9,N2)])]),_:2},1032,["label"])]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])])],2112))}}),NC="",B2=K(V2,[["__scopeId","data-v-a87521f6"]]),T2={class:"left-pick-list"},R2={class:"role-view-list"},I2=["title"],O2={class:"ik-picker-single"},M2=["title"],L2=o.defineComponent({__name:"RoleList",props:_c,emits:["change","check"],setup(t,{emit:e}){var g,h;const n=t,i=o.computed(()=>{var c,_;return((c=n.handList)==null?void 0:c.length)===((_=n.list)==null?void 0:_.length)}),l=o.computed(()=>{var p,m,b,y;const c=(p=n.handList)==null?void 0:p.length,_=(m=n.list)==null?void 0:m.length;return n.multiple?r.value=n.handList.map(w=>w[n.fixPropOpt.id]):a.value=(y=(b=n.handList)==null?void 0:b[0])==null?void 0:y[n.fixPropOpt.id],c>0&&c<_}),r=o.ref(n.handList.map(c=>c[n.fixPropOpt.id])),a=o.ref((h=(g=n.handList)==null?void 0:g[0])==null?void 0:h[n.fixPropOpt.id]),s=e,d=c=>{const _=c?n.list.map(p=>p[n.fixPropOpt.id]):[];s("change",_,c?n.list:[])},f=c=>{s("change",c,n.list)},u=c=>{s("change",c,n.list)};return(c,_)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createCommentVNode(" 遍历list多选 "),o.createElementVNode("div",T2,[c.multiple?(o.openBlock(),o.createBlock(o.unref(S.ElCheckbox),{key:0,modelValue:i.value,"onUpdate:modelValue":_[0]||(_[0]=p=>i.value=p),indeterminate:l.value,onChange:d},{default:o.withCtx(()=>[o.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):o.createCommentVNode("v-if",!0),o.createElementVNode("ul",R2,[c.multiple?(o.openBlock(),o.createBlock(o.unref(S.ElCheckboxGroup),{key:0,modelValue:r.value,"onUpdate:modelValue":_[1]||(_[1]=p=>r.value=p),onChange:f},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.list,p=>(o.openBlock(),o.createElementBlock("li",{key:p[c.fixPropOpt.id]},[o.createVNode(o.unref(S.ElCheckbox),{label:p[c.fixPropOpt.id],value:p[c.fixPropOpt.id],disabled:p.disabled},{default:o.withCtx(()=>[o.createVNode(sn),o.createElementVNode("p",{title:p[c.fixPropOpt.name]},o.toDisplayString(p[c.fixPropOpt.name]),9,I2)]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["modelValue"])):(o.openBlock(),o.createBlock(o.unref(S.ElRadioGroup),{key:1,indeterminate:l.value,modelValue:a.value,"onUpdate:modelValue":_[2]||(_[2]=p=>a.value=p),onChange:u},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.list,p=>(o.openBlock(),o.createElementBlock("li",{class:"w-full",key:p[c.fixPropOpt.id]},[o.createVNode(o.unref(S.ElRadio),{label:p[c.fixPropOpt.id],value:p[c.fixPropOpt.id],disabled:p.disabled},{default:o.withCtx(()=>[o.createElementVNode("div",O2,[o.createVNode(sn),o.createElementVNode("p",{title:p[c.fixPropOpt.name]},o.toDisplayString(p[c.fixPropOpt.name]),9,M2)])]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["indeterminate","modelValue"]))])])],2112))}}),VC="",P2=K(L2,[["__scopeId","data-v-a51e0920"]]);var Ae=(t=>(t.org="organization",t.dep="dep",t.user="user",t.role="role",t.post="post",t.dep_user="dep_user",t))(Ae||{}),On=(t=>(t.group="group",t.role="role",t.post="post",t))(On||{});const Ct={animation:200,group:"gl",disabled:!1,ghostClass:"ghost",sort:!0,delay:100,showIcon:!0,itemStyle:{radius:25,bottom:8,background:"#0000"}},$2={topLink:{type:Boolean,default:!0},children:{type:Boolean,default:!0},modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},pid:{type:String,default:""},orgPid:{type:String,default:"root"},org:{type:Object,default:()=>null},immediate:{type:Boolean,default:!1},show:{type:Boolean,default:!1,required:!0},width:{type:String,default:"685px"},height:{type:String,default:"580px"},title:{type:String,default:"选择人员"},organizationList:{type:Array,default:()=>[]},depList:{type:Array,default:()=>[]},userList:{type:Array,default:()=>[]},roleList:{type:Array,default:()=>[]},postList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},tabs:{type:Array,validator:t=>{if(t===void 0)return!0;if(Array.isArray(t)){if(!(t!=null&&t.length))return!1}else return console.error("IkingPicker参数错误:tabs必须是Array类型"),!1;return!0},default:()=>["group","role","post"]},showDep:{type:Boolean,default:!0},chooseType:{type:Array,default:()=>["dep"]},api:{type:Object,default:()=>({methods:"post",headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:"Bearer iking"},url:`${location.origin}${location.pathname}/serve/component/pick/mix`,param:null,paramKey:"type"})},typeOption:{type:Object,default:()=>{}},propOption:{type:Object,default:()=>null},search:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},imageBaseUrl:{type:String,default:""},cache:{type:Boolean,default:!0},placeholder:{type:String,default:"模糊搜索组织、人员、角色、岗位"},emptyText:{type:String,default:"暂无数据"}},yc=t=>{const e=window.location.search;return new URLSearchParams(e).get(t)},z2=t=>{const e=$.ikStore.local.getItem("x_domain");e&&(t["X-DOMAIN"]=e)},F2=t=>{var i;const e=yc("domain");if(e){t["X-DOMAIN"]=e;const l=yc("code");e==="APPLICATION"&&(t["X-APP"]=l)}else z2(t);const n=(i=$.ikStore.local.getItem("tenant"))==null?void 0:i.code;n&&(t["X-TENANT"]=n)},H2=(t,e)=>{const n=o.ref([]),i=async(r,a,s)=>{var B,V;const{url:d,methods:f,headers:u,param:g}=t.value||{},h={parentOrgId:r,...g||{},parentDepartmentId:a||"",name:s||""},c={method:f,url:d,headers:{"Content-Type":"application/json;charset=UTF-8",...u},data:JSON.stringify(h)};F2(c.headers);const _=await Wl(c),{success:p,data:m}=_.data;if(!p)return{depList:[],roleList:[],postList:[],userList:[],organizationList:[],rootOrganization:{},rootDepartment:{}};const{departments:b,roles:y,posts:w,users:v,organizations:O,rootOrganization:x,rootDepartment:C}=m,k=x||C;return n.value[0]=e.org?{...e.org,id:e.elementId,elementType:(V=(B=e.org)==null?void 0:B.elementType)==null?void 0:V.toLocaleUpperCase()}:{...k,id:k.elementId},{depList:$._.cloneDeep(b),roleList:$._.cloneDeep(y),postList:$._.cloneDeep(w),userList:$._.cloneDeep(v),organizationList:$._.cloneDeep(O),rootOrganization:x,rootDepartment:C}};return{handData:i,handSetChild:(r,a)=>{i(r==null?void 0:r.elementId,a)},bannerList:n}},U2={shadow:"hover",class:"sel-list"},j2={key:0},W2={key:0,class:"check-all"},G2={key:0,class:"view-list"},q2={key:0,class:"filter-user"},Y2=["title"],Q2={class:"filter-user"},Z2=["title"],K2={key:2,class:"next-child"},X2={class:"filter-user"},J2=["title"],eb={key:1,class:"filter-user"},tb=["title"],nb={key:2,class:"next-child"},ob={class:"text-over-flow"},ib=["title"],lb=["title"],rb={key:2,class:"next-child"},ab={key:1,class:"empty"},sb=o.createElementVNode("div",{class:"split-div"},null,-1),cb={class:"choose-list"},db={class:"choose-item"},ub=o.createElementVNode("div",null,"已选",-1),fb={class:"dialog-footer"},pb=o.defineComponent({__name:"picker",props:$2,emits:["handChild","update:show","update:modelValue","ok","search"],setup(t,{expose:e,emit:n}){o.useCssVars(D=>({"61ff3d3c":X.value}));const i=t,l=o.ref(""),r=o.ref(""),a=o.ref(""),s=o.ref([]),d=o.ref([]),f=o.ref([]),u=o.ref([]),g=o.ref([]),h=o.ref(!1),c=i.imageBaseUrl||`${location.origin}/server/oss/download?fileUrl=`,_=D=>D?D.startsWith("http")?D:`${c}${D}`:"";o.watch(()=>i.api,()=>{i.show&&V("")});const p=o.computed(()=>({name:"name",type:"type",id:"id",avatar:"avatar",...i.propOption})),m=o.computed(()=>({dep:"DEPT",user:"USER",role:"ROLE",post:"POST",organization:"ORGANIZATION",...i.typeOption})),b=o.ref([]),y=H2(o.toRef(i,"api"),i),w=y.handData,v=y.bannerList;i.immediate&&w(a.value,r.value,l.value);const O=D=>(D.forEach(L=>{var A,U;L.disabled=((U=(A=i.modelValue)==null?void 0:A.find(_e=>_e[p.value.id]===L[p.value.id]))==null?void 0:U.disabled)||!1}),D),x=async()=>{var D,L,A,U,_e,pt,_n,qn,Md;h.value=!0;try{if((D=i.depList)!=null&&D.length||(L=i.userList)!=null&&L.length||(A=i.roleList)!=null&&A.length||(U=i.postList)!=null&&U.length){s.value=(_e=i.userList)==null?void 0:_e.filter(qe=>qe[p.value.name].includes(l.value)),d.value=(pt=i.depList)==null?void 0:pt.filter(qe=>qe[p.value.name].includes(l.value)),f.value=(_n=i.roleList)==null?void 0:_n.filter(qe=>qe[p.value.name].includes(l.value)),u.value=(qn=i.postList)==null?void 0:qn.filter(qe=>qe[p.value.name].includes(l.value)),g.value=(Md=i.organizationList)==null?void 0:Md.filter(qe=>qe[p.value.name].includes(l.value)),J(),h.value=!1;return}const xe=await w(a.value,r.value,l.value);try{s.value=O((xe==null?void 0:xe.userList)||[]),d.value=O((xe==null?void 0:xe.depList)||[]),f.value=O((xe==null?void 0:xe.roleList)||[]),u.value=O((xe==null?void 0:xe.postList)||[]),g.value=O((xe==null?void 0:xe.organizationList)||[])}catch(qe){h.value=!1,console.info("error: ",qe)}J(),h.value=!1}catch{h.value=!1}},C=o.reactive({org:new Map,dep:new Map,user:new Map,role:new Map,post:new Map,trans:[],single:""}),k=o.reactive({indeterminate:!1,checkAll:0}),B=D=>C.org.has(D)||C.dep.has(D)||C.user.has(D)||C.role.has(D)||C.post.has(D),V=$.ikEvent.debounce(x,300),P=o.computed(()=>{const D=Array.from(C.org.values()),L=Array.from(C.dep.values()),A=Array.from(C.role.values()),U=Array.from(C.user.values()),_e=Array.from(C.post.values());return b.value=[...D,...L,...A,..._e,...U],{list:[...D,...L,...A,...U,..._e],org:{list:D,len:D.length,deps:D},dep:{list:L,len:L.length,deps:L},role:{list:A,len:A.length},user:{list:U,len:U.length},post:{list:_e,len:_e.length}}}),T=o.computed(()=>{const D=i.chooseType.map(A=>A.toLocaleLowerCase());let L=[...D];return D.includes("dep")&&(L=[...L,"organization","dept"]),D.includes("dep_user")&&(L=[...L,"user"]),L}),F=o.computed(()=>T.value.includes(Ae.dep)&&!T.value.includes(Ae.user)&&!T.value.includes(Ae.org)),W=o.computed(()=>T.value.includes(Ae.user)&&!T.value.includes(Ae.dep)&&!T.value.includes(Ae.org)),M=o.computed(()=>T.value.includes(Ae.org)&&!T.value.includes(Ae.dep)&&!T.value.includes(Ae.user)),ie=o.computed(()=>!v.value.length),Ce=o.computed(()=>!i.max||P.value.list.length<i.max),dt=D=>[m.value.dep,m.value.organization].includes(D[p.value.type])?D.hasOwnProperty("disabled"):!1,ke=o.ref([]),ut=D=>{ke.value=D,ke.value.forEach(L=>{L.readonly=L==null?void 0:L.disabled})},ae=n,I=o.ref(!1),J=(D=!1)=>{var A;const L=(A=i==null?void 0:i.userList)!=null&&A.length?$._.cloneDeep([...i==null?void 0:i.organizationList,...i==null?void 0:i.userList,...i==null?void 0:i.depList]):[...g.value,...d.value,...s.value];return!D&&ut(L),L};o.watch(()=>i.show,async D=>{var L;if(I.value=D,D){r.value=i.pid,a.value=((L=i.org)==null?void 0:L.elementId)||i.orgPid,!i.userList.length&&!i.depList.length&&!i.roleList.length&&!i.postList.length&&!i.organizationList.length?await x():(s.value=i.userList,d.value=i.depList,f.value=i.roleList,u.value=i.postList,g.value=i.organizationList),C.trans=[],k.checkAll=0,k.indeterminate=!1;const A=J(!0);for(const _e of A)B(_e[p.value.id])&&C.trans.push(_e[p.value.id]);const U=A.length===C.trans.length;k.indeterminate=!!(A.length&&!U),k.checkAll=Number(A.length&&U),o.nextTick(()=>{var _e;(_e=i.modelValue)!=null&&_e.length?i.modelValue.forEach(pt=>{Z(pt),i.multiple?C.trans.push(pt[p.value.id]):C.single=pt[p.value.id]}):Be()})}else Be()}),o.watchEffect(()=>{let D;if(F.value||W.value){const A=s.value.length,U=d.value.length;D=F.value?U:W.value?A:A+A}else D=ke.value.length;const L=C.trans.length;k.indeterminate=C.trans.length?L!==D:!1,k.checkAll=+(D!==0&&L===D)});const G=D=>{if(D){if(C.single="",D[p.value.id]){const L=C.trans.findIndex(A=>A===D[p.value.id]);L!==-1&&C.trans.splice(L,1)}switch(D[p.value.type]){case m.value.dep:return C.dep.delete(D[p.value.id]);case m.value.user:return C.user.delete(D[p.value.id]);case m.value.role:return C.role.delete(D[p.value.id]);case m.value.post:return C.post.delete(D[p.value.id]);case m.value.organization:return C.org.delete(D[p.value.id]);default:return}}},H=D=>{G(D)},Z=D=>{if(!B(D[p.value.id])){const L={...D};switch(D[p.value.type]){case m.value.dep:return C.dep.set(D[p.value.id],L);case m.value.user:return C.user.set(D[p.value.id],L);case m.value.role:return C.role.set(D[p.value.id],L);case m.value.post:return C.post.set(D[p.value.id],L);case m.value.organization:return C.org.set(D[p.value.id],L);default:return}}};o.watch(()=>C.trans,D=>{if(!D.length)ke.value.forEach(L=>{L.disabled=!1;try{i.multiple&&G(L)}catch{}});else{const L=ke.value.filter(U=>!D.includes(U[p.value.id]));for(const U of L)U.disabled=!1,i.multiple&&G(U);const A=ke.value.filter(U=>D.includes(U[p.value.id]));for(const U of A)U.disabled=dt(U),Z(U)}},{deep:!0}),o.watch(()=>C.single,D=>{if(D){const L=ke.value.find(A=>A[p.value.id]===D);L&&(C.dep.clear(),C.user.clear(),C.role.clear(),C.post.clear(),C.org.clear(),C.trans=[],o.nextTick(()=>{Z(L)}))}});const ce=D=>{if(D){let L=[];if(T.value.includes("dep")||T.value.includes("dep_user")){const A=ke.value.filter(U=>U[p.value.type].toLocaleUpperCase()===m.value[Ae.dep].toLocaleUpperCase());L=[...L,...A]}if(T.value.includes("user")||T.value.includes("dep_user")){const A=ke.value.filter(U=>U[p.value.type].toLocaleUpperCase()===m.value[Ae.user].toLocaleUpperCase());L=[...L,...A]}if(T.value.includes("organization")){const A=ke.value.filter(U=>U[p.value.type].toLocaleUpperCase()===m.value[Ae.org].toLocaleUpperCase());L=[...L,...A]}L.forEach(A=>{!C.trans.includes(A[p.value.id])&&C.trans.push(A[p.value.id])})}else ke.value.forEach(L=>{const A=C.trans.findIndex(U=>U===L[p.value.id]);A>=0&&C.trans.splice(A,1)})},se=D=>{D[p.value.type]===m.value.organization?(a.value=D==null?void 0:D.elementId,r.value=""):(a.value="",r.value=D==null?void 0:D.elementId),x(),v.value.push(D)},le=()=>{const D=v.value.length-2,L=D<0?0:D,A=v.value[L];A[p.value.type]===m.value.organization?(a.value=D<0?"root":(A==null?void 0:A.elementId)||(A==null?void 0:A.id),r.value=""):(a.value="",r.value=D<0?"":(A==null?void 0:A.elementId)||(A==null?void 0:A.id)),x(),v.value.pop()},te=o.computed(()=>v.value.length),We=(D,L)=>{!L&&!i.topLink||L!==te.value-1&&(D[p.value.type]===m.value.organization?(a.value=D==null?void 0:D.elementId,r.value=""):(a.value="",r.value=D==null?void 0:D.elementId),x(),v.value.splice(L+1))},ft=o.computed(()=>i.chooseType.includes("role")&&i.chooseType.length===1),Bt=o.computed(()=>i.chooseType.includes("post")&&i.chooseType.length===1),tt=o.ref(i.tabs[0]),Ve=o.ref(i.tabs[0]);o.watchEffect(()=>(Ve.value=ft.value?i.tabs[1]:Bt.value?i.tabs[2]:tt.value,Ve.value));const Be=()=>{var D;C.dep.clear(),C.user.clear(),C.role.clear(),C.post.clear(),C.org.clear(),C.trans=[],$e.value=[],gn.value=[],tt.value=i.tabs[0],Ve.value=i.tabs[0],l.value="",r.value=i.pid,a.value=((D=i.org)==null?void 0:D.elementId)||i.orgPid,C.single="",b.value=[]},Te=()=>{var D;ae("ok",$._.cloneDeep({...P.value,sort:b.value})),ae("update:modelValue",$._.cloneDeep(((D=P.value)==null?void 0:D.list)||[])),ae("update:show",!1),Be()},Ge=()=>{ae("update:show",!1),Be()};e({handClear:Be,handRomeve:H,handDelete:G});const R=o.computed(()=>{const D=T.value;return!!((D.includes("post")||D.includes("role"))&&D.length>1)}),z=o.computed(()=>[{label:"group",name:"组织架构"},{label:"role",name:"角色列表"},{label:"post",name:"岗位列表"}].filter(D=>i.tabs.includes(D.label))),Q=o.computed(()=>`${(typeof i.width=="string"?Number.parseInt(i.width):i.width)/2-30}px`),X=o.computed(()=>`${typeof i.height=="string"?Number.parseInt(i.height):i.height}px`),ne=()=>{i.multiple||(C.post.clear(),C.role.clear(),C.user.clear(),C.dep.clear(),C.single="")},$e=o.ref([]),Gn=(D,L)=>{i.multiple||(C.single="");const A=i.multiple?D:[D];if(!A.length){C.role.clear();return}ne(),L.forEach(U=>{A!=null&&A.includes(U[p.value.id])?Z(U):G(U)})};o.watch(()=>P.value.role.len,D=>{$e.value=$._.cloneDeep(P.value.role.list)});const gn=o.ref([]),Re=(D,L)=>{i.multiple||(C.single="");const A=i.multiple?D:[D];if(!A.length){C.post.clear();return}ne(),L.forEach(U=>{A!=null&&A.includes(U[p.value.id])?Z(U):G(U)})};return o.watch(()=>P.value.post.len,D=>{gn.value=$._.cloneDeep(P.value.post.list)}),o.watch(()=>l.value,D=>{V("")}),(D,L)=>(o.openBlock(),o.createBlock(o.unref(S.ElDialog),{modelValue:I.value,"onUpdate:modelValue":L[6]||(L[6]=A=>I.value=A),title:D.title,"destroy-on-close":"","close-on-click-modal":!1,"close-on-click-escape":!1,draggable:"","align-center":"",width:typeof D.width=="string"?D.width:`${D.width}%`,class:"p_p_picker-dialog","modal-class":"p_p_picker-dialog-modal",onClose:Ge},{footer:o.withCtx(()=>[o.createElementVNode("span",fb,[o.createVNode(o.unref(S.ElButton),{onClick:o.withModifiers(Ge,["stop"])},{default:o.withCtx(()=>[o.createTextVNode("取消")]),_:1}),o.createVNode(o.unref(S.ElButton),{type:"primary",onClick:o.withModifiers(Te,["stop"])},{default:o.withCtx(()=>[o.createTextVNode(" 确定 ")]),_:1})])]),default:o.withCtx(()=>[o.createElementVNode("div",{class:"dep-use-picker",style:o.normalizeStyle({height:X.value})},[o.createElementVNode("div",U2,[o.createElementVNode("div",null,[o.createVNode(o.unref(S.ElInput),{modelValue:l.value,"onUpdate:modelValue":L[0]||(L[0]=A=>l.value=A),clearable:"",placeholder:D.placeholder,"prefix-icon":a2,style:o.normalizeStyle({width:Q.value})},null,8,["modelValue","placeholder","style"]),R.value?(o.openBlock(),o.createBlock(o.unref(S.ElRadioGroup),{key:0,modelValue:tt.value,"onUpdate:modelValue":L[1]||(L[1]=A=>tt.value=A),class:"ik-picker-tab",style:o.normalizeStyle({width:Q.value})},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(z.value,A=>(o.openBlock(),o.createBlock(o.unref(S.ElRadioButton),{label:A.label,key:A.label},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(A.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","style"])):o.createCommentVNode("v-if",!0)]),o.createCommentVNode(" 过滤 "),Ve.value===o.unref(On).group?(o.openBlock(),o.createElementBlock("div",j2,[o.createCommentVNode(" 面包屑 全选 "),o.createVNode(o.unref(S.ElBreadcrumb),{separator:">",class:o.normalizeClass(["banner",{"top-unlink":!D.topLink}])},{default:o.withCtx(()=>[te.value?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(o.unref(v),(A,U)=>(o.openBlock(),o.createBlock(o.unref(S.ElBreadcrumbItem),{key:A[p.value.id],onClick:o.withModifiers(_e=>We(A,U),["stop"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(A[p.value.name]),1)]),_:2},1032,["onClick"]))),128)):o.createCommentVNode("v-if",!0)]),_:1},8,["class"]),o.createCommentVNode(" 全选框 "),D.multiple?(o.openBlock(),o.createElementBlock("div",W2,[o.createVNode(o.unref(S.ElCheckbox),{modelValue:k.checkAll,"onUpdate:modelValue":L[2]||(L[2]=A=>k.checkAll=A),indeterminate:k.indeterminate,"true-label":1,"false-label":0,disabled:!D.multiple,onChange:ce,onInput:ce},{default:o.withCtx(()=>[o.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate","disabled"]),te.value>1?o.withDirectives((o.openBlock(),o.createBlock(o.unref(S.ElButton),{key:0,link:"",type:"primary",onClick:o.withModifiers(le,["stop"])},{default:o.withCtx(()=>[o.createTextVNode("上一级")]),_:1},512)),[[o.vShow,!ie.value]]):o.createCommentVNode("v-if",!0)])):o.createCommentVNode("v-if",!0)])):o.createCommentVNode("v-if",!0),o.createCommentVNode(" 左侧列表 "),o.createCommentVNode(" 部门&人员 "),Ve.value===o.unref(On).group?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[ke.value.length?o.withDirectives((o.openBlock(),o.createElementBlock("ul",G2,[o.createCommentVNode(" +++++++++++++++++++++++ 多选 ++++++++++++++++++++++ "),D.multiple?(o.openBlock(),o.createBlock(o.unref(S.ElCheckboxGroup),{key:0,modelValue:C.trans,"onUpdate:modelValue":L[3]||(L[3]=A=>C.trans=A)},{default:o.withCtx(()=>[o.createCommentVNode(" <template> "),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(g.value,A=>(o.openBlock(),o.createElementBlock("li",{key:A[p.value.id]},[T.value.includes(o.unref(Ae).org)?(o.openBlock(),o.createBlock(o.unref(S.ElCheckbox),{key:1,label:A[p.value.id],disabled:!Ce.value||(A==null?void 0:A.readonly)},{default:o.withCtx(()=>[o.createElementVNode("div",Q2,[o.createCommentVNode(" 部门icon前缀 "),o.createVNode(In),o.createElementVNode("p",{title:A[p.value.name]},o.toDisplayString(A[p.value.name]),9,Z2)])]),_:2},1032,["label","disabled"])):(o.openBlock(),o.createElementBlock("div",q2,[o.createCommentVNode(" 部门icon前缀 "),o.createVNode(In),o.createElementVNode("p",{title:A[p.value.name]},o.toDisplayString(A[p.value.name]),9,Y2)])),D.children?(o.openBlock(),o.createElementBlock("div",K2,[[m.value.organization,m.value.dep,m.value.role].includes(A[p.value.type])?(o.openBlock(),o.createBlock(o.unref(S.ElButton),{key:0,link:"",type:"primary",onClick:o.withModifiers(U=>se(A),["stop"]),disabled:A.disabled},{icon:o.withCtx(()=>[o.createVNode(pl)]),default:o.withCtx(()=>[o.createTextVNode(" 下级 ")]),_:2},1032,["onClick","disabled"])):o.createCommentVNode("v-if",!0)])):o.createCommentVNode("v-if",!0)]))),128)),o.createCommentVNode(" </template> "),(!W.value||D.showDep)&&!M.value?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(d.value,A=>(o.openBlock(),o.createElementBlock("li",{key:A[p.value.id]},[D.chooseType.includes(o.unref(Ae).dep)||D.chooseType.includes(o.unref(Ae).dep_user)?(o.openBlock(),o.createBlock(o.unref(S.ElCheckbox),{key:0,label:A[p.value.id],disabled:!Ce.value||(A==null?void 0:A.readonly)},{default:o.withCtx(()=>[o.createElementVNode("div",X2,[o.createCommentVNode(" 部门icon前缀 "),o.createVNode(Rn),o.createElementVNode("p",{title:A[p.value.name]},o.toDisplayString(A[p.value.name]),9,J2)])]),_:2},1032,["label","disabled"])):(o.openBlock(),o.createElementBlock("div",eb,[o.createCommentVNode(" 部门icon前缀 "),o.createVNode(Rn),o.createElementVNode("p",{title:A[p.value.name]},o.toDisplayString(A[p.value.name]),9,tb)])),D.children?(o.openBlock(),o.createElementBlock("div",nb,[[m.value.dep,m.value.role].includes(A[p.value.type])?(o.openBlock(),o.createBlock(o.unref(S.ElButton),{key:0,link:"",type:"primary",onClick:o.withModifiers(U=>se(A),["stop"]),disabled:A.disabled},{icon:o.withCtx(()=>[o.createVNode(pl)]),default:o.withCtx(()=>[o.createTextVNode(" 下级 ")]),_:2},1032,["onClick","disabled"])):o.createCommentVNode("v-if",!0)])):o.createCommentVNode("v-if",!0)]))),128)):o.createCommentVNode("v-if",!0),D.chooseType.includes("user")||D.chooseType.includes("dep_user")?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(s.value,A=>(o.openBlock(),o.createElementBlock("li",{key:A[p.value.id]},[o.createVNode(o.unref(S.ElCheckbox),{label:A[p.value.id],disabled:!Ce.value||(A==null?void 0:A.readonly)},{default:o.withCtx(()=>{var U,_e;return[o.createCommentVNode(" icon前缀 "),m.value.dep===A[p.value.type]?(o.openBlock(),o.createBlock(sn,{key:0})):m.value.user===A[p.value.type]?(o.openBlock(),o.createBlock(o.unref(S.ElAvatar),{key:1,size:30,src:_((U=p.value)!=null&&U.avatar?A[(_e=p.value)==null?void 0:_e.avatar]:""),icon:Bo},null,8,["src"])):o.createCommentVNode("v-if",!0),o.createElementVNode("span",ob,o.toDisplayString(A[p.value.name]),1)]}),_:2},1032,["label","disabled"])]))),128)):o.createCommentVNode("v-if",!0)]),_:1},8,["modelValue"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" +++++++++++++++++++++++ 单选 ++++++++++++++++++++++ "),o.createVNode(o.unref(S.ElRadioGroup),{modelValue:C.single,"onUpdate:modelValue":L[4]||(L[4]=A=>C.single=A)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(ke.value,A=>{var U,_e,pt;return o.openBlock(),o.createElementBlock("li",{key:A[p.value.id]},[T.value.includes((U=A[p.value.type])==null?void 0:U.toLocaleLowerCase())?(o.openBlock(),o.createBlock(o.unref(S.ElRadio),{key:0,label:A[p.value.id],class:o.normalizeClass({readonly:![m.value.organization,m.value.dep,m.value.user].includes(A[p.value.type]),"w-full":!0}),disabled:A.readonly},{default:o.withCtx(()=>{var _n,qn;return[o.createCommentVNode(" 部门icon前缀 "),m.value.organization===A[p.value.type]?(o.openBlock(),o.createBlock(In,{key:0})):m.value.dep===A[p.value.type]?(o.openBlock(),o.createBlock(Rn,{key:1})):m.value.role===A[p.value.type]?(o.openBlock(),o.createBlock(sn,{key:2})):m.value.user===A[p.value.type]?(o.openBlock(),o.createBlock(o.unref(S.ElAvatar),{key:3,size:30,src:_((_n=p.value)!=null&&_n.avatar?A[(qn=p.value)==null?void 0:qn.avatar]:""),icon:Bo},null,8,["src"])):o.createCommentVNode("v-if",!0),o.createElementVNode("span",{class:"text-over-flow",title:A[p.value.name]},o.toDisplayString(A[p.value.name]),9,ib)]}),_:2},1032,["label","class","disabled"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[m.value.organization===A[p.value.type]?(o.openBlock(),o.createBlock(In,{key:0})):m.value.dep===A[p.value.type]?(o.openBlock(),o.createBlock(Rn,{key:1})):m.value.role===A[p.value.type]?(o.openBlock(),o.createBlock(sn,{key:2})):m.value.user===A[p.value.type]?(o.openBlock(),o.createBlock(o.unref(S.ElAvatar),{key:3,size:30,src:_((_e=p.value)!=null&&_e.avatar?A[(pt=p.value)==null?void 0:pt.avatar]:""),icon:Bo},null,8,["src"])):o.createCommentVNode("v-if",!0),o.createElementVNode("span",{class:"text-over-flow",title:A[p.value.name]},o.toDisplayString(A[p.value.name]),9,lb)],64)),D.children?(o.openBlock(),o.createElementBlock("div",rb,[[m.value.organization,m.value.dep,m.value.role].includes(A[p.value.type])?(o.openBlock(),o.createBlock(o.unref(S.ElButton),{key:0,link:"",type:"primary",onClick:o.withModifiers(_n=>se(A),["stop"])},{icon:o.withCtx(()=>[o.createVNode(pl)]),default:o.withCtx(()=>[o.createTextVNode(" 下级 ")]),_:2},1032,["onClick"])):o.createCommentVNode("v-if",!0)])):o.createCommentVNode("v-if",!0)])}),128))]),_:1},8,["modelValue"])],2112))])),[[o.unref(S.vLoading),h.value]]):(o.openBlock(),o.createElementBlock("div",ab,o.toDisplayString(D.emptyText),1))],64)):Ve.value===o.unref(On).role?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createCommentVNode(" 角色 "),o.withDirectives(o.createVNode(P2,{fixPropOpt:p.value,list:f.value,max:D.max,multiple:D.multiple,"hand-list":$e.value,onChange:Gn},null,8,["fixPropOpt","list","max","multiple","hand-list"]),[[o.unref(S.vLoading),h.value]])],64)):Ve.value===o.unref(On).post?(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createCommentVNode(" 岗位 "),o.withDirectives(o.createVNode(B2,{fixPropOpt:p.value,list:u.value,max:D.max,multiple:D.multiple,"hand-list":gn.value,onChange:Re},null,8,["fixPropOpt","list","max","multiple","hand-list"]),[[o.unref(S.vLoading),h.value]])],64)):o.createCommentVNode("v-if",!0)]),sb,o.createCommentVNode(" 已选列表 "),o.createElementVNode("div",cb,[o.createElementVNode("div",db,[ub,o.createVNode(o.unref(S.ElButton),{type:"primary",link:"",onClick:o.withModifiers(Be,["stop"])},{default:o.withCtx(()=>[o.createTextVNode("清空")]),_:1})]),o.createCommentVNode(" 已选列表可拖拽 "),o.createVNode(o.unref(jl),{tag:"ul",name:"fade","item-key":"elementId",modelValue:b.value,"onUpdate:modelValue":L[5]||(L[5]=A=>b.value=A),style:o.normalizeStyle({height:`calc(${X.value} + 21px)`}),animation:o.unref(Ct).animation,group:o.unref(Ct).group,disabled:o.unref(Ct).disabled,ghostClass:o.unref(Ct).ghostClass,forceFallback:o.unref(Ct).ghostClass},{item:o.withCtx(({element:A})=>[o.createVNode(o.Transition,{type:"transition",name:"flip-list"},{default:o.withCtx(()=>[o.createElementVNode("li",{class:o.normalizeClass(["list-group-item"]),style:o.normalizeStyle({borderRadius:`${o.unref(Ct).itemStyle.radius}px`,marginBottom:`${o.unref(Ct).itemStyle.bottom}px`,backgroundColor:`${o.unref(Ct).itemStyle.background}`})},[o.createElementVNode("div",null,[o.createCommentVNode(" 部门icon前缀 "),m.value.organization===A[p.value.type]?(o.openBlock(),o.createBlock(In,{key:0})):o.createCommentVNode("v-if",!0),m.value.dep===A[p.value.type]?(o.openBlock(),o.createBlock(Rn,{key:1})):m.value.role===A[p.value.type]?(o.openBlock(),o.createBlock(sn,{key:2})):m.value.post===A[p.value.type]?(o.openBlock(),o.createBlock(hl,{key:3})):m.value.user===A[p.value.type]?(o.openBlock(),o.createBlock(o.unref(S.ElAvatar),{key:4,size:30,src:_(p.value.avatar?A[p.value.avatar]:""),icon:Bo},null,8,["src"])):o.createCommentVNode("v-if",!0),o.createElementVNode("span",null,o.toDisplayString(A[p.value.name]),1)]),o.withDirectives(o.createVNode(f2,{class:"close",onClick:o.withModifiers(U=>H(A),["stop"])},null,8,["onClick"]),[[o.vShow,!(A!=null&&A.readonly)]])],4)]),_:2},1024)]),_:1},8,["modelValue","style","animation","group","disabled","ghostClass","forceFallback"])])],4)]),_:1},8,["modelValue","title","width"]))}}),BC="",Mn=de(pb),hb={},mb={t:"1672194715727",class:"icon",viewBox:"0 0 1024 1024",version:"1.1","p-id":"2667"},gb=[o.createElementVNode("path",{d:"M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",fill:"#5D5D5D","p-id":"2668"},null,-1),o.createElementVNode("path",{d:"M454.878536 70.285786C239.51556 70.285786 64.93236 244.847497 64.93236 460.231963c0 215.341486 174.583201 389.945153 389.945153 389.945153 215.362976 0 389.9472-174.603667 389.9472-389.945153C844.825736 244.847497 670.241512 70.285786 454.878536 70.285786zM454.878536 805.611108c-190.750415 0-345.381192-154.626683-345.381192-345.379145 0-190.751439 154.629753-345.380168 345.381192-345.380168 190.752462 0 345.382215 154.62873 345.382215 345.380168C800.259728 650.983401 645.630998 805.611108 454.878536 805.611108z",fill:"#5D5D5D","p-id":"2669"},null,-1)];function _b(t,e){return o.openBlock(),o.createElementBlock("svg",mb,gb)}const yb=K(hb,[["render",_b]]),bb={},Eb={t:"1710907270798",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8420",width:"200",height:"200"},kb=[o.createElementVNode("path",{d:"M512 1024A512 512 0 1 0 512 0a512 512 0 0 0 0 1024z",fill:"var(--ik-color-icon-dark)","p-id":"8421"},null,-1),o.createElementVNode("path",{d:"M655.701333 327.082667a41.216 41.216 0 0 1 57.002667-1.194667 39.082667 39.082667 0 0 1 1.109333 56.490667l-145.237333 145.92 145.237333 146.005333c13.824 13.909333 15.189333 35.072 4.266667 50.346667l-5.376 6.144a41.216 41.216 0 0 1-57.002667-1.109334L511.914667 585.130667 368.298667 729.685333a40.96 40.96 0 0 1-42.24 9.557334l-7.68-3.242667-7.082667-5.12a39.082667 39.082667 0 0 1-1.109333-56.576l145.066666-146.005333-145.066666-145.92a39.082667 39.082667 0 0 1-4.266667-50.346667l5.376-6.144a41.216 41.216 0 0 1 57.002667 1.194667L512 471.381333z",fill:"#FFFFFF","p-id":"8422"},null,-1)];function Cb(t,e){return o.openBlock(),o.createElementBlock("svg",Eb,kb)}const wb=K(bb,[["render",Cb]]),vb={},Sb={t:"1710904463698",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7124",width:"200",height:"200"},Ab=[o.createElementVNode("path",{d:"M512 512a235.392 235.392 0 0 0 235.2-235.52A235.392 235.392 0 0 0 512 40.96a235.392 235.392 0 0 0-235.2 235.52A235.392 235.392 0 0 0 512 512z",fill:"var(--ik-color-icon-light-hover)","p-id":"7125"},null,-1),o.createElementVNode("path",{d:"M41.984 901.12c0 57.408 46.784 103.872 104.512 103.872h731.52c57.664 0 104.448-46.464 104.448-103.808v-51.968c0-143.36-116.992-259.648-261.248-259.648H303.232c-144.256 0-261.248 116.224-261.248 259.648v51.968z",fill:"var(--ik-color-tag-primary)","p-id":"7126"},null,-1)];function xb(t,e){return o.openBlock(),o.createElementBlock("svg",Sb,Ab)}const Db=K(vb,[["render",xb]]),Nb={},Vb={t:"1710904436436",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6989",width:"200",height:"200"},Bb=[o.createElementVNode("path",{d:"M421.952281 288.898297a42.687867 42.687867 0 0 0-42.111868 31.167903l-122.367618 461.694557a49.919844 49.919844 0 0 0 19.19994 52.223837l232.319274 173.503458a57.59982 57.59982 0 0 0 67.45579 0.447998l234.175268-169.59947a49.983844 49.983844 0 0 0 19.967937-52.351836l-118.783628-465.598545a42.623867 42.623867 0 0 0-41.919869-31.487902H421.952281z",fill:"var(--ik-color-tag-primary)","p-id":"6990"},null,-1),o.createElementVNode("path",{d:"M354.048494 0.0032a44.67186 44.67186 0 0 0-36.479886 18.175943 39.103878 39.103878 0 0 0-4.223987 38.59188L377.792419 206.722554c6.591979 15.359952 22.39993 25.47192 40.127875 25.407921h255.487202c17.919944 0 33.919894-10.431967 40.319874-26.239918L774.39918 56.003025a39.167878 39.167878 0 0 0-4.863985-38.079881A44.67186 44.67186 0 0 0 733.439308 0.0032H354.048494z",fill:"var(--ik-color-icon-light-hover)","p-id":"6991"},null,-1)];function Tb(t,e){return o.openBlock(),o.createElementBlock("svg",Vb,Bb)}const Rb=K(Nb,[["render",Tb]]),Ib={},Ob={t:"1710904287393",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6854",width:"200",height:"200"},Mb=[o.createElementVNode("path",{d:"M512 271.296c27.264 0 49.792 22.336 51.136 50.816l0.064 2.688v147.072H832c62.272 0 113.28 51.776 115.2 116.8v103.872c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752l-0.064-2.688V592.256a13.184 13.184 0 0 0-11.328-13.312L832 578.88H563.2v113.664c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L460.8 692.48V578.88H192a12.992 12.992 0 0 0-12.736 11.776l-0.064 1.6v100.288c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L76.8 692.48V592.256c0-65.088 49.536-118.4 111.808-120.32H460.8v-147.2c0-29.504 22.912-53.44 51.2-53.44z",fill:"var(--ik-color-icon-light-hover)","p-id":"6855"},null,-1),o.createElementVNode("path",{d:"M204.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H51.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM588.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H435.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM972.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504h-153.6c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM665.6 64c28.288 0 51.2 23.936 51.2 53.504v213.952c0 29.568-22.912 53.504-51.2 53.504H358.4c-28.288 0-51.2-23.936-51.2-53.504V117.504c0-29.568 22.912-53.504 51.2-53.504h307.2z",fill:"var(--ik-color-tag-primary)","p-id":"6856"},null,-1)];function Lb(t,e){return o.openBlock(),o.createElementBlock("svg",Ob,Mb)}const Pb=K(Ib,[["render",Lb]]),$b={class:"avatar"},zb={key:3,class:"user_box"},Fb={key:1,class:"avatar_name"},Hb=o.defineComponent({__name:"Avatar",props:{fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},element:{type:Object,default:()=>{}},imageBaseUrl:{type:String,default:""}},setup(t){const e=t,n=`${e.imageBaseUrl}/server/oss/download?fileUrl=`||`${location.origin}/server/oss/download?fileUrl=`,i=l=>l?l.startsWith("http")?l:`${n}${l}`:"";return(l,r)=>{const a=o.resolveComponent("el-avatar");return o.openBlock(),o.createElementBlock("div",$b,[e.fixTypeOpt.group===t.element[e.fixPropOpt.type]?(o.openBlock(),o.createBlock(Pb,{key:0})):e.fixTypeOpt.role===t.element[e.fixPropOpt.type]?(o.openBlock(),o.createBlock(Db,{key:1})):e.fixTypeOpt.post===t.element[e.fixPropOpt.type]?(o.openBlock(),o.createBlock(Rb,{key:2})):e.fixTypeOpt.user===t.element[e.fixPropOpt.type]?(o.openBlock(),o.createElementBlock("div",zb,[t.element[t.fixPropOpt.avatar]?(o.openBlock(),o.createBlock(a,{key:0,shape:"square",src:i(t.fixPropOpt.avatar?t.element[t.fixPropOpt.avatar]:"")},null,8,["src"])):(o.openBlock(),o.createElementBlock("div",Fb,o.toDisplayString(t.element[t.fixPropOpt.name].slice(-2)),1))])):o.createCommentVNode("v-if",!0)])}}}),HC="",jt=K(Hb,[["__scopeId","data-v-bc7cca29"]]),ml="data:image/webp;base64,UklGRogSAABXRUJQVlA4WAoAAAAwAAAAxwAAzQAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBI4gsAAAXwh21/2rb//yncJGWGwWvMXFi6wpNh8GRmZmZmZmYeMzMzlobdnuvw+SynSVvbKiTx4ViWHcly/nodz4hw4LaNIylb5mbLeTIl2S+A/+u0//zH3hUlGHLVu1GC0Ze+HyUoKPo0SnClc0aU4Ontu6IEfzzWFiVYeGWU2Ede90qU4LMfj0YH3FOvihLnl/atiQ6k/RgtzlPfPxwduCXj0yiR0j1+Sygq0Pfr6/iosA/6/M6G6PC98+5t3qiw33j5fVEhL3W81/Z2CKfi02lG/c2Q/8YX2PQh54cv1htzKe6VuBewtxW/8NBpQy5Z757y4VasjFcynoJGXLJcdef0GSJOR//Pf11kyMvKbVcu/rMDp8P+5Ogn6w241POu3Gnzglghlzz+w2IDno6Tb/T/thsrxHzp/du/gozNpZBIX3npNdkrZ+LWRlPK2POHrPuVkawOO3tWmfdX7d/fSW8yllyVtXneWfyY+I2v3HKExbE4dJ8TgI7dm7fsFMgz8OIisHXRP4YxqR77Ev0DYfWCpa0Rg13LJ0xIP7Z6W6cBLA64ebTyYqWEzllflxERWjAh13F8+44mw1nlsvan4kSsf7oqcuLv3VXWYUzL9ZTFJpyI4JcvdBt3hv/2K3gVWybyxgo+XC6/BC9j+WTjPiXv64OXcd1c495GbknAsnIiMG47Z5UDxylpVBi4XTvLjKF6CDByu+1Xq5IZNwNDtytmxiiYvBwYu3lm9kaoz5a+IQzekj6+3QpA7crftxsWJNPna/qd+DH2mcdAlLD5Vxs9mMdu744SvP9LTZTgxVUVUYJHKlQeNA30xNWfOtVkwDi7gkrc+R6PJwX4kgDgT6HWbLyv6+Mp9IxEkqQwODmc4l+8hkjMOI/Hk4XoUKBFW7viX1oMixxPoWcM8vWAJxKdbYp/8RkJtlGFHg+a3KlDQnSr4l/8rJPm8RTmumRRGiHZAL986+5dTGIZVujxDECURQDxplSNDbFG4niPpyBeVhcp5NvzwI9sUfDrELOsT494B7EVDzaVSvpIQaFJPz7AEpOXAh0Tyi9jaF2pHE4QGq3aVSgyw12/AoLQadbvzKShx3ronMZBrITiF94HJKHTsK8fY4OUmgTdExi3nwk+f4KkRuik1LQt54gsfNUccbDQR7dMZ4DpNzEx1moHt+uesXvNbEz+T57VPWsvYGQt7h51ROdcvIqZGL/uQn1jLhvNTtJ17Txdc+tfDOXAZ4byOiamujc7BLc8WaVjnv4EsHL3xvmLGnXdrs8u78sCXevmL2rRf+Oyi4qKRlr0TMeaeUv9zEyZ+MKioglWvVKwBzBmZWP1ymgdLyqZRfYjlRrS3t35LDJsVOfeM/S45GMRwj1vq6eLOzwM8tJtHZCf8zOtL4kRi0QBQrjjbfUvk2L2uOsNCKEAf15MB+u6AdIu2+sH1Nh4DnP8b7MJwfsQnfTi7o8lzch24HXV9PF85vhrotR+ZJszlwbugwmSaLTw4X4VVl3MGnkbOyA6In1PtVPglZelXXGqfkdlYi+Zwhrrx4cdgBaXUEjA0447ws5XVHyt0rJFlzPGxGXhjlT4oPWlNuJ8+VinJFlJzQcii6Tem35kVhswV4yQ2o8prJ5Pmr5H7J3yKFII/7WSQRIXZXDc8Sf42/8QOwQMbW+3EmbGjaAT4n6e+TTEHt9cznEcP3f20V5hcKdNC8kydp9JRi4oVtp9zDFuLc9xPOc7/TIQpSdxG/d5M1HWXgAkUOcr7qtYFmCM1fnyznVNdIQJNx/jg/a1JNPxi1YDALrCmrHCK1azxcXLkJ3rPwggSEVcby49QoycvVkyUGUTfuNYwlw2HNlduSYFWCfUTSXG73cAJdgeWHSaJW6eFuDk6jwnAECUIo/a9n2AEJbadARJsoruubUMYa/uE5DPprGSCuUB15vcDyFCXL4IKMELX3uYIR7/AiBkS/MKOUgOwK91wlTtsUs9j0ZBanH31c1hAGXoPZYmwwsjLAhdAtpyKX6hPijbQQh/ghK14l+QGZZNAiDIcbw4CCAEOKkf8U6oJZUUbS9URaH+z05WGHAMyPAcHGFWorL9u4AQJWscMt2yZqzwQ2uZ+fHamzJydUpvFF6QriqSO5l1xAJX7ssD4+JjQ6jXfc28IAiQP70lwAqmf7MQ5LQuPttutdkCEDk1+QUeCpCrqiLbGuvMiw5mdkC48DOMIgZAw41gR0ASCfk+601xFTkQwtc30WpPLP93pwrM/PjpXhSpqKzYI06FUHhjE70WHWcU2/MXxsdnIonEiUaO5/lT2wumQgjf2EiRLoEt8POt8HHfeRz30jZUhYc2NZ0QLmAJtXVjwu8c/6KSaYKBUn3pKVV4DgcUqHKiA8LFH+NxZaanXz0hOcGsNwRvc0NtS1NTU1NDA1TyBxdGMbrlW95aTwM0gpyAEC5/H8HRIycnJyszXvFdkpCcEW/VCx3eZq+A1dFaV1tbe7a2q+h3jntpK0rRnxDCd1fTAI0gNQKEq9/N7tOnd68Mk7pzU1OdzpgYEz3QnMvb7OU0Kgo1WCa2+55XLPGlv0EIP1xOAcXC+3eXaPaecWqW5cywiqYYp9NFa0AEvM3etoh0pYwMBCt3twS6Ic/1e4bn4FfzKJE9avRLYijoP6xJmeI1qXEiEAGwulwuogNCjq5+X0tbSAyJYd3aSR0RCNY0oBrShocCcNOSmqPtBEFn4ai8senAVhwMBbn9qvpUlps0i+QB5Gh2ulxu9QGhdaS2tfhaQ6hc+T7tl9KHBYKnalEyhgWDwdrTQDxbWbY/QAx7flGuAxmwnlAw2FEe1hhRpVv2geQJxB12l9vtjGxAiO0+nz+EyMQcwyIkIZrIHBII/nMGJWdQMBhsrEE0cDvXVBOh96QSt0KCLUMMiaHGSHW6U8ySD7AOMbncsW6bKmjD/T5/AKNPRayoLa1MEEOCYuLGxYui2OHH5Dezd4uRMvz60RRW0xQn1hOoBIc7NtZlwgcmv9/fjdemdqSwaBz+7nREZN2bR2Al0tZjicpK/Eg1u2PjYm1yYPL7WzuBrAmrKiwCK4VKpPh+XQRceF8MGuBoVDqUTlH1U0ycydcJtExENSmUGvvtKs3ccDOxQKpxEpmUTtFwxEnQdrsMrbj3hNaLBa/QzQisSXYNHR2ZELwqak1d87VGPhsg52dUK+MBlXNYCPmGYv7nSY0skBdpypWJtsjHsQYpdNn/ska+60k1ZVaEFykYa/KTLCQiX1Js5fcrtD79GNXcXxmxEyyEH6DLsec1J0aPXqSHzRTrVHiIxPto7ydf82tv+43Xm3VRGW/G+Unhy4iE0Gvehu87IhE1+KE+uqh0x2h5Rnfnmt+rItRlLr2uhy4qY830niH0wVGxtFwk0Iu5E8ea9VApBWOcnxQSlL5UEUOjpnrnVi8picmlxQPoF+wuk8b3qbqVeE564uihAxxZpWkFuSPstCtdNoWfMN5SfTTsVmLNkHP1/Udqz9SG6PTkkFHDB1jpVkorP/YZDUf5PmLdf+zA/uoA5VE5YNDAgWkRqY50sXJa9PDMwV1Hj0vX9GHx/fr06dXDTmnBjAGRPUD164Zin2b07JmTlZVsIi43xhJ2muaQRS5506U5MjPS09LT0hLNBCulAaT5AVK6X61URW/DIjE5OTkxMT4hMcUduUSHGes0hS8Jwt/WBRixjB+sBCpt+Pcpj6SaNWcqYMZuuJnEqLGZqIWsusdUslCdD+1X8kiIs1ql91E5Cy+cBBpNp2vOy2OIeNlqwryU5E1vHQY6MiKdfP8lRNRZMCu/DKGr754GrFnJg7FEMj2LifB5w48CYM8SbruQSGSWNpLnf38qB2xavxsKTCQqzcT25jlrpWSOWetzZZGNRMFE5C9OLt1Ir6SXTPaC83pHvskRLNI1fsdaaXU0AOtdMr5XpLIjrdm7rawbGIWl544ZFkeFUE1FeXUQMGUkZl+vYQP79bSQxF9TXX0UAqLGVH7Ru2ePntnpjkg7v7m+/uypU35A3lgMaempCQmJ8S6n02mzWCymYDAQ7BIEgW/z+XwtjYwviNHc/vMfAFZQOCCwBAAA8CoAnQEqyADOAD5tNpRGpD+iISw1STvwDYlpbuDAdGXYW5+xX+E/B79IvqhdnLddJLmGi5paMwD+h8p7UC/h/9K6qXoHfpyR4P/Uv3L6q0mh/qXmCC5XUh/6l+4p6WqP3L5qDkPaVIRPowOQa5RsItEnpv2qi+aEGdI5VaSY7+i3fjzySZVTfInmLOji/1JNDhsggr75HlBnTop05IyqW9k6rgDx4oGKuZLsiDqTspeWt1TThs95rEvc3BAQ2Cmm/WHPEgITWp1jDj8fnYpacUKlA2fv4bDkY96yZXMjIrnu/KsBeRwGc1mPgGXhZDn5J8bFFYquI/e5SRB/fGWHrUWxTd/6ZFoE99q2r5vdSogeBKsvZRRnOJo1DhTmQzfK+jKPl1XB61eCyIzI2T0HdI/htEFcLySPEI1rIA1ptHGDrClKq1Cj6yIjq1T8SCl5GneZHHtrpmpD/1L9y+qqAAD+ysAAAACruyAAa6B+sspLlClJkLWAAlhaOsmcS18eCdW/9MiovfLi9lIdZV4K9C2nq4XL6pGljxoATLaWY+Fdf+yp8QqRmQOm17DSnKGoocmxvW4jXk3K6solfHw92MfxE9PKbpV6k390KRXwxMKUkfODCBPOGu7AVxFQQDv/surrkKoki8usn4RG7CzImZDOrpVMMa1nuR8WstZYVtabVbc37OMP2Y5Z5xioxwALBSridUAAe2PyFxopohDSWVP/M2RAZ43b7JOT7vDiWAukTn7gZKAljHmig+HiisRYSOsqxzRcwtHuA0ihG2zggPceBgQoJ9OrQn4+9SynodSjUnN3S1msttzAbtHUyHt0dqPI8MmNPuuX8oNYGSrMU/jq1/tuwVAcRYjFSmiVtRyf52fqt8XWRriSR73+gAIbwbhZMdATlGZy0CGP2PPNUcp2aE5oBbmSjStpYBFxz4bcqxQSVdwMV0UOCxRcyEWqPkw7ZCJO8qXyf/uEHIyBNR1plTtcMWPXcI1Dmkhi0cBoqF2quLyff3S3y9RMN/xM9oPh7cT8+rNF9azivisDh4AIyAlaYTSsoJ6JFmrxFP//iZ//3US//7kyGHqb0JWaRZPd5LjuIc4b3Pdxeirqg3w8ux5nlN/CW5YYPR8ygYwahr/iqudOg0NhFAVNXbgNGCTQRj2YmxoT259SWlnA1dtgjuRe2cZOmxqn+mvuyGdvAd9XjPSV4VVEAnROrjCwrgbhyKFpb8s12Za8/F4cSrPOSuadvlSXDEdhrb27ok+DnCnJqOg8Kj9Gqlca2xL+KvTh1u+NuUBnWJWF2Y9f3+xrM9KPN55AGLwUs8yRaGNKw9ngyAAfv8bf7tO4JOhTqKsM4JbfTtFKmlQhMS77J/ZyxsS7I+u5WO0/gjo83E7/80LOn4Ple50oLNP3yW4yTSnlNCwg+COLMFER8MfaIeAHTLvnkH3eDLow61YfoXxUp6SIMiBAHJ75Y1CrZeW1DvEoWdfnDhpz06KBs12oE7Ob6wCwc+FXeaKHfhDxAz/7xTqCDxZf++IGd1QQAB/TN8qRAl4EZQF8tbRrVQIKm2g8cbO8potBMoXyVFfUtI4r31krwmWYxDz2AAAAAAAA",gl={list:{type:Array,default:()=>[]},handList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},height:{type:String,default:"404px"},imageBaseUrl:{type:String,default:""},emptyText:{type:String,default:"暂无数据"},children:{type:Boolean,default:!0}},Ub=t=>(o.pushScopeId("data-v-33f94c51"),t=t(),o.popScopeId(),t),jb={class:"left-pick-list"},Wb={key:1,class:"post-view-list"},Gb={class:"checkText"},qb={class:"iconBox"},Yb={key:0,class:"userCount"},Qb=["onClick"],Zb={class:"ik-picker-single"},Kb={class:"iconBox"},Xb={key:0,class:"userCount"},Jb={key:2,class:"empty"},e4=Ub(()=>o.createElementVNode("img",{src:ml,alt:""},null,-1)),t4=o.defineComponent({__name:"GroupList",props:gl,emits:["change","check","handChild"],setup(t,{emit:e}){var h,c;const n=t,i=o.computed(()=>{var _,p;return((_=n.handList)==null?void 0:_.length)===((p=n.list)==null?void 0:p.length)}),l=o.computed(()=>{var m,b,y,w;const _=(m=n.handList)==null?void 0:m.length,p=(b=n.list)==null?void 0:b.length;return n.multiple?r.value=n.handList.map(v=>v[n.fixPropOpt.id]):a.value=(w=(y=n.handList)==null?void 0:y[0])==null?void 0:w[n.fixPropOpt.id],_>0&&_<p}),r=o.ref(n.handList.map(_=>_[n.fixPropOpt.id])),a=o.ref((c=(h=n.handList)==null?void 0:h[0])==null?void 0:c[n.fixPropOpt.id]),s=e,d=_=>{const p=_?n.list.map(m=>m[n.fixPropOpt.id]):[];s("change",p,_?n.list:[])},f=_=>{s("change",_,n.list)},u=_=>{s("change",_,n.list)},g=(_,p)=>{p||s("handChild",_)};return(_,p)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createCommentVNode(" 遍历list多选 "),o.createElementVNode("div",jb,[_.multiple?(o.openBlock(),o.createBlock(o.unref(S.ElCheckbox),{key:0,modelValue:i.value,"onUpdate:modelValue":p[0]||(p[0]=m=>i.value=m),indeterminate:l.value,onChange:d},{default:o.withCtx(()=>[o.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):o.createCommentVNode("v-if",!0),_.list&&_.list.length?(o.openBlock(),o.createElementBlock("ul",Wb,[_.multiple?(o.openBlock(),o.createBlock(o.unref(S.ElCheckboxGroup),{key:0,modelValue:r.value,"onUpdate:modelValue":p[1]||(p[1]=m=>r.value=m),onChange:f},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(_.list,m=>(o.openBlock(),o.createElementBlock("li",{key:m[n.fixPropOpt.id]},[o.createVNode(o.unref(S.ElCheckbox),{label:m[n.fixPropOpt.id]},{default:o.withCtx(()=>[o.createElementVNode("div",Gb,[o.createElementVNode("div",qb,[o.createVNode(jt,{fixTypeOpt:n.fixTypeOpt,fixPropOpt:n.fixPropOpt,element:m,imageBaseUrl:n.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),o.createElementVNode("p",null,[o.createElementVNode("span",null,o.toDisplayString(m[n.fixPropOpt.name]),1),m[n.fixPropOpt.type]===n.fixTypeOpt.group?(o.openBlock(),o.createElementBlock("span",Yb,"("+o.toDisplayString(m.userCount)+")",1)):o.createCommentVNode("v-if",!0)])])]),_:2},1032,["label"]),m[n.fixPropOpt.type]===n.fixTypeOpt.group&&n.children?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(["nextLevel",{"is-disabled":r.value.find(b=>b===m[n.fixPropOpt.id])}]),onClick:b=>g(m,r.value.find(y=>y===m[n.fixPropOpt.id]))}," 下级",10,Qb)):o.createCommentVNode("v-if",!0)]))),128))]),_:1},8,["modelValue"])):(o.openBlock(),o.createBlock(o.unref(S.ElRadioGroup),{key:1,isIndeterminate:l.value,modelValue:a.value,"onUpdate:modelValue":p[2]||(p[2]=m=>a.value=m),onChange:u},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(_.list,m=>(o.openBlock(),o.createElementBlock("li",{class:"w-full",key:m[n.fixPropOpt.id]},[o.createVNode(o.unref(S.ElRadio),{label:m[n.fixPropOpt.id]},{default:o.withCtx(()=>[o.createElementVNode("div",Zb,[o.createElementVNode("div",Kb,[o.createVNode(jt,{fixTypeOpt:n.fixTypeOpt,fixPropOpt:n.fixPropOpt,element:m,imageBaseUrl:n.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),o.createElementVNode("p",null,[o.createElementVNode("span",null,o.toDisplayString(m[n.fixPropOpt.name]),1),m[n.fixPropOpt.type]===n.fixTypeOpt.group?(o.openBlock(),o.createElementBlock("span",Xb,"("+o.toDisplayString(m.userCount)+")",1)):o.createCommentVNode("v-if",!0)])])]),_:2},1032,["label"])]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(o.openBlock(),o.createElementBlock("div",Jb,[e4,o.createElementVNode("div",null,o.toDisplayString(n.emptyText),1)]))])],2112))}}),UC="",n4=K(t4,[["__scopeId","data-v-33f94c51"]]),o4=t=>(o.pushScopeId("data-v-95cdb4dd"),t=t(),o.popScopeId(),t),i4={class:"left-pick-list"},l4={key:1,class:"post-view-list"},r4={class:"iconBox"},a4={class:"ik-picker-single"},s4={class:"iconBox"},c4={key:2,class:"empty"},d4=o4(()=>o.createElementVNode("img",{src:ml,alt:""},null,-1)),u4=o.defineComponent({__name:"PostList",props:gl,emits:["change","check"],setup(t,{emit:e}){var g,h;const n=t,i=o.computed(()=>{var c,_;return((c=n.handList)==null?void 0:c.length)===((_=n.list)==null?void 0:_.length)}),l=o.computed(()=>{var p,m,b,y;const c=(p=n.handList)==null?void 0:p.length,_=(m=n.list)==null?void 0:m.length;return n.multiple?r.value=n.handList.map(w=>w[n.fixPropOpt.id]):a.value=(y=(b=n.handList)==null?void 0:b[0])==null?void 0:y[n.fixPropOpt.id],c>0&&c<_}),r=o.ref(n.handList.map(c=>c[n.fixPropOpt.id])),a=o.ref((h=(g=n.handList)==null?void 0:g[0])==null?void 0:h[n.fixPropOpt.id]),s=e,d=c=>{const _=c?n.list.map(p=>p[n.fixPropOpt.id]):[];s("change",_,c?n.list:[])},f=c=>{s("change",c,n.list)},u=c=>{s("change",c,n.list)};return(c,_)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createCommentVNode(" 遍历list多选 "),o.createElementVNode("div",i4,[c.multiple?(o.openBlock(),o.createBlock(o.unref(S.ElCheckbox),{key:0,modelValue:i.value,"onUpdate:modelValue":_[0]||(_[0]=p=>i.value=p),indeterminate:l.value,onChange:d},{default:o.withCtx(()=>[o.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):o.createCommentVNode("v-if",!0),c.list&&c.list.length?(o.openBlock(),o.createElementBlock("ul",l4,[c.multiple?(o.openBlock(),o.createBlock(o.unref(S.ElCheckboxGroup),{key:0,modelValue:r.value,"onUpdate:modelValue":_[1]||(_[1]=p=>r.value=p),onChange:f},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.list,p=>(o.openBlock(),o.createElementBlock("li",{key:p[n.fixPropOpt.id]},[o.createVNode(o.unref(S.ElCheckbox),{label:p[n.fixPropOpt.id]},{default:o.withCtx(()=>[o.createElementVNode("div",r4,[o.createVNode(jt,{fixTypeOpt:n.fixTypeOpt,fixPropOpt:n.fixPropOpt,element:p,imageBaseUrl:n.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),o.createElementVNode("p",null,o.toDisplayString(p[n.fixPropOpt.name]),1)]),_:2},1032,["label"])]))),128))]),_:1},8,["modelValue"])):(o.openBlock(),o.createBlock(o.unref(S.ElRadioGroup),{key:1,isIndeterminate:l.value,modelValue:a.value,"onUpdate:modelValue":_[2]||(_[2]=p=>a.value=p),onChange:u},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.list,p=>(o.openBlock(),o.createElementBlock("li",{class:"w-full",key:p[n.fixPropOpt.id]},[o.createVNode(o.unref(S.ElRadio),{label:p[n.fixPropOpt.id]},{default:o.withCtx(()=>[o.createElementVNode("div",a4,[o.createElementVNode("div",s4,[o.createVNode(jt,{fixTypeOpt:n.fixTypeOpt,fixPropOpt:n.fixPropOpt,element:p,imageBaseUrl:n.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),o.createElementVNode("p",null,o.toDisplayString(p[n.fixPropOpt.name]),1)])]),_:2},1032,["label"])]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(o.openBlock(),o.createElementBlock("div",c4,[d4,o.createElementVNode("div",null,o.toDisplayString(n.emptyText),1)]))])],2112))}}),jC="",f4=K(u4,[["__scopeId","data-v-95cdb4dd"]]),p4=t=>(o.pushScopeId("data-v-79596f8b"),t=t(),o.popScopeId(),t),h4={class:"left-pick-list"},m4={key:1,class:"role-view-list"},g4={class:"iconBox"},_4=["title"],y4={class:"ik-picker-single"},b4={class:"iconBox"},E4=["title"],k4={key:2,class:"empty"},C4=p4(()=>o.createElementVNode("img",{src:ml,alt:""},null,-1)),w4=o.defineComponent({__name:"RoleList",props:gl,emits:["change","check"],setup(t,{emit:e}){var g,h;const n=t,i=o.computed(()=>{var c,_;return((c=n.handList)==null?void 0:c.length)===((_=n.list)==null?void 0:_.length)}),l=o.computed(()=>{var p,m,b,y;const c=(p=n.handList)==null?void 0:p.length,_=(m=n.list)==null?void 0:m.length;return n.multiple?r.value=n.handList.map(w=>w[n.fixPropOpt.id]):a.value=(y=(b=n.handList)==null?void 0:b[0])==null?void 0:y[n.fixPropOpt.id],c>0&&c<_}),r=o.ref(n.handList.map(c=>c[n.fixPropOpt.id])),a=o.ref((h=(g=n.handList)==null?void 0:g[0])==null?void 0:h[n.fixPropOpt.id]),s=e,d=c=>{const _=c?n.list.map(p=>p[n.fixPropOpt.id]):[];s("change",_,c?n.list:[])},f=c=>{s("change",c,n.list)},u=c=>{s("change",c,n.list)};return(c,_)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createCommentVNode(" 遍历list多选 "),o.createElementVNode("div",h4,[c.multiple?(o.openBlock(),o.createBlock(o.unref(S.ElCheckbox),{key:0,modelValue:i.value,"onUpdate:modelValue":_[0]||(_[0]=p=>i.value=p),indeterminate:l.value,onChange:d},{default:o.withCtx(()=>[o.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):o.createCommentVNode("v-if",!0),c.list&&c.list.length?(o.openBlock(),o.createElementBlock("ul",m4,[c.multiple?(o.openBlock(),o.createBlock(o.unref(S.ElCheckboxGroup),{key:0,modelValue:r.value,"onUpdate:modelValue":_[1]||(_[1]=p=>r.value=p),onChange:f},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.list,p=>(o.openBlock(),o.createElementBlock("li",{key:p[c.fixPropOpt.id]},[o.createVNode(o.unref(S.ElCheckbox),{label:p[c.fixPropOpt.id],value:p[c.fixPropOpt.id],disabled:p.disabled},{default:o.withCtx(()=>[o.createElementVNode("div",g4,[o.createVNode(jt,{fixTypeOpt:n.fixTypeOpt,fixPropOpt:n.fixPropOpt,element:p,imageBaseUrl:n.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),o.createElementVNode("p",{title:p[c.fixPropOpt.name]},o.toDisplayString(p[c.fixPropOpt.name]),9,_4)]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["modelValue"])):(o.openBlock(),o.createBlock(o.unref(S.ElRadioGroup),{key:1,indeterminate:l.value,modelValue:a.value,"onUpdate:modelValue":_[2]||(_[2]=p=>a.value=p),onChange:u},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.list,p=>(o.openBlock(),o.createElementBlock("li",{class:"w-full",key:p[c.fixPropOpt.id]},[o.createVNode(o.unref(S.ElRadio),{label:p[c.fixPropOpt.id],value:p[c.fixPropOpt.id],disabled:p.disabled},{default:o.withCtx(()=>[o.createElementVNode("div",y4,[o.createElementVNode("div",b4,[o.createVNode(jt,{fixTypeOpt:n.fixTypeOpt,fixPropOpt:n.fixPropOpt,element:p,imageBaseUrl:n.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),o.createElementVNode("p",{title:p[c.fixPropOpt.name]},o.toDisplayString(p[c.fixPropOpt.name]),9,E4)])]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["indeterminate","modelValue"]))])):(o.openBlock(),o.createElementBlock("div",k4,[C4,o.createElementVNode("div",null,o.toDisplayString(n.emptyText),1)]))])],2112))}}),WC="",v4=K(w4,[["__scopeId","data-v-79596f8b"]]);var Ln=(t=>(t.group="group",t.role="role",t.post="post",t))(Ln||{});const S4={children:{type:Boolean,default:!0},topLink:{type:Boolean,default:!0},modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},orgPid:{type:String,default:""},org:{type:Object,default:()=>null},immediate:{type:Boolean,default:!1},show:{type:Boolean,default:!1,required:!0},width:{type:String,default:"685px"},height:{type:String,default:"580px"},title:{type:String,default:"选择人员"},groupList:{type:Array,default:()=>[]},userList:{type:Array,default:()=>[]},roleList:{type:Array,default:()=>[]},postList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},tabs:{type:Array,validator:t=>{if(t===void 0)return!0;if(Array.isArray(t)){if(!(t!=null&&t.length))return!1}else return console.error("IkingPicker参数错误:tabs必须是Array类型"),!1;return!0},default:()=>["group","role","post"]},chooseType:{type:Array,default:()=>["dep"]},api:{type:Object,default:()=>({methods:"post",headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:"Bearer 9aa65e31e86f4232ac4e4136fb1d3413"},url:`${location.origin}${location.pathname}/serve/component/pick/mix`,param:null,paramKey:"type"})},typeOption:{type:Object,default:()=>{}},propOption:{type:Object,default:()=>null},search:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},imageBaseUrl:{type:String,default:""},placeholder:{type:String,default:"请输入"},emptyText:{type:String,default:"暂无数据"}},bc=t=>{const e=window.location.search;return new URLSearchParams(e).get(t)},A4=t=>{const e=$.ikStore.local.getItem("x_domain");e&&(t["X-DOMAIN"]=e)},x4=t=>{var i;const e=bc("domain");if(e){t["X-DOMAIN"]=e;const l=bc("code");e==="APPLICATION"&&(t["X-APP"]=l)}else A4(t);const n=(i=$.ikStore.local.getItem("tenant"))==null?void 0:i.code;n&&(t["X-TENANT"]=n)},D4=(t,e)=>{const n=o.ref([]),i=async(r,a)=>{var C,k;const{url:s,methods:d,headers:f,param:u}=t.value||{},g={...u||{},parentDepartmentId:r||"",name:a||""},h={method:d,url:s,headers:{"Content-Type":"application/json;charset=UTF-8",...f},data:JSON.stringify(g)};x4(h.headers);const c=await Wl(h),{success:_,data:p}=c.data;if(!_)return{groupList:[],roleList:[],postList:[],userList:[],rootOrganization:{},rootDepartment:{}};const{departments:m,roles:b,posts:y,users:w,rootOrganization:v,rootDepartment:O}=p,x=v||O;return n.value.length===0&&(n.value[0]=e.org?{...e.org,id:e.elementId,elementType:(k=(C=e.org)==null?void 0:C.elementType)==null?void 0:k.toLocaleUpperCase()}:{...x,id:x.elementId}),{groupList:$._.cloneDeep(m),roleList:$._.cloneDeep(b),postList:$._.cloneDeep(y),userList:$._.cloneDeep(w),rootOrganization:v,rootDepartment:O}};return{handData:i,handSetChild:(r,a)=>{i(r==null?void 0:r.elementId,a)},bannerList:n}},N4={shadow:"hover",class:"sel-list"},V4={key:0},B4=o.createElementVNode("div",{class:"split-div"},null,-1),T4={class:"choose-list"},R4={class:"choose-item"},I4=o.createElementVNode("div",null,"已选",-1),O4={class:"choose-box"},M4={class:"list-group-item"},L4={class:""},P4={class:"avatar_box"},$4={class:"dialog-footer"},z4=o.defineComponent({__name:"picker",props:S4,emits:["handChild","update:show","update:modelValue","ok","search"],setup(t,{expose:e,emit:n}){o.useCssVars(R=>({"33b71112":We.value}));const i=t,l=o.ref(""),r=o.ref(""),a=o.ref([]),s=o.ref([]),d=o.ref([]),f=o.ref([]),u=o.ref(!1),g=o.computed(()=>s.value.concat(a.value));o.watch(()=>i.api,()=>{i.show&&C("")});const h=o.computed(()=>({name:"name",type:"type",id:"id",avatar:"avatar",...i.propOption})),c=o.computed(()=>({user:"USER",role:"ROLE",post:"POST",group:"DEPT",...i.typeOption})),_=o.ref([]),p=D4(o.toRef(i,"api"),i),m=p.handData,b=p.bannerList;i.immediate&&m(r.value,l.value);const y=R=>(R.forEach(z=>{var Q,X;z.disabled=((X=(Q=i.modelValue)==null?void 0:Q.find(ne=>ne[h.value.id]===z[h.value.id]))==null?void 0:X.disabled)||!1}),R),w=async()=>{var R,z,Q,X,ne,$e,Gn,gn;u.value=!0;try{if((R=i.groupList)!=null&&R.length||(z=i.userList)!=null&&z.length||(Q=i.roleList)!=null&&Q.length||(X=i.postList)!=null&&X.length){a.value=(ne=i.userList)==null?void 0:ne.filter(D=>D[h.value.name].includes(l.value)),s.value=($e=i.groupList)==null?void 0:$e.filter(D=>D[h.value.name].includes(l.value)),d.value=(Gn=i.roleList)==null?void 0:Gn.filter(D=>D[h.value.name].includes(l.value)),f.value=(gn=i.postList)==null?void 0:gn.filter(D=>D[h.value.name].includes(l.value)),W(),u.value=!1;return}const Re=await m(r.value,l.value);try{a.value=y((Re==null?void 0:Re.userList)||[]),s.value=y((Re==null?void 0:Re.groupList)||[]),d.value=y((Re==null?void 0:Re.roleList)||[]),f.value=y((Re==null?void 0:Re.postList)||[])}catch(D){u.value=!1,console.info("error: ",D)}W(),u.value=!1}catch{u.value=!1}},v=o.reactive({group:new Map,user:new Map,role:new Map,post:new Map,trans:[],single:""}),O=o.reactive({indeterminate:!1,checkAll:0}),x=R=>v.group.has(R)||v.user.has(R)||v.role.has(R)||v.post.has(R),C=$.ikEvent.debounce(w,300),k=o.computed(()=>{const R=Array.from(v.group.values()),z=Array.from(v.role.values()),Q=Array.from(v.user.values()),X=Array.from(v.post.values());return _.value=[...z,...X,...Q,...R],{list:[...z,...Q,...X,...R],role:{list:z,len:z.length},user:{list:Q,len:Q.length},post:{list:X,len:X.length},groups:{list:R,len:R.length}}}),B=o.computed(()=>[...i.chooseType.map(Q=>Q.toLocaleLowerCase())]),V=o.ref([]),P=R=>{V.value=R,V.value.forEach(z=>{z.readonly=z==null?void 0:z.disabled})},T=n,F=o.ref(!1),W=(R=!1)=>{var Q;const z=(Q=i==null?void 0:i.userList)!=null&&Q.length?$._.cloneDeep([...i==null?void 0:i.userList,...i==null?void 0:i.groupList]):[...s.value,...a.value];return!R&&P(z),z};o.watch(()=>i.show,async R=>{var z;if(F.value=R,R){r.value=((z=i.org)==null?void 0:z.elementId)||i.orgPid,!i.userList.length&&!i.groupList.length&&!i.roleList.length&&!i.postList.length?await w():(a.value=i.userList,s.value=i.groupList,d.value=i.roleList,f.value=i.postList),v.trans=[],O.checkAll=0,O.indeterminate=!1;const Q=W(!0);for(const ne of Q)x(ne[h.value.id])&&v.trans.push(ne[h.value.id]);const X=Q.length===v.trans.length;O.indeterminate=!!(Q.length&&!X),O.checkAll=Number(Q.length&&X),o.nextTick(()=>{var ne;(ne=i.modelValue)!=null&&ne.length?i.modelValue.forEach($e=>{Ce($e),i.multiple?v.trans.push($e[h.value.id]):v.single=$e[h.value.id]}):Z()})}else Z()}),o.watchEffect(()=>{let R;R=V.value.length;const z=v.trans.length;O.indeterminate=v.trans.length?z!==R:!1,O.checkAll=+(R!==0&&z===R)});const M=R=>{if(R){if(v.single="",R[h.value.id]){const z=v.trans.findIndex(Q=>Q===R[h.value.id]);z!==-1&&v.trans.splice(z,1)}switch(R[h.value.type]){case c.value.user:return v.user.delete(R[h.value.id]);case c.value.role:return v.role.delete(R[h.value.id]);case c.value.post:return v.post.delete(R[h.value.id]);case c.value.group:return v.group.delete(R[h.value.id]);default:return}}},ie=R=>{M(R)},Ce=R=>{if(!x(R[h.value.id])){const z={...R};switch(R[h.value.type]){case c.value.user:return v.group.set(R[h.value.id],z);case c.value.role:return v.role.set(R[h.value.id],z);case c.value.post:return v.post.set(R[h.value.id],z);case c.value.group:return v.group.set(R[h.value.id],z);default:return}}},dt=R=>[c.value.group].includes(R[h.value.type])?R.hasOwnProperty("disabled"):!1;o.watch(()=>v.trans,R=>{if(!R.length)V.value.forEach(z=>{z.disabled=!1;try{i.multiple&&M(z)}catch{}});else{const z=V.value.filter(X=>!R.includes(X[h.value.id]));for(const X of z)X.disabled=!1,i.multiple&&M(X);const Q=V.value.filter(X=>R.includes(X[h.value.id]));for(const X of Q)X.disabled=dt(X),Ce(X)}},{deep:!0}),o.watch(()=>v.single,R=>{if(R){const z=V.value.find(Q=>Q[h.value.id]===R);z&&(v.user.clear(),v.role.clear(),v.post.clear(),v.group.clear(),v.trans=[],o.nextTick(()=>{Ce(z)}))}});const ke=R=>{r.value=R==null?void 0:R.elementId,w(),b.value.push(R)},ut=o.computed(()=>b.value.length),ae=(R,z)=>{!z&&!i.topLink||z!==ut.value-1&&(r.value=R==null?void 0:R.elementId,w(),b.value.splice(z+1))},I=o.computed(()=>i.chooseType.includes("role")&&i.chooseType.length===1),J=o.computed(()=>i.chooseType.includes("post")&&i.chooseType.length===1),G=o.ref(i.tabs[0]),H=o.ref(i.tabs[0]);o.watchEffect(()=>(H.value=I.value?i.tabs[1]:J.value?i.tabs[2]:G.value,H.value));const Z=()=>{v.user.clear(),v.role.clear(),v.post.clear(),v.group.clear(),v.trans=[],Ve.value=[],Te.value=[],G.value=i.tabs[0],H.value=i.tabs[0],l.value="",r.value=i.orgPid,b.value.splice(1,b.value.length),v.single="",_.value=[]},ce=()=>{var R;T("ok",$._.cloneDeep({...k.value,sort:_.value})),T("update:modelValue",$._.cloneDeep(((R=k.value)==null?void 0:R.list)||[])),T("update:show",!1),Z()},se=()=>{T("update:show",!1),Z()};e({handClear:Z,handRomeve:ie,handDelete:M});const le=o.computed(()=>{const R=B.value;return!!((R.includes("post")||R.includes("role"))&&R.length>1)}),te=o.computed(()=>[{name:"group",label:"组织架构"},{name:"role",label:"角色列表"},{name:"post",label:"岗位列表"}].filter(R=>i.tabs.includes(R.name))),We=o.computed(()=>`${typeof i.height=="string"?Number.parseInt(i.height):i.height}px`),ft=()=>{i.multiple||(v.post.clear(),v.role.clear(),v.user.clear(),v.group.clear(),v.single="")},Bt=o.ref([]),tt=(R,z)=>{i.multiple||(v.single="");const Q=i.multiple?R:[R];if(!Q.length){v.group.clear();return}ft(),z.forEach(X=>{Q!=null&&Q.includes(X[h.value.id])?Ce(X):M(X)})};o.watch(()=>k.value.groups.len,R=>{Bt.value=$._.cloneDeep(k.value.groups.list)});const Ve=o.ref([]),Be=(R,z)=>{i.multiple||(v.single="");const Q=i.multiple?R:[R];if(!Q.length){v.role.clear();return}ft(),z.forEach(X=>{Q!=null&&Q.includes(X[h.value.id])?Ce(X):M(X)})};o.watch(()=>k.value.role.len,R=>{Ve.value=$._.cloneDeep(k.value.role.list)});const Te=o.ref([]),Ge=(R,z)=>{i.multiple||(v.single="");const Q=i.multiple?R:[R];if(!Q.length){v.post.clear();return}ft(),z.forEach(X=>{Q!=null&&Q.includes(X[h.value.id])?Ce(X):M(X)})};return o.watch(()=>k.value.post.len,R=>{Te.value=$._.cloneDeep(k.value.post.list)}),o.watch(()=>l.value,R=>{C("")}),(R,z)=>{const Q=o.resolveComponent("el-tab-pane"),X=o.resolveComponent("el-tabs");return o.openBlock(),o.createBlock(o.unref(S.ElDialog),{modelValue:F.value,"onUpdate:modelValue":z[2]||(z[2]=ne=>F.value=ne),title:R.title,"destroy-on-close":"","close-on-click-modal":!1,"close-on-click-escape":!1,draggable:"","align-center":"",width:typeof R.width=="string"?R.width:`${R.width}%`,class:"p_p_picker-dialog","modal-class":"p_p_picker-dialog-modal-user",onClose:se},{footer:o.withCtx(()=>[o.createElementVNode("span",$4,[o.createVNode(o.unref(S.ElButton),{onClick:o.withModifiers(se,["stop"])},{default:o.withCtx(()=>[o.createTextVNode("取消")]),_:1}),o.createVNode(o.unref(S.ElButton),{type:"primary",onClick:o.withModifiers(ce,["stop"])},{default:o.withCtx(()=>[o.createTextVNode(" 确定 ")]),_:1})])]),default:o.withCtx(()=>[o.createElementVNode("div",{class:"dep-use-picker",style:o.normalizeStyle({height:We.value})},[o.createElementVNode("div",N4,[o.createElementVNode("div",null,[o.createVNode(o.unref(S.ElInput),{modelValue:l.value,"onUpdate:modelValue":z[0]||(z[0]=ne=>l.value=ne),clearable:"",placeholder:R.placeholder,"suffix-icon":yb},null,8,["modelValue","placeholder"]),le.value?(o.openBlock(),o.createBlock(X,{key:0,modelValue:G.value,"onUpdate:modelValue":z[1]||(z[1]=ne=>G.value=ne),class:"ik-picker-tab"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(te.value,ne=>(o.openBlock(),o.createBlock(Q,{label:ne.label,name:ne.name,key:ne.label},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):o.createCommentVNode("v-if",!0)]),o.createCommentVNode(" 过滤 "),H.value===o.unref(Ln).group?(o.openBlock(),o.createElementBlock("div",V4,[o.createCommentVNode(" 面包屑 全选 "),o.createVNode(o.unref(S.ElBreadcrumb),{separator:">",class:o.normalizeClass(["banner",{"top-unlink":!R.topLink}])},{default:o.withCtx(()=>[ut.value?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(o.unref(b),(ne,$e)=>(o.openBlock(),o.createBlock(o.unref(S.ElBreadcrumbItem),{key:ne[h.value.id],onClick:o.withModifiers(Gn=>ae(ne,$e),["stop"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(ne[h.value.name]),1)]),_:2},1032,["onClick"]))),128)):o.createCommentVNode("v-if",!0)]),_:1},8,["class"])])):o.createCommentVNode("v-if",!0),o.createCommentVNode(" 左侧列表 "),o.createCommentVNode(" 组织架构 "),H.value===o.unref(Ln).group?o.withDirectives((o.openBlock(),o.createBlock(n4,{key:1,fixPropOpt:h.value,fixTypeOpt:c.value,list:g.value,max:R.max,multiple:R.multiple,"hand-list":Bt.value,imageBaseUrl:i.imageBaseUrl,emptyText:i.emptyText,children:i.children,onHandChild:ke,onChange:tt},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","children"])),[[o.unref(S.vLoading),u.value]]):H.value===o.unref(Ln).role?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createCommentVNode(" 角色 "),o.withDirectives(o.createVNode(v4,{fixPropOpt:h.value,fixTypeOpt:c.value,list:d.value,max:R.max,multiple:R.multiple,"hand-list":Ve.value,imageBaseUrl:i.imageBaseUrl,emptyText:i.emptyText,onChange:Be},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText"]),[[o.unref(S.vLoading),u.value]])],64)):H.value===o.unref(Ln).post?(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createCommentVNode(" 岗位 "),o.withDirectives(o.createVNode(f4,{fixPropOpt:h.value,fixTypeOpt:c.value,list:f.value,max:R.max,multiple:R.multiple,"hand-list":Te.value,imageBaseUrl:i.imageBaseUrl,emptyText:i.emptyText,onChange:Ge},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText"]),[[o.unref(S.vLoading),u.value]])],64)):o.createCommentVNode("v-if",!0)]),B4,o.createCommentVNode(" 已选列表 "),o.createElementVNode("div",T4,[o.createElementVNode("div",R4,[I4,o.createVNode(o.unref(S.ElButton),{type:"primary",link:"",onClick:o.withModifiers(Z,["stop"])},{default:o.withCtx(()=>[o.createTextVNode("清空")]),_:1})]),o.createElementVNode("ul",O4,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(_.value,ne=>(o.openBlock(),o.createElementBlock("li",M4,[o.createElementVNode("div",L4,[o.createCommentVNode(" icon前缀 "),o.createElementVNode("div",P4,[o.createVNode(jt,{fixTypeOpt:c.value,fixPropOpt:h.value,element:ne,imageBaseUrl:i.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),o.createElementVNode("span",null,o.toDisplayString(ne[h.value.name]),1)]),o.withDirectives(o.createVNode(wb,{class:"close",onClick:o.withModifiers($e=>ie(ne),["stop"])},null,8,["onClick"]),[[o.vShow,!(ne!=null&&ne.readonly)]])]))),256))])])],4)]),_:1},8,["modelValue","title","width"])}}}),GC="",F4=de(z4),qC="",H4=de(o.defineComponent({name:"IkBtnContent",components:{MoreFilled:Jl},props:{num:{type:Number,default:3},trigger:{type:String,default:"click"},placement:{type:String,default:"bottom"}},setup(t,{slots:e,attrs:n}){const i=o.ref(null),l=o.ref(0),r=a=>a==null?void 0:a.filter(s=>typeof s.children!="string");return o.watchEffect(()=>{var a,s,d;i.value=(s=(a=e.default)==null?void 0:a.call(e))==null?void 0:s.filter(f=>typeof f.children!="string"),l.value=((d=i.value)==null?void 0:d.length)||0}),()=>{var a,s;return o.createVNode("div",{class:"flex"},[(s=r((a=e.default)==null?void 0:a.call(e)))==null?void 0:s.map((d,f)=>f+1>t.num?null:d),l.value>t.num?o.createVNode(o.resolveComponent("el-dropdown"),{trigger:t.trigger,"popper-class":"gl-btn-content"},{default:()=>o.createVNode(o.resolveComponent("el-icon"),{title:"更多",class:"ml-[12px] more-operate"},{default:()=>[o.createVNode(Jl,null,null)]}),dropdown:()=>o.createVNode(o.resolveComponent("el-dropdown-menu"),null,{default:()=>{var d,f;return[l.value>t.num?(f=r((d=e.default)==null?void 0:d.call(e)))==null?void 0:f.map((u,g)=>g<t.num?null:o.createVNode(o.resolveComponent("el-dropdown-item"),null,{default:()=>{var h,c;return[o.withDirectives(o.createVNode(o.resolveComponent("el-button"),o.mergeProps(u==null?void 0:u.props,{link:!0}),{default:()=>{var _,p;return[((_=u==null?void 0:u.props)==null?void 0:_.title)||((p=u==null?void 0:u.props)==null?void 0:p.label)]}}),[[o.resolveDirective("role"),(c=(h=u==null?void 0:u.dirs)==null?void 0:h[0])==null?void 0:c.value]])]}})):null]}})}):null])}}})),U4=o.defineComponent({__name:"index",props:{title:{type:String,default:""},type:{type:String,default:"success"},color:{type:String,default:""},background:{type:String,default:""},effect:{type:String,default:"light"},circle:{type:Boolean,default:!1},circleW:{type:Number,default:8},circleH:{type:Number,default:8},borderWidth:{type:Number,default:1},borderType:{type:String,default:"solid"}},setup(t){const e=t,n=o.computed(()=>e.type?"":{color:e.color,backgroundColor:e.background,borderColor:e.color});return(i,l)=>{const r=o.resolveComponent("el-tag");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createCommentVNode(' <div :style="{ border: `${borderWidth}px ${borderType} ${comColor}` }">\r\n <span :style="{ backgroundColor: comColor }"></span>\r\n <p>{{ title }}</p>\r\n </div> '),o.createVNode(r,{effect:t.effect,class:"ik-statu-tag",type:t.type,style:o.normalizeStyle(n.value)},{default:o.withCtx(()=>[t.circle?(o.openBlock(),o.createElementBlock("span",{key:0,class:"inline-block rounded-full",style:o.normalizeStyle({backgroundColor:`var(--el-color-${t.type})`,width:`${t.circleW}px`,height:`${t.circleH}px`})},null,4)):o.createCommentVNode("v-if",!0),o.createTextVNode(" "+o.toDisplayString(t.title),1)]),_:1},8,["effect","type","style"])],2112)}}}),ZC="",j4=de(K(U4,[["__scopeId","data-v-241ac18b"]])),W4=de(o.defineComponent({__name:"index",props:{effect:{type:String,default:"dark"},content:{type:String,default:""},placement:{type:String,default:"bottom-start"}},setup(t){const e=t,n=o.computed(()=>e.effect);return(i,l)=>{const r=o.resolveComponent("el-tooltip");return o.openBlock(),o.createBlock(r,{class:"gl-tooltip",effect:n.value,content:t.content,placement:t.placement,enterable:!1},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"default")]),_:3},8,["effect","content","placement"])}}})),G4=(t=>(o.pushScopeId("data-v-b848b0c7"),t=t(),o.popScopeId(),t))(()=>o.createElementVNode("i",{class:"ik ik-shezhi"},null,-1)),q4={class:"check-right"},Y4={class:"dialog-footer"},Q4=o.defineComponent({__name:"IkBtnSetting",props:o.mergeModels({list:{type:Array,default:()=>[]},tab:{type:[String,Number],default:""},type:{type:String,default:"primary"},btnType:{type:String,default:"icon"},circle:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},role:{type:String,default:""},config:{type:Object,default:()=>({t:t=>t,dialog:{l:"700px",sl:"600px"},path:"user_0",user:{id:"111"}})}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:o.mergeModels(["sort"],["update:modelValue"]),setup(t,{emit:e}){const n=t,i=e,l=o.useModel(t,"modelValue"),{t:r,dialog:a,path:s,user:d}=n.config,f=o.computed(()=>`${d==null?void 0:d.id}_${s}${n.tab!==""?`_${n.tab}`:""}`),u=o.ref([]),g=o.ref([]),h=o.ref([]),c=new Map,_=o.ref(!1),p=o.computed(()=>{const C=g.value.length&&g.value.length!==n.list.length;return!C&&g.value.length&&(_.value=!0),!!C}),m=C=>{var B;const k=$._.cloneDeep(h.value);k==null||k.forEach(V=>{var P;if(!g.value.length)h.value=[];else if(!g.value.includes(V==null?void 0:V.key)){const T=(P=h.value)==null?void 0:P.findIndex(F=>F.key===V.key);T!==-1&&h.value.splice(T,1),V.show=!1,c.set(V.key,V)}}),g.value.forEach(V=>{var T;if(((T=h.value)==null?void 0:T.findIndex(F=>(F==null?void 0:F.key)===V))===-1){const F=c.get(V);F&&(F.show=!0,h.value.push(F))}}),(B=h.value)!=null&&B.length||(h.value=$._.cloneDeep(n.list)),C===!0&&(i("sort",$._.cloneDeep(h.value)),l.value=$._.cloneDeep(h.value))},b=C=>{if(C)g.value=n.list.map(k=>k.key);else{const k=n.list.find(B=>!B.key||B.label==="操作");g.value=k?[k.key]:[]}m()},y=()=>{const C=$.ikStore.local.getItem(f.value);try{const k=$._.cloneDeep(n==null?void 0:n.list);if((!C||!(C!=null&&C.length))&&$.ikStore.local.setItem(f.value,k.map(({show:B,type:V,key:P,label:T,width:F,minWidth:W,align:M})=>({show:B,key:P,type:V,label:T,width:F,minWidth:W,align:M}))),u.value=[...(k==null?void 0:k.map(B=>(c.set(B.key,B),{...B,show:B.show||!1})))||[]],C){const B=C.filter(V=>V.show).map(V=>V.key);g.value=[...B]}else{const B=u.value.filter(V=>V.show);g.value=B.map(V=>V.key)}m(!0)}catch(k){console.info("error: ",k)}};y(),o.watch(()=>n.list,()=>{y()},{deep:!0});const w=o.ref(!1),v=()=>{w.value=!0},O=C=>{h.value=C},x=()=>{w.value=!1,$.ikStore.local.setItem(f.value,h.value.map(({show:C,key:k,label:B,value:V,width:P,minWidth:T,align:F})=>({show:C,key:k,label:B,value:V,width:P,minWidth:T,align:F}))),console.log("sortList ",h),i("sort",$._.cloneDeep(h.value)),l.value=$._.cloneDeep(h.value)};return(C,k)=>{const B=o.resolveComponent("el-button"),V=o.resolveComponent("el-checkbox"),P=o.resolveComponent("el-checkbox-group"),T=o.resolveComponent("el-dialog"),F=o.resolveDirective("role");return o.openBlock(),o.createElementBlock(o.Fragment,null,[t.btnType==="button"?o.withDirectives((o.openBlock(),o.createBlock(B,o.mergeProps({key:0},C.$attrs,{circle:t.circle,type:t.type,style:{minWidth:t.circle?"40px":"",minHeight:t.circle?"40px":""},onClick:v}),o.createSlots({icon:o.withCtx(()=>[G4]),_:2},[t.circle?void 0:{name:"default",fn:o.withCtx(()=>[o.createCommentVNode(' {{ t("action.setting") }} '),o.createTextVNode(" "+o.toDisplayString(o.unref(r)("设置")),1)]),key:"0"}]),1040,["circle","type","style"])),[[F,C.$props.role]]):o.createCommentVNode("v-if",!0),t.btnType==="icon"?o.withDirectives((o.openBlock(),o.createBlock(o.unref(me),o.mergeProps({key:1,name:"iksvg_shezhi-daohang","show-bg":"",size:"default"},C.$attrs,{onClick:v}),null,16)),[[F,C.$props.role]]):o.createCommentVNode("v-if",!0),o.createVNode(T,{modelValue:w.value,"onUpdate:modelValue":k[3]||(k[3]=W=>w.value=W),draggable:"",width:t.inline?o.unref(a).l:o.unref(a).sl,"close-on-click-modal":!1,"close-on-press-escape":!1,title:"显示字段","append-to-body":"",onOpen:y},{footer:o.withCtx(()=>[o.createElementVNode("div",Y4,[o.createVNode(B,{onClick:k[2]||(k[2]=W=>w.value=!1)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(r)("关闭"))+" ",1),o.createCommentVNode(' {{ t("action.close") }} ')]),_:1}),o.createVNode(B,{type:"primary",disabled:h.value.length<2,onClick:x},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(h.value.length<2?"至少选择一个字段":o.unref(r)("确定")),1)]),_:1},8,["disabled"])])]),default:o.withCtx(()=>[o.createElementVNode("div",{class:o.normalizeClass(["view-fields",[t.inline?null:"un-inline"]])},[o.createElementVNode("div",{style:o.normalizeStyle({flex:t.inline?2:1})},[o.createVNode(V,{modelValue:_.value,"onUpdate:modelValue":k[0]||(k[0]=W=>_.value=W),class:"single-line",indeterminate:p.value,onChange:b},{default:o.withCtx(()=>[o.createTextVNode(" 全选 ")]),_:1},8,["modelValue","indeterminate"]),o.createVNode(P,{modelValue:g.value,"onUpdate:modelValue":k[1]||(k[1]=W=>g.value=W),onChange:m},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,W=>(o.openBlock(),o.createBlock(V,{key:W.key,disabled:!W.key,label:W.key},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(W.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:1},8,["modelValue"])],4),o.createElementVNode("div",q4,[o.createVNode(o.unref(Cc),{list:h.value,"item-style":{bottom:4},onChange:O},null,8,["list"])])],2)]),_:1},8,["modelValue","width"])],64)}}}),ew="",Ec=de(K(Q4,[["__scopeId","data-v-b848b0c7"]])),kc={animation:200,group:"gl",disabled:!1,ghostClass:"ghost",sort:!0,delay:100,showIcon:!0,itemStyle:{radius:4,bottom:8,background:"var(--ik-sub-sidebar-menu-bg)"}},Z4={list:{required:!0,type:Array,default:[]},group:{type:String,default:"draggable"},sort:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},delay:{type:Number,default:0},touchStartThreshold:{type:Number,default:0},disabled:{type:Boolean,default:!1},animation:{type:Number,default:200},handle:{type:String,default:".mover"},filter:{type:String,default:".unmover"},draggable:{type:String,default:".item"},ghostClass:{type:String,default:"ghost"},chosenClass:{type:String,default:"chosen"},dragClass:{type:String,default:"drag"},forceFallback:{type:Boolean,default:!1},fallbackClass:{type:String,default:"fallback"},fallbackOnBody:{type:Boolean,default:!1},fallbackTolerance:{type:Number,default:8},scroll:{type:Boolean,default:!0},scrollFn:{type:Function,default:()=>{}},scrollFensitivity:{type:Number,default:30},scrollSpeed:{type:Number,default:30},itemClass:{type:String,default:""},groupClass:{type:String,default:""},itemStyle:{type:Object,default:()=>({radius:{type:Number,default:30},bottom:{type:Number,default:8},background:{type:String,default:"var(--ik-sub-sidebar-menu-bg)"}})}},K4=o.defineComponent({__name:"IkDragList",props:Z4,emits:["change"],setup(t,{emit:e}){const n=t,i=e,l=o.ref([]);o.watch(()=>n.list,f=>{l.value=$._.cloneDeep(f)},{immediate:!0,deep:!0});const r=o.computed(()=>({...kc,...n,itemStyle:{...kc.itemStyle,...n.itemStyle}})),a=o.ref(!1),s=()=>{a.value=!0},d=f=>{a.value=!1;const u=n.list[f.oldIndex];i("change",l.value,{...u,oldIndex:f.oldIndex,newIndex:f.newIndex})};return(f,u)=>{const g=o.resolveComponent("el-icon");return o.openBlock(),o.createBlock(o.unref(jl),{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=h=>l.value=h),class:o.normalizeClass(["list-group",[r.value.groupClass]]),tag:"ul",attrs:r.value,animation:r.value.animation,group:r.value.group,disabled:r.value.disabled,"ghost-class":r.value.ghostClass,"force-fallback":r.value.ghostClass,"item-key":"order",onStart:s,onEnd:d},{item:o.withCtx(({element:h})=>[o.createVNode(o.Transition,{type:"transition",name:"flip-list"},{default:o.withCtx(()=>[f.$slots.item?o.renderSlot(f.$slots,"item",{key:0,item:h},void 0,!0):(o.openBlock(),o.createElementBlock("li",{key:1,class:o.normalizeClass(["list-group-item",[r.value.itemClass]]),style:o.normalizeStyle({borderRadius:`${r.value.itemStyle.radius}px`,marginBottom:`${r.value.itemStyle.bottom}px`,backgroundColor:`${r.value.itemStyle.background}`})},[r.value.showIcon&&!f.$slots.icon?(o.openBlock(),o.createBlock(g,{key:0},{default:o.withCtx(()=>[o.createVNode(o.unref(Zd))]),_:1})):o.renderSlot(f.$slots,"icon",{key:1},void 0,!0),o.createTextVNode(" "+o.toDisplayString(h.label),1)],6))]),_:2},1024)]),_:3},8,["modelValue","class","attrs","animation","group","disabled","ghost-class","force-fallback"])}}}),nw="",Cc=de(K(K4,[["__scopeId","data-v-d2a34939"]])),wc={id:"4383166",name:"中台-双色图标",font_family:"iconfont",css_prefix_text:"iksvg_",description:"",glyphs:[{icon_id:"39724789",name:"停用",font_class:"tingyong2",unicode:"e6d8",unicode_decimal:59096},{icon_id:"39724779",name:"编辑",font_class:"bianji1",unicode:"e6d9",unicode_decimal:59097},{icon_id:"39724780",name:"移动",font_class:"yidong",unicode:"e6da",unicode_decimal:59098},{icon_id:"39724778",name:"下载",font_class:"xiazai2",unicode:"e6db",unicode_decimal:59099},{icon_id:"39720820",name:"关闭弹窗",font_class:"guanbidanchuang",unicode:"e6cd",unicode_decimal:59085},{icon_id:"705695",name:"眼睛",font_class:"yanjing",unicode:"e62b",unicode_decimal:58923},{icon_id:"1511006",name:"星星",font_class:"xingxing",unicode:"e602",unicode_decimal:58882},{icon_id:"9591222",name:"收藏",font_class:"shoucang",unicode:"e601",unicode_decimal:58881},{icon_id:"15640548",name:"取消收藏",font_class:"quxiaoshoucang",unicode:"e621",unicode_decimal:58913},{icon_id:"35556399",name:"取消固定",font_class:"quxiaoguding",unicode:"e6f6",unicode_decimal:59126},{icon_id:"36537322",name:"固定",font_class:"guding",unicode:"e6c7",unicode_decimal:59079},{icon_id:"27732960",name:"月亮",font_class:"yueliang",unicode:"e689",unicode_decimal:59017},{icon_id:"38956241",name:"消息模板",font_class:"xiaoximoban",unicode:"e6d7",unicode_decimal:59095},{icon_id:"38953952",name:"组织管理",font_class:"zuzhiguanli",unicode:"e6d6",unicode_decimal:59094},{icon_id:"38921721",name:"流程表单",font_class:"liuchengbiaodan",unicode:"e6ce",unicode_decimal:59086},{icon_id:"38153077",name:"设备管理 2",font_class:"a-shebeiguanli2",unicode:"e750",unicode_decimal:59216},{icon_id:"38153087",name:"巡线系统",font_class:"xunxianxitong",unicode:"e751",unicode_decimal:59217},{icon_id:"38153082",name:"隐患报表",font_class:"yinhuanbaobiao",unicode:"e752",unicode_decimal:59218},{icon_id:"38153079",name:"第三方施工管理",font_class:"disanfangshigongguanli",unicode:"e753",unicode_decimal:59219},{icon_id:"38153080",name:"考勤规则",font_class:"kaoqinguize",unicode:"e754",unicode_decimal:59220},{icon_id:"38153074",name:"人员监控",font_class:"renyuanjiankong",unicode:"e755",unicode_decimal:59221},{icon_id:"38153081",name:"应急预案管理",font_class:"yingjiyuanguanli",unicode:"e756",unicode_decimal:59222},{icon_id:"38153078",name:"维护保养",font_class:"weihubaoyang",unicode:"e757",unicode_decimal:59223},{icon_id:"38153075",name:"事故管理",font_class:"shiguguanli",unicode:"e758",unicode_decimal:59224},{icon_id:"38153076",name:"审批配置、巡线计划",font_class:"xunxianjihua1",unicode:"e759",unicode_decimal:59225},{icon_id:"38153073",name:"考勤统计",font_class:"kaoqintongji",unicode:"e75a",unicode_decimal:59226},{icon_id:"38153097",name:"隐患管理",font_class:"yinhuanguanli1",unicode:"e742",unicode_decimal:59202},{icon_id:"38153096",name:"型号管理",font_class:"xinghaoguanli",unicode:"e743",unicode_decimal:59203},{icon_id:"38153095",name:"设备管理",font_class:"shebeiguanli1",unicode:"e744",unicode_decimal:59204},{icon_id:"38153092",name:"证照管理",font_class:"zhengzhaoguanli",unicode:"e745",unicode_decimal:59205},{icon_id:"38153094",name:"SCAD场站监控",font_class:"SCADchangzhanjiankong",unicode:"e746",unicode_decimal:59206},{icon_id:"38153093",name:"巡线报表",font_class:"xunxianbaobiao",unicode:"e747",unicode_decimal:59207},{icon_id:"38153085",name:"视频管理",font_class:"shipinguanli",unicode:"e748",unicode_decimal:59208},{icon_id:"38153090",name:"证件管理",font_class:"zhengjianguanli",unicode:"e749",unicode_decimal:59209},{icon_id:"38153091",name:"维护报表",font_class:"weihubaobiao",unicode:"e74a",unicode_decimal:59210},{icon_id:"38153084",name:"视频配置",font_class:"shipinpeizhi",unicode:"e74b",unicode_decimal:59211},{icon_id:"38153089",name:"推送记录、预案管理",font_class:"yuanguanli",unicode:"e74c",unicode_decimal:59212},{icon_id:"38153088",name:"视频监控",font_class:"shipinjiankong",unicode:"e74d",unicode_decimal:59213},{icon_id:"38153083",name:"GIS管网系统",font_class:"GISguanwangxitong",unicode:"e74e",unicode_decimal:59214},{icon_id:"38153086",name:"车辆轨迹",font_class:"cheliangguiji",unicode:"e74f",unicode_decimal:59215},{icon_id:"37811065",name:"停用",font_class:"tingyong1",unicode:"e776",unicode_decimal:59254},{icon_id:"37810944",name:"停用",font_class:"tingyong",unicode:"e775",unicode_decimal:59253},{icon_id:"37809704",name:"启用",font_class:"qiyong",unicode:"e772",unicode_decimal:59250},{icon_id:"37768743",name:"复制",font_class:"fuzhi",unicode:"e741",unicode_decimal:59201},{icon_id:"37648812",name:"隐藏",font_class:"yincang",unicode:"e740",unicode_decimal:59200},{icon_id:"37428721",name:"知识库",font_class:"zhishiku",unicode:"e739",unicode_decimal:59193},{icon_id:"37428720",name:"巡线计划",font_class:"xunxianjihua",unicode:"e73a",unicode_decimal:59194},{icon_id:"37428719",name:"维保管理",font_class:"weibaoguanli",unicode:"e73b",unicode_decimal:59195},{icon_id:"37428718",name:"系统管理",font_class:"xitongguanli1",unicode:"e73c",unicode_decimal:59196},{icon_id:"37428717",name:"隐患管理",font_class:"yinhuanguanli",unicode:"e73d",unicode_decimal:59197},{icon_id:"37428716",name:"设备管理",font_class:"shebeiguanli",unicode:"e73e",unicode_decimal:59198},{icon_id:"37428715",name:"考勤管理",font_class:"kaoqinguanli",unicode:"e73f",unicode_decimal:59199},{icon_id:"37033301",name:"卡片",font_class:"kapian",unicode:"e738",unicode_decimal:59192},{icon_id:"37033317",name:"功能设计",font_class:"gongnengsheji",unicode:"e72c",unicode_decimal:59180},{icon_id:"37033319",name:"用户管理",font_class:"yonghuguanli",unicode:"e72d",unicode_decimal:59181},{icon_id:"37033316",name:"审批列表",font_class:"shenpiliebiao",unicode:"e72e",unicode_decimal:59182},{icon_id:"37033311",name:"菜单管理",font_class:"caidanguanli",unicode:"e72f",unicode_decimal:59183},{icon_id:"37033313",name:"参数管理",font_class:"canshuguanli",unicode:"e730",unicode_decimal:59184},{icon_id:"37033314",name:"日志管理",font_class:"rizhiguanli",unicode:"e731",unicode_decimal:59185},{icon_id:"37033315",name:"数据源管理",font_class:"shujuyuanguanli",unicode:"e732",unicode_decimal:59186},{icon_id:"37033310",name:"审批中心",font_class:"shenpizhongxin",unicode:"e733",unicode_decimal:59187},{icon_id:"37033312",name:"角色管理",font_class:"jiaoseguanli",unicode:"e734",unicode_decimal:59188},{icon_id:"37033304",name:"二维码",font_class:"erweima",unicode:"e735",unicode_decimal:59189},{icon_id:"37033303",name:"地址",font_class:"dizhi",unicode:"e736",unicode_decimal:59190},{icon_id:"37033302",name:"GIS",font_class:"GIS",unicode:"e737",unicode_decimal:59191},{icon_id:"37033323",name:"开发工具",font_class:"kaifagongju",unicode:"e6aa",unicode_decimal:59050},{icon_id:"37033324",name:"字典管理",font_class:"zidianguanli",unicode:"e6ae",unicode_decimal:59054},{icon_id:"37033325",name:"租户管理",font_class:"zuhuguanli",unicode:"e6bc",unicode_decimal:59068},{icon_id:"37033322",name:"岗位管理",font_class:"gangweiguanli",unicode:"e728",unicode_decimal:59176},{icon_id:"37033321",name:"系统管理",font_class:"xitongguanli",unicode:"e729",unicode_decimal:59177},{icon_id:"37033320",name:"部门管理",font_class:"bumenguanli",unicode:"e72a",unicode_decimal:59178},{icon_id:"37033318",name:"设置",font_class:"shenpipeizhi",unicode:"e72b",unicode_decimal:59179},{icon_id:"37012624",name:"通用2",font_class:"tongyong2",unicode:"e723",unicode_decimal:59171},{icon_id:"37012622",name:"通用1",font_class:"tongyong1",unicode:"e724",unicode_decimal:59172},{icon_id:"37012623",name:"通用3",font_class:"tongyong3",unicode:"e725",unicode_decimal:59173},{icon_id:"37012621",name:"通用5",font_class:"tongyong5",unicode:"e726",unicode_decimal:59174},{icon_id:"37012620",name:"通用4",font_class:"tongyong4",unicode:"e727",unicode_decimal:59175},{icon_id:"1268",name:"减",font_class:"jian",unicode:"e600",unicode_decimal:58880},{icon_id:"36715193",name:"减-copy",font_class:"jian-copy",unicode:"e722",unicode_decimal:59170},{icon_id:"36651388",name:"评论",font_class:"pinglun",unicode:"e717",unicode_decimal:59159},{icon_id:"36651387",name:"拒绝",font_class:"jujue",unicode:"e718",unicode_decimal:59160},{icon_id:"36651383",name:"同意",font_class:"tongyi",unicode:"e719",unicode_decimal:59161},{icon_id:"36651384",name:"发起",font_class:"faqi",unicode:"e71a",unicode_decimal:59162},{icon_id:"36651382",name:"退回",font_class:"tuihui",unicode:"e71b",unicode_decimal:59163},{icon_id:"36651385",name:"加签",font_class:"jiaqian",unicode:"e71c",unicode_decimal:59164},{icon_id:"36651386",name:"转交",font_class:"zhuanjiao",unicode:"e71d",unicode_decimal:59165},{icon_id:"36651381",name:"等待",font_class:"dengdai",unicode:"e71e",unicode_decimal:59166},{icon_id:"36649809",name:"中英文-导航",font_class:"zhongyingwen-daohang",unicode:"e6d5",unicode_decimal:59093},{icon_id:"36649527",name:"全屏-导航",font_class:"quanping-daohang",unicode:"e6d0",unicode_decimal:59088},{icon_id:"36649526",name:"消息-导航",font_class:"xiaoxi-daohang",unicode:"e6d1",unicode_decimal:59089},{icon_id:"36649523",name:"搜索-导航",font_class:"sousuo-daohang",unicode:"e6d2",unicode_decimal:59090},{icon_id:"36649524",name:"刷新-导航",font_class:"shuaxin-daohang",unicode:"e6d3",unicode_decimal:59091},{icon_id:"36649525",name:"切换-导航",font_class:"qiehuan-daohang",unicode:"e6d4",unicode_decimal:59092},{icon_id:"36649529",name:"太阳-导航",font_class:"taiyang-daohang",unicode:"e679",unicode_decimal:59001},{icon_id:"36649528",name:"设置-导航",font_class:"shezhi-daohang",unicode:"e6cf",unicode_decimal:59087},{icon_id:"36058666",name:"更多",font_class:"gengduo1",unicode:"e6be",unicode_decimal:59070},{icon_id:"36058667",name:"上移",font_class:"shangyi",unicode:"e6bf",unicode_decimal:59071},{icon_id:"36058668",name:"关闭备份",font_class:"guanbibeifen",unicode:"e6c0",unicode_decimal:59072},{icon_id:"36058669",name:"下移",font_class:"xiayi",unicode:"e6c1",unicode_decimal:59073},{icon_id:"36058670",name:"右移",font_class:"youyi",unicode:"e6c2",unicode_decimal:59074},{icon_id:"36058671",name:"展开",font_class:"zhankai",unicode:"e6c3",unicode_decimal:59075},{icon_id:"36058672",name:"返回",font_class:"fanhui",unicode:"e6c4",unicode_decimal:59076},{icon_id:"36058673",name:"关闭",font_class:"guanbi",unicode:"e6c5",unicode_decimal:59077},{icon_id:"36058674",name:"左移",font_class:"zuoyi",unicode:"e6c6",unicode_decimal:59078},{icon_id:"36058676",name:"菜单展开",font_class:"caidanzhankai",unicode:"e6c8",unicode_decimal:59080},{icon_id:"36058677",name:"刷新",font_class:"shuaxin2",unicode:"e6c9",unicode_decimal:59081},{icon_id:"36058678",name:"菜单收起",font_class:"caidanshouqi",unicode:"e6ca",unicode_decimal:59082},{icon_id:"36058679",name:"重置",font_class:"zhongzhi1",unicode:"e6cb",unicode_decimal:59083},{icon_id:"36058680",name:"行高设置",font_class:"hanggaoshezhi",unicode:"e6cc",unicode_decimal:59084},{icon_id:"36058554",name:"电脑",font_class:"diannao",unicode:"e6b6",unicode_decimal:59062},{icon_id:"36058392",name:"时间",font_class:"shijian",unicode:"e6a8",unicode_decimal:59048},{icon_id:"36058393",name:"日历",font_class:"rili1",unicode:"e6a9",unicode_decimal:59049},{icon_id:"36058395",name:"解锁",font_class:"jiesuo",unicode:"e6ab",unicode_decimal:59051},{icon_id:"36058396",name:"全屏",font_class:"quanping",unicode:"e6ac",unicode_decimal:59052},{icon_id:"36058397",name:"汽车",font_class:"qiche",unicode:"e6ad",unicode_decimal:59053},{icon_id:"36058399",name:"列表",font_class:"liebiao",unicode:"e6af",unicode_decimal:59055},{icon_id:"36058400",name:"播放",font_class:"bofang",unicode:"e6b0",unicode_decimal:59056},{icon_id:"36058401",name:"暂停",font_class:"zanting",unicode:"e6b1",unicode_decimal:59057},{icon_id:"36058402",name:"返回顶部",font_class:"fanhuidingbu",unicode:"e6b2",unicode_decimal:59058},{icon_id:"36058403",name:"锁屏",font_class:"suoping",unicode:"e6b3",unicode_decimal:59059},{icon_id:"36058404",name:"归档",font_class:"guidang",unicode:"e6b4",unicode_decimal:59060},{icon_id:"36058405",name:"飞机",font_class:"feiji",unicode:"e6b5",unicode_decimal:59061},{icon_id:"36058407",name:"足迹",font_class:"zuji",unicode:"e6b7",unicode_decimal:59063},{icon_id:"36058408",name:"退出全屏",font_class:"tuichuquanping",unicode:"e6b8",unicode_decimal:59064},{icon_id:"36058409",name:"审核",font_class:"shenhe",unicode:"e6b9",unicode_decimal:59065},{icon_id:"36058410",name:"电话",font_class:"dianhua",unicode:"e6ba",unicode_decimal:59066},{icon_id:"36058411",name:"个人消息、信息",font_class:"xinxi1",unicode:"e6bb",unicode_decimal:59067},{icon_id:"36058413",name:"手机",font_class:"shouji",unicode:"e6bd",unicode_decimal:59069},{icon_id:"36058296",name:"登出",font_class:"dengchu1",unicode:"e6a7",unicode_decimal:59047},{icon_id:"36057796",name:"消息通知",font_class:"xiaoxitongzhi",unicode:"e68f",unicode_decimal:59023},{icon_id:"36057797",name:"详情",font_class:"xiangqing",unicode:"e690",unicode_decimal:59024},{icon_id:"36057798",name:"用户",font_class:"yonghu1",unicode:"e691",unicode_decimal:59025},{icon_id:"36057799",name:"表单",font_class:"biaodan",unicode:"e692",unicode_decimal:59026},{icon_id:"36057800",name:"主页",font_class:"zhuye",unicode:"e693",unicode_decimal:59027},{icon_id:"36057801",name:"成功",font_class:"chenggong",unicode:"e694",unicode_decimal:59028},{icon_id:"36057802",name:"登录",font_class:"denglu",unicode:"e695",unicode_decimal:59029},{icon_id:"36057803",name:"仪表盘",font_class:"yibiaopan",unicode:"e696",unicode_decimal:59030},{icon_id:"36057804",name:"校验码",font_class:"xiaoyanma",unicode:"e697",unicode_decimal:59031},{icon_id:"36057805",name:"文本",font_class:"wenben",unicode:"e698",unicode_decimal:59032},{icon_id:"36057806",name:"警告",font_class:"jinggao",unicode:"e699",unicode_decimal:59033},{icon_id:"36057807",name:"未知文件",font_class:"weizhiwenjian",unicode:"e69a",unicode_decimal:59034},{icon_id:"36057808",name:"登出",font_class:"dengchu",unicode:"e69b",unicode_decimal:59035},{icon_id:"36057809",name:"excel",font_class:"excel",unicode:"e69c",unicode_decimal:59036},{icon_id:"36057810",name:"图片",font_class:"tupian",unicode:"e69d",unicode_decimal:59037},{icon_id:"36057811",name:"失败",font_class:"shibai",unicode:"e69e",unicode_decimal:59038},{icon_id:"36057812",name:"ppt",font_class:"ppt",unicode:"e69f",unicode_decimal:59039},{icon_id:"36057813",name:"音乐",font_class:"yinle",unicode:"e6a0",unicode_decimal:59040},{icon_id:"36057814",name:"压缩包",font_class:"yasuobao",unicode:"e6a1",unicode_decimal:59041},{icon_id:"36057815",name:"word",font_class:"word",unicode:"e6a2",unicode_decimal:59042},{icon_id:"36057816",name:"mov",font_class:"mov",unicode:"e6a3",unicode_decimal:59043},{icon_id:"36057817",name:"zip",font_class:"zip",unicode:"e6a4",unicode_decimal:59044},{icon_id:"36057818",name:"密码",font_class:"mima",unicode:"e6a5",unicode_decimal:59045},{icon_id:"36057819",name:"pdf",font_class:"pdf",unicode:"e6a6",unicode_decimal:59046},{icon_id:"36057137",name:"点赞",font_class:"dianzan",unicode:"e674",unicode_decimal:58996},{icon_id:"36057139",name:"文件夹",font_class:"wenjianjia",unicode:"e67a",unicode_decimal:59002},{icon_id:"36057140",name:"删除",font_class:"shanchu1",unicode:"e67b",unicode_decimal:59003},{icon_id:"36057141",name:"分享",font_class:"fenxiang",unicode:"e67c",unicode_decimal:59004},{icon_id:"36057143",name:"下载",font_class:"xiazai1",unicode:"e67e",unicode_decimal:59006},{icon_id:"36057145",name:"查询",font_class:"chaxun",unicode:"e680",unicode_decimal:59008},{icon_id:"36057146",name:"上传",font_class:"shangchuan",unicode:"e681",unicode_decimal:59009},{icon_id:"36057147",name:"关注",font_class:"guanzhu",unicode:"e682",unicode_decimal:59010},{icon_id:"36057148",name:"功能导航",font_class:"gongnengdaohang",unicode:"e683",unicode_decimal:59011},{icon_id:"36057150",name:"提示说明",font_class:"tishishuoming",unicode:"e685",unicode_decimal:59013},{icon_id:"36057151",name:"统计分析",font_class:"tongjifenxi",unicode:"e686",unicode_decimal:59014},{icon_id:"36057152",name:"导出",font_class:"daochu",unicode:"e687",unicode_decimal:59015},{icon_id:"36057153",name:"预览",font_class:"yulan",unicode:"e688",unicode_decimal:59016},{icon_id:"36057155",name:"导入",font_class:"daoru",unicode:"e68a",unicode_decimal:59018},{icon_id:"36057156",name:"修改",font_class:"xiugai",unicode:"e68b",unicode_decimal:59019},{icon_id:"36057157",name:"显示字段",font_class:"xianshiziduan",unicode:"e68c",unicode_decimal:59020},{icon_id:"36057158",name:"帮助",font_class:"bangzhu",unicode:"e68d",unicode_decimal:59021},{icon_id:"36057159",name:"筛选",font_class:"shaixuan1",unicode:"e68e",unicode_decimal:59022},{icon_id:"35654050",name:"日历",font_class:"rili",unicode:"e672",unicode_decimal:58994},{icon_id:"35653603",name:"更多",font_class:"gengduo",unicode:"e673",unicode_decimal:58995},{icon_id:"35653605",name:"信息提示",font_class:"xinxitishi",unicode:"e675",unicode_decimal:58997},{icon_id:"35653606",name:"删除",font_class:"shanchu",unicode:"e676",unicode_decimal:58998},{icon_id:"35653607",name:"刷新",font_class:"shuaxin1",unicode:"e677",unicode_decimal:58999},{icon_id:"35653608",name:"编辑",font_class:"bianji",unicode:"e678",unicode_decimal:59e3},{icon_id:"35653535",name:"筛选",font_class:"shaixuan",unicode:"e66a",unicode_decimal:58986},{icon_id:"35653536",name:"搜索",font_class:"sousuo1",unicode:"e66b",unicode_decimal:58987},{icon_id:"35653537",name:"重置",font_class:"zhongzhi",unicode:"e66c",unicode_decimal:58988},{icon_id:"35653538",name:"收起",font_class:"shouqi1",unicode:"e66d",unicode_decimal:58989},{icon_id:"35653539",name:"新增",font_class:"xinzeng",unicode:"e66e",unicode_decimal:58990},{icon_id:"35653540",name:"行高",font_class:"hanggao",unicode:"e66f",unicode_decimal:58991},{icon_id:"35653541",name:"设置",font_class:"shezhi1",unicode:"e670",unicode_decimal:58992},{icon_id:"35653542",name:"刷新",font_class:"shuaxin",unicode:"e671",unicode_decimal:58993},{icon_id:"35649462",name:"下载",font_class:"xiazai",unicode:"e669",unicode_decimal:58985},{icon_id:"35649230",name:"动态设置",font_class:"dongtaishezhi",unicode:"e65a",unicode_decimal:58970},{icon_id:"35649231",name:"收起",font_class:"shouqi",unicode:"e65b",unicode_decimal:58971},{icon_id:"35649233",name:"排序",font_class:"paixu",unicode:"e65d",unicode_decimal:58973},{icon_id:"35649235",name:"消息模板、信息",font_class:"xinxi",unicode:"e65f",unicode_decimal:58975},{icon_id:"35649236",name:"用户",font_class:"yonghu",unicode:"e660",unicode_decimal:58976},{icon_id:"35649237",name:"白天",font_class:"baitian",unicode:"e661",unicode_decimal:58977},{icon_id:"35649238",name:"数据",font_class:"shuju",unicode:"e662",unicode_decimal:58978},{icon_id:"35649241",name:"关闭-页面标签",font_class:"guanbi-yemianbiaoqian",unicode:"e665",unicode_decimal:58981},{icon_id:"35649242",name:"资源列表",font_class:"ziyuanliebiao",unicode:"e666",unicode_decimal:58982},{icon_id:"35649243",name:"设置",font_class:"shezhi",unicode:"e667",unicode_decimal:58983},{icon_id:"35649244",name:"展开-导航",font_class:"zhankai-daohang",unicode:"e668",unicode_decimal:58984}]},vc={id:"4383216",name:"中台-单色图标",font_family:"iconfont",css_prefix_text:"iksig_",description:"",glyphs:[{icon_id:"39081266",name:"对勾",font_class:"duigou",unicode:"e6ae",unicode_decimal:59054},{icon_id:"39017971",name:"分页更多",font_class:"diandian",unicode:"e78f",unicode_decimal:59279},{icon_id:"38921765",name:"更多",font_class:"gengduo",unicode:"e6aa",unicode_decimal:59050},{icon_id:"38825218",name:"向左",font_class:"a-shouqibeifen2",unicode:"e6a8",unicode_decimal:59048},{icon_id:"38824809",name:"向右、更多",font_class:"a-shouqibeifen3",unicode:"e6a7",unicode_decimal:59047},{icon_id:"38761726",name:"分栏",font_class:"fenlan",unicode:"e6a6",unicode_decimal:59046},{icon_id:"38757737",name:"时间范围",font_class:"shijianfanwei1",unicode:"e6a5",unicode_decimal:59045},{icon_id:"38660326",name:"大纲",font_class:"dagang",unicode:"e789",unicode_decimal:59273},{icon_id:"38660327",name:"物料",font_class:"wuliao",unicode:"e78a",unicode_decimal:59274},{icon_id:"38660325",name:"数据源",font_class:"shujuyuan",unicode:"e78b",unicode_decimal:59275},{icon_id:"38660101",name:"电脑",font_class:"diannao1",unicode:"e784",unicode_decimal:59268},{icon_id:"38660097",name:"手机",font_class:"shouji1",unicode:"e785",unicode_decimal:59269},{icon_id:"38660099",name:"右侧面板向左关闭",font_class:"youcemianbanxiangzuoguanbi",unicode:"e786",unicode_decimal:59270},{icon_id:"38660100",name:"帮助",font_class:"bangzhu1",unicode:"e787",unicode_decimal:59271},{icon_id:"38660098",name:"左侧面板向左关闭",font_class:"zuocemianbanxiangzuoguanbi",unicode:"e788",unicode_decimal:59272},{icon_id:"38659549",name:"级联选项",font_class:"jilianxuanxiang",unicode:"e77a",unicode_decimal:59258},{icon_id:"38659548",name:"计数器",font_class:"jishuqi",unicode:"e77b",unicode_decimal:59259},{icon_id:"38659545",name:"单行文本",font_class:"danhangwenben1",unicode:"e77c",unicode_decimal:59260},{icon_id:"38659542",name:"下拉",font_class:"xiala1",unicode:"e77d",unicode_decimal:59261},{icon_id:"38659547",name:"日期范围",font_class:"shijianfanwei",unicode:"e77e",unicode_decimal:59262},{icon_id:"38659546",name:"单选",font_class:"danxuan1",unicode:"e77f",unicode_decimal:59263},{icon_id:"38659540",name:"多行文本",font_class:"duohangwenben1",unicode:"e780",unicode_decimal:59264},{icon_id:"38659543",name:"时间",font_class:"shijian2",unicode:"e781",unicode_decimal:59265},{icon_id:"38659544",name:"开关",font_class:"kaiguan1",unicode:"e782",unicode_decimal:59266},{icon_id:"38659541",name:"多选",font_class:"duoxuan1",unicode:"e783",unicode_decimal:59267},{icon_id:"38659943",name:"HTML",font_class:"HTML",unicode:"e76c",unicode_decimal:59244},{icon_id:"38659942",name:"按钮",font_class:"anniu",unicode:"e76d",unicode_decimal:59245},{icon_id:"38659941",name:"滑块",font_class:"huakuai1",unicode:"e76e",unicode_decimal:59246},{icon_id:"38659937",name:"树形选择",font_class:"shuxingxuanze",unicode:"e76f",unicode_decimal:59247},{icon_id:"38659939",name:"颜色选择器",font_class:"yansexuanzeqi",unicode:"e770",unicode_decimal:59248},{icon_id:"38659940",name:"分隔线",font_class:"fengexian",unicode:"e771",unicode_decimal:59249},{icon_id:"38659938",name:"文件上传",font_class:"wenjianshangchuan",unicode:"e777",unicode_decimal:59255},{icon_id:"38659936",name:"评分",font_class:"pingfen1",unicode:"e778",unicode_decimal:59256},{icon_id:"38659935",name:"图片",font_class:"tupian2",unicode:"e779",unicode_decimal:59257},{icon_id:"38660004",name:"查询表格页",font_class:"chaxunbiaogeye",unicode:"e769",unicode_decimal:59241},{icon_id:"38660003",name:"富文本",font_class:"fuwenben",unicode:"e76a",unicode_decimal:59242},{icon_id:"38659989",name:"静态文字",font_class:"jingtaiwenzi",unicode:"e76b",unicode_decimal:59243},{icon_id:"38660011",name:"审批对话框",font_class:"shenpiduihuakuang",unicode:"e762",unicode_decimal:59234},{icon_id:"38660010",name:"人员",font_class:"renyuan",unicode:"e763",unicode_decimal:59235},{icon_id:"38660009",name:"单位",font_class:"danwei",unicode:"e764",unicode_decimal:59236},{icon_id:"38660008",name:"详情页",font_class:"xiangqingye",unicode:"e765",unicode_decimal:59237},{icon_id:"38660006",name:"职务",font_class:"zhiwu",unicode:"e766",unicode_decimal:59238},{icon_id:"38660007",name:"组织",font_class:"zuzhi",unicode:"e767",unicode_decimal:59239},{icon_id:"38660005",name:"角色",font_class:"jiaose",unicode:"e768",unicode_decimal:59240},{icon_id:"38659449",name:"数据表格",font_class:"shujubiaoge",unicode:"e75c",unicode_decimal:59228},{icon_id:"38659453",name:"弹出窗口",font_class:"danchuchuangkou",unicode:"e75d",unicode_decimal:59229},{icon_id:"38659454",name:"侧滑抽屉",font_class:"cehuachouti",unicode:"e75e",unicode_decimal:59230},{icon_id:"38659452",name:"栅格",font_class:"zhage",unicode:"e75f",unicode_decimal:59231},{icon_id:"38659451",name:"卡片",font_class:"kapian1",unicode:"e760",unicode_decimal:59232},{icon_id:"38659450",name:"表单",font_class:"biaodan1",unicode:"e761",unicode_decimal:59233},{icon_id:"38659455",name:"单行子表单",font_class:"danhangzibiaodan",unicode:"e75b",unicode_decimal:59227},{icon_id:"35104115",name:"箭头下",font_class:"jiantouxia",unicode:"e607",unicode_decimal:58887},{icon_id:"35104157",name:"箭头上",font_class:"jiantoushang",unicode:"e608",unicode_decimal:58888},{icon_id:"35104165",name:"缩小",font_class:"suoxiao",unicode:"e60a",unicode_decimal:58890},{icon_id:"36714058",name:"箭头下-copy",font_class:"jiantouyou-copy",unicode:"e720",unicode_decimal:59168},{icon_id:"36714060",name:"箭头上-copy",font_class:"jiantouzuo-copy",unicode:"e721",unicode_decimal:59169},{icon_id:"36651222",name:"售后工单",font_class:"shouhougongdan",unicode:"e705",unicode_decimal:59141},{icon_id:"36651223",name:"离职交接",font_class:"lizhijiaojie",unicode:"e706",unicode_decimal:59142},{icon_id:"36651206",name:"活动经费",font_class:"huodongjingfei",unicode:"e707",unicode_decimal:59143},{icon_id:"36651220",name:"绩效自评备份",font_class:"jixiaozipingbeifen",unicode:"e708",unicode_decimal:59144},{icon_id:"36651221",name:"请假",font_class:"qingjia",unicode:"e709",unicode_decimal:59145},{icon_id:"36651208",name:"抄送人",font_class:"chaosongren",unicode:"e70a",unicode_decimal:59146},{icon_id:"36651216",name:"设备巡查",font_class:"shebeixuncha",unicode:"e70b",unicode_decimal:59147},{icon_id:"36651219",name:"付款",font_class:"fukuan",unicode:"e70c",unicode_decimal:59148},{icon_id:"36651204",name:"工作流测试",font_class:"gongzuoliuceshi",unicode:"e70d",unicode_decimal:59149},{icon_id:"36651217",name:"离职",font_class:"lizhi",unicode:"e70e",unicode_decimal:59150},{icon_id:"36651214",name:"采购",font_class:"caigou",unicode:"e70f",unicode_decimal:59151},{icon_id:"36651203",name:"报销",font_class:"baoxiao",unicode:"e710",unicode_decimal:59152},{icon_id:"36651215",name:"加班",font_class:"jiaban",unicode:"e711",unicode_decimal:59153},{icon_id:"36651210",name:"会议室预定",font_class:"huiyishiyuding",unicode:"e712",unicode_decimal:59154},{icon_id:"36651213",name:"库存盘点",font_class:"kucunpandian",unicode:"e713",unicode_decimal:59155},{icon_id:"36651205",name:"出差",font_class:"chucha",unicode:"e714",unicode_decimal:59156},{icon_id:"36651209",name:"合同审批",font_class:"hetongshenpi",unicode:"e715",unicode_decimal:59157},{icon_id:"36651207",name:"调岗",font_class:"tiaogang",unicode:"e716",unicode_decimal:59158},{icon_id:"36651235",name:"转正",font_class:"zhuanzheng",unicode:"e6f5",unicode_decimal:59125},{icon_id:"36651234",name:"物品领用",font_class:"wupinlingyong",unicode:"e6f6",unicode_decimal:59126},{icon_id:"36651202",name:"补卡",font_class:"buka",unicode:"e6f7",unicode_decimal:59127},{icon_id:"36651233",name:"办理/立项申请",font_class:"lixiangshenqing",unicode:"e6f8",unicode_decimal:59128},{icon_id:"36651231",name:"外出",font_class:"waichu",unicode:"e6f9",unicode_decimal:59129},{icon_id:"36651218",name:"公文流转",font_class:"gongwenliuzhuan",unicode:"e6fa",unicode_decimal:59130},{icon_id:"36651227",name:"发起人/入职",font_class:"ruzhi",unicode:"e6fb",unicode_decimal:59131},{icon_id:"36651232",name:"用车",font_class:"yongche",unicode:"e6fc",unicode_decimal:59132},{icon_id:"36651229",name:"设备维修",font_class:"shebeiweixiu",unicode:"e6fd",unicode_decimal:59133},{icon_id:"36651230",name:"审批",font_class:"shenpi",unicode:"e6fe",unicode_decimal:59134},{icon_id:"36651224",name:"条件分支",font_class:"tiaojianfenzhi",unicode:"e6ff",unicode_decimal:59135},{icon_id:"36651228",name:"绩效自评",font_class:"jixiaoziping",unicode:"e700",unicode_decimal:59136},{icon_id:"36651226",name:"招聘要求",font_class:"zhaopinyaoqiu",unicode:"e701",unicode_decimal:59137},{icon_id:"36651225",name:"用章",font_class:"yongzhang",unicode:"e702",unicode_decimal:59138},{icon_id:"36651212",name:"换班",font_class:"huanban",unicode:"e703",unicode_decimal:59139},{icon_id:"36651211",name:"费用申请",font_class:"feiyongshenqing",unicode:"e704",unicode_decimal:59140},{icon_id:"36650753",name:"开关",font_class:"kaiguan",unicode:"e6f0",unicode_decimal:59120},{icon_id:"36650761",name:"说明",font_class:"shuoming",unicode:"e6f1",unicode_decimal:59121},{icon_id:"36650757",name:"滑块",font_class:"huakuai",unicode:"e6f2",unicode_decimal:59122},{icon_id:"36650755",name:"收款账号",font_class:"shoukuanzhanghao",unicode:"e6f3",unicode_decimal:59123},{icon_id:"36650754",name:"金额",font_class:"jine",unicode:"e6f4",unicode_decimal:59124},{icon_id:"36650775",name:"评分",font_class:"pingfen",unicode:"e6e2",unicode_decimal:59106},{icon_id:"36650773",name:"日期",font_class:"shijian1",unicode:"e6e3",unicode_decimal:59107},{icon_id:"36650764",name:"省市区",font_class:"shengshiqu",unicode:"e6e4",unicode_decimal:59108},{icon_id:"36650769",name:"位置",font_class:"weizhi",unicode:"e6e5",unicode_decimal:59109},{icon_id:"36650768",name:"电话",font_class:"dianhua1",unicode:"e6e6",unicode_decimal:59110},{icon_id:"36650758",name:"单选",font_class:"danxuan",unicode:"e6e7",unicode_decimal:59111},{icon_id:"36650766",name:"多行文本",font_class:"duohangwenben",unicode:"e6e8",unicode_decimal:59112},{icon_id:"36650767",name:"邮箱",font_class:"youxiang",unicode:"e6e9",unicode_decimal:59113},{icon_id:"36650763",name:"附件",font_class:"fujian",unicode:"e6ea",unicode_decimal:59114},{icon_id:"36650765",name:"手写签名",font_class:"shouxieqianming",unicode:"e6eb",unicode_decimal:59115},{icon_id:"36650760",name:"多选",font_class:"duoxuan",unicode:"e6ec",unicode_decimal:59116},{icon_id:"36650762",name:"计算公式",font_class:"jisuangongshi",unicode:"e6ef",unicode_decimal:59119},{icon_id:"36650771",name:"明细",font_class:"mingxi",unicode:"e6e0",unicode_decimal:59104},{icon_id:"36650770",name:"单行文本",font_class:"danhangwenben",unicode:"e6e1",unicode_decimal:59105},{icon_id:"36650781",name:"联系人",font_class:"lianxiren",unicode:"e6d6",unicode_decimal:59094},{icon_id:"36650772",name:"部门",font_class:"bumen",unicode:"e6d7",unicode_decimal:59095},{icon_id:"36650783",name:"图片",font_class:"tupian1",unicode:"e6d8",unicode_decimal:59096},{icon_id:"36650782",name:"下拉",font_class:"xiala",unicode:"e6d9",unicode_decimal:59097},{icon_id:"36650780",name:"关联",font_class:"guanlian",unicode:"e6da",unicode_decimal:59098},{icon_id:"36650778",name:"分类",font_class:"fenlei",unicode:"e6dc",unicode_decimal:59100},{icon_id:"36650774",name:"身份证",font_class:"shenfenzheng",unicode:"e6dd",unicode_decimal:59101},{icon_id:"36650777",name:"颜色",font_class:"yanse",unicode:"e6de",unicode_decimal:59102},{icon_id:"36650776",name:"数字",font_class:"shuzi",unicode:"e6df",unicode_decimal:59103},{icon_id:"36649735",name:"固定",font_class:"guding",unicode:"e6ce",unicode_decimal:59086},{icon_id:"36649523",name:"搜索-导航",font_class:"sousuo-daohang",unicode:"e6d2",unicode_decimal:59090},{icon_id:"36058668",name:"关闭备份",font_class:"guanbibeifen",unicode:"e6c0",unicode_decimal:59072},{icon_id:"36058671",name:"展开",font_class:"zhankai",unicode:"e6c3",unicode_decimal:59075},{icon_id:"36058675",name:"收起",font_class:"shouqi2",unicode:"e6c7",unicode_decimal:59079},{icon_id:"36057144",name:"收藏",font_class:"shoucang",unicode:"e67f",unicode_decimal:59007},{icon_id:"35649231",name:"收起",font_class:"shouqi",unicode:"e65b",unicode_decimal:58971},{icon_id:"35649233",name:"排序",font_class:"paixu",unicode:"e65d",unicode_decimal:58973},{icon_id:"35649234",name:"展开-页面标签",font_class:"zhankai-yemianbiaoqian",unicode:"e65e",unicode_decimal:58974},{icon_id:"35649241",name:"关闭-页面标签",font_class:"guanbi-yemianbiaoqian",unicode:"e665",unicode_decimal:58981}]},gw="";var Sc;const Ac=typeof window<"u",X4=t=>typeof t=="string",xc=()=>{},J4=Ac&&((Sc=window==null?void 0:window.navigator)==null?void 0:Sc.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Dc(t){return typeof t=="function"?t():o.unref(t)}function eE(t){return t}function tE(t){return o.getCurrentScope()?(o.onScopeDispose(t),!0):!1}function Pn(t){var e;const n=Dc(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Nc=Ac?window:void 0;function _l(...t){let e,n,i,l;if(X4(t[0])||Array.isArray(t[0])?([n,i,l]=t,e=Nc):[e,n,i,l]=t,!e)return xc;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const r=[],a=()=>{r.forEach(u=>u()),r.length=0},s=(u,g,h,c)=>(u.addEventListener(g,h,c),()=>u.removeEventListener(g,h,c)),d=o.watch(()=>[Pn(e),Dc(l)],([u,g])=>{a(),u&&r.push(...n.flatMap(h=>i.map(c=>s(u,h,c,g))))},{immediate:!0,flush:"post"}),f=()=>{d(),a()};return tE(f),f}let Vc=!1;function nE(t,e,n={}){const{window:i=Nc,ignore:l=[],capture:r=!0,detectIframe:a=!1}=n;if(!i)return;J4&&!Vc&&(Vc=!0,Array.from(i.document.body.children).forEach(h=>h.addEventListener("click",xc)));let s=!0;const d=h=>l.some(c=>{if(typeof c=="string")return Array.from(i.document.querySelectorAll(c)).some(_=>_===h.target||h.composedPath().includes(_));{const _=Pn(c);return _&&(h.target===_||h.composedPath().includes(_))}}),u=[_l(i,"click",h=>{const c=Pn(t);if(!(!c||c===h.target||h.composedPath().includes(c))){if(h.detail===0&&(s=!d(h)),!s){s=!0;return}e(h)}},{passive:!0,capture:r}),_l(i,"pointerdown",h=>{const c=Pn(t);c&&(s=!h.composedPath().includes(c)&&!d(h))},{passive:!0}),a&&_l(i,"blur",h=>{var c;const _=Pn(t);((c=i.document.activeElement)==null?void 0:c.tagName)==="IFRAME"&&!(_!=null&&_.contains(i.document.activeElement))&&e(h)})].filter(Boolean);return()=>u.forEach(h=>h())}const Bc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Tc="__vueuse_ssr_handlers__";Bc[Tc]=Bc[Tc]||{};var Rc;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(Rc||(Rc={}));var oE=Object.defineProperty,Ic=Object.getOwnPropertySymbols,iE=Object.prototype.hasOwnProperty,lE=Object.prototype.propertyIsEnumerable,Oc=(t,e,n)=>e in t?oE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,rE=(t,e)=>{for(var n in e||(e={}))iE.call(e,n)&&Oc(t,n,e[n]);if(Ic)for(var n of Ic(e))lE.call(e,n)&&Oc(t,n,e[n]);return t};rE({linear:eE},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function aE(t,e){const n=new Set(t.split(","));return e?i=>n.has(i.toLowerCase()):i=>n.has(i)}const wt=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const Wt=()=>{},sE=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Je=Object.assign,cE=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},dE=Object.prototype.hasOwnProperty,ye=(t,e)=>dE.call(t,e),ge=Array.isArray,cn=t=>Ro(t)==="[object Map]",uE=t=>Ro(t)==="[object Set]",we=t=>typeof t=="function",He=t=>typeof t=="string",To=t=>typeof t=="symbol",Ue=t=>t!==null&&typeof t=="object",fE=t=>(Ue(t)||we(t))&&we(t.then)&&we(t.catch),pE=Object.prototype.toString,Ro=t=>pE.call(t),Mc=t=>Ro(t).slice(8,-1),hE=t=>Ro(t)==="[object Object]",yl=t=>He(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,mE=(t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))})(t=>t.charAt(0).toUpperCase()+t.slice(1)),vt=(t,e)=>!Object.is(t,e),gE=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})};let Lc;const Pc=()=>Lc||(Lc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function bl(t){if(ge(t)){const e={};for(let n=0;n<t.length;n++){const i=t[n],l=He(i)?EE(i):bl(i);if(l)for(const r in l)e[r]=l[r]}return e}else if(He(t)||Ue(t))return t}const _E=/;(?![^(]*\))/g,yE=/:([^]+)/,bE=/\/\*[^]*?\*\//g;function EE(t){const e={};return t.replace(bE,"").split(_E).forEach(n=>{if(n){const i=n.split(yE);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function El(t){let e="";if(He(t))e=t;else if(ge(t))for(let n=0;n<t.length;n++){const i=El(t[n]);i&&(e+=i+" ")}else if(Ue(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function $c(t,...e){console.warn(`[Vue warn] ${t}`,...e)}let zc;function kE(t,e=zc){e&&e.active&&e.effects.push(t)}function CE(){return zc}let Gt;class Fc{constructor(e,n,i,l){this.fn=e,this.trigger=n,this.scheduler=i,this.active=!0,this.deps=[],this._dirtyLevel=3,this._trackId=0,this._runnings=0,this._queryings=0,this._depsLength=0,kE(this,l)}get dirty(){if(this._dirtyLevel===1){this._dirtyLevel=0,this._queryings++,Cl();for(const e of this.deps)if(e.computed&&(wE(e.computed),this._dirtyLevel>=2))break;wl(),this._queryings--}return this._dirtyLevel>=2}set dirty(e){this._dirtyLevel=e?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=St,n=Gt;try{return St=!0,Gt=this,this._runnings++,Hc(this),this.fn()}finally{Uc(this),this._runnings--,Gt=n,St=e}}stop(){var e;this.active&&(Hc(this),Uc(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function wE(t){return t.value}function Hc(t){t._trackId++,t._depsLength=0}function Uc(t){if(t.deps&&t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)jc(t.deps[e],t);t.deps.length=t._depsLength}}function jc(t,e){const n=t.get(e);n!==void 0&&e._trackId!==n&&(t.delete(e),t.size===0&&t.cleanup())}let St=!0,kl=0;const Wc=[];function Cl(){Wc.push(St),St=!1}function wl(){const t=Wc.pop();St=t===void 0?!0:t}function vl(){kl++}function Sl(){for(kl--;!kl&&Al.length;)Al.shift()()}function Gc(t,e,n){var i;if(e.get(t)!==t._trackId){e.set(t,t._trackId);const l=t.deps[t._depsLength];l!==e?(l&&jc(l,t),t.deps[t._depsLength++]=e):t._depsLength++,process.env.NODE_ENV!=="production"&&((i=t.onTrack)==null||i.call(t,Je({effect:t},n)))}}const Al=[];function qc(t,e,n){var i;vl();for(const l of t.keys())if(!(!l.allowRecurse&&l._runnings)&&l._dirtyLevel<e&&(!l._runnings||e!==2)){const r=l._dirtyLevel;l._dirtyLevel=e,r===0&&(!l._queryings||e!==2)&&(process.env.NODE_ENV!=="production"&&((i=l.onTrigger)==null||i.call(l,Je({effect:l},n))),l.trigger(),l.scheduler&&Al.push(l.scheduler))}Sl()}const Yc=(t,e)=>{const n=new Map;return n.cleanup=t,n.computed=e,n},xl=new WeakMap,qt=Symbol(process.env.NODE_ENV!=="production"?"iterate":""),Dl=Symbol(process.env.NODE_ENV!=="production"?"Map key iterate":"");function Oe(t,e,n){if(St&&Gt){let i=xl.get(t);i||xl.set(t,i=new Map);let l=i.get(n);l||i.set(n,l=Yc(()=>i.delete(n))),Gc(Gt,l,process.env.NODE_ENV!=="production"?{target:t,type:e,key:n}:void 0)}}function At(t,e,n,i,l,r){const a=xl.get(t);if(!a)return;let s=[];if(e==="clear")s=[...a.values()];else if(n==="length"&&ge(t)){const d=Number(i);a.forEach((f,u)=>{(u==="length"||!To(u)&&u>=d)&&s.push(f)})}else switch(n!==void 0&&s.push(a.get(n)),e){case"add":ge(t)?yl(n)&&s.push(a.get("length")):(s.push(a.get(qt)),cn(t)&&s.push(a.get(Dl)));break;case"delete":ge(t)||(s.push(a.get(qt)),cn(t)&&s.push(a.get(Dl)));break;case"set":cn(t)&&s.push(a.get(qt));break}vl();for(const d of s)d&&qc(d,3,process.env.NODE_ENV!=="production"?{target:t,type:e,key:n,newValue:i,oldValue:l,oldTarget:r}:void 0);Sl()}const vE=aE("__proto__,__v_isRef,__isVue"),Qc=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(To)),Zc=SE();function SE(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const i=oe(this);for(let r=0,a=this.length;r<a;r++)Oe(i,"get",r+"");const l=i[e](...n);return l===-1||l===!1?i[e](...n.map(oe)):l}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){Cl(),vl();const i=oe(this)[e].apply(this,n);return Sl(),wl(),i}}),t}function AE(t){const e=oe(this);return Oe(e,"has",t),e.hasOwnProperty(t)}class Kc{constructor(e=!1,n=!1){this._isReadonly=e,this._shallow=n}get(e,n,i){const l=this._isReadonly,r=this._shallow;if(n==="__v_isReactive")return!l;if(n==="__v_isReadonly")return l;if(n==="__v_isShallow")return r;if(n==="__v_raw")return i===(l?r?rd:ld:r?$E:id).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;const a=ge(e);if(!l){if(a&&ye(Zc,n))return Reflect.get(Zc,n,i);if(n==="hasOwnProperty")return AE}const s=Reflect.get(e,n,i);return(To(n)?Qc.has(n):vE(n))||(l||Oe(e,"get",n),r)?s:ze(s)?a&&yl(n)?s:s.value:Ue(s)?l?sd(s):ad(s):s}}class xE extends Kc{constructor(e=!1){super(!1,e)}set(e,n,i,l){let r=e[n];if(!this._shallow){const d=un(r);if(!fn(i)&&!un(i)&&(r=oe(r),i=oe(i)),!ge(e)&&ze(r)&&!ze(i))return d?!1:(r.value=i,!0)}const a=ge(e)&&yl(n)?Number(n)<e.length:ye(e,n),s=Reflect.set(e,n,i,l);return e===oe(l)&&(a?vt(i,r)&&At(e,"set",n,i,r):At(e,"add",n,i)),s}deleteProperty(e,n){const i=ye(e,n),l=e[n],r=Reflect.deleteProperty(e,n);return r&&i&&At(e,"delete",n,void 0,l),r}has(e,n){const i=Reflect.has(e,n);return(!To(n)||!Qc.has(n))&&Oe(e,"has",n),i}ownKeys(e){return Oe(e,"iterate",ge(e)?"length":qt),Reflect.ownKeys(e)}}class Xc extends Kc{constructor(e=!1){super(!0,e)}set(e,n){return process.env.NODE_ENV!=="production"&&$c(`Set operation on key "${String(n)}" failed: target is readonly.`,e),!0}deleteProperty(e,n){return process.env.NODE_ENV!=="production"&&$c(`Delete operation on key "${String(n)}" failed: target is readonly.`,e),!0}}const DE=new xE,NE=new Xc,VE=new Xc(!0),Nl=t=>t,Io=t=>Reflect.getPrototypeOf(t);function Oo(t,e,n=!1,i=!1){t=t.__v_raw;const l=oe(t),r=oe(e);n||(vt(e,r)&&Oe(l,"get",e),Oe(l,"get",r));const{has:a}=Io(l),s=i?Nl:n?Rl:$n;if(a.call(l,e))return s(t.get(e));if(a.call(l,r))return s(t.get(r));t!==l&&t.get(e)}function Mo(t,e=!1){const n=this.__v_raw,i=oe(n),l=oe(t);return e||(vt(t,l)&&Oe(i,"has",t),Oe(i,"has",l)),t===l?n.has(t):n.has(t)||n.has(l)}function Lo(t,e=!1){return t=t.__v_raw,!e&&Oe(oe(t),"iterate",qt),Reflect.get(t,"size",t)}function Jc(t){t=oe(t);const e=oe(this);return Io(e).has.call(e,t)||(e.add(t),At(e,"add",t,t)),this}function ed(t,e){e=oe(e);const n=oe(this),{has:i,get:l}=Io(n);let r=i.call(n,t);r?process.env.NODE_ENV!=="production"&&od(n,i,t):(t=oe(t),r=i.call(n,t));const a=l.call(n,t);return n.set(t,e),r?vt(e,a)&&At(n,"set",t,e,a):At(n,"add",t,e),this}function td(t){const e=oe(this),{has:n,get:i}=Io(e);let l=n.call(e,t);l?process.env.NODE_ENV!=="production"&&od(e,n,t):(t=oe(t),l=n.call(e,t));const r=i?i.call(e,t):void 0,a=e.delete(t);return l&&At(e,"delete",t,void 0,r),a}function nd(){const t=oe(this),e=t.size!==0,n=process.env.NODE_ENV!=="production"?cn(t)?new Map(t):new Set(t):void 0,i=t.clear();return e&&At(t,"clear",void 0,void 0,n),i}function Po(t,e){return function(i,l){const r=this,a=r.__v_raw,s=oe(a),d=e?Nl:t?Rl:$n;return!t&&Oe(s,"iterate",qt),a.forEach((f,u)=>i.call(l,d(f),d(u),r))}}function $o(t,e,n){return function(...i){const l=this.__v_raw,r=oe(l),a=cn(r),s=t==="entries"||t===Symbol.iterator&&a,d=t==="keys"&&a,f=l[t](...i),u=n?Nl:e?Rl:$n;return!e&&Oe(r,"iterate",d?Dl:qt),{next(){const{value:g,done:h}=f.next();return h?{value:g,done:h}:{value:s?[u(g[0]),u(g[1])]:u(g),done:h}},[Symbol.iterator](){return this}}}}function xt(t){return function(...e){if(process.env.NODE_ENV!=="production"){const n=e[0]?`on key "${e[0]}" `:"";console.warn(`${mE(t)} operation ${n}failed: target is readonly.`,oe(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function BE(){const t={get(r){return Oo(this,r)},get size(){return Lo(this)},has:Mo,add:Jc,set:ed,delete:td,clear:nd,forEach:Po(!1,!1)},e={get(r){return Oo(this,r,!1,!0)},get size(){return Lo(this)},has:Mo,add:Jc,set:ed,delete:td,clear:nd,forEach:Po(!1,!0)},n={get(r){return Oo(this,r,!0)},get size(){return Lo(this,!0)},has(r){return Mo.call(this,r,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Po(!0,!1)},i={get(r){return Oo(this,r,!0,!0)},get size(){return Lo(this,!0)},has(r){return Mo.call(this,r,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Po(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{t[r]=$o(r,!1,!1),n[r]=$o(r,!0,!1),e[r]=$o(r,!1,!0),i[r]=$o(r,!0,!0)}),[t,n,e,i]}const[TE,RE,IE,OE]=BE();function Vl(t,e){const n=e?t?OE:IE:t?RE:TE;return(i,l,r)=>l==="__v_isReactive"?!t:l==="__v_isReadonly"?t:l==="__v_raw"?i:Reflect.get(ye(n,l)&&l in i?n:i,l,r)}const ME={get:Vl(!1,!1)},LE={get:Vl(!0,!1)},PE={get:Vl(!0,!0)};function od(t,e,n){const i=oe(n);if(i!==n&&e.call(t,i)){const l=Mc(t);console.warn(`Reactive ${l} contains both the raw and reactive versions of the same object${l==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const id=new WeakMap,$E=new WeakMap,ld=new WeakMap,rd=new WeakMap;function zE(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function FE(t){return t.__v_skip||!Object.isExtensible(t)?0:zE(Mc(t))}function ad(t){return un(t)?t:Bl(t,!1,DE,ME,id)}function sd(t){return Bl(t,!0,NE,LE,ld)}function zo(t){return Bl(t,!0,VE,PE,rd)}function Bl(t,e,n,i,l){if(!Ue(t))return process.env.NODE_ENV!=="production"&&console.warn(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=l.get(t);if(r)return r;const a=FE(t);if(a===0)return t;const s=new Proxy(t,a===2?i:n);return l.set(t,s),s}function dn(t){return un(t)?dn(t.__v_raw):!!(t&&t.__v_isReactive)}function un(t){return!!(t&&t.__v_isReadonly)}function fn(t){return!!(t&&t.__v_isShallow)}function Tl(t){return dn(t)||un(t)}function oe(t){const e=t&&t.__v_raw;return e?oe(e):t}function HE(t){return gE(t,"__v_skip",!0),t}const $n=t=>Ue(t)?ad(t):t,Rl=t=>Ue(t)?sd(t):t;class UE{constructor(e,n,i,l){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Fc(()=>e(this._value),()=>Il(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!l,this.__v_isReadonly=i}get value(){const e=oe(this);return cd(e),(!e._cacheable||e.effect.dirty)&&vt(e._value,e._value=e.effect.run())&&Il(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function cd(t){St&&Gt&&(t=oe(t),Gc(Gt,t.dep||(t.dep=Yc(()=>t.dep=void 0,t instanceof UE?t:void 0)),process.env.NODE_ENV!=="production"?{target:t,type:"get",key:"value"}:void 0))}function Il(t,e=3,n){t=oe(t);const i=t.dep;i&&qc(i,e,process.env.NODE_ENV!=="production"?{target:t,type:"set",key:"value",newValue:n}:void 0)}function ze(t){return!!(t&&t.__v_isRef===!0)}function zn(t){return jE(t,!1)}function jE(t,e){return ze(t)?t:new WE(t,e)}class WE{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:oe(e),this._value=n?e:$n(e)}get value(){return cd(this),this._value}set value(e){const n=this.__v_isShallow||fn(e)||un(e);e=n?e:oe(e),vt(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:$n(e),Il(this,3,e))}}function GE(t){return ze(t)?t.value:t}const qE={get:(t,e,n)=>GE(Reflect.get(t,e,n)),set:(t,e,n,i)=>{const l=t[e];return ze(l)&&!ze(n)?(l.value=n,!0):Reflect.set(t,e,n,i)}};function YE(t){return dn(t)?t:new Proxy(t,qE)}const Yt=[];function QE(t){Yt.push(t)}function ZE(){Yt.pop()}function be(t,...e){Cl();const n=Yt.length?Yt[Yt.length-1].component:null,i=n&&n.appContext.config.warnHandler,l=KE();if(i)Qt(i,n,11,[t+e.join(""),n&&n.proxy,l.map(({vnode:r})=>`at <${Id(n,r.type)}>`).join(`
|
|
51
|
+
`),l]);else{const r=[`[Vue warn]: ${t}`,...e];l.length&&r.push(`
|
|
52
|
+
`,...XE(l)),console.warn(...r)}wl()}function KE(){let t=Yt[Yt.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const i=t.component&&t.component.parent;t=i&&i.vnode}return e}function XE(t){const e=[];return t.forEach((n,i)=>{e.push(...i===0?[]:[`
|
|
53
|
+
`],...JE(n))}),e}function JE({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",i=t.component?t.component.parent==null:!1,l=` at <${Id(t.component,t.type,i)}`,r=">"+n;return t.props?[l,...ek(t.props),r]:[l+r]}function ek(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(i=>{e.push(...dd(i,t[i]))}),n.length>3&&e.push(" ..."),e}function dd(t,e,n){return He(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:ze(e)?(e=dd(t,oe(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):we(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=oe(e),n?e:[`${t}=`,e])}const ud={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function Qt(t,e,n,i){let l;try{l=i?t(...i):t()}catch(r){Ol(r,e,n)}return l}function Fo(t,e,n,i){if(we(t)){const r=Qt(t,e,n,i);return r&&fE(r)&&r.catch(a=>{Ol(a,e,n)}),r}const l=[];for(let r=0;r<t.length;r++)l.push(Fo(t[r],e,n,i));return l}function Ol(t,e,n,i=!0){const l=e?e.vnode:null;if(e){let r=e.parent;const a=e.proxy,s=process.env.NODE_ENV!=="production"?ud[n]:`https://vuejs.org/errors/#runtime-${n}`;for(;r;){const f=r.ec;if(f){for(let u=0;u<f.length;u++)if(f[u](t,a,s)===!1)return}r=r.parent}const d=e.appContext.config.errorHandler;if(d){Qt(d,null,10,[t,a,s]);return}}tk(t,n,l,i)}function tk(t,e,n,i=!0){if(process.env.NODE_ENV!=="production"){const l=ud[e];if(n&&QE(n),be(`Unhandled error${l?` during execution of ${l}`:""}`),n&&ZE(),i)throw t;console.error(t)}else console.error(t)}let Ho=!1,Ml=!1;const je=[];let Dt=0;const pn=[];let et=null,Nt=0;const fd=Promise.resolve();let Ll=null;const nk=100;function ok(t){const e=Ll||fd;return t?e.then(this?t.bind(this):t):e}function ik(t){let e=Dt+1,n=je.length;for(;e<n;){const i=e+n>>>1,l=je[i],r=Fn(l);r<t||r===t&&l.pre?e=i+1:n=i}return e}function Pl(t){(!je.length||!je.includes(t,Ho&&t.allowRecurse?Dt+1:Dt))&&(t.id==null?je.push(t):je.splice(ik(t.id),0,t),pd())}function pd(){!Ho&&!Ml&&(Ml=!0,Ll=fd.then(md))}function hd(t){ge(t)?pn.push(...t):(!et||!et.includes(t,t.allowRecurse?Nt+1:Nt))&&pn.push(t),pd()}function lk(t){if(pn.length){const e=[...new Set(pn)];if(pn.length=0,et){et.push(...e);return}for(et=e,process.env.NODE_ENV!=="production"&&(t=t||new Map),et.sort((n,i)=>Fn(n)-Fn(i)),Nt=0;Nt<et.length;Nt++)process.env.NODE_ENV!=="production"&&gd(t,et[Nt])||et[Nt]();et=null,Nt=0}}const Fn=t=>t.id==null?1/0:t.id,rk=(t,e)=>{const n=Fn(t)-Fn(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function md(t){Ml=!1,Ho=!0,process.env.NODE_ENV!=="production"&&(t=t||new Map),je.sort(rk);const e=process.env.NODE_ENV!=="production"?n=>gd(t,n):Wt;try{for(Dt=0;Dt<je.length;Dt++){const n=je[Dt];if(n&&n.active!==!1){if(process.env.NODE_ENV!=="production"&&e(n))continue;Qt(n,null,14)}}}finally{Dt=0,je.length=0,lk(t),Ho=!1,Ll=null,(je.length||pn.length)&&md(t)}}function gd(t,e){if(!t.has(e))t.set(e,1);else{const n=t.get(e);if(n>nk){const i=e.ownerInstance,l=i&&Rd(i.type);return Ol(`Maximum recursive updates exceeded${l?` in component <${l}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else t.set(e,n+1)}}const Hn=new Set;process.env.NODE_ENV!=="production"&&(Pc().__VUE_HMR_RUNTIME__={createRecord:$l(ak),rerender:$l(sk),reload:$l(ck)});const Uo=new Map;function ak(t,e){return Uo.has(t)?!1:(Uo.set(t,{initialDef:Un(e),instances:new Set}),!0)}function Un(t){return Od(t)?t.__vccOpts:t}function sk(t,e){const n=Uo.get(t);n&&(n.initialDef.render=e,[...n.instances].forEach(i=>{e&&(i.render=e,Un(i.type).render=e),i.renderCache=[],i.effect.dirty=!0,i.update()}))}function ck(t,e){const n=Uo.get(t);if(!n)return;e=Un(e),_d(n.initialDef,e);const i=[...n.instances];for(const l of i){const r=Un(l.type);Hn.has(r)||(r!==n.initialDef&&_d(r,e),Hn.add(r)),l.appContext.propsCache.delete(l.type),l.appContext.emitsCache.delete(l.type),l.appContext.optionsCache.delete(l.type),l.ceReload?(Hn.add(r),l.ceReload(e.styles),Hn.delete(r)):l.parent?(l.parent.effect.dirty=!0,Pl(l.parent.update)):l.appContext.reload?l.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}hd(()=>{for(const l of i)Hn.delete(Un(l.type))})}function _d(t,e){Je(t,e);for(const n in t)n!=="__file"&&!(n in e)&&delete t[n]}function $l(t){return(e,n)=>{try{return t(e,n)}catch(i){console.error(i),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let hn,jo=[];function yd(t,e){var n,i;hn=t,hn?(hn.enabled=!0,jo.forEach(({event:l,args:r})=>hn.emit(l,...r)),jo=[]):typeof window<"u"&&window.HTMLElement&&!((i=(n=window.navigator)==null?void 0:n.userAgent)!=null&&i.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{yd(r,e)}),setTimeout(()=>{hn||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,jo=[])},3e3)):jo=[]}let ct=null,dk=null;function bw(){}const uk=Symbol.for("v-ndc"),fk=t=>t.__isSuspense;function pk(t,e){e&&e.pendingBranch?ge(t)?e.effects.push(...t):e.effects.push(t):hd(t)}const hk=Symbol.for("v-scx"),mk=()=>{{const t=Sk(hk);return t||process.env.NODE_ENV!=="production"&&be("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),t}},Wo={};function gk(t,e,n){return process.env.NODE_ENV!=="production"&&!we(e)&&be("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),bd(t,e,n)}function bd(t,e,{immediate:n,deep:i,flush:l,once:r,onTrack:a,onTrigger:s}=wt){var d;if(e&&r){const x=e;e=(...C)=>{x(...C),O()}}process.env.NODE_ENV!=="production"&&!e&&(n!==void 0&&be('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&be('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&be('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const f=x=>{be("Invalid watch source: ",x,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=CE()===((d=Zt)==null?void 0:d.scope)?Zt:null;let g,h=!1,c=!1;if(ze(t)?(g=()=>t.value,h=fn(t)):dn(t)?(g=fn(t)||i===!1?()=>Vt(t,1):()=>Vt(t),h=!0):ge(t)?(c=!0,h=t.some(x=>dn(x)||fn(x)),g=()=>t.map(x=>{if(ze(x))return x.value;if(dn(x))return Vt(x,fn(x)||i===!1?1:void 0);if(we(x))return Qt(x,u,2);process.env.NODE_ENV!=="production"&&f(x)})):we(t)?e?g=()=>Qt(t,u,2):g=()=>{if(!(u&&u.isUnmounted))return _&&_(),Fo(t,u,3,[p])}:(g=Wt,process.env.NODE_ENV!=="production"&&f(t)),e&&i){const x=g;g=()=>Vt(x())}let _,p=x=>{_=v.onStop=()=>{Qt(x,u,4),_=v.onStop=void 0}},m;if(Td)if(p=Wt,e?n&&Fo(e,u,3,[g(),c?[]:void 0,p]):g(),l==="sync"){const x=mk();m=x.__watcherHandles||(x.__watcherHandles=[])}else return Wt;let b=c?new Array(t.length).fill(Wo):Wo;const y=()=>{if(!(!v.active||!v.dirty))if(e){const x=v.run();(i||h||(c?x.some((C,k)=>vt(C,b[k])):vt(x,b)))&&(_&&_(),Fo(e,u,3,[x,b===Wo?void 0:c&&b[0]===Wo?[]:b,p]),b=x)}else v.run()};y.allowRecurse=!!e;let w;l==="sync"?w=y:l==="post"?w=()=>Sd(y,u&&u.suspense):(y.pre=!0,u&&(y.id=u.uid),w=()=>Pl(y));const v=new Fc(g,Wt,w),O=()=>{v.stop(),u&&u.scope&&cE(u.scope.effects,v)};return process.env.NODE_ENV!=="production"&&(v.onTrack=a,v.onTrigger=s),e?n?y():b=v.run():l==="post"?Sd(v.run.bind(v),u&&u.suspense):v.run(),m&&m.push(O),O}function _k(t,e,n){const i=this.proxy,l=He(t)?t.includes(".")?yk(i,t):()=>i[t]:t.bind(i,i);let r;we(e)?r=e:(r=e.handler,n=e);const a=Zt;Bd(this);const s=bd(l,r.bind(i),n);return a?Bd(a):Mk(),s}function yk(t,e){const n=e.split(".");return()=>{let i=t;for(let l=0;l<n.length&&i;l++)i=i[n[l]];return i}}function Vt(t,e,n=0,i){if(!Ue(t)||t.__v_skip)return t;if(e&&e>0){if(n>=e)return t;n++}if(i=i||new Set,i.has(t))return t;if(i.add(t),ze(t))Vt(t.value,e,n,i);else if(ge(t))for(let l=0;l<t.length;l++)Vt(t[l],e,n,i);else if(uE(t)||cn(t))t.forEach(l=>{Vt(l,e,n,i)});else if(hE(t))for(const l in t)Vt(t[l],e,n,i);return t}const zl=t=>t?Lk(t)?Pk(t)||t.proxy:zl(t.parent):null,jn=Je(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>process.env.NODE_ENV!=="production"?zo(t.props):t.props,$attrs:t=>process.env.NODE_ENV!=="production"?zo(t.attrs):t.attrs,$slots:t=>process.env.NODE_ENV!=="production"?zo(t.slots):t.slots,$refs:t=>process.env.NODE_ENV!=="production"?zo(t.refs):t.refs,$parent:t=>zl(t.parent),$root:t=>zl(t.root),$emit:t=>t.emit,$options:t=>kk(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,Pl(t.update)}),$nextTick:t=>t.n||(t.n=ok.bind(t.proxy)),$watch:t=>_k.bind(t)}),bk=t=>t==="_"||t==="$",Fl=(t,e)=>t!==wt&&!t.__isScriptSetup&&ye(t,e),Ek={get({_:t},e){const{ctx:n,setupState:i,data:l,props:r,accessCache:a,type:s,appContext:d}=t;if(process.env.NODE_ENV!=="production"&&e==="__isVue")return!0;let f;if(e[0]!=="$"){const c=a[e];if(c!==void 0)switch(c){case 1:return i[e];case 2:return l[e];case 4:return n[e];case 3:return r[e]}else{if(Fl(i,e))return a[e]=1,i[e];if(l!==wt&&ye(l,e))return a[e]=2,l[e];if((f=t.propsOptions[0])&&ye(f,e))return a[e]=3,r[e];if(n!==wt&&ye(n,e))return a[e]=4,n[e];a[e]=0}}const u=jn[e];let g,h;if(u)return e==="$attrs"?(Oe(t,"get",e),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&e==="$slots"&&Oe(t,"get",e),u(t);if((g=s.__cssModules)&&(g=g[e]))return g;if(n!==wt&&ye(n,e))return a[e]=4,n[e];if(h=d.config.globalProperties,ye(h,e))return h[e];process.env.NODE_ENV!=="production"&&ct&&(!He(e)||e.indexOf("__v")!==0)&&(l!==wt&&bk(e[0])&&ye(l,e)?be(`Property ${JSON.stringify(e)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):t===ct&&be(`Property ${JSON.stringify(e)} was accessed during render but is not defined on instance.`))},set({_:t},e,n){const{data:i,setupState:l,ctx:r}=t;return Fl(l,e)?(l[e]=n,!0):process.env.NODE_ENV!=="production"&&l.__isScriptSetup&&ye(l,e)?(be(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):i!==wt&&ye(i,e)?(i[e]=n,!0):ye(t.props,e)?(process.env.NODE_ENV!=="production"&&be(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in t?(process.env.NODE_ENV!=="production"&&be(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&e in t.appContext.config.globalProperties?Object.defineProperty(r,e,{enumerable:!0,configurable:!0,value:n}):r[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:i,appContext:l,propsOptions:r}},a){let s;return!!n[a]||t!==wt&&ye(t,a)||Fl(e,a)||(s=r[0])&&ye(s,a)||ye(i,a)||ye(jn,a)||ye(l.config.globalProperties,a)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:ye(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};process.env.NODE_ENV!=="production"&&(Ek.ownKeys=t=>(be("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(t)));function Ed(t){return ge(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function kk(t){const e=t.type,{mixins:n,extends:i}=e,{mixins:l,optionsCache:r,config:{optionMergeStrategies:a}}=t.appContext,s=r.get(e);let d;return s?d=s:!l.length&&!n&&!i?d=e:(d={},l.length&&l.forEach(f=>Go(d,f,a,!0)),Go(d,e,a)),Ue(e)&&r.set(e,d),d}function Go(t,e,n,i=!1){const{mixins:l,extends:r}=e;r&&Go(t,r,n,!0),l&&l.forEach(a=>Go(t,a,n,!0));for(const a in e)if(i&&a==="expose")process.env.NODE_ENV!=="production"&&be('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const s=Ck[a]||n&&n[a];t[a]=s?s(t[a],e[a]):e[a]}return t}const Ck={data:kd,props:wd,emits:wd,methods:Wn,computed:Wn,beforeCreate:Ne,created:Ne,beforeMount:Ne,mounted:Ne,beforeUpdate:Ne,updated:Ne,beforeDestroy:Ne,beforeUnmount:Ne,destroyed:Ne,unmounted:Ne,activated:Ne,deactivated:Ne,errorCaptured:Ne,serverPrefetch:Ne,components:Wn,directives:Wn,watch:vk,provide:kd,inject:wk};function kd(t,e){return e?t?function(){return Je(we(t)?t.call(this,this):t,we(e)?e.call(this,this):e)}:e:t}function wk(t,e){return Wn(Cd(t),Cd(e))}function Cd(t){if(ge(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Ne(t,e){return t?[...new Set([].concat(t,e))]:e}function Wn(t,e){return t?Je(Object.create(null),t,e):e}function wd(t,e){return t?ge(t)&&ge(e)?[...new Set([...t,...e])]:Je(Object.create(null),Ed(t),Ed(e??{})):e}function vk(t,e){if(!t)return e;if(!e)return t;const n=Je(Object.create(null),t);for(const i in e)n[i]=Ne(t[i],e[i]);return n}let vd=null;function Sk(t,e,n=!1){const i=Zt||ct;if(i||vd){const l=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:vd._context.provides;if(l&&t in l)return l[t];if(arguments.length>1)return n&&we(e)?e.call(i&&i.proxy):e;process.env.NODE_ENV!=="production"&&be(`injection "${String(t)}" not found.`)}else process.env.NODE_ENV!=="production"&&be("inject() can only be used inside setup() or functional components.")}const Sd=pk,Ak=t=>t.__isTeleport,Ad=Symbol.for("v-fgt"),xk=Symbol.for("v-txt"),Dk=Symbol.for("v-cmt");let mn=null;function Nk(t){return t?t.__v_isVNode===!0:!1}const Vk=(...t)=>Nd(...t),xd="__vInternal",Dd=({key:t})=>t??null,qo=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?He(t)||ze(t)||we(t)?{i:ct,r:t,k:e,f:!!n}:t:null);function Bk(t,e=null,n=null,i=0,l=null,r=t===Ad?0:1,a=!1,s=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Dd(e),ref:e&&qo(e),scopeId:dk,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:ct};return s?(Hl(d,n),r&128&&t.normalize(d)):n&&(d.shapeFlag|=He(n)?8:16),process.env.NODE_ENV!=="production"&&d.key!==d.key&&be("VNode created with invalid key (NaN). VNode type:",d.type),!a&&mn&&(d.patchFlag>0||r&6)&&d.patchFlag!==32&&mn.push(d),d}const Tk=process.env.NODE_ENV!=="production"?Vk:Nd;function Nd(t,e=null,n=null,i=0,l=null,r=!1){if((!t||t===uk)&&(process.env.NODE_ENV!=="production"&&!t&&be(`Invalid vnode type when creating vnode: ${t}.`),t=Dk),Nk(t)){const s=Yo(t,e,!0);return n&&Hl(s,n),!r&&mn&&(s.shapeFlag&6?mn[mn.indexOf(t)]=s:mn.push(s)),s.patchFlag|=-2,s}if(Od(t)&&(t=t.__vccOpts),e){e=Rk(e);let{class:s,style:d}=e;s&&!He(s)&&(e.class=El(s)),Ue(d)&&(Tl(d)&&!ge(d)&&(d=Je({},d)),e.style=bl(d))}const a=He(t)?1:fk(t)?128:Ak(t)?64:Ue(t)?4:we(t)?2:0;return process.env.NODE_ENV!=="production"&&a&4&&Tl(t)&&(t=oe(t),be("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
54
|
+
Component that was made reactive: `,t)),Bk(t,e,n,i,l,a,r,!0)}function Rk(t){return t?Tl(t)||xd in t?Je({},t):t:null}function Yo(t,e,n=!1){const{props:i,ref:l,patchFlag:r,children:a}=t,s=e?Ok(i||{},e):i;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:s,key:s&&Dd(s),ref:e&&e.ref?n&&l?ge(l)?l.concat(qo(e)):[l,qo(e)]:qo(e):l,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:process.env.NODE_ENV!=="production"&&r===-1&&ge(a)?a.map(Vd):a,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ad?r===-1?16:r|16:r,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Yo(t.ssContent),ssFallback:t.ssFallback&&Yo(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Vd(t){const e=Yo(t);return ge(t.children)&&(e.children=t.children.map(Vd)),e}function Ik(t=" ",e=0){return Tk(xk,null,t,e)}function Hl(t,e){let n=0;const{shapeFlag:i}=t;if(e==null)e=null;else if(ge(e))n=16;else if(typeof e=="object")if(i&65){const l=e.default;l&&(l._c&&(l._d=!1),Hl(t,l()),l._c&&(l._d=!0));return}else{n=32;const l=e._;!l&&!(xd in e)?e._ctx=ct:l===3&&ct&&(ct.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else we(e)?(e={default:e,_ctx:ct},n=32):(e=String(e),i&64?(n=16,e=[Ik(e)]):n=8);t.children=e,t.shapeFlag|=n}function Ok(...t){const e={};for(let n=0;n<t.length;n++){const i=t[n];for(const l in i)if(l==="class")e.class!==i.class&&(e.class=El([e.class,i.class]));else if(l==="style")e.style=bl([e.style,i.style]);else if(sE(l)){const r=e[l],a=i[l];a&&r!==a&&!(ge(r)&&r.includes(a))&&(e[l]=r?[].concat(r,a):a)}else l!==""&&(e[l]=i[l])}return e}let Zt=null,Ul;{const t=Pc(),e=(n,i)=>{let l;return(l=t[n])||(l=t[n]=[]),l.push(i),r=>{l.length>1?l.forEach(a=>a(r)):l[0](r)}};Ul=e("__VUE_INSTANCE_SETTERS__",n=>Zt=n),e("__VUE_SSR_SETTERS__",n=>Td=n)}const Bd=t=>{Ul(t),t.scope.on()},Mk=()=>{Zt&&Zt.scope.off(),Ul(null)};function Lk(t){return t.vnode.shapeFlag&4}let Td=!1;function Pk(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(YE(HE(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in jn)return jn[n](t)},has(e,n){return n in e||n in jn}}))}const $k=/(?:^|[-_])(\w)/g,zk=t=>t.replace($k,e=>e.toUpperCase()).replace(/[-_]/g,"");function Rd(t,e=!0){return we(t)?t.displayName||t.name:t.name||e&&t.__name}function Id(t,e,n=!1){let i=Rd(e);if(!i&&e.__file){const l=e.__file.match(/([^/\\]+)\.\w+$/);l&&(i=l[1])}if(!i&&t&&t.parent){const l=r=>{for(const a in r)if(r[a]===e)return a};i=l(t.components||t.parent.type.components)||l(t.appContext.components)}return i?zk(i):n?"App":"Anonymous"}function Od(t){return we(t)&&"__vccOpts"in t}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;const Fk=o.defineComponent({__name:"index",props:{modelValue:{type:String,default:""},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=o.useModel(t,"modelValue"),n=zn(!1);let i={};const l=zn({}),r=zn(null);nE(r,h=>{var c,_,p;((c=h==null?void 0:h.target)==null?void 0:c.className)==="icon-list"||((_=h==null?void 0:h.target)==null?void 0:_.nodeName)==="INPUT"||(p=h==null?void 0:h.target)!=null&&p.className.includes("el-tabs__item")||(n.value=!1)}),function(){i={double:wc.glyphs.map(c=>({...c,class:`${wc.css_prefix_text}${c.font_class}`})),single:vc.glyphs.map(c=>({...c,class:`${vc.css_prefix_text}${c.font_class}`}))},l.value=$._.cloneDeep(i)}();function a(h){e.value=h.class}function s(){e.value=""}const d=zn("");gk(d,h=>{l.value={single:i.single.filter(c=>{var _;return(_=c.name)==null?void 0:_.includes(h)}),double:i.double.filter(c=>{var _;return(_=c.name)==null?void 0:_.includes(h)})}});const f=()=>{n.value=!0},u=()=>{n.value=!1},g=zn("double");return(h,c)=>{const _=o.resolveComponent("el-input"),p=o.resolveComponent("el-tab-pane"),m=o.resolveComponent("el-tabs"),b=o.resolveComponent("el-popover");return o.openBlock(),o.createBlock(b,{title:"",visible:o.unref(n),ref_key:"target",ref:r,"popper-class":"icon-picker-pop",width:400,trigger:"click"},{reference:o.withCtx(()=>[o.createElementVNode("div",{class:"icon-picker-header line-height-[0] font-size-[var(--ik-margin-m-28)]",onClick:f},[e.value?(o.openBlock(),o.createBlock(o.unref(me),{key:0,name:e.value},null,8,["name"])):(o.openBlock(),o.createBlock(o.unref(me),{key:1,name:"iksvg_guanbibeifen",size:14})),e.value?(o.openBlock(),o.createBlock(o.unref(me),{key:2,title:"删除图标",onClick:o.withModifiers(s,["stop"]),name:"iksvg_guanbi",warning:"",class:"icon-delete"})):o.createCommentVNode("v-if",!0)])]),default:o.withCtx(()=>[o.createVNode(_,{modelValue:o.unref(d),"onUpdate:modelValue":c[0]||(c[0]=y=>o.isRef(d)?d.value=y:null),clearable:"",placeholder:"输入图标名称检索"},{suffix:o.withCtx(()=>[o.createVNode(o.unref(me),{name:"iksvg_sousuo-daohang"})]),_:1},8,["modelValue"]),o.createVNode(m,{modelValue:o.unref(g),"onUpdate:modelValue":c[1]||(c[1]=y=>o.isRef(g)?g.value=y:null)},{default:o.withCtx(()=>[o.createVNode(p,{label:"双色图标",name:"double"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"icon-list",onClick:o.withModifiers(u,["stop"])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(l).double,y=>(o.openBlock(),o.createBlock(o.unref(me),{size:20,title:y.name,key:y.name,name:y.class,onClick:w=>a(y)},null,8,["title","name","onClick"]))),128))])]),_:1}),o.createVNode(p,{label:"单色图标",name:"single"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"icon-list",onClick:o.withModifiers(u,["stop"])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(l).single,y=>(o.openBlock(),o.createBlock(o.unref(me),{size:20,title:y.name,key:y.name,name:y.class,onClick:w=>a(y)},null,8,["title","name","onClick"]))),128))])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["visible"])}}}),Ew="",kw="",Hk=de(K(Fk,[["__scopeId","data-v-723ddfce"]])),Uk=o.defineComponent({__name:"index",props:o.mergeModels({list:{type:Array},isButton:{type:Boolean,default:!0}},{modelValue:{type:String,default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=o.useModel(t,"modelValue");return(n,i)=>{const l=o.resolveComponent("el-radio-button"),r=o.resolveComponent("el-radio-group");return o.openBlock(),o.createBlock(r,{modelValue:e.value,"onUpdate:modelValue":i[0]||(i[0]=a=>e.value=a),class:"ik-radio-btn"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.list,(a,s)=>(o.openBlock(),o.createBlock(l,{key:s,label:a.value},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(a.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}}),ww="",jk=de(K(Uk,[["__scopeId","data-v-186a428a"]])),Wk=o.defineComponent({__name:"CloseIcon",setup(t){return(e,n)=>(o.openBlock(),o.createBlock(o.unref(me),{name:"iksvg_guanbidanchuang",warning:"",title:"关闭"}))}}),Sw="",Gk=K(Wk,[["__scopeId","data-v-c39a4108"]]),qk=de(o.defineComponent({__name:"IkBaseDialog",props:o.mergeModels({title:{default:""},cancelText:{default:"取消"},confirmText:{default:"确认"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=o.useModel(t,"modelValue"),n=o.ref(!1),i=()=>{n.value=!n.value};return(l,r)=>{const a=o.resolveComponent("IkSvgIcon"),s=o.resolveComponent("el-dialog");return o.openBlock(),o.createBlock(s,o.mergeProps({modelValue:e.value,"onUpdate:modelValue":r[0]||(r[0]=d=>e.value=d)},l.$attrs,{"close-icon":Gk,fullscreen:n.value}),o.createSlots({header:o.withCtx(()=>[o.createElementVNode("div",null,[o.renderSlot(l.$slots,"header",{},()=>[o.createTextVNode(o.toDisplayString(l.title),1)])]),l.$attrs.showClose?(o.openBlock(),o.createBlock(a,{key:0,onClick:i,name:n.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:n.value?"退出全屏":"全屏"},null,8,["name","title"])):o.createCommentVNode("v-if",!0)]),default:o.withCtx(()=>[o.renderSlot(l.$slots,"default")]),_:2},[l.$slots.footer?{name:"footer",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","fullscreen"])}}}));Y.EAlign=nr,Y.EDateType=ht,Y.EType=Ye,Y.Event=ty,Y.IKApprovalProcess=up,Y.IKApprovalProcessDetail=$f,Y.IKCalendar=c_,Y.IKHorizontalStepBar=m_,Y.IKSearch=Bu,Y.IKSearchHead=Tu,Y.IKVerticalStepBar=$u,Y.IkBaseDialog=qk,Y.IkBtnContent=H4,Y.IkBtnSetting=Ec,Y.IkDragList=Cc,Y.IkFullCalendar=hc,Y.IkIconPicker=Hk,Y.IkPageFull=jy,Y.IkPageTabs=Dy,Y.IkPreviewFile=S_,Y.IkPrintConfig=z6,Y.IkPrintView=j6,Y.IkRadioGroup=jk,Y.IkSchedule=Sy,Y.IkStatu=j4,Y.IkSvgIcon=me,Y.IkTooltip=W4,Y.IkUploadFile=y6,Y.IkUploadImage=M6,Y.IkingPicker=Mn,Y.IkingPickerUser=F4,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"})});
|