@beterdichtbij/component-library 0.36.4 → 0.36.5

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.
@@ -124,8 +124,8 @@ img.ProseMirror-separator {
124
124
  1. Must only contain digits, lowercase ASCII letters or "-"
125
125
  2. Cannot start or end with "-"
126
126
  3. "-" cannot repeat`);ze.customSchemes.push([n,e])}function I7(){ze.scanner=w7(ze.customSchemes);for(let n=0;n<ze.tokenQueue.length;n++)ze.tokenQueue[n][1]({scanner:ze.scanner});ze.parser=x7(ze.scanner.tokens);for(let n=0;n<ze.pluginQueue.length;n++)ze.pluginQueue[n][1]({scanner:ze.scanner,parser:ze.parser});ze.initialized=!0}function D7(n){return ze.initialized||I7(),O7(ze.parser.start,n,k7(ze.scanner.start,n))}function vc(n,e,t){if(e===void 0&&(e=null),t===void 0&&(t=null),e&&typeof e=="object"){if(t)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);t=e,e=null}const r=new gc(t),o=D7(n),i=[];for(let s=0;s<o.length;s++){const l=o[s];l.isLink&&(!e||l.t===e)&&r.check(l)&&i.push(l.toFormattedObject(r))}return i}function L7(n){return new vt({key:new jt("autolink"),appendTransaction:(e,t,r)=>{const o=e.some(c=>c.docChanged)&&!t.doc.eq(r.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,l=db(t.doc,[...e]);if(Eb(l).forEach(({newRange:c})=>{const u=hb(r.doc,c,p=>p.isTextblock);let f,h;if(u.length>1?(f=u[0],h=r.doc.textBetween(f.pos,f.pos+f.node.nodeSize,void 0," ")):u.length&&r.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(f=u[0],h=r.doc.textBetween(f.pos,c.to,void 0," ")),f&&h){const p=h.split(" ").filter(y=>y!=="");if(p.length<=0)return!1;const m=p[p.length-1],g=f.pos+h.lastIndexOf(m);if(!m)return!1;vc(m).filter(y=>y.isLink).map(y=>({...y,from:g+y.start+1,to:g+y.end+1})).filter(y=>r.schema.marks.code?!r.doc.rangeHasMark(y.from,y.to,r.schema.marks.code):!0).filter(y=>n.validate?n.validate(y.value):!0).forEach(y=>{Ol(y.from,y.to,r.doc).some(C=>C.mark.type===n.type)||s.addMark(y.from,y.to,n.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function R7(n){return new vt({key:new jt("handleClickLink"),props:{handleClick:(e,t,r)=>{var o,i;if(r.button!==0||r.target.nodeName!=="A")return!1;const l=qf(e.state,n.type.name),a=r.target,c=(o=a==null?void 0:a.href)!==null&&o!==void 0?o:l.href,u=(i=a==null?void 0:a.target)!==null&&i!==void 0?i:l.target;return a&&c?(e.editable&&window.open(c,u),!0):!1}}})}function B7(n){return new vt({key:new jt("handlePasteLink"),props:{handlePaste:(e,t,r)=>{var o;const{state:i}=e,{selection:s}=i,{empty:l}=s;if(l)return!1;let a="";r.content.forEach(m=>{a+=m.textContent});const c=vc(a).find(m=>m.isLink&&m.value===a);if(!a||!c)return!1;const u=(o=t.clipboardData)===null||o===void 0?void 0:o.getData("text/html"),f=/href="([^"]*)"/,h=u==null?void 0:u.match(f),p=h?h[1]:c.href;return n.editor.commands.setMark(n.type,{href:p}),!0}}})}const $7=tn.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{if(typeof n=="string"){Ep(n);return}Ep(n.scheme,n.optionalSlashes)})},onDestroy(){_7()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:n}){return["a",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setLink:n=>({chain:e})=>e().setMark(this.name,n).setMeta("preventAutolink",!0).run(),toggleLink:n=>({chain:e})=>e().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Ro({find:n=>vc(n).filter(e=>this.options.validate?this.options.validate(e.value):!0).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:(n,e)=>{var t,r;const o=(t=e==null?void 0:e.clipboardData)===null||t===void 0?void 0:t.getData("text/html"),i=/href="([^"]*)"/,s=o==null?void 0:o.match(i);return s?{href:s[1]}:{href:(r=n.data)===null||r===void 0?void 0:r.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(L7({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(R7({type:this.type})),this.options.linkOnPaste&&n.push(B7({editor:this.editor,type:this.type})),n}}).extend({addAttributes(){var n;return{...(n=this.parent)==null?void 0:n.call(this),title:{default:null,parseHTML:e=>e.getAttribute("title"),renderHTML:e=>({title:e.title})}}}}),P7=Dt.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new vt({key:new jt("placeholder"),props:{decorations:({doc:n,selection:e})=>{const t=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!t)return null;const i=n.type.createAndFill(),s=(i==null?void 0:i.sameMarkup(n))&&i.content.findDiffStart(n.content)===null;return n.descendants((l,a)=>{const c=r>=a&&r<=a+l.nodeSize,u=!l.isLeaf&&!l.childCount;if((c||!this.options.showOnlyCurrent)&&u){const f=[this.options.emptyNodeClass];s&&f.push(this.options.emptyEditorClass);const h=It.node(a,a+l.nodeSize,{class:f.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:l,pos:a,hasAnchor:c}):this.options.placeholder});o.push(h)}return this.options.includeChildren}),Ge.create(n,o)}}})]}}),F7=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,V7=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,z7=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,H7=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,U7=tn.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:n=>n.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}]},renderHTML({HTMLAttributes:n}){return["strong",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Gi({find:F7,type:this.type}),Gi({find:z7,type:this.type})]},addPasteRules(){return[Ro({find:V7,type:this.type}),Ro({find:H7,type:this.type})]}}),j7=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,W7=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,K7=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,Y7=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,G7=tn.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:n=>n.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:n}){return["em",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Gi({find:j7,type:this.type}),Gi({find:K7,type:this.type})]},addPasteRules(){return[Ro({find:W7,type:this.type}),Ro({find:Y7,type:this.type})]}}),J7=tn.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["u",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),Z7=mn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",ht(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),X7=mn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",ht(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Cp=tn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Ki(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Sp=/^\s*([-+*])\s$/,Q7=mn.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:n}){return["ul",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(X7.name,this.editor.getAttributes(Cp.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=Ji({find:Sp,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Ji({find:Sp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Cp.name),editor:this.editor})),[n]}}),q7=mn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",ht(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),wp=tn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Ki(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),kp=/^(\d+)\.\s$/,e8=mn.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:n}){const{start:e,...t}=n;return e===1?["ol",ht(this.options.HTMLAttributes,t),0]:["ol",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(q7.name,this.editor.getAttributes(wp.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=Ji({find:kp,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Ji({find:kp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(wp.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),t8=mn.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",ht(this.options.HTMLAttributes,n)]},renderText(){return`
127
- `},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:i}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&a&&s){const f=a.filter(h=>l.includes(h.type.name));c.ensureMarks(f)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),bc={BASIC:"basic",FULL:"full"},n8={class:"attachment-list"},r8={class:"attachment-link"},o8={key:1,class:"attachment-no-download"},i8=["href"],Us=d.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(n,{emit:e}){const t=r=>{e("delete",r)};return(r,o)=>(d.openBlock(),d.createElementBlock("ul",n8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.files,i=>(d.openBlock(),d.createElementBlock("li",{class:"attachment-list__item",key:i.CorrelationId},[d.createElementVNode("div",r8,[r.showDelete?(d.openBlock(),d.createBlock(Qe,{key:0,variant:"remove",onClick:s=>t(i),"aria-label":"verwijder"},{default:d.withCtx(()=>[d.createVNode(d.unref(ho))]),_:2},1032,["onClick"])):d.createCommentVNode("",!0),r.noDownload?(d.openBlock(),d.createElementBlock("div",o8,[d.createVNode(d.unref(Qn)),d.createTextVNode(" "+d.toDisplayString(i.Naam.trim()),1)])):(d.openBlock(),d.createElementBlock("a",{key:2,href:i.downloadUrl},[d.createVNode(d.unref(Qn)),d.createTextVNode(" "+d.toDisplayString(i.Naam.trim()),1)],8,i8))])]))),128))]))}}),s8={class:"attachment-list"},a8={class:"attachment"},l8=["onClick"],c8=["src","alt"],u8=["onClick"],d8=["href"],f8={class:"btn btn-light download-button-image"},h8=["src","alt"],js=d.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(n,{emit:e}){const t=n,r=i=>{e("delete",i)},o=(i,s)=>{i.target&&i.target.className==="img-preview"&&e("show",s)};return(i,s)=>(d.openBlock(),d.createElementBlock("ul",s8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(i.files,l=>(d.openBlock(),d.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[d.createElementVNode("div",a8,[i.showDelete?(d.openBlock(),d.createBlock(Qe,{key:0,variant:"remove","aria-label":"verwijder",onClick:d.withModifiers(a=>r(l),["prevent"])},{default:d.withCtx(()=>[d.createVNode(d.unref(ho))]),_:2},1032,["onClick"])):d.createCommentVNode("",!0),t.noDownload?(d.openBlock(),d.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[d.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,c8)],8,l8)):(d.openBlock(),d.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(d.openBlock(),d.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[d.createElementVNode("button",f8,[d.createVNode(d.unref(oi))])],8,d8)):d.createCommentVNode("",!0),d.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,h8)],8,u8))])]))),128))]))}}),Tp=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),p8=n=>n.DownloadUrl?n.DownloadUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlage/"+n.Id:n.FileId?`/Portaal/DownloadStandardMessageAttachment/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlage/"+n.CorrelationId,m8=n=>n.ThumbnailUrl?n.ThumbnailUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlageThumbnail/"+n.Id:n.StandardAttachmentId||n.standardAttachmentId?`/Portaal/DownloadStandardMessageAttachmentThumbnail/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlageThumbnail/"+n.CorrelationId,g8=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,y8=(n,e)=>e?Tp(n):!Tp(n),Ws=(n,e)=>n===void 0?void 0:n.filter(r=>y8(r,e)).map(r=>{const o=typeof r.CorrelationId=="string"?r.CorrelationId:r.CorrelationId!=null?r.CorrelationId.toString():"";return{downloadUrl:p8(r),previewUrl:m8(r),fullImageUrl:g8(r),altName:`${r.Naam}`,...r,CorrelationId:o}}),v8={key:0,class:"pills-list__wrapper"},b8={class:"pills-list__ul"},E8={class:"bd-markdown-editor__menu-bottom"},C8={key:0,class:"vr"},Ap=d.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:[Boolean,null],default:null},variant:{default:bc.BASIC},files:{default:void 0},pills:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(n,{emit:e}){const t=n,r=()=>{e("upload")},o=qn(t,"modelValue",e),i=[f7,h7,p7,P7.configure({placeholder:t.placeholder}),t8,$7.configure({openOnClick:!1,validate:M=>/^https?:\/\//i.test(M)})];t.variant===bc.FULL&&i.push(U7,G7,J7,Z7,Q7,e8);const s=d7({content:o.value,extensions:i,onUpdate:({editor:M})=>{const{view:T,state:z}=M,{from:U,to:j}=T.state.selection;if(z.doc.textBetween(U-1,j,"")==" "&&M.getAttributes("link").href!=null&&M.chain().setTextSelection({from:U-1,to:j}).toggleLink({href:M.getAttributes("link").href}).setTextSelection({from:j,to:j}).run(),M.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",M.getHTML())}});d.watch(()=>t.modelValue,M=>{s.value.getHTML()!==M&&s.value.commands.setContent(M,!0,{preserveWhitespace:"full"})});const l=d.computed(()=>t.state===!1?"is-invalid":null),a=d.computed(()=>g("bold")),c=d.computed(()=>g("italic")),u=d.computed(()=>g("underline")),f=d.computed(()=>g("bulletList")),h=d.computed(()=>g("orderedList")),p=d.computed(()=>g("link")),m=d.computed(()=>t.variant===bc.FULL),g=M=>s.value&&s.value.isActive(M)?"active":null,y=d.computed(()=>t.files&&t.files.length>0?Ws(t.files,!1):null),C=d.computed(()=>t.files&&t.files.length>0?Ws(t.files,!0):null),S=M=>{e("action",{name:"delete-attachment",obj:M})},k=M=>{e("action",{name:"image-attachment",obj:M})},b=()=>{const M=s.value.getAttributes("link").href,T=window.prompt("Voeg link toe",M);if(T!==null){if(T===""){s.value.chain().focus().unsetLink().run();return}s.value.chain().focus().toggleLink({href:T}).run()}};return(M,T)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:d.normalizeClass(["bd-markdown-editor",l.value])},[d.createVNode(d.unref(u7),{editor:d.unref(s)},null,8,["editor"]),M.pills?(d.openBlock(),d.createElementBlock("div",v8,[d.createElementVNode("ul",b8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(M.pills,(z,U)=>(d.openBlock(),d.createElementBlock("li",{key:U,class:"pills-list__li"},[d.createVNode(mi,d.normalizeProps(d.guardReactiveProps(z)),null,16)]))),128))])])):d.createCommentVNode("",!0),d.renderSlot(M.$slots,"default"),y.value?(d.openBlock(),d.createBlock(Us,{key:1,files:y.value,"no-download":!0,"show-delete":!0,onDelete:S},null,8,["files"])):d.createCommentVNode("",!0),C.value?(d.openBlock(),d.createBlock(js,{key:2,files:C.value,"no-download":!0,"show-delete":!0,onDelete:S,onShow:k},null,8,["files"])):d.createCommentVNode("",!0),d.createElementVNode("div",E8,[d.createVNode(Qe,{variant:"light",type:"button",onClick:r},{default:d.withCtx(()=>[d.createVNode(d.unref(Qn))]),_:1}),m.value?(d.openBlock(),d.createElementBlock("div",C8)):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Qe,{key:1,variant:"light",type:"button",class:d.normalizeClass(a.value),onClick:T[0]||(T[0]=z=>d.unref(s).chain().focus().toggleBold().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(ca))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Qe,{key:2,variant:"light",type:"button",class:d.normalizeClass(c.value),onClick:T[1]||(T[1]=z=>d.unref(s).chain().focus().toggleItalic().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(ga))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Qe,{key:3,variant:"light",type:"button",class:d.normalizeClass(u.value),onClick:T[2]||(T[2]=z=>d.unref(s).chain().focus().toggleUnderline().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(Ca))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Qe,{key:4,variant:"light",type:"button",class:d.normalizeClass(f.value),onClick:T[3]||(T[3]=z=>d.unref(s).chain().focus().toggleBulletList().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(ua))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Qe,{key:5,variant:"light",type:"button",class:d.normalizeClass(h.value),onClick:T[4]||(T[4]=z=>d.unref(s).chain().focus().toggleOrderedList().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(ya))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Qe,{key:6,variant:"light",type:"button",class:d.normalizeClass(p.value),onClick:b},{default:d.withCtx(()=>[d.createVNode(d.unref(si))]),_:1},8,["class"])):d.createCommentVNode("",!0)])],2),d.createVNode(d.unref(hi),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),S8={class:"header"},w8=d.createElementVNode("div",null,"Menu",-1),k8={class:"icon-close-wrapper"},T8={class:"navbar"},A8={class:"nav navbar-nav w-100"},x8={class:"nav-item"},O8={class:"nav-item"},Ec=d.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(n,{emit:e}){const t=n,r=d.computed(()=>({active:t.active===!0,inactive:t.active===!1})),o=()=>e("hide"),i=()=>e("signout");return(s,l)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["bd-mobile-menu",r.value])},[d.createElementVNode("div",S8,[w8,d.createElementVNode("div",k8,[d.createVNode(ri,{onClick:o})])]),d.createElementVNode("nav",T8,[d.createElementVNode("ul",A8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.options,a=>(d.openBlock(),d.createElementBlock("li",x8,[d.createVNode(Ar,d.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),d.renderSlot(s.$slots,"special-options"),d.createElementVNode("li",O8,[d.createVNode(Ar,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),M8={class:"bd-user"},N8={class:"bd-user__information"},_8={class:"text-break"},I8={class:"overflow-x-hidden"},xp=d.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(n){const e=n,t=d.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(d.openBlock(),d.createElementBlock("div",M8,[e.hideImage?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(po,d.mergeProps({key:0},e.img,{size:"sm"}),null,16)),d.createElementVNode("div",N8,[d.createElementVNode("header",null,[d.createElementVNode("h5",_8,d.toDisplayString(e.name),1),d.renderSlot(r.$slots,"header-extra")]),d.createElementVNode("span",I8,d.toDisplayString(t.value),1)])]))}}),D8={class:"bd-chat-cloud-card"},L8={class:"bd-chat-cloud-card__header"},R8={class:"bd-chat-cloud-card__body"},B8=["innerHTML"],$8={class:"bd-chat-cloud-card__footer"},P8={key:0,class:"pills-list__wrapper"},F8={class:"pills-list__ul"},Op=d.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},AltProfileImage:{default:""},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0}},emits:["show-attachment","action"],setup(n,{emit:e}){const t=n,r=d.computed(()=>t.isSender?"sender":We),o=d.computed(()=>Ws(t.files,!1)),i=d.computed(()=>Ws(t.files,!0)),s=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["bd-chat-cloud",r.value])},[d.createVNode(po,{src:t.src,size:"sm"},null,8,["src"]),d.createElementVNode("div",D8,[d.createElementVNode("div",L8,[d.renderSlot(a.$slots,"header",{},()=>[d.createTextVNode(d.toDisplayString(a.headerTitle),1)]),d.createVNode(Qe,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:d.withCtx(()=>[d.createTextVNode(" kopieer ")]),_:1})]),d.createElementVNode("div",R8,[d.renderSlot(a.$slots,"body",{},()=>[d.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,B8)])]),d.createElementVNode("div",$8,[d.renderSlot(a.$slots,"footer",{},()=>[a.pills?(d.openBlock(),d.createElementBlock("div",P8,[d.createElementVNode("ul",F8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(a.pills,(u,f)=>(d.openBlock(),d.createElementBlock("li",{key:f,class:"pills-list__li"},[d.createVNode(mi,d.normalizeProps(d.guardReactiveProps(u)),null,16)]))),128))])])):d.createCommentVNode("",!0),o.value&&o.value.length>0?(d.openBlock(),d.createBlock(Us,{key:1,files:o.value},null,8,["files"])):d.createCommentVNode("",!0),i.value&&i.value.length>0?(d.openBlock(),d.createBlock(js,{key:2,"fast-download":!0,files:i.value,onShow:l},null,8,["files"])):d.createCommentVNode("",!0)])])])],2))}}),V8=d.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(n,{emit:e}){const t=n,r=d.ref(t.sortDesc),o=()=>{t.active&&(r.value=!r.value)},i=()=>{if(!t.active)return;const l=r.value?"sortDesc":"sortAsc";e(l)},s=d.computed(()=>({"bd-table-sort":!0,active:t.active}));return d.watch(()=>t.active,(l,a)=>{l&&!a&&(r.value=!1,e("sortAsc"))}),i(),(l,a)=>(d.openBlock(),d.createElementBlock("th",{class:d.normalizeClass(s.value),onClick:a[0]||(a[0]=c=>{o(),i()})},[d.createElementVNode("span",null,d.toDisplayString(t.label),1),t.active&&!r.value?(d.openBlock(),d.createBlock(d.unref(va),{key:0})):t.active&&r.value?(d.openBlock(),d.createBlock(d.unref(ba),{key:1})):(d.openBlock(),d.createBlock(d.unref(Ea),{key:2}))],2))}}),z8={class:"bd-table"},H8={key:0,class:"table"},U8={key:1},j8=["onClick"],W8={key:0},K8={key:1,class:"empty-text"},Mp=d.defineComponent({__name:"BDTable",props:["fields","items","sortBy","sortDesc","tbodyTrClass","emptyText"],emits:["row-click","sort-changed"],setup(n,{expose:e,emit:t}){const r=n,o=d.ref(r.items),i=d.ref(r.sortBy),s=f=>i.value=f,l=(f,h,p)=>{const m=h[f],g=p[f];if(m==null)return 1;if(g==null)return-1;const y=m.toString(),C=g.toString();return y.localeCompare(C,void 0,{numeric:!0})},a=f=>{o.value=o.value.sort((p,m)=>l(f,p,m)),t("sort-changed",{sortBy:f,sortDesc:!1})},c=f=>{o.value=o.value.sort((p,m)=>l(f,m,p)),t("sort-changed",{sortBy:f,sortDesc:!0})},u=()=>{o.value=r.items};return d.watch(()=>r.items,f=>{o.value=f}),e({Refresh:u}),(f,h)=>(d.openBlock(),d.createElementBlock("div",z8,[r.items&&r.items.length>0?(d.openBlock(),d.createElementBlock("table",H8,[d.createElementVNode("thead",null,[d.createElementVNode("tr",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.fields,p=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[p.isVisible?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[p.sortable?(d.openBlock(),d.createBlock(V8,{key:0,label:p.label,active:p.key==i.value,sortDesc:r.sortDesc,onClick:m=>s(p.key),onSortAsc:m=>a(p.key),onSortDesc:m=>c(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(d.openBlock(),d.createElementBlock("th",U8,d.toDisplayString(p.label),1))],64)):d.createCommentVNode("",!0)],64))),256))])]),d.createElementVNode("tbody",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(o.value,p=>(d.openBlock(),d.createElementBlock("tr",{class:d.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(p)),onClick:m=>t("row-click",p)},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(n.fields,m=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[m.isVisible?(d.openBlock(),d.createElementBlock("td",W8,[f.$slots.hasOwnProperty(m.key)?d.renderSlot(f.$slots,m.key,{key:0,row:p,item:p,value:p[m.key]}):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createTextVNode(d.toDisplayString(p[m.key]),1)],64))])):d.createCommentVNode("",!0)],64))),256))],10,j8))),256))])])):(d.openBlock(),d.createElementBlock("p",K8,d.toDisplayString(r.emptyText),1))]))}}),Y8={class:"template change-password-template"},G8={class:"template-title"},J8={key:0},Z8={key:1},X8=["onSubmit","onReset"],Q8={class:"bd-form-field"},q8={class:"bd-form-field"},e4={class:"bd-form-field"},t4={class:"bd-form-buttons"},Np=d.defineComponent({__name:"BDChangePasswordTemplate",props:{data:{},validation:{},serverErrors:{},errorMessages:{},errorMessageText:{},title:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{}},emits:["submit","reset"],setup(n,{emit:e}){const t=()=>e("submit"),r=()=>e("reset");return(o,i)=>(d.openBlock(),d.createElementBlock("main",Y8,[d.createVNode(ni,{class:"container-xl"},{default:d.withCtx(()=>[d.createVNode(Xn,{class:"justify-content-md-center template-header"},{default:d.withCtx(()=>[d.createVNode(Zn,{xs:12,md:10,lg:7},{default:d.withCtx(()=>[d.createElementVNode("h2",G8,d.toDisplayString(o.title),1)]),_:1})]),_:1}),d.createVNode(Xn,{class:"justify-content-md-center"},{default:d.withCtx(()=>[d.createVNode(Zn,{xs:12,md:10,lg:7},{default:d.withCtx(()=>[d.createVNode(fi,{class:"bd-card-template",noHeader:!0},{body:d.withCtx(()=>[d.createVNode(ni,{class:"container-fluid"},{default:d.withCtx(()=>[d.createVNode(Xn,null,{default:d.withCtx(()=>[d.createVNode(Zn,null,{default:d.withCtx(()=>[d.createVNode(ci,{variant:"warning"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.alertText),1)]),_:1})]),_:1})]),_:1}),o.errorMessages||o.errorMessageText?(d.openBlock(),d.createBlock(Xn,{key:0},{default:d.withCtx(()=>[d.createVNode(Zn,null,{default:d.withCtx(()=>[d.createVNode(ci,{variant:"danger"},{default:d.withCtx(()=>[o.errorMessages?(d.openBlock(),d.createElementBlock("div",J8,[d.createElementVNode("ul",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(o.errorMessages,(s,l)=>(d.openBlock(),d.createElementBlock("li",{key:l},[d.createVNode(Tr),d.createTextVNode(" "+d.toDisplayString(s),1)]))),128))])])):(d.openBlock(),d.createElementBlock("div",Z8,d.toDisplayString(o.errorMessageText),1))]),_:1})]),_:1})]),_:1})):d.createCommentVNode("",!0),d.createVNode(Xn,null,{default:d.withCtx(()=>[d.createVNode(Zn,{class:"bd-card-form",sm:12,md:12},{default:d.withCtx(()=>[d.createElementVNode("form",{onSubmit:d.withModifiers(t,["prevent"]),onReset:d.withModifiers(r,["prevent"]),class:"form"},[d.createElementVNode("div",Q8,[d.createVNode(go,{modelValue:o.data.password,"onUpdate:modelValue":i[0]||(i[0]=s=>o.data.password=s),label:o.currentPasswordLabel,state:o.validation.password.state,type:"password",invalidFeedbackText:o.validation.password.errorLabel},null,8,["modelValue","label","state","invalidFeedbackText"])]),d.createElementVNode("div",q8,[d.createVNode(go,{modelValue:o.data.passwordNew,"onUpdate:modelValue":i[1]||(i[1]=s=>o.data.passwordNew=s),label:o.newPasswordLabel,state:o.validation.passwordNew.state,type:"password",invalidFeedbackText:o.validation.passwordNew.errorLabel},null,8,["modelValue","label","state","invalidFeedbackText"])]),d.createElementVNode("div",e4,[d.createVNode(go,{modelValue:o.data.passwordRepeat,"onUpdate:modelValue":i[2]||(i[2]=s=>o.data.passwordRepeat=s),label:o.confirmNewPasswordLabel,state:o.validation.passwordRepeat.state,type:"password",invalidFeedbackText:o.validation.passwordRepeat.errorLabel},null,8,["modelValue","label","state","invalidFeedbackText"])]),d.createElementVNode("div",t4,[d.createVNode(Qe,{type:"submit"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.submitButtonText),1)]),_:1}),d.createVNode(Qe,{type:"reset",variant:"link"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.cancelButtonText),1)]),_:1})])],40,X8)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}}),Cc=d.defineComponent({__name:"BDDropdown",props:{size:{default:lt.MD},variant:{default:li.PRIMARY},right:{type:Boolean,default:void 0},noFlip:{type:Boolean,default:void 0},toggleTag:{default:"button"},toggleClass:{},actionToggle:{type:Boolean,default:void 0},text:{default:""},offset:{default:void 0}},setup(n){const e=n,{uniqueIdentifier:t}=xr(),r=`__BD__DROPDOWN__${t.value}`,o=d.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=d.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=d.computed(()=>({"aria-labelledby":r})),l=d.ref(),a=d.ref(),c=()=>{l.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(u,f)=>(d.openBlock(),d.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:f[0]||(f[0]=d.withModifiers(()=>{},["stop"]))},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(e.toggleTag),d.mergeProps({ref_key:"dropdownToggle",ref:a,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(e.text),1)]),_:1},16)),d.createElementVNode("ul",d.mergeProps({ref_key:"dropdownMenu",ref:l,class:["dropdown-menu",i.value]},s.value,{onClick:c}),[d.renderSlot(u.$slots,"default")],16)]))}}),n4={class:"row bd-header"},r4={class:"col logo-mix"},o4=["src","alt"],i4=d.createElementVNode("div",null,"Menu",-1),s4={key:0,class:"col header-options"},a4={class:"col bd-btn-settings"},l4="sm",_p=d.defineComponent({__name:"BDHeader",props:{dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},organizationLogoAlt:{}},emits:["click","signout"],setup(n,{emit:e}){const t=n,r=d.computed(()=>{let c=[];return t.headerOptions&&(c=c.concat(t.headerOptions)),t.dropdownOptions&&(c=c.concat(t.dropdownOptions)),c}),o=d.ref(void 0),i=()=>e("click"),s=()=>e("signout"),l=()=>o.value=!0,a=()=>o.value=!1;return(c,u)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("nav",n4,[d.createElementVNode("div",r4,[d.createVNode(Sa,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:i}),t.organizationLogoSrc?(d.openBlock(),d.createElementBlock("img",{key:0,class:"logo organization-logo",src:t.organizationLogoSrc,alt:t.organizationLogoAlt},null,8,o4)):d.createCommentVNode("",!0)]),d.createElementVNode("div",{class:"col bd-hamburger",onClick:l},[i4,d.createVNode(ai)]),t.headerOptions&&t.headerOptions.length!==0?(d.openBlock(),d.createElementBlock("div",s4,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.headerOptions,f=>(d.openBlock(),d.createBlock(Qe,{class:"btn-header",to:f.to},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(f.text),1)]),_:2},1032,["to"]))),256))])):d.createCommentVNode("",!0),d.createElementVNode("div",a4,[d.renderSlot(c.$slots,"profile-side"),t.profileImageSrc?(d.openBlock(),d.createBlock(po,{key:0,src:t.profileImageSrc,alt:t.profileImageAlt,size:l4},null,8,["src","alt"])):d.createCommentVNode("",!0),d.createVNode(Cc,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.dropdownOptions,(f,h)=>(d.openBlock(),d.createBlock(gi,d.mergeProps({key:h},f),null,16))),128)),d.createVNode(gi,{text:"Uitloggen",onClick:s})]),_:1},8,["text"])])]),d.createVNode(Ec,{active:o.value,options:r.value,onHide:a,onSignout:s},{"special-options":d.withCtx(()=>[d.renderSlot(c.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"])],64))}}),c4={class:"modal bd-modal modal-lg",tabindex:"-1"},u4={class:"modal-dialog"},d4={class:"modal-content"},f4={class:"modal-header"},h4={class:"modal-title"},p4=["src"],m4=d.createElementVNode("span",null,"Sluiten",-1),g4={class:"modal-body"},y4={key:0,class:"modal-footer"},v4=["disabled"],Sc=d.defineComponent({__name:"BDModal",props:{title:{default:""},titleImage:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=()=>e("submit"),o=()=>e("cancel");return(i,s)=>(d.openBlock(),d.createElementBlock("div",c4,[d.createElementVNode("div",u4,[d.createElementVNode("div",d4,[d.createElementVNode("div",f4,[d.createElementVNode("h2",h4,[t.titleImage?(d.openBlock(),d.createElementBlock("img",{key:0,src:t.titleImage,class:"title-image",alt:""},null,8,p4)):d.createCommentVNode("",!0),d.createElementVNode("span",null,d.toDisplayString(t.title),1)]),d.renderSlot(i.$slots,"modal-header-space-between"),d.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[m4,d.createVNode(d.unref(ri))])]),d.createElementVNode("div",g4,[d.renderSlot(i.$slots,"default")]),i.hideFooter?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",y4,[t.hideFooterSubmitButton?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("button",{key:0,class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:r},d.toDisplayString(t.submitButtonTitle),9,v4)),d.renderSlot(i.$slots,"buttons"),t.hideFooterCancelButton?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},d.toDisplayString(t.closeButtonTitle),1))]))])])]))}});/*!
127
+ `},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:i}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&a&&s){const f=a.filter(h=>l.includes(h.type.name));c.ensureMarks(f)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),bc={BASIC:"basic",FULL:"full"},n8={class:"attachment-list"},r8={class:"attachment-link"},o8={key:1,class:"attachment-no-download"},i8=["href"],Us=d.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(n,{emit:e}){const t=r=>{e("delete",r)};return(r,o)=>(d.openBlock(),d.createElementBlock("ul",n8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.files,i=>(d.openBlock(),d.createElementBlock("li",{class:"attachment-list__item",key:i.CorrelationId},[d.createElementVNode("div",r8,[r.showDelete?(d.openBlock(),d.createBlock(Qe,{key:0,variant:"remove",onClick:s=>t(i),"aria-label":"verwijder"},{default:d.withCtx(()=>[d.createVNode(d.unref(ho))]),_:2},1032,["onClick"])):d.createCommentVNode("",!0),r.noDownload?(d.openBlock(),d.createElementBlock("div",o8,[d.createVNode(d.unref(Qn)),d.createTextVNode(" "+d.toDisplayString(i.Naam.trim()),1)])):(d.openBlock(),d.createElementBlock("a",{key:2,href:i.downloadUrl},[d.createVNode(d.unref(Qn)),d.createTextVNode(" "+d.toDisplayString(i.Naam.trim()),1)],8,i8))])]))),128))]))}}),s8={class:"attachment-list"},a8={class:"attachment"},l8=["onClick"],c8=["src","alt"],u8=["onClick"],d8=["href"],f8={class:"btn btn-light download-button-image"},h8=["src","alt"],js=d.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(n,{emit:e}){const t=n,r=i=>{e("delete",i)},o=(i,s)=>{i.target&&i.target.className==="img-preview"&&e("show",s)};return(i,s)=>(d.openBlock(),d.createElementBlock("ul",s8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(i.files,l=>(d.openBlock(),d.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[d.createElementVNode("div",a8,[i.showDelete?(d.openBlock(),d.createBlock(Qe,{key:0,variant:"remove","aria-label":"verwijder",onClick:d.withModifiers(a=>r(l),["prevent"])},{default:d.withCtx(()=>[d.createVNode(d.unref(ho))]),_:2},1032,["onClick"])):d.createCommentVNode("",!0),t.noDownload?(d.openBlock(),d.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[d.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,c8)],8,l8)):(d.openBlock(),d.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(d.openBlock(),d.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[d.createElementVNode("button",f8,[d.createVNode(d.unref(oi))])],8,d8)):d.createCommentVNode("",!0),d.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,h8)],8,u8))])]))),128))]))}}),Tp=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),p8=n=>n.DownloadUrl?n.DownloadUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlage/"+n.Id:n.FileId?`/Portaal/DownloadStandardMessageAttachment/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlage/"+n.CorrelationId,m8=n=>n.ThumbnailUrl?n.ThumbnailUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlageThumbnail/"+n.Id:n.StandardAttachmentId||n.standardAttachmentId?`/Portaal/DownloadStandardMessageAttachmentThumbnail/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlageThumbnail/"+n.CorrelationId,g8=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,y8=(n,e)=>e?Tp(n):!Tp(n),Ws=(n,e)=>n===void 0?void 0:n.filter(r=>y8(r,e)).map(r=>{const o=typeof r.CorrelationId=="string"?r.CorrelationId:r.CorrelationId!=null?r.CorrelationId.toString():"";return{downloadUrl:p8(r),previewUrl:m8(r),fullImageUrl:g8(r),altName:`${r.Naam}`,...r,CorrelationId:o}}),v8={key:0,class:"pills-list__wrapper"},b8={class:"pills-list__ul"},E8={class:"bd-markdown-editor__menu-bottom"},C8={key:0,class:"vr"},Ap=d.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:[Boolean,null],default:null},variant:{default:bc.BASIC},files:{default:void 0},pills:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(n,{emit:e}){const t=n,r=()=>{e("upload")},o=qn(t,"modelValue",e),i=[f7,h7,p7,P7.configure({placeholder:t.placeholder}),t8,$7.configure({openOnClick:!1,validate:M=>/^https?:\/\//i.test(M)})];t.variant===bc.FULL&&i.push(U7,G7,J7,Z7,Q7,e8);const s=d7({content:o.value,extensions:i,onUpdate:({editor:M})=>{const{view:T,state:z}=M,{from:U,to:j}=T.state.selection;if(z.doc.textBetween(U-1,j,"")==" "&&M.getAttributes("link").href!=null&&M.chain().setTextSelection({from:U-1,to:j}).toggleLink({href:M.getAttributes("link").href}).setTextSelection({from:j,to:j}).run(),M.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",M.getHTML())}});d.watch(()=>t.modelValue,M=>{s.value.getHTML()!==M&&s.value.commands.setContent(M,!0,{preserveWhitespace:"full"})});const l=d.computed(()=>t.state===!1?"is-invalid":null),a=d.computed(()=>g("bold")),c=d.computed(()=>g("italic")),u=d.computed(()=>g("underline")),f=d.computed(()=>g("bulletList")),h=d.computed(()=>g("orderedList")),p=d.computed(()=>g("link")),m=d.computed(()=>t.variant===bc.FULL),g=M=>s.value&&s.value.isActive(M)?"active":null,y=d.computed(()=>t.files&&t.files.length>0?Ws(t.files,!1):null),C=d.computed(()=>t.files&&t.files.length>0?Ws(t.files,!0):null),S=M=>{e("action",{name:"delete-attachment",obj:M})},k=M=>{e("action",{name:"image-attachment",obj:M})},b=()=>{const M=s.value.getAttributes("link").href,T=window.prompt("Voeg link toe",M);if(T!==null){if(T===""){s.value.chain().focus().unsetLink().run();return}s.value.chain().focus().toggleLink({href:T}).run()}};return(M,T)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:d.normalizeClass(["bd-markdown-editor",l.value])},[d.createVNode(d.unref(u7),{editor:d.unref(s)},null,8,["editor"]),M.pills?(d.openBlock(),d.createElementBlock("div",v8,[d.createElementVNode("ul",b8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(M.pills,(z,U)=>(d.openBlock(),d.createElementBlock("li",{key:U,class:"pills-list__li"},[d.createVNode(mi,d.normalizeProps(d.guardReactiveProps(z)),null,16)]))),128))])])):d.createCommentVNode("",!0),d.renderSlot(M.$slots,"default"),y.value?(d.openBlock(),d.createBlock(Us,{key:1,files:y.value,"no-download":!0,"show-delete":!0,onDelete:S},null,8,["files"])):d.createCommentVNode("",!0),C.value?(d.openBlock(),d.createBlock(js,{key:2,files:C.value,"no-download":!0,"show-delete":!0,onDelete:S,onShow:k},null,8,["files"])):d.createCommentVNode("",!0),d.createElementVNode("div",E8,[d.createVNode(Qe,{variant:"light",type:"button",onClick:r},{default:d.withCtx(()=>[d.createVNode(d.unref(Qn))]),_:1}),m.value?(d.openBlock(),d.createElementBlock("div",C8)):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Qe,{key:1,variant:"light",type:"button",class:d.normalizeClass(a.value),onClick:T[0]||(T[0]=z=>d.unref(s).chain().focus().toggleBold().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(ca))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Qe,{key:2,variant:"light",type:"button",class:d.normalizeClass(c.value),onClick:T[1]||(T[1]=z=>d.unref(s).chain().focus().toggleItalic().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(ga))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Qe,{key:3,variant:"light",type:"button",class:d.normalizeClass(u.value),onClick:T[2]||(T[2]=z=>d.unref(s).chain().focus().toggleUnderline().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(Ca))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Qe,{key:4,variant:"light",type:"button",class:d.normalizeClass(f.value),onClick:T[3]||(T[3]=z=>d.unref(s).chain().focus().toggleBulletList().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(ua))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Qe,{key:5,variant:"light",type:"button",class:d.normalizeClass(h.value),onClick:T[4]||(T[4]=z=>d.unref(s).chain().focus().toggleOrderedList().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(ya))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Qe,{key:6,variant:"light",type:"button",class:d.normalizeClass(p.value),onClick:b},{default:d.withCtx(()=>[d.createVNode(d.unref(si))]),_:1},8,["class"])):d.createCommentVNode("",!0)])],2),d.createVNode(d.unref(hi),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),S8={class:"header"},w8=d.createElementVNode("div",null,"Menu",-1),k8={class:"icon-close-wrapper"},T8={class:"navbar"},A8={class:"nav navbar-nav w-100"},x8={class:"nav-item"},O8={class:"nav-item"},Ec=d.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(n,{emit:e}){const t=n,r=d.computed(()=>({active:t.active===!0,inactive:t.active===!1})),o=()=>e("hide"),i=()=>e("signout");return(s,l)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["bd-mobile-menu",r.value])},[d.createElementVNode("div",S8,[w8,d.createElementVNode("div",k8,[d.createVNode(ri,{onClick:o})])]),d.createElementVNode("nav",T8,[d.createElementVNode("ul",A8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.options,a=>(d.openBlock(),d.createElementBlock("li",x8,[d.createVNode(Ar,d.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),d.renderSlot(s.$slots,"special-options"),d.createElementVNode("li",O8,[d.createVNode(Ar,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),M8={class:"bd-user"},N8={class:"bd-user__information"},_8={class:"text-break"},I8={class:"overflow-x-hidden"},xp=d.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(n){const e=n,t=d.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(d.openBlock(),d.createElementBlock("div",M8,[e.hideImage?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(po,d.mergeProps({key:0},e.img,{size:"sm"}),null,16)),d.createElementVNode("div",N8,[d.createElementVNode("header",null,[d.createElementVNode("h5",_8,d.toDisplayString(e.name),1),d.renderSlot(r.$slots,"header-extra")]),d.createElementVNode("span",I8,d.toDisplayString(t.value),1)])]))}}),D8={class:"bd-chat-cloud-card"},L8={class:"bd-chat-cloud-card__header"},R8={class:"bd-chat-cloud-card__body"},B8=["innerHTML"],$8={class:"bd-chat-cloud-card__footer"},P8={key:0,class:"pills-list__wrapper"},F8={class:"pills-list__ul"},Op=d.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},AltProfileImage:{default:""},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0}},emits:["show-attachment","action"],setup(n,{emit:e}){const t=n,r=d.computed(()=>t.isSender?"sender":We),o=d.computed(()=>Ws(t.files,!1)),i=d.computed(()=>Ws(t.files,!0)),s=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["bd-chat-cloud",r.value])},[d.createVNode(po,{src:t.src,size:"sm"},null,8,["src"]),d.createElementVNode("div",D8,[d.createElementVNode("div",L8,[d.renderSlot(a.$slots,"header",{},()=>[d.createTextVNode(d.toDisplayString(a.headerTitle),1)]),d.createVNode(Qe,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:d.withCtx(()=>[d.createTextVNode(" kopieer ")]),_:1})]),d.createElementVNode("div",R8,[d.renderSlot(a.$slots,"body",{},()=>[d.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,B8)])]),d.createElementVNode("div",$8,[d.renderSlot(a.$slots,"footer",{},()=>[a.pills?(d.openBlock(),d.createElementBlock("div",P8,[d.createElementVNode("ul",F8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(a.pills,(u,f)=>(d.openBlock(),d.createElementBlock("li",{key:f,class:"pills-list__li"},[d.createVNode(mi,d.normalizeProps(d.guardReactiveProps(u)),null,16)]))),128))])])):d.createCommentVNode("",!0),o.value&&o.value.length>0?(d.openBlock(),d.createBlock(Us,{key:1,files:o.value},null,8,["files"])):d.createCommentVNode("",!0),i.value&&i.value.length>0?(d.openBlock(),d.createBlock(js,{key:2,"fast-download":!0,files:i.value,onShow:l},null,8,["files"])):d.createCommentVNode("",!0)])])])],2))}}),V8=d.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(n,{emit:e}){const t=n,r=d.ref(t.sortDesc),o=()=>{t.active&&(r.value=!r.value)},i=()=>{if(!t.active)return;const l=r.value?"sortDesc":"sortAsc";e(l)},s=d.computed(()=>({"bd-table-sort":!0,active:t.active}));return d.watch(()=>t.active,(l,a)=>{l&&!a&&(r.value=!1,e("sortAsc"))}),i(),(l,a)=>(d.openBlock(),d.createElementBlock("th",{class:d.normalizeClass(s.value),onClick:a[0]||(a[0]=c=>{o(),i()})},[d.createElementVNode("span",null,d.toDisplayString(t.label),1),t.active&&!r.value?(d.openBlock(),d.createBlock(d.unref(va),{key:0})):t.active&&r.value?(d.openBlock(),d.createBlock(d.unref(ba),{key:1})):(d.openBlock(),d.createBlock(d.unref(Ea),{key:2}))],2))}}),z8={class:"bd-table"},H8={key:0,class:"table"},U8={key:1},j8=["onClick"],W8={key:0},K8={key:1,class:"empty-text"},Mp=d.defineComponent({__name:"BDTable",props:["fields","items","sortBy","sortDesc","tbodyTrClass","emptyText"],emits:["row-click","sort-changed"],setup(n,{expose:e,emit:t}){const r=n,o=d.ref(r.items),i=d.ref(r.sortBy),s=f=>i.value=f,l=(f,h,p)=>{const m=h[f],g=p[f];if(m==null)return 1;if(g==null)return-1;const y=m.toString(),C=g.toString();return y.localeCompare(C,void 0,{numeric:!0})},a=f=>{o.value=o.value.sort((p,m)=>l(f,p,m)),t("sort-changed",{sortBy:f,sortDesc:!1})},c=f=>{o.value=o.value.sort((p,m)=>l(f,m,p)),t("sort-changed",{sortBy:f,sortDesc:!0})},u=()=>{o.value=r.items};return d.watch(()=>r.items,f=>{o.value=f}),e({Refresh:u}),(f,h)=>(d.openBlock(),d.createElementBlock("div",z8,[r.items&&r.items.length>0?(d.openBlock(),d.createElementBlock("table",H8,[d.createElementVNode("thead",null,[d.createElementVNode("tr",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.fields,p=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[p.isVisible?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[p.sortable?(d.openBlock(),d.createBlock(V8,{key:0,label:p.label,active:p.key==i.value,sortDesc:r.sortDesc,onClick:m=>s(p.key),onSortAsc:m=>a(p.key),onSortDesc:m=>c(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(d.openBlock(),d.createElementBlock("th",U8,d.toDisplayString(p.label),1))],64)):d.createCommentVNode("",!0)],64))),256))])]),d.createElementVNode("tbody",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(o.value,p=>(d.openBlock(),d.createElementBlock("tr",{class:d.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(p)),onClick:m=>t("row-click",p)},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(n.fields,m=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[m.isVisible?(d.openBlock(),d.createElementBlock("td",W8,[f.$slots.hasOwnProperty(m.key)?d.renderSlot(f.$slots,m.key,{key:0,row:p,item:p,value:p[m.key]}):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createTextVNode(d.toDisplayString(p[m.key]),1)],64))])):d.createCommentVNode("",!0)],64))),256))],10,j8))),256))])])):(d.openBlock(),d.createElementBlock("p",K8,d.toDisplayString(r.emptyText),1))]))}}),Y8={class:"template change-password-template"},G8={class:"template-title"},J8={key:0},Z8={key:1},X8=["onSubmit","onReset"],Q8={class:"bd-form-field"},q8={class:"bd-form-field"},e4={class:"bd-form-field"},t4={class:"bd-form-buttons"},Np=d.defineComponent({__name:"BDChangePasswordTemplate",props:{data:{},validation:{},serverErrors:{},errorMessages:{},errorMessageText:{},title:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{}},emits:["submit","reset"],setup(n,{emit:e}){const t=()=>e("submit"),r=()=>e("reset");return(o,i)=>(d.openBlock(),d.createElementBlock("main",Y8,[d.createVNode(ni,{class:"container-xl"},{default:d.withCtx(()=>[d.createVNode(Xn,{class:"justify-content-md-center template-header"},{default:d.withCtx(()=>[d.createVNode(Zn,{xs:12,md:10,lg:7},{default:d.withCtx(()=>[d.createElementVNode("h2",G8,d.toDisplayString(o.title),1)]),_:1})]),_:1}),d.createVNode(Xn,{class:"justify-content-md-center"},{default:d.withCtx(()=>[d.createVNode(Zn,{xs:12,md:10,lg:7},{default:d.withCtx(()=>[d.createVNode(fi,{class:"bd-card-template",noHeader:!0},{body:d.withCtx(()=>[d.createVNode(ni,{class:"container-fluid"},{default:d.withCtx(()=>[d.createVNode(Xn,null,{default:d.withCtx(()=>[d.createVNode(Zn,null,{default:d.withCtx(()=>[d.createVNode(ci,{variant:"warning"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.alertText),1)]),_:1})]),_:1})]),_:1}),o.errorMessages||o.errorMessageText?(d.openBlock(),d.createBlock(Xn,{key:0},{default:d.withCtx(()=>[d.createVNode(Zn,null,{default:d.withCtx(()=>[d.createVNode(ci,{variant:"danger"},{default:d.withCtx(()=>[o.errorMessages?(d.openBlock(),d.createElementBlock("div",J8,[d.createElementVNode("ul",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(o.errorMessages,(s,l)=>(d.openBlock(),d.createElementBlock("li",{key:l},[d.createVNode(Tr),d.createTextVNode(" "+d.toDisplayString(s),1)]))),128))])])):(d.openBlock(),d.createElementBlock("div",Z8,d.toDisplayString(o.errorMessageText),1))]),_:1})]),_:1})]),_:1})):d.createCommentVNode("",!0),d.createVNode(Xn,null,{default:d.withCtx(()=>[d.createVNode(Zn,{class:"bd-card-form",sm:12,md:12},{default:d.withCtx(()=>[d.createElementVNode("form",{onSubmit:d.withModifiers(t,["prevent"]),onReset:d.withModifiers(r,["prevent"]),class:"form"},[d.createElementVNode("div",Q8,[d.createVNode(go,{modelValue:o.data.password,"onUpdate:modelValue":i[0]||(i[0]=s=>o.data.password=s),label:o.currentPasswordLabel,state:o.validation.password.state,type:"password",invalidFeedbackText:o.validation.password.errorLabel},null,8,["modelValue","label","state","invalidFeedbackText"])]),d.createElementVNode("div",q8,[d.createVNode(go,{modelValue:o.data.passwordNew,"onUpdate:modelValue":i[1]||(i[1]=s=>o.data.passwordNew=s),label:o.newPasswordLabel,state:o.validation.passwordNew.state,type:"password",invalidFeedbackText:o.validation.passwordNew.errorLabel},null,8,["modelValue","label","state","invalidFeedbackText"])]),d.createElementVNode("div",e4,[d.createVNode(go,{modelValue:o.data.passwordRepeat,"onUpdate:modelValue":i[2]||(i[2]=s=>o.data.passwordRepeat=s),label:o.confirmNewPasswordLabel,state:o.validation.passwordRepeat.state,type:"password",invalidFeedbackText:o.validation.passwordRepeat.errorLabel},null,8,["modelValue","label","state","invalidFeedbackText"])]),d.createElementVNode("div",t4,[d.createVNode(Qe,{type:"submit"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.submitButtonText),1)]),_:1}),d.createVNode(Qe,{type:"reset",variant:"link"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.cancelButtonText),1)]),_:1})])],40,X8)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}}),Cc=d.defineComponent({__name:"BDDropdown",props:{size:{default:lt.MD},variant:{default:li.PRIMARY},right:{type:Boolean,default:void 0},noFlip:{type:Boolean,default:void 0},toggleTag:{default:"button"},toggleClass:{},actionToggle:{type:Boolean,default:void 0},text:{default:""},offset:{default:void 0}},setup(n){const e=n,{uniqueIdentifier:t}=xr(),r=`__BD__DROPDOWN__${t.value}`,o=d.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=d.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=d.computed(()=>({"aria-labelledby":r})),l=d.ref(),a=d.ref(),c=()=>{l.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(u,f)=>(d.openBlock(),d.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:f[0]||(f[0]=d.withModifiers(()=>{},["stop"]))},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(e.toggleTag),d.mergeProps({ref_key:"dropdownToggle",ref:a,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(e.text),1)]),_:1},16)),d.createElementVNode("ul",d.mergeProps({ref_key:"dropdownMenu",ref:l,class:["dropdown-menu",i.value]},s.value,{onClick:c}),[d.renderSlot(u.$slots,"default")],16)]))}}),n4={class:"row bd-header"},r4={class:"col logo-mix"},o4=["src","alt"],i4=d.createElementVNode("div",null,"Menu",-1),s4={key:0,class:"col header-options"},a4={class:"col bd-btn-settings"},l4="sm",_p=d.defineComponent({__name:"BDHeader",props:{dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},organizationLogoAlt:{}},emits:["click","signout"],setup(n,{emit:e}){const t=n,r=d.computed(()=>{let c=[];return t.headerOptions&&(c=c.concat(t.headerOptions)),t.dropdownOptions&&(c=c.concat(t.dropdownOptions)),c}),o=d.ref(void 0),i=()=>e("click"),s=()=>e("signout"),l=()=>o.value=!0,a=()=>o.value=!1;return(c,u)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("nav",n4,[d.createElementVNode("div",r4,[d.createVNode(Sa,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:i}),t.organizationLogoSrc?(d.openBlock(),d.createElementBlock("img",{key:0,class:"logo organization-logo",src:t.organizationLogoSrc,alt:t.organizationLogoAlt},null,8,o4)):d.createCommentVNode("",!0)]),d.createElementVNode("div",{class:"col bd-hamburger",onClick:l},[i4,d.createVNode(ai)]),t.headerOptions&&t.headerOptions.length!==0?(d.openBlock(),d.createElementBlock("div",s4,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.headerOptions,f=>(d.openBlock(),d.createBlock(Qe,{class:"btn-header",to:f.to},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(f.text),1)]),_:2},1032,["to"]))),256))])):d.createCommentVNode("",!0),d.createElementVNode("div",a4,[d.renderSlot(c.$slots,"profile-side"),t.profileImageSrc?(d.openBlock(),d.createBlock(po,{key:0,src:t.profileImageSrc,alt:t.profileImageAlt,size:l4},null,8,["src","alt"])):d.createCommentVNode("",!0),d.createVNode(Cc,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.dropdownOptions,(f,h)=>(d.openBlock(),d.createBlock(gi,d.mergeProps({key:h},f),null,16))),128)),d.createVNode(gi,{text:"Uitloggen",onClick:s})]),_:1},8,["text"])])]),d.createVNode(Ec,{active:o.value,options:r.value,onHide:a,onSignout:s},{"special-options":d.withCtx(()=>[d.renderSlot(c.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"])],64))}}),c4={class:"modal-dialog"},u4={class:"modal-content"},d4={class:"modal-header"},f4={class:"modal-title"},h4=["src"],p4=d.createElementVNode("span",null,"Sluiten",-1),m4={class:"modal-body"},g4={key:0,class:"modal-footer"},y4=["disabled"],Sc=d.defineComponent({__name:"BDModal",props:{title:{default:""},titleImage:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1},size:{default:"lg"}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=d.computed(()=>`modal bd-modal modal-${t.size}`),o=()=>e("submit"),i=()=>e("cancel");return(s,l)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(r.value),tabindex:"-1"},[d.createElementVNode("div",c4,[d.createElementVNode("div",u4,[d.createElementVNode("div",d4,[d.createElementVNode("h2",f4,[t.titleImage?(d.openBlock(),d.createElementBlock("img",{key:0,src:t.titleImage,class:"title-image",alt:""},null,8,h4)):d.createCommentVNode("",!0),d.createElementVNode("span",null,d.toDisplayString(t.title),1)]),d.renderSlot(s.$slots,"modal-header-space-between"),d.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:i},[p4,d.createVNode(d.unref(ri))])]),d.createElementVNode("div",m4,[d.renderSlot(s.$slots,"default")]),s.hideFooter?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",g4,[t.hideFooterSubmitButton?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("button",{key:0,class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:o},d.toDisplayString(t.submitButtonTitle),9,y4)),d.renderSlot(s.$slots,"buttons"),t.hideFooterCancelButton?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:i,"aria-label":"Annuleren"},d.toDisplayString(t.closeButtonTitle),1))]))])])],2))}});/*!
128
128
  * Bootstrap v5.3.0 (https://getbootstrap.com/)
129
129
  * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
130
130
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
131
- */const zn=new Map,wc={set(n,e,t){zn.has(n)||zn.set(n,new Map);const r=zn.get(n);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,t)},get(n,e){return zn.has(n)&&zn.get(n).get(e)||null},remove(n,e){if(!zn.has(n))return;const t=zn.get(n);t.delete(e),t.size===0&&zn.delete(n)}},b4=1e6,E4=1e3,kc="transitionend",Ip=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),n),C4=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),S4=n=>{do n+=Math.floor(Math.random()*b4);while(document.getElementById(n));return n},w4=n=>{if(!n)return 0;let{transitionDuration:e,transitionDelay:t}=window.getComputedStyle(n);const r=Number.parseFloat(e),o=Number.parseFloat(t);return!r&&!o?0:(e=e.split(",")[0],t=t.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(t))*E4)},Dp=n=>{n.dispatchEvent(new Event(kc))},vn=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),Hn=n=>vn(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(Ip(n)):null,ro=n=>{if(!vn(n)||n.getClientRects().length===0)return!1;const e=getComputedStyle(n).getPropertyValue("visibility")==="visible",t=n.closest("details:not([open])");if(!t)return e;if(t!==n){const r=n.closest("summary");if(r&&r.parentNode!==t||r===null)return!1}return e},Un=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",Lp=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const e=n.getRootNode();return e instanceof ShadowRoot?e:null}return n instanceof ShadowRoot?n:n.parentNode?Lp(n.parentNode):null},Ks=()=>{},Go=n=>{n.offsetHeight},Rp=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Tc=[],k4=n=>{document.readyState==="loading"?(Tc.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Tc)e()}),Tc.push(n)):n()},Bt=()=>document.documentElement.dir==="rtl",$t=n=>{k4(()=>{const e=Rp();if(e){const t=n.NAME,r=e.fn[t];e.fn[t]=n.jQueryInterface,e.fn[t].Constructor=n,e.fn[t].noConflict=()=>(e.fn[t]=r,n.jQueryInterface)}})},Ct=(n,e=[],t=n)=>typeof n=="function"?n(...e):t,Bp=(n,e,t=!0)=>{if(!t){Ct(n);return}const r=5,o=w4(e)+r;let i=!1;const s=({target:l})=>{l===e&&(i=!0,e.removeEventListener(kc,s),Ct(n))};e.addEventListener(kc,s),setTimeout(()=>{i||Dp(e)},o)},Ac=(n,e,t,r)=>{const o=n.length;let i=n.indexOf(e);return i===-1?!t&&r?n[o-1]:n[0]:(i+=t?1:-1,r&&(i=(i+o)%o),n[Math.max(0,Math.min(i,o-1))])},T4=/[^.]*(?=\..*)\.|.*/,A4=/\..*/,x4=/::\d+$/,xc={};let $p=1;const Pp={mouseenter:"mouseover",mouseleave:"mouseout"},O4=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Fp(n,e){return e&&`${e}::${$p++}`||n.uidEvent||$p++}function Vp(n){const e=Fp(n);return n.uidEvent=e,xc[e]=xc[e]||{},xc[e]}function M4(n,e){return function t(r){return Mc(r,{delegateTarget:n}),t.oneOff&&ie.off(n,r.type,e),e.apply(n,[r])}}function N4(n,e,t){return function r(o){const i=n.querySelectorAll(e);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const l of i)if(l===s)return Mc(o,{delegateTarget:s}),r.oneOff&&ie.off(n,o.type,e,t),t.apply(s,[o])}}function zp(n,e,t=null){return Object.values(n).find(r=>r.callable===e&&r.delegationSelector===t)}function Hp(n,e,t){const r=typeof e=="string",o=r?t:e||t;let i=jp(n);return O4.has(i)||(i=n),[r,o,i]}function Up(n,e,t,r,o){if(typeof e!="string"||!n)return;let[i,s,l]=Hp(e,t,r);e in Pp&&(s=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(s));const a=Vp(n),c=a[l]||(a[l]={}),u=zp(c,s,i?t:null);if(u){u.oneOff=u.oneOff&&o;return}const f=Fp(s,e.replace(T4,"")),h=i?N4(n,t,s):M4(n,s);h.delegationSelector=i?t:null,h.callable=s,h.oneOff=o,h.uidEvent=f,c[f]=h,n.addEventListener(l,h,i)}function Oc(n,e,t,r,o){const i=zp(e[t],r,o);i&&(n.removeEventListener(t,i,!!o),delete e[t][i.uidEvent])}function _4(n,e,t,r){const o=e[t]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&Oc(n,e,t,s.callable,s.delegationSelector)}function jp(n){return n=n.replace(A4,""),Pp[n]||n}const ie={on(n,e,t,r){Up(n,e,t,r,!1)},one(n,e,t,r){Up(n,e,t,r,!0)},off(n,e,t,r){if(typeof e!="string"||!n)return;const[o,i,s]=Hp(e,t,r),l=s!==e,a=Vp(n),c=a[s]||{},u=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(c).length)return;Oc(n,a,s,i,o?t:null);return}if(u)for(const f of Object.keys(a))_4(n,a,f,e.slice(1));for(const[f,h]of Object.entries(c)){const p=f.replace(x4,"");(!l||e.includes(p))&&Oc(n,a,s,h.callable,h.delegationSelector)}},trigger(n,e,t){if(typeof e!="string"||!n)return null;const r=Rp(),o=jp(e),i=e!==o;let s=null,l=!0,a=!0,c=!1;i&&r&&(s=r.Event(e,t),r(n).trigger(s),l=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),c=s.isDefaultPrevented());const u=Mc(new Event(e,{bubbles:l,cancelable:!0}),t);return c&&u.preventDefault(),a&&n.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function Mc(n,e={}){for(const[t,r]of Object.entries(e))try{n[t]=r}catch{Object.defineProperty(n,t,{configurable:!0,get(){return r}})}return n}function Wp(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function Nc(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const bn={setDataAttribute(n,e,t){n.setAttribute(`data-bs-${Nc(e)}`,t)},removeDataAttribute(n,e){n.removeAttribute(`data-bs-${Nc(e)}`)},getDataAttributes(n){if(!n)return{};const e={},t=Object.keys(n.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of t){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),e[o]=Wp(n.dataset[r])}return e},getDataAttribute(n,e){return Wp(n.getAttribute(`data-bs-${Nc(e)}`))}};class Jo{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const r=vn(t)?bn.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...vn(t)?bn.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,o]of Object.entries(t)){const i=e[r],s=vn(i)?"element":C4(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const I4="5.3.0";class Jt extends Jo{constructor(e,t){super(),e=Hn(e),e&&(this._element=e,this._config=this._getConfig(t),wc.set(this._element,this.constructor.DATA_KEY,this))}dispose(){wc.remove(this._element,this.constructor.DATA_KEY),ie.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){Bp(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return wc.get(Hn(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return I4}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const _c=n=>{let e=n.getAttribute("data-bs-target");if(!e||e==="#"){let t=n.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?t.trim():null}return Ip(e)},ke={find(n,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,n))},findOne(n,e=document.documentElement){return Element.prototype.querySelector.call(e,n)},children(n,e){return[].concat(...n.children).filter(t=>t.matches(e))},parents(n,e){const t=[];let r=n.parentNode.closest(e);for(;r;)t.push(r),r=r.parentNode.closest(e);return t},prev(n,e){let t=n.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(n,e){let t=n.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(n){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,n).filter(t=>!Un(t)&&ro(t))},getSelectorFromElement(n){const e=_c(n);return e&&ke.findOne(e)?e:null},getElementFromSelector(n){const e=_c(n);return e?ke.findOne(e):null},getMultipleElementsFromSelector(n){const e=_c(n);return e?ke.find(e):[]}},Ys=(n,e="hide")=>{const t=`click.dismiss${n.EVENT_KEY}`,r=n.NAME;ie.on(document,t,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Un(this))return;const i=ke.getElementFromSelector(this)||this.closest(`.${r}`);n.getOrCreateInstance(i)[e]()})},D4="alert",Kp=".bs.alert",L4=`close${Kp}`,R4=`closed${Kp}`,B4="fade",$4="show";class Gs extends Jt{static get NAME(){return D4}close(){if(ie.trigger(this._element,L4).defaultPrevented)return;this._element.classList.remove($4);const t=this._element.classList.contains(B4);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),ie.trigger(this._element,R4),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Gs.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Ys(Gs,"close"),$t(Gs);const P4="button",F4=".bs.button",V4=".data-api",z4="active",Yp='[data-bs-toggle="button"]',H4=`click${F4}${V4}`;class Js extends Jt{static get NAME(){return P4}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(z4))}static jQueryInterface(e){return this.each(function(){const t=Js.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}ie.on(document,H4,Yp,n=>{n.preventDefault();const e=n.target.closest(Yp);Js.getOrCreateInstance(e).toggle()}),$t(Js);const U4="swipe",oo=".bs.swipe",j4=`touchstart${oo}`,W4=`touchmove${oo}`,K4=`touchend${oo}`,Y4=`pointerdown${oo}`,G4=`pointerup${oo}`,J4="touch",Z4="pen",X4="pointer-event",Q4=40,q4={endCallback:null,leftCallback:null,rightCallback:null},e6={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Zs extends Jo{constructor(e,t){super(),this._element=e,!(!e||!Zs.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return q4}static get DefaultType(){return e6}static get NAME(){return U4}dispose(){ie.off(this._element,oo)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Ct(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=Q4)return;const t=e/this._deltaX;this._deltaX=0,t&&Ct(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ie.on(this._element,Y4,e=>this._start(e)),ie.on(this._element,G4,e=>this._end(e)),this._element.classList.add(X4)):(ie.on(this._element,j4,e=>this._start(e)),ie.on(this._element,W4,e=>this._move(e)),ie.on(this._element,K4,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===Z4||e.pointerType===J4)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const t6="carousel",jn=".bs.carousel",Gp=".data-api",n6="ArrowLeft",r6="ArrowRight",o6=500,Zo="next",io="prev",so="left",Xs="right",i6=`slide${jn}`,Ic=`slid${jn}`,s6=`keydown${jn}`,a6=`mouseenter${jn}`,l6=`mouseleave${jn}`,c6=`dragstart${jn}`,u6=`load${jn}${Gp}`,d6=`click${jn}${Gp}`,Jp="carousel",Qs="active",f6="slide",h6="carousel-item-end",p6="carousel-item-start",m6="carousel-item-next",g6="carousel-item-prev",Zp=".active",Xp=".carousel-item",y6=Zp+Xp,v6=".carousel-item img",b6=".carousel-indicators",E6="[data-bs-slide], [data-bs-slide-to]",C6='[data-bs-ride="carousel"]',S6={[n6]:Xs,[r6]:so},w6={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},k6={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Xo extends Jt{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ke.findOne(b6,this._element),this._addEventListeners(),this._config.ride===Jp&&this.cycle()}static get Default(){return w6}static get DefaultType(){return k6}static get NAME(){return t6}next(){this._slide(Zo)}nextWhenVisible(){!document.hidden&&ro(this._element)&&this.next()}prev(){this._slide(io)}pause(){this._isSliding&&Dp(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){ie.one(this._element,Ic,()=>this.cycle());return}this.cycle()}}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){ie.one(this._element,Ic,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?Zo:io;this._slide(o,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&ie.on(this._element,s6,e=>this._keydown(e)),this._config.pause==="hover"&&(ie.on(this._element,a6,()=>this.pause()),ie.on(this._element,l6,()=>this._maybeEnableCycle())),this._config.touch&&Zs.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of ke.find(v6,this._element))ie.on(r,c6,o=>o.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(so)),rightCallback:()=>this._slide(this._directionToOrder(Xs)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),o6+this._config.interval))}};this._swipeHelper=new Zs(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=S6[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=ke.findOne(Zp,this._indicatorsElement);t.classList.remove(Qs),t.removeAttribute("aria-current");const r=ke.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(Qs),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const r=this._getActive(),o=e===Zo,i=t||Ac(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),l=p=>ie.trigger(this._element,p,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(l(i6).defaultPrevented||!r||!i)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=o?p6:h6,f=o?m6:g6;i.classList.add(f),Go(i),r.classList.add(u),i.classList.add(u);const h=()=>{i.classList.remove(u,f),i.classList.add(Qs),r.classList.remove(Qs,f,u),this._isSliding=!1,l(Ic)};this._queueCallback(h,r,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(f6)}_getActive(){return ke.findOne(y6,this._element)}_getItems(){return ke.find(Xp,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Bt()?e===so?io:Zo:e===so?Zo:io}_orderToDirection(e){return Bt()?e===io?so:Xs:e===io?Xs:so}static jQueryInterface(e){return this.each(function(){const t=Xo.getOrCreateInstance(this,e);if(typeof e=="number"){t.to(e);return}if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ie.on(document,d6,E6,function(n){const e=ke.getElementFromSelector(this);if(!e||!e.classList.contains(Jp))return;n.preventDefault();const t=Xo.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){t.to(r),t._maybeEnableCycle();return}if(bn.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()}),ie.on(window,u6,()=>{const n=ke.find(C6);for(const e of n)Xo.getOrCreateInstance(e)}),$t(Xo);const T6="collapse",Qo=".bs.collapse",A6=".data-api",x6=`show${Qo}`,O6=`shown${Qo}`,M6=`hide${Qo}`,N6=`hidden${Qo}`,_6=`click${Qo}${A6}`,Dc="show",ao="collapse",qs="collapsing",I6="collapsed",D6=`:scope .${ao} .${ao}`,L6="collapse-horizontal",R6="width",B6="height",$6=".collapse.show, .collapse.collapsing",Lc='[data-bs-toggle="collapse"]',P6={parent:null,toggle:!0},F6={parent:"(null|element)",toggle:"boolean"};class qo extends Jt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=ke.find(Lc);for(const o of r){const i=ke.getSelectorFromElement(o),s=ke.find(i).filter(l=>l===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return P6}static get DefaultType(){return F6}static get NAME(){return T6}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren($6).filter(l=>l!==this._element).map(l=>qo.getOrCreateInstance(l,{toggle:!1}))),e.length&&e[0]._isTransitioning||ie.trigger(this._element,x6).defaultPrevented)return;for(const l of e)l.hide();const r=this._getDimension();this._element.classList.remove(ao),this._element.classList.add(qs),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(qs),this._element.classList.add(ao,Dc),this._element.style[r]="",ie.trigger(this._element,O6)},s=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||ie.trigger(this._element,M6).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Go(this._element),this._element.classList.add(qs),this._element.classList.remove(ao,Dc);for(const o of this._triggerArray){const i=ke.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(qs),this._element.classList.add(ao),ie.trigger(this._element,N6)};this._element.style[t]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Dc)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Hn(e.parent),e}_getDimension(){return this._element.classList.contains(L6)?R6:B6}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Lc);for(const t of e){const r=ke.getElementFromSelector(t);r&&this._addAriaAndCollapsedClass([t],this._isShown(r))}}_getFirstLevelChildren(e){const t=ke.find(D6,this._config.parent);return ke.find(e,this._config.parent).filter(r=>!t.includes(r))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const r of e)r.classList.toggle(I6,!t),r.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return typeof e=="string"&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const r=qo.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ie.on(document,_6,Lc,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const e of ke.getMultipleElementsFromSelector(this))qo.getOrCreateInstance(e,{toggle:!1}).toggle()}),$t(qo);const Qp="dropdown",vr=".bs.dropdown",Rc=".data-api",V6="Escape",qp="Tab",z6="ArrowUp",em="ArrowDown",H6=2,U6=`hide${vr}`,j6=`hidden${vr}`,W6=`show${vr}`,K6=`shown${vr}`,tm=`click${vr}${Rc}`,nm=`keydown${vr}${Rc}`,Y6=`keyup${vr}${Rc}`,lo="show",G6="dropup",J6="dropend",Z6="dropstart",X6="dropup-center",Q6="dropdown-center",br='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',q6=`${br}.${lo}`,ea=".dropdown-menu",eC=".navbar",tC=".navbar-nav",nC=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",rC=Bt()?"top-end":"top-start",oC=Bt()?"top-start":"top-end",iC=Bt()?"bottom-end":"bottom-start",sC=Bt()?"bottom-start":"bottom-end",aC=Bt()?"left-start":"right-start",lC=Bt()?"right-start":"left-start",cC="top",uC="bottom",dC={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},fC={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class ln extends Jt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=ke.next(this._element,ea)[0]||ke.prev(this._element,ea)[0]||ke.findOne(ea,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return dC}static get DefaultType(){return fC}static get NAME(){return Qp}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Un(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!ie.trigger(this._element,W6,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(tC))for(const r of[].concat(...document.body.children))ie.on(r,"mouseover",Ks);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(lo),this._element.classList.add(lo),ie.trigger(this._element,K6,e)}}hide(){if(Un(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!ie.trigger(this._element,U6,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))ie.off(r,"mouseover",Ks);this._popper&&this._popper.destroy(),this._menu.classList.remove(lo),this._element.classList.remove(lo),this._element.setAttribute("aria-expanded","false"),bn.removeDataAttribute(this._menu,"popper"),ie.trigger(this._element,j6,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!vn(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Qp.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Bh>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:vn(this._config.reference)?e=Hn(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=rs(e,this._menu,t)}_isShown(){return this._menu.classList.contains(lo)}_getPlacement(){const e=this._parent;if(e.classList.contains(J6))return aC;if(e.classList.contains(Z6))return lC;if(e.classList.contains(X6))return cC;if(e.classList.contains(Q6))return uC;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(G6)?t?oC:rC:t?sC:iC}_detectNavbar(){return this._element.closest(eC)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(bn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Ct(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const r=ke.find(nC,this._menu).filter(o=>ro(o));r.length&&Ac(r,t,e===em,!r.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=ln.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===H6||e.type==="keyup"&&e.key!==qp)return;const t=ke.find(q6);for(const r of t){const o=ln.getInstance(r);if(!o||o._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(o._menu);if(i.includes(o._element)||o._config.autoClose==="inside"&&!s||o._config.autoClose==="outside"&&s||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===qp||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const l={relatedTarget:o._element};e.type==="click"&&(l.clickEvent=e),o._completeHide(l)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),r=e.key===V6,o=[z6,em].includes(e.key);if(!o&&!r||t&&!r)return;e.preventDefault();const i=this.matches(br)?this:ke.prev(this,br)[0]||ke.next(this,br)[0]||ke.findOne(br,e.delegateTarget.parentNode),s=ln.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}ie.on(document,nm,br,ln.dataApiKeydownHandler),ie.on(document,nm,ea,ln.dataApiKeydownHandler),ie.on(document,tm,ln.clearMenus),ie.on(document,Y6,ln.clearMenus),ie.on(document,tm,br,function(n){n.preventDefault(),ln.getOrCreateInstance(this).toggle()}),$t(ln);const rm="backdrop",hC="fade",om="show",im=`mousedown.bs.${rm}`,pC={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},mC={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class sm extends Jo{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return pC}static get DefaultType(){return mC}static get NAME(){return rm}show(e){if(!this._config.isVisible){Ct(e);return}this._append();const t=this._getElement();this._config.isAnimated&&Go(t),t.classList.add(om),this._emulateAnimation(()=>{Ct(e)})}hide(e){if(!this._config.isVisible){Ct(e);return}this._getElement().classList.remove(om),this._emulateAnimation(()=>{this.dispose(),Ct(e)})}dispose(){this._isAppended&&(ie.off(this._element,im),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(hC),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Hn(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),ie.on(e,im,()=>{Ct(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Bp(e,this._getElement(),this._config.isAnimated)}}const gC="focustrap",ta=".bs.focustrap",yC=`focusin${ta}`,vC=`keydown.tab${ta}`,bC="Tab",EC="forward",am="backward",CC={autofocus:!0,trapElement:null},SC={autofocus:"boolean",trapElement:"element"};class lm extends Jo{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return CC}static get DefaultType(){return SC}static get NAME(){return gC}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ie.off(document,ta),ie.on(document,yC,e=>this._handleFocusin(e)),ie.on(document,vC,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ie.off(document,ta))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const r=ke.focusableChildren(t);r.length===0?t.focus():this._lastTabNavDirection===am?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===bC&&(this._lastTabNavDirection=e.shiftKey?am:EC)}}const cm=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",um=".sticky-top",na="padding-right",dm="margin-right";class Bc{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,na,t=>t+e),this._setElementAttributes(cm,na,t=>t+e),this._setElementAttributes(um,dm,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,na),this._resetElementAttributes(cm,na),this._resetElementAttributes(um,dm)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const o=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+o)return;this._saveInitialAttribute(s,t);const l=window.getComputedStyle(s).getPropertyValue(t);s.style.setProperty(t,`${r(Number.parseFloat(l))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&bn.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){const r=o=>{const i=bn.getDataAttribute(o,t);if(i===null){o.style.removeProperty(t);return}bn.removeDataAttribute(o,t),o.style.setProperty(t,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,t){if(vn(e)){t(e);return}for(const r of ke.find(e,this._element))t(r)}}const wC="modal",Pt=".bs.modal",kC=".data-api",TC="Escape",AC=`hide${Pt}`,xC=`hidePrevented${Pt}`,fm=`hidden${Pt}`,hm=`show${Pt}`,OC=`shown${Pt}`,MC=`resize${Pt}`,NC=`click.dismiss${Pt}`,_C=`mousedown.dismiss${Pt}`,IC=`keydown.dismiss${Pt}`,DC=`click${Pt}${kC}`,pm="modal-open",LC="fade",mm="show",$c="modal-static",RC=".modal.show",BC=".modal-dialog",$C=".modal-body",PC='[data-bs-toggle="modal"]',FC={backdrop:!0,focus:!0,keyboard:!0},VC={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Wn extends Jt{constructor(e,t){super(e,t),this._dialog=ke.findOne(BC,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Bc,this._addEventListeners()}static get Default(){return FC}static get DefaultType(){return VC}static get NAME(){return wC}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||ie.trigger(this._element,hm,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(pm),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||ie.trigger(this._element,AC).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(mm),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){ie.off(window,Pt),ie.off(this._dialog,Pt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new sm({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new lm({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=ke.findOne($C,this._dialog);t&&(t.scrollTop=0),Go(this._element),this._element.classList.add(mm);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ie.trigger(this._element,OC,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){ie.on(this._element,IC,e=>{if(e.key===TC){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),ie.on(window,MC,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ie.on(this._element,_C,e=>{ie.one(this._element,NC,t=>{if(!(this._element!==e.target||this._element!==t.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(pm),this._resetAdjustments(),this._scrollBar.reset(),ie.trigger(this._element,fm)})}_isAnimated(){return this._element.classList.contains(LC)}_triggerBackdropTransition(){if(ie.trigger(this._element,xC).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains($c)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add($c),this._queueCallback(()=>{this._element.classList.remove($c),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),r=t>0;if(r&&!e){const o=Bt()?"paddingLeft":"paddingRight";this._element.style[o]=`${t}px`}if(!r&&e){const o=Bt()?"paddingRight":"paddingLeft";this._element.style[o]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const r=Wn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](t)}})}}ie.on(document,DC,PC,function(n){const e=ke.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),ie.one(e,hm,o=>{o.defaultPrevented||ie.one(e,fm,()=>{ro(this)&&this.focus()})});const t=ke.findOne(RC);t&&Wn.getInstance(t).hide(),Wn.getOrCreateInstance(e).toggle(this)}),Ys(Wn),$t(Wn);const zC="offcanvas",En=".bs.offcanvas",gm=".data-api",HC=`load${En}${gm}`,UC="Escape",ym="show",vm="showing",bm="hiding",jC="offcanvas-backdrop",Em=".offcanvas.show",WC=`show${En}`,KC=`shown${En}`,YC=`hide${En}`,Cm=`hidePrevented${En}`,Sm=`hidden${En}`,GC=`resize${En}`,JC=`click${En}${gm}`,ZC=`keydown.dismiss${En}`,XC='[data-bs-toggle="offcanvas"]',QC={backdrop:!0,keyboard:!0,scroll:!1},qC={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Kn extends Jt{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return QC}static get DefaultType(){return qC}static get NAME(){return zC}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||ie.trigger(this._element,WC,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Bc().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(vm);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(ym),this._element.classList.remove(vm),ie.trigger(this._element,KC,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||ie.trigger(this._element,YC).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(bm),this._backdrop.hide();const t=()=>{this._element.classList.remove(ym,bm),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Bc().reset(),ie.trigger(this._element,Sm)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){ie.trigger(this._element,Cm);return}this.hide()},t=!!this._config.backdrop;return new sm({className:jC,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new lm({trapElement:this._element})}_addEventListeners(){ie.on(this._element,ZC,e=>{if(e.key===UC){if(this._config.keyboard){this.hide();return}ie.trigger(this._element,Cm)}})}static jQueryInterface(e){return this.each(function(){const t=Kn.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}ie.on(document,JC,XC,function(n){const e=ke.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Un(this))return;ie.one(e,Sm,()=>{ro(this)&&this.focus()});const t=ke.findOne(Em);t&&t!==e&&Kn.getInstance(t).hide(),Kn.getOrCreateInstance(e).toggle(this)}),ie.on(window,HC,()=>{for(const n of ke.find(Em))Kn.getOrCreateInstance(n).show()}),ie.on(window,GC,()=>{for(const n of ke.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&Kn.getOrCreateInstance(n).hide()}),Ys(Kn),$t(Kn);const wm={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},eS=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),tS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,nS=(n,e)=>{const t=n.nodeName.toLowerCase();return e.includes(t)?eS.has(t)?!!tS.test(n.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(t))};function rS(n,e,t){if(!n.length)return n;if(t&&typeof t=="function")return t(n);const o=new window.DOMParser().parseFromString(n,"text/html"),i=[].concat(...o.body.querySelectorAll("*"));for(const s of i){const l=s.nodeName.toLowerCase();if(!Object.keys(e).includes(l)){s.remove();continue}const a=[].concat(...s.attributes),c=[].concat(e["*"]||[],e[l]||[]);for(const u of a)nS(u,c)||s.removeAttribute(u.nodeName)}return o.body.innerHTML}const oS="TemplateFactory",iS={allowList:wm,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},sS={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},aS={entry:"(string|element|function|null)",selector:"(string|element)"};class lS extends Jo{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return iS}static get DefaultType(){return sS}static get NAME(){return oS}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[o,i]of Object.entries(this._config.content))this._setContent(e,i,o);const t=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&t.classList.add(...r.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,r]of Object.entries(e))super._typeCheckConfig({selector:t,entry:r},aS)}_setContent(e,t,r){const o=ke.findOne(r,e);if(o){if(t=this._resolvePossibleFunction(t),!t){o.remove();return}if(vn(t)){this._putElementInTemplate(Hn(t),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(t);return}o.textContent=t}}_maybeSanitize(e){return this._config.sanitize?rS(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Ct(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}const cS="tooltip",uS=new Set(["sanitize","allowList","sanitizeFn"]),Pc="fade",dS="modal",ra="show",fS=".tooltip-inner",km=`.${dS}`,Tm="hide.bs.modal",ei="hover",Fc="focus",hS="click",pS="manual",mS="hide",gS="hidden",yS="show",vS="shown",bS="inserted",ES="click",CS="focusin",SS="focusout",wS="mouseenter",kS="mouseleave",TS={AUTO:"auto",TOP:"top",RIGHT:Bt()?"left":"right",BOTTOM:"bottom",LEFT:Bt()?"right":"left"},AS={allowList:wm,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},xS={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Er extends Jt{constructor(e,t){if(typeof Bh>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return AS}static get DefaultType(){return xS}static get NAME(){return cS}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),ie.off(this._element.closest(km),Tm,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=ie.trigger(this._element,this.constructor.eventName(yS)),r=(Lp(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(o),ie.trigger(this._element,this.constructor.eventName(bS))),this._popper=this._createPopper(o),o.classList.add(ra),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))ie.on(l,"mouseover",Ks);const s=()=>{ie.trigger(this._element,this.constructor.eventName(vS)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||ie.trigger(this._element,this.constructor.eventName(mS)).defaultPrevented)return;if(this._getTipElement().classList.remove(ra),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))ie.off(o,"mouseover",Ks);this._activeTrigger[hS]=!1,this._activeTrigger[Fc]=!1,this._activeTrigger[ei]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ie.trigger(this._element,this.constructor.eventName(gS)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Pc,ra),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=S4(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(Pc),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new lS({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[fS]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Pc)}_isShown(){return this.tip&&this.tip.classList.contains(ra)}_createPopper(e){const t=Ct(this._config.placement,[this,e,this._element]),r=TS[t.toUpperCase()];return rs(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Ct(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...t,...Ct(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")ie.on(this._element,this.constructor.eventName(ES),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(t!==pS){const r=t===ei?this.constructor.eventName(wS):this.constructor.eventName(CS),o=t===ei?this.constructor.eventName(kS):this.constructor.eventName(SS);ie.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?Fc:ei]=!0,s._enter()}),ie.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?Fc:ei]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ie.on(this._element.closest(km),Tm,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=bn.getDataAttributes(this._element);for(const r of Object.keys(t))uS.has(r)&&delete t[r];return e={...t,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Hn(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,r]of Object.entries(this._config))this.constructor.Default[t]!==r&&(e[t]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=Er.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}$t(Er);const OS="popover",MS=".popover-header",NS=".popover-body",_S={...Er.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},IS={...Er.DefaultType,content:"(null|string|element|function)"};class Vc extends Er{static get Default(){return _S}static get DefaultType(){return IS}static get NAME(){return OS}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[MS]:this._getTitle(),[NS]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=Vc.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}$t(Vc);const DS="scrollspy",zc=".bs.scrollspy",LS=".data-api",RS=`activate${zc}`,Am=`click${zc}`,BS=`load${zc}${LS}`,$S="dropdown-item",co="active",PS='[data-bs-spy="scroll"]',Hc="[href]",FS=".nav, .list-group",xm=".nav-link",VS=`${xm}, .nav-item > ${xm}, .list-group-item`,zS=".dropdown",HS=".dropdown-toggle",US={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},jS={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class oa extends Jt{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return US}static get DefaultType(){return jS}static get NAME(){return DS}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Hn(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(ie.off(this._config.target,Am),ie.on(this._config.target,Am,Hc,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const r=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=s=>this._targetLinks.get(`#${s.target.id}`),r=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(t(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(s));continue}const l=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&l){if(r(s),!o)return;continue}!i&&!l&&r(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=ke.find(Hc,this._config.target);for(const t of e){if(!t.hash||Un(t))continue;const r=ke.findOne(decodeURI(t.hash),this._element);ro(r)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(co),this._activateParents(e),ie.trigger(this._element,RS,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains($S)){ke.findOne(HS,e.closest(zS)).classList.add(co);return}for(const t of ke.parents(e,FS))for(const r of ke.prev(t,VS))r.classList.add(co)}_clearActiveClass(e){e.classList.remove(co);const t=ke.find(`${Hc}.${co}`,e);for(const r of t)r.classList.remove(co)}static jQueryInterface(e){return this.each(function(){const t=oa.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ie.on(window,BS,()=>{for(const n of ke.find(PS))oa.getOrCreateInstance(n)}),$t(oa);const WS="tab",Cr=".bs.tab",KS=`hide${Cr}`,YS=`hidden${Cr}`,GS=`show${Cr}`,JS=`shown${Cr}`,ZS=`click${Cr}`,XS=`keydown${Cr}`,QS=`load${Cr}`,qS="ArrowLeft",Om="ArrowRight",ew="ArrowUp",Mm="ArrowDown",Sr="active",Nm="fade",Uc="show",tw="dropdown",nw=".dropdown-toggle",rw=".dropdown-menu",jc=":not(.dropdown-toggle)",ow='.list-group, .nav, [role="tablist"]',iw=".nav-item, .list-group-item",sw=`.nav-link${jc}, .list-group-item${jc}, [role="tab"]${jc}`,_m='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Wc=`${sw}, ${_m}`,aw=`.${Sr}[data-bs-toggle="tab"], .${Sr}[data-bs-toggle="pill"], .${Sr}[data-bs-toggle="list"]`;class uo extends Jt{constructor(e){super(e),this._parent=this._element.closest(ow),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ie.on(this._element,XS,t=>this._keydown(t)))}static get NAME(){return WS}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?ie.trigger(t,KS,{relatedTarget:e}):null;ie.trigger(e,GS,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(Sr),this._activate(ke.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(Uc);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),ie.trigger(e,JS,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(Nm))}_deactivate(e,t){if(!e)return;e.classList.remove(Sr),e.blur(),this._deactivate(ke.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(Uc);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),ie.trigger(e,YS,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(Nm))}_keydown(e){if(![qS,Om,ew,Mm].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[Om,Mm].includes(e.key),r=Ac(this._getChildren().filter(o=>!Un(o)),e.target,t,!0);r&&(r.focus({preventScroll:!0}),uo.getOrCreateInstance(r).show())}_getChildren(){return ke.find(Wc,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const r of t)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",t),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=ke.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const r=this._getOuterElement(e);if(!r.classList.contains(tw))return;const o=(i,s)=>{const l=ke.findOne(i,r);l&&l.classList.toggle(s,t)};o(nw,Sr),o(rw,Uc),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(Sr)}_getInnerElement(e){return e.matches(Wc)?e:ke.findOne(Wc,e)}_getOuterElement(e){return e.closest(iw)||e}static jQueryInterface(e){return this.each(function(){const t=uo.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ie.on(document,ZS,_m,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Un(this)&&uo.getOrCreateInstance(this).show()}),ie.on(window,QS,()=>{for(const n of ke.find(aw))uo.getOrCreateInstance(n)}),$t(uo);const lw="toast",Yn=".bs.toast",cw=`mouseover${Yn}`,uw=`mouseout${Yn}`,dw=`focusin${Yn}`,fw=`focusout${Yn}`,hw=`hide${Yn}`,pw=`hidden${Yn}`,mw=`show${Yn}`,gw=`shown${Yn}`,yw="fade",Im="hide",ia="show",sa="showing",vw={animation:"boolean",autohide:"boolean",delay:"number"},bw={animation:!0,autohide:!0,delay:5e3};class ti extends Jt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return bw}static get DefaultType(){return vw}static get NAME(){return lw}show(){if(ie.trigger(this._element,mw).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(yw);const t=()=>{this._element.classList.remove(sa),ie.trigger(this._element,gw),this._maybeScheduleHide()};this._element.classList.remove(Im),Go(this._element),this._element.classList.add(ia,sa),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||ie.trigger(this._element,hw).defaultPrevented)return;const t=()=>{this._element.classList.add(Im),this._element.classList.remove(sa,ia),ie.trigger(this._element,pw)};this._element.classList.add(sa),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ia),super.dispose()}isShown(){return this._element.classList.contains(ia)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=t;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=t;break}}if(t){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){ie.on(this._element,cw,e=>this._onInteraction(e,!0)),ie.on(this._element,uw,e=>this._onInteraction(e,!1)),ie.on(this._element,dw,e=>this._onInteraction(e,!0)),ie.on(this._element,fw,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=ti.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Ys(ti),$t(ti);const Dm=n=>{const e=d.ref(null);return{showModal:()=>{const o=document.getElementById(n);o instanceof HTMLElement?(e.value=Wn.getOrCreateInstance(o),e.value.show()):console.error(`Modal '${n}' niet gevonden.`)},closeModal:()=>{if(e.value){e.value.hide();return}const o=document.getElementById(n);if(o instanceof HTMLElement){const i=Wn.getInstance(o);i&&i.hide()}}}};function Lm(){const n=d.ref(0),e=d.ref(!0),t=d.ref(null),r=d.ref({top:0,left:0,x:0,y:0}),o=d.computed(()=>n.value>0?`zoom-${n.value}`:"");return{zoom:n,mouseDown:e,imageHolderRef:t,pos:r,SetZoom:o,OnMouseDown:a=>{if(!t.value)return;r.value.left=t.value.scrollLeft,r.value.top=t.value.scrollTop;const c=document.querySelector("#image-attachment-modal"),u=document.querySelector(".image-preview-image-holder");c&&(c.style.cursor="grabbing"),u&&(u.style.cursor="grabbing"),r.value.x=a.clientX,r.value.y=a.clientY,e.value=!0},OnMouseMove:a=>{if(e.value){const c=a.clientX-r.value.x,u=a.clientY-r.value.y;t.value&&(t.value.scrollTop=r.value.top-u,t.value.scrollLeft=r.value.left-c)}},OnMouseUp:()=>{const a=document.querySelector("#image-attachment-modal"),c=document.querySelector(".image-preview-image-holder");a&&a.style&&(a.style.cursor=""),c&&c.style&&(c.style.cursor="grab"),e.value=!1}}}const Ew=["src","alt"],Cw={key:0,class:"show-spinner"},Sw={class:"spinner-border text-primary",role:"status"},ww={class:"visually-hidden"},kw=["href"],Rm=d.defineComponent({__name:"BDImageAttachmentModal",props:["loadingText","downloadText"],setup(n,{expose:e}){const t=n,{showModal:r}=Dm("image-attachment-modal"),{zoom:o,imageHolderRef:i,SetZoom:s,OnMouseDown:l,OnMouseMove:a,OnMouseUp:c}=Lm(),u=d.ref(!0),f=d.ref({BerichtId:0,Id:void 0,MimeType:null,Naam:We,altName:We,downloadUrl:We,fullImageUrl:We,previewUrl:We});e({Show:g=>{f.value=g,o.value=0,r()}});const p=()=>{u.value=!1},m=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:We,altName:We,downloadUrl:We,fullImageUrl:We,previewUrl:We}};return(g,y)=>(d.openBlock(),d.createBlock(Sc,{id:"image-attachment-modal",class:d.normalizeClass(d.unref(We)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:m},{default:d.withCtx(()=>[d.createElementVNode("div",{class:"image-preview-image-holder",ref_key:"imageHolderRef",ref:i,onMousedown:y[0]||(y[0]=(...C)=>d.unref(l)&&d.unref(l)(...C)),onMousemove:y[1]||(y[1]=(...C)=>d.unref(a)&&d.unref(a)(...C)),onMouseup:y[2]||(y[2]=(...C)=>d.unref(c)&&d.unref(c)(...C))},[f.value?(d.openBlock(),d.createElementBlock("img",{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:d.normalizeClass(["image-preview-modal",d.unref(s)]),onLoad:p,draggable:!1},null,42,Ew)):d.createCommentVNode("",!0)],544),u.value?(d.openBlock(),d.createElementBlock("div",Cw,[d.createElementVNode("div",Sw,[d.createElementVNode("span",ww,d.toDisplayString(t.loadingText),1)])])):d.createCommentVNode("",!0),d.createVNode(ka,{modelValue:d.unref(o),"onUpdate:modelValue":y[3]||(y[3]=C=>d.isRef(o)?o.value=C:null),class:"image-preview-bd-zoom-slider","max-value":4},null,8,["modelValue"]),d.createElementVNode("a",{href:f.value.downloadUrl},[d.createVNode(Qe,{variant:"primary",class:"download-image"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(t.downloadText),1)]),_:1})],8,kw)]),_:1},8,["class","title"]))}});function Bm(n=void 0){const e=l=>i("Succesvol",l,Or.SUCCESS),t=l=>i("Waarschuwing",l,Or.WARNING),r=l=>i("Informatie",l,Or.INFO),o=l=>i("Mislukt",l,Or.DANGER);function i(l,a,c){const u=`toast-${mu()}`,f={id:u,variant:c,title:l,text:a},h=document.querySelector(".toast-container");if(!h){console.error("There was no element with class 'toast-container' found, which is required for useToaster.");return}const p=d.h(xa,f),g=d.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const y=document.querySelector(`#${u}`);y&&(ti.getOrCreateInstance(y,n).show(),s(y))}function s(l){function a(f,h){f.forEach(p=>{if(p.attributeName!="class")return;const m=p.target;if(m.classList.contains("hide")){m.remove(),h.disconnect();return}})}const c=new MutationObserver(a),u={attributes:!0};c.observe(l,u)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:t,showDangerToast:o}}const Tw=n=>Array.isArray(n)&&n.length>0,{showDangerToast:Aw}=Bm();function xw(n){const e=d.ref(null),t=(a,c="serverErrors")=>{var f;let u=[];if(Array.isArray((f=a==null?void 0:a.response)==null?void 0:f.data)?u=a.response.data.filter(h=>pi(h.ErrorMessage)&&h.ErrorMessage!==We):a.response.data.ErrorMessage?u=[a.response.data.ErrorMessage]:u=null,pi(c))e.value=u;else if(Array.isArray(c)){let h=e.value;for(let p=0;p<c.length;p++)p===c.length-1?h[c[p]]=u:h=h[c[p]]}r(a),s(e)},r=a=>{const u=new URL(a.request.responseURL).pathname;if(u in n.error){const f=n.error[u];f&&Aw(f)}},o=d.ref(null),i=d.ref(""),s=a=>{Tw(a.value)?o.value=a.value.map(c=>pi(c)?c:c.ErrorMessage):pi(a.value)&&(i.value=a.value)};function l(){e.value=null,o.value=null,i.value=We}return{serverErrors:e,errorMessages:o,errorMessageText:i,MapErrors:s,MapServerErrors:t,ResetServerErrors:l}}const Ow=()=>({ResetValidation:t=>{for(const r in t.value)t.value[r].state=null},ValidationObjectIsValid:t=>{for(let r in t)if(t[r].state===!1)return!1;return!0}}),$m={mounted:n=>{new Er(n)}};var Pm={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Oa,function(){var t=1e3,r=6e4,o=36e5,i="millisecond",s="second",l="minute",a="hour",c="day",u="week",f="month",h="quarter",p="year",m="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(H){var F=["th","st","nd","rd"],$=H%100;return"["+H+(F[($-20)%10]||F[$]||F[0])+"]"}},k=function(H,F,$){var G=String(H);return!G||G.length>=F?H:""+Array(F+1-G.length).join($)+H},b={s:k,z:function(H){var F=-H.utcOffset(),$=Math.abs(F),G=Math.floor($/60),D=$%60;return(F<=0?"+":"-")+k(G,2,"0")+":"+k(D,2,"0")},m:function H(F,$){if(F.date()<$.date())return-H($,F);var G=12*($.year()-F.year())+($.month()-F.month()),D=F.clone().add(G,f),Q=$-D<0,te=F.clone().add(G+(Q?-1:1),f);return+(-(G+($-D)/(Q?D-te:te-D))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:f,y:p,w:u,d:c,D:m,h:a,m:l,s,ms:i,Q:h}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},M="en",T={};T[M]=S;var z="$isDayjsObject",U=function(H){return H instanceof V||!(!H||!H[z])},j=function H(F,$,G){var D;if(!F)return M;if(typeof F=="string"){var Q=F.toLowerCase();T[Q]&&(D=Q),$&&(T[Q]=$,D=Q);var te=F.split("-");if(!D&&te.length>1)return H(te[0])}else{var ce=F.name;T[ce]=F,D=ce}return!G&&D&&(M=D),D||!G&&M},P=function(H,F){if(U(H))return H.clone();var $=typeof F=="object"?F:{};return $.date=H,$.args=arguments,new V($)},L=b;L.l=j,L.i=U,L.w=function(H,F){return P(H,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var V=function(){function H($){this.$L=j($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[z]=!0}var F=H.prototype;return F.parse=function($){this.$d=function(G){var D=G.date,Q=G.utc;if(D===null)return new Date(NaN);if(L.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var te=D.match(y);if(te){var ce=te[2]-1||0,me=(te[7]||"0").substring(0,3);return Q?new Date(Date.UTC(te[1],ce,te[3]||1,te[4]||0,te[5]||0,te[6]||0,me)):new Date(te[1],ce,te[3]||1,te[4]||0,te[5]||0,te[6]||0,me)}}return new Date(D)}($),this.init()},F.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},F.$utils=function(){return L},F.isValid=function(){return this.$d.toString()!==g},F.isSame=function($,G){var D=P($);return this.startOf(G)<=D&&D<=this.endOf(G)},F.isAfter=function($,G){return P($)<this.startOf(G)},F.isBefore=function($,G){return this.endOf(G)<P($)},F.$g=function($,G,D){return L.u($)?this[G]:this.set(D,$)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function($,G){var D=this,Q=!!L.u(G)||G,te=L.p($),ce=function(O,w){var x=L.w(D.$u?Date.UTC(D.$y,w,O):new Date(D.$y,w,O),D);return Q?x:x.endOf(c)},me=function(O,w){return L.w(D.toDate()[O].apply(D.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(w)),D)},ge=this.$W,Ce=this.$M,we=this.$D,Te="set"+(this.$u?"UTC":"");switch(te){case p:return Q?ce(1,0):ce(31,11);case f:return Q?ce(1,Ce):ce(0,Ce+1);case u:var ve=this.$locale().weekStart||0,A=(ge<ve?ge+7:ge)-ve;return ce(Q?we-A:we+(6-A),Ce);case c:case m:return me(Te+"Hours",0);case a:return me(Te+"Minutes",1);case l:return me(Te+"Seconds",2);case s:return me(Te+"Milliseconds",3);default:return this.clone()}},F.endOf=function($){return this.startOf($,!1)},F.$set=function($,G){var D,Q=L.p($),te="set"+(this.$u?"UTC":""),ce=(D={},D[c]=te+"Date",D[m]=te+"Date",D[f]=te+"Month",D[p]=te+"FullYear",D[a]=te+"Hours",D[l]=te+"Minutes",D[s]=te+"Seconds",D[i]=te+"Milliseconds",D)[Q],me=Q===c?this.$D+(G-this.$W):G;if(Q===f||Q===p){var ge=this.clone().set(m,1);ge.$d[ce](me),ge.init(),this.$d=ge.set(m,Math.min(this.$D,ge.daysInMonth())).$d}else ce&&this.$d[ce](me);return this.init(),this},F.set=function($,G){return this.clone().$set($,G)},F.get=function($){return this[L.p($)]()},F.add=function($,G){var D,Q=this;$=Number($);var te=L.p(G),ce=function(Ce){var we=P(Q);return L.w(we.date(we.date()+Math.round(Ce*$)),Q)};if(te===f)return this.set(f,this.$M+$);if(te===p)return this.set(p,this.$y+$);if(te===c)return ce(1);if(te===u)return ce(7);var me=(D={},D[l]=r,D[a]=o,D[s]=t,D)[te]||1,ge=this.$d.getTime()+$*me;return L.w(ge,this)},F.subtract=function($,G){return this.add(-1*$,G)},F.format=function($){var G=this,D=this.$locale();if(!this.isValid())return D.invalidDate||g;var Q=$||"YYYY-MM-DDTHH:mm:ssZ",te=L.z(this),ce=this.$H,me=this.$m,ge=this.$M,Ce=D.weekdays,we=D.months,Te=D.meridiem,ve=function(w,x,v,E){return w&&(w[x]||w(G,Q))||v[x].slice(0,E)},A=function(w){return L.s(ce%12||12,w,"0")},O=Te||function(w,x,v){var E=w<12?"AM":"PM";return v?E.toLowerCase():E};return Q.replace(C,function(w,x){return x||function(v){switch(v){case"YY":return String(G.$y).slice(-2);case"YYYY":return L.s(G.$y,4,"0");case"M":return ge+1;case"MM":return L.s(ge+1,2,"0");case"MMM":return ve(D.monthsShort,ge,we,3);case"MMMM":return ve(we,ge);case"D":return G.$D;case"DD":return L.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return ve(D.weekdaysMin,G.$W,Ce,2);case"ddd":return ve(D.weekdaysShort,G.$W,Ce,3);case"dddd":return Ce[G.$W];case"H":return String(ce);case"HH":return L.s(ce,2,"0");case"h":return A(1);case"hh":return A(2);case"a":return O(ce,me,!0);case"A":return O(ce,me,!1);case"m":return String(me);case"mm":return L.s(me,2,"0");case"s":return String(G.$s);case"ss":return L.s(G.$s,2,"0");case"SSS":return L.s(G.$ms,3,"0");case"Z":return te}return null}(w)||te.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function($,G,D){var Q,te=this,ce=L.p(G),me=P($),ge=(me.utcOffset()-this.utcOffset())*r,Ce=this-me,we=function(){return L.m(te,me)};switch(ce){case p:Q=we()/12;break;case f:Q=we();break;case h:Q=we()/3;break;case u:Q=(Ce-ge)/6048e5;break;case c:Q=(Ce-ge)/864e5;break;case a:Q=Ce/o;break;case l:Q=Ce/r;break;case s:Q=Ce/t;break;default:Q=Ce}return D?Q:L.a(Q)},F.daysInMonth=function(){return this.endOf(f).$D},F.$locale=function(){return T[this.$L]},F.locale=function($,G){if(!$)return this.$L;var D=this.clone(),Q=j($,G,!0);return Q&&(D.$L=Q),D},F.clone=function(){return L.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},H}(),W=V.prototype;return P.prototype=W,[["$ms",i],["$s",s],["$m",l],["$H",a],["$W",c],["$M",f],["$y",p],["$D",m]].forEach(function(H){W[H[1]]=function(F){return this.$g(F,H[0],H[1])}}),P.extend=function(H,F){return H.$i||(H(F,V,P),H.$i=!0),P},P.locale=j,P.isDayjs=U,P.unix=function(H){return P(1e3*H)},P.en=T[M],P.Ls=T,P.p={},P})})(Pm);var Fm=Pm.exports;const aa=Ma(Fm);var Mw={exports:{}};(function(n,e){(function(t,r){n.exports=r(Fm)})(Oa,function(t){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=r(t),i={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(s){return"["+s+(s===1||s===8||s>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return o.default.locale(i,null,!0),i})})(Mw);var Vm={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Oa,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,s=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,a={},c=function(y){return(y=+y)+(y>68?1900:2e3)},u=function(y){return function(C){this[y]=+C}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var S=C.match(/([+-]|\d\d)/g),k=60*S[1]+(+S[2]||0);return k===0?0:S[0]==="+"?-k:k}(y)}],h=function(y){var C=a[y];return C&&(C.indexOf?C:C.s.concat(C.f))},p=function(y,C){var S,k=a.meridiem;if(k){for(var b=1;b<=24;b+=1)if(y.indexOf(k(b,0,C))>-1){S=b>12;break}}else S=y===(C?"pm":"PM");return S},m={A:[l,function(y){this.afternoon=p(y,!1)}],a:[l,function(y){this.afternoon=p(y,!0)}],Q:[o,function(y){this.month=3*(y-1)+1}],S:[o,function(y){this.milliseconds=100*+y}],SS:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[i,u("day")],Do:[l,function(y){var C=a.ordinal,S=y.match(/\d+/);if(this.day=S[0],C)for(var k=1;k<=31;k+=1)C(k).replace(/\[|\]/g,"")===y&&(this.day=k)}],w:[s,u("week")],ww:[i,u("week")],M:[s,u("month")],MM:[i,u("month")],MMM:[l,function(y){var C=h("months"),S=(h("monthsShort")||C.map(function(k){return k.slice(0,3)})).indexOf(y)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[l,function(y){var C=h("months").indexOf(y)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(y){this.year=c(y)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(y){var C,S;C=y,S=a&&a.formats;for(var k=(y=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,L,V){var W=V&&V.toUpperCase();return L||S[V]||t[V]||S[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(H,F,$){return F||$.slice(1)})})).match(r),b=k.length,M=0;M<b;M+=1){var T=k[M],z=m[T],U=z&&z[0],j=z&&z[1];k[M]=j?{regex:U,parser:j}:T.replace(/^\[|\]$/g,"")}return function(P){for(var L={},V=0,W=0;V<b;V+=1){var H=k[V];if(typeof H=="string")W+=H.length;else{var F=H.regex,$=H.parser,G=P.slice(W),D=F.exec(G)[0];$.call(L,D),P=P.replace(D,"")}}return function(Q){var te=Q.afternoon;if(te!==void 0){var ce=Q.hours;te?ce<12&&(Q.hours+=12):ce===12&&(Q.hours=0),delete Q.afternoon}}(L),L}}return function(y,C,S){S.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var k=C.prototype,b=k.parse;k.parse=function(M){var T=M.date,z=M.utc,U=M.args;this.$u=z;var j=U[1];if(typeof j=="string"){var P=U[2]===!0,L=U[3]===!0,V=P||L,W=U[2];L&&(W=U[2]),a=this.$locale(),!P&&W&&(a=S.Ls[W]),this.$d=function(G,D,Q,te){try{if(["x","X"].indexOf(D)>-1)return new Date((D==="X"?1e3:1)*G);var ce=g(D)(G),me=ce.year,ge=ce.month,Ce=ce.day,we=ce.hours,Te=ce.minutes,ve=ce.seconds,A=ce.milliseconds,O=ce.zone,w=ce.week,x=new Date,v=Ce||(me||ge?1:x.getDate()),E=me||x.getFullYear(),_=0;me&&!ge||(_=ge>0?ge-1:x.getMonth());var I,R=we||0,B=Te||0,K=ve||0,J=A||0;return O?new Date(Date.UTC(E,_,v,R,B,K,J+60*O.offset*1e3)):Q?new Date(Date.UTC(E,_,v,R,B,K,J)):(I=new Date(E,_,v,R,B,K,J),w&&(I=te(I).week(w).toDate()),I)}catch{return new Date("")}}(T,j,z,S),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),V&&T!=this.format(j)&&(this.$d=new Date("")),a={}}else if(j instanceof Array)for(var H=j.length,F=1;F<=H;F+=1){U[1]=j[F-1];var $=S.apply(this,U);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}F===H&&(this.$d=new Date(""))}else b.call(this,M)}}})})(Vm);var Nw=Vm.exports;const _w=Ma(Nw);aa.extend(_w),aa.locale("nl");function Iw(n,e=aa().startOf("day")){const t="DD-MM-YYYY",r=aa(n,t);if(r.isSame(e))return"vandaag";const i=e.subtract(1,"day");if(r.isSame(i))return"gister";const l=e.subtract(2,"day");if(r.isSame(l))return"eergister";const c=e.subtract(7,"day");if(r.isAfter(c)){const h="dddd";return r.format(h)}if(r.year()==e.year()){const h="D MMM";return r.format(h)}return r.format(t)}const Dw={PRIMARY:"primary",SECONDARY:"secondary",COLLEAGUE:"colleague",DANGER:"danger",OUT_PRIMARY:"outline-primary",OUT_PRIMARY_DARK:"outline-primary-dark",OUT_TERTIARY:"outline-tertiary",OUT_LINK:"link",LIGHT:"light",DARK:"dark",REMOVE:"remove"},Qe=d.defineComponent({__name:"BDButton",props:{size:{default:lt.MD},variant:{default:Dw.PRIMARY},blockElement:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{},target:{},text:{},rel:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=d.computed(()=>({btn:!0,[`btn-${t.variant}`]:t.variant,[`btn-${t.size}`]:!0,"d-grid":t.blockElement&&typeof t.to=="string",[`${t.class}`]:t.class,disabled:t.disabled})),o=d.computed(()=>t.to?Ar:"button"),i=d.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),s=l=>{e("click",l)};return(l,a)=>(d.openBlock(),d.createBlock(d.resolveDynamicComponent(o.value),d.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:d.withCtx(()=>[d.renderSlot(l.$slots,"default",{},()=>[d.createTextVNode(d.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),Lw={install:n=>{n.component("BDCol",Zn),n.component("BDContainer",ni),n.component("BDRow",Xn),n.component("BDButton",Qe),n.component("BDLogo",Sa),n.component("BDLink",Ar),n.component("BDDropdownItem",gi),n.component("BDDropdown",Cc),n.component("BDAlert",ci),n.component("BDProfileImage",po),n.component("BDZoomslider",ka),n.component("BDCard",fi),n.component("BDCollapsableCard",gu),n.component("BDFormInput",go),n.component("BDInputGroup",Cu),n.component("BDFormInvalidFeedback",hi),n.component("BDBadge",Su),n.component("BDForm",wu),n.component("BDPagination",ku),n.component("BDDropzone",Nu),n.component("BDMarkdownEditor",Ap),n.component("BDModal",Sc),n.component("BDFormSelect",Tu),n.component("BDUser",xp),n.component("BDArticle",xu),n.component("BDFormCheckbox",Au),n.component("BDToast",xa),n.component("BDAttachmentPreviewList",Us),n.component("BDImageAttachmentPreviewList",js),n.component("BDHeader",_p),n.component("BDMobileMenu",Ec),n.component("BDChatCloud",Op),n.component("BDTable",Mp),n.component("BDChangePasswordTemplate",Np),n.component("BDPill",mi),n.component("BDImageAttachmentModal",Rm),n.component("IconAcademy",Qc),n.component("IconArrowDown",qc),n.component("IconArrowUp",eu),n.component("IconAttachment",Qn),n.component("IconBold",ca),n.component("IconBulletList",ua),n.component("IconCalendar",da),n.component("IconCalendar",da),n.component("IconCardView",tu),n.component("IconCaretDown",fa),n.component("IconCaretLeft",ha),n.component("IconCaretRight",pa),n.component("IconCheck",kr),n.component("IconClose",ri),n.component("IconComment",ig),n.component("IconDownloadImage",oi),n.component("IconDownloadImage",oi),n.component("IconEdit",nu),n.component("IconError",ii),n.component("IconEyeShow",ru),n.component("IconEyeSlash",ou),n.component("IconFile",ma),n.component("IconHyperlink",si),n.component("IconInfo",Tr),n.component("IconItalic",ga),n.component("IconListView",iu),n.component("IconMenu",ai),n.component("IconMenu",ai),n.component("IconOrderedList",ya),n.component("IconRemove",ho),n.component("IconService",su),n.component("IconSort",au),n.component("IconSortAsc",va),n.component("IconSortDesc",ba),n.component("IconSortNone",Ea),n.component("IconTriangleExclamation",lu),n.component("IconUnderline",Ca),n.component("IconContactPerson",cu),n.directive("vBDTooltip",$m)}};fe.BDAlert=ci,fe.BDArticle=xu,fe.BDAttachmentPreviewList=Us,fe.BDBadge=Su,fe.BDButton=Qe,fe.BDCard=fi,fe.BDChangePasswordTemplate=Np,fe.BDChatCloud=Op,fe.BDCol=Zn,fe.BDCollapsableCard=gu,fe.BDContainer=ni,fe.BDDropdown=Cc,fe.BDDropdownItem=gi,fe.BDDropzone=Nu,fe.BDForm=wu,fe.BDFormCheckbox=Au,fe.BDFormInput=go,fe.BDFormInvalidFeedback=hi,fe.BDFormSelect=Tu,fe.BDHeader=_p,fe.BDImageAttachmentModal=Rm,fe.BDImageAttachmentPreviewList=js,fe.BDInputGroup=Cu,fe.BDLink=Ar,fe.BDLogo=Sa,fe.BDMarkdownEditor=Ap,fe.BDMobileMenu=Ec,fe.BDModal=Sc,fe.BDPagination=ku,fe.BDPill=mi,fe.BDProfileImage=po,fe.BDRow=Xn,fe.BDTable=Mp,fe.BDToast=xa,fe.BDUser=xp,fe.BDZoomslider=ka,fe.IconAcademy=Qc,fe.IconArrowDown=qc,fe.IconArrowUp=eu,fe.IconAttachment=Qn,fe.IconBold=ca,fe.IconBulletList=ua,fe.IconCalendar=da,fe.IconCardView=tu,fe.IconCaretDown=fa,fe.IconCaretLeft=ha,fe.IconCaretRight=pa,fe.IconCheck=kr,fe.IconClose=ri,fe.IconContactPerson=cu,fe.IconDownloadImage=oi,fe.IconEdit=nu,fe.IconError=ii,fe.IconEyeShow=ru,fe.IconEyeSlash=ou,fe.IconFile=ma,fe.IconHyperlink=si,fe.IconInfo=Tr,fe.IconItalic=ga,fe.IconListView=iu,fe.IconMenu=ai,fe.IconOrderedList=ya,fe.IconRemove=ho,fe.IconService=su,fe.IconSort=au,fe.IconSortAsc=va,fe.IconSortDesc=ba,fe.IconSortNone=Ea,fe.IconTriangleExclamation=lu,fe.IconUnderline=Ca,fe.default=Lw,fe.getDisplayDate=Iw,fe.useModal=Dm,fe.useServerErrors=xw,fe.useToaster=Bm,fe.useValidation=Ow,fe.useZoom=Lm,fe.vBdTooltip=$m,Object.defineProperties(fe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
131
+ */const zn=new Map,wc={set(n,e,t){zn.has(n)||zn.set(n,new Map);const r=zn.get(n);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,t)},get(n,e){return zn.has(n)&&zn.get(n).get(e)||null},remove(n,e){if(!zn.has(n))return;const t=zn.get(n);t.delete(e),t.size===0&&zn.delete(n)}},v4=1e6,b4=1e3,kc="transitionend",Ip=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),n),E4=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),C4=n=>{do n+=Math.floor(Math.random()*v4);while(document.getElementById(n));return n},S4=n=>{if(!n)return 0;let{transitionDuration:e,transitionDelay:t}=window.getComputedStyle(n);const r=Number.parseFloat(e),o=Number.parseFloat(t);return!r&&!o?0:(e=e.split(",")[0],t=t.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(t))*b4)},Dp=n=>{n.dispatchEvent(new Event(kc))},vn=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),Hn=n=>vn(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(Ip(n)):null,ro=n=>{if(!vn(n)||n.getClientRects().length===0)return!1;const e=getComputedStyle(n).getPropertyValue("visibility")==="visible",t=n.closest("details:not([open])");if(!t)return e;if(t!==n){const r=n.closest("summary");if(r&&r.parentNode!==t||r===null)return!1}return e},Un=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",Lp=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const e=n.getRootNode();return e instanceof ShadowRoot?e:null}return n instanceof ShadowRoot?n:n.parentNode?Lp(n.parentNode):null},Ks=()=>{},Go=n=>{n.offsetHeight},Rp=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Tc=[],w4=n=>{document.readyState==="loading"?(Tc.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Tc)e()}),Tc.push(n)):n()},Bt=()=>document.documentElement.dir==="rtl",$t=n=>{w4(()=>{const e=Rp();if(e){const t=n.NAME,r=e.fn[t];e.fn[t]=n.jQueryInterface,e.fn[t].Constructor=n,e.fn[t].noConflict=()=>(e.fn[t]=r,n.jQueryInterface)}})},Ct=(n,e=[],t=n)=>typeof n=="function"?n(...e):t,Bp=(n,e,t=!0)=>{if(!t){Ct(n);return}const r=5,o=S4(e)+r;let i=!1;const s=({target:l})=>{l===e&&(i=!0,e.removeEventListener(kc,s),Ct(n))};e.addEventListener(kc,s),setTimeout(()=>{i||Dp(e)},o)},Ac=(n,e,t,r)=>{const o=n.length;let i=n.indexOf(e);return i===-1?!t&&r?n[o-1]:n[0]:(i+=t?1:-1,r&&(i=(i+o)%o),n[Math.max(0,Math.min(i,o-1))])},k4=/[^.]*(?=\..*)\.|.*/,T4=/\..*/,A4=/::\d+$/,xc={};let $p=1;const Pp={mouseenter:"mouseover",mouseleave:"mouseout"},x4=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Fp(n,e){return e&&`${e}::${$p++}`||n.uidEvent||$p++}function Vp(n){const e=Fp(n);return n.uidEvent=e,xc[e]=xc[e]||{},xc[e]}function O4(n,e){return function t(r){return Mc(r,{delegateTarget:n}),t.oneOff&&ie.off(n,r.type,e),e.apply(n,[r])}}function M4(n,e,t){return function r(o){const i=n.querySelectorAll(e);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const l of i)if(l===s)return Mc(o,{delegateTarget:s}),r.oneOff&&ie.off(n,o.type,e,t),t.apply(s,[o])}}function zp(n,e,t=null){return Object.values(n).find(r=>r.callable===e&&r.delegationSelector===t)}function Hp(n,e,t){const r=typeof e=="string",o=r?t:e||t;let i=jp(n);return x4.has(i)||(i=n),[r,o,i]}function Up(n,e,t,r,o){if(typeof e!="string"||!n)return;let[i,s,l]=Hp(e,t,r);e in Pp&&(s=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(s));const a=Vp(n),c=a[l]||(a[l]={}),u=zp(c,s,i?t:null);if(u){u.oneOff=u.oneOff&&o;return}const f=Fp(s,e.replace(k4,"")),h=i?M4(n,t,s):O4(n,s);h.delegationSelector=i?t:null,h.callable=s,h.oneOff=o,h.uidEvent=f,c[f]=h,n.addEventListener(l,h,i)}function Oc(n,e,t,r,o){const i=zp(e[t],r,o);i&&(n.removeEventListener(t,i,!!o),delete e[t][i.uidEvent])}function N4(n,e,t,r){const o=e[t]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&Oc(n,e,t,s.callable,s.delegationSelector)}function jp(n){return n=n.replace(T4,""),Pp[n]||n}const ie={on(n,e,t,r){Up(n,e,t,r,!1)},one(n,e,t,r){Up(n,e,t,r,!0)},off(n,e,t,r){if(typeof e!="string"||!n)return;const[o,i,s]=Hp(e,t,r),l=s!==e,a=Vp(n),c=a[s]||{},u=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(c).length)return;Oc(n,a,s,i,o?t:null);return}if(u)for(const f of Object.keys(a))N4(n,a,f,e.slice(1));for(const[f,h]of Object.entries(c)){const p=f.replace(A4,"");(!l||e.includes(p))&&Oc(n,a,s,h.callable,h.delegationSelector)}},trigger(n,e,t){if(typeof e!="string"||!n)return null;const r=Rp(),o=jp(e),i=e!==o;let s=null,l=!0,a=!0,c=!1;i&&r&&(s=r.Event(e,t),r(n).trigger(s),l=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),c=s.isDefaultPrevented());const u=Mc(new Event(e,{bubbles:l,cancelable:!0}),t);return c&&u.preventDefault(),a&&n.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function Mc(n,e={}){for(const[t,r]of Object.entries(e))try{n[t]=r}catch{Object.defineProperty(n,t,{configurable:!0,get(){return r}})}return n}function Wp(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function Nc(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const bn={setDataAttribute(n,e,t){n.setAttribute(`data-bs-${Nc(e)}`,t)},removeDataAttribute(n,e){n.removeAttribute(`data-bs-${Nc(e)}`)},getDataAttributes(n){if(!n)return{};const e={},t=Object.keys(n.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of t){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),e[o]=Wp(n.dataset[r])}return e},getDataAttribute(n,e){return Wp(n.getAttribute(`data-bs-${Nc(e)}`))}};class Jo{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const r=vn(t)?bn.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...vn(t)?bn.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,o]of Object.entries(t)){const i=e[r],s=vn(i)?"element":E4(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const _4="5.3.0";class Jt extends Jo{constructor(e,t){super(),e=Hn(e),e&&(this._element=e,this._config=this._getConfig(t),wc.set(this._element,this.constructor.DATA_KEY,this))}dispose(){wc.remove(this._element,this.constructor.DATA_KEY),ie.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){Bp(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return wc.get(Hn(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return _4}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const _c=n=>{let e=n.getAttribute("data-bs-target");if(!e||e==="#"){let t=n.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?t.trim():null}return Ip(e)},ke={find(n,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,n))},findOne(n,e=document.documentElement){return Element.prototype.querySelector.call(e,n)},children(n,e){return[].concat(...n.children).filter(t=>t.matches(e))},parents(n,e){const t=[];let r=n.parentNode.closest(e);for(;r;)t.push(r),r=r.parentNode.closest(e);return t},prev(n,e){let t=n.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(n,e){let t=n.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(n){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,n).filter(t=>!Un(t)&&ro(t))},getSelectorFromElement(n){const e=_c(n);return e&&ke.findOne(e)?e:null},getElementFromSelector(n){const e=_c(n);return e?ke.findOne(e):null},getMultipleElementsFromSelector(n){const e=_c(n);return e?ke.find(e):[]}},Ys=(n,e="hide")=>{const t=`click.dismiss${n.EVENT_KEY}`,r=n.NAME;ie.on(document,t,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Un(this))return;const i=ke.getElementFromSelector(this)||this.closest(`.${r}`);n.getOrCreateInstance(i)[e]()})},I4="alert",Kp=".bs.alert",D4=`close${Kp}`,L4=`closed${Kp}`,R4="fade",B4="show";class Gs extends Jt{static get NAME(){return I4}close(){if(ie.trigger(this._element,D4).defaultPrevented)return;this._element.classList.remove(B4);const t=this._element.classList.contains(R4);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),ie.trigger(this._element,L4),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Gs.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Ys(Gs,"close"),$t(Gs);const $4="button",P4=".bs.button",F4=".data-api",V4="active",Yp='[data-bs-toggle="button"]',z4=`click${P4}${F4}`;class Js extends Jt{static get NAME(){return $4}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(V4))}static jQueryInterface(e){return this.each(function(){const t=Js.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}ie.on(document,z4,Yp,n=>{n.preventDefault();const e=n.target.closest(Yp);Js.getOrCreateInstance(e).toggle()}),$t(Js);const H4="swipe",oo=".bs.swipe",U4=`touchstart${oo}`,j4=`touchmove${oo}`,W4=`touchend${oo}`,K4=`pointerdown${oo}`,Y4=`pointerup${oo}`,G4="touch",J4="pen",Z4="pointer-event",X4=40,Q4={endCallback:null,leftCallback:null,rightCallback:null},q4={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Zs extends Jo{constructor(e,t){super(),this._element=e,!(!e||!Zs.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Q4}static get DefaultType(){return q4}static get NAME(){return H4}dispose(){ie.off(this._element,oo)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Ct(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=X4)return;const t=e/this._deltaX;this._deltaX=0,t&&Ct(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ie.on(this._element,K4,e=>this._start(e)),ie.on(this._element,Y4,e=>this._end(e)),this._element.classList.add(Z4)):(ie.on(this._element,U4,e=>this._start(e)),ie.on(this._element,j4,e=>this._move(e)),ie.on(this._element,W4,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===J4||e.pointerType===G4)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const e6="carousel",jn=".bs.carousel",Gp=".data-api",t6="ArrowLeft",n6="ArrowRight",r6=500,Zo="next",io="prev",so="left",Xs="right",o6=`slide${jn}`,Ic=`slid${jn}`,i6=`keydown${jn}`,s6=`mouseenter${jn}`,a6=`mouseleave${jn}`,l6=`dragstart${jn}`,c6=`load${jn}${Gp}`,u6=`click${jn}${Gp}`,Jp="carousel",Qs="active",d6="slide",f6="carousel-item-end",h6="carousel-item-start",p6="carousel-item-next",m6="carousel-item-prev",Zp=".active",Xp=".carousel-item",g6=Zp+Xp,y6=".carousel-item img",v6=".carousel-indicators",b6="[data-bs-slide], [data-bs-slide-to]",E6='[data-bs-ride="carousel"]',C6={[t6]:Xs,[n6]:so},S6={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},w6={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Xo extends Jt{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ke.findOne(v6,this._element),this._addEventListeners(),this._config.ride===Jp&&this.cycle()}static get Default(){return S6}static get DefaultType(){return w6}static get NAME(){return e6}next(){this._slide(Zo)}nextWhenVisible(){!document.hidden&&ro(this._element)&&this.next()}prev(){this._slide(io)}pause(){this._isSliding&&Dp(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){ie.one(this._element,Ic,()=>this.cycle());return}this.cycle()}}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){ie.one(this._element,Ic,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?Zo:io;this._slide(o,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&ie.on(this._element,i6,e=>this._keydown(e)),this._config.pause==="hover"&&(ie.on(this._element,s6,()=>this.pause()),ie.on(this._element,a6,()=>this._maybeEnableCycle())),this._config.touch&&Zs.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of ke.find(y6,this._element))ie.on(r,l6,o=>o.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(so)),rightCallback:()=>this._slide(this._directionToOrder(Xs)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),r6+this._config.interval))}};this._swipeHelper=new Zs(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=C6[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=ke.findOne(Zp,this._indicatorsElement);t.classList.remove(Qs),t.removeAttribute("aria-current");const r=ke.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(Qs),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const r=this._getActive(),o=e===Zo,i=t||Ac(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),l=p=>ie.trigger(this._element,p,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(l(o6).defaultPrevented||!r||!i)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=o?h6:f6,f=o?p6:m6;i.classList.add(f),Go(i),r.classList.add(u),i.classList.add(u);const h=()=>{i.classList.remove(u,f),i.classList.add(Qs),r.classList.remove(Qs,f,u),this._isSliding=!1,l(Ic)};this._queueCallback(h,r,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(d6)}_getActive(){return ke.findOne(g6,this._element)}_getItems(){return ke.find(Xp,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Bt()?e===so?io:Zo:e===so?Zo:io}_orderToDirection(e){return Bt()?e===io?so:Xs:e===io?Xs:so}static jQueryInterface(e){return this.each(function(){const t=Xo.getOrCreateInstance(this,e);if(typeof e=="number"){t.to(e);return}if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ie.on(document,u6,b6,function(n){const e=ke.getElementFromSelector(this);if(!e||!e.classList.contains(Jp))return;n.preventDefault();const t=Xo.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){t.to(r),t._maybeEnableCycle();return}if(bn.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()}),ie.on(window,c6,()=>{const n=ke.find(E6);for(const e of n)Xo.getOrCreateInstance(e)}),$t(Xo);const k6="collapse",Qo=".bs.collapse",T6=".data-api",A6=`show${Qo}`,x6=`shown${Qo}`,O6=`hide${Qo}`,M6=`hidden${Qo}`,N6=`click${Qo}${T6}`,Dc="show",ao="collapse",qs="collapsing",_6="collapsed",I6=`:scope .${ao} .${ao}`,D6="collapse-horizontal",L6="width",R6="height",B6=".collapse.show, .collapse.collapsing",Lc='[data-bs-toggle="collapse"]',$6={parent:null,toggle:!0},P6={parent:"(null|element)",toggle:"boolean"};class qo extends Jt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=ke.find(Lc);for(const o of r){const i=ke.getSelectorFromElement(o),s=ke.find(i).filter(l=>l===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return $6}static get DefaultType(){return P6}static get NAME(){return k6}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(B6).filter(l=>l!==this._element).map(l=>qo.getOrCreateInstance(l,{toggle:!1}))),e.length&&e[0]._isTransitioning||ie.trigger(this._element,A6).defaultPrevented)return;for(const l of e)l.hide();const r=this._getDimension();this._element.classList.remove(ao),this._element.classList.add(qs),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(qs),this._element.classList.add(ao,Dc),this._element.style[r]="",ie.trigger(this._element,x6)},s=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||ie.trigger(this._element,O6).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Go(this._element),this._element.classList.add(qs),this._element.classList.remove(ao,Dc);for(const o of this._triggerArray){const i=ke.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(qs),this._element.classList.add(ao),ie.trigger(this._element,M6)};this._element.style[t]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Dc)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Hn(e.parent),e}_getDimension(){return this._element.classList.contains(D6)?L6:R6}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Lc);for(const t of e){const r=ke.getElementFromSelector(t);r&&this._addAriaAndCollapsedClass([t],this._isShown(r))}}_getFirstLevelChildren(e){const t=ke.find(I6,this._config.parent);return ke.find(e,this._config.parent).filter(r=>!t.includes(r))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const r of e)r.classList.toggle(_6,!t),r.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return typeof e=="string"&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const r=qo.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ie.on(document,N6,Lc,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const e of ke.getMultipleElementsFromSelector(this))qo.getOrCreateInstance(e,{toggle:!1}).toggle()}),$t(qo);const Qp="dropdown",vr=".bs.dropdown",Rc=".data-api",F6="Escape",qp="Tab",V6="ArrowUp",em="ArrowDown",z6=2,H6=`hide${vr}`,U6=`hidden${vr}`,j6=`show${vr}`,W6=`shown${vr}`,tm=`click${vr}${Rc}`,nm=`keydown${vr}${Rc}`,K6=`keyup${vr}${Rc}`,lo="show",Y6="dropup",G6="dropend",J6="dropstart",Z6="dropup-center",X6="dropdown-center",br='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Q6=`${br}.${lo}`,ea=".dropdown-menu",q6=".navbar",eC=".navbar-nav",tC=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",nC=Bt()?"top-end":"top-start",rC=Bt()?"top-start":"top-end",oC=Bt()?"bottom-end":"bottom-start",iC=Bt()?"bottom-start":"bottom-end",sC=Bt()?"left-start":"right-start",aC=Bt()?"right-start":"left-start",lC="top",cC="bottom",uC={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},dC={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class ln extends Jt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=ke.next(this._element,ea)[0]||ke.prev(this._element,ea)[0]||ke.findOne(ea,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return uC}static get DefaultType(){return dC}static get NAME(){return Qp}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Un(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!ie.trigger(this._element,j6,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(eC))for(const r of[].concat(...document.body.children))ie.on(r,"mouseover",Ks);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(lo),this._element.classList.add(lo),ie.trigger(this._element,W6,e)}}hide(){if(Un(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!ie.trigger(this._element,H6,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))ie.off(r,"mouseover",Ks);this._popper&&this._popper.destroy(),this._menu.classList.remove(lo),this._element.classList.remove(lo),this._element.setAttribute("aria-expanded","false"),bn.removeDataAttribute(this._menu,"popper"),ie.trigger(this._element,U6,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!vn(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Qp.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Bh>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:vn(this._config.reference)?e=Hn(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=rs(e,this._menu,t)}_isShown(){return this._menu.classList.contains(lo)}_getPlacement(){const e=this._parent;if(e.classList.contains(G6))return sC;if(e.classList.contains(J6))return aC;if(e.classList.contains(Z6))return lC;if(e.classList.contains(X6))return cC;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(Y6)?t?rC:nC:t?iC:oC}_detectNavbar(){return this._element.closest(q6)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(bn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Ct(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const r=ke.find(tC,this._menu).filter(o=>ro(o));r.length&&Ac(r,t,e===em,!r.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=ln.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===z6||e.type==="keyup"&&e.key!==qp)return;const t=ke.find(Q6);for(const r of t){const o=ln.getInstance(r);if(!o||o._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(o._menu);if(i.includes(o._element)||o._config.autoClose==="inside"&&!s||o._config.autoClose==="outside"&&s||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===qp||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const l={relatedTarget:o._element};e.type==="click"&&(l.clickEvent=e),o._completeHide(l)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),r=e.key===F6,o=[V6,em].includes(e.key);if(!o&&!r||t&&!r)return;e.preventDefault();const i=this.matches(br)?this:ke.prev(this,br)[0]||ke.next(this,br)[0]||ke.findOne(br,e.delegateTarget.parentNode),s=ln.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}ie.on(document,nm,br,ln.dataApiKeydownHandler),ie.on(document,nm,ea,ln.dataApiKeydownHandler),ie.on(document,tm,ln.clearMenus),ie.on(document,K6,ln.clearMenus),ie.on(document,tm,br,function(n){n.preventDefault(),ln.getOrCreateInstance(this).toggle()}),$t(ln);const rm="backdrop",fC="fade",om="show",im=`mousedown.bs.${rm}`,hC={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},pC={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class sm extends Jo{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return hC}static get DefaultType(){return pC}static get NAME(){return rm}show(e){if(!this._config.isVisible){Ct(e);return}this._append();const t=this._getElement();this._config.isAnimated&&Go(t),t.classList.add(om),this._emulateAnimation(()=>{Ct(e)})}hide(e){if(!this._config.isVisible){Ct(e);return}this._getElement().classList.remove(om),this._emulateAnimation(()=>{this.dispose(),Ct(e)})}dispose(){this._isAppended&&(ie.off(this._element,im),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(fC),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Hn(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),ie.on(e,im,()=>{Ct(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Bp(e,this._getElement(),this._config.isAnimated)}}const mC="focustrap",ta=".bs.focustrap",gC=`focusin${ta}`,yC=`keydown.tab${ta}`,vC="Tab",bC="forward",am="backward",EC={autofocus:!0,trapElement:null},CC={autofocus:"boolean",trapElement:"element"};class lm extends Jo{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return EC}static get DefaultType(){return CC}static get NAME(){return mC}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ie.off(document,ta),ie.on(document,gC,e=>this._handleFocusin(e)),ie.on(document,yC,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ie.off(document,ta))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const r=ke.focusableChildren(t);r.length===0?t.focus():this._lastTabNavDirection===am?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===vC&&(this._lastTabNavDirection=e.shiftKey?am:bC)}}const cm=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",um=".sticky-top",na="padding-right",dm="margin-right";class Bc{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,na,t=>t+e),this._setElementAttributes(cm,na,t=>t+e),this._setElementAttributes(um,dm,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,na),this._resetElementAttributes(cm,na),this._resetElementAttributes(um,dm)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const o=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+o)return;this._saveInitialAttribute(s,t);const l=window.getComputedStyle(s).getPropertyValue(t);s.style.setProperty(t,`${r(Number.parseFloat(l))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&bn.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){const r=o=>{const i=bn.getDataAttribute(o,t);if(i===null){o.style.removeProperty(t);return}bn.removeDataAttribute(o,t),o.style.setProperty(t,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,t){if(vn(e)){t(e);return}for(const r of ke.find(e,this._element))t(r)}}const SC="modal",Pt=".bs.modal",wC=".data-api",kC="Escape",TC=`hide${Pt}`,AC=`hidePrevented${Pt}`,fm=`hidden${Pt}`,hm=`show${Pt}`,xC=`shown${Pt}`,OC=`resize${Pt}`,MC=`click.dismiss${Pt}`,NC=`mousedown.dismiss${Pt}`,_C=`keydown.dismiss${Pt}`,IC=`click${Pt}${wC}`,pm="modal-open",DC="fade",mm="show",$c="modal-static",LC=".modal.show",RC=".modal-dialog",BC=".modal-body",$C='[data-bs-toggle="modal"]',PC={backdrop:!0,focus:!0,keyboard:!0},FC={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Wn extends Jt{constructor(e,t){super(e,t),this._dialog=ke.findOne(RC,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Bc,this._addEventListeners()}static get Default(){return PC}static get DefaultType(){return FC}static get NAME(){return SC}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||ie.trigger(this._element,hm,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(pm),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||ie.trigger(this._element,TC).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(mm),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){ie.off(window,Pt),ie.off(this._dialog,Pt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new sm({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new lm({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=ke.findOne(BC,this._dialog);t&&(t.scrollTop=0),Go(this._element),this._element.classList.add(mm);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ie.trigger(this._element,xC,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){ie.on(this._element,_C,e=>{if(e.key===kC){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),ie.on(window,OC,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ie.on(this._element,NC,e=>{ie.one(this._element,MC,t=>{if(!(this._element!==e.target||this._element!==t.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(pm),this._resetAdjustments(),this._scrollBar.reset(),ie.trigger(this._element,fm)})}_isAnimated(){return this._element.classList.contains(DC)}_triggerBackdropTransition(){if(ie.trigger(this._element,AC).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains($c)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add($c),this._queueCallback(()=>{this._element.classList.remove($c),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),r=t>0;if(r&&!e){const o=Bt()?"paddingLeft":"paddingRight";this._element.style[o]=`${t}px`}if(!r&&e){const o=Bt()?"paddingRight":"paddingLeft";this._element.style[o]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const r=Wn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](t)}})}}ie.on(document,IC,$C,function(n){const e=ke.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),ie.one(e,hm,o=>{o.defaultPrevented||ie.one(e,fm,()=>{ro(this)&&this.focus()})});const t=ke.findOne(LC);t&&Wn.getInstance(t).hide(),Wn.getOrCreateInstance(e).toggle(this)}),Ys(Wn),$t(Wn);const VC="offcanvas",En=".bs.offcanvas",gm=".data-api",zC=`load${En}${gm}`,HC="Escape",ym="show",vm="showing",bm="hiding",UC="offcanvas-backdrop",Em=".offcanvas.show",jC=`show${En}`,WC=`shown${En}`,KC=`hide${En}`,Cm=`hidePrevented${En}`,Sm=`hidden${En}`,YC=`resize${En}`,GC=`click${En}${gm}`,JC=`keydown.dismiss${En}`,ZC='[data-bs-toggle="offcanvas"]',XC={backdrop:!0,keyboard:!0,scroll:!1},QC={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Kn extends Jt{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return XC}static get DefaultType(){return QC}static get NAME(){return VC}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||ie.trigger(this._element,jC,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Bc().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(vm);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(ym),this._element.classList.remove(vm),ie.trigger(this._element,WC,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||ie.trigger(this._element,KC).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(bm),this._backdrop.hide();const t=()=>{this._element.classList.remove(ym,bm),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Bc().reset(),ie.trigger(this._element,Sm)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){ie.trigger(this._element,Cm);return}this.hide()},t=!!this._config.backdrop;return new sm({className:UC,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new lm({trapElement:this._element})}_addEventListeners(){ie.on(this._element,JC,e=>{if(e.key===HC){if(this._config.keyboard){this.hide();return}ie.trigger(this._element,Cm)}})}static jQueryInterface(e){return this.each(function(){const t=Kn.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}ie.on(document,GC,ZC,function(n){const e=ke.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Un(this))return;ie.one(e,Sm,()=>{ro(this)&&this.focus()});const t=ke.findOne(Em);t&&t!==e&&Kn.getInstance(t).hide(),Kn.getOrCreateInstance(e).toggle(this)}),ie.on(window,zC,()=>{for(const n of ke.find(Em))Kn.getOrCreateInstance(n).show()}),ie.on(window,YC,()=>{for(const n of ke.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&Kn.getOrCreateInstance(n).hide()}),Ys(Kn),$t(Kn);const wm={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},qC=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),eS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,tS=(n,e)=>{const t=n.nodeName.toLowerCase();return e.includes(t)?qC.has(t)?!!eS.test(n.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(t))};function nS(n,e,t){if(!n.length)return n;if(t&&typeof t=="function")return t(n);const o=new window.DOMParser().parseFromString(n,"text/html"),i=[].concat(...o.body.querySelectorAll("*"));for(const s of i){const l=s.nodeName.toLowerCase();if(!Object.keys(e).includes(l)){s.remove();continue}const a=[].concat(...s.attributes),c=[].concat(e["*"]||[],e[l]||[]);for(const u of a)tS(u,c)||s.removeAttribute(u.nodeName)}return o.body.innerHTML}const rS="TemplateFactory",oS={allowList:wm,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},iS={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},sS={entry:"(string|element|function|null)",selector:"(string|element)"};class aS extends Jo{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return oS}static get DefaultType(){return iS}static get NAME(){return rS}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[o,i]of Object.entries(this._config.content))this._setContent(e,i,o);const t=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&t.classList.add(...r.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,r]of Object.entries(e))super._typeCheckConfig({selector:t,entry:r},sS)}_setContent(e,t,r){const o=ke.findOne(r,e);if(o){if(t=this._resolvePossibleFunction(t),!t){o.remove();return}if(vn(t)){this._putElementInTemplate(Hn(t),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(t);return}o.textContent=t}}_maybeSanitize(e){return this._config.sanitize?nS(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Ct(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}const lS="tooltip",cS=new Set(["sanitize","allowList","sanitizeFn"]),Pc="fade",uS="modal",ra="show",dS=".tooltip-inner",km=`.${uS}`,Tm="hide.bs.modal",ei="hover",Fc="focus",fS="click",hS="manual",pS="hide",mS="hidden",gS="show",yS="shown",vS="inserted",bS="click",ES="focusin",CS="focusout",SS="mouseenter",wS="mouseleave",kS={AUTO:"auto",TOP:"top",RIGHT:Bt()?"left":"right",BOTTOM:"bottom",LEFT:Bt()?"right":"left"},TS={allowList:wm,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},AS={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Er extends Jt{constructor(e,t){if(typeof Bh>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return TS}static get DefaultType(){return AS}static get NAME(){return lS}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),ie.off(this._element.closest(km),Tm,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=ie.trigger(this._element,this.constructor.eventName(gS)),r=(Lp(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(o),ie.trigger(this._element,this.constructor.eventName(vS))),this._popper=this._createPopper(o),o.classList.add(ra),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))ie.on(l,"mouseover",Ks);const s=()=>{ie.trigger(this._element,this.constructor.eventName(yS)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||ie.trigger(this._element,this.constructor.eventName(pS)).defaultPrevented)return;if(this._getTipElement().classList.remove(ra),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))ie.off(o,"mouseover",Ks);this._activeTrigger[fS]=!1,this._activeTrigger[Fc]=!1,this._activeTrigger[ei]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ie.trigger(this._element,this.constructor.eventName(mS)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Pc,ra),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=C4(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(Pc),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new aS({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[dS]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Pc)}_isShown(){return this.tip&&this.tip.classList.contains(ra)}_createPopper(e){const t=Ct(this._config.placement,[this,e,this._element]),r=kS[t.toUpperCase()];return rs(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Ct(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...t,...Ct(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")ie.on(this._element,this.constructor.eventName(bS),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(t!==hS){const r=t===ei?this.constructor.eventName(SS):this.constructor.eventName(ES),o=t===ei?this.constructor.eventName(wS):this.constructor.eventName(CS);ie.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?Fc:ei]=!0,s._enter()}),ie.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?Fc:ei]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ie.on(this._element.closest(km),Tm,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=bn.getDataAttributes(this._element);for(const r of Object.keys(t))cS.has(r)&&delete t[r];return e={...t,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Hn(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,r]of Object.entries(this._config))this.constructor.Default[t]!==r&&(e[t]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=Er.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}$t(Er);const xS="popover",OS=".popover-header",MS=".popover-body",NS={...Er.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},_S={...Er.DefaultType,content:"(null|string|element|function)"};class Vc extends Er{static get Default(){return NS}static get DefaultType(){return _S}static get NAME(){return xS}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[OS]:this._getTitle(),[MS]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=Vc.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}$t(Vc);const IS="scrollspy",zc=".bs.scrollspy",DS=".data-api",LS=`activate${zc}`,Am=`click${zc}`,RS=`load${zc}${DS}`,BS="dropdown-item",co="active",$S='[data-bs-spy="scroll"]',Hc="[href]",PS=".nav, .list-group",xm=".nav-link",FS=`${xm}, .nav-item > ${xm}, .list-group-item`,VS=".dropdown",zS=".dropdown-toggle",HS={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},US={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class oa extends Jt{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return HS}static get DefaultType(){return US}static get NAME(){return IS}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Hn(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(ie.off(this._config.target,Am),ie.on(this._config.target,Am,Hc,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const r=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=s=>this._targetLinks.get(`#${s.target.id}`),r=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(t(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(s));continue}const l=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&l){if(r(s),!o)return;continue}!i&&!l&&r(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=ke.find(Hc,this._config.target);for(const t of e){if(!t.hash||Un(t))continue;const r=ke.findOne(decodeURI(t.hash),this._element);ro(r)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(co),this._activateParents(e),ie.trigger(this._element,LS,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(BS)){ke.findOne(zS,e.closest(VS)).classList.add(co);return}for(const t of ke.parents(e,PS))for(const r of ke.prev(t,FS))r.classList.add(co)}_clearActiveClass(e){e.classList.remove(co);const t=ke.find(`${Hc}.${co}`,e);for(const r of t)r.classList.remove(co)}static jQueryInterface(e){return this.each(function(){const t=oa.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ie.on(window,RS,()=>{for(const n of ke.find($S))oa.getOrCreateInstance(n)}),$t(oa);const jS="tab",Cr=".bs.tab",WS=`hide${Cr}`,KS=`hidden${Cr}`,YS=`show${Cr}`,GS=`shown${Cr}`,JS=`click${Cr}`,ZS=`keydown${Cr}`,XS=`load${Cr}`,QS="ArrowLeft",Om="ArrowRight",qS="ArrowUp",Mm="ArrowDown",Sr="active",Nm="fade",Uc="show",ew="dropdown",tw=".dropdown-toggle",nw=".dropdown-menu",jc=":not(.dropdown-toggle)",rw='.list-group, .nav, [role="tablist"]',ow=".nav-item, .list-group-item",iw=`.nav-link${jc}, .list-group-item${jc}, [role="tab"]${jc}`,_m='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Wc=`${iw}, ${_m}`,sw=`.${Sr}[data-bs-toggle="tab"], .${Sr}[data-bs-toggle="pill"], .${Sr}[data-bs-toggle="list"]`;class uo extends Jt{constructor(e){super(e),this._parent=this._element.closest(rw),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ie.on(this._element,ZS,t=>this._keydown(t)))}static get NAME(){return jS}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?ie.trigger(t,WS,{relatedTarget:e}):null;ie.trigger(e,YS,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(Sr),this._activate(ke.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(Uc);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),ie.trigger(e,GS,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(Nm))}_deactivate(e,t){if(!e)return;e.classList.remove(Sr),e.blur(),this._deactivate(ke.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(Uc);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),ie.trigger(e,KS,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(Nm))}_keydown(e){if(![QS,Om,qS,Mm].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[Om,Mm].includes(e.key),r=Ac(this._getChildren().filter(o=>!Un(o)),e.target,t,!0);r&&(r.focus({preventScroll:!0}),uo.getOrCreateInstance(r).show())}_getChildren(){return ke.find(Wc,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const r of t)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",t),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=ke.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const r=this._getOuterElement(e);if(!r.classList.contains(ew))return;const o=(i,s)=>{const l=ke.findOne(i,r);l&&l.classList.toggle(s,t)};o(tw,Sr),o(nw,Uc),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(Sr)}_getInnerElement(e){return e.matches(Wc)?e:ke.findOne(Wc,e)}_getOuterElement(e){return e.closest(ow)||e}static jQueryInterface(e){return this.each(function(){const t=uo.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ie.on(document,JS,_m,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Un(this)&&uo.getOrCreateInstance(this).show()}),ie.on(window,XS,()=>{for(const n of ke.find(sw))uo.getOrCreateInstance(n)}),$t(uo);const aw="toast",Yn=".bs.toast",lw=`mouseover${Yn}`,cw=`mouseout${Yn}`,uw=`focusin${Yn}`,dw=`focusout${Yn}`,fw=`hide${Yn}`,hw=`hidden${Yn}`,pw=`show${Yn}`,mw=`shown${Yn}`,gw="fade",Im="hide",ia="show",sa="showing",yw={animation:"boolean",autohide:"boolean",delay:"number"},vw={animation:!0,autohide:!0,delay:5e3};class ti extends Jt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return vw}static get DefaultType(){return yw}static get NAME(){return aw}show(){if(ie.trigger(this._element,pw).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(gw);const t=()=>{this._element.classList.remove(sa),ie.trigger(this._element,mw),this._maybeScheduleHide()};this._element.classList.remove(Im),Go(this._element),this._element.classList.add(ia,sa),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||ie.trigger(this._element,fw).defaultPrevented)return;const t=()=>{this._element.classList.add(Im),this._element.classList.remove(sa,ia),ie.trigger(this._element,hw)};this._element.classList.add(sa),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ia),super.dispose()}isShown(){return this._element.classList.contains(ia)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=t;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=t;break}}if(t){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){ie.on(this._element,lw,e=>this._onInteraction(e,!0)),ie.on(this._element,cw,e=>this._onInteraction(e,!1)),ie.on(this._element,uw,e=>this._onInteraction(e,!0)),ie.on(this._element,dw,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=ti.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Ys(ti),$t(ti);const Dm=n=>{const e=d.ref(null);return{showModal:()=>{const o=document.getElementById(n);o instanceof HTMLElement?(e.value=Wn.getOrCreateInstance(o),e.value.show()):console.error(`Modal '${n}' niet gevonden.`)},closeModal:()=>{if(e.value){e.value.hide();return}const o=document.getElementById(n);if(o instanceof HTMLElement){const i=Wn.getInstance(o);i&&i.hide()}}}};function Lm(){const n=d.ref(0),e=d.ref(!0),t=d.ref(null),r=d.ref({top:0,left:0,x:0,y:0}),o=d.computed(()=>n.value>0?`zoom-${n.value}`:"");return{zoom:n,mouseDown:e,imageHolderRef:t,pos:r,SetZoom:o,OnMouseDown:a=>{if(!t.value)return;r.value.left=t.value.scrollLeft,r.value.top=t.value.scrollTop;const c=document.querySelector("#image-attachment-modal"),u=document.querySelector(".image-preview-image-holder");c&&(c.style.cursor="grabbing"),u&&(u.style.cursor="grabbing"),r.value.x=a.clientX,r.value.y=a.clientY,e.value=!0},OnMouseMove:a=>{if(e.value){const c=a.clientX-r.value.x,u=a.clientY-r.value.y;t.value&&(t.value.scrollTop=r.value.top-u,t.value.scrollLeft=r.value.left-c)}},OnMouseUp:()=>{const a=document.querySelector("#image-attachment-modal"),c=document.querySelector(".image-preview-image-holder");a&&a.style&&(a.style.cursor=""),c&&c.style&&(c.style.cursor="grab"),e.value=!1}}}const bw=["src","alt"],Ew={key:0,class:"show-spinner"},Cw={class:"spinner-border text-primary",role:"status"},Sw={class:"visually-hidden"},ww=["href"],Rm=d.defineComponent({__name:"BDImageAttachmentModal",props:["loadingText","downloadText"],setup(n,{expose:e}){const t=n,{showModal:r}=Dm("image-attachment-modal"),{zoom:o,imageHolderRef:i,SetZoom:s,OnMouseDown:l,OnMouseMove:a,OnMouseUp:c}=Lm(),u=d.ref(!0),f=d.ref({BerichtId:0,Id:void 0,MimeType:null,Naam:We,altName:We,downloadUrl:We,fullImageUrl:We,previewUrl:We});e({Show:g=>{f.value=g,o.value=0,r()}});const p=()=>{u.value=!1},m=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:We,altName:We,downloadUrl:We,fullImageUrl:We,previewUrl:We}};return(g,y)=>(d.openBlock(),d.createBlock(Sc,{id:"image-attachment-modal",class:d.normalizeClass(d.unref(We)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:m},{default:d.withCtx(()=>[d.createElementVNode("div",{class:"image-preview-image-holder",ref_key:"imageHolderRef",ref:i,onMousedown:y[0]||(y[0]=(...C)=>d.unref(l)&&d.unref(l)(...C)),onMousemove:y[1]||(y[1]=(...C)=>d.unref(a)&&d.unref(a)(...C)),onMouseup:y[2]||(y[2]=(...C)=>d.unref(c)&&d.unref(c)(...C))},[f.value?(d.openBlock(),d.createElementBlock("img",{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:d.normalizeClass(["image-preview-modal",d.unref(s)]),onLoad:p,draggable:!1},null,42,bw)):d.createCommentVNode("",!0)],544),u.value?(d.openBlock(),d.createElementBlock("div",Ew,[d.createElementVNode("div",Cw,[d.createElementVNode("span",Sw,d.toDisplayString(t.loadingText),1)])])):d.createCommentVNode("",!0),d.createVNode(ka,{modelValue:d.unref(o),"onUpdate:modelValue":y[3]||(y[3]=C=>d.isRef(o)?o.value=C:null),class:"image-preview-bd-zoom-slider","max-value":4},null,8,["modelValue"]),d.createElementVNode("a",{href:f.value.downloadUrl},[d.createVNode(Qe,{variant:"primary",class:"download-image"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(t.downloadText),1)]),_:1})],8,ww)]),_:1},8,["class","title"]))}});function Bm(n=void 0){const e=l=>i("Succesvol",l,Or.SUCCESS),t=l=>i("Waarschuwing",l,Or.WARNING),r=l=>i("Informatie",l,Or.INFO),o=l=>i("Mislukt",l,Or.DANGER);function i(l,a,c){const u=`toast-${mu()}`,f={id:u,variant:c,title:l,text:a},h=document.querySelector(".toast-container");if(!h){console.error("There was no element with class 'toast-container' found, which is required for useToaster.");return}const p=d.h(xa,f),g=d.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const y=document.querySelector(`#${u}`);y&&(ti.getOrCreateInstance(y,n).show(),s(y))}function s(l){function a(f,h){f.forEach(p=>{if(p.attributeName!="class")return;const m=p.target;if(m.classList.contains("hide")){m.remove(),h.disconnect();return}})}const c=new MutationObserver(a),u={attributes:!0};c.observe(l,u)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:t,showDangerToast:o}}const kw=n=>Array.isArray(n)&&n.length>0,{showDangerToast:Tw}=Bm();function Aw(n){const e=d.ref(null),t=(a,c="serverErrors")=>{var f;let u=[];if(Array.isArray((f=a==null?void 0:a.response)==null?void 0:f.data)?u=a.response.data.filter(h=>pi(h.ErrorMessage)&&h.ErrorMessage!==We):a.response.data.ErrorMessage?u=[a.response.data.ErrorMessage]:u=null,pi(c))e.value=u;else if(Array.isArray(c)){let h=e.value;for(let p=0;p<c.length;p++)p===c.length-1?h[c[p]]=u:h=h[c[p]]}r(a),s(e)},r=a=>{const u=new URL(a.request.responseURL).pathname;if(u in n.error){const f=n.error[u];f&&Tw(f)}},o=d.ref(null),i=d.ref(""),s=a=>{kw(a.value)?o.value=a.value.map(c=>pi(c)?c:c.ErrorMessage):pi(a.value)&&(i.value=a.value)};function l(){e.value=null,o.value=null,i.value=We}return{serverErrors:e,errorMessages:o,errorMessageText:i,MapErrors:s,MapServerErrors:t,ResetServerErrors:l}}const xw=()=>({ResetValidation:t=>{for(const r in t.value)t.value[r].state=null},ValidationObjectIsValid:t=>{for(let r in t)if(t[r].state===!1)return!1;return!0}}),$m={mounted:n=>{new Er(n)}};var Pm={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Oa,function(){var t=1e3,r=6e4,o=36e5,i="millisecond",s="second",l="minute",a="hour",c="day",u="week",f="month",h="quarter",p="year",m="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(H){var F=["th","st","nd","rd"],$=H%100;return"["+H+(F[($-20)%10]||F[$]||F[0])+"]"}},k=function(H,F,$){var G=String(H);return!G||G.length>=F?H:""+Array(F+1-G.length).join($)+H},b={s:k,z:function(H){var F=-H.utcOffset(),$=Math.abs(F),G=Math.floor($/60),D=$%60;return(F<=0?"+":"-")+k(G,2,"0")+":"+k(D,2,"0")},m:function H(F,$){if(F.date()<$.date())return-H($,F);var G=12*($.year()-F.year())+($.month()-F.month()),D=F.clone().add(G,f),Q=$-D<0,te=F.clone().add(G+(Q?-1:1),f);return+(-(G+($-D)/(Q?D-te:te-D))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:f,y:p,w:u,d:c,D:m,h:a,m:l,s,ms:i,Q:h}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},M="en",T={};T[M]=S;var z="$isDayjsObject",U=function(H){return H instanceof V||!(!H||!H[z])},j=function H(F,$,G){var D;if(!F)return M;if(typeof F=="string"){var Q=F.toLowerCase();T[Q]&&(D=Q),$&&(T[Q]=$,D=Q);var te=F.split("-");if(!D&&te.length>1)return H(te[0])}else{var ce=F.name;T[ce]=F,D=ce}return!G&&D&&(M=D),D||!G&&M},P=function(H,F){if(U(H))return H.clone();var $=typeof F=="object"?F:{};return $.date=H,$.args=arguments,new V($)},L=b;L.l=j,L.i=U,L.w=function(H,F){return P(H,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var V=function(){function H($){this.$L=j($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[z]=!0}var F=H.prototype;return F.parse=function($){this.$d=function(G){var D=G.date,Q=G.utc;if(D===null)return new Date(NaN);if(L.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var te=D.match(y);if(te){var ce=te[2]-1||0,me=(te[7]||"0").substring(0,3);return Q?new Date(Date.UTC(te[1],ce,te[3]||1,te[4]||0,te[5]||0,te[6]||0,me)):new Date(te[1],ce,te[3]||1,te[4]||0,te[5]||0,te[6]||0,me)}}return new Date(D)}($),this.init()},F.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},F.$utils=function(){return L},F.isValid=function(){return this.$d.toString()!==g},F.isSame=function($,G){var D=P($);return this.startOf(G)<=D&&D<=this.endOf(G)},F.isAfter=function($,G){return P($)<this.startOf(G)},F.isBefore=function($,G){return this.endOf(G)<P($)},F.$g=function($,G,D){return L.u($)?this[G]:this.set(D,$)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function($,G){var D=this,Q=!!L.u(G)||G,te=L.p($),ce=function(O,w){var x=L.w(D.$u?Date.UTC(D.$y,w,O):new Date(D.$y,w,O),D);return Q?x:x.endOf(c)},me=function(O,w){return L.w(D.toDate()[O].apply(D.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(w)),D)},ge=this.$W,Ce=this.$M,we=this.$D,Te="set"+(this.$u?"UTC":"");switch(te){case p:return Q?ce(1,0):ce(31,11);case f:return Q?ce(1,Ce):ce(0,Ce+1);case u:var ve=this.$locale().weekStart||0,A=(ge<ve?ge+7:ge)-ve;return ce(Q?we-A:we+(6-A),Ce);case c:case m:return me(Te+"Hours",0);case a:return me(Te+"Minutes",1);case l:return me(Te+"Seconds",2);case s:return me(Te+"Milliseconds",3);default:return this.clone()}},F.endOf=function($){return this.startOf($,!1)},F.$set=function($,G){var D,Q=L.p($),te="set"+(this.$u?"UTC":""),ce=(D={},D[c]=te+"Date",D[m]=te+"Date",D[f]=te+"Month",D[p]=te+"FullYear",D[a]=te+"Hours",D[l]=te+"Minutes",D[s]=te+"Seconds",D[i]=te+"Milliseconds",D)[Q],me=Q===c?this.$D+(G-this.$W):G;if(Q===f||Q===p){var ge=this.clone().set(m,1);ge.$d[ce](me),ge.init(),this.$d=ge.set(m,Math.min(this.$D,ge.daysInMonth())).$d}else ce&&this.$d[ce](me);return this.init(),this},F.set=function($,G){return this.clone().$set($,G)},F.get=function($){return this[L.p($)]()},F.add=function($,G){var D,Q=this;$=Number($);var te=L.p(G),ce=function(Ce){var we=P(Q);return L.w(we.date(we.date()+Math.round(Ce*$)),Q)};if(te===f)return this.set(f,this.$M+$);if(te===p)return this.set(p,this.$y+$);if(te===c)return ce(1);if(te===u)return ce(7);var me=(D={},D[l]=r,D[a]=o,D[s]=t,D)[te]||1,ge=this.$d.getTime()+$*me;return L.w(ge,this)},F.subtract=function($,G){return this.add(-1*$,G)},F.format=function($){var G=this,D=this.$locale();if(!this.isValid())return D.invalidDate||g;var Q=$||"YYYY-MM-DDTHH:mm:ssZ",te=L.z(this),ce=this.$H,me=this.$m,ge=this.$M,Ce=D.weekdays,we=D.months,Te=D.meridiem,ve=function(w,x,v,E){return w&&(w[x]||w(G,Q))||v[x].slice(0,E)},A=function(w){return L.s(ce%12||12,w,"0")},O=Te||function(w,x,v){var E=w<12?"AM":"PM";return v?E.toLowerCase():E};return Q.replace(C,function(w,x){return x||function(v){switch(v){case"YY":return String(G.$y).slice(-2);case"YYYY":return L.s(G.$y,4,"0");case"M":return ge+1;case"MM":return L.s(ge+1,2,"0");case"MMM":return ve(D.monthsShort,ge,we,3);case"MMMM":return ve(we,ge);case"D":return G.$D;case"DD":return L.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return ve(D.weekdaysMin,G.$W,Ce,2);case"ddd":return ve(D.weekdaysShort,G.$W,Ce,3);case"dddd":return Ce[G.$W];case"H":return String(ce);case"HH":return L.s(ce,2,"0");case"h":return A(1);case"hh":return A(2);case"a":return O(ce,me,!0);case"A":return O(ce,me,!1);case"m":return String(me);case"mm":return L.s(me,2,"0");case"s":return String(G.$s);case"ss":return L.s(G.$s,2,"0");case"SSS":return L.s(G.$ms,3,"0");case"Z":return te}return null}(w)||te.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function($,G,D){var Q,te=this,ce=L.p(G),me=P($),ge=(me.utcOffset()-this.utcOffset())*r,Ce=this-me,we=function(){return L.m(te,me)};switch(ce){case p:Q=we()/12;break;case f:Q=we();break;case h:Q=we()/3;break;case u:Q=(Ce-ge)/6048e5;break;case c:Q=(Ce-ge)/864e5;break;case a:Q=Ce/o;break;case l:Q=Ce/r;break;case s:Q=Ce/t;break;default:Q=Ce}return D?Q:L.a(Q)},F.daysInMonth=function(){return this.endOf(f).$D},F.$locale=function(){return T[this.$L]},F.locale=function($,G){if(!$)return this.$L;var D=this.clone(),Q=j($,G,!0);return Q&&(D.$L=Q),D},F.clone=function(){return L.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},H}(),W=V.prototype;return P.prototype=W,[["$ms",i],["$s",s],["$m",l],["$H",a],["$W",c],["$M",f],["$y",p],["$D",m]].forEach(function(H){W[H[1]]=function(F){return this.$g(F,H[0],H[1])}}),P.extend=function(H,F){return H.$i||(H(F,V,P),H.$i=!0),P},P.locale=j,P.isDayjs=U,P.unix=function(H){return P(1e3*H)},P.en=T[M],P.Ls=T,P.p={},P})})(Pm);var Fm=Pm.exports;const aa=Ma(Fm);var Ow={exports:{}};(function(n,e){(function(t,r){n.exports=r(Fm)})(Oa,function(t){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=r(t),i={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(s){return"["+s+(s===1||s===8||s>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return o.default.locale(i,null,!0),i})})(Ow);var Vm={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Oa,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,s=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,a={},c=function(y){return(y=+y)+(y>68?1900:2e3)},u=function(y){return function(C){this[y]=+C}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var S=C.match(/([+-]|\d\d)/g),k=60*S[1]+(+S[2]||0);return k===0?0:S[0]==="+"?-k:k}(y)}],h=function(y){var C=a[y];return C&&(C.indexOf?C:C.s.concat(C.f))},p=function(y,C){var S,k=a.meridiem;if(k){for(var b=1;b<=24;b+=1)if(y.indexOf(k(b,0,C))>-1){S=b>12;break}}else S=y===(C?"pm":"PM");return S},m={A:[l,function(y){this.afternoon=p(y,!1)}],a:[l,function(y){this.afternoon=p(y,!0)}],Q:[o,function(y){this.month=3*(y-1)+1}],S:[o,function(y){this.milliseconds=100*+y}],SS:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[i,u("day")],Do:[l,function(y){var C=a.ordinal,S=y.match(/\d+/);if(this.day=S[0],C)for(var k=1;k<=31;k+=1)C(k).replace(/\[|\]/g,"")===y&&(this.day=k)}],w:[s,u("week")],ww:[i,u("week")],M:[s,u("month")],MM:[i,u("month")],MMM:[l,function(y){var C=h("months"),S=(h("monthsShort")||C.map(function(k){return k.slice(0,3)})).indexOf(y)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[l,function(y){var C=h("months").indexOf(y)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(y){this.year=c(y)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(y){var C,S;C=y,S=a&&a.formats;for(var k=(y=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,L,V){var W=V&&V.toUpperCase();return L||S[V]||t[V]||S[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(H,F,$){return F||$.slice(1)})})).match(r),b=k.length,M=0;M<b;M+=1){var T=k[M],z=m[T],U=z&&z[0],j=z&&z[1];k[M]=j?{regex:U,parser:j}:T.replace(/^\[|\]$/g,"")}return function(P){for(var L={},V=0,W=0;V<b;V+=1){var H=k[V];if(typeof H=="string")W+=H.length;else{var F=H.regex,$=H.parser,G=P.slice(W),D=F.exec(G)[0];$.call(L,D),P=P.replace(D,"")}}return function(Q){var te=Q.afternoon;if(te!==void 0){var ce=Q.hours;te?ce<12&&(Q.hours+=12):ce===12&&(Q.hours=0),delete Q.afternoon}}(L),L}}return function(y,C,S){S.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var k=C.prototype,b=k.parse;k.parse=function(M){var T=M.date,z=M.utc,U=M.args;this.$u=z;var j=U[1];if(typeof j=="string"){var P=U[2]===!0,L=U[3]===!0,V=P||L,W=U[2];L&&(W=U[2]),a=this.$locale(),!P&&W&&(a=S.Ls[W]),this.$d=function(G,D,Q,te){try{if(["x","X"].indexOf(D)>-1)return new Date((D==="X"?1e3:1)*G);var ce=g(D)(G),me=ce.year,ge=ce.month,Ce=ce.day,we=ce.hours,Te=ce.minutes,ve=ce.seconds,A=ce.milliseconds,O=ce.zone,w=ce.week,x=new Date,v=Ce||(me||ge?1:x.getDate()),E=me||x.getFullYear(),_=0;me&&!ge||(_=ge>0?ge-1:x.getMonth());var I,R=we||0,B=Te||0,K=ve||0,J=A||0;return O?new Date(Date.UTC(E,_,v,R,B,K,J+60*O.offset*1e3)):Q?new Date(Date.UTC(E,_,v,R,B,K,J)):(I=new Date(E,_,v,R,B,K,J),w&&(I=te(I).week(w).toDate()),I)}catch{return new Date("")}}(T,j,z,S),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),V&&T!=this.format(j)&&(this.$d=new Date("")),a={}}else if(j instanceof Array)for(var H=j.length,F=1;F<=H;F+=1){U[1]=j[F-1];var $=S.apply(this,U);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}F===H&&(this.$d=new Date(""))}else b.call(this,M)}}})})(Vm);var Mw=Vm.exports;const Nw=Ma(Mw);aa.extend(Nw),aa.locale("nl");function _w(n,e=aa().startOf("day")){const t="DD-MM-YYYY",r=aa(n,t);if(r.isSame(e))return"vandaag";const i=e.subtract(1,"day");if(r.isSame(i))return"gister";const l=e.subtract(2,"day");if(r.isSame(l))return"eergister";const c=e.subtract(7,"day");if(r.isAfter(c)){const h="dddd";return r.format(h)}if(r.year()==e.year()){const h="D MMM";return r.format(h)}return r.format(t)}const Iw={PRIMARY:"primary",SECONDARY:"secondary",COLLEAGUE:"colleague",DANGER:"danger",OUT_PRIMARY:"outline-primary",OUT_PRIMARY_DARK:"outline-primary-dark",OUT_TERTIARY:"outline-tertiary",OUT_LINK:"link",LIGHT:"light",DARK:"dark",REMOVE:"remove"},Qe=d.defineComponent({__name:"BDButton",props:{size:{default:lt.MD},variant:{default:Iw.PRIMARY},blockElement:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{},target:{},text:{},rel:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=d.computed(()=>({btn:!0,[`btn-${t.variant}`]:t.variant,[`btn-${t.size}`]:!0,"d-grid":t.blockElement&&typeof t.to=="string",[`${t.class}`]:t.class,disabled:t.disabled})),o=d.computed(()=>t.to?Ar:"button"),i=d.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),s=l=>{e("click",l)};return(l,a)=>(d.openBlock(),d.createBlock(d.resolveDynamicComponent(o.value),d.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:d.withCtx(()=>[d.renderSlot(l.$slots,"default",{},()=>[d.createTextVNode(d.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),Dw={install:n=>{n.component("BDCol",Zn),n.component("BDContainer",ni),n.component("BDRow",Xn),n.component("BDButton",Qe),n.component("BDLogo",Sa),n.component("BDLink",Ar),n.component("BDDropdownItem",gi),n.component("BDDropdown",Cc),n.component("BDAlert",ci),n.component("BDProfileImage",po),n.component("BDZoomslider",ka),n.component("BDCard",fi),n.component("BDCollapsableCard",gu),n.component("BDFormInput",go),n.component("BDInputGroup",Cu),n.component("BDFormInvalidFeedback",hi),n.component("BDBadge",Su),n.component("BDForm",wu),n.component("BDPagination",ku),n.component("BDDropzone",Nu),n.component("BDMarkdownEditor",Ap),n.component("BDModal",Sc),n.component("BDFormSelect",Tu),n.component("BDUser",xp),n.component("BDArticle",xu),n.component("BDFormCheckbox",Au),n.component("BDToast",xa),n.component("BDAttachmentPreviewList",Us),n.component("BDImageAttachmentPreviewList",js),n.component("BDHeader",_p),n.component("BDMobileMenu",Ec),n.component("BDChatCloud",Op),n.component("BDTable",Mp),n.component("BDChangePasswordTemplate",Np),n.component("BDPill",mi),n.component("BDImageAttachmentModal",Rm),n.component("IconAcademy",Qc),n.component("IconArrowDown",qc),n.component("IconArrowUp",eu),n.component("IconAttachment",Qn),n.component("IconBold",ca),n.component("IconBulletList",ua),n.component("IconCalendar",da),n.component("IconCalendar",da),n.component("IconCardView",tu),n.component("IconCaretDown",fa),n.component("IconCaretLeft",ha),n.component("IconCaretRight",pa),n.component("IconCheck",kr),n.component("IconClose",ri),n.component("IconComment",ig),n.component("IconDownloadImage",oi),n.component("IconDownloadImage",oi),n.component("IconEdit",nu),n.component("IconError",ii),n.component("IconEyeShow",ru),n.component("IconEyeSlash",ou),n.component("IconFile",ma),n.component("IconHyperlink",si),n.component("IconInfo",Tr),n.component("IconItalic",ga),n.component("IconListView",iu),n.component("IconMenu",ai),n.component("IconMenu",ai),n.component("IconOrderedList",ya),n.component("IconRemove",ho),n.component("IconService",su),n.component("IconSort",au),n.component("IconSortAsc",va),n.component("IconSortDesc",ba),n.component("IconSortNone",Ea),n.component("IconTriangleExclamation",lu),n.component("IconUnderline",Ca),n.component("IconContactPerson",cu),n.directive("vBDTooltip",$m)}};fe.BDAlert=ci,fe.BDArticle=xu,fe.BDAttachmentPreviewList=Us,fe.BDBadge=Su,fe.BDButton=Qe,fe.BDCard=fi,fe.BDChangePasswordTemplate=Np,fe.BDChatCloud=Op,fe.BDCol=Zn,fe.BDCollapsableCard=gu,fe.BDContainer=ni,fe.BDDropdown=Cc,fe.BDDropdownItem=gi,fe.BDDropzone=Nu,fe.BDForm=wu,fe.BDFormCheckbox=Au,fe.BDFormInput=go,fe.BDFormInvalidFeedback=hi,fe.BDFormSelect=Tu,fe.BDHeader=_p,fe.BDImageAttachmentModal=Rm,fe.BDImageAttachmentPreviewList=js,fe.BDInputGroup=Cu,fe.BDLink=Ar,fe.BDLogo=Sa,fe.BDMarkdownEditor=Ap,fe.BDMobileMenu=Ec,fe.BDModal=Sc,fe.BDPagination=ku,fe.BDPill=mi,fe.BDProfileImage=po,fe.BDRow=Xn,fe.BDTable=Mp,fe.BDToast=xa,fe.BDUser=xp,fe.BDZoomslider=ka,fe.IconAcademy=Qc,fe.IconArrowDown=qc,fe.IconArrowUp=eu,fe.IconAttachment=Qn,fe.IconBold=ca,fe.IconBulletList=ua,fe.IconCalendar=da,fe.IconCardView=tu,fe.IconCaretDown=fa,fe.IconCaretLeft=ha,fe.IconCaretRight=pa,fe.IconCheck=kr,fe.IconClose=ri,fe.IconContactPerson=cu,fe.IconDownloadImage=oi,fe.IconEdit=nu,fe.IconError=ii,fe.IconEyeShow=ru,fe.IconEyeSlash=ou,fe.IconFile=ma,fe.IconHyperlink=si,fe.IconInfo=Tr,fe.IconItalic=ga,fe.IconListView=iu,fe.IconMenu=ai,fe.IconOrderedList=ya,fe.IconRemove=ho,fe.IconService=su,fe.IconSort=au,fe.IconSortAsc=va,fe.IconSortDesc=ba,fe.IconSortNone=Ea,fe.IconTriangleExclamation=lu,fe.IconUnderline=Ca,fe.default=Dw,fe.getDisplayDate=_w,fe.useModal=Dm,fe.useServerErrors=Aw,fe.useToaster=Bm,fe.useValidation=xw,fe.useZoom=Lm,fe.vBdTooltip=$m,Object.defineProperties(fe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});