@beterdichtbij/component-library 0.58.2 → 0.58.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1296,7 +1296,7 @@ ${t.slice(l+2)}`,d+=1;else break}t.push({indent:l,number:parseInt(s,10),content:
1296
1296
  `)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(NM,this.editor.getAttributes(PM)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=EO({find:FM,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)&&(e=EO({find:FM,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(PM)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),LM=/^\s*(\[([( |x])?\])\s$/,RM=RO.create({name:`taskItem`,addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:`taskList`,a11y:void 0}},content(){return this.options.nested?`paragraph block*`:`paragraph+`},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute(`data-checked`);return t===``||t===`true`},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return[`li`,VE(this.options.HTMLAttributes,t,{"data-type":this.name}),[`label`,[`input`,{type:`checkbox`,checked:e.attrs.checked?`checked`:null}],[`span`]],[`div`,0]]},parseMarkdown:(e,t)=>{let n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode(`paragraph`,{},t.parseInline(e.tokens))):e.text?n.push(t.createNode(`paragraph`,{},[t.createNode(`text`,{text:e.text})])):n.push(t.createNode(`paragraph`,{},[])),e.nestedTokens&&e.nestedTokens.length>0){let r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode(`taskItem`,{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>IO(e,t,`- [${e.attrs?.checked?`x`:` `}] `),addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{let i=document.createElement(`li`),a=document.createElement(`label`),o=document.createElement(`span`),s=document.createElement(`input`),c=document.createElement(`div`),l=e=>{var t;s.ariaLabel=((t=this.options.a11y)?.checkboxLabel)?.call(t,e,s.checked)||`Task item checkbox for ${e.textContent||`empty task item`}`};l(e),a.contentEditable=`false`,s.type=`checkbox`,s.addEventListener(`mousedown`,e=>e.preventDefault()),s.addEventListener(`change`,t=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}let{checked:i}=t.target;r.isEditable&&typeof n==`function`&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=n();if(typeof t!=`number`)return!1;let r=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...r?.attrs,checked:i}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,i)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{i.setAttribute(e,t)}),i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,a.append(s,o),i.append(a,c),Object.entries(t).forEach(([e,t])=>{i.setAttribute(e,t)});let u=new Set(Object.keys(t));return{dom:i,contentDOM:c,update:e=>{if(e.type!==this.type)return!1;i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,l(e);let t=r.extensionManager.attributes,n=HE(e,t),a=new Set(Object.keys(n)),o=this.options.HTMLAttributes;return u.forEach(e=>{a.has(e)||(e in o?i.setAttribute(e,o[e]):i.removeAttribute(e))}),Object.entries(n).forEach(([e,t])=>{t==null?e in o?i.setAttribute(e,o[e]):i.removeAttribute(e):i.setAttribute(e,t)}),u=a,!0}}}},addInputRules(){return[EO({find:LM,type:this.type,getAttributes:e=>({checked:e[e.length-1]===`x`})})]}}),zM=RO.create({name:`taskList`,addOptions(){return{itemTypeName:`taskItem`,HTMLAttributes:{}}},group:`block list`,content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return[`ul`,VE(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode(`taskList`,{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
1297
1297
  `):``,markdownTokenizer:{name:`taskList`,level:`block`,start(e){let t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/)?.index;return t===void 0?-1:t},tokenize(e,t,n){let r=e=>{let t=FO(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);return t?[{type:`taskList`,raw:t.raw,items:t.items}]:n.blockTokens(e)},i=FO(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(i)return{type:`taskList`,raw:i.raw,items:i.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});lO.create({name:`listKit`,addExtensions(){let e=[];return this.options.bulletList!==!1&&e.push(hM.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(gM.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(DM.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(IM.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(RM.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(zM.configure(this.options.taskList)),e}});var BM=gM,VM=hM,HM=IM,UM=RO.create({name:`hardBreak`,markdownTokenName:`br`,addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:`inline`,selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:`br`}]},renderHTML({HTMLAttributes:e}){return[`br`,VE(this.options.HTMLAttributes,e)]},renderText(){return`
1298
1298
  `},renderMarkdown:()=>`
1299
- `,parseMarkdown:()=>({type:`hardBreak`}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:a}=this.options,{splittableMarks:o}=r.extensionManager,s=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&s&&a){let t=s.filter(e=>o.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});function WM(e){let{char:t,allowSpaces:n,allowToIncludeChar:r,allowedPrefixes:i,startOfLine:a,$position:o}=e,s=n&&!r,c=DO(t),l=RegExp(`\\s${c}$`),u=a?`^`:``,d=r?``:c,f=RegExp(s?`${u}${c}.*?(?=\\s${d}|$)`:`${u}(?:^)?${c}[^\\s${d}]*`,`gm`),p=o.nodeBefore?.isText&&o.nodeBefore.text;if(!p)return null;let m=o.pos-p.length,h=Array.from(p.matchAll(f)).pop();if(!h||h.input===void 0||h.index===void 0)return null;let g=h.input.slice(Math.max(0,h.index-1),h.index),_=RegExp(`^[${i?.join(``)}\0]?$`).test(g);if(i!==null&&!_)return null;let v=m+h.index,y=v+h[0].length;return s&&l.test(p.slice(y-1,y+1))&&(h[0]+=` `,y+=1),v<o.pos&&y>=o.pos?{range:{from:v,to:y},query:h[0].slice(t.length),text:h[0]}:null}var GM=new Ly(`suggestion`);function KM({pluginKey:e=GM,editor:t,char:n=`@`,allowSpaces:r=!1,allowToIncludeChar:i=!1,allowedPrefixes:a=[` `],startOfLine:o=!1,decorationTag:s=`span`,decorationClass:c=`suggestion`,decorationContent:l=``,decorationEmptyClass:u=`is-empty`,command:d=()=>null,items:f=()=>[],render:p=()=>({}),allow:m=()=>!0,findSuggestionMatch:h=WM,shouldShow:g}){let _,v=p?.(),y=()=>{let e=t.state.selection.$anchor.pos,{top:n,right:r,bottom:i,left:a}=t.view.coordsAtPos(e);try{return new DOMRect(a,n,r-a,i-n)}catch{return null}},b=(n,r)=>r?()=>{let r=e.getState(t.state)?.decorationId;return n.dom.querySelector(`[data-decoration-id="${r}"]`)?.getBoundingClientRect()||null}:y;function x(n,r){var i;try{let r=e.getState(n.state),a=r?.decorationId?n.dom.querySelector(`[data-decoration-id="${r.decorationId}"]`):null,o={editor:t,range:r?.range||{from:0,to:0},query:r?.query||null,text:r?.text||null,items:[],command:e=>d({editor:t,range:r?.range||{from:0,to:0},props:e}),decorationNode:a,clientRect:b(n,a)};(i=v?.onExit)==null||i.call(v,o)}catch{}let a=n.state.tr.setMeta(r,{exit:!0});n.dispatch(a)}let S=new Py({key:e,view(){return{update:async(e,n)=>{var r,i,a,o,s;let c=this.key?.getState(n),l=this.key?.getState(e.state),u=c.active&&l.active&&c.range.from!==l.range.from,p=!c.active&&l.active,m=c.active&&!l.active,h=!p&&!m&&c.query!==l.query,g=p||u&&h,y=h||u,x=m||u&&h;if(!g&&!y&&!x)return;let S=x&&!g?c:l,C=e.dom.querySelector(`[data-decoration-id="${S.decorationId}"]`);_={editor:t,range:S.range,query:S.query,text:S.text,items:[],command:e=>d({editor:t,range:S.range,props:e}),decorationNode:C,clientRect:b(e,C)},g&&((r=v?.onBeforeStart)==null||r.call(v,_)),y&&((i=v?.onBeforeUpdate)==null||i.call(v,_)),(y||g)&&(_.items=await f({editor:t,query:S.query})),x&&((a=v?.onExit)==null||a.call(v,_)),y&&((o=v?.onUpdate)==null||o.call(v,_)),g&&((s=v?.onStart)==null||s.call(v,_))},destroy:()=>{var e;_&&((e=v?.onExit)==null||e.call(v,_))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(s,c,l,u){let{isEditable:d}=t,{composing:f}=t.view,{selection:p}=s,{empty:_,from:v}=p,y={...c},b=s.getMeta(e);if(b&&b.exit)return y.active=!1,y.decorationId=null,y.range={from:0,to:0},y.query=null,y.text=null,y;if(y.composing=f,d&&(_||t.view.composing)){(v<c.range.from||v>c.range.to)&&!f&&!c.composing&&(y.active=!1);let e=h({char:n,allowSpaces:r,allowToIncludeChar:i,allowedPrefixes:a,startOfLine:o,$position:p.$from}),l=`id_${Math.floor(Math.random()*4294967295)}`;e&&m({editor:t,state:u,range:e.range,isActive:c.active})&&(!g||g({editor:t,range:e.range,query:e.query,text:e.text,transaction:s}))?(y.active=!0,y.decorationId=c.decorationId?c.decorationId:l,y.range=e.range,y.query=e.query,y.text=e.text):y.active=!1}else y.active=!1;return y.active||(y.decorationId=null,y.range={from:0,to:0},y.query=null,y.text=null),y}},props:{handleKeyDown(n,r){var i;let{active:a,range:o}=S.getState(n.state);if(!a)return!1;if(r.key===`Escape`||r.key===`Esc`){let a=S.getState(n.state),o=_?.decorationNode??null??(a?.decorationId?n.dom.querySelector(`[data-decoration-id="${a.decorationId}"]`):null);if((v?.onKeyDown)?.call(v,{view:n,event:r,range:a.range}))return!0;let s={editor:t,range:a.range,query:a.query,text:a.text,items:[],command:e=>d({editor:t,range:a.range,props:e}),decorationNode:o,clientRect:o?()=>o.getBoundingClientRect()||null:null};return(i=v?.onExit)==null||i.call(v,s),x(n,e),!0}return(v?.onKeyDown)?.call(v,{view:n,event:r,range:o})||!1},decorations(e){let{active:t,range:n,decorationId:r,query:i}=S.getState(e);if(!t)return null;let a=!i?.length,o=[c];return a&&o.push(u),lw.create(e.doc,[ow.inline(n.from,n.to,{nodeName:s,class:o.join(` `),"data-decoration-id":r,"data-decoration-content":l})])}}});return S}function qM({editor:e,overrideSuggestionOptions:t,extensionName:n,char:r=`@`}){return{editor:e,char:r,pluginKey:new Ly,command:({editor:e,range:t,props:i})=>{var a;(e.view.state.selection.$to.nodeAfter?.text)?.startsWith(` `)&&(t.to+=1),e.chain().focus().insertContentAt(t,[{type:n,attrs:{...i,mentionSuggestionChar:r}},{type:`text`,text:` `}]).run(),(a=e.view.dom.ownerDocument.defaultView?.getSelection())==null||a.collapseToEnd()},allow:({state:e,range:t})=>{let r=e.doc.resolve(t.from),i=e.schema.nodes[n];return!!r.parent.type.contentMatch.matchType(i)},...t}}function JM(e){return(e.options.suggestions.length?e.options.suggestions:[e.options.suggestion]).map(t=>qM({editor:e.editor,overrideSuggestionOptions:t,extensionName:e.name,char:t.char}))}function YM(e,t){let n=JM(e);return n.find(e=>e.char===t)||(n.length?n[0]:null)}var XM=RO.create({name:`mention`,priority:101,addOptions(){return{HTMLAttributes:{},renderText({node:e,suggestion:t}){return`${t?.char??`@`}${e.attrs.label??e.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:e,node:t,suggestion:n}){return[`span`,VE(this.HTMLAttributes,e.HTMLAttributes),`${n?.char??`@`}${t.attrs.label??t.attrs.id}`]},suggestions:[],suggestion:{}}},group:`inline`,inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:e=>e.getAttribute(`data-id`),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute(`data-label`),renderHTML:e=>e.label?{"data-label":e.label}:{}},mentionSuggestionChar:{default:`@`,parseHTML:e=>e.getAttribute(`data-mention-suggestion-char`),renderHTML:e=>({"data-mention-suggestion-char":e.mentionSuggestionChar})}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:e,HTMLAttributes:t}){let n=YM(this,e.attrs.mentionSuggestionChar);if(this.options.renderLabel!==void 0)return console.warn(`renderLabel is deprecated use renderText and renderHTML instead`),[`span`,VE({"data-type":this.name},this.options.HTMLAttributes,t),this.options.renderLabel({options:this.options,node:e,suggestion:n})];let r={...this.options};r.HTMLAttributes=VE({"data-type":this.name},this.options.HTMLAttributes,t);let i=this.options.renderHTML({options:r,node:e,suggestion:n});return typeof i==`string`?[`span`,VE({"data-type":this.name},this.options.HTMLAttributes,t),i]:i},...PO({nodeName:`mention`,name:`@`,selfClosing:!0,allowedAttributes:[`id`,`label`,{name:`mentionSuggestionChar`,skipIfDefault:`@`}],parseAttributes:e=>{let t={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g,r=n.exec(e);for(;r!==null;){let[,i,a,o]=r;t[i===`char`?`mentionSuggestionChar`:i]=a??o,r=n.exec(e)}return t},serializeAttributes:e=>Object.entries(e).filter(([,e])=>e!=null).map(([e,t])=>`${e===`mentionSuggestionChar`?`char`:e}="${t}"`).join(` `)}),renderText({node:e}){let t={options:this.options,node:e,suggestion:YM(this,e.attrs.mentionSuggestionChar)};return this.options.renderLabel===void 0?this.options.renderText(t):(console.warn(`renderLabel is deprecated use renderText and renderHTML instead`),this.options.renderLabel(t))},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:e,state:t})=>{let n=!1,{selection:r}=t,{empty:i,anchor:a}=r;if(!i)return!1;let o=new a_,s=0;return t.doc.nodesBetween(a-1,a,(e,t)=>{if(e.type.name===this.name)return n=!0,o=e,s=t,!1}),n&&e.insertText(this.options.deleteTriggerWithBackspace?``:o.attrs.mentionSuggestionChar,s,s+o.nodeSize),n})}},addProseMirrorPlugins(){return JM(this).map(KM)}}),ZM={class:`dropdown-menu show`},QM=[`onClick`],$M={__name:`BDPlaceholderList`,props:{items:Array,command:Function},setup(e,{expose:t}){let n=e,r=(0,u.ref)(0);(0,u.watch)(()=>n.items,()=>{r.value=0});let i=e=>{let t=n.items[e];t&&n.command(t)};return t({onKeyDown:({event:e})=>n.items?.length?e.key===`ArrowUp`?(r.value=(r.value+n.items.length-1)%n.items.length,!0):e.key===`ArrowDown`?(r.value=(r.value+1)%n.items.length,!0):e.key===`Enter`?(i(r.value),!0):!1:!1}),(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,ZM,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.items,(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`button`,{key:t,class:(0,u.normalizeClass)([`dropdown-item`,{active:t===r.value}]),onClick:e=>i(t)},(0,u.toDisplayString)(e.label),11,QM))),128))]))}},eN=(e=[],t)=>({items:({query:t})=>e.filter(e=>e.label.toLowerCase().includes(t.toLowerCase())),command:({editor:e,range:t,props:n})=>{e.chain().focus().deleteRange(t).insertContent(`{${n.id}}`).run()},render:()=>{let e=null,n=n=>{let r=n.clientRect?.(),i=t?.value;if(!r||!i||!e?.element)return;let a=i.getBoundingClientRect(),o=r.left-a.left+i.scrollLeft,s=r.bottom-a.top+i.scrollTop,c=e.element;c.classList.add(`placeholder-tokens-menu`),c.style.position=`absolute`,c.style.left=`${Math.round(o)}px`,c.style.top=`${Math.round(s)}px`};return{onStart:r=>{e=new WO($M,{props:r,editor:r.editor});let i=t?.value;i&&e.element&&i.appendChild(e.element),n(r)},onUpdate(t){e&&e.updateProps(t),n(t)},onKeyDown(t){return e?.ref?.onKeyDown?.(t)??!1},onExit(){e&&(e.destroy(),e.element?.remove())}}}}),tN={class:`popover bd-link-input-popover show bd-link-input-bottom`},nN={class:`popover-body`},rN={class:`form-label`},iN={key:0,class:`validation-text`},aN={class:`d-flex gap-2 mt-2`},oN=[`disabled`],sN=(0,u.defineComponent)({__name:`BDLinkInput`,props:{previousUrl:{}},emits:[`submit`,`cancel`],setup(e,{emit:t}){let n=e,r=t,i=(0,u.ref)(n.previousUrl??``),a=(0,u.computed)(()=>{if(!i.value)return!!n.previousUrl;if(i.value===n.previousUrl)return!1;let e=i.value.trim().toLowerCase();return e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`www.`)}),o=(0,u.computed)(()=>i.value&&i.value===n.previousUrl?`De URL is niet gewijzigd`:i.value&&!a.value?`De URL moet beginnen met http://, https:// of www.`:``),s=(0,u.computed)(()=>n.previousUrl?i.value?`Wijzigen`:`Verwijderen`:`Toevoegen`),c=()=>r(`submit`,i.value),l=()=>r(`cancel`);return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,tN,[t[2]||=(0,u.createElementVNode)(`div`,{class:`popover-header`},`Link beheren`,-1),(0,u.createElementVNode)(`div`,nN,[(0,u.createElementVNode)(`label`,rN,[t[1]||=(0,u.createTextVNode)(` URL: `,-1),(0,u.withDirectives)((0,u.createElementVNode)(`input`,{"onUpdate:modelValue":t[0]||=e=>i.value=e,type:`text`,class:`form-control`,placeholder:`https://www.example.com`},null,512),[[u.vModelText,i.value]]),o.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,iN,(0,u.toDisplayString)(o.value),1)):(0,u.createCommentVNode)(``,!0)]),(0,u.createElementVNode)(`div`,aN,[(0,u.createElementVNode)(`button`,{type:`button`,class:`btn btn-primary btn-sm`,disabled:!a.value,onClick:c},(0,u.toDisplayString)(s.value),9,oN),(0,u.createElementVNode)(`button`,{type:`button`,class:`btn btn-secondary btn-sm`,onClick:l},` Annuleren `)])])]))}}),cN={BASIC:`basic`,FULL:`full`,FORMAT:`format`},lN={class:`attachment-list`},uN={class:`attachment-link`},dN={key:1,class:`attachment-no-download`},fN=[`href`],pN=(0,u.defineComponent)({__name:`BDAttachmentPreviewList`,props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:[`delete`],setup(e,{emit:t}){let n=t,r=e=>{n(`delete`,e)};return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`ul`,lN,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.files,t=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{class:`attachment-list__item`,key:t.CorrelationId},[(0,u.createElementVNode)(`div`,uN,[e.showDelete?((0,u.openBlock)(),(0,u.createBlock)(g,{key:0,variant:`remove`,onClick:e=>r(t),"aria-label":`verwijder`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(pi))]),_:1},8,[`onClick`])):(0,u.createCommentVNode)(``,!0),e.noDownload?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,dN,[(0,u.createVNode)((0,u.unref)(re)),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(t.Naam.trim()),1)])):((0,u.openBlock)(),(0,u.createElementBlock)(`a`,{key:2,href:t.downloadUrl},[(0,u.createVNode)((0,u.unref)(re)),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(t.Naam.trim()),1)],8,fN))])]))),128))]))}}),mN={class:`attachment-list`},hN={class:`attachment`},gN=[`onClick`],_N=[`src`,`alt`],vN=[`onClick`],yN=[`href`],bN={class:`btn btn-light download-button-image`},xN=[`src`,`alt`],SN=(0,u.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(e,{emit:t}){let n=e,r=t,i=e=>{r(`delete`,e)},a=(e,t)=>{e.target&&e.target.className===`img-preview`&&r(`show`,t)};return(t,r)=>((0,u.openBlock)(),(0,u.createElementBlock)(`ul`,mN,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.files,t=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{class:`attachment-list__item`,key:t.CorrelationId},[(0,u.createElementVNode)(`div`,hN,[e.showDelete?((0,u.openBlock)(),(0,u.createBlock)(g,{key:0,variant:`remove`,"aria-label":`verwijder`,onClick:(0,u.withModifiers)(e=>i(t),[`prevent`])},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(pi))]),_:1},8,[`onClick`])):(0,u.createCommentVNode)(``,!0),n.noDownload?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:1,onClick:e=>a(e,t)},[(0,u.createElementVNode)(`img`,{src:t.previewUrl,class:`img-preview`,alt:t.altName,loading:`lazy`},null,8,_N)],8,gN)):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:2,onClick:e=>a(e,t)},[n.fastDownload?((0,u.openBlock)(),(0,u.createElementBlock)(`a`,{key:0,href:t.downloadUrl,class:`download-link`},[(0,u.createElementVNode)(`button`,bN,[(0,u.createVNode)((0,u.unref)(Ft))])],8,yN)):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`img`,{src:t.previewUrl,alt:t.altName,class:`img-preview`,loading:`lazy`},null,8,xN)],8,vN))])]))),128))]))}}),CN=e=>e?.map(e=>e.CorrelationId),wN=e=>e.Naam.toLowerCase().endsWith(`.png`)||e.Naam.toLowerCase().endsWith(`.jpg`)||e.Naam.toLowerCase().endsWith(`.jpeg`)||e.Naam.toLowerCase().endsWith(`.gif`),TN=(e,t)=>t.DownloadUrl?t.DownloadUrl:t.identifier?`${e}/Collega/api/Conversation/GetConversationAttachment?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:t.url?t.url:t.Id?`${e}/Portaal/DownloadBerichtBijlage/${t.Id}`:t.FileId?`${e}/Portaal/DownloadStandardMessageAttachment/${t.StandardAttachmentId}/${t.FileId}`:`${e}/Portaal/DownloadBerichtStagingBijlage/${t.CorrelationId}`,EN=(e,t)=>t.ThumbnailUrl?t.ThumbnailUrl:t.identifier?`${e}/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:t.url?t.url:t.Id?`${e}/Portaal/DownloadBerichtBijlageThumbnail/${t.Id}`:t.StandardAttachmentId||t.standardAttachmentId?`${e}/Portaal/DownloadStandardMessageAttachmentThumbnail/${t.StandardAttachmentId}/${t.FileId}`:`${e}/Portaal/DownloadBerichtStagingBijlageThumbnail/${t.CorrelationId}`,DN=(e,t)=>t.identifier?`${e}/Collega/api/Conversation/GetConversationAttachment?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:null,ON=(e,t)=>t?wN(e):!wN(e),kN=(e=``,t,n)=>{if(t!==void 0)return t.filter(e=>ON(e,n)).map(t=>{let n=typeof t.CorrelationId==`string`?t.CorrelationId:t.CorrelationId==null?``:t.CorrelationId.toString();return{downloadUrl:TN(e,t),previewUrl:EN(e,t),fullImageUrl:DN(e,t),altName:`${t.Naam}`,...t,CorrelationId:n}})},AN=`bottom`,jN=`right`,MN=`left`,NN=`auto`,PN=[`top`,AN,jN,MN],FN=`start`,IN=`clippingParents`,LN=`viewport`,RN=`popper`,zN=`reference`,BN=PN.reduce(function(e,t){return e.concat([t+`-`+FN,t+`-end`])},[]),VN=[].concat(PN,[NN]).reduce(function(e,t){return e.concat([t,t+`-`+FN,t+`-end`])},[]),HN=`beforeRead`,UN=`read`,WN=`afterRead`,GN=`beforeMain`,KN=`main`,qN=`afterMain`,JN=`beforeWrite`,YN=`write`,XN=`afterWrite`,ZN=[HN,UN,WN,GN,KN,qN,JN,YN,XN];function QN(e){return e?(e.nodeName||``).toLowerCase():null}function $N(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function eP(e){return e instanceof $N(e).Element||e instanceof Element}function tP(e){return e instanceof $N(e).HTMLElement||e instanceof HTMLElement}function nP(e){return typeof ShadowRoot>`u`?!1:e instanceof $N(e).ShadowRoot||e instanceof ShadowRoot}function rP(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!tP(i)||!QN(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function iP(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!tP(r)||!QN(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var aP={name:`applyStyles`,enabled:!0,phase:`write`,fn:rP,effect:iP,requires:[`computeStyles`]};function oP(e){return e.split(`-`)[0]}var sP=Math.max,cP=Math.min,lP=Math.round;function uP(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function dP(){return!/^((?!chrome|android).)*safari/i.test(uP())}function fP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&tP(e)&&(i=e.offsetWidth>0&&lP(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&lP(r.height)/e.offsetHeight||1);var o=(eP(e)?$N(e):window).visualViewport,s=!dP()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function pP(e){var t=fP(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function mP(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nP(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function hP(e){return $N(e).getComputedStyle(e)}function gP(e){return[`table`,`td`,`th`].indexOf(QN(e))>=0}function _P(e){return((eP(e)?e.ownerDocument:e.document)||window.document).documentElement}function vP(e){return QN(e)===`html`?e:e.assignedSlot||e.parentNode||(nP(e)?e.host:null)||_P(e)}function yP(e){return!tP(e)||hP(e).position===`fixed`?null:e.offsetParent}function bP(e){var t=/firefox/i.test(uP());if(/Trident/i.test(uP())&&tP(e)&&hP(e).position===`fixed`)return null;var n=vP(e);for(nP(n)&&(n=n.host);tP(n)&&[`html`,`body`].indexOf(QN(n))<0;){var r=hP(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function xP(e){for(var t=$N(e),n=yP(e);n&&gP(n)&&hP(n).position===`static`;)n=yP(n);return n&&(QN(n)===`html`||QN(n)===`body`&&hP(n).position===`static`)?t:n||bP(e)||t}function SP(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function CP(e,t,n){return sP(e,cP(t,n))}function wP(e,t,n){var r=CP(e,t,n);return r>n?n:r}function TP(){return{top:0,right:0,bottom:0,left:0}}function EP(e){return Object.assign({},TP(),e)}function DP(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var OP=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,EP(typeof e==`number`?DP(e,PN):e)};function kP(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=oP(n.placement),c=SP(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=OP(i.padding,n),d=pP(a),f=c===`y`?`top`:MN,p=c===`y`?AN:jN,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=xP(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=CP(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function AP(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||mP(t.elements.popper,r)&&(t.elements.arrow=r))}var jP={name:`arrow`,enabled:!0,phase:`main`,fn:kP,effect:AP,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function MP(e){return e.split(`-`)[1]}var NP={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function PP(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:lP(n*i)/i||0,y:lP(r*i)/i||0}}function FP(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=MN,b=`top`,x=window;if(l){var S=xP(n),C=`clientHeight`,w=`clientWidth`;if(S===$N(n)&&(S=_P(n),hP(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=AN;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=jN;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&NP),O=u===!0?PP({x:p,y:h},$N(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function IP(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:oP(t.placement),variation:MP(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,FP(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,FP(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var LP={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:IP,data:{}},RP={passive:!0};function zP(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=$N(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,RP)}),s&&c.addEventListener(`resize`,n.update,RP),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,RP)}),s&&c.removeEventListener(`resize`,n.update,RP)}}var BP={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:zP,data:{}},VP={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function HP(e){return e.replace(/left|right|bottom|top/g,function(e){return VP[e]})}var UP={start:`end`,end:`start`};function WP(e){return e.replace(/start|end/g,function(e){return UP[e]})}function GP(e){var t=$N(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function KP(e){return fP(_P(e)).left+GP(e).scrollLeft}function qP(e,t){var n=$N(e),r=_P(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=dP();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+KP(e),y:c}}function JP(e){var t=_P(e),n=GP(e),r=e.ownerDocument?.body,i=sP(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=sP(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+KP(e),s=-n.scrollTop;return hP(r||t).direction===`rtl`&&(o+=sP(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function YP(e){var t=hP(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function XP(e){return[`html`,`body`,`#document`].indexOf(QN(e))>=0?e.ownerDocument.body:tP(e)&&YP(e)?e:XP(vP(e))}function ZP(e,t){t===void 0&&(t=[]);var n=XP(e),r=n===e.ownerDocument?.body,i=$N(n),a=r?[i].concat(i.visualViewport||[],YP(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(ZP(vP(a)))}function QP(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $P(e,t){var n=fP(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function eF(e,t,n){return t===`viewport`?QP(qP(e,n)):eP(t)?$P(t,n):QP(JP(_P(e)))}function tF(e){var t=ZP(vP(e)),n=[`absolute`,`fixed`].indexOf(hP(e).position)>=0&&tP(e)?xP(e):e;return eP(n)?t.filter(function(e){return eP(e)&&mP(e,n)&&QN(e)!==`body`}):[]}function nF(e,t,n,r){var i=t===`clippingParents`?tF(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=eF(e,n,r);return t.top=sP(i.top,t.top),t.right=cP(i.right,t.right),t.bottom=cP(i.bottom,t.bottom),t.left=sP(i.left,t.left),t},eF(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function rF(e){var t=e.reference,n=e.element,r=e.placement,i=r?oP(r):null,a=r?MP(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case AN:c={x:o,y:t.y+t.height};break;case jN:c={x:t.x+t.width,y:s};break;case MN:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?SP(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case FN:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function iF(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?IN:s,l=n.rootBoundary,u=l===void 0?LN:l,d=n.elementContext,f=d===void 0?RN:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=EP(typeof g==`number`?DP(g,PN):g),v=f===`popper`?zN:RN,y=e.rects.popper,b=e.elements[m?v:f],x=nF(eP(b)?b:b.contextElement||_P(e.elements.popper),c,u,o),S=fP(e.elements.reference),C=rF({reference:S,element:y,strategy:`absolute`,placement:i}),w=QP(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function aF(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?VN:c,u=MP(r),d=u?s?BN:BN.filter(function(e){return MP(e)===u}):PN,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=iF(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[oP(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function oF(e){if(oP(e)===`auto`)return[];var t=HP(e);return[WP(e),t,WP(t)]}function sF(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,_=oP(g)===g,v=c||(_||!m?[HP(g)]:oF(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(oP(n)===`auto`?aF(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=oP(E),O=MP(E)===FN,k=[`top`,AN].indexOf(D)>=0,A=k?`width`:`height`,j=iF(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),M=k?O?jN:MN:O?AN:`top`;b[A]>x[A]&&(M=HP(M));var ee=HP(M),te=[];if(a&&te.push(j[D]<=0),s&&te.push(j[M]<=0,j[ee]<=0),te.every(function(e){return e})){w=E,C=!1;break}S.set(E,te)}if(C)for(var ne=m?3:1,re=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},ie=ne;ie>0&&re(ie)!==`break`;ie--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var cF={name:`flip`,enabled:!0,phase:`main`,fn:sF,requiresIfExists:[`offset`],data:{_skip:!1}};function lF(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function uF(e){return[`top`,jN,AN,MN].some(function(t){return e[t]>=0})}function dF(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=iF(t,{elementContext:`reference`}),s=iF(t,{altBoundary:!0}),c=lF(o,r),l=lF(s,i,a),u=uF(c),d=uF(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var fF={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:dF};function pF(e,t,n){var r=oP(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function mF(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=VN.reduce(function(e,n){return e[n]=pF(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var hF={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:mF};function gF(e){var t=e.state,n=e.name;t.modifiersData[n]=rF({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var _F={name:`popperOffsets`,enabled:!0,phase:`read`,fn:gF,data:{}};function vF(e){return e===`x`?`y`:`x`}function yF(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,g=iF(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=oP(t.placement),v=MP(t.placement),y=!v,b=SP(_),x=vF(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:MN,A=b===`y`?AN:jN,j=b===`y`?`height`:`width`,M=S[b],ee=M+g[k],te=M-g[A],ne=p?-w[j]/2:0,re=v===`start`?C[j]:w[j],ie=v===`start`?-w[j]:-C[j],ae=t.elements.arrow,oe=p&&ae?pP(ae):{width:0,height:0},N=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:TP(),se=N[k],ce=N[A],le=CP(0,C[j],oe[j]),ue=y?C[j]/2-ne-le-se-E.mainAxis:re-le-se-E.mainAxis,de=y?-C[j]/2+ne+le+ce+E.mainAxis:ie+le+ce+E.mainAxis,fe=t.elements.arrow&&xP(t.elements.arrow),pe=fe?b===`y`?fe.clientTop||0:fe.clientLeft||0:0,me=D?.[b]??0,he=M+ue-me-pe,ge=M+de-me,_e=CP(p?cP(ee,he):ee,M,p?sP(te,ge):te);S[b]=_e,O[b]=_e-M}if(s){var P=b===`x`?`top`:MN,ve=b===`x`?AN:jN,ye=S[x],be=x===`y`?`height`:`width`,xe=ye+g[P],Se=ye-g[ve],Ce=[`top`,MN].indexOf(_)!==-1,we=D?.[x]??0,Te=Ce?xe:ye-C[be]-w[be]-we+E.altAxis,Ee=Ce?ye+C[be]+w[be]-we-E.altAxis:Se,De=p&&Ce?wP(Te,ye,Ee):CP(p?Te:xe,ye,p?Ee:Se);S[x]=De,O[x]=De-ye}t.modifiersData[r]=O}}var bF={name:`preventOverflow`,enabled:!0,phase:`main`,fn:yF,requiresIfExists:[`offset`]};function xF(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function SF(e){return e===$N(e)||!tP(e)?GP(e):xF(e)}function CF(e){var t=e.getBoundingClientRect(),n=lP(t.width)/e.offsetWidth||1,r=lP(t.height)/e.offsetHeight||1;return n!==1||r!==1}function wF(e,t,n){n===void 0&&(n=!1);var r=tP(t),i=tP(t)&&CF(t),a=_P(t),o=fP(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((QN(t)!==`body`||YP(a))&&(s=SF(t)),tP(t)?(c=fP(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=KP(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function TF(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function EF(e){var t=TF(e);return ZN.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function DF(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function OF(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var kF={placement:`bottom`,modifiers:[],strategy:`absolute`};function AF(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function jF(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?kF:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},kF,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:eP(e)?ZP(e):e.contextElement?ZP(e.contextElement):[],popper:ZP(t)};var s=EF(OF([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(AF(t,n)){i.rects={reference:wF(t,xP(n),i.options.strategy===`fixed`),popper:pP(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:DF(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!AF(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var MF=jF(),NF=jF({defaultModifiers:[BP,_F,LP,aP]}),PF=jF({defaultModifiers:[BP,_F,LP,aP,hF,cF,bF,jP,fF]}),FF=s({afterMain:()=>qN,afterRead:()=>WN,afterWrite:()=>XN,applyStyles:()=>aP,arrow:()=>jP,auto:()=>NN,basePlacements:()=>PN,beforeMain:()=>GN,beforeRead:()=>HN,beforeWrite:()=>JN,bottom:()=>AN,clippingParents:()=>IN,computeStyles:()=>LP,createPopper:()=>PF,createPopperBase:()=>MF,createPopperLite:()=>NF,detectOverflow:()=>iF,end:()=>`end`,eventListeners:()=>BP,flip:()=>cF,hide:()=>fF,left:()=>MN,main:()=>KN,modifierPhases:()=>ZN,offset:()=>hF,placements:()=>VN,popper:()=>RN,popperGenerator:()=>jF,popperOffsets:()=>_F,preventOverflow:()=>bF,read:()=>UN,reference:()=>zN,right:()=>jN,start:()=>FN,top:()=>`top`,variationPlacements:()=>BN,viewport:()=>LN,write:()=>YN}),IF=new Map,LF={set(e,t,n){IF.has(e)||IF.set(e,new Map);let r=IF.get(e);if(!r.has(t)&&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(t,n)},get(e,t){return IF.has(e)&&IF.get(e).get(t)||null},remove(e,t){if(!IF.has(e))return;let n=IF.get(e);n.delete(t),n.size===0&&IF.delete(e)}},RF=1e6,zF=1e3,BF=`transitionend`,VF=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),HF=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),UF=e=>{do e+=Math.floor(Math.random()*RF);while(document.getElementById(e));return e},WF=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);return!Number.parseFloat(t)&&!Number.parseFloat(n)?0:(t=t.split(`,`)[0],n=n.split(`,`)[0],(Number.parseFloat(t)+Number.parseFloat(n))*zF)},GF=e=>{e.dispatchEvent(new Event(BF))},KF=e=>!e||typeof e!=`object`?!1:(e.jquery!==void 0&&(e=e[0]),e.nodeType!==void 0),qF=e=>KF(e)?e.jquery?e[0]:e:typeof e==`string`&&e.length>0?document.querySelector(VF(e)):null,JF=e=>{if(!KF(e)||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).getPropertyValue(`visibility`)===`visible`,n=e.closest(`details:not([open])`);if(!n)return t;if(n!==e){let t=e.closest(`summary`);if(t&&t.parentNode!==n||t===null)return!1}return t},YF=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains(`disabled`)?!0:e.disabled===void 0?e.hasAttribute(`disabled`)&&e.getAttribute(`disabled`)!==`false`:e.disabled,XF=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode==`function`){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?XF(e.parentNode):null},ZF=()=>{},QF=e=>{e.offsetHeight},$F=()=>window.jQuery&&!document.body.hasAttribute(`data-bs-no-jquery`)?window.jQuery:null,eI=[],tI=e=>{document.readyState===`loading`?(eI.length||document.addEventListener(`DOMContentLoaded`,()=>{for(let e of eI)e()}),eI.push(e)):e()},nI=()=>document.documentElement.dir===`rtl`,rI=e=>{tI(()=>{let t=$F();if(t){let n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},iI=(e,t=[],n=e)=>typeof e==`function`?e.call(...t):n,aI=(e,t,n=!0)=>{if(!n){iI(e);return}let r=WF(t)+5,i=!1,a=({target:n})=>{n===t&&(i=!0,t.removeEventListener(BF,a),iI(e))};t.addEventListener(BF,a),setTimeout(()=>{i||GF(t)},r)},oI=(e,t,n,r)=>{let i=e.length,a=e.indexOf(t);return a===-1?!n&&r?e[i-1]:e[0]:(a+=n?1:-1,r&&(a=(a+i)%i),e[Math.max(0,Math.min(a,i-1))])},sI=/[^.]*(?=\..*)\.|.*/,cI=/\..*/,lI=/::\d+$/,uI={},dI=1,fI={mouseenter:`mouseover`,mouseleave:`mouseout`},pI=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`.split(`.`));function mI(e,t){return t&&`${t}::${dI++}`||e.uidEvent||dI++}function hI(e){let t=mI(e);return e.uidEvent=t,uI[t]=uI[t]||{},uI[t]}function gI(e,t){return function n(r){return wI(r,{delegateTarget:e}),n.oneOff&&Q.off(e,r.type,t),t.apply(e,[r])}}function _I(e,t,n){return function r(i){let a=e.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let s of a)if(s===o)return wI(i,{delegateTarget:o}),r.oneOff&&Q.off(e,i.type,t,n),n.apply(o,[i])}}function vI(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function yI(e,t,n){let r=typeof t==`string`,i=r?n:t||n,a=CI(e);return pI.has(a)||(a=e),[r,i,a]}function bI(e,t,n,r,i){if(typeof t!=`string`||!e)return;let[a,o,s]=yI(t,n,r);t in fI&&(o=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(o));let c=hI(e),l=c[s]||(c[s]={}),u=vI(l,o,a?n:null);if(u){u.oneOff=u.oneOff&&i;return}let d=mI(o,t.replace(sI,``)),f=a?_I(e,n,o):gI(e,o);f.delegationSelector=a?n:null,f.callable=o,f.oneOff=i,f.uidEvent=d,l[d]=f,e.addEventListener(s,f,a)}function xI(e,t,n,r,i){let a=vI(t[n],r,i);a&&(e.removeEventListener(n,a,!!i),delete t[n][a.uidEvent])}function SI(e,t,n,r){let i=t[n]||{};for(let[a,o]of Object.entries(i))a.includes(r)&&xI(e,t,n,o.callable,o.delegationSelector)}function CI(e){return e=e.replace(cI,``),fI[e]||e}var Q={on(e,t,n,r){bI(e,t,n,r,!1)},one(e,t,n,r){bI(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!=`string`||!e)return;let[i,a,o]=yI(t,n,r),s=o!==t,c=hI(e),l=c[o]||{},u=t.startsWith(`.`);if(a!==void 0){if(!Object.keys(l).length)return;xI(e,c,o,a,i?n:null);return}if(u)for(let n of Object.keys(c))SI(e,c,n,t.slice(1));for(let[n,r]of Object.entries(l)){let i=n.replace(lI,``);(!s||t.includes(i))&&xI(e,c,o,r.callable,r.delegationSelector)}},trigger(e,t,n){if(typeof t!=`string`||!e)return null;let r=$F(),i=t!==CI(t),a=null,o=!0,s=!0,c=!1;i&&r&&(a=r.Event(t,n),r(e).trigger(a),o=!a.isPropagationStopped(),s=!a.isImmediatePropagationStopped(),c=a.isDefaultPrevented());let l=wI(new Event(t,{bubbles:o,cancelable:!0}),n);return c&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l}};function wI(e,t={}){for(let[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function TI(e){if(e===`true`)return!0;if(e===`false`)return!1;if(e===Number(e).toString())return Number(e);if(e===``||e===`null`)return null;if(typeof e!=`string`)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function EI(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var DI={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${EI(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${EI(t)}`)},getDataAttributes(e){if(!e)return{};let t={},n=Object.keys(e.dataset).filter(e=>e.startsWith(`bs`)&&!e.startsWith(`bsConfig`));for(let r of n){let n=r.replace(/^bs/,``);n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=TI(e.dataset[r])}return t},getDataAttribute(e,t){return TI(e.getAttribute(`data-bs-${EI(t)}`))}},OI=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw 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){let n=KF(t)?DI.getDataAttribute(t,`config`):{};return{...this.constructor.Default,...typeof n==`object`?n:{},...KF(t)?DI.getDataAttributes(t):{},...typeof e==`object`?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[n,r]of Object.entries(t)){let t=e[n],i=KF(t)?`element`:HF(t);if(!new RegExp(r).test(i))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${i}" but expected type "${r}".`)}}},kI=`5.3.8`,AI=class extends OI{constructor(e,t){super(),e=qF(e),e&&(this._element=e,this._config=this._getConfig(t),LF.set(this._element,this.constructor.DATA_KEY,this))}dispose(){LF.remove(this._element,this.constructor.DATA_KEY),Q.off(this._element,this.constructor.EVENT_KEY);for(let e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){aI(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return LF.get(qF(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==`object`?t:null)}static get VERSION(){return kI}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},jI=e=>{let t=e.getAttribute(`data-bs-target`);if(!t||t===`#`){let n=e.getAttribute(`href`);if(!n||!n.includes(`#`)&&!n.startsWith(`.`))return null;n.includes(`#`)&&!n.startsWith(`#`)&&(n=`#${n.split(`#`)[1]}`),t=n&&n!==`#`?n.trim():null}return t?t.split(`,`).map(e=>VF(e)).join(`,`):null},$={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){let n=[],r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){let t=[`a`,`button`,`input`,`textarea`,`select`,`details`,`[tabindex]`,`[contenteditable="true"]`].map(e=>`${e}:not([tabindex^="-"])`).join(`,`);return this.find(t,e).filter(e=>!YF(e)&&JF(e))},getSelectorFromElement(e){let t=jI(e);return t&&$.findOne(t)?t:null},getElementFromSelector(e){let t=jI(e);return t?$.findOne(t):null},getMultipleElementsFromSelector(e){let t=jI(e);return t?$.find(t):[]}},MI=(e,t=`hide`)=>{let n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;Q.on(document,n,`[data-bs-dismiss="${r}"]`,function(n){if([`A`,`AREA`].includes(this.tagName)&&n.preventDefault(),YF(this))return;let i=$.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(i)[t]()})},NI=`alert`,PI=`.bs.alert`,FI=`close${PI}`,II=`closed${PI}`,LI=`fade`,RI=`show`,zI=class e extends AI{static get NAME(){return NI}close(){if(Q.trigger(this._element,FI).defaultPrevented)return;this._element.classList.remove(RI);let e=this._element.classList.contains(LI);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),Q.trigger(this._element,II),this.dispose()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};MI(zI,`close`),rI(zI);var BI=`button`,VI=`.bs.button`,HI=`.data-api`,UI=`active`,WI=`[data-bs-toggle="button"]`,GI=`click${VI}${HI}`,KI=class e extends AI{static get NAME(){return BI}toggle(){this._element.setAttribute(`aria-pressed`,this._element.classList.toggle(UI))}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);t===`toggle`&&n[t]()})}};Q.on(document,GI,WI,e=>{e.preventDefault();let t=e.target.closest(WI);KI.getOrCreateInstance(t).toggle()}),rI(KI);var qI=`swipe`,JI=`.bs.swipe`,YI=`touchstart${JI}`,XI=`touchmove${JI}`,ZI=`touchend${JI}`,QI=`pointerdown${JI}`,$I=`pointerup${JI}`,eL=`touch`,tL=`pen`,nL=`pointer-event`,rL=40,iL={endCallback:null,leftCallback:null,rightCallback:null},aL={endCallback:`(function|null)`,leftCallback:`(function|null)`,rightCallback:`(function|null)`},oL=class e extends OI{constructor(t,n){super(),this._element=t,!(!t||!e.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return iL}static get DefaultType(){return aL}static get NAME(){return qI}dispose(){Q.off(this._element,JI)}_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(),iI(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=rL)return;let t=e/this._deltaX;this._deltaX=0,t&&iI(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Q.on(this._element,QI,e=>this._start(e)),Q.on(this._element,$I,e=>this._end(e)),this._element.classList.add(nL)):(Q.on(this._element,YI,e=>this._start(e)),Q.on(this._element,XI,e=>this._move(e)),Q.on(this._element,ZI,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===tL||e.pointerType===eL)}static isSupported(){return`ontouchstart`in document.documentElement||navigator.maxTouchPoints>0}},sL=`carousel`,cL=`.bs.carousel`,lL=`.data-api`,uL=`ArrowLeft`,dL=`ArrowRight`,fL=500,pL=`next`,mL=`prev`,hL=`left`,gL=`right`,_L=`slide${cL}`,vL=`slid${cL}`,yL=`keydown${cL}`,bL=`mouseenter${cL}`,xL=`mouseleave${cL}`,SL=`dragstart${cL}`,CL=`load${cL}${lL}`,wL=`click${cL}${lL}`,TL=`carousel`,EL=`active`,DL=`slide`,OL=`carousel-item-end`,kL=`carousel-item-start`,AL=`carousel-item-next`,jL=`carousel-item-prev`,ML=`.active`,NL=`.carousel-item`,PL=ML+NL,FL=`.carousel-item img`,IL=`.carousel-indicators`,LL=`[data-bs-slide], [data-bs-slide-to]`,RL=`[data-bs-ride="carousel"]`,zL={[uL]:gL,[dL]:hL},BL={interval:5e3,keyboard:!0,pause:`hover`,ride:!1,touch:!0,wrap:!0},VL={interval:`(number|boolean)`,keyboard:`boolean`,pause:`(string|boolean)`,ride:`(boolean|string)`,touch:`boolean`,wrap:`boolean`},HL=class e extends AI{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=$.findOne(IL,this._element),this._addEventListeners(),this._config.ride===TL&&this.cycle()}static get Default(){return BL}static get DefaultType(){return VL}static get NAME(){return sL}next(){this._slide(pL)}nextWhenVisible(){!document.hidden&&JF(this._element)&&this.next()}prev(){this._slide(mL)}pause(){this._isSliding&&GF(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){Q.one(this._element,vL,()=>this.cycle());return}this.cycle()}}to(e){let t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){Q.one(this._element,vL,()=>this.to(e));return}let n=this._getItemIndex(this._getActive());if(n===e)return;let r=e>n?pL:mL;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Q.on(this._element,yL,e=>this._keydown(e)),this._config.pause===`hover`&&(Q.on(this._element,bL,()=>this.pause()),Q.on(this._element,xL,()=>this._maybeEnableCycle())),this._config.touch&&oL.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of $.find(FL,this._element))Q.on(e,SL,e=>e.preventDefault());this._swipeHelper=new oL(this._element,{leftCallback:()=>this._slide(this._directionToOrder(hL)),rightCallback:()=>this._slide(this._directionToOrder(gL)),endCallback:()=>{this._config.pause===`hover`&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),fL+this._config.interval))}})}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=zL[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let t=$.findOne(ML,this._indicatorsElement);t.classList.remove(EL),t.removeAttribute(`aria-current`);let n=$.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(EL),n.setAttribute(`aria-current`,`true`))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let t=Number.parseInt(e.getAttribute(`data-bs-interval`),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;let n=this._getActive(),r=e===pL,i=t||oI(this._getItems(),n,r,this._config.wrap);if(i===n)return;let a=this._getItemIndex(i),o=t=>Q.trigger(this._element,t,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(o(_L).defaultPrevented||!n||!i)return;let s=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;let c=r?kL:OL,l=r?AL:jL;i.classList.add(l),QF(i),n.classList.add(c),i.classList.add(c),this._queueCallback(()=>{i.classList.remove(c,l),i.classList.add(EL),n.classList.remove(EL,l,c),this._isSliding=!1,o(vL)},n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains(DL)}_getActive(){return $.findOne(PL,this._element)}_getItems(){return $.find(NL,this._element)}_clearInterval(){this._interval&&=(clearInterval(this._interval),null)}_directionToOrder(e){return nI()?e===hL?mL:pL:e===hL?pL:mL}_orderToDirection(e){return nI()?e===mL?hL:gL:e===mL?gL:hL}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`number`){n.to(t);return}if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};Q.on(document,wL,LL,function(e){let t=$.getElementFromSelector(this);if(!t||!t.classList.contains(TL))return;e.preventDefault();let n=HL.getOrCreateInstance(t),r=this.getAttribute(`data-bs-slide-to`);if(r){n.to(r),n._maybeEnableCycle();return}if(DI.getDataAttribute(this,`slide`)===`next`){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),Q.on(window,CL,()=>{let e=$.find(RL);for(let t of e)HL.getOrCreateInstance(t)}),rI(HL);var UL=`collapse`,WL=`.bs.collapse`,GL=`.data-api`,KL=`show${WL}`,qL=`shown${WL}`,JL=`hide${WL}`,YL=`hidden${WL}`,XL=`click${WL}${GL}`,ZL=`show`,QL=`collapse`,$L=`collapsing`,eR=`collapsed`,tR=`:scope .${QL} .${QL}`,nR=`collapse-horizontal`,rR=`width`,iR=`height`,aR=`.collapse.show, .collapse.collapsing`,oR=`[data-bs-toggle="collapse"]`,sR={parent:null,toggle:!0},cR={parent:`(null|element)`,toggle:`boolean`},lR=class e extends AI{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let n=$.find(oR);for(let e of n){let t=$.getSelectorFromElement(e),n=$.find(t).filter(e=>e===this._element);t!==null&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return sR}static get DefaultType(){return cR}static get NAME(){return UL}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(aR).filter(e=>e!==this._element).map(t=>e.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning||Q.trigger(this._element,KL).defaultPrevented)return;for(let e of t)e.hide();let n=this._getDimension();this._element.classList.remove(QL),this._element.classList.add($L),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let r=()=>{this._isTransitioning=!1,this._element.classList.remove($L),this._element.classList.add(QL,ZL),this._element.style[n]=``,Q.trigger(this._element,qL)},i=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||Q.trigger(this._element,JL).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,QF(this._element),this._element.classList.add($L),this._element.classList.remove(QL,ZL);for(let e of this._triggerArray){let t=$.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;let t=()=>{this._isTransitioning=!1,this._element.classList.remove($L),this._element.classList.add(QL),Q.trigger(this._element,YL)};this._element.style[e]=``,this._queueCallback(t,this._element,!0)}_isShown(e=this._element){return e.classList.contains(ZL)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=qF(e.parent),e}_getDimension(){return this._element.classList.contains(nR)?rR:iR}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(oR);for(let t of e){let e=$.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){let t=$.find(tR,this._config.parent);return $.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let n of e)n.classList.toggle(eR,!t),n.setAttribute(`aria-expanded`,t)}static jQueryInterface(t){let n={};return typeof t==`string`&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){let r=e.getOrCreateInstance(this,n);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t]()}})}};Q.on(document,XL,oR,function(e){(e.target.tagName===`A`||e.delegateTarget&&e.delegateTarget.tagName===`A`)&&e.preventDefault();for(let e of $.getMultipleElementsFromSelector(this))lR.getOrCreateInstance(e,{toggle:!1}).toggle()}),rI(lR);var uR=`dropdown`,dR=`.bs.dropdown`,fR=`.data-api`,pR=`Escape`,mR=`Tab`,hR=`ArrowUp`,gR=`ArrowDown`,_R=2,vR=`hide${dR}`,yR=`hidden${dR}`,bR=`show${dR}`,xR=`shown${dR}`,SR=`click${dR}${fR}`,CR=`keydown${dR}${fR}`,wR=`keyup${dR}${fR}`,TR=`show`,ER=`dropup`,DR=`dropend`,OR=`dropstart`,kR=`dropup-center`,AR=`dropdown-center`,jR=`[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)`,MR=`${jR}.${TR}`,NR=`.dropdown-menu`,PR=`.navbar`,FR=`.navbar-nav`,IR=`.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)`,LR=nI()?`top-end`:`top-start`,RR=nI()?`top-start`:`top-end`,zR=nI()?`bottom-end`:`bottom-start`,BR=nI()?`bottom-start`:`bottom-end`,VR=nI()?`left-start`:`right-start`,HR=nI()?`right-start`:`left-start`,UR=`top`,WR=`bottom`,GR={autoClose:!0,boundary:`clippingParents`,display:`dynamic`,offset:[0,2],popperConfig:null,reference:`toggle`},KR={autoClose:`(boolean|string)`,boundary:`(string|element)`,display:`string`,offset:`(array|string|function)`,popperConfig:`(null|object|function)`,reference:`(string|element|object)`},qR=class e extends AI{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=$.next(this._element,NR)[0]||$.prev(this._element,NR)[0]||$.findOne(NR,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return GR}static get DefaultType(){return KR}static get NAME(){return uR}toggle(){return this._isShown()?this.hide():this.show()}show(){if(YF(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!Q.trigger(this._element,bR,e).defaultPrevented){if(this._createPopper(),`ontouchstart`in document.documentElement&&!this._parent.closest(FR))for(let e of[].concat(...document.body.children))Q.on(e,`mouseover`,ZF);this._element.focus(),this._element.setAttribute(`aria-expanded`,!0),this._menu.classList.add(TR),this._element.classList.add(TR),Q.trigger(this._element,xR,e)}}hide(){if(YF(this._element)||!this._isShown())return;let 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(!Q.trigger(this._element,vR,e).defaultPrevented){if(`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))Q.off(e,`mouseover`,ZF);this._popper&&this._popper.destroy(),this._menu.classList.remove(TR),this._element.classList.remove(TR),this._element.setAttribute(`aria-expanded`,`false`),DI.removeDataAttribute(this._menu,`popper`),Q.trigger(this._element,yR,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference==`object`&&!KF(e.reference)&&typeof e.reference.getBoundingClientRect!=`function`)throw TypeError(`${uR.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(FF===void 0)throw TypeError(`Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)`);let e=this._element;this._config.reference===`parent`?e=this._parent:KF(this._config.reference)?e=qF(this._config.reference):typeof this._config.reference==`object`&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=PF(e,this._menu,t)}_isShown(){return this._menu.classList.contains(TR)}_getPlacement(){let e=this._parent;if(e.classList.contains(DR))return VR;if(e.classList.contains(OR))return HR;if(e.classList.contains(kR))return UR;if(e.classList.contains(AR))return WR;let t=getComputedStyle(this._menu).getPropertyValue(`--bs-position`).trim()===`end`;return e.classList.contains(ER)?t?RR:LR:t?BR:zR}_detectNavbar(){return this._element.closest(PR)!==null}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_getPopperConfig(){let 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`)&&(DI.setDataAttribute(this._menu,`popper`,`static`),e.modifiers=[{name:`applyStyles`,enabled:!1}]),{...e,...iI(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){let n=$.find(IR,this._menu).filter(e=>JF(e));n.length&&oI(n,t,e===gR,!n.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===_R||t.type===`keyup`&&t.key!==mR)return;let n=$.find(MR);for(let r of n){let n=e.getInstance(r);if(!n||n._config.autoClose===!1)continue;let i=t.composedPath(),a=i.includes(n._menu);if(i.includes(n._element)||n._config.autoClose===`inside`&&!a||n._config.autoClose===`outside`&&a||n._menu.contains(t.target)&&(t.type===`keyup`&&t.key===mR||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let o={relatedTarget:n._element};t.type===`click`&&(o.clickEvent=t),n._completeHide(o)}}static dataApiKeydownHandler(t){let n=/input|textarea/i.test(t.target.tagName),r=t.key===pR,i=[hR,gR].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();let a=this.matches(jR)?this:$.prev(this,jR)[0]||$.next(this,jR)[0]||$.findOne(jR,t.delegateTarget.parentNode),o=e.getOrCreateInstance(a);if(i){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),a.focus())}};Q.on(document,CR,jR,qR.dataApiKeydownHandler),Q.on(document,CR,NR,qR.dataApiKeydownHandler),Q.on(document,SR,qR.clearMenus),Q.on(document,wR,qR.clearMenus),Q.on(document,SR,jR,function(e){e.preventDefault(),qR.getOrCreateInstance(this).toggle()}),rI(qR);var JR=`backdrop`,YR=`fade`,XR=`show`,ZR=`mousedown.bs.${JR}`,QR={className:`modal-backdrop`,clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:`body`},$R={className:`string`,clickCallback:`(function|null)`,isAnimated:`boolean`,isVisible:`boolean`,rootElement:`(element|string)`},ez=class extends OI{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return QR}static get DefaultType(){return $R}static get NAME(){return JR}show(e){if(!this._config.isVisible){iI(e);return}this._append();let t=this._getElement();this._config.isAnimated&&QF(t),t.classList.add(XR),this._emulateAnimation(()=>{iI(e)})}hide(e){if(!this._config.isVisible){iI(e);return}this._getElement().classList.remove(XR),this._emulateAnimation(()=>{this.dispose(),iI(e)})}dispose(){this._isAppended&&=(Q.off(this._element,ZR),this._element.remove(),!1)}_getElement(){if(!this._element){let e=document.createElement(`div`);e.className=this._config.className,this._config.isAnimated&&e.classList.add(YR),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=qF(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),Q.on(e,ZR,()=>{iI(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){aI(e,this._getElement(),this._config.isAnimated)}},tz=`focustrap`,nz=`.bs.focustrap`,rz=`focusin${nz}`,iz=`keydown.tab${nz}`,az=`Tab`,oz=`forward`,sz=`backward`,cz={autofocus:!0,trapElement:null},lz={autofocus:`boolean`,trapElement:`element`},uz=class extends OI{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return cz}static get DefaultType(){return lz}static get NAME(){return tz}activate(){this._isActive||=(this._config.autofocus&&this._config.trapElement.focus(),Q.off(document,nz),Q.on(document,rz,e=>this._handleFocusin(e)),Q.on(document,iz,e=>this._handleKeydown(e)),!0)}deactivate(){this._isActive&&(this._isActive=!1,Q.off(document,nz))}_handleFocusin(e){let{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;let n=$.focusableChildren(t);n.length===0?t.focus():this._lastTabNavDirection===sz?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===az&&(this._lastTabNavDirection=e.shiftKey?sz:oz)}},dz=`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,fz=`.sticky-top`,pz=`padding-right`,mz=`margin-right`,hz=class{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,pz,t=>t+e),this._setElementAttributes(dz,pz,t=>t+e),this._setElementAttributes(fz,mz,t=>t-e)}reset(){this._resetElementAttributes(this._element,`overflow`),this._resetElementAttributes(this._element,pz),this._resetElementAttributes(dz,pz),this._resetElementAttributes(fz,mz)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,`overflow`),this._element.style.overflow=`hidden`}_setElementAttributes(e,t,n){let r=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);let i=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(i))}px`)})}_saveInitialAttribute(e,t){let n=e.style.getPropertyValue(t);n&&DI.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{let n=DI.getDataAttribute(e,t);if(n===null){e.style.removeProperty(t);return}DI.removeDataAttribute(e,t),e.style.setProperty(t,n)})}_applyManipulationCallback(e,t){if(KF(e)){t(e);return}for(let n of $.find(e,this._element))t(n)}},gz=`modal`,_z=`.bs.modal`,vz=`.data-api`,yz=`Escape`,bz=`hide${_z}`,xz=`hidePrevented${_z}`,Sz=`hidden${_z}`,Cz=`show${_z}`,wz=`shown${_z}`,Tz=`resize${_z}`,Ez=`click.dismiss${_z}`,Dz=`mousedown.dismiss${_z}`,Oz=`keydown.dismiss${_z}`,kz=`click${_z}${vz}`,Az=`modal-open`,jz=`fade`,Mz=`show`,Nz=`modal-static`,Pz=`.modal.show`,Fz=`.modal-dialog`,Iz=`.modal-body`,Lz=`[data-bs-toggle="modal"]`,Rz={backdrop:!0,focus:!0,keyboard:!0},zz={backdrop:`(boolean|string)`,focus:`boolean`,keyboard:`boolean`},Bz=class e extends AI{constructor(e,t){super(e,t),this._dialog=$.findOne(Fz,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new hz,this._addEventListeners()}static get Default(){return Rz}static get DefaultType(){return zz}static get NAME(){return gz}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Q.trigger(this._element,Cz,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Az),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Q.trigger(this._element,bz).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Mz),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Q.off(window,_z),Q.off(this._dialog,_z),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ez({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new uz({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;let t=$.findOne(Iz,this._dialog);t&&(t.scrollTop=0),QF(this._element),this._element.classList.add(Mz),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Q.trigger(this._element,wz,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){Q.on(this._element,Oz,e=>{if(e.key===yz){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Q.on(window,Tz,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Q.on(this._element,Dz,e=>{Q.one(this._element,Ez,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(Az),this._resetAdjustments(),this._scrollBar.reset(),Q.trigger(this._element,Sz)})}_isAnimated(){return this._element.classList.contains(jz)}_triggerBackdropTransition(){if(Q.trigger(this._element,xz).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t===`hidden`||this._element.classList.contains(Nz)||(e||(this._element.style.overflowY=`hidden`),this._element.classList.add(Nz),this._queueCallback(()=>{this._element.classList.remove(Nz),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){let e=nI()?`paddingLeft`:`paddingRight`;this._element.style[e]=`${t}px`}if(!n&&e){let e=nI()?`paddingRight`:`paddingLeft`;this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft=``,this._element.style.paddingRight=``}static jQueryInterface(t,n){return this.each(function(){let r=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t](n)}})}};Q.on(document,kz,Lz,function(e){let t=$.getElementFromSelector(this);[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),Q.one(t,Cz,e=>{e.defaultPrevented||Q.one(t,Sz,()=>{JF(this)&&this.focus()})});let n=$.findOne(Pz);n&&Bz.getInstance(n).hide(),Bz.getOrCreateInstance(t).toggle(this)}),MI(Bz),rI(Bz);var Vz=`offcanvas`,Hz=`.bs.offcanvas`,Uz=`.data-api`,Wz=`load${Hz}${Uz}`,Gz=`Escape`,Kz=`show`,qz=`showing`,Jz=`hiding`,Yz=`offcanvas-backdrop`,Xz=`.offcanvas.show`,Zz=`show${Hz}`,Qz=`shown${Hz}`,$z=`hide${Hz}`,eB=`hidePrevented${Hz}`,tB=`hidden${Hz}`,nB=`resize${Hz}`,rB=`click${Hz}${Uz}`,iB=`keydown.dismiss${Hz}`,aB=`[data-bs-toggle="offcanvas"]`,oB={backdrop:!0,keyboard:!0,scroll:!1},sB={backdrop:`(boolean|string)`,keyboard:`boolean`,scroll:`boolean`},cB=class e extends AI{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return oB}static get DefaultType(){return sB}static get NAME(){return Vz}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||Q.trigger(this._element,Zz,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new hz().hide(),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.classList.add(qz),this._queueCallback(()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Kz),this._element.classList.remove(qz),Q.trigger(this._element,Qz,{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||Q.trigger(this._element,$z).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Jz),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Kz,Jz),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._config.scroll||new hz().reset(),Q.trigger(this._element,tB)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop===`static`){Q.trigger(this._element,eB);return}this.hide()},t=!!this._config.backdrop;return new ez({className:Yz,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new uz({trapElement:this._element})}_addEventListeners(){Q.on(this._element,iB,e=>{if(e.key===Gz){if(this._config.keyboard){this.hide();return}Q.trigger(this._element,eB)}})}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};Q.on(document,rB,aB,function(e){let t=$.getElementFromSelector(this);if([`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),YF(this))return;Q.one(t,tB,()=>{JF(this)&&this.focus()});let n=$.findOne(Xz);n&&n!==t&&cB.getInstance(n).hide(),cB.getOrCreateInstance(t).toggle(this)}),Q.on(window,Wz,()=>{for(let e of $.find(Xz))cB.getOrCreateInstance(e).show()}),Q.on(window,nB,()=>{for(let e of $.find(`[aria-modal][class*=show][class*=offcanvas-]`))getComputedStyle(e).position!==`fixed`&&cB.getOrCreateInstance(e).hide()}),MI(cB),rI(cB);var lB=/^aria-[\w-]*$/i,uB={"*":[`class`,`dir`,`id`,`lang`,`role`,lB],a:[`target`,`href`,`title`,`rel`],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},dB=new Set([`background`,`cite`,`href`,`itemtype`,`longdesc`,`poster`,`src`,`xlink:href`]),fB=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,pB=(e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?dB.has(n)?!!fB.test(e.nodeValue):!0:t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};function mB(e,t,n){if(!e.length)return e;if(n&&typeof n==`function`)return n(e);let r=new window.DOMParser().parseFromString(e,`text/html`),i=[].concat(...r.body.querySelectorAll(`*`));for(let e of i){let n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}let r=[].concat(...e.attributes),i=[].concat(t[`*`]||[],t[n]||[]);for(let t of r)pB(t,i)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}var hB=`TemplateFactory`,gB={allowList:uB,content:{},extraClass:``,html:!1,sanitize:!0,sanitizeFn:null,template:`<div></div>`},_B={allowList:`object`,content:`object`,extraClass:`(string|function)`,html:`boolean`,sanitize:`boolean`,sanitizeFn:`(null|function)`,template:`string`},vB={entry:`(string|element|function|null)`,selector:`(string|element)`},yB=class extends OI{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return gB}static get DefaultType(){return _B}static get NAME(){return hB}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(){let e=document.createElement(`div`);e.innerHTML=this._maybeSanitize(this._config.template);for(let[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);let t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(` `)),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},vB)}_setContent(e,t,n){let r=$.findOne(n,e);if(r){if(t=this._resolvePossibleFunction(t),!t){r.remove();return}if(KF(t)){this._putElementInTemplate(qF(t),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(t);return}r.textContent=t}}_maybeSanitize(e){return this._config.sanitize?mB(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return iI(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML=``,t.append(e);return}t.textContent=e.textContent}},bB=`tooltip`,xB=new Set([`sanitize`,`allowList`,`sanitizeFn`]),SB=`fade`,CB=`modal`,wB=`show`,TB=`.tooltip-inner`,EB=`.${CB}`,DB=`hide.bs.modal`,OB=`hover`,kB=`focus`,AB=`click`,jB=`manual`,MB=`hide`,NB=`hidden`,PB=`show`,FB=`shown`,IB=`inserted`,LB=`click`,RB=`focusin`,zB=`focusout`,BB=`mouseenter`,VB=`mouseleave`,HB={AUTO:`auto`,TOP:`top`,RIGHT:nI()?`left`:`right`,BOTTOM:`bottom`,LEFT:nI()?`right`:`left`},UB={allowList:uB,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`},WB={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`},GB=class e extends AI{constructor(e,t){if(FF===void 0)throw TypeError(`Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)`);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 UB}static get DefaultType(){return WB}static get NAME(){return bB}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Q.off(this._element.closest(EB),DB,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 Error(`Please use show on visible elements`);if(!(this._isWithContent()&&this._isEnabled))return;let e=Q.trigger(this._element,this.constructor.eventName(PB)),t=(XF(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();let n=this._getTipElement();this._element.setAttribute(`aria-describedby`,n.getAttribute(`id`));let{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),Q.trigger(this._element,this.constructor.eventName(IB))),this._popper=this._createPopper(n),n.classList.add(wB),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))Q.on(e,`mouseover`,ZF);this._queueCallback(()=>{Q.trigger(this._element,this.constructor.eventName(FB)),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!(!this._isShown()||Q.trigger(this._element,this.constructor.eventName(MB)).defaultPrevented)){if(this._getTipElement().classList.remove(wB),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))Q.off(e,`mouseover`,ZF);this._activeTrigger[AB]=!1,this._activeTrigger[kB]=!1,this._activeTrigger[OB]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(`aria-describedby`),Q.trigger(this._element,this.constructor.eventName(NB)))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||=this._createTipElement(this._newContent||this._getContentForTemplate()),this.tip}_createTipElement(e){let t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(SB,wB),t.classList.add(`bs-${this.constructor.NAME}-auto`);let n=UF(this.constructor.NAME).toString();return t.setAttribute(`id`,n),this._isAnimated()&&t.classList.add(SB),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new yB({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[TB]: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(SB)}_isShown(){return this.tip&&this.tip.classList.contains(wB)}_createPopper(e){let t=HB[iI(this._config.placement,[this,e,this._element]).toUpperCase()];return PF(this._element,e,this._getPopperConfig(t))}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_resolvePossibleFunction(e){return iI(e,[this._element,this._element])}_getPopperConfig(e){let 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:e=>{this._getTipElement().setAttribute(`data-popper-placement`,e.state.placement)}}]};return{...t,...iI(this._config.popperConfig,[void 0,t])}}_setListeners(){let e=this._config.trigger.split(` `);for(let t of e)if(t===`click`)Q.on(this._element,this.constructor.eventName(LB),this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[AB]=!(t._isShown()&&t._activeTrigger[AB]),t.toggle()});else if(t!==jB){let e=t===OB?this.constructor.eventName(BB):this.constructor.eventName(RB),n=t===OB?this.constructor.eventName(VB):this.constructor.eventName(zB);Q.on(this._element,e,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusin`?kB:OB]=!0,t._enter()}),Q.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusout`?kB:OB]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Q.on(this._element.closest(EB),DB,this._hideModalHandler)}_fixTitle(){let 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){let t=DI.getDataAttributes(this._element);for(let e of Object.keys(t))xB.has(e)&&delete t[e];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:qF(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(){let e={};for(let[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger=`manual`,e}_disposePopper(){this._popper&&=(this._popper.destroy(),null),this.tip&&=(this.tip.remove(),null)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};rI(GB);var KB=`popover`,qB=`.popover-header`,JB=`.popover-body`,YB={...GB.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`},XB={...GB.DefaultType,content:`(null|string|element|function)`},ZB=class e extends GB{static get Default(){return YB}static get DefaultType(){return XB}static get NAME(){return KB}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[qB]:this._getTitle(),[JB]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};rI(ZB);var QB=`scrollspy`,$B=`.bs.scrollspy`,eV=`.data-api`,tV=`activate${$B}`,nV=`click${$B}`,rV=`load${$B}${eV}`,iV=`dropdown-item`,aV=`active`,oV=`[data-bs-spy="scroll"]`,sV=`[href]`,cV=`.nav, .list-group`,lV=`.nav-link`,uV=`${lV}, .nav-item > ${lV}, .list-group-item`,dV=`.dropdown`,fV=`.dropdown-toggle`,pV={offset:null,rootMargin:`0px 0px -25%`,smoothScroll:!1,target:null,threshold:[.1,.5,1]},mV={offset:`(number|null)`,rootMargin:`string`,smoothScroll:`boolean`,target:`element`,threshold:`array`},hV=class e extends AI{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 pV}static get DefaultType(){return mV}static get NAME(){return QB}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=qF(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(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Q.off(this._config.target,nV),Q.on(this._config.target,nV,sV,e=>{let t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();let n=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:`smooth`});return}n.scrollTop=r}}))}_getNewObserver(){let e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){let t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(let a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(a));continue}let e=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&e){if(n(a),!r)return;continue}!i&&!e&&n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=$.find(sV,this._config.target);for(let t of e){if(!t.hash||YF(t))continue;let e=$.findOne(decodeURI(t.hash),this._element);JF(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(aV),this._activateParents(e),Q.trigger(this._element,tV,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(iV)){$.findOne(fV,e.closest(dV)).classList.add(aV);return}for(let t of $.parents(e,cV))for(let e of $.prev(t,uV))e.classList.add(aV)}_clearActiveClass(e){e.classList.remove(aV);let t=$.find(`${sV}.${aV}`,e);for(let e of t)e.classList.remove(aV)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};Q.on(window,rV,()=>{for(let e of $.find(oV))hV.getOrCreateInstance(e)}),rI(hV);var gV=`tab`,_V=`.bs.tab`,vV=`hide${_V}`,yV=`hidden${_V}`,bV=`show${_V}`,xV=`shown${_V}`,SV=`click${_V}`,CV=`keydown${_V}`,wV=`load${_V}`,TV=`ArrowLeft`,EV=`ArrowRight`,DV=`ArrowUp`,OV=`ArrowDown`,kV=`Home`,AV=`End`,jV=`active`,MV=`fade`,NV=`show`,PV=`dropdown`,FV=`.dropdown-toggle`,IV=`.dropdown-menu`,LV=`:not(${FV})`,RV=`.list-group, .nav, [role="tablist"]`,zV=`.nav-item, .list-group-item`,BV=`.nav-link${LV}, .list-group-item${LV}, [role="tab"]${LV}`,VV=`[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]`,HV=`${BV}, ${VV}`,UV=`.${jV}[data-bs-toggle="tab"], .${jV}[data-bs-toggle="pill"], .${jV}[data-bs-toggle="list"]`,WV=class e extends AI{constructor(e){super(e),this._parent=this._element.closest(RV),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Q.on(this._element,CV,e=>this._keydown(e)))}static get NAME(){return gV}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),n=t?Q.trigger(t,vV,{relatedTarget:e}):null;Q.trigger(e,bV,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(jV),this._activate($.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.add(NV);return}e.removeAttribute(`tabindex`),e.setAttribute(`aria-selected`,!0),this._toggleDropDown(e,!0),Q.trigger(e,xV,{relatedTarget:t})},e,e.classList.contains(MV)))}_deactivate(e,t){e&&(e.classList.remove(jV),e.blur(),this._deactivate($.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.remove(NV);return}e.setAttribute(`aria-selected`,!1),e.setAttribute(`tabindex`,`-1`),this._toggleDropDown(e,!1),Q.trigger(e,yV,{relatedTarget:t})},e,e.classList.contains(MV)))}_keydown(t){if(![TV,EV,DV,OV,kV,AV].includes(t.key))return;t.stopPropagation(),t.preventDefault();let n=this._getChildren().filter(e=>!YF(e)),r;if([kV,AV].includes(t.key))r=n[t.key===kV?0:n.length-1];else{let e=[EV,OV].includes(t.key);r=oI(n,t.target,e,!0)}r&&(r.focus({preventScroll:!0}),e.getOrCreateInstance(r).show())}_getChildren(){return $.find(HV,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,`role`,`tablist`);for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute(`aria-selected`,t),n!==e&&this._setAttributeIfNotExists(n,`role`,`presentation`),t||e.setAttribute(`tabindex`,`-1`),this._setAttributeIfNotExists(e,`role`,`tab`),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let t=$.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,`role`,`tabpanel`),e.id&&this._setAttributeIfNotExists(t,`aria-labelledby`,`${e.id}`))}_toggleDropDown(e,t){let n=this._getOuterElement(e);if(!n.classList.contains(PV))return;let r=(e,r)=>{let i=$.findOne(e,n);i&&i.classList.toggle(r,t)};r(FV,jV),r(IV,NV),n.setAttribute(`aria-expanded`,t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(jV)}_getInnerElement(e){return e.matches(HV)?e:$.findOne(HV,e)}_getOuterElement(e){return e.closest(zV)||e}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};Q.on(document,SV,VV,function(e){[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),!YF(this)&&WV.getOrCreateInstance(this).show()}),Q.on(window,wV,()=>{for(let e of $.find(UV))WV.getOrCreateInstance(e)}),rI(WV);var GV=`toast`,KV=`.bs.toast`,qV=`mouseover${KV}`,JV=`mouseout${KV}`,YV=`focusin${KV}`,XV=`focusout${KV}`,ZV=`hide${KV}`,QV=`hidden${KV}`,$V=`show${KV}`,eH=`shown${KV}`,tH=`fade`,nH=`hide`,rH=`show`,iH=`showing`,aH={animation:`boolean`,autohide:`boolean`,delay:`number`},oH={animation:!0,autohide:!0,delay:5e3},sH=class e extends AI{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return oH}static get DefaultType(){return aH}static get NAME(){return GV}show(){Q.trigger(this._element,$V).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(tH),this._element.classList.remove(nH),QF(this._element),this._element.classList.add(rH,iH),this._queueCallback(()=>{this._element.classList.remove(iH),Q.trigger(this._element,eH),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this.isShown()||Q.trigger(this._element,ZV).defaultPrevented||(this._element.classList.add(iH),this._queueCallback(()=>{this._element.classList.add(nH),this._element.classList.remove(iH,rH),Q.trigger(this._element,QV)},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(rH),super.dispose()}isShown(){return this._element.classList.contains(rH)}_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}let n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Q.on(this._element,qV,e=>this._onInteraction(e,!0)),Q.on(this._element,JV,e=>this._onInteraction(e,!1)),Q.on(this._element,YV,e=>this._onInteraction(e,!0)),Q.on(this._element,XV,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t](this)}})}};MI(sH),rI(sH);function cH(e,t){return t.value||e.getAttribute(`title`)||``}var lH={mounted:(e,t)=>{let n=cH(e,t);n&&e.setAttribute(`title`,n),new GB(e)},updated:(e,t)=>{let n=GB.getInstance(e);n&&n.dispose();let r=cH(e,t);r&&e.setAttribute(`title`,r),new GB(e)},unmounted:e=>{let t=GB.getInstance(e);t&&t.dispose()}},uH={key:0,class:`pills-list__wrapper`},dH={class:`pills-list__ul`},fH={class:`bd-markdown-editor__menu-bottom`},pH={key:1,class:`vr`},mH=(0,u.defineComponent)({__name:`BDMarkdownEditor`,props:{placeholder:{default:`Typ een bericht`},errorText:{default:`er is iets fout gegaan`},state:{type:[Boolean,null],default:null},variant:{default:cN.BASIC},files:{default:void 0},pills:{default:void 0},apiUrl:{default:``},tokens:{default:[]},modelValue:{}},emits:[`update:modelValue`,`upload`,`action`],setup(e,{emit:t}){let n=e,r=t,i=()=>{r(`upload`)},a=(0,u.ref)(null),o=Ra(n,`modelValue`,r),s=[GO,JO,YO,XM.configure({HTMLAttributes:{class:`mention`},suggestion:{...eN(n.tokens||[],a),char:`{`,allowSpaces:!0}}),Zj.configure({placeholder:n.placeholder}),UM,lj.configure({openOnClick:!1,validate:e=>/^(https?:\/\/|www\.)/i.test(e)})];(n.variant===cN.FULL||n.variant===cN.FORMAT)&&s.push(rM,cM,lM,BM,VM,HM);let c=UO({content:o.value,extensions:s,onUpdate:({editor:e})=>{let{view:t,state:n}=e,{from:i,to:a}=t.state.selection;if(n.doc.textBetween(i-1,a,``)==` `&&e.getAttributes(`link`).href!=null&&e.chain().setTextSelection({from:i-1,to:a}).toggleLink({href:e.getAttributes(`link`).href}).setTextSelection({from:a,to:a}).run(),e.getText().trim()===``){r(`update:modelValue`,``);return}r(`update:modelValue`,e.getHTML())}});(0,u.watch)(()=>n.modelValue,e=>{c.value.getHTML()!==e&&c.value.commands.setContent(e,!0,{preserveWhitespace:`full`})});let l=(0,u.computed)(()=>n.state===!1?`is-invalid`:null),d=(0,u.computed)(()=>x(`bold`)),f=(0,u.computed)(()=>x(`italic`)),p=(0,u.computed)(()=>x(`underline`)),m=(0,u.computed)(()=>x(`bulletList`)),h=(0,u.computed)(()=>x(`orderedList`)),_=(0,u.computed)(()=>x(`link`)),v=(0,u.computed)(()=>n.variant===cN.FULL||n.variant===cN.FORMAT),y=(0,u.computed)(()=>n.variant===cN.FULL),b=(0,u.computed)(()=>n.variant===cN.FULL||n.variant===cN.BASIC||!n.variant),x=e=>c.value&&c.value.isActive(e)?`active`:null,S=(0,u.computed)(()=>n.files&&n.files.length>0?kN(n.apiUrl,n.files,!1):null),C=(0,u.computed)(()=>n.files&&n.files.length>0?kN(n.apiUrl,n.files,!0):null),w=e=>{r(`action`,{name:`delete-attachment`,obj:e})},T=e=>{r(`action`,{name:`image-attachment`,obj:e})},E=(0,u.computed)(()=>{if(!c.value)return!1;let{from:e,to:t}=c.value.state.selection;return e!==t}),D=(0,u.computed)(()=>E.value?`Voeg een link toe`:`Selecteer eerst tekst`),O=(0,u.ref)(!1),k=(0,u.ref)(``),A=(0,u.ref)(null),j=()=>{k.value=c.value.getAttributes(`link`).href||``,O.value=!0},M=e=>{if(O.value=!1,!e){c.value.chain().focus().unsetLink().run();return}/^www\./i.test(e)&&(e=`https://${e}`),c.value.chain().focus().toggleLink({href:e}).run()},ee=()=>{O.value=!1};return(t,r)=>((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,null,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`bd-markdown-editor`,l.value]),ref_key:`wrapperRef`,ref:a},[(0,u.createVNode)((0,u.unref)(HO),{editor:(0,u.unref)(c)},null,8,[`editor`]),e.pills?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,uH,[(0,u.createElementVNode)(`ul`,dH,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.pills,(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{key:t,class:`pills-list__li`},[(0,u.createVNode)(Qh,(0,u.mergeProps)({ref_for:!0},e),null,16)]))),128))])])):(0,u.createCommentVNode)(``,!0),(0,u.renderSlot)(t.$slots,`default`),S.value?((0,u.openBlock)(),(0,u.createBlock)(pN,{key:1,files:S.value,"no-download":!0,"show-delete":!0,onDelete:w},null,8,[`files`])):(0,u.createCommentVNode)(``,!0),C.value?((0,u.openBlock)(),(0,u.createBlock)(SN,{key:2,files:C.value,"no-download":!0,"show-delete":!0,"fast-download":!1,onDelete:w,onShow:T},null,8,[`files`])):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`div`,fH,[b.value?((0,u.openBlock)(),(0,u.createBlock)(g,{key:0,variant:`light`,type:`button`,onClick:i},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(re))]),_:1})):(0,u.createCommentVNode)(``,!0),y.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,pH)):(0,u.createCommentVNode)(``,!0),v.value?((0,u.openBlock)(),(0,u.createBlock)(g,{key:2,variant:`light`,type:`button`,class:(0,u.normalizeClass)(d.value),onClick:r[0]||=e=>(0,u.unref)(c).chain().focus().toggleBold().run()},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(N))]),_:1},8,[`class`])):(0,u.createCommentVNode)(``,!0),v.value?((0,u.openBlock)(),(0,u.createBlock)(g,{key:3,variant:`light`,type:`button`,class:(0,u.normalizeClass)(f.value),onClick:r[1]||=e=>(0,u.unref)(c).chain().focus().toggleItalic().run()},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(Xn))]),_:1},8,[`class`])):(0,u.createCommentVNode)(``,!0),v.value?((0,u.openBlock)(),(0,u.createBlock)(g,{key:4,variant:`light`,type:`button`,class:(0,u.normalizeClass)(p.value),onClick:r[2]||=e=>(0,u.unref)(c).chain().focus().toggleUnderline().run()},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(ia))]),_:1},8,[`class`])):(0,u.createCommentVNode)(``,!0),v.value?((0,u.openBlock)(),(0,u.createBlock)(g,{key:5,variant:`light`,type:`button`,class:(0,u.normalizeClass)(m.value),onClick:r[3]||=e=>(0,u.unref)(c).chain().focus().toggleBulletList().run()},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(ue))]),_:1},8,[`class`])):(0,u.createCommentVNode)(``,!0),v.value?((0,u.openBlock)(),(0,u.createBlock)(g,{key:6,variant:`light`,type:`button`,class:(0,u.normalizeClass)(h.value),onClick:r[4]||=e=>(0,u.unref)(c).chain().focus().toggleOrderedList().run()},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(ti))]),_:1},8,[`class`])):(0,u.createCommentVNode)(``,!0),(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createElementBlock)(`span`,null,[v.value?((0,u.openBlock)(),(0,u.createBlock)(g,{key:0,ref_key:`linkButton`,ref:A,variant:`light`,type:`button`,class:(0,u.normalizeClass)(_.value),onClick:j,disabled:!E.value},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(En))]),_:1},8,[`class`,`disabled`])):(0,u.createCommentVNode)(``,!0)])),[[(0,u.unref)(lH),D.value]])]),O.value?((0,u.openBlock)(),(0,u.createBlock)(sN,{key:3,previousUrl:k.value,onSubmit:M,onCancel:ee},null,8,[`previousUrl`])):(0,u.createCommentVNode)(``,!0)],2),(0,u.createVNode)(Ym,{text:n.errorText,state:n.state},null,8,[`text`,`state`])],64))}}),hH={class:`header`},gH={class:`icon-close-wrapper`},_H={class:`navbar`},vH={class:`nav navbar-nav w-100`},yH={class:`nav-item`},bH={class:`nav-item`},xH=(0,u.defineComponent)({__name:`BDMobileMenu`,props:{active:{type:Boolean,default:void 0},options:{}},emits:[`hide`,`signout`],setup(e,{emit:t}){let n=t,r=e,i=(0,u.computed)(()=>({active:r.active===!0,inactive:r.active===!1})),a=()=>n(`hide`),o=()=>n(`signout`);return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:(0,u.normalizeClass)([`bd-mobile-menu`,i.value])},[(0,u.createElementVNode)(`div`,hH,[t[0]||=(0,u.createElementVNode)(`div`,null,`Menu`,-1),(0,u.createElementVNode)(`div`,gH,[(0,u.createVNode)(Ye,{onClick:a})])]),(0,u.createElementVNode)(`nav`,_H,[(0,u.createElementVNode)(`ul`,vH,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(r.options,e=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,yH,[(0,u.createVNode)(h,(0,u.mergeProps)({class:`nav-link`},{ref_for:!0},e,{onClick:a}),null,16)]))),256)),(0,u.renderSlot)(e.$slots,`special-options`),(0,u.createElementVNode)(`li`,bH,[(0,u.createVNode)(h,{class:`nav-link`,text:`Uitloggen`,onClick:o})])])])],2))}}),SH={class:`bd-user`},CH={class:`bd-user__information`},wH={class:`text-break`},TH={class:`overflow-x-hidden`},EH=(0,u.defineComponent)({__name:`BDUser`,props:{name:{default:``},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(e){let t=e,n=(0,u.computed)(()=>typeof t.details==`string`?t.details:t.details?.join(` • `));return(e,r)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,SH,[t.hideImage?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createBlock)(Wa,(0,u.mergeProps)({key:0},t.img,{size:`sm`}),null,16)),(0,u.createElementVNode)(`div`,CH,[(0,u.createElementVNode)(`header`,null,[(0,u.createElementVNode)(`h5`,wH,(0,u.toDisplayString)(t.name),1),(0,u.renderSlot)(e.$slots,`header-extra`)]),(0,u.createElementVNode)(`span`,TH,(0,u.toDisplayString)(n.value),1)])]))}}),DH={class:`bd-chat-cloud-card`},OH={class:`bd-chat-cloud-card__header`},kH={class:`bd-chat-cloud-card__body`},AH=[`innerHTML`],jH={class:`bd-chat-cloud-card__footer`},MH={key:0,class:`pills-list__wrapper`},NH={class:`pills-list__ul`},PH=(0,u.defineComponent)({__name:`BDChatCloud`,props:{headerTitle:{default:``},src:{default:void 0},username:{default:null},message:{default:``},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0},apiUrl:{default:``}},emits:[`show-attachment`,`action`],setup(e,{emit:t}){let n=e,r=t,i=(0,u.computed)(()=>n.isSender?`sender`:``),a=(0,u.computed)(()=>kN(n.apiUrl,n.files,!1)),o=(0,u.computed)(()=>kN(n.apiUrl,n.files,!0)),s=()=>{r(`action`,`copy-message`)},c=e=>{r(`show-attachment`,e)};return(t,r)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:(0,u.normalizeClass)([`bd-chat-cloud`,i.value])},[(0,u.createVNode)(Wa,{src:n.src,username:n.username,size:`sm`},null,8,[`src`,`username`]),(0,u.createElementVNode)(`div`,DH,[(0,u.createElementVNode)(`div`,OH,[(0,u.renderSlot)(t.$slots,`header`,{},()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.headerTitle),1)]),(0,u.createVNode)(g,{variant:`outline-primary-dark`,size:`sm`,onClick:s},{default:(0,u.withCtx)(()=>[...r[0]||=[(0,u.createTextVNode)(` kopieer `,-1)]]),_:1})]),(0,u.createElementVNode)(`div`,kH,[(0,u.renderSlot)(t.$slots,`body`,{},()=>[(0,u.createElementVNode)(`div`,{class:`bd-chat-cloud-card__message`,innerHTML:n.message},null,8,AH)])]),(0,u.createElementVNode)(`div`,jH,[(0,u.renderSlot)(t.$slots,`footer`,{},()=>[e.pills?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,MH,[(0,u.createElementVNode)(`ul`,NH,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.pills,(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{key:t,class:`pills-list__li`},[(0,u.createVNode)(Qh,(0,u.mergeProps)({ref_for:!0},e),null,16)]))),128))])])):(0,u.createCommentVNode)(``,!0),a.value&&a.value.length>0?((0,u.openBlock)(),(0,u.createBlock)(pN,{key:1,files:a.value},null,8,[`files`])):(0,u.createCommentVNode)(``,!0),o.value&&o.value.length>0?((0,u.openBlock)(),(0,u.createBlock)(SN,{key:2,"fast-download":!0,files:o.value,onShow:c},null,8,[`files`])):(0,u.createCommentVNode)(``,!0)])])])],2))}}),FH=(0,u.defineComponent)({__name:`BDTableSortHeader`,props:[`active`,`label`,`sortDesc`],emits:[`sortAsc`,`sortDesc`],setup(e,{emit:t}){let n=e,r=t,i=(0,u.ref)(n.sortDesc),a=()=>{n.active&&(i.value=!i.value)},o=()=>{n.active&&r(i.value?`sortDesc`:`sortAsc`)},s=(0,u.computed)(()=>({"bd-table-sort":!0,active:n.active}));return(0,u.watch)(()=>n.active,(e,t)=>{e&&!t&&(i.value=!1,r(`sortAsc`))}),o(),(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`th`,{class:(0,u.normalizeClass)(s.value),onClick:t[0]||=e=>{a(),o()}},[(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(n.label),1),n.active&&!i.value?((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(Ri),{key:0})):n.active&&i.value?((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(Hi),{key:1})):((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(Ki),{key:2}))],2))}}),IH={class:`bd-table`},LH={key:0,class:`table`},RH={key:1},zH={key:2},BH=[`onClick`],VH={key:0},HH={key:1,class:`empty-text`},UH=(0,u.defineComponent)({__name:`BDTable`,props:[`fields`,`items`,`sortBy`,`sortDesc`,`tbodyTrClass`,`emptyText`],emits:[`row-click`,`sort-changed`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=(0,u.ref)(r.items),o=(0,u.ref)(r.sortBy),s=e=>o.value=e,c=(e,t,n)=>{let r=t[e],i=n[e];if(r==null)return 1;if(i==null)return-1;let a=r.toString(),o=i.toString();return a.localeCompare(o,void 0,{numeric:!0})},l=e=>{a.value=a.value.sort((t,n)=>c(e,t,n)),i(`sort-changed`,{sortBy:e,sortDesc:!1})},d=e=>{a.value=a.value.sort((t,n)=>c(e,n,t)),i(`sort-changed`,{sortBy:e,sortDesc:!0})};return(0,u.watch)(()=>r.items,e=>{a.value=e}),t({Refresh:()=>{a.value=r.items}}),(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,IH,[r.items&&r.items.length>0?((0,u.openBlock)(),(0,u.createElementBlock)(`table`,LH,[(0,u.createElementVNode)(`thead`,null,[(0,u.createElementVNode)(`tr`,null,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(r.fields,e=>((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,null,[e.isVisible?((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:0},[e.sortable?((0,u.openBlock)(),(0,u.createBlock)(FH,{key:0,label:e.label,active:e.key==o.value,sortDesc:r.sortDesc,onClick:t=>s(e.key),onSortAsc:t=>l(e.key),onSortDesc:t=>d(e.key)},null,8,[`label`,`active`,`sortDesc`,`onClick`,`onSortAsc`,`onSortDesc`])):t.$slots.hasOwnProperty(`header_${e.key}`)?((0,u.openBlock)(),(0,u.createElementBlock)(`th`,RH,[(0,u.renderSlot)(t.$slots,`header_${e.key}`)])):((0,u.openBlock)(),(0,u.createElementBlock)(`th`,zH,(0,u.toDisplayString)(e.label),1))],64)):(0,u.createCommentVNode)(``,!0)],64))),256))])]),(0,u.createElementVNode)(`tbody`,null,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(a.value,n=>((0,u.openBlock)(),(0,u.createElementBlock)(`tr`,{class:(0,u.normalizeClass)(r.tbodyTrClass&&r.tbodyTrClass(n)),onClick:e=>i(`row-click`,n)},[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.fields,e=>((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,null,[e.isVisible?((0,u.openBlock)(),(0,u.createElementBlock)(`td`,VH,[t.$slots.hasOwnProperty(e.key)?(0,u.renderSlot)(t.$slots,e.key,{key:0,row:n,item:n,value:n[e.key]}):((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:1},[(0,u.createTextVNode)((0,u.toDisplayString)(n[e.key]),1)],64))])):(0,u.createCommentVNode)(``,!0)],64))),256))],10,BH))),256))])])):((0,u.openBlock)(),(0,u.createElementBlock)(`p`,HH,(0,u.toDisplayString)(r.emptyText),1))]))}}),WH=[`id`],GH={key:0,class:`toast-body__title`},KH={class:`actions`},qH=[`textContent`],JH=[`textContent`],YH={class:`icon-wrapper`},XH=[`textContent`],ZH=[`textContent`],QH=3e4,$H=5e3,eU=(0,u.defineComponent)({__name:`BDVideoCallToast`,props:{id:{},contactInfoReceiver:{},isSender:{type:Boolean},firstNameSender:{},canceled:{type:Boolean},disabled:{type:Boolean},localization:{}},emits:[`reject-video-call`,`accept-video-call`],setup(e,{emit:t}){let n=e,r=t,i=(0,u.ref)(!1),a=(0,u.ref)(!1),o=null,s=null,c=(0,u.computed)(()=>{let e=`video-call-toast`;return n.id&&(e+=`-${n.id}`),e}),l=(0,u.computed)(()=>i.value?[i.value?`is-handled`:``,a.value?`is-handled--success`:``,n.canceled?`is-handled--canceled`:``].join(` `):``),d=(0,u.computed)(()=>n.canceled?n.localization.videoCallCanceled:a.value?n.localization.videoCallAccepted:n.localization.videoCallRejected),f=(0,u.computed)(()=>n.canceled?`${n.firstNameSender}${n.localization.notifyCallerWhenCanceled}`:n.isSender?n.contactInfoReceiver?`${n.contactInfoReceiver.name}${n.localization.notifyCallerWhenRejected}`:n.localization.notifyCallerWhenRejected:a.value?n.localization.openNewTabWhenAccepted:`${n.localization.notifyReceiverWhenRejected.start}${n.firstNameSender}${n.localization.notifyReceiverWhenRejected.end}`.replace(/\s\s+/g,` `));(0,u.watch)(()=>n.canceled,()=>{i.value=!0}),(0,u.onMounted)(()=>{let e=c.value,t=document.querySelector(`#${e}`);if(t){t.addEventListener(`hide.bs.toast`,y);var n={autohide:!0,delay:QH+$H};s=sH.getOrCreateInstance(t,n),s.show(),o=window.setTimeout(p,QH)}});let p=()=>{i.value||h()},m=()=>{h(),v()},h=()=>{i.value||(i.value=!0,r(`reject-video-call`,n.id))},_=()=>{i.value=!0,a.value=!0,r(`accept-video-call`,n.id),v()},v=()=>{window.clearTimeout(o),window.setTimeout(()=>s.hide(),$H)},y=()=>{i.value=!1,a.value=!1};return(t,r)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{id:c.value,class:`toast bd-video-call-toast`,role:`alert`,"aria-live":`assertive`,"aria-atomic":`true`},[(0,u.unref)(i)?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,GH,(0,u.toDisplayString)(n.localization.incomingVideoCall),1)),(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`toast-body__main`,l.value])},[(0,u.unref)(i)?((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:1},[(0,u.createElementVNode)(`div`,YH,[(0,u.createVNode)(P)]),(0,u.createElementVNode)(`div`,null,[(0,u.createElementVNode)(`p`,{textContent:(0,u.toDisplayString)(d.value),class:`title`},null,8,XH),(0,u.createElementVNode)(`p`,{textContent:(0,u.toDisplayString)(f.value)},null,8,ZH)])],64)):((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:0},[(0,u.createVNode)(rg,{value:e.contactInfoReceiver},null,8,[`value`]),(0,u.createElementVNode)(`div`,KH,[(0,u.createVNode)(g,{variant:`danger`,class:`text-center`,onClick:m},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(xe),(0,u.createElementVNode)(`span`,{textContent:(0,u.toDisplayString)(n.localization.rejectVideoCall)},null,8,qH)]),_:1}),(0,u.createVNode)(g,{variant:`success`,class:`text-center`,onClick:_},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(P),(0,u.createElementVNode)(`span`,{textContent:(0,u.toDisplayString)(n.localization.acceptVideoCall)},null,8,JH)]),_:1})])],64))],2)],8,WH))}}),tU=(0,u.defineComponent)({__name:`BDDropdown`,props:{size:{default:m.MD},variant:{default:ba.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(e){let t=e,{uniqueIdentifier:n}=Xa(),r=`__BD__DROPDOWN__${n.value}`,i=(0,u.computed)(()=>({class:{btn:t.toggleTag===`button`,[`btn-${t.variant}`]:t.toggleTag===`button`&&t.variant,[`btn-${t.size}`]:t.toggleTag===`button`&&t.size,[`${t.toggleClass}`]:t.toggleClass!==void 0,"dropdown-toggle-action":t.actionToggle},"data-bs-display":t.noFlip?`static`:null,"data-bs-offset":t.offset?t.offset:null,id:r})),a=(0,u.computed)(()=>({"dropdown-menu-end":t.right,"dropdown-menu-action":t.actionToggle})),o=(0,u.computed)(()=>({"aria-labelledby":r})),s=(0,u.ref)(),c=(0,u.ref)(),l=()=>{s.value.classList.remove(`show`),c.value.classList.remove(`show`),c.value.removeAttribute(`aria-expanded`)};return(e,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:`bd-dropdown dropdown`,onClick:n[0]||=(0,u.withModifiers)(()=>{},[`stop`])},[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(t.toggleTag),(0,u.mergeProps)({ref_key:`dropdownToggle`,ref:c,class:`dropdown-toggle`,target:`_self`,role:`button`,"data-bs-toggle":`dropdown`},i.value),{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(t.text),1)]),_:1},16)),(0,u.createElementVNode)(`ul`,(0,u.mergeProps)({ref_key:`dropdownMenu`,ref:s,class:[`dropdown-menu`,a.value]},o.value,{onClick:l}),[(0,u.renderSlot)(e.$slots,`default`)],16)]))}}),nU={class:`row bd-header`},rU={class:`col logo-mix`},iU=[`src`],aU={key:1,class:`col header-options`},oU={class:`col bd-btn-settings`},sU={key:2},cU=(0,u.defineComponent)({__name:`BDHeader`,props:{isEmbedded:{type:Boolean},dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},hasLogoutOption:{type:Boolean,default:!0}},emits:[`click-logo`,`signout`],setup(e,{emit:t}){let n=e,r=t,i=(0,u.computed)(()=>{let e=[];return n.isEmbedded?e:(n.headerOptions&&(e=e.concat(n.headerOptions)),n.dropdownOptions&&(e=e.concat(n.dropdownOptions)),e)}),a=(0,u.computed)(()=>!n.isEmbedded&&n.headerOptions&&n.headerOptions.length!==0),o=(0,u.ref)(void 0),s=()=>{n.isEmbedded||r(`click-logo`)},c=()=>r(`signout`),l=()=>o.value=!0,d=()=>o.value=!1;return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,null,[(0,u.createElementVNode)(`nav`,nU,[(0,u.createElementVNode)(`div`,rU,[(0,u.createVNode)(b,{viewBox:`0 0 351 61`,class:`logo bd-logo`,onClick:s}),n.organizationLogoSrc?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:0,class:`logo organization-logo`,src:n.organizationLogoSrc,alt:``},null,8,iU)):(0,u.createCommentVNode)(``,!0)]),n.isEmbedded?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:0,class:`col bd-hamburger`,onClick:l},[t[0]||=(0,u.createElementVNode)(`div`,null,`Menu`,-1),(0,u.createVNode)(Mr)])),a.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,aU,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(n.headerOptions,e=>((0,u.openBlock)(),(0,u.createBlock)(g,{class:`btn-header`,to:e.to,variant:`neutral`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.text),1)]),_:2},1032,[`to`]))),256))])):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`div`,oU,[n.isEmbedded?(0,u.createCommentVNode)(``,!0):(0,u.renderSlot)(e.$slots,`profile-side`,{key:0}),n.profileImageSrc?((0,u.openBlock)(),(0,u.createBlock)(Wa,{key:1,src:n.profileImageSrc,alt:n.profileImageAlt,size:`sm`},null,8,[`src`,`alt`])):(0,u.createCommentVNode)(``,!0),n.isEmbedded?((0,u.openBlock)(),(0,u.createElementBlock)(`span`,sU,(0,u.toDisplayString)(n.dropdownMenuTitle),1)):(0,u.createCommentVNode)(``,!0),n.isEmbedded?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createBlock)(tU,{key:3,text:n.dropdownMenuTitle,variant:`primary`,toggleTag:`a`,right:!0},{default:(0,u.withCtx)(()=>[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(n.dropdownOptions,(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(Cg,(0,u.mergeProps)({key:t},{ref_for:!0},e),null,16))),128)),n.hasLogoutOption?((0,u.openBlock)(),(0,u.createBlock)(Cg,{key:0,text:`Uitloggen`,onClick:c})):(0,u.createCommentVNode)(``,!0)]),_:1},8,[`text`]))])]),n.isEmbedded?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createBlock)(xH,{key:0,active:o.value,options:i.value,onHide:d,onSignout:c},{"special-options":(0,u.withCtx)(()=>[(0,u.renderSlot)(e.$slots,`mobile-menu-special-options`)]),_:3},8,[`active`,`options`]))],64))}}),lU=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20height='800px'%20width='800px'%20viewBox='0%200%20800%20800'%20fill='none'%20version='1.1'%20id='svg2'%20sodipodi:docname='bell-icon.svg'%20inkscape:version='1.4.2%20(ebf0e94,%202025-05-08)'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs2'%20/%3e%3csodipodi:namedview%20id='namedview2'%20pagecolor='%23ffffff'%20bordercolor='%23000000'%20borderopacity='0.25'%20inkscape:showpageshadow='2'%20inkscape:pageopacity='0.0'%20inkscape:pagecheckerboard='0'%20inkscape:deskcolor='%23d1d1d1'%20inkscape:zoom='0.93902601'%20inkscape:cx='361.01236'%20inkscape:cy='425.44082'%20inkscape:window-width='2323'%20inkscape:window-height='1321'%20inkscape:window-x='69'%20inkscape:window-y='-9'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg2'%20inkscape:lockguides='false'%20/%3e%3cpath%20fill='%23394156'%20d='m%20574.7134,517.70839%20c%20-43.02343,-19.42958%20-40.33991,-92.03173%20-40.37166,-94.13603%20l%20-0.86403,-55.08622%20c%20-0.84452,-53.84263%20-32.76289,-101.01787%20-79.52261,-120.73389%20-0.10055,-27.68538%20-26.24787,-50.17713%20-53.95375,-50.17713%20-27.70655,0%20-53.8532,22.49307%20-53.95442,50.17581%20-46.75774,19.71601%20-77.67395,68.62166%20-78.65724,122.46193%20l%20-0.86403,47.31%20c%20-0.0304,2.1043%201.78773,80.75463%20-41.23703,100.1842%20-4.90122,2.21412%20-7.59494,12.9473%20-6.46175,18.20508%201.13187,5.25843%203.98237,14.4119%209.36122,14.4119%20h%20110.87115%20c%202.23595,12.30035%208.05205,23.74336%2016.94754,33.01196%2011.8148,12.30961%2027.4393,19.08888%2043.99257,19.08888%2016.5546,0%2032.1791,-6.77927%2043.99258,-19.08888%208.89681,-9.26925%2014.71291,-20.71294%2016.94754,-33.01196%20h%20110.87115%20c%205.37885,0%208.22869,-9.1528%209.36189,-14.4119%201.13449,-5.25778%20-1.55789,-15.9903%20-6.45912,-18.20375%20z%20m%20-65.45742,-27.74178%20c%204.52282,13.71204%207.25707,16.20673%2016.33845,27.66562%20l%20-250.39475,-0.79275%20c%209.08005,-11.45756%2010.3714,-13.15885%2014.89422,-26.87287%20z%20M%20400.00135,224.00622%20c%2012.53255,0%2019.53015,4.82252%2022.8457,16.30126%20-8.54159,-1.77156%20-13.78747,-2.70563%20-22.8457,-2.70563%20-9.05823,0%20-14.30412,0.93341%20-22.84569,2.70563%203.3162,-11.47808%2010.31381,-16.30126%2022.84569,-16.30126%20z%20m%20-103.58848,199.63494%201.79933,-54.2217%20c%201.96022,-59.06989%2042.68543,-96.67497%20101.78915,-96.67497%2059.10373,0%2099.89499,35.80359%20101.78916,94.87564%20l%201.79933,56.1143%20c%200.0152,1.71731%201.47422,12.5683%201.23243,34.7862%20H%20295.17778%20c%200.71894,-22.23906%201.22119,-33.1218%201.23509,-34.87947%20z%20m%20103.58848,148.96978%20c%20-17.42517,0%20-25.43558,-5.58015%20-30.31694,-22.28624%20h%2060.63257%20c%20-4.88138,16.70609%20-12.88914,22.28624%20-30.31563,22.28624%20z'%20id='path1'%20style='stroke-width:0.899666;stroke-dasharray:none'%20sodipodi:nodetypes='ccscscscccsccsccscccccccscscscsssccccsccs'%20/%3e%3cpath%20fill='%23394156'%20d='m%20397.96944,283.33669%20c%20-49.41855,0%20-89.62361,40.20373%20-89.62361,89.62161%200,6.34354%205.14286,11.4864%2011.48639,11.4864%206.34355,0%2011.48641,-5.14286%2011.48641,-11.4864%200,-36.75076%2029.89938,-66.64948%2066.65148,-66.64948%206.34353,0%2011.48639,-5.14285%2011.48639,-11.4864%20-6.6e-4,-6.3442%20-5.14353,-11.48573%20-11.48706,-11.48573%20z'%20id='path2'%20style='stroke-width:0.904712;stroke-dasharray:none'%20sodipodi:nodetypes='ssssscs'%20/%3e%3c/svg%3e`,uU=async(e,t)=>{let n=e+t,r=new TextEncoder().encode(n),i=await crypto.subtle.digest(`SHA-256`,r);return Array.from(new Uint8Array(i)).map(e=>e.toString(16).padStart(2,`0`)).join(``)};function dU(){let e=()=>new Promise(e=>{if(document.readyState===`complete`)return e();window.addEventListener(`load`,()=>e(),{once:!0})});return{OnWindowLoaded:t=>{(0,u.onMounted)(()=>e().then(t))}}}var fU=(e,t,n)=>{let{OnWindowLoaded:r}=dU(),i=`lkj298fhGGJihge`,a=(0,u.ref)(!1),o=()=>t+`|`+n();return r(async()=>{if(t==null||n==null||n()==null){a.value=!1;return}let r=o(),s=localStorage.getItem(e),c=JSON.parse(s)||[],l=await uU(r,i);a.value=!c.includes(l)}),{hasUnfulfilledInteraction:a,MarkInteractionPerformed:async()=>{let t=await uU(o(),i),n=localStorage.getItem(e),r=JSON.parse(n)||[];r.includes(t)||(r.push(t),localStorage.setItem(e,JSON.stringify(r))),a.value=!1}}};function pU(e){let{OnWindowLoaded:t}=dU(),n;(0,u.onMounted)(()=>{n=document.addEventListener(`click`,t=>{if(!t||!t.target)return;let n=null;if(t.target instanceof Element&&(n=t.target.closest(`.popover`)),n)return;let r=ZB.getInstance(e.value);r&&r.hide()})});let r=()=>{e?.value!=null&&(ZB.getInstance(e.value)||new ZB(e.value))};t(r),(0,u.watch)(e,r),(0,u.onUnmounted)(()=>{if(e?.value!=null){let t=ZB.getInstance(e.value);t&&t.dispose()}n&&document.removeEventListener(`click`,n)})}var mU=[`data-bs-title`,`data-bs-content`],hU=[`title`],gU={key:0,class:`number-circle`,textContent:1},_U=(0,u.defineComponent)({__name:`BDNotificationButton`,props:{userId:{},getNotification:{}},setup(e){let t=e,{hasUnfulfilledInteraction:n,MarkInteractionPerformed:r}=fU(`notificationsRead`,t.userId,()=>t.getNotification?.linkUrl),i=(0,u.ref)();pU(i);let a=(0,u.computed)(()=>{let e=t.getNotification;if(!e)return!1;let{isActive:n,startDate:r,endDate:i}=e;if(!n)return!1;let a=new Date(r),o=new Date(i),s=new Date;return s>=a&&s<=o}),o=(0,u.computed)(()=>t.getNotification?.tooltip),s=(0,u.computed)(()=>t.getNotification?.title),c=(0,u.computed)(()=>{let e=t.getNotification;if(!e)return``;let{text:n,linkUrl:r,linkText:i}=e;return`
1299
+ `,parseMarkdown:()=>({type:`hardBreak`}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:a}=this.options,{splittableMarks:o}=r.extensionManager,s=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&s&&a){let t=s.filter(e=>o.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});function WM(e){let{char:t,allowSpaces:n,allowToIncludeChar:r,allowedPrefixes:i,startOfLine:a,$position:o}=e,s=n&&!r,c=DO(t),l=RegExp(`\\s${c}$`),u=a?`^`:``,d=r?``:c,f=RegExp(s?`${u}${c}.*?(?=\\s${d}|$)`:`${u}(?:^)?${c}[^\\s${d}]*`,`gm`),p=o.nodeBefore?.isText&&o.nodeBefore.text;if(!p)return null;let m=o.pos-p.length,h=Array.from(p.matchAll(f)).pop();if(!h||h.input===void 0||h.index===void 0)return null;let g=h.input.slice(Math.max(0,h.index-1),h.index),_=RegExp(`^[${i?.join(``)}\0]?$`).test(g);if(i!==null&&!_)return null;let v=m+h.index,y=v+h[0].length;return s&&l.test(p.slice(y-1,y+1))&&(h[0]+=` `,y+=1),v<o.pos&&y>=o.pos?{range:{from:v,to:y},query:h[0].slice(t.length),text:h[0]}:null}var GM=new Ly(`suggestion`);function KM({pluginKey:e=GM,editor:t,char:n=`@`,allowSpaces:r=!1,allowToIncludeChar:i=!1,allowedPrefixes:a=[` `],startOfLine:o=!1,decorationTag:s=`span`,decorationClass:c=`suggestion`,decorationContent:l=``,decorationEmptyClass:u=`is-empty`,command:d=()=>null,items:f=()=>[],render:p=()=>({}),allow:m=()=>!0,findSuggestionMatch:h=WM,shouldShow:g}){let _,v=p?.(),y=()=>{let e=t.state.selection.$anchor.pos,{top:n,right:r,bottom:i,left:a}=t.view.coordsAtPos(e);try{return new DOMRect(a,n,r-a,i-n)}catch{return null}},b=(n,r)=>r?()=>{let r=e.getState(t.state)?.decorationId;return n.dom.querySelector(`[data-decoration-id="${r}"]`)?.getBoundingClientRect()||null}:y;function x(n,r){var i;try{let r=e.getState(n.state),a=r?.decorationId?n.dom.querySelector(`[data-decoration-id="${r.decorationId}"]`):null,o={editor:t,range:r?.range||{from:0,to:0},query:r?.query||null,text:r?.text||null,items:[],command:e=>d({editor:t,range:r?.range||{from:0,to:0},props:e}),decorationNode:a,clientRect:b(n,a)};(i=v?.onExit)==null||i.call(v,o)}catch{}let a=n.state.tr.setMeta(r,{exit:!0});n.dispatch(a)}let S=new Py({key:e,view(){return{update:async(e,n)=>{var r,i,a,o,s;let c=this.key?.getState(n),l=this.key?.getState(e.state),u=c.active&&l.active&&c.range.from!==l.range.from,p=!c.active&&l.active,m=c.active&&!l.active,h=!p&&!m&&c.query!==l.query,g=p||u&&h,y=h||u,x=m||u&&h;if(!g&&!y&&!x)return;let S=x&&!g?c:l,C=e.dom.querySelector(`[data-decoration-id="${S.decorationId}"]`);_={editor:t,range:S.range,query:S.query,text:S.text,items:[],command:e=>d({editor:t,range:S.range,props:e}),decorationNode:C,clientRect:b(e,C)},g&&((r=v?.onBeforeStart)==null||r.call(v,_)),y&&((i=v?.onBeforeUpdate)==null||i.call(v,_)),(y||g)&&(_.items=await f({editor:t,query:S.query})),x&&((a=v?.onExit)==null||a.call(v,_)),y&&((o=v?.onUpdate)==null||o.call(v,_)),g&&((s=v?.onStart)==null||s.call(v,_))},destroy:()=>{var e;_&&((e=v?.onExit)==null||e.call(v,_))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(s,c,l,u){let{isEditable:d}=t,{composing:f}=t.view,{selection:p}=s,{empty:_,from:v}=p,y={...c},b=s.getMeta(e);if(b&&b.exit)return y.active=!1,y.decorationId=null,y.range={from:0,to:0},y.query=null,y.text=null,y;if(y.composing=f,d&&(_||t.view.composing)){(v<c.range.from||v>c.range.to)&&!f&&!c.composing&&(y.active=!1);let e=h({char:n,allowSpaces:r,allowToIncludeChar:i,allowedPrefixes:a,startOfLine:o,$position:p.$from}),l=`id_${Math.floor(Math.random()*4294967295)}`;e&&m({editor:t,state:u,range:e.range,isActive:c.active})&&(!g||g({editor:t,range:e.range,query:e.query,text:e.text,transaction:s}))?(y.active=!0,y.decorationId=c.decorationId?c.decorationId:l,y.range=e.range,y.query=e.query,y.text=e.text):y.active=!1}else y.active=!1;return y.active||(y.decorationId=null,y.range={from:0,to:0},y.query=null,y.text=null),y}},props:{handleKeyDown(n,r){var i;let{active:a,range:o}=S.getState(n.state);if(!a)return!1;if(r.key===`Escape`||r.key===`Esc`){let a=S.getState(n.state),o=_?.decorationNode??null??(a?.decorationId?n.dom.querySelector(`[data-decoration-id="${a.decorationId}"]`):null);if((v?.onKeyDown)?.call(v,{view:n,event:r,range:a.range}))return!0;let s={editor:t,range:a.range,query:a.query,text:a.text,items:[],command:e=>d({editor:t,range:a.range,props:e}),decorationNode:o,clientRect:o?()=>o.getBoundingClientRect()||null:null};return(i=v?.onExit)==null||i.call(v,s),x(n,e),!0}return(v?.onKeyDown)?.call(v,{view:n,event:r,range:o})||!1},decorations(e){let{active:t,range:n,decorationId:r,query:i}=S.getState(e);if(!t)return null;let a=!i?.length,o=[c];return a&&o.push(u),lw.create(e.doc,[ow.inline(n.from,n.to,{nodeName:s,class:o.join(` `),"data-decoration-id":r,"data-decoration-content":l})])}}});return S}function qM({editor:e,overrideSuggestionOptions:t,extensionName:n,char:r=`@`}){return{editor:e,char:r,pluginKey:new Ly,command:({editor:e,range:t,props:i})=>{var a;(e.view.state.selection.$to.nodeAfter?.text)?.startsWith(` `)&&(t.to+=1),e.chain().focus().insertContentAt(t,[{type:n,attrs:{...i,mentionSuggestionChar:r}},{type:`text`,text:` `}]).run(),(a=e.view.dom.ownerDocument.defaultView?.getSelection())==null||a.collapseToEnd()},allow:({state:e,range:t})=>{let r=e.doc.resolve(t.from),i=e.schema.nodes[n];return!!r.parent.type.contentMatch.matchType(i)},...t}}function JM(e){return(e.options.suggestions.length?e.options.suggestions:[e.options.suggestion]).map(t=>qM({editor:e.editor,overrideSuggestionOptions:t,extensionName:e.name,char:t.char}))}function YM(e,t){let n=JM(e);return n.find(e=>e.char===t)||(n.length?n[0]:null)}var XM=RO.create({name:`mention`,priority:101,addOptions(){return{HTMLAttributes:{},renderText({node:e,suggestion:t}){return`${t?.char??`@`}${e.attrs.label??e.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:e,node:t,suggestion:n}){return[`span`,VE(this.HTMLAttributes,e.HTMLAttributes),`${n?.char??`@`}${t.attrs.label??t.attrs.id}`]},suggestions:[],suggestion:{}}},group:`inline`,inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:e=>e.getAttribute(`data-id`),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute(`data-label`),renderHTML:e=>e.label?{"data-label":e.label}:{}},mentionSuggestionChar:{default:`@`,parseHTML:e=>e.getAttribute(`data-mention-suggestion-char`),renderHTML:e=>({"data-mention-suggestion-char":e.mentionSuggestionChar})}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:e,HTMLAttributes:t}){let n=YM(this,e.attrs.mentionSuggestionChar);if(this.options.renderLabel!==void 0)return console.warn(`renderLabel is deprecated use renderText and renderHTML instead`),[`span`,VE({"data-type":this.name},this.options.HTMLAttributes,t),this.options.renderLabel({options:this.options,node:e,suggestion:n})];let r={...this.options};r.HTMLAttributes=VE({"data-type":this.name},this.options.HTMLAttributes,t);let i=this.options.renderHTML({options:r,node:e,suggestion:n});return typeof i==`string`?[`span`,VE({"data-type":this.name},this.options.HTMLAttributes,t),i]:i},...PO({nodeName:`mention`,name:`@`,selfClosing:!0,allowedAttributes:[`id`,`label`,{name:`mentionSuggestionChar`,skipIfDefault:`@`}],parseAttributes:e=>{let t={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g,r=n.exec(e);for(;r!==null;){let[,i,a,o]=r;t[i===`char`?`mentionSuggestionChar`:i]=a??o,r=n.exec(e)}return t},serializeAttributes:e=>Object.entries(e).filter(([,e])=>e!=null).map(([e,t])=>`${e===`mentionSuggestionChar`?`char`:e}="${t}"`).join(` `)}),renderText({node:e}){let t={options:this.options,node:e,suggestion:YM(this,e.attrs.mentionSuggestionChar)};return this.options.renderLabel===void 0?this.options.renderText(t):(console.warn(`renderLabel is deprecated use renderText and renderHTML instead`),this.options.renderLabel(t))},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:e,state:t})=>{let n=!1,{selection:r}=t,{empty:i,anchor:a}=r;if(!i)return!1;let o=new a_,s=0;return t.doc.nodesBetween(a-1,a,(e,t)=>{if(e.type.name===this.name)return n=!0,o=e,s=t,!1}),n&&e.insertText(this.options.deleteTriggerWithBackspace?``:o.attrs.mentionSuggestionChar,s,s+o.nodeSize),n})}},addProseMirrorPlugins(){return JM(this).map(KM)}}),ZM={class:`dropdown-menu show`},QM=[`onClick`],$M={__name:`BDPlaceholderList`,props:{items:Array,command:Function},setup(e,{expose:t}){let n=e,r=(0,u.ref)(0);(0,u.watch)(()=>n.items,()=>{r.value=0});let i=e=>{let t=n.items[e];t&&n.command(t)};return t({onKeyDown:({event:e})=>n.items?.length?e.key===`ArrowUp`?(r.value=(r.value+n.items.length-1)%n.items.length,!0):e.key===`ArrowDown`?(r.value=(r.value+1)%n.items.length,!0):e.key===`Enter`?(i(r.value),!0):!1:!1}),(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,ZM,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.items,(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`button`,{key:t,class:(0,u.normalizeClass)([`dropdown-item`,{active:t===r.value}]),onClick:e=>i(t)},(0,u.toDisplayString)(e.label),11,QM))),128))]))}},eN=(e=[],t)=>({items:({query:t})=>e.filter(e=>e.label.toLowerCase().includes(t.toLowerCase())),command:({editor:e,range:t,props:n})=>{e.chain().focus().deleteRange(t).insertContent(`{${n.id}}`).run()},render:()=>{let e=null,n=n=>{let r=n.clientRect?.(),i=t?.value;if(!r||!i||!e?.element)return;let a=i.getBoundingClientRect(),o=r.left-a.left+i.scrollLeft,s=r.bottom-a.top+i.scrollTop,c=e.element;c.classList.add(`placeholder-tokens-menu`),c.style.position=`absolute`,c.style.left=`${Math.round(o)}px`,c.style.top=`${Math.round(s)}px`};return{onStart:r=>{e=new WO($M,{props:r,editor:r.editor});let i=t?.value;i&&e.element&&i.appendChild(e.element),n(r)},onUpdate(t){e&&e.updateProps(t),n(t)},onKeyDown(t){return e?.ref?.onKeyDown?.(t)??!1},onExit(){e&&(e.destroy(),e.element?.remove())}}}}),tN={class:`popover bd-link-input-popover show bd-link-input-bottom`},nN={class:`popover-body`},rN={class:`form-label`},iN={key:0,class:`validation-text`},aN={class:`d-flex gap-2 mt-2`},oN=[`disabled`],sN=(0,u.defineComponent)({__name:`BDLinkInput`,props:{previousUrl:{}},emits:[`submit`,`cancel`],setup(e,{emit:t}){let n=e,r=t,i=(0,u.ref)(n.previousUrl??``),a=(0,u.computed)(()=>{if(!i.value)return!!n.previousUrl;if(i.value===n.previousUrl)return!1;let e=i.value.trim().toLowerCase();return e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`www.`)}),o=(0,u.computed)(()=>i.value&&i.value===n.previousUrl?`De URL is niet gewijzigd`:i.value&&!a.value?`De URL moet beginnen met http://, https:// of www.`:``),s=(0,u.computed)(()=>n.previousUrl?i.value?`Wijzigen`:`Verwijderen`:`Toevoegen`),c=()=>r(`submit`,i.value),l=()=>r(`cancel`);return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,tN,[t[2]||=(0,u.createElementVNode)(`div`,{class:`popover-header`},`Link beheren`,-1),(0,u.createElementVNode)(`div`,nN,[(0,u.createElementVNode)(`label`,rN,[t[1]||=(0,u.createTextVNode)(` URL: `,-1),(0,u.withDirectives)((0,u.createElementVNode)(`input`,{"onUpdate:modelValue":t[0]||=e=>i.value=e,type:`text`,class:`form-control`,placeholder:`https://www.example.com`},null,512),[[u.vModelText,i.value]]),o.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,iN,(0,u.toDisplayString)(o.value),1)):(0,u.createCommentVNode)(``,!0)]),(0,u.createElementVNode)(`div`,aN,[(0,u.createElementVNode)(`button`,{type:`button`,class:`btn btn-primary btn-sm`,disabled:!a.value,onClick:c},(0,u.toDisplayString)(s.value),9,oN),(0,u.createElementVNode)(`button`,{type:`button`,class:`btn btn-secondary btn-sm`,onClick:l},` Annuleren `)])])]))}}),cN={BASIC:`basic`,FULL:`full`,FORMAT:`format`},lN={class:`attachment-list`},uN={class:`attachment-link`},dN={key:1,class:`attachment-no-download`},fN=[`href`],pN=(0,u.defineComponent)({__name:`BDAttachmentPreviewList`,props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:[`delete`],setup(e,{emit:t}){let n=t,r=e=>{n(`delete`,e)};return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`ul`,lN,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.files,t=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{class:`attachment-list__item`,key:t.CorrelationId},[(0,u.createElementVNode)(`div`,uN,[e.showDelete?((0,u.openBlock)(),(0,u.createBlock)(g,{key:0,variant:`remove`,onClick:e=>r(t),"aria-label":`verwijder`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(pi))]),_:1},8,[`onClick`])):(0,u.createCommentVNode)(``,!0),e.noDownload?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,dN,[(0,u.createVNode)((0,u.unref)(re)),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(t.Naam.trim()),1)])):((0,u.openBlock)(),(0,u.createElementBlock)(`a`,{key:2,href:t.downloadUrl},[(0,u.createVNode)((0,u.unref)(re)),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(t.Naam.trim()),1)],8,fN))])]))),128))]))}}),mN={class:`attachment-list`},hN={class:`attachment`},gN=[`onClick`],_N=[`src`,`alt`],vN=[`onClick`],yN=[`href`],bN={class:`btn btn-light download-button-image`},xN=[`src`,`alt`],SN=(0,u.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(e,{emit:t}){let n=e,r=t,i=e=>{r(`delete`,e)},a=(e,t)=>{e.target&&e.target.className===`img-preview`&&r(`show`,t)};return(t,r)=>((0,u.openBlock)(),(0,u.createElementBlock)(`ul`,mN,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.files,t=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{class:`attachment-list__item`,key:t.CorrelationId},[(0,u.createElementVNode)(`div`,hN,[e.showDelete?((0,u.openBlock)(),(0,u.createBlock)(g,{key:0,variant:`remove`,"aria-label":`verwijder`,onClick:(0,u.withModifiers)(e=>i(t),[`prevent`])},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(pi))]),_:1},8,[`onClick`])):(0,u.createCommentVNode)(``,!0),n.noDownload?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:1,onClick:e=>a(e,t)},[(0,u.createElementVNode)(`img`,{src:t.previewUrl,class:`img-preview`,alt:t.altName,loading:`lazy`},null,8,_N)],8,gN)):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:2,onClick:e=>a(e,t)},[n.fastDownload?((0,u.openBlock)(),(0,u.createElementBlock)(`a`,{key:0,href:t.downloadUrl,class:`download-link`},[(0,u.createElementVNode)(`button`,bN,[(0,u.createVNode)((0,u.unref)(Ft))])],8,yN)):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`img`,{src:t.previewUrl,alt:t.altName,class:`img-preview`,loading:`lazy`},null,8,xN)],8,vN))])]))),128))]))}}),CN=e=>e?.map(e=>e.CorrelationId),wN=e=>e.Naam.toLowerCase().endsWith(`.png`)||e.Naam.toLowerCase().endsWith(`.jpg`)||e.Naam.toLowerCase().endsWith(`.jpeg`)||e.Naam.toLowerCase().endsWith(`.gif`),TN=(e,t)=>t.DownloadUrl?t.DownloadUrl:t.identifier?`${e}/Collega/api/Conversation/GetConversationAttachment?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:t.url?t.url:t.Id?`${e}/Portaal/DownloadBerichtBijlage/${t.Id}`:t.FileId?`${e}/Portaal/DownloadStandardMessageAttachment/${t.StandardAttachmentId}/${t.FileId}`:`${e}/Portaal/DownloadBerichtStagingBijlage/${t.CorrelationId}`,EN=(e,t)=>t.ThumbnailUrl?t.ThumbnailUrl:t.identifier?`${e}/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:t.url?t.url:t.Id?`${e}/Portaal/DownloadBerichtBijlageThumbnail/${t.Id}`:t.StandardAttachmentId||t.standardAttachmentId?`${e}/Portaal/DownloadStandardMessageAttachmentThumbnail/${t.StandardAttachmentId}/${t.FileId}`:`${e}/Portaal/DownloadBerichtStagingBijlageThumbnail/${t.CorrelationId}`,DN=(e,t)=>t.identifier?`${e}/Collega/api/Conversation/GetConversationAttachment?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:null,ON=(e,t)=>t?wN(e):!wN(e),kN=(e=``,t,n)=>{if(t!==void 0)return t.filter(e=>ON(e,n)).map(t=>{let n=typeof t.CorrelationId==`string`?t.CorrelationId:t.CorrelationId==null?``:t.CorrelationId.toString();return{downloadUrl:TN(e,t),previewUrl:EN(e,t),fullImageUrl:DN(e,t),altName:`${t.Naam}`,...t,CorrelationId:n}})},AN=`bottom`,jN=`right`,MN=`left`,NN=`auto`,PN=[`top`,AN,jN,MN],FN=`start`,IN=`clippingParents`,LN=`viewport`,RN=`popper`,zN=`reference`,BN=PN.reduce(function(e,t){return e.concat([t+`-`+FN,t+`-end`])},[]),VN=[].concat(PN,[NN]).reduce(function(e,t){return e.concat([t,t+`-`+FN,t+`-end`])},[]),HN=`beforeRead`,UN=`read`,WN=`afterRead`,GN=`beforeMain`,KN=`main`,qN=`afterMain`,JN=`beforeWrite`,YN=`write`,XN=`afterWrite`,ZN=[HN,UN,WN,GN,KN,qN,JN,YN,XN];function QN(e){return e?(e.nodeName||``).toLowerCase():null}function $N(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function eP(e){return e instanceof $N(e).Element||e instanceof Element}function tP(e){return e instanceof $N(e).HTMLElement||e instanceof HTMLElement}function nP(e){return typeof ShadowRoot>`u`?!1:e instanceof $N(e).ShadowRoot||e instanceof ShadowRoot}function rP(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!tP(i)||!QN(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function iP(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!tP(r)||!QN(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var aP={name:`applyStyles`,enabled:!0,phase:`write`,fn:rP,effect:iP,requires:[`computeStyles`]};function oP(e){return e.split(`-`)[0]}var sP=Math.max,cP=Math.min,lP=Math.round;function uP(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function dP(){return!/^((?!chrome|android).)*safari/i.test(uP())}function fP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&tP(e)&&(i=e.offsetWidth>0&&lP(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&lP(r.height)/e.offsetHeight||1);var o=(eP(e)?$N(e):window).visualViewport,s=!dP()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function pP(e){var t=fP(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function mP(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nP(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function hP(e){return $N(e).getComputedStyle(e)}function gP(e){return[`table`,`td`,`th`].indexOf(QN(e))>=0}function _P(e){return((eP(e)?e.ownerDocument:e.document)||window.document).documentElement}function vP(e){return QN(e)===`html`?e:e.assignedSlot||e.parentNode||(nP(e)?e.host:null)||_P(e)}function yP(e){return!tP(e)||hP(e).position===`fixed`?null:e.offsetParent}function bP(e){var t=/firefox/i.test(uP());if(/Trident/i.test(uP())&&tP(e)&&hP(e).position===`fixed`)return null;var n=vP(e);for(nP(n)&&(n=n.host);tP(n)&&[`html`,`body`].indexOf(QN(n))<0;){var r=hP(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function xP(e){for(var t=$N(e),n=yP(e);n&&gP(n)&&hP(n).position===`static`;)n=yP(n);return n&&(QN(n)===`html`||QN(n)===`body`&&hP(n).position===`static`)?t:n||bP(e)||t}function SP(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function CP(e,t,n){return sP(e,cP(t,n))}function wP(e,t,n){var r=CP(e,t,n);return r>n?n:r}function TP(){return{top:0,right:0,bottom:0,left:0}}function EP(e){return Object.assign({},TP(),e)}function DP(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var OP=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,EP(typeof e==`number`?DP(e,PN):e)};function kP(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=oP(n.placement),c=SP(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=OP(i.padding,n),d=pP(a),f=c===`y`?`top`:MN,p=c===`y`?AN:jN,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=xP(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=CP(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function AP(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||mP(t.elements.popper,r)&&(t.elements.arrow=r))}var jP={name:`arrow`,enabled:!0,phase:`main`,fn:kP,effect:AP,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function MP(e){return e.split(`-`)[1]}var NP={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function PP(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:lP(n*i)/i||0,y:lP(r*i)/i||0}}function FP(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=MN,b=`top`,x=window;if(l){var S=xP(n),C=`clientHeight`,w=`clientWidth`;if(S===$N(n)&&(S=_P(n),hP(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=AN;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=jN;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&NP),O=u===!0?PP({x:p,y:h},$N(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function IP(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:oP(t.placement),variation:MP(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,FP(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,FP(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var LP={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:IP,data:{}},RP={passive:!0};function zP(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=$N(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,RP)}),s&&c.addEventListener(`resize`,n.update,RP),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,RP)}),s&&c.removeEventListener(`resize`,n.update,RP)}}var BP={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:zP,data:{}},VP={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function HP(e){return e.replace(/left|right|bottom|top/g,function(e){return VP[e]})}var UP={start:`end`,end:`start`};function WP(e){return e.replace(/start|end/g,function(e){return UP[e]})}function GP(e){var t=$N(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function KP(e){return fP(_P(e)).left+GP(e).scrollLeft}function qP(e,t){var n=$N(e),r=_P(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=dP();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+KP(e),y:c}}function JP(e){var t=_P(e),n=GP(e),r=e.ownerDocument?.body,i=sP(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=sP(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+KP(e),s=-n.scrollTop;return hP(r||t).direction===`rtl`&&(o+=sP(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function YP(e){var t=hP(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function XP(e){return[`html`,`body`,`#document`].indexOf(QN(e))>=0?e.ownerDocument.body:tP(e)&&YP(e)?e:XP(vP(e))}function ZP(e,t){t===void 0&&(t=[]);var n=XP(e),r=n===e.ownerDocument?.body,i=$N(n),a=r?[i].concat(i.visualViewport||[],YP(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(ZP(vP(a)))}function QP(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $P(e,t){var n=fP(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function eF(e,t,n){return t===`viewport`?QP(qP(e,n)):eP(t)?$P(t,n):QP(JP(_P(e)))}function tF(e){var t=ZP(vP(e)),n=[`absolute`,`fixed`].indexOf(hP(e).position)>=0&&tP(e)?xP(e):e;return eP(n)?t.filter(function(e){return eP(e)&&mP(e,n)&&QN(e)!==`body`}):[]}function nF(e,t,n,r){var i=t===`clippingParents`?tF(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=eF(e,n,r);return t.top=sP(i.top,t.top),t.right=cP(i.right,t.right),t.bottom=cP(i.bottom,t.bottom),t.left=sP(i.left,t.left),t},eF(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function rF(e){var t=e.reference,n=e.element,r=e.placement,i=r?oP(r):null,a=r?MP(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case AN:c={x:o,y:t.y+t.height};break;case jN:c={x:t.x+t.width,y:s};break;case MN:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?SP(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case FN:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function iF(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?IN:s,l=n.rootBoundary,u=l===void 0?LN:l,d=n.elementContext,f=d===void 0?RN:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=EP(typeof g==`number`?DP(g,PN):g),v=f===`popper`?zN:RN,y=e.rects.popper,b=e.elements[m?v:f],x=nF(eP(b)?b:b.contextElement||_P(e.elements.popper),c,u,o),S=fP(e.elements.reference),C=rF({reference:S,element:y,strategy:`absolute`,placement:i}),w=QP(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function aF(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?VN:c,u=MP(r),d=u?s?BN:BN.filter(function(e){return MP(e)===u}):PN,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=iF(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[oP(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function oF(e){if(oP(e)===`auto`)return[];var t=HP(e);return[WP(e),t,WP(t)]}function sF(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,_=oP(g)===g,v=c||(_||!m?[HP(g)]:oF(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(oP(n)===`auto`?aF(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=oP(E),O=MP(E)===FN,k=[`top`,AN].indexOf(D)>=0,A=k?`width`:`height`,j=iF(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),M=k?O?jN:MN:O?AN:`top`;b[A]>x[A]&&(M=HP(M));var ee=HP(M),te=[];if(a&&te.push(j[D]<=0),s&&te.push(j[M]<=0,j[ee]<=0),te.every(function(e){return e})){w=E,C=!1;break}S.set(E,te)}if(C)for(var ne=m?3:1,re=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},ie=ne;ie>0&&re(ie)!==`break`;ie--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var cF={name:`flip`,enabled:!0,phase:`main`,fn:sF,requiresIfExists:[`offset`],data:{_skip:!1}};function lF(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function uF(e){return[`top`,jN,AN,MN].some(function(t){return e[t]>=0})}function dF(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=iF(t,{elementContext:`reference`}),s=iF(t,{altBoundary:!0}),c=lF(o,r),l=lF(s,i,a),u=uF(c),d=uF(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var fF={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:dF};function pF(e,t,n){var r=oP(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function mF(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=VN.reduce(function(e,n){return e[n]=pF(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var hF={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:mF};function gF(e){var t=e.state,n=e.name;t.modifiersData[n]=rF({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var _F={name:`popperOffsets`,enabled:!0,phase:`read`,fn:gF,data:{}};function vF(e){return e===`x`?`y`:`x`}function yF(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,g=iF(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=oP(t.placement),v=MP(t.placement),y=!v,b=SP(_),x=vF(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:MN,A=b===`y`?AN:jN,j=b===`y`?`height`:`width`,M=S[b],ee=M+g[k],te=M-g[A],ne=p?-w[j]/2:0,re=v===`start`?C[j]:w[j],ie=v===`start`?-w[j]:-C[j],ae=t.elements.arrow,oe=p&&ae?pP(ae):{width:0,height:0},N=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:TP(),se=N[k],ce=N[A],le=CP(0,C[j],oe[j]),ue=y?C[j]/2-ne-le-se-E.mainAxis:re-le-se-E.mainAxis,de=y?-C[j]/2+ne+le+ce+E.mainAxis:ie+le+ce+E.mainAxis,fe=t.elements.arrow&&xP(t.elements.arrow),pe=fe?b===`y`?fe.clientTop||0:fe.clientLeft||0:0,me=D?.[b]??0,he=M+ue-me-pe,ge=M+de-me,_e=CP(p?cP(ee,he):ee,M,p?sP(te,ge):te);S[b]=_e,O[b]=_e-M}if(s){var P=b===`x`?`top`:MN,ve=b===`x`?AN:jN,ye=S[x],be=x===`y`?`height`:`width`,xe=ye+g[P],Se=ye-g[ve],Ce=[`top`,MN].indexOf(_)!==-1,we=D?.[x]??0,Te=Ce?xe:ye-C[be]-w[be]-we+E.altAxis,Ee=Ce?ye+C[be]+w[be]-we-E.altAxis:Se,De=p&&Ce?wP(Te,ye,Ee):CP(p?Te:xe,ye,p?Ee:Se);S[x]=De,O[x]=De-ye}t.modifiersData[r]=O}}var bF={name:`preventOverflow`,enabled:!0,phase:`main`,fn:yF,requiresIfExists:[`offset`]};function xF(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function SF(e){return e===$N(e)||!tP(e)?GP(e):xF(e)}function CF(e){var t=e.getBoundingClientRect(),n=lP(t.width)/e.offsetWidth||1,r=lP(t.height)/e.offsetHeight||1;return n!==1||r!==1}function wF(e,t,n){n===void 0&&(n=!1);var r=tP(t),i=tP(t)&&CF(t),a=_P(t),o=fP(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((QN(t)!==`body`||YP(a))&&(s=SF(t)),tP(t)?(c=fP(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=KP(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function TF(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function EF(e){var t=TF(e);return ZN.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function DF(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function OF(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var kF={placement:`bottom`,modifiers:[],strategy:`absolute`};function AF(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function jF(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?kF:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},kF,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:eP(e)?ZP(e):e.contextElement?ZP(e.contextElement):[],popper:ZP(t)};var s=EF(OF([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(AF(t,n)){i.rects={reference:wF(t,xP(n),i.options.strategy===`fixed`),popper:pP(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:DF(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!AF(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var MF=jF(),NF=jF({defaultModifiers:[BP,_F,LP,aP]}),PF=jF({defaultModifiers:[BP,_F,LP,aP,hF,cF,bF,jP,fF]}),FF=s({afterMain:()=>qN,afterRead:()=>WN,afterWrite:()=>XN,applyStyles:()=>aP,arrow:()=>jP,auto:()=>NN,basePlacements:()=>PN,beforeMain:()=>GN,beforeRead:()=>HN,beforeWrite:()=>JN,bottom:()=>AN,clippingParents:()=>IN,computeStyles:()=>LP,createPopper:()=>PF,createPopperBase:()=>MF,createPopperLite:()=>NF,detectOverflow:()=>iF,end:()=>`end`,eventListeners:()=>BP,flip:()=>cF,hide:()=>fF,left:()=>MN,main:()=>KN,modifierPhases:()=>ZN,offset:()=>hF,placements:()=>VN,popper:()=>RN,popperGenerator:()=>jF,popperOffsets:()=>_F,preventOverflow:()=>bF,read:()=>UN,reference:()=>zN,right:()=>jN,start:()=>FN,top:()=>`top`,variationPlacements:()=>BN,viewport:()=>LN,write:()=>YN}),IF=new Map,LF={set(e,t,n){IF.has(e)||IF.set(e,new Map);let r=IF.get(e);if(!r.has(t)&&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(t,n)},get(e,t){return IF.has(e)&&IF.get(e).get(t)||null},remove(e,t){if(!IF.has(e))return;let n=IF.get(e);n.delete(t),n.size===0&&IF.delete(e)}},RF=1e6,zF=1e3,BF=`transitionend`,VF=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),HF=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),UF=e=>{do e+=Math.floor(Math.random()*RF);while(document.getElementById(e));return e},WF=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);return!Number.parseFloat(t)&&!Number.parseFloat(n)?0:(t=t.split(`,`)[0],n=n.split(`,`)[0],(Number.parseFloat(t)+Number.parseFloat(n))*zF)},GF=e=>{e.dispatchEvent(new Event(BF))},KF=e=>!e||typeof e!=`object`?!1:(e.jquery!==void 0&&(e=e[0]),e.nodeType!==void 0),qF=e=>KF(e)?e.jquery?e[0]:e:typeof e==`string`&&e.length>0?document.querySelector(VF(e)):null,JF=e=>{if(!KF(e)||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).getPropertyValue(`visibility`)===`visible`,n=e.closest(`details:not([open])`);if(!n)return t;if(n!==e){let t=e.closest(`summary`);if(t&&t.parentNode!==n||t===null)return!1}return t},YF=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains(`disabled`)?!0:e.disabled===void 0?e.hasAttribute(`disabled`)&&e.getAttribute(`disabled`)!==`false`:e.disabled,XF=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode==`function`){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?XF(e.parentNode):null},ZF=()=>{},QF=e=>{e.offsetHeight},$F=()=>window.jQuery&&!document.body.hasAttribute(`data-bs-no-jquery`)?window.jQuery:null,eI=[],tI=e=>{document.readyState===`loading`?(eI.length||document.addEventListener(`DOMContentLoaded`,()=>{for(let e of eI)e()}),eI.push(e)):e()},nI=()=>document.documentElement.dir===`rtl`,rI=e=>{tI(()=>{let t=$F();if(t){let n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},iI=(e,t=[],n=e)=>typeof e==`function`?e.call(...t):n,aI=(e,t,n=!0)=>{if(!n){iI(e);return}let r=WF(t)+5,i=!1,a=({target:n})=>{n===t&&(i=!0,t.removeEventListener(BF,a),iI(e))};t.addEventListener(BF,a),setTimeout(()=>{i||GF(t)},r)},oI=(e,t,n,r)=>{let i=e.length,a=e.indexOf(t);return a===-1?!n&&r?e[i-1]:e[0]:(a+=n?1:-1,r&&(a=(a+i)%i),e[Math.max(0,Math.min(a,i-1))])},sI=/[^.]*(?=\..*)\.|.*/,cI=/\..*/,lI=/::\d+$/,uI={},dI=1,fI={mouseenter:`mouseover`,mouseleave:`mouseout`},pI=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`.split(`.`));function mI(e,t){return t&&`${t}::${dI++}`||e.uidEvent||dI++}function hI(e){let t=mI(e);return e.uidEvent=t,uI[t]=uI[t]||{},uI[t]}function gI(e,t){return function n(r){return wI(r,{delegateTarget:e}),n.oneOff&&Q.off(e,r.type,t),t.apply(e,[r])}}function _I(e,t,n){return function r(i){let a=e.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let s of a)if(s===o)return wI(i,{delegateTarget:o}),r.oneOff&&Q.off(e,i.type,t,n),n.apply(o,[i])}}function vI(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function yI(e,t,n){let r=typeof t==`string`,i=r?n:t||n,a=CI(e);return pI.has(a)||(a=e),[r,i,a]}function bI(e,t,n,r,i){if(typeof t!=`string`||!e)return;let[a,o,s]=yI(t,n,r);t in fI&&(o=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(o));let c=hI(e),l=c[s]||(c[s]={}),u=vI(l,o,a?n:null);if(u){u.oneOff=u.oneOff&&i;return}let d=mI(o,t.replace(sI,``)),f=a?_I(e,n,o):gI(e,o);f.delegationSelector=a?n:null,f.callable=o,f.oneOff=i,f.uidEvent=d,l[d]=f,e.addEventListener(s,f,a)}function xI(e,t,n,r,i){let a=vI(t[n],r,i);a&&(e.removeEventListener(n,a,!!i),delete t[n][a.uidEvent])}function SI(e,t,n,r){let i=t[n]||{};for(let[a,o]of Object.entries(i))a.includes(r)&&xI(e,t,n,o.callable,o.delegationSelector)}function CI(e){return e=e.replace(cI,``),fI[e]||e}var Q={on(e,t,n,r){bI(e,t,n,r,!1)},one(e,t,n,r){bI(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!=`string`||!e)return;let[i,a,o]=yI(t,n,r),s=o!==t,c=hI(e),l=c[o]||{},u=t.startsWith(`.`);if(a!==void 0){if(!Object.keys(l).length)return;xI(e,c,o,a,i?n:null);return}if(u)for(let n of Object.keys(c))SI(e,c,n,t.slice(1));for(let[n,r]of Object.entries(l)){let i=n.replace(lI,``);(!s||t.includes(i))&&xI(e,c,o,r.callable,r.delegationSelector)}},trigger(e,t,n){if(typeof t!=`string`||!e)return null;let r=$F(),i=t!==CI(t),a=null,o=!0,s=!0,c=!1;i&&r&&(a=r.Event(t,n),r(e).trigger(a),o=!a.isPropagationStopped(),s=!a.isImmediatePropagationStopped(),c=a.isDefaultPrevented());let l=wI(new Event(t,{bubbles:o,cancelable:!0}),n);return c&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l}};function wI(e,t={}){for(let[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function TI(e){if(e===`true`)return!0;if(e===`false`)return!1;if(e===Number(e).toString())return Number(e);if(e===``||e===`null`)return null;if(typeof e!=`string`)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function EI(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var DI={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${EI(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${EI(t)}`)},getDataAttributes(e){if(!e)return{};let t={},n=Object.keys(e.dataset).filter(e=>e.startsWith(`bs`)&&!e.startsWith(`bsConfig`));for(let r of n){let n=r.replace(/^bs/,``);n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=TI(e.dataset[r])}return t},getDataAttribute(e,t){return TI(e.getAttribute(`data-bs-${EI(t)}`))}},OI=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw 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){let n=KF(t)?DI.getDataAttribute(t,`config`):{};return{...this.constructor.Default,...typeof n==`object`?n:{},...KF(t)?DI.getDataAttributes(t):{},...typeof e==`object`?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[n,r]of Object.entries(t)){let t=e[n],i=KF(t)?`element`:HF(t);if(!new RegExp(r).test(i))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${i}" but expected type "${r}".`)}}},kI=`5.3.8`,AI=class extends OI{constructor(e,t){super(),e=qF(e),e&&(this._element=e,this._config=this._getConfig(t),LF.set(this._element,this.constructor.DATA_KEY,this))}dispose(){LF.remove(this._element,this.constructor.DATA_KEY),Q.off(this._element,this.constructor.EVENT_KEY);for(let e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){aI(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return LF.get(qF(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==`object`?t:null)}static get VERSION(){return kI}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},jI=e=>{let t=e.getAttribute(`data-bs-target`);if(!t||t===`#`){let n=e.getAttribute(`href`);if(!n||!n.includes(`#`)&&!n.startsWith(`.`))return null;n.includes(`#`)&&!n.startsWith(`#`)&&(n=`#${n.split(`#`)[1]}`),t=n&&n!==`#`?n.trim():null}return t?t.split(`,`).map(e=>VF(e)).join(`,`):null},$={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){let n=[],r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){let t=[`a`,`button`,`input`,`textarea`,`select`,`details`,`[tabindex]`,`[contenteditable="true"]`].map(e=>`${e}:not([tabindex^="-"])`).join(`,`);return this.find(t,e).filter(e=>!YF(e)&&JF(e))},getSelectorFromElement(e){let t=jI(e);return t&&$.findOne(t)?t:null},getElementFromSelector(e){let t=jI(e);return t?$.findOne(t):null},getMultipleElementsFromSelector(e){let t=jI(e);return t?$.find(t):[]}},MI=(e,t=`hide`)=>{let n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;Q.on(document,n,`[data-bs-dismiss="${r}"]`,function(n){if([`A`,`AREA`].includes(this.tagName)&&n.preventDefault(),YF(this))return;let i=$.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(i)[t]()})},NI=`alert`,PI=`.bs.alert`,FI=`close${PI}`,II=`closed${PI}`,LI=`fade`,RI=`show`,zI=class e extends AI{static get NAME(){return NI}close(){if(Q.trigger(this._element,FI).defaultPrevented)return;this._element.classList.remove(RI);let e=this._element.classList.contains(LI);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),Q.trigger(this._element,II),this.dispose()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};MI(zI,`close`),rI(zI);var BI=`button`,VI=`.bs.button`,HI=`.data-api`,UI=`active`,WI=`[data-bs-toggle="button"]`,GI=`click${VI}${HI}`,KI=class e extends AI{static get NAME(){return BI}toggle(){this._element.setAttribute(`aria-pressed`,this._element.classList.toggle(UI))}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);t===`toggle`&&n[t]()})}};Q.on(document,GI,WI,e=>{e.preventDefault();let t=e.target.closest(WI);KI.getOrCreateInstance(t).toggle()}),rI(KI);var qI=`swipe`,JI=`.bs.swipe`,YI=`touchstart${JI}`,XI=`touchmove${JI}`,ZI=`touchend${JI}`,QI=`pointerdown${JI}`,$I=`pointerup${JI}`,eL=`touch`,tL=`pen`,nL=`pointer-event`,rL=40,iL={endCallback:null,leftCallback:null,rightCallback:null},aL={endCallback:`(function|null)`,leftCallback:`(function|null)`,rightCallback:`(function|null)`},oL=class e extends OI{constructor(t,n){super(),this._element=t,!(!t||!e.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return iL}static get DefaultType(){return aL}static get NAME(){return qI}dispose(){Q.off(this._element,JI)}_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(),iI(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=rL)return;let t=e/this._deltaX;this._deltaX=0,t&&iI(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Q.on(this._element,QI,e=>this._start(e)),Q.on(this._element,$I,e=>this._end(e)),this._element.classList.add(nL)):(Q.on(this._element,YI,e=>this._start(e)),Q.on(this._element,XI,e=>this._move(e)),Q.on(this._element,ZI,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===tL||e.pointerType===eL)}static isSupported(){return`ontouchstart`in document.documentElement||navigator.maxTouchPoints>0}},sL=`carousel`,cL=`.bs.carousel`,lL=`.data-api`,uL=`ArrowLeft`,dL=`ArrowRight`,fL=500,pL=`next`,mL=`prev`,hL=`left`,gL=`right`,_L=`slide${cL}`,vL=`slid${cL}`,yL=`keydown${cL}`,bL=`mouseenter${cL}`,xL=`mouseleave${cL}`,SL=`dragstart${cL}`,CL=`load${cL}${lL}`,wL=`click${cL}${lL}`,TL=`carousel`,EL=`active`,DL=`slide`,OL=`carousel-item-end`,kL=`carousel-item-start`,AL=`carousel-item-next`,jL=`carousel-item-prev`,ML=`.active`,NL=`.carousel-item`,PL=ML+NL,FL=`.carousel-item img`,IL=`.carousel-indicators`,LL=`[data-bs-slide], [data-bs-slide-to]`,RL=`[data-bs-ride="carousel"]`,zL={[uL]:gL,[dL]:hL},BL={interval:5e3,keyboard:!0,pause:`hover`,ride:!1,touch:!0,wrap:!0},VL={interval:`(number|boolean)`,keyboard:`boolean`,pause:`(string|boolean)`,ride:`(boolean|string)`,touch:`boolean`,wrap:`boolean`},HL=class e extends AI{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=$.findOne(IL,this._element),this._addEventListeners(),this._config.ride===TL&&this.cycle()}static get Default(){return BL}static get DefaultType(){return VL}static get NAME(){return sL}next(){this._slide(pL)}nextWhenVisible(){!document.hidden&&JF(this._element)&&this.next()}prev(){this._slide(mL)}pause(){this._isSliding&&GF(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){Q.one(this._element,vL,()=>this.cycle());return}this.cycle()}}to(e){let t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){Q.one(this._element,vL,()=>this.to(e));return}let n=this._getItemIndex(this._getActive());if(n===e)return;let r=e>n?pL:mL;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Q.on(this._element,yL,e=>this._keydown(e)),this._config.pause===`hover`&&(Q.on(this._element,bL,()=>this.pause()),Q.on(this._element,xL,()=>this._maybeEnableCycle())),this._config.touch&&oL.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of $.find(FL,this._element))Q.on(e,SL,e=>e.preventDefault());this._swipeHelper=new oL(this._element,{leftCallback:()=>this._slide(this._directionToOrder(hL)),rightCallback:()=>this._slide(this._directionToOrder(gL)),endCallback:()=>{this._config.pause===`hover`&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),fL+this._config.interval))}})}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=zL[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let t=$.findOne(ML,this._indicatorsElement);t.classList.remove(EL),t.removeAttribute(`aria-current`);let n=$.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(EL),n.setAttribute(`aria-current`,`true`))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let t=Number.parseInt(e.getAttribute(`data-bs-interval`),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;let n=this._getActive(),r=e===pL,i=t||oI(this._getItems(),n,r,this._config.wrap);if(i===n)return;let a=this._getItemIndex(i),o=t=>Q.trigger(this._element,t,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(o(_L).defaultPrevented||!n||!i)return;let s=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;let c=r?kL:OL,l=r?AL:jL;i.classList.add(l),QF(i),n.classList.add(c),i.classList.add(c),this._queueCallback(()=>{i.classList.remove(c,l),i.classList.add(EL),n.classList.remove(EL,l,c),this._isSliding=!1,o(vL)},n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains(DL)}_getActive(){return $.findOne(PL,this._element)}_getItems(){return $.find(NL,this._element)}_clearInterval(){this._interval&&=(clearInterval(this._interval),null)}_directionToOrder(e){return nI()?e===hL?mL:pL:e===hL?pL:mL}_orderToDirection(e){return nI()?e===mL?hL:gL:e===mL?gL:hL}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`number`){n.to(t);return}if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};Q.on(document,wL,LL,function(e){let t=$.getElementFromSelector(this);if(!t||!t.classList.contains(TL))return;e.preventDefault();let n=HL.getOrCreateInstance(t),r=this.getAttribute(`data-bs-slide-to`);if(r){n.to(r),n._maybeEnableCycle();return}if(DI.getDataAttribute(this,`slide`)===`next`){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),Q.on(window,CL,()=>{let e=$.find(RL);for(let t of e)HL.getOrCreateInstance(t)}),rI(HL);var UL=`collapse`,WL=`.bs.collapse`,GL=`.data-api`,KL=`show${WL}`,qL=`shown${WL}`,JL=`hide${WL}`,YL=`hidden${WL}`,XL=`click${WL}${GL}`,ZL=`show`,QL=`collapse`,$L=`collapsing`,eR=`collapsed`,tR=`:scope .${QL} .${QL}`,nR=`collapse-horizontal`,rR=`width`,iR=`height`,aR=`.collapse.show, .collapse.collapsing`,oR=`[data-bs-toggle="collapse"]`,sR={parent:null,toggle:!0},cR={parent:`(null|element)`,toggle:`boolean`},lR=class e extends AI{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let n=$.find(oR);for(let e of n){let t=$.getSelectorFromElement(e),n=$.find(t).filter(e=>e===this._element);t!==null&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return sR}static get DefaultType(){return cR}static get NAME(){return UL}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(aR).filter(e=>e!==this._element).map(t=>e.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning||Q.trigger(this._element,KL).defaultPrevented)return;for(let e of t)e.hide();let n=this._getDimension();this._element.classList.remove(QL),this._element.classList.add($L),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let r=()=>{this._isTransitioning=!1,this._element.classList.remove($L),this._element.classList.add(QL,ZL),this._element.style[n]=``,Q.trigger(this._element,qL)},i=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||Q.trigger(this._element,JL).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,QF(this._element),this._element.classList.add($L),this._element.classList.remove(QL,ZL);for(let e of this._triggerArray){let t=$.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;let t=()=>{this._isTransitioning=!1,this._element.classList.remove($L),this._element.classList.add(QL),Q.trigger(this._element,YL)};this._element.style[e]=``,this._queueCallback(t,this._element,!0)}_isShown(e=this._element){return e.classList.contains(ZL)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=qF(e.parent),e}_getDimension(){return this._element.classList.contains(nR)?rR:iR}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(oR);for(let t of e){let e=$.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){let t=$.find(tR,this._config.parent);return $.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let n of e)n.classList.toggle(eR,!t),n.setAttribute(`aria-expanded`,t)}static jQueryInterface(t){let n={};return typeof t==`string`&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){let r=e.getOrCreateInstance(this,n);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t]()}})}};Q.on(document,XL,oR,function(e){(e.target.tagName===`A`||e.delegateTarget&&e.delegateTarget.tagName===`A`)&&e.preventDefault();for(let e of $.getMultipleElementsFromSelector(this))lR.getOrCreateInstance(e,{toggle:!1}).toggle()}),rI(lR);var uR=`dropdown`,dR=`.bs.dropdown`,fR=`.data-api`,pR=`Escape`,mR=`Tab`,hR=`ArrowUp`,gR=`ArrowDown`,_R=2,vR=`hide${dR}`,yR=`hidden${dR}`,bR=`show${dR}`,xR=`shown${dR}`,SR=`click${dR}${fR}`,CR=`keydown${dR}${fR}`,wR=`keyup${dR}${fR}`,TR=`show`,ER=`dropup`,DR=`dropend`,OR=`dropstart`,kR=`dropup-center`,AR=`dropdown-center`,jR=`[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)`,MR=`${jR}.${TR}`,NR=`.dropdown-menu`,PR=`.navbar`,FR=`.navbar-nav`,IR=`.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)`,LR=nI()?`top-end`:`top-start`,RR=nI()?`top-start`:`top-end`,zR=nI()?`bottom-end`:`bottom-start`,BR=nI()?`bottom-start`:`bottom-end`,VR=nI()?`left-start`:`right-start`,HR=nI()?`right-start`:`left-start`,UR=`top`,WR=`bottom`,GR={autoClose:!0,boundary:`clippingParents`,display:`dynamic`,offset:[0,2],popperConfig:null,reference:`toggle`},KR={autoClose:`(boolean|string)`,boundary:`(string|element)`,display:`string`,offset:`(array|string|function)`,popperConfig:`(null|object|function)`,reference:`(string|element|object)`},qR=class e extends AI{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=$.next(this._element,NR)[0]||$.prev(this._element,NR)[0]||$.findOne(NR,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return GR}static get DefaultType(){return KR}static get NAME(){return uR}toggle(){return this._isShown()?this.hide():this.show()}show(){if(YF(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!Q.trigger(this._element,bR,e).defaultPrevented){if(this._createPopper(),`ontouchstart`in document.documentElement&&!this._parent.closest(FR))for(let e of[].concat(...document.body.children))Q.on(e,`mouseover`,ZF);this._element.focus(),this._element.setAttribute(`aria-expanded`,!0),this._menu.classList.add(TR),this._element.classList.add(TR),Q.trigger(this._element,xR,e)}}hide(){if(YF(this._element)||!this._isShown())return;let 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(!Q.trigger(this._element,vR,e).defaultPrevented){if(`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))Q.off(e,`mouseover`,ZF);this._popper&&this._popper.destroy(),this._menu.classList.remove(TR),this._element.classList.remove(TR),this._element.setAttribute(`aria-expanded`,`false`),DI.removeDataAttribute(this._menu,`popper`),Q.trigger(this._element,yR,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference==`object`&&!KF(e.reference)&&typeof e.reference.getBoundingClientRect!=`function`)throw TypeError(`${uR.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(FF===void 0)throw TypeError(`Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)`);let e=this._element;this._config.reference===`parent`?e=this._parent:KF(this._config.reference)?e=qF(this._config.reference):typeof this._config.reference==`object`&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=PF(e,this._menu,t)}_isShown(){return this._menu.classList.contains(TR)}_getPlacement(){let e=this._parent;if(e.classList.contains(DR))return VR;if(e.classList.contains(OR))return HR;if(e.classList.contains(kR))return UR;if(e.classList.contains(AR))return WR;let t=getComputedStyle(this._menu).getPropertyValue(`--bs-position`).trim()===`end`;return e.classList.contains(ER)?t?RR:LR:t?BR:zR}_detectNavbar(){return this._element.closest(PR)!==null}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_getPopperConfig(){let 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`)&&(DI.setDataAttribute(this._menu,`popper`,`static`),e.modifiers=[{name:`applyStyles`,enabled:!1}]),{...e,...iI(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){let n=$.find(IR,this._menu).filter(e=>JF(e));n.length&&oI(n,t,e===gR,!n.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===_R||t.type===`keyup`&&t.key!==mR)return;let n=$.find(MR);for(let r of n){let n=e.getInstance(r);if(!n||n._config.autoClose===!1)continue;let i=t.composedPath(),a=i.includes(n._menu);if(i.includes(n._element)||n._config.autoClose===`inside`&&!a||n._config.autoClose===`outside`&&a||n._menu.contains(t.target)&&(t.type===`keyup`&&t.key===mR||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let o={relatedTarget:n._element};t.type===`click`&&(o.clickEvent=t),n._completeHide(o)}}static dataApiKeydownHandler(t){let n=/input|textarea/i.test(t.target.tagName),r=t.key===pR,i=[hR,gR].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();let a=this.matches(jR)?this:$.prev(this,jR)[0]||$.next(this,jR)[0]||$.findOne(jR,t.delegateTarget.parentNode),o=e.getOrCreateInstance(a);if(i){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),a.focus())}};Q.on(document,CR,jR,qR.dataApiKeydownHandler),Q.on(document,CR,NR,qR.dataApiKeydownHandler),Q.on(document,SR,qR.clearMenus),Q.on(document,wR,qR.clearMenus),Q.on(document,SR,jR,function(e){e.preventDefault(),qR.getOrCreateInstance(this).toggle()}),rI(qR);var JR=`backdrop`,YR=`fade`,XR=`show`,ZR=`mousedown.bs.${JR}`,QR={className:`modal-backdrop`,clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:`body`},$R={className:`string`,clickCallback:`(function|null)`,isAnimated:`boolean`,isVisible:`boolean`,rootElement:`(element|string)`},ez=class extends OI{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return QR}static get DefaultType(){return $R}static get NAME(){return JR}show(e){if(!this._config.isVisible){iI(e);return}this._append();let t=this._getElement();this._config.isAnimated&&QF(t),t.classList.add(XR),this._emulateAnimation(()=>{iI(e)})}hide(e){if(!this._config.isVisible){iI(e);return}this._getElement().classList.remove(XR),this._emulateAnimation(()=>{this.dispose(),iI(e)})}dispose(){this._isAppended&&=(Q.off(this._element,ZR),this._element.remove(),!1)}_getElement(){if(!this._element){let e=document.createElement(`div`);e.className=this._config.className,this._config.isAnimated&&e.classList.add(YR),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=qF(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),Q.on(e,ZR,()=>{iI(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){aI(e,this._getElement(),this._config.isAnimated)}},tz=`focustrap`,nz=`.bs.focustrap`,rz=`focusin${nz}`,iz=`keydown.tab${nz}`,az=`Tab`,oz=`forward`,sz=`backward`,cz={autofocus:!0,trapElement:null},lz={autofocus:`boolean`,trapElement:`element`},uz=class extends OI{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return cz}static get DefaultType(){return lz}static get NAME(){return tz}activate(){this._isActive||=(this._config.autofocus&&this._config.trapElement.focus(),Q.off(document,nz),Q.on(document,rz,e=>this._handleFocusin(e)),Q.on(document,iz,e=>this._handleKeydown(e)),!0)}deactivate(){this._isActive&&(this._isActive=!1,Q.off(document,nz))}_handleFocusin(e){let{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;let n=$.focusableChildren(t);n.length===0?t.focus():this._lastTabNavDirection===sz?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===az&&(this._lastTabNavDirection=e.shiftKey?sz:oz)}},dz=`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,fz=`.sticky-top`,pz=`padding-right`,mz=`margin-right`,hz=class{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,pz,t=>t+e),this._setElementAttributes(dz,pz,t=>t+e),this._setElementAttributes(fz,mz,t=>t-e)}reset(){this._resetElementAttributes(this._element,`overflow`),this._resetElementAttributes(this._element,pz),this._resetElementAttributes(dz,pz),this._resetElementAttributes(fz,mz)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,`overflow`),this._element.style.overflow=`hidden`}_setElementAttributes(e,t,n){let r=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);let i=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(i))}px`)})}_saveInitialAttribute(e,t){let n=e.style.getPropertyValue(t);n&&DI.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{let n=DI.getDataAttribute(e,t);if(n===null){e.style.removeProperty(t);return}DI.removeDataAttribute(e,t),e.style.setProperty(t,n)})}_applyManipulationCallback(e,t){if(KF(e)){t(e);return}for(let n of $.find(e,this._element))t(n)}},gz=`modal`,_z=`.bs.modal`,vz=`.data-api`,yz=`Escape`,bz=`hide${_z}`,xz=`hidePrevented${_z}`,Sz=`hidden${_z}`,Cz=`show${_z}`,wz=`shown${_z}`,Tz=`resize${_z}`,Ez=`click.dismiss${_z}`,Dz=`mousedown.dismiss${_z}`,Oz=`keydown.dismiss${_z}`,kz=`click${_z}${vz}`,Az=`modal-open`,jz=`fade`,Mz=`show`,Nz=`modal-static`,Pz=`.modal.show`,Fz=`.modal-dialog`,Iz=`.modal-body`,Lz=`[data-bs-toggle="modal"]`,Rz={backdrop:!0,focus:!0,keyboard:!0},zz={backdrop:`(boolean|string)`,focus:`boolean`,keyboard:`boolean`},Bz=class e extends AI{constructor(e,t){super(e,t),this._dialog=$.findOne(Fz,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new hz,this._addEventListeners()}static get Default(){return Rz}static get DefaultType(){return zz}static get NAME(){return gz}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Q.trigger(this._element,Cz,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Az),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Q.trigger(this._element,bz).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Mz),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Q.off(window,_z),Q.off(this._dialog,_z),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ez({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new uz({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;let t=$.findOne(Iz,this._dialog);t&&(t.scrollTop=0),QF(this._element),this._element.classList.add(Mz),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Q.trigger(this._element,wz,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){Q.on(this._element,Oz,e=>{if(e.key===yz){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Q.on(window,Tz,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Q.on(this._element,Dz,e=>{Q.one(this._element,Ez,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(Az),this._resetAdjustments(),this._scrollBar.reset(),Q.trigger(this._element,Sz)})}_isAnimated(){return this._element.classList.contains(jz)}_triggerBackdropTransition(){if(Q.trigger(this._element,xz).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t===`hidden`||this._element.classList.contains(Nz)||(e||(this._element.style.overflowY=`hidden`),this._element.classList.add(Nz),this._queueCallback(()=>{this._element.classList.remove(Nz),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){let e=nI()?`paddingLeft`:`paddingRight`;this._element.style[e]=`${t}px`}if(!n&&e){let e=nI()?`paddingRight`:`paddingLeft`;this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft=``,this._element.style.paddingRight=``}static jQueryInterface(t,n){return this.each(function(){let r=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t](n)}})}};Q.on(document,kz,Lz,function(e){let t=$.getElementFromSelector(this);[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),Q.one(t,Cz,e=>{e.defaultPrevented||Q.one(t,Sz,()=>{JF(this)&&this.focus()})});let n=$.findOne(Pz);n&&Bz.getInstance(n).hide(),Bz.getOrCreateInstance(t).toggle(this)}),MI(Bz),rI(Bz);var Vz=`offcanvas`,Hz=`.bs.offcanvas`,Uz=`.data-api`,Wz=`load${Hz}${Uz}`,Gz=`Escape`,Kz=`show`,qz=`showing`,Jz=`hiding`,Yz=`offcanvas-backdrop`,Xz=`.offcanvas.show`,Zz=`show${Hz}`,Qz=`shown${Hz}`,$z=`hide${Hz}`,eB=`hidePrevented${Hz}`,tB=`hidden${Hz}`,nB=`resize${Hz}`,rB=`click${Hz}${Uz}`,iB=`keydown.dismiss${Hz}`,aB=`[data-bs-toggle="offcanvas"]`,oB={backdrop:!0,keyboard:!0,scroll:!1},sB={backdrop:`(boolean|string)`,keyboard:`boolean`,scroll:`boolean`},cB=class e extends AI{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return oB}static get DefaultType(){return sB}static get NAME(){return Vz}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||Q.trigger(this._element,Zz,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new hz().hide(),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.classList.add(qz),this._queueCallback(()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Kz),this._element.classList.remove(qz),Q.trigger(this._element,Qz,{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||Q.trigger(this._element,$z).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Jz),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Kz,Jz),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._config.scroll||new hz().reset(),Q.trigger(this._element,tB)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop===`static`){Q.trigger(this._element,eB);return}this.hide()},t=!!this._config.backdrop;return new ez({className:Yz,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new uz({trapElement:this._element})}_addEventListeners(){Q.on(this._element,iB,e=>{if(e.key===Gz){if(this._config.keyboard){this.hide();return}Q.trigger(this._element,eB)}})}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};Q.on(document,rB,aB,function(e){let t=$.getElementFromSelector(this);if([`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),YF(this))return;Q.one(t,tB,()=>{JF(this)&&this.focus()});let n=$.findOne(Xz);n&&n!==t&&cB.getInstance(n).hide(),cB.getOrCreateInstance(t).toggle(this)}),Q.on(window,Wz,()=>{for(let e of $.find(Xz))cB.getOrCreateInstance(e).show()}),Q.on(window,nB,()=>{for(let e of $.find(`[aria-modal][class*=show][class*=offcanvas-]`))getComputedStyle(e).position!==`fixed`&&cB.getOrCreateInstance(e).hide()}),MI(cB),rI(cB);var lB=/^aria-[\w-]*$/i,uB={"*":[`class`,`dir`,`id`,`lang`,`role`,lB],a:[`target`,`href`,`title`,`rel`],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},dB=new Set([`background`,`cite`,`href`,`itemtype`,`longdesc`,`poster`,`src`,`xlink:href`]),fB=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,pB=(e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?dB.has(n)?!!fB.test(e.nodeValue):!0:t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};function mB(e,t,n){if(!e.length)return e;if(n&&typeof n==`function`)return n(e);let r=new window.DOMParser().parseFromString(e,`text/html`),i=[].concat(...r.body.querySelectorAll(`*`));for(let e of i){let n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}let r=[].concat(...e.attributes),i=[].concat(t[`*`]||[],t[n]||[]);for(let t of r)pB(t,i)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}var hB=`TemplateFactory`,gB={allowList:uB,content:{},extraClass:``,html:!1,sanitize:!0,sanitizeFn:null,template:`<div></div>`},_B={allowList:`object`,content:`object`,extraClass:`(string|function)`,html:`boolean`,sanitize:`boolean`,sanitizeFn:`(null|function)`,template:`string`},vB={entry:`(string|element|function|null)`,selector:`(string|element)`},yB=class extends OI{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return gB}static get DefaultType(){return _B}static get NAME(){return hB}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(){let e=document.createElement(`div`);e.innerHTML=this._maybeSanitize(this._config.template);for(let[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);let t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(` `)),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},vB)}_setContent(e,t,n){let r=$.findOne(n,e);if(r){if(t=this._resolvePossibleFunction(t),!t){r.remove();return}if(KF(t)){this._putElementInTemplate(qF(t),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(t);return}r.textContent=t}}_maybeSanitize(e){return this._config.sanitize?mB(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return iI(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML=``,t.append(e);return}t.textContent=e.textContent}},bB=`tooltip`,xB=new Set([`sanitize`,`allowList`,`sanitizeFn`]),SB=`fade`,CB=`modal`,wB=`show`,TB=`.tooltip-inner`,EB=`.${CB}`,DB=`hide.bs.modal`,OB=`hover`,kB=`focus`,AB=`click`,jB=`manual`,MB=`hide`,NB=`hidden`,PB=`show`,FB=`shown`,IB=`inserted`,LB=`click`,RB=`focusin`,zB=`focusout`,BB=`mouseenter`,VB=`mouseleave`,HB={AUTO:`auto`,TOP:`top`,RIGHT:nI()?`left`:`right`,BOTTOM:`bottom`,LEFT:nI()?`right`:`left`},UB={allowList:uB,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`},WB={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`},GB=class e extends AI{constructor(e,t){if(FF===void 0)throw TypeError(`Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)`);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 UB}static get DefaultType(){return WB}static get NAME(){return bB}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Q.off(this._element.closest(EB),DB,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 Error(`Please use show on visible elements`);if(!(this._isWithContent()&&this._isEnabled))return;let e=Q.trigger(this._element,this.constructor.eventName(PB)),t=(XF(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();let n=this._getTipElement();this._element.setAttribute(`aria-describedby`,n.getAttribute(`id`));let{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),Q.trigger(this._element,this.constructor.eventName(IB))),this._popper=this._createPopper(n),n.classList.add(wB),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))Q.on(e,`mouseover`,ZF);this._queueCallback(()=>{Q.trigger(this._element,this.constructor.eventName(FB)),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!(!this._isShown()||Q.trigger(this._element,this.constructor.eventName(MB)).defaultPrevented)){if(this._getTipElement().classList.remove(wB),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))Q.off(e,`mouseover`,ZF);this._activeTrigger[AB]=!1,this._activeTrigger[kB]=!1,this._activeTrigger[OB]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(`aria-describedby`),Q.trigger(this._element,this.constructor.eventName(NB)))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||=this._createTipElement(this._newContent||this._getContentForTemplate()),this.tip}_createTipElement(e){let t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(SB,wB),t.classList.add(`bs-${this.constructor.NAME}-auto`);let n=UF(this.constructor.NAME).toString();return t.setAttribute(`id`,n),this._isAnimated()&&t.classList.add(SB),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new yB({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[TB]: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(SB)}_isShown(){return this.tip&&this.tip.classList.contains(wB)}_createPopper(e){let t=HB[iI(this._config.placement,[this,e,this._element]).toUpperCase()];return PF(this._element,e,this._getPopperConfig(t))}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_resolvePossibleFunction(e){return iI(e,[this._element,this._element])}_getPopperConfig(e){let 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:e=>{this._getTipElement().setAttribute(`data-popper-placement`,e.state.placement)}}]};return{...t,...iI(this._config.popperConfig,[void 0,t])}}_setListeners(){let e=this._config.trigger.split(` `);for(let t of e)if(t===`click`)Q.on(this._element,this.constructor.eventName(LB),this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[AB]=!(t._isShown()&&t._activeTrigger[AB]),t.toggle()});else if(t!==jB){let e=t===OB?this.constructor.eventName(BB):this.constructor.eventName(RB),n=t===OB?this.constructor.eventName(VB):this.constructor.eventName(zB);Q.on(this._element,e,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusin`?kB:OB]=!0,t._enter()}),Q.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusout`?kB:OB]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Q.on(this._element.closest(EB),DB,this._hideModalHandler)}_fixTitle(){let 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){let t=DI.getDataAttributes(this._element);for(let e of Object.keys(t))xB.has(e)&&delete t[e];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:qF(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(){let e={};for(let[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger=`manual`,e}_disposePopper(){this._popper&&=(this._popper.destroy(),null),this.tip&&=(this.tip.remove(),null)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};rI(GB);var KB=`popover`,qB=`.popover-header`,JB=`.popover-body`,YB={...GB.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`},XB={...GB.DefaultType,content:`(null|string|element|function)`},ZB=class e extends GB{static get Default(){return YB}static get DefaultType(){return XB}static get NAME(){return KB}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[qB]:this._getTitle(),[JB]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};rI(ZB);var QB=`scrollspy`,$B=`.bs.scrollspy`,eV=`.data-api`,tV=`activate${$B}`,nV=`click${$B}`,rV=`load${$B}${eV}`,iV=`dropdown-item`,aV=`active`,oV=`[data-bs-spy="scroll"]`,sV=`[href]`,cV=`.nav, .list-group`,lV=`.nav-link`,uV=`${lV}, .nav-item > ${lV}, .list-group-item`,dV=`.dropdown`,fV=`.dropdown-toggle`,pV={offset:null,rootMargin:`0px 0px -25%`,smoothScroll:!1,target:null,threshold:[.1,.5,1]},mV={offset:`(number|null)`,rootMargin:`string`,smoothScroll:`boolean`,target:`element`,threshold:`array`},hV=class e extends AI{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 pV}static get DefaultType(){return mV}static get NAME(){return QB}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=qF(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(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Q.off(this._config.target,nV),Q.on(this._config.target,nV,sV,e=>{let t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();let n=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:`smooth`});return}n.scrollTop=r}}))}_getNewObserver(){let e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){let t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(let a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(a));continue}let e=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&e){if(n(a),!r)return;continue}!i&&!e&&n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=$.find(sV,this._config.target);for(let t of e){if(!t.hash||YF(t))continue;let e=$.findOne(decodeURI(t.hash),this._element);JF(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(aV),this._activateParents(e),Q.trigger(this._element,tV,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(iV)){$.findOne(fV,e.closest(dV)).classList.add(aV);return}for(let t of $.parents(e,cV))for(let e of $.prev(t,uV))e.classList.add(aV)}_clearActiveClass(e){e.classList.remove(aV);let t=$.find(`${sV}.${aV}`,e);for(let e of t)e.classList.remove(aV)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};Q.on(window,rV,()=>{for(let e of $.find(oV))hV.getOrCreateInstance(e)}),rI(hV);var gV=`tab`,_V=`.bs.tab`,vV=`hide${_V}`,yV=`hidden${_V}`,bV=`show${_V}`,xV=`shown${_V}`,SV=`click${_V}`,CV=`keydown${_V}`,wV=`load${_V}`,TV=`ArrowLeft`,EV=`ArrowRight`,DV=`ArrowUp`,OV=`ArrowDown`,kV=`Home`,AV=`End`,jV=`active`,MV=`fade`,NV=`show`,PV=`dropdown`,FV=`.dropdown-toggle`,IV=`.dropdown-menu`,LV=`:not(${FV})`,RV=`.list-group, .nav, [role="tablist"]`,zV=`.nav-item, .list-group-item`,BV=`.nav-link${LV}, .list-group-item${LV}, [role="tab"]${LV}`,VV=`[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]`,HV=`${BV}, ${VV}`,UV=`.${jV}[data-bs-toggle="tab"], .${jV}[data-bs-toggle="pill"], .${jV}[data-bs-toggle="list"]`,WV=class e extends AI{constructor(e){super(e),this._parent=this._element.closest(RV),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Q.on(this._element,CV,e=>this._keydown(e)))}static get NAME(){return gV}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),n=t?Q.trigger(t,vV,{relatedTarget:e}):null;Q.trigger(e,bV,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(jV),this._activate($.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.add(NV);return}e.removeAttribute(`tabindex`),e.setAttribute(`aria-selected`,!0),this._toggleDropDown(e,!0),Q.trigger(e,xV,{relatedTarget:t})},e,e.classList.contains(MV)))}_deactivate(e,t){e&&(e.classList.remove(jV),e.blur(),this._deactivate($.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.remove(NV);return}e.setAttribute(`aria-selected`,!1),e.setAttribute(`tabindex`,`-1`),this._toggleDropDown(e,!1),Q.trigger(e,yV,{relatedTarget:t})},e,e.classList.contains(MV)))}_keydown(t){if(![TV,EV,DV,OV,kV,AV].includes(t.key))return;t.stopPropagation(),t.preventDefault();let n=this._getChildren().filter(e=>!YF(e)),r;if([kV,AV].includes(t.key))r=n[t.key===kV?0:n.length-1];else{let e=[EV,OV].includes(t.key);r=oI(n,t.target,e,!0)}r&&(r.focus({preventScroll:!0}),e.getOrCreateInstance(r).show())}_getChildren(){return $.find(HV,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,`role`,`tablist`);for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute(`aria-selected`,t),n!==e&&this._setAttributeIfNotExists(n,`role`,`presentation`),t||e.setAttribute(`tabindex`,`-1`),this._setAttributeIfNotExists(e,`role`,`tab`),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let t=$.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,`role`,`tabpanel`),e.id&&this._setAttributeIfNotExists(t,`aria-labelledby`,`${e.id}`))}_toggleDropDown(e,t){let n=this._getOuterElement(e);if(!n.classList.contains(PV))return;let r=(e,r)=>{let i=$.findOne(e,n);i&&i.classList.toggle(r,t)};r(FV,jV),r(IV,NV),n.setAttribute(`aria-expanded`,t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(jV)}_getInnerElement(e){return e.matches(HV)?e:$.findOne(HV,e)}_getOuterElement(e){return e.closest(zV)||e}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};Q.on(document,SV,VV,function(e){[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),!YF(this)&&WV.getOrCreateInstance(this).show()}),Q.on(window,wV,()=>{for(let e of $.find(UV))WV.getOrCreateInstance(e)}),rI(WV);var GV=`toast`,KV=`.bs.toast`,qV=`mouseover${KV}`,JV=`mouseout${KV}`,YV=`focusin${KV}`,XV=`focusout${KV}`,ZV=`hide${KV}`,QV=`hidden${KV}`,$V=`show${KV}`,eH=`shown${KV}`,tH=`fade`,nH=`hide`,rH=`show`,iH=`showing`,aH={animation:`boolean`,autohide:`boolean`,delay:`number`},oH={animation:!0,autohide:!0,delay:5e3},sH=class e extends AI{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return oH}static get DefaultType(){return aH}static get NAME(){return GV}show(){Q.trigger(this._element,$V).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(tH),this._element.classList.remove(nH),QF(this._element),this._element.classList.add(rH,iH),this._queueCallback(()=>{this._element.classList.remove(iH),Q.trigger(this._element,eH),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this.isShown()||Q.trigger(this._element,ZV).defaultPrevented||(this._element.classList.add(iH),this._queueCallback(()=>{this._element.classList.add(nH),this._element.classList.remove(iH,rH),Q.trigger(this._element,QV)},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(rH),super.dispose()}isShown(){return this._element.classList.contains(rH)}_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}let n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Q.on(this._element,qV,e=>this._onInteraction(e,!0)),Q.on(this._element,JV,e=>this._onInteraction(e,!1)),Q.on(this._element,YV,e=>this._onInteraction(e,!0)),Q.on(this._element,XV,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t](this)}})}};MI(sH),rI(sH);function cH(e,t){return t.value||e.getAttribute(`title`)||``}var lH={mounted:(e,t)=>{let n=cH(e,t);n&&e.setAttribute(`title`,n),new GB(e)},updated:(e,t)=>{let n=GB.getInstance(e);n&&n.dispose();let r=cH(e,t);r&&e.setAttribute(`title`,r),new GB(e)},unmounted:e=>{let t=GB.getInstance(e);t&&t.dispose()}},uH={key:0,class:`pills-list__wrapper`},dH={class:`pills-list__ul`},fH={class:`bd-markdown-editor__menu-bottom`},pH={key:1,class:`vr`},mH=(0,u.defineComponent)({__name:`BDMarkdownEditor`,props:{placeholder:{default:`Typ een bericht`},errorText:{default:`er is iets fout gegaan`},state:{type:[Boolean,null],default:null},variant:{default:cN.BASIC},files:{default:void 0},pills:{default:void 0},apiUrl:{default:``},tokens:{default:[]},modelValue:{}},emits:[`update:modelValue`,`upload`,`action`],setup(e,{emit:t}){let n=e,r=t,i=()=>{r(`upload`)},a=(0,u.ref)(null),o=Ra(n,`modelValue`,r),s=[GO,JO,YO,XM.configure({HTMLAttributes:{class:`mention`},suggestion:{...eN(n.tokens||[],a),char:`{`,allowSpaces:!0}}),Zj.configure({placeholder:n.placeholder}),UM,lj.configure({openOnClick:!1,validate:e=>/^(https?:\/\/|www\.)/i.test(e)})];(n.variant===cN.FULL||n.variant===cN.FORMAT)&&s.push(rM,cM,lM,BM,VM,HM);let c=UO({content:o.value,extensions:s,onUpdate:({editor:e})=>{let{view:t,state:n}=e,{from:i,to:a}=t.state.selection;if(n.doc.textBetween(i-1,a,``)==` `&&e.getAttributes(`link`).href!=null&&e.chain().setTextSelection({from:i-1,to:a}).toggleLink({href:e.getAttributes(`link`).href}).setTextSelection({from:a,to:a}).run(),e.getText().trim()===``){r(`update:modelValue`,``);return}r(`update:modelValue`,e.getHTML())}});(0,u.watch)(()=>n.modelValue,e=>{c.value.getHTML()!==e&&c.value.commands.setContent(e,!0,{preserveWhitespace:`full`})});let l=(0,u.computed)(()=>n.state===!1?`is-invalid`:null),d=(0,u.computed)(()=>x(`bold`)),f=(0,u.computed)(()=>x(`italic`)),p=(0,u.computed)(()=>x(`underline`)),m=(0,u.computed)(()=>x(`bulletList`)),h=(0,u.computed)(()=>x(`orderedList`)),_=(0,u.computed)(()=>x(`link`)),v=(0,u.computed)(()=>n.variant===cN.FULL||n.variant===cN.FORMAT),y=(0,u.computed)(()=>n.variant===cN.FULL),b=(0,u.computed)(()=>n.variant===cN.FULL||n.variant===cN.BASIC||!n.variant),x=e=>c.value&&c.value.isActive(e)?`active`:null,S=(0,u.computed)(()=>n.files&&n.files.length>0?kN(n.apiUrl,n.files,!1):null),C=(0,u.computed)(()=>n.files&&n.files.length>0?kN(n.apiUrl,n.files,!0):null),w=e=>{r(`action`,{name:`delete-attachment`,obj:e})},T=e=>{r(`action`,{name:`image-attachment`,obj:e})},E=(0,u.computed)(()=>{if(!c.value)return!1;let{from:e,to:t}=c.value.state.selection;return e!==t}),D=(0,u.computed)(()=>E.value?`Voeg een link toe`:`Selecteer eerst tekst`),O=(0,u.ref)(!1),k=(0,u.ref)(``),A=(0,u.ref)(null),j=()=>{k.value=c.value.getAttributes(`link`).href||``,O.value=!0},M=e=>{if(O.value=!1,!e){c.value.chain().focus().unsetLink().run();return}/^www\./i.test(e)&&(e=`https://${e}`),c.value.chain().focus().toggleLink({href:e}).run()},ee=()=>{O.value=!1};return(t,r)=>((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,null,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`bd-markdown-editor`,l.value]),ref_key:`wrapperRef`,ref:a},[(0,u.createVNode)((0,u.unref)(HO),{editor:(0,u.unref)(c)},null,8,[`editor`]),e.pills?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,uH,[(0,u.createElementVNode)(`ul`,dH,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.pills,(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{key:t,class:`pills-list__li`},[(0,u.createVNode)(Qh,(0,u.mergeProps)({ref_for:!0},e),null,16)]))),128))])])):(0,u.createCommentVNode)(``,!0),(0,u.renderSlot)(t.$slots,`default`),S.value?((0,u.openBlock)(),(0,u.createBlock)(pN,{key:1,files:S.value,"no-download":!0,"show-delete":!0,onDelete:w},null,8,[`files`])):(0,u.createCommentVNode)(``,!0),C.value?((0,u.openBlock)(),(0,u.createBlock)(SN,{key:2,files:C.value,"no-download":!0,"show-delete":!0,"fast-download":!1,onDelete:w,onShow:T},null,8,[`files`])):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`div`,fH,[b.value?((0,u.openBlock)(),(0,u.createBlock)(g,{key:0,variant:`light`,type:`button`,onClick:i},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(re))]),_:1})):(0,u.createCommentVNode)(``,!0),y.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,pH)):(0,u.createCommentVNode)(``,!0),v.value?((0,u.openBlock)(),(0,u.createBlock)(g,{key:2,variant:`light`,type:`button`,class:(0,u.normalizeClass)(d.value),onClick:r[0]||=e=>(0,u.unref)(c).chain().focus().toggleBold().run()},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(N))]),_:1},8,[`class`])):(0,u.createCommentVNode)(``,!0),v.value?((0,u.openBlock)(),(0,u.createBlock)(g,{key:3,variant:`light`,type:`button`,class:(0,u.normalizeClass)(f.value),onClick:r[1]||=e=>(0,u.unref)(c).chain().focus().toggleItalic().run()},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(Xn))]),_:1},8,[`class`])):(0,u.createCommentVNode)(``,!0),v.value?((0,u.openBlock)(),(0,u.createBlock)(g,{key:4,variant:`light`,type:`button`,class:(0,u.normalizeClass)(p.value),onClick:r[2]||=e=>(0,u.unref)(c).chain().focus().toggleUnderline().run()},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(ia))]),_:1},8,[`class`])):(0,u.createCommentVNode)(``,!0),v.value?((0,u.openBlock)(),(0,u.createBlock)(g,{key:5,variant:`light`,type:`button`,class:(0,u.normalizeClass)(m.value),onClick:r[3]||=e=>(0,u.unref)(c).chain().focus().toggleBulletList().run()},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(ue))]),_:1},8,[`class`])):(0,u.createCommentVNode)(``,!0),v.value?((0,u.openBlock)(),(0,u.createBlock)(g,{key:6,variant:`light`,type:`button`,class:(0,u.normalizeClass)(h.value),onClick:r[4]||=e=>(0,u.unref)(c).chain().focus().toggleOrderedList().run()},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(ti))]),_:1},8,[`class`])):(0,u.createCommentVNode)(``,!0),(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createElementBlock)(`span`,null,[v.value?((0,u.openBlock)(),(0,u.createBlock)(g,{key:0,ref_key:`linkButton`,ref:A,variant:`light`,type:`button`,class:(0,u.normalizeClass)(_.value),onClick:j,disabled:!E.value},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(En))]),_:1},8,[`class`,`disabled`])):(0,u.createCommentVNode)(``,!0)])),[[(0,u.unref)(lH),D.value]])]),O.value?((0,u.openBlock)(),(0,u.createBlock)(sN,{key:3,previousUrl:k.value,onSubmit:M,onCancel:ee},null,8,[`previousUrl`])):(0,u.createCommentVNode)(``,!0)],2),(0,u.createVNode)(Ym,{text:n.errorText,state:n.state},null,8,[`text`,`state`])],64))}}),hH={class:`header`},gH={class:`icon-close-wrapper`},_H={class:`navbar`},vH={class:`nav navbar-nav w-100`},yH={class:`nav-item`},bH={class:`nav-item`},xH=(0,u.defineComponent)({__name:`BDMobileMenu`,props:{active:{type:Boolean,default:void 0},options:{}},emits:[`hide`,`signout`],setup(e,{emit:t}){let n=t,r=e,i=(0,u.computed)(()=>({active:r.active===!0,inactive:r.active===!1})),a=()=>n(`hide`),o=()=>n(`signout`);return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:(0,u.normalizeClass)([`bd-mobile-menu`,i.value])},[(0,u.createElementVNode)(`div`,hH,[t[0]||=(0,u.createElementVNode)(`div`,null,`Menu`,-1),(0,u.createElementVNode)(`div`,gH,[(0,u.createVNode)(Ye,{onClick:a})])]),(0,u.createElementVNode)(`nav`,_H,[(0,u.createElementVNode)(`ul`,vH,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(r.options,e=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,yH,[(0,u.createVNode)(h,(0,u.mergeProps)({class:`nav-link`},{ref_for:!0},e,{onClick:a}),null,16)]))),256)),(0,u.renderSlot)(e.$slots,`special-options`),(0,u.createElementVNode)(`li`,bH,[(0,u.createVNode)(h,{class:`nav-link`,text:`Uitloggen`,onClick:o})])])])],2))}}),SH={class:`bd-user`},CH={class:`bd-user__information`},wH={class:`text-break`},TH={class:`overflow-x-hidden`},EH=(0,u.defineComponent)({__name:`BDUser`,props:{name:{default:``},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(e){let t=e,n=(0,u.computed)(()=>typeof t.details==`string`?t.details:t.details?.join(` • `));return(e,r)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,SH,[t.hideImage?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createBlock)(Wa,(0,u.mergeProps)({key:0},t.img,{size:`sm`}),null,16)),(0,u.createElementVNode)(`div`,CH,[(0,u.createElementVNode)(`header`,null,[(0,u.createElementVNode)(`h5`,wH,(0,u.toDisplayString)(t.name),1),(0,u.renderSlot)(e.$slots,`header-extra`)]),(0,u.createElementVNode)(`span`,TH,(0,u.toDisplayString)(n.value),1)])]))}}),DH={class:`bd-chat-cloud-card`},OH={class:`bd-chat-cloud-card__header`},kH={class:`bd-chat-cloud-card__body`},AH=[`innerHTML`],jH={class:`bd-chat-cloud-card__footer`},MH={key:0,class:`pills-list__wrapper`},NH={class:`pills-list__ul`},PH=(0,u.defineComponent)({__name:`BDChatCloud`,props:{headerTitle:{default:``},src:{default:void 0},username:{default:null},message:{default:``},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0},apiUrl:{default:``}},emits:[`show-attachment`,`action`],setup(e,{emit:t}){let n=e,r=t,i=(0,u.computed)(()=>n.isSender?`sender`:``),a=(0,u.computed)(()=>kN(n.apiUrl,n.files,!1)),o=(0,u.computed)(()=>kN(n.apiUrl,n.files,!0)),s=()=>{r(`action`,`copy-message`)},c=e=>{r(`show-attachment`,e)};return(t,r)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:(0,u.normalizeClass)([`bd-chat-cloud`,i.value])},[(0,u.createVNode)(Wa,{src:n.src,username:n.username,size:`sm`},null,8,[`src`,`username`]),(0,u.createElementVNode)(`div`,DH,[(0,u.createElementVNode)(`div`,OH,[(0,u.renderSlot)(t.$slots,`header`,{},()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.headerTitle),1)]),(0,u.createVNode)(g,{variant:`outline-primary-dark`,size:`sm`,onClick:s},{default:(0,u.withCtx)(()=>[...r[0]||=[(0,u.createTextVNode)(` kopieer `,-1)]]),_:1})]),(0,u.createElementVNode)(`div`,kH,[(0,u.renderSlot)(t.$slots,`body`,{},()=>[(0,u.createElementVNode)(`div`,{class:`bd-chat-cloud-card__message`,innerHTML:n.message},null,8,AH)])]),(0,u.createElementVNode)(`div`,jH,[(0,u.renderSlot)(t.$slots,`footer`,{},()=>[e.pills?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,MH,[(0,u.createElementVNode)(`ul`,NH,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.pills,(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{key:t,class:`pills-list__li`},[(0,u.createVNode)(Qh,(0,u.mergeProps)({ref_for:!0},e),null,16)]))),128))])])):(0,u.createCommentVNode)(``,!0),a.value&&a.value.length>0?((0,u.openBlock)(),(0,u.createBlock)(pN,{key:1,files:a.value},null,8,[`files`])):(0,u.createCommentVNode)(``,!0),o.value&&o.value.length>0?((0,u.openBlock)(),(0,u.createBlock)(SN,{key:2,"fast-download":!0,files:o.value,onShow:c},null,8,[`files`])):(0,u.createCommentVNode)(``,!0)])])])],2))}}),FH=(0,u.defineComponent)({__name:`BDTableSortHeader`,props:[`active`,`label`,`sortDesc`],emits:[`sortAsc`,`sortDesc`],setup(e,{emit:t}){let n=e,r=t,i=(0,u.ref)(n.sortDesc),a=()=>{n.active&&(i.value=!i.value)},o=()=>{n.active&&r(i.value?`sortDesc`:`sortAsc`)},s=(0,u.computed)(()=>({"bd-table-sort":!0,active:n.active}));return(0,u.watch)(()=>n.active,(e,t)=>{e&&!t&&(i.value=!1,r(`sortAsc`))}),o(),(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`th`,{class:(0,u.normalizeClass)(s.value),onClick:t[0]||=e=>{a(),o()}},[(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(n.label),1),n.active&&!i.value?((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(Ri),{key:0})):n.active&&i.value?((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(Hi),{key:1})):((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(Ki),{key:2}))],2))}}),IH={class:`bd-table`},LH={key:0,class:`table`},RH={key:1},zH={key:2},BH=[`onClick`],VH={key:0},HH={key:1,class:`empty-text`},UH=(0,u.defineComponent)({__name:`BDTable`,props:[`fields`,`items`,`sortBy`,`sortDesc`,`tbodyTrClass`,`emptyText`],emits:[`row-click`,`sort-changed`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=(0,u.ref)(r.items),o=(0,u.ref)(r.sortBy),s=e=>o.value=e,c=(e,t,n)=>{let r=t[e],i=n[e];if(r==null)return 1;if(i==null)return-1;let a=r.toString(),o=i.toString();return a.localeCompare(o,void 0,{numeric:!0})},l=e=>{a.value=a.value.sort((t,n)=>c(e,t,n)),i(`sort-changed`,{sortBy:e,sortDesc:!1})},d=e=>{a.value=a.value.sort((t,n)=>c(e,n,t)),i(`sort-changed`,{sortBy:e,sortDesc:!0})};return(0,u.watch)(()=>r.items,e=>{a.value=e}),(0,u.watch)(()=>r.sortBy,e=>{o.value=e}),t({Refresh:()=>{a.value=r.items}}),(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,IH,[r.items&&r.items.length>0?((0,u.openBlock)(),(0,u.createElementBlock)(`table`,LH,[(0,u.createElementVNode)(`thead`,null,[(0,u.createElementVNode)(`tr`,null,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(r.fields,e=>((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,null,[e.isVisible?((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:0},[e.sortable?((0,u.openBlock)(),(0,u.createBlock)(FH,{key:0,label:e.label,active:e.key==o.value,sortDesc:r.sortDesc,onClick:t=>s(e.key),onSortAsc:t=>l(e.key),onSortDesc:t=>d(e.key)},null,8,[`label`,`active`,`sortDesc`,`onClick`,`onSortAsc`,`onSortDesc`])):t.$slots.hasOwnProperty(`header_${e.key}`)?((0,u.openBlock)(),(0,u.createElementBlock)(`th`,RH,[(0,u.renderSlot)(t.$slots,`header_${e.key}`)])):((0,u.openBlock)(),(0,u.createElementBlock)(`th`,zH,(0,u.toDisplayString)(e.label),1))],64)):(0,u.createCommentVNode)(``,!0)],64))),256))])]),(0,u.createElementVNode)(`tbody`,null,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(a.value,n=>((0,u.openBlock)(),(0,u.createElementBlock)(`tr`,{class:(0,u.normalizeClass)(r.tbodyTrClass&&r.tbodyTrClass(n)),onClick:e=>i(`row-click`,n)},[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.fields,e=>((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,null,[e.isVisible?((0,u.openBlock)(),(0,u.createElementBlock)(`td`,VH,[t.$slots.hasOwnProperty(e.key)?(0,u.renderSlot)(t.$slots,e.key,{key:0,row:n,item:n,value:n[e.key]}):((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:1},[(0,u.createTextVNode)((0,u.toDisplayString)(n[e.key]),1)],64))])):(0,u.createCommentVNode)(``,!0)],64))),256))],10,BH))),256))])])):((0,u.openBlock)(),(0,u.createElementBlock)(`p`,HH,(0,u.toDisplayString)(r.emptyText),1))]))}}),WH=[`id`],GH={key:0,class:`toast-body__title`},KH={class:`actions`},qH=[`textContent`],JH=[`textContent`],YH={class:`icon-wrapper`},XH=[`textContent`],ZH=[`textContent`],QH=3e4,$H=5e3,eU=(0,u.defineComponent)({__name:`BDVideoCallToast`,props:{id:{},contactInfoReceiver:{},isSender:{type:Boolean},firstNameSender:{},canceled:{type:Boolean},disabled:{type:Boolean},localization:{}},emits:[`reject-video-call`,`accept-video-call`],setup(e,{emit:t}){let n=e,r=t,i=(0,u.ref)(!1),a=(0,u.ref)(!1),o=null,s=null,c=(0,u.computed)(()=>{let e=`video-call-toast`;return n.id&&(e+=`-${n.id}`),e}),l=(0,u.computed)(()=>i.value?[i.value?`is-handled`:``,a.value?`is-handled--success`:``,n.canceled?`is-handled--canceled`:``].join(` `):``),d=(0,u.computed)(()=>n.canceled?n.localization.videoCallCanceled:a.value?n.localization.videoCallAccepted:n.localization.videoCallRejected),f=(0,u.computed)(()=>n.canceled?`${n.firstNameSender}${n.localization.notifyCallerWhenCanceled}`:n.isSender?n.contactInfoReceiver?`${n.contactInfoReceiver.name}${n.localization.notifyCallerWhenRejected}`:n.localization.notifyCallerWhenRejected:a.value?n.localization.openNewTabWhenAccepted:`${n.localization.notifyReceiverWhenRejected.start}${n.firstNameSender}${n.localization.notifyReceiverWhenRejected.end}`.replace(/\s\s+/g,` `));(0,u.watch)(()=>n.canceled,()=>{i.value=!0}),(0,u.onMounted)(()=>{let e=c.value,t=document.querySelector(`#${e}`);if(t){t.addEventListener(`hide.bs.toast`,y);var n={autohide:!0,delay:QH+$H};s=sH.getOrCreateInstance(t,n),s.show(),o=window.setTimeout(p,QH)}});let p=()=>{i.value||h()},m=()=>{h(),v()},h=()=>{i.value||(i.value=!0,r(`reject-video-call`,n.id))},_=()=>{i.value=!0,a.value=!0,r(`accept-video-call`,n.id),v()},v=()=>{window.clearTimeout(o),window.setTimeout(()=>s.hide(),$H)},y=()=>{i.value=!1,a.value=!1};return(t,r)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{id:c.value,class:`toast bd-video-call-toast`,role:`alert`,"aria-live":`assertive`,"aria-atomic":`true`},[(0,u.unref)(i)?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,GH,(0,u.toDisplayString)(n.localization.incomingVideoCall),1)),(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`toast-body__main`,l.value])},[(0,u.unref)(i)?((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:1},[(0,u.createElementVNode)(`div`,YH,[(0,u.createVNode)(P)]),(0,u.createElementVNode)(`div`,null,[(0,u.createElementVNode)(`p`,{textContent:(0,u.toDisplayString)(d.value),class:`title`},null,8,XH),(0,u.createElementVNode)(`p`,{textContent:(0,u.toDisplayString)(f.value)},null,8,ZH)])],64)):((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:0},[(0,u.createVNode)(rg,{value:e.contactInfoReceiver},null,8,[`value`]),(0,u.createElementVNode)(`div`,KH,[(0,u.createVNode)(g,{variant:`danger`,class:`text-center`,onClick:m},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(xe),(0,u.createElementVNode)(`span`,{textContent:(0,u.toDisplayString)(n.localization.rejectVideoCall)},null,8,qH)]),_:1}),(0,u.createVNode)(g,{variant:`success`,class:`text-center`,onClick:_},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(P),(0,u.createElementVNode)(`span`,{textContent:(0,u.toDisplayString)(n.localization.acceptVideoCall)},null,8,JH)]),_:1})])],64))],2)],8,WH))}}),tU=(0,u.defineComponent)({__name:`BDDropdown`,props:{size:{default:m.MD},variant:{default:ba.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(e){let t=e,{uniqueIdentifier:n}=Xa(),r=`__BD__DROPDOWN__${n.value}`,i=(0,u.computed)(()=>({class:{btn:t.toggleTag===`button`,[`btn-${t.variant}`]:t.toggleTag===`button`&&t.variant,[`btn-${t.size}`]:t.toggleTag===`button`&&t.size,[`${t.toggleClass}`]:t.toggleClass!==void 0,"dropdown-toggle-action":t.actionToggle},"data-bs-display":t.noFlip?`static`:null,"data-bs-offset":t.offset?t.offset:null,id:r})),a=(0,u.computed)(()=>({"dropdown-menu-end":t.right,"dropdown-menu-action":t.actionToggle})),o=(0,u.computed)(()=>({"aria-labelledby":r})),s=(0,u.ref)(),c=(0,u.ref)(),l=()=>{s.value.classList.remove(`show`),c.value.classList.remove(`show`),c.value.removeAttribute(`aria-expanded`)};return(e,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:`bd-dropdown dropdown`,onClick:n[0]||=(0,u.withModifiers)(()=>{},[`stop`])},[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(t.toggleTag),(0,u.mergeProps)({ref_key:`dropdownToggle`,ref:c,class:`dropdown-toggle`,target:`_self`,role:`button`,"data-bs-toggle":`dropdown`},i.value),{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(t.text),1)]),_:1},16)),(0,u.createElementVNode)(`ul`,(0,u.mergeProps)({ref_key:`dropdownMenu`,ref:s,class:[`dropdown-menu`,a.value]},o.value,{onClick:l}),[(0,u.renderSlot)(e.$slots,`default`)],16)]))}}),nU={class:`row bd-header`},rU={class:`col logo-mix`},iU=[`src`],aU={key:1,class:`col header-options`},oU={class:`col bd-btn-settings`},sU={key:2},cU=(0,u.defineComponent)({__name:`BDHeader`,props:{isEmbedded:{type:Boolean},dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},hasLogoutOption:{type:Boolean,default:!0}},emits:[`click-logo`,`signout`],setup(e,{emit:t}){let n=e,r=t,i=(0,u.computed)(()=>{let e=[];return n.isEmbedded?e:(n.headerOptions&&(e=e.concat(n.headerOptions)),n.dropdownOptions&&(e=e.concat(n.dropdownOptions)),e)}),a=(0,u.computed)(()=>!n.isEmbedded&&n.headerOptions&&n.headerOptions.length!==0),o=(0,u.ref)(void 0),s=()=>{n.isEmbedded||r(`click-logo`)},c=()=>r(`signout`),l=()=>o.value=!0,d=()=>o.value=!1;return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,null,[(0,u.createElementVNode)(`nav`,nU,[(0,u.createElementVNode)(`div`,rU,[(0,u.createVNode)(b,{viewBox:`0 0 351 61`,class:`logo bd-logo`,onClick:s}),n.organizationLogoSrc?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:0,class:`logo organization-logo`,src:n.organizationLogoSrc,alt:``},null,8,iU)):(0,u.createCommentVNode)(``,!0)]),n.isEmbedded?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:0,class:`col bd-hamburger`,onClick:l},[t[0]||=(0,u.createElementVNode)(`div`,null,`Menu`,-1),(0,u.createVNode)(Mr)])),a.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,aU,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(n.headerOptions,e=>((0,u.openBlock)(),(0,u.createBlock)(g,{class:`btn-header`,to:e.to,variant:`neutral`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.text),1)]),_:2},1032,[`to`]))),256))])):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`div`,oU,[n.isEmbedded?(0,u.createCommentVNode)(``,!0):(0,u.renderSlot)(e.$slots,`profile-side`,{key:0}),n.profileImageSrc?((0,u.openBlock)(),(0,u.createBlock)(Wa,{key:1,src:n.profileImageSrc,alt:n.profileImageAlt,size:`sm`},null,8,[`src`,`alt`])):(0,u.createCommentVNode)(``,!0),n.isEmbedded?((0,u.openBlock)(),(0,u.createElementBlock)(`span`,sU,(0,u.toDisplayString)(n.dropdownMenuTitle),1)):(0,u.createCommentVNode)(``,!0),n.isEmbedded?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createBlock)(tU,{key:3,text:n.dropdownMenuTitle,variant:`primary`,toggleTag:`a`,right:!0},{default:(0,u.withCtx)(()=>[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(n.dropdownOptions,(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(Cg,(0,u.mergeProps)({key:t},{ref_for:!0},e),null,16))),128)),n.hasLogoutOption?((0,u.openBlock)(),(0,u.createBlock)(Cg,{key:0,text:`Uitloggen`,onClick:c})):(0,u.createCommentVNode)(``,!0)]),_:1},8,[`text`]))])]),n.isEmbedded?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createBlock)(xH,{key:0,active:o.value,options:i.value,onHide:d,onSignout:c},{"special-options":(0,u.withCtx)(()=>[(0,u.renderSlot)(e.$slots,`mobile-menu-special-options`)]),_:3},8,[`active`,`options`]))],64))}}),lU=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20height='800px'%20width='800px'%20viewBox='0%200%20800%20800'%20fill='none'%20version='1.1'%20id='svg2'%20sodipodi:docname='bell-icon.svg'%20inkscape:version='1.4.2%20(ebf0e94,%202025-05-08)'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs2'%20/%3e%3csodipodi:namedview%20id='namedview2'%20pagecolor='%23ffffff'%20bordercolor='%23000000'%20borderopacity='0.25'%20inkscape:showpageshadow='2'%20inkscape:pageopacity='0.0'%20inkscape:pagecheckerboard='0'%20inkscape:deskcolor='%23d1d1d1'%20inkscape:zoom='0.93902601'%20inkscape:cx='361.01236'%20inkscape:cy='425.44082'%20inkscape:window-width='2323'%20inkscape:window-height='1321'%20inkscape:window-x='69'%20inkscape:window-y='-9'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg2'%20inkscape:lockguides='false'%20/%3e%3cpath%20fill='%23394156'%20d='m%20574.7134,517.70839%20c%20-43.02343,-19.42958%20-40.33991,-92.03173%20-40.37166,-94.13603%20l%20-0.86403,-55.08622%20c%20-0.84452,-53.84263%20-32.76289,-101.01787%20-79.52261,-120.73389%20-0.10055,-27.68538%20-26.24787,-50.17713%20-53.95375,-50.17713%20-27.70655,0%20-53.8532,22.49307%20-53.95442,50.17581%20-46.75774,19.71601%20-77.67395,68.62166%20-78.65724,122.46193%20l%20-0.86403,47.31%20c%20-0.0304,2.1043%201.78773,80.75463%20-41.23703,100.1842%20-4.90122,2.21412%20-7.59494,12.9473%20-6.46175,18.20508%201.13187,5.25843%203.98237,14.4119%209.36122,14.4119%20h%20110.87115%20c%202.23595,12.30035%208.05205,23.74336%2016.94754,33.01196%2011.8148,12.30961%2027.4393,19.08888%2043.99257,19.08888%2016.5546,0%2032.1791,-6.77927%2043.99258,-19.08888%208.89681,-9.26925%2014.71291,-20.71294%2016.94754,-33.01196%20h%20110.87115%20c%205.37885,0%208.22869,-9.1528%209.36189,-14.4119%201.13449,-5.25778%20-1.55789,-15.9903%20-6.45912,-18.20375%20z%20m%20-65.45742,-27.74178%20c%204.52282,13.71204%207.25707,16.20673%2016.33845,27.66562%20l%20-250.39475,-0.79275%20c%209.08005,-11.45756%2010.3714,-13.15885%2014.89422,-26.87287%20z%20M%20400.00135,224.00622%20c%2012.53255,0%2019.53015,4.82252%2022.8457,16.30126%20-8.54159,-1.77156%20-13.78747,-2.70563%20-22.8457,-2.70563%20-9.05823,0%20-14.30412,0.93341%20-22.84569,2.70563%203.3162,-11.47808%2010.31381,-16.30126%2022.84569,-16.30126%20z%20m%20-103.58848,199.63494%201.79933,-54.2217%20c%201.96022,-59.06989%2042.68543,-96.67497%20101.78915,-96.67497%2059.10373,0%2099.89499,35.80359%20101.78916,94.87564%20l%201.79933,56.1143%20c%200.0152,1.71731%201.47422,12.5683%201.23243,34.7862%20H%20295.17778%20c%200.71894,-22.23906%201.22119,-33.1218%201.23509,-34.87947%20z%20m%20103.58848,148.96978%20c%20-17.42517,0%20-25.43558,-5.58015%20-30.31694,-22.28624%20h%2060.63257%20c%20-4.88138,16.70609%20-12.88914,22.28624%20-30.31563,22.28624%20z'%20id='path1'%20style='stroke-width:0.899666;stroke-dasharray:none'%20sodipodi:nodetypes='ccscscscccsccsccscccccccscscscsssccccsccs'%20/%3e%3cpath%20fill='%23394156'%20d='m%20397.96944,283.33669%20c%20-49.41855,0%20-89.62361,40.20373%20-89.62361,89.62161%200,6.34354%205.14286,11.4864%2011.48639,11.4864%206.34355,0%2011.48641,-5.14286%2011.48641,-11.4864%200,-36.75076%2029.89938,-66.64948%2066.65148,-66.64948%206.34353,0%2011.48639,-5.14285%2011.48639,-11.4864%20-6.6e-4,-6.3442%20-5.14353,-11.48573%20-11.48706,-11.48573%20z'%20id='path2'%20style='stroke-width:0.904712;stroke-dasharray:none'%20sodipodi:nodetypes='ssssscs'%20/%3e%3c/svg%3e`,uU=async(e,t)=>{let n=e+t,r=new TextEncoder().encode(n),i=await crypto.subtle.digest(`SHA-256`,r);return Array.from(new Uint8Array(i)).map(e=>e.toString(16).padStart(2,`0`)).join(``)};function dU(){let e=()=>new Promise(e=>{if(document.readyState===`complete`)return e();window.addEventListener(`load`,()=>e(),{once:!0})});return{OnWindowLoaded:t=>{(0,u.onMounted)(()=>e().then(t))}}}var fU=(e,t,n)=>{let{OnWindowLoaded:r}=dU(),i=`lkj298fhGGJihge`,a=(0,u.ref)(!1),o=()=>t+`|`+n();return r(async()=>{if(t==null||n==null||n()==null){a.value=!1;return}let r=o(),s=localStorage.getItem(e),c=JSON.parse(s)||[],l=await uU(r,i);a.value=!c.includes(l)}),{hasUnfulfilledInteraction:a,MarkInteractionPerformed:async()=>{let t=await uU(o(),i),n=localStorage.getItem(e),r=JSON.parse(n)||[];r.includes(t)||(r.push(t),localStorage.setItem(e,JSON.stringify(r))),a.value=!1}}};function pU(e){let{OnWindowLoaded:t}=dU(),n;(0,u.onMounted)(()=>{n=document.addEventListener(`click`,t=>{if(!t||!t.target)return;let n=null;if(t.target instanceof Element&&(n=t.target.closest(`.popover`)),n)return;let r=ZB.getInstance(e.value);r&&r.hide()})});let r=()=>{e?.value!=null&&(ZB.getInstance(e.value)||new ZB(e.value))};t(r),(0,u.watch)(e,r),(0,u.onUnmounted)(()=>{if(e?.value!=null){let t=ZB.getInstance(e.value);t&&t.dispose()}n&&document.removeEventListener(`click`,n)})}var mU=[`data-bs-title`,`data-bs-content`],hU=[`title`],gU={key:0,class:`number-circle`,textContent:1},_U=(0,u.defineComponent)({__name:`BDNotificationButton`,props:{userId:{},getNotification:{}},setup(e){let t=e,{hasUnfulfilledInteraction:n,MarkInteractionPerformed:r}=fU(`notificationsRead`,t.userId,()=>t.getNotification?.linkUrl),i=(0,u.ref)();pU(i);let a=(0,u.computed)(()=>{let e=t.getNotification;if(!e)return!1;let{isActive:n,startDate:r,endDate:i}=e;if(!n)return!1;let a=new Date(r),o=new Date(i),s=new Date;return s>=a&&s<=o}),o=(0,u.computed)(()=>t.getNotification?.tooltip),s=(0,u.computed)(()=>t.getNotification?.title),c=(0,u.computed)(()=>{let e=t.getNotification;if(!e)return``;let{text:n,linkUrl:r,linkText:i}=e;return`
1300
1300
  <p>${n}</p>
1301
1301
  <a href='${r}' target='_blank'>${i}</a>
1302
1302
  `});return(e,t)=>a.value?((0,u.openBlock)(),(0,u.createElementBlock)(`a`,{key:0,ref_key:`notificationButton`,ref:i,tabindex:`0`,class:`bd-notification-button`,role:`button`,"data-bs-toggle":`popover`,"data-bs-placement":`bottom`,"data-bs-title":s.value,"data-bs-content":c.value,"data-bs-html":!0,onClick:t[0]||=(...e)=>(0,u.unref)(r)&&(0,u.unref)(r)(...e)},[(0,u.withDirectives)((0,u.createElementVNode)(`img`,{src:lU,alt:`BeterDichtbij nieuws notificatie bel.`,title:o.value},null,8,hU),[[(0,u.unref)(lH)]]),(0,u.unref)(n)?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,gU)):(0,u.createCommentVNode)(``,!0)],8,mU)):(0,u.createCommentVNode)(``,!0)}}),vU={class:`profile-side`},yU=[`href`],bU={class:`nav-item`},xU=[`textContent`],SU=(0,u.defineComponent)({__name:`BDPractitionerHeader`,props:{academyUrl:{},userId:{},getNotification:{}},setup(e){let{t}=pu(),n=e,r=(0,u.computed)(()=>t(`practitionerHeader.academyTooltip`)),i=(0,u.computed)(()=>t(`practitionerHeader.academyMenuItem`));return(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(cU,null,(0,u.createSlots)({"profile-side":(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,vU,[(0,u.createVNode)(_U,{"user-id":n.userId,"get-notification":n.getNotification},null,8,[`user-id`,`get-notification`]),n.academyUrl?((0,u.openBlock)(),(0,u.createElementBlock)(`a`,{key:0,href:n.academyUrl,target:`_blank`,rel:`noopener,noreferrer`},[(0,u.withDirectives)((0,u.createVNode)((0,u.unref)(w),{title:r.value},null,8,[`title`]),[[(0,u.unref)(lH)]])],8,yU)):(0,u.createCommentVNode)(``,!0)])]),_:2},[n.academyUrl?{name:`mobile-menu-special-options`,fn:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`li`,bU,[(0,u.createVNode)(h,{class:`nav-link`,to:n.academyUrl},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(w)),(0,u.createElementVNode)(`span`,{textContent:(0,u.toDisplayString)(i.value)},null,8,xU)]),_:1},8,[`to`])])]),key:`0`}:void 0]),1024))}}),CU={class:`modal-dialog`},wU={class:`modal-content`},TU={class:`modal-header`},EU={class:`modal-title`},DU=[`src`],OU={class:`modal-body`},kU={key:0,class:`modal-footer`},AU=[`disabled`],jU=(0,u.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},hideCloseButton:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1},size:{default:`lg`}},emits:[`submit`,`cancel`],setup(e,{emit:t}){let n=e,r=t,i=(0,u.computed)(()=>`modal bd-modal modal-${n.size}`),a=()=>r(`submit`),o=()=>r(`cancel`);return(t,r)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:(0,u.normalizeClass)(i.value),tabindex:`-1`},[(0,u.createElementVNode)(`div`,CU,[(0,u.createElementVNode)(`div`,wU,[(0,u.createElementVNode)(`div`,TU,[(0,u.createElementVNode)(`h2`,EU,[n.titleImage?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:0,src:n.titleImage,class:`title-image`,alt:``},null,8,DU)):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(n.title),1)]),(0,u.renderSlot)(t.$slots,`modal-header-space-between`),n.hideCloseButton?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createElementBlock)(`button`,{key:0,type:`button`,class:`btn-close w-auto`,"data-bs-dismiss":`modal`,"aria-label":`Sluiten`,onClick:o},[r[0]||=(0,u.createElementVNode)(`span`,null,`Sluiten`,-1),(0,u.createVNode)((0,u.unref)(Ye))]))]),(0,u.createElementVNode)(`div`,OU,[(0,u.renderSlot)(t.$slots,`default`)]),e.hideFooter?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,kU,[n.hideFooterSubmitButton?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createElementBlock)(`button`,{key:0,class:`btn btn-primary`,disabled:n.disableSubmitButton,onClick:a},(0,u.toDisplayString)(n.submitButtonTitle),9,AU)),(0,u.renderSlot)(t.$slots,`buttons`),n.hideFooterCancelButton?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createElementBlock)(`button`,{key:1,type:`button`,class:`btn btn-link`,"data-bs-dismiss":`modal`,onClick:o,"aria-label":`Annuleren`},(0,u.toDisplayString)(n.closeButtonTitle),1))]))])])],2))}}),MU=e=>{let t=(0,u.ref)(null);return{showModal:()=>{let n=document.getElementById(e);n instanceof HTMLElement?(t.value=Bz.getOrCreateInstance(n),t.value.show()):console.error(`Modal '${e}' niet gevonden.`)},closeModal:()=>{if(t.value){t.value.hide();return}let n=document.getElementById(e);if(n instanceof HTMLElement){let e=Bz.getInstance(n);e&&e.hide()}}}};function NU(e=void 0){let t=e=>a(`Succesvol`,e,Bh.SUCCESS),n=e=>a(`Waarschuwing`,e,Bh.WARNING),r=e=>a(`Informatie`,e,Bh.INFO),i=e=>a(`Mislukt`,e,Bh.DANGER);function a(t,n,r){let i=`toast-${Ya()}`,a={id:i,variant:r,title:t,text:n},s=document.querySelector(`.toast-container`);if(!s){console.error(`There was no element with class 'toast-container' found, which is required for useToaster.`);return}let c=(0,u.h)(Wh,a),l=(0,u.createApp)({render:()=>c}).mount(document.createElement(`div`));s.appendChild(l.$el);let d=document.querySelector(`#${i}`);d&&(sH.getOrCreateInstance(d,e).show(),o(d))}function o(e){function t(e,t){e.forEach(e=>{if(e.attributeName!=`class`)return;let n=e.target;if(n.classList.contains(`hide`)){n.remove(),t.disconnect();return}})}new MutationObserver(t).observe(e,{attributes:!0})}return{showSuccessToast:t,showInformationToast:r,showWarningToast:n,showDangerToast:i}}var{showDangerToast:PU}=NU();function FU(e){let t=(0,u.ref)(null),n=(e,n=`serverErrors`)=>{let i=[];if(i=Array.isArray(e?.response?.data)?e.response.data.filter(e=>Gh(e.ErrorMessage)&&e.ErrorMessage!==``):e.response.data.ErrorMessage?[e.response.data.ErrorMessage]:null,Gh(n))t.value=i;else if(Array.isArray(n)){let e=t.value;for(let t=0;t<n.length;t++)t===n.length-1?e[n[t]]=i:e=e[n[t]]}r(e),o(t)},r=t=>{if(e==null)return;let n=new URL(t.request.responseURL).pathname;if(n in e.error){let t=e.error[n];t&&PU(t)}},i=(0,u.ref)(null),a=(0,u.ref)(``),o=e=>{$h(e.value)?i.value=e.value.map(e=>Gh(e)?e:e.ErrorMessage):Gh(e.value)&&(a.value=e.value)};function s(){t.value=null,i.value=null,a.value=``}return{serverErrors:t,errorMessages:i,errorMessageText:a,MapErrors:o,MapServerErrors:n,ResetServerErrors:s}}var IU={key:0},LU={key:1},RU={class:`bd-form-field`},zU={class:`bd-form-field`},BU=(0,u.defineComponent)({__name:`BDPhoneNumberEditModal`,props:[`modalTitle`,`submitButtonTitle`,`phoneNumberLabel`,`phoneNumberUnchangedText`,`confirmationCodeLabel`,`confirmationCodeRequiredText`,`confirmationCodeSentText`,`editSuccessText`,`editCanceledText`,`sendConfirmationCodeText`,`startPhoneNumberUpdate`,`confirmPhoneNumberUpdate`],emits:[`startPhoneNumberUpdate`,`confirmPhoneNumberUpdate`,`setPhoneNumber`],setup(e,{expose:t,emit:n}){let{showSuccessToast:r,showWarningToast:i}=NU(),{serverErrors:a,errorMessages:o,errorMessageText:s,MapServerErrors:c,ResetServerErrors:l}=FU(null),{closeModal:d}=MU(`phone-number-edit-modal`),f=e,p=n,m=``,h=(0,u.ref)(),_=(0,u.ref)(null),v=(0,u.ref)(),y=(0,u.ref)(),b=(0,u.ref)(null),x=(0,u.computed)(()=>y.value==null||y.value==``),S=()=>{if(_.value=null,l(),!h.value||h.value==m){_.value=!1;return}let e={newPhonenumber:h.value};f.startPhoneNumberUpdate(e).then(w).catch(c)},C=()=>{if(!y.value){b.value=!1;return}let e={requestIdentifier:v.value,token:y.value};f.confirmPhoneNumberUpdate(e).then(T).catch(c)},w=e=>{_.value=null,r(f.confirmationCodeSentText),v.value=e.data.RequestIdentifier},T=()=>{p(`setPhoneNumber`,h.value),r(f.editSuccessText),d(),_.value=null,b.value=null},E=e=>{m=e,h.value=m,_.value=null,v.value=void 0,y.value=void 0,b.value=null},D=()=>{E(m),l(),i(f.editCanceledText)};return t({Reset:E}),(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(jU,{id:`phone-number-edit-modal`,class:(0,u.normalizeClass)((0,u.unref)(``)),title:f.modalTitle,submitButtonTitle:f.submitButtonTitle,hideFooterCancelButton:!1,"disable-submit-button":x.value,serverErrors:(0,u.unref)(a),errorMessages:(0,u.unref)(o),errorMessageText:(0,u.unref)(s),onSubmit:C,onCancel:D},{default:(0,u.withCtx)(()=>[(0,u.unref)(s)||(0,u.unref)(o)?((0,u.openBlock)(),(0,u.createBlock)(Sa,{key:0,variant:`danger`},{default:(0,u.withCtx)(()=>[(0,u.unref)(o)?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,IU,[(0,u.createElementVNode)(`ul`,null,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)((0,u.unref)(o),(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{key:t},[(0,u.createVNode)(Hn),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(e),1)]))),128))])])):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,LU,(0,u.toDisplayString)((0,u.unref)(s)),1))]),_:1})):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`div`,RU,[(0,u.createVNode)(hh,{id:`form-input-phone-number`,label:f.phoneNumberLabel,modelValue:h.value,"onUpdate:modelValue":t[0]||=e=>h.value=e,state:_.value,type:`text`,"form-field-class":`form-input-with-button`,"invalid-feedback-text":f.phoneNumberUnchangedText},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(g,{textContent:(0,u.toDisplayString)(f.sendConfirmationCodeText),class:`tablet-device-up`,type:`button`,onClick:S},null,8,[`textContent`])]),_:1},8,[`label`,`modelValue`,`state`,`invalid-feedback-text`]),(0,u.createVNode)(g,{textContent:(0,u.toDisplayString)(f.sendConfirmationCodeText),class:`mobile-device`,type:`button`,onClick:S},null,8,[`textContent`])]),(0,u.createElementVNode)(`div`,zU,[v.value?((0,u.openBlock)(),(0,u.createBlock)(hh,{key:0,label:f.confirmationCodeLabel,modelValue:y.value,"onUpdate:modelValue":t[1]||=e=>y.value=e,state:b.value,"invalid-feedback-text":f.confirmationCodeRequiredText},null,8,[`label`,`modelValue`,`state`,`invalid-feedback-text`])):(0,u.createCommentVNode)(``,!0)])]),_:1},8,[`class`,`title`,`submitButtonTitle`,`disable-submit-button`,`serverErrors`,`errorMessages`,`errorMessageText`]))}}),VU=(e,t,n,r,i,a)=>{let o=(0,u.ref)(null),s=(0,u.ref)(null),c=(0,u.ref)(!1),l=(0,u.ref)(null),{showModal:d,closeModal:f}=MU(`session-time-out-modal`),p=(0,u.computed)(()=>o.value&&e?e-(o.value+1):0),m=(0,u.computed)(()=>s.value?60-s.value:0),h=(0,u.computed)(()=>c.value),g=()=>{l.value=setInterval(v,1e3),r(l.value)},_=()=>{l.value&&clearInterval(l.value)},v=()=>{o.value=(0,dg.default)().diff(n(),`m`),s.value=(0,dg.default)().subtract(o.value,`m`).diff(n(),`s`);let r=e??2**53-1,i=t??0;o.value>=r?(c.value=!0,d(),localStorage.setItem(`session-timeout`,`true`),window.onbeforeunload=y):o.value>=r-i?d():f()},y=e=>{e.stopPropagation(),x()},b=()=>{i(),_(),o.value=null,s.value=null,g()},x=()=>{_(),o.value=null,s.value=null,localStorage.removeItem(`session-timeout`),a()},S=()=>{c.value?x():b()};return(0,u.onMounted)(()=>{let e=document.getElementById(`session-time-out-modal`);e&&e.addEventListener(`hidden.bs.modal`,S),_(),g()}),{IsExpired:h,Minutes:p,Seconds:m,OnLogOut:()=>{x()},OnSubmit:()=>{c.value?x():f()}}},HU=(0,u.defineComponent)({__name:`BDSessionTimeOutModal`,props:[`expiredTitle`,`expiredMessage`,`expiredButtonText`,`almostExpiredTitle`,`almostExpiredMessage`,`almostExpiredButtonText`,`almostExpiredCancelButtonText`,`threshold`,`warningThreshold`,`getTime`,`setTaskId`,`setNewTime`,`logout`,`hideCancelButton`],setup(e){let t=e,{IsExpired:n,Minutes:r,Seconds:i,OnLogOut:a,OnSubmit:o}=VU(t.threshold,t.warningThreshold,t.getTime,t.setTaskId,t.setNewTime,t.logout),s=(0,u.computed)(()=>n.value?t.expiredTitle:t.almostExpiredTitle),c=(0,u.computed)(()=>n.value?t.expiredMessage:`${t.almostExpiredMessage} ${r.value}:${i.value<10?`0`+i.value:i.value}`),l=(0,u.computed)(()=>t.hideCancelButton||n.value),d=(0,u.computed)(()=>n.value?t.expiredButtonText:t.almostExpiredButtonText);return(e,n)=>((0,u.openBlock)(),(0,u.createBlock)(jU,{id:`session-time-out-modal`,title:s.value,"hide-close-button":!0,"hide-footer-cancel-button":l.value,"close-button-title":t.almostExpiredCancelButtonText,"submit-button-title":d.value,size:`md`,onSubmit:(0,u.unref)(o),onCancel:(0,u.unref)(a)},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(c.value),1)]),_:1},8,[`title`,`hide-footer-cancel-button`,`close-button-title`,`submit-button-title`,`onSubmit`,`onCancel`]))}}),UU={__name:`BDConfirmationModal`,props:[`modalId`,`modalTitle`,`description`,`submitButtonText`,`cancelButtonText`],setup(e,{expose:t}){let n=e,{closeModal:r,showModal:i}=MU(n.modalId),a=(0,u.ref)(null);t({Confirm:async()=>(i(),new Promise(e=>a.value=e))});let o=()=>{r(),a.value(!0)},s=()=>a.value(!1);return(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(jU,{id:n.modalId,title:n.modalTitle,"submit-button-title":n.submitButtonText,"close-button-title":n.cancelButtonText,"hide-close-button":!0,size:`md`,onSubmit:o,onCancel:s},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`p`,null,(0,u.toDisplayString)(n.description),1)]),_:1},8,[`id`,`title`,`submit-button-title`,`close-button-title`]))}},WU={__name:`BDAssignConversationModal`,emits:[`update:isConcluded`,`update:isUnread`],setup(e,{emit:t}){let{t:n}=pu(),r=(0,u.ref)(!1),i=(0,u.ref)(!1),a=t,o=()=>a(`update:isConcluded`,r.value),s=()=>a(`update:isUnread`,i.value);return(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(jU,{id:`assign-conversation-modal`,title:(0,u.unref)(n)(`assignConversationModal.title`),submitButtonTitle:(0,u.unref)(n)(`assignConversationModal.submitButton`)},{default:(0,u.withCtx)(()=>[(0,u.renderSlot)(e.$slots,`body`),(0,u.createVNode)(vh,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Ih,{modelValue:r.value,"onUpdate:modelValue":t[0]||=e=>r.value=e,onChange:o},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)((0,u.unref)(n)(`assignConversationModal.conclude`)),1),(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createBlock)(g,{variant:`placeholder`,class:`btn-tooltip`,title:(0,u.unref)(n)(`assignConversationModal.concludeTooltip`)},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Hn)]),_:1},8,[`title`])),[[(0,u.unref)(lH)]])]),_:1},8,[`modelValue`])]),_:1}),(0,u.createVNode)(vh,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Ih,{modelValue:i.value,"onUpdate:modelValue":t[1]||=e=>i.value=e,onChange:s},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)((0,u.unref)(n)(`assignConversationModal.makeUnread`)),1)]),_:1},8,[`modelValue`])]),_:1}),(0,u.renderSlot)(e.$slots,`footer`)]),_:3},8,[`title`,`submitButtonTitle`]))}},GU=(0,u.defineComponent)({__name:`BDAttachmentUploadModal`,props:{dropzoneUrl:{},token:{}},emits:[`cancel`,`on-submit`],setup(e,{emit:t}){let{closeModal:n}=MU(`attachment-upload-modal`),{t:r}=pu(),i=e,a=t,o=()=>{a(`on-submit`,c.value),c.value=[],n()},s=()=>{a(`cancel`),c.value=[]},c=(0,u.ref)([]),l=(0,u.computed)(()=>r(`attachmentUploadModal.title`)),d=(0,u.computed)(()=>r(`attachmentUploadModal.submitButton`)),f=(0,u.computed)(()=>r(`attachmentUploadModal.infoMessage`)),p=(0,u.computed)(()=>r(`attachmentUploadModal.addAttachmentButton`)),m=(0,u.computed)(()=>r(`attachmentUploadModal.errorMessage`)),h=(0,u.computed)(()=>r(`attachmentUploadModal.fileTooBigErrorMessage`)),g=(0,u.computed)(()=>r(`attachmentUploadModal.fileSizeExceededMessage`));return(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(jU,{id:`attachment-upload-modal`,title:l.value,"submit-button-title":d.value,onSubmit:o,onCancel:s},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`p`,null,(0,u.toDisplayString)(f.value),1),(0,u.createVNode)(Ng,{modelValue:c.value,"onUpdate:modelValue":t[0]||=e=>c.value=e,"button-text":p.value,"error-message":m.value,multiple:!0,"file-size-exceeded-message":h.value,"accepted-files":`.png,.jpg,.jpeg,.gif,.docx,.doc,.xls,.xlsx,.txt,.csv,.pdf,.wav,.mp3,.m4a,.aiff,.flac,.mp4,.avi,.mov`,url:i.dropzoneUrl,tag:`div`,token:i.token},null,8,[`modelValue`,`button-text`,`error-message`,`file-size-exceeded-message`,`url`,`token`]),(0,u.createElementVNode)(`p`,null,(0,u.toDisplayString)(g.value),1),(0,u.renderSlot)(e.$slots,`default`)]),_:3},8,[`title`,`submit-button-title`]))}}),KU=Object.defineProperty,qU=Object.defineProperties,JU=Object.getOwnPropertyDescriptors,YU=Object.getOwnPropertySymbols,XU=Object.prototype.hasOwnProperty,ZU=Object.prototype.propertyIsEnumerable,QU=(e,t,n)=>t in e?KU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$U=(e,t)=>{for(var n in t||={})XU.call(t,n)&&QU(e,n,t[n]);if(YU)for(var n of YU(t))ZU.call(t,n)&&QU(e,n,t[n]);return e},eW=(e,t)=>qU(e,JU(t)),tW={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(e){this.autoscroll&&e&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){let e=this.$refs.dropdownMenu?.children[this.typeAheadPointer]||!1;if(e){let t=this.getDropdownViewport(),{top:n,bottom:r,height:i}=e.getBoundingClientRect();if(n<t.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(r>t.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(t.height-i)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},nW={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let e=0;e<this.filteredOptions.length;e++)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},open(e){e&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let e=this.typeAheadPointer-1;e>=0;e--)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},typeAheadDown(){for(let e=this.typeAheadPointer+1;e<this.filteredOptions.length;e++)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},typeAheadSelect(){let e=this.filteredOptions[this.typeAheadPointer];e&&this.selectable(e)&&this.select(e)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length===0?-1:this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1])}}},rW={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit(`search`,this.search,this.toggleLoading)},loading(e){this.mutableLoading=e}},methods:{toggleLoading(e=null){return e==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=e}}},iW=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},aW={},oW={xmlns:`http://www.w3.org/2000/svg`,width:`10`,height:`10`},sW=[(0,u.createElementVNode)(`path`,{d:`M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z`},null,-1)];function cW(e,t){return(0,u.openBlock)(),(0,u.createElementBlock)(`svg`,oW,sW)}var lW=iW(aW,[[`render`,cW]]),uW={},dW={xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`10`},fW=[(0,u.createElementVNode)(`path`,{d:`M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z`},null,-1)];function pW(e,t){return(0,u.openBlock)(),(0,u.createElementBlock)(`svg`,dW,fW)}var mW={Deselect:lW,OpenIndicator:iW(uW,[[`render`,pW]])},hW={mounted(e,{instance:t}){if(t.appendToBody){let{height:n,top:r,left:i,width:a}=t.$refs.toggle.getBoundingClientRect(),o=window.scrollX||window.pageXOffset,s=window.scrollY||window.pageYOffset;e.unbindPosition=t.calculatePosition(e,t,{width:a+`px`,left:o+i+`px`,top:s+r+n+`px`}),document.body.appendChild(e)}},unmounted(e,{instance:t}){t.appendToBody&&(e.unbindPosition&&typeof e.unbindPosition==`function`&&e.unbindPosition(),e.parentNode&&e.parentNode.removeChild(e))}};function gW(e){let t={};return Object.keys(e).sort().forEach(n=>{t[n]=e[n]}),JSON.stringify(t)}var _W=0;function vW(){return++_W}var yW={components:$U({},mW),directives:{appendToBody:hW},mixins:[tW,nW,rW],compatConfig:{MODE:3},emits:[`open`,`close`,`update:modelValue`,`search`,`search:compositionstart`,`search:compositionend`,`search:keydown`,`search:blur`,`search:focus`,`search:input`,`option:created`,`option:selecting`,`option:selected`,`option:deselecting`,`option:deselected`],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:``},transition:{type:String,default:`vs__fade`},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:`label`},autocomplete:{type:String,default:`off`},reduce:{type:Function,default:e=>e},selectable:{type:Function,default:e=>!0},getOptionLabel:{type:Function,default(e){return typeof e==`object`?e.hasOwnProperty(this.label)?e[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(e)}.