!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.DKFDS=t():e.DKFDS=t()}(this,(()=>(()=>{var e={141:e=>{"use strict";e.exports=function(e,t,n){if(e.forEach)e.forEach(t,n);else for(var o=0;o<e.length;o+=1)t.call(n,e[o],o,e)}},486:(e,t,n)=>{"use strict";n.d(t,{A:()=>dn});var o=n(525),i=n(228),a=n.n(i);const r=n(525),l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;t.forEach((t=>{"function"==typeof this[t]&&this[t].call(this,e)}))}};var s=n(464);const d=function(){return"undefined"!=typeof navigator&&(navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream},c="click",u="date-picker",h=`${u}__wrapper`,p=`${u}--initialized`,g=`${u}--active`,m=`${u}__internal-input`,f=`${u}__external-input`,b=`${u}__button`,v=`${u}__calendar`,y=`${u}__status`,w=`${u}__guide`,E=`${v}__date`,L="dialog-wrapper",A=`.${L}`,x=`${E}--focused`,C=`${E}--selected`,k=`${E}--previous-month`,S=`${E}--current-month`,D=`${E}--next-month`,$=`${E}--range-date`,N=`${E}--today`,_=`${E}--range-date-start`,T=`${E}--range-date-end`,B=`${E}--within-range`,M=`${v}__previous-year`,q=`${v}__previous-month`,j=`${v}__next-year`,R=`${v}__next-month`,I=`${v}__month-selection`,Y=`${v}__year-selection`,P=`${v}__month`,O=`${P}--focused`,H=`${P}--selected`,F=`${v}__year`,V=`${F}--focused`,U=`${F}--selected`,X=`${v}__previous-year-chunk`,K=`${v}__next-year-chunk`,W=`${v}__date-picker`,z=`${v}__month-picker`,G=`${v}__year-picker`,Z=`${v}__table`,J=`${v}__row`,Q=`${v}__cell`,ee=`${Q}--center-items`,te=`${v}__month-label`,ne=`${v}__day-of-week`,oe=`.${u}`,ie=`.${b}`,ae=`.${m}`,re=`.${f}`,le=`.${v}`,se=`.${y}`,de=`.${w}`,ce=`.${E}`,ue=`.${x}`,he=`.${S}`,pe=`.${M}`,ge=`.${q}`,me=`.${j}`,fe=`.${R}`,be=`.${Y}`,ve=`.${I}`,ye=`.${P}`,we=`.${F}`,Ee=`.${X}`,Le=`.${K}`,Ae=`.${W}`,xe=`.${z}`,Ce=`.${G}`,ke=`.${O}`,Se=`.${V}`;let De={open_calendar:"Åbn kalender",choose_a_date:"Vælg en dato",choose_a_date_between:"Vælg en dato mellem {minDay}. {minMonthStr} {minYear} og {maxDay}. {maxMonthStr} {maxYear}",choose_a_date_before:"Vælg en dato. Der kan vælges indtil {maxDay}. {maxMonthStr} {maxYear}.",choose_a_date_after:"Vælg en dato. Der kan vælges fra {minDay}. {minMonthStr} {minYear} og fremad.",aria_label_date:"{dayStr} den {day}. {monthStr} {year}",current_month_displayed:"Viser {monthLabel} {focusedYear}",first_possible_date:"Første valgbare dato",last_possible_date:"Sidste valgbare dato",previous_year:"Navigér ét år tilbage",previous_month:"Navigér én måned tilbage",next_month:"Navigér én måned frem",next_year:"Navigér ét år frem",select_month:"Vælg måned",select_year:"Vælg år",previous_years:"Navigér {years} år tilbage",next_years:"Navigér {years} år frem",guide:"Navigerer du med tastatur, kan du skifte dag med højre og venstre piletaster, uger med op og ned piletaster, måneder med page up og page down-tasterne og år med shift-tasten plus page up eller page down. Home og end-tasten navigerer til start eller slutning af en uge.",months_displayed:"Vælg en måned",years_displayed:"Viser år {start} til {end}. Vælg et år.",january:"januar",february:"februar",march:"marts",april:"april",may:"maj",june:"juni",july:"juli",august:"august",september:"september",october:"oktober",november:"november",december:"december",monday:"mandag",tuesday:"tirsdag",wednesday:"onsdag",thursday:"torsdag",friday:"fredag",saturday:"lørdag",sunday:"søndag"};const $e="Indtast venligst en gyldig dato";let Ne=[De.january,De.february,De.march,De.april,De.may,De.june,De.july,De.august,De.september,De.october,De.november,De.december],_e=[De.monday,De.tuesday,De.wednesday,De.thursday,De.friday,De.saturday,De.sunday];const Te=12,Be="0000-01-01",Me="DD/MM/YYYY",qe="DD-MM-YYYY",je="DD.MM.YYYY",Re="DD MM YYYY",Ie="DD/MM-YYYY",Ye="YYYY-MM-DD",Pe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map((e=>e+":not([disabled])")).join(", ")},Oe=Pe(pe,ge,be,ve,me,fe,ue),He=Pe(ke),Fe=Pe(Ee,Le,Se),Ve=(e,t)=>(t!==e.getMonth()&&e.setDate(0),e),Ue=(e,t,n)=>{const o=new Date(0);return o.setFullYear(e,t,n),o},Xe=()=>{const e=new Date,t=e.getDate(),n=e.getMonth(),o=e.getFullYear();return Ue(o,n,t)},Ke=e=>{const t=new Date(0);return t.setFullYear(e.getFullYear(),e.getMonth(),1),t},We=e=>{const t=new Date(0);return t.setFullYear(e.getFullYear(),e.getMonth()+1,0),t},ze=(e,t)=>{const n=new Date(e.getTime());return n.setDate(n.getDate()+t),n},Ge=(e,t)=>ze(e,-t),Ze=(e,t)=>ze(e,7*t),Je=e=>{let t=e.getDay()-1;return-1===t&&(t=6),Ge(e,t)},Qe=(e,t)=>{const n=new Date(e.getTime()),o=(n.getMonth()+12+t)%12;return n.setMonth(n.getMonth()+t),Ve(n,o),n},et=(e,t)=>Qe(e,-t),tt=(e,t)=>Qe(e,12*t),nt=(e,t)=>tt(e,-t),ot=(e,t)=>{const n=new Date(e.getTime());return n.setMonth(t),Ve(n,t),n},it=(e,t)=>{const n=new Date(e.getTime()),o=n.getMonth();return n.setFullYear(t),Ve(n,o),n},at=(e,t)=>e&&t&&e.getFullYear()===t.getFullYear(),rt=(e,t)=>at(e,t)&&e.getMonth()===t.getMonth(),lt=(e,t)=>rt(e,t)&&e.getDate()===t.getDate(),st=(e,t,n)=>{let o=e;return e<t?o=t:n&&e>n&&(o=n),new Date(o.getTime())},dt=(e,t,n)=>e>=t&&(!n||e<=n),ct=(e,t,n)=>We(ot(e,11))<t||n&&Ke(ot(e,0))>n,ut=function(e){let t,n,o,i,a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ye,l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){let s,d,c;if(r===Me||r===qe||r===je||r===Re||r===Ie?[d,s,c]=e.split(/-|\.|\/|\s/):[c,s,d]=e.split("-"),c&&(a=parseInt(c,10),!Number.isNaN(a)&&(i=a,l&&(i=Math.max(0,i),c.length<3)))){const e=Xe().getFullYear();i=e-e%Math.pow(10,c.length)+a}if(s&&(a=parseInt(s,10),Number.isNaN(a)||(n=a,l&&(n=Math.max(1,n),n=Math.min(12,n)))),n&&d&&null!=i&&(a=parseInt(d,10),!Number.isNaN(a)&&(o=a,l))){const e=Ue(i,n,0).getDate();o=Math.max(1,o),o=Math.min(e,o)}n&&o&&null!=i&&(t=Ue(i,n-1,o))}return t},ht=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ye;const n=(e,t)=>`0000${e}`.slice(-t),o=e.getMonth()+1,i=e.getDate(),a=e.getFullYear();if(t===Me)return[n(i,2),n(o,2),n(a,4)].join("/");if(t===qe)return[n(i,2),n(o,2),n(a,4)].join("-");if(t===je)return[n(i,2),n(o,2),n(a,4)].join(".");if(t===Re)return[n(i,2),n(o,2),n(a,4)].join(" ");if(t===Ie){return[[n(i,2),n(o,2)].join("/"),n(a,4)].join("-")}return[n(a,4),n(o,2),n(i,2)].join("-")},pt=(e,t)=>{const n=[];let o=[],i=0;for(;i<e.length;){for(o=[];i<e.length&&o.length<t;)o.push(`<td>${e[i]}</td>`),i+=1;n.push(`<tr>${o.join("")}</tr>`)}return n.join("")},gt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e;n.value=t;var o=new Event("change");n.dispatchEvent(o)},mt=e=>{const t=e.closest(oe);if(!t)throw new Error(`Element is missing outer ${oe}`);const n=t.querySelector(ae),o=t.querySelector(re),i=t.querySelector(le),a=t.querySelector(ie),r=t.querySelector(se),l=t.querySelector(de),s=t.querySelector(we),d=t.querySelector(A);let c=Me;if(t.hasAttribute("data-dateformat"))switch(t.dataset.dateformat){case Me:c=Me;break;case qe:c=qe;break;case je:c=je;break;case Re:c=Re;break;case Ie:c=Ie}const u=c,h=ut(o.value,u,!0),p=ut(n.value),g=ut(i.dataset.value),m=ut(t.dataset.minDate),f=ut(t.dataset.maxDate),b=ut(t.dataset.rangeDate),v=ut(t.dataset.defaultDate);if(m&&f&&m>f)throw new Error("Minimum date cannot be after maximum date");return{calendarDate:g,minDate:m,toggleBtnEl:a,dialogEl:d,selectedDate:p,maxDate:f,firstYearChunkEl:s,datePickerEl:t,inputDate:h,internalInputEl:n,externalInputEl:o,calendarEl:i,rangeDate:b,defaultDate:v,statusEl:r,guideEl:l,dateFormatOption:u}},ft=e=>{const{externalInputEl:t,toggleBtnEl:n}=mt(e);n.disabled=!0,t.disabled=!0},bt=e=>{const{externalInputEl:t,minDate:n,maxDate:o}=mt(e),i=t.value;let a=!1;if(i){a=!0;const e=i.split(/-|\.|\/|\s/),[t,r,l]=e.map((e=>{let t;const n=parseInt(e,10);return Number.isNaN(n)||(t=n),t}));if(r&&t&&null!=l){const i=Ue(l,r-1,t);i.getMonth()===r-1&&i.getDate()===t&&i.getFullYear()===l&&4===e[2].length&&dt(i,n,o)&&(a=!1)}}return a},vt=e=>{const{externalInputEl:t}=mt(e),n=bt(t);n&&!t.validationMessage&&t.setCustomValidity($e),n||t.validationMessage!==$e||t.setCustomValidity("")},yt=(e,t)=>{const n=ut(t);if(n){const{datePickerEl:o,internalInputEl:i,externalInputEl:a,dateFormatOption:r}=mt(e),l=ht(n,r);gt(i,t),gt(a,l),vt(o)}},wt=(e,t)=>{const{datePickerEl:n,calendarEl:o,statusEl:i,selectedDate:a,maxDate:r,minDate:l,rangeDate:s,dialogEl:d,guideEl:c}=mt(e),u=Xe();let h=t||u;const p=o.hidden,m=ze(h,0),f=h.getMonth(),b=h.getFullYear(),v=et(h,1),y=Qe(h,1),w=ht(h),L=Ke(h),A=rt(h,l),P=rt(h,r),O=a||h,H=s&&((e,t)=>{let n=e;return t<e&&(n=t),new Date(n.getTime())})(O,s),F=s&&((e,t)=>{let n=e;return t>e&&(n=t),new Date(n.getTime())})(O,s),V=s&&ze(H,1),U=s&&Ge(F,1),X=Ne[f],K=e=>{const t=[E],n=e.getDate(),o=e.getMonth(),i=e.getFullYear();let d=e.getDay()-1;-1===d&&(d=6);const c=ht(e);let h="-1";const p=!dt(e,l,r),g=lt(e,a);rt(e,v)&&t.push(k),rt(e,m)&&t.push(S),rt(e,y)&&t.push(D),g&&t.push(C),lt(e,u)&&t.push(N),s&&(lt(e,s)&&t.push($),lt(e,H)&&t.push(_),lt(e,F)&&t.push(T),dt(e,V,U)&&t.push(B)),lt(e,m)&&(h="0",t.push(x));const f=Ne[o],b=_e[d],w=De.aria_label_date.replace(/{dayStr}/,b).replace(/{day}/,n).replace(/{monthStr}/,f).replace(/{year}/,i);return`<button\n      type="button"\n      tabindex="${h}"\n      class="${t.join(" ")}" \n      data-day="${n}" \n      data-month="${o+1}" \n      data-year="${i}" \n      data-value="${c}"\n      aria-label="${w}"\n      aria-current="${g?"date":"false"}"\n      ${p?'disabled="disabled"':""}\n    >${n}</button>`};h=Je(L);const z=[];for(;z.length<28||h.getMonth()===f||z.length%7!=0;)z.push(K(h)),h=ze(h,1);const G=pt(z,7),oe=o.cloneNode();oe.dataset.value=w,oe.style.top=`${n.offsetHeight}px`,oe.hidden=!1;let ie=`<div tabindex="-1" class="${W}">\n      <div class="${J}">\n        <div class="${Q} ${ee}">\n          <button \n            type="button"\n            class="${M}"\n            aria-label="${De.previous_year}"\n            ${A?'disabled="disabled"':""}\n          >&nbsp;</button>\n        </div>\n        <div class="${Q} ${ee}">\n          <button \n            type="button"\n            class="${q}"\n            aria-label="${De.previous_month}"\n            ${A?'disabled="disabled"':""}\n          >&nbsp;</button>\n        </div>\n        <div class="${Q} ${te}">\n          <button \n            type="button"\n            class="${I}" aria-label="${X}. ${De.select_month}."\n          >${X}</button>\n          <button \n            type="button"\n            class="${Y}" aria-label="${b}. ${De.select_year}."\n          >${b}</button>\n        </div>\n        <div class="${Q} ${ee}">\n          <button \n            type="button"\n            class="${R}"\n            aria-label="${De.next_month}"\n            ${P?'disabled="disabled"':""}\n          >&nbsp;</button>\n        </div>\n        <div class="${Q} ${ee}">\n          <button \n            type="button"\n            class="${j}"\n            aria-label="${De.next_year}"\n            ${P?'disabled="disabled"':""}\n          >&nbsp;</button>\n        </div>\n      </div>\n      <table class="${Z}" role="presentation">\n        <thead>\n          <tr>`;for(let e in _e)ie+=`<th class="${ne}" scope="col" aria-label="${_e[e]}">${_e[e].charAt(0)}</th>`;ie+=`</tr>\n        </thead>\n        <tbody>\n          ${G}\n        </tbody>\n      </table>\n    </div>`,oe.innerHTML=ie,o.parentNode.replaceChild(oe,o),n.classList.add(g),!0===d.hidden&&(d.hidden=!1,c.hidden&&(c.hidden=!1));const ae=[];return p?i.textContent="":t.getTime()===l.getTime()?ae.push(De.first_possible_date):void 0!==r&&""!==r&&t.getTime()===r.getTime()?ae.push(De.last_possible_date):ae.push(De.current_month_displayed.replace(/{monthLabel}/,X).replace(/{focusedYear}/,b)),i.textContent=ae.join(". "),oe},Et=e=>{const{datePickerEl:t,calendarEl:n,statusEl:o}=mt(e);t.classList.remove(g),n.hidden=!0,o.textContent=""},Lt=e=>{const{calendarEl:t,inputDate:n,minDate:o,maxDate:i}=mt(e);if(!t.hidden&&n){const e=st(n,o,i);wt(t,e)}},At=(e,t)=>{const{calendarEl:n,statusEl:o,calendarDate:i,minDate:a,maxDate:r}=mt(e),l=i.getMonth(),s=null==t?l:t,d=Ne.map(((e,t)=>{const n=((e,t,n)=>We(e)<t||n&&Ke(e)>n)(ot(i,t),a,r);let o="-1";const d=[P],c=t===l;return t===s&&(o="0",d.push(O)),c&&d.push(H),`<button \n        type="button"\n        tabindex="${o}"\n        class="${d.join(" ")}" \n        data-value="${t}"\n        data-label="${e}"\n        aria-current="${c?"true":"false"}"\n        ${n?'disabled="disabled"':""}\n      >${e}</button>`})),c=`<div tabindex="-1" class="${z}">\n    <table class="${Z}" role="presentation">\n      <tbody>\n        ${pt(d,3)}\n      </tbody>\n    </table>\n  </div>`,u=n.cloneNode();return u.innerHTML=c,n.parentNode.replaceChild(u,n),o.textContent=De.months_displayed,u},xt=(e,t)=>{const{calendarEl:n,statusEl:o,calendarDate:i,minDate:a,maxDate:r}=mt(e),l=i.getFullYear(),s=null==t?l:t;let d=s;d-=d%Te,d=Math.max(0,d);const c=ct(it(i,d-1),a,r),u=ct(it(i,d+Te),a,r),h=[];let p=d;for(;h.length<Te;){const e=ct(it(i,p),a,r);let t="-1";const n=[F],o=p===l;p===s&&(t="0",n.push(V)),o&&n.push(U),h.push(`<button \n        type="button"\n        tabindex="${t}"\n        class="${n.join(" ")}" \n        data-value="${p}"\n        aria-current="${o?"true":"false"}"\n        ${e?'disabled="disabled"':""}\n      >${p}</button>`),p+=1}const g=pt(h,3),m=De.previous_years.replace(/{years}/,Te),f=De.next_years.replace(/{years}/,Te),b=De.years_displayed.replace(/{start}/,d).replace(/{end}/,d+Te-1),v=n.cloneNode();return v.innerHTML=`<div tabindex="-1" class="${G}">\n    <table class="${Z}" role="presentation">\n        <tbody>\n          <tr>\n            <td>\n              <button\n                type="button"\n                class="${X}" \n                aria-label="${m}"\n                ${c?'disabled="disabled"':""}\n              >&nbsp;</button>\n            </td>\n            <td colspan="3">\n              <table class="${Z}" role="presentation">\n                <tbody>\n                  ${g}\n                </tbody>\n              </table>\n            </td>\n            <td>\n              <button\n                type="button"\n                class="${K}" \n                aria-label="${f}"\n                ${u?'disabled="disabled"':""}\n              >&nbsp;</button>\n            </td>\n          </tr>\n        </tbody>\n      </table>\n    </div>`,n.parentNode.replaceChild(v,n),o.textContent=b,v},Ct=e=>{const{datePickerEl:t,externalInputEl:n,dialogEl:o,guideEl:i}=mt(e.target);Et(t),o.hidden=!0,i.hidden=!0,n.focus(),e.preventDefault()},kt=e=>t=>{const{calendarEl:n,calendarDate:o,minDate:i,maxDate:a}=mt(t.target),r=e(o),l=st(r,i,a);if(!lt(o,l)){wt(n,l).querySelector(ue).focus()}t.preventDefault()},St=kt((e=>Ze(e,-1))),Dt=kt((e=>Ze(e,1))),$t=kt((e=>Ge(e,1))),Nt=kt((e=>ze(e,1))),_t=kt((e=>Je(e))),Tt=kt((e=>(e=>{const t=e.getDay();return ze(e,7-t)})(e))),Bt=kt((e=>Qe(e,1))),Mt=kt((e=>et(e,1))),qt=kt((e=>tt(e,1))),jt=kt((e=>nt(e,1))),Rt=e=>t=>{const n=t.target,o=parseInt(n.dataset.value,10),{calendarEl:i,calendarDate:a,minDate:r,maxDate:l}=mt(n),s=ot(a,o);let d=e(o);d=Math.max(0,Math.min(11,d));const c=ot(a,d),u=st(c,r,l);if(!rt(s,u)){At(i,u.getMonth()).querySelector(ke).focus()}t.preventDefault()},It=Rt((e=>e-3)),Yt=Rt((e=>e+3)),Pt=Rt((e=>e-1)),Ot=Rt((e=>e+1)),Ht=Rt((e=>e-e%3)),Ft=Rt((e=>e+2-e%3)),Vt=Rt((()=>11)),Ut=Rt((()=>0)),Xt=e=>t=>{const n=t.target,o=parseInt(n.dataset.value,10),{calendarEl:i,calendarDate:a,minDate:r,maxDate:l}=mt(n),s=it(a,o);let d=e(o);d=Math.max(0,d);const c=it(a,d),u=st(c,r,l);if(!at(s,u)){xt(i,u.getFullYear()).querySelector(Se).focus()}t.preventDefault()},Kt=Xt((e=>e-3)),Wt=Xt((e=>e+3)),zt=Xt((e=>e-1)),Gt=Xt((e=>e+1)),Zt=Xt((e=>e-e%3)),Jt=Xt((e=>e+2-e%3)),Qt=Xt((e=>e-Te)),en=Xt((e=>e+Te)),tn=e=>{const t=t=>{const{calendarEl:n}=mt(t),o=(0,s.A)(e,n),i=o.length-1,a=o[0],r=o[i],l=o.indexOf(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).activeElement}());return{focusableElements:o,isNotFound:-1===l,firstTabStop:a,isFirstTab:0===l,lastTabStop:r,isLastTab:l===i}};return{tabAhead(e){const{firstTabStop:n,isLastTab:o,isNotFound:i}=t(e.target);(o||i)&&(e.preventDefault(),n.focus())},tabBack(e){const{lastTabStop:n,isFirstTab:o,isNotFound:i}=t(e.target);(o||i)&&(e.preventDefault(),n.focus())}}},nn=tn(Oe),on=tn(He),an=tn(Fe),rn={[c]:{[ie](){(e=>{if(e.disabled)return;const{dialogEl:t,calendarEl:n,inputDate:o,minDate:i,maxDate:a,defaultDate:r,guideEl:l}=mt(e);if(n.hidden){const e=st(o||r||Xe(),i,a);wt(n,e).querySelector(ue).focus()}else Et(e),t.hidden=!0,l.hidden=!0})(this)},[ce](){(e=>{if(e.disabled)return;const{datePickerEl:t,externalInputEl:n,dialogEl:o,guideEl:i}=mt(e);yt(e,e.dataset.value),Et(t),o.hidden=!0,i.hidden=!0,n.focus()})(this)},[ye](){(e=>{if(e.disabled)return;const{calendarEl:t,calendarDate:n,minDate:o,maxDate:i}=mt(e),a=parseInt(e.dataset.value,10);let r=ot(n,a);r=st(r,o,i),wt(t,r).querySelector(ue).focus()})(this)},[we](){(e=>{if(e.disabled)return;const{calendarEl:t,calendarDate:n,minDate:o,maxDate:i}=mt(e),a=parseInt(e.innerHTML,10);let r=it(n,a);r=st(r,o,i),wt(t,r).querySelector(ue).focus()})(this)},[ge](){(e=>{if(e.disabled)return;const{calendarEl:t,calendarDate:n,minDate:o,maxDate:i}=mt(e);let a=et(n,1);a=st(a,o,i);const r=wt(t,a);let l=r.querySelector(ge);l.disabled&&(l=r.querySelector(Ae)),l.focus()})(this)},[fe](){(e=>{if(e.disabled)return;const{calendarEl:t,calendarDate:n,minDate:o,maxDate:i}=mt(e);let a=Qe(n,1);a=st(a,o,i);const r=wt(t,a);let l=r.querySelector(fe);l.disabled&&(l=r.querySelector(Ae)),l.focus()})(this)},[pe](){(e=>{if(e.disabled)return;const{calendarEl:t,calendarDate:n,minDate:o,maxDate:i}=mt(e);let a=nt(n,1);a=st(a,o,i);const r=wt(t,a);let l=r.querySelector(pe);l.disabled&&(l=r.querySelector(Ae)),l.focus()})(this)},[me](){(e=>{if(e.disabled)return;const{calendarEl:t,calendarDate:n,minDate:o,maxDate:i}=mt(e);let a=tt(n,1);a=st(a,o,i);const r=wt(t,a);let l=r.querySelector(me);l.disabled&&(l=r.querySelector(Ae)),l.focus()})(this)},[Ee](){(e=>{if(e.disabled)return;const{calendarEl:t,calendarDate:n,minDate:o,maxDate:i}=mt(e),a=t.querySelector(Se);let r=parseInt(a.textContent,10)-Te;r=Math.max(0,r);const l=it(n,r),s=st(l,o,i),d=xt(t,s.getFullYear());let c=d.querySelector(Ee);c.disabled&&(c=d.querySelector(Ce)),c.focus()})(this)},[Le](){(e=>{if(e.disabled)return;const{calendarEl:t,calendarDate:n,minDate:o,maxDate:i}=mt(e),a=t.querySelector(Se);let r=parseInt(a.textContent,10)+Te;r=Math.max(0,r);const l=it(n,r),s=st(l,o,i),d=xt(t,s.getFullYear());let c=d.querySelector(Le);c.disabled&&(c=d.querySelector(Ce)),c.focus()})(this)},[ve](){At(this).querySelector(ke).focus()},[be](){xt(this).querySelector(Se).focus()}},keyup:{[le](e){const t=this.dataset.keydownKeyCode;`${e.keyCode}`!==t&&e.preventDefault()}},keydown:{[re](e){13===e.keyCode&&vt(this)},[ce]:(0,o.keymap)({Up:St,ArrowUp:St,Down:Dt,ArrowDown:Dt,Left:$t,ArrowLeft:$t,Right:Nt,ArrowRight:Nt,Home:_t,End:Tt,PageDown:Bt,PageUp:Mt,"Shift+PageDown":qt,"Shift+PageUp":jt}),[Ae]:(0,o.keymap)({Tab:nn.tabAhead,"Shift+Tab":nn.tabBack}),[ye]:(0,o.keymap)({Up:It,ArrowUp:It,Down:Yt,ArrowDown:Yt,Left:Pt,ArrowLeft:Pt,Right:Ot,ArrowRight:Ot,Home:Ht,End:Ft,PageDown:Vt,PageUp:Ut}),[xe]:(0,o.keymap)({Tab:on.tabAhead,"Shift+Tab":on.tabBack}),[we]:(0,o.keymap)({Up:Kt,ArrowUp:Kt,Down:Wt,ArrowDown:Wt,Left:zt,ArrowLeft:zt,Right:Gt,ArrowRight:Gt,Home:Zt,End:Jt,PageDown:en,PageUp:Qt}),[Ce]:(0,o.keymap)({Tab:an.tabAhead,"Shift+Tab":an.tabBack}),[le](e){this.dataset.keydownKeyCode=e.keyCode},[oe](e){(0,o.keymap)({Escape:Ct})(e)}},focusout:{[re](){vt(this)},[oe](e){this.contains(e.relatedTarget)||Et(this)}},input:{[re](){(e=>{const{internalInputEl:t,inputDate:n}=mt(e);let o="";n&&!bt(e)&&(o=ht(n)),t.value!==o&&gt(t,o)})(this),Lt(this)}}};d()||(rn.mousemove={[he](){(e=>{if(e.disabled)return;const t=e.closest(le),n=t.dataset.value,o=e.dataset.value;if(o===n)return;const i=ut(o);wt(t,i).querySelector(ue).focus()})(this)},[ye](){(e=>{if(e.disabled)return;if(e.classList.contains(O))return;const t=parseInt(e.dataset.value,10);At(e,t).querySelector(ke).focus()})(this)},[we](){(e=>{if(e.disabled)return;if(e.classList.contains(V))return;const t=parseInt(e.dataset.value,10);xt(e,t).querySelector(Se).focus()})(this)}});var ln,sn;const dn=(ln=rn,sn={init(e){(0,s.A)(oe,e).forEach((e=>{e.classList.contains(p)||(e=>{const t=e.closest(oe),n=t.dataset.defaultValue,o=t.querySelector("input");if(!o)throw new Error(`${oe} is missing inner input`);const i=ut(t.dataset.minDate||o.getAttribute("min"));t.dataset.minDate=i?ht(i):Be;const a=ut(t.dataset.maxDate||o.getAttribute("max"));a&&(t.dataset.maxDate=ht(a));const r=document.createElement("div");r.classList.add(h),r.tabIndex="-1";const l=o.cloneNode();l.classList.add(f),l.type="text",l.name="";let s=De.choose_a_date;const d=void 0!==i&&""!==i,c=void 0!==i&&""!==i&&ut(Be).getTime()===i.getTime(),u=void 0!==a&&""!==a;if(d&&!c&&u){const e=i.getDate(),t=i.getMonth(),n=Ne[t],o=i.getFullYear(),r=a.getDate(),l=a.getMonth(),d=Ne[l],c=a.getFullYear();s=De.choose_a_date_between.replace(/{minDay}/,e).replace(/{minMonthStr}/,n).replace(/{minYear}/,o).replace(/{maxDay}/,r).replace(/{maxMonthStr}/,d).replace(/{maxYear}/,c)}else if(!d||c||u){if(u){const e=a.getDate(),t=a.getMonth(),n=Ne[t],o=a.getFullYear();s=De.choose_a_date_before.replace(/{maxDay}/,e).replace(/{maxMonthStr}/,n).replace(/{maxYear}/,o)}}else{const e=i.getDate(),t=i.getMonth(),n=Ne[t],o=i.getFullYear();s=De.choose_a_date_after.replace(/{minDay}/,e).replace(/{minMonthStr}/,n).replace(/{minYear}/,o)}const g=l.getAttribute("id")+"-guide";r.appendChild(l),r.insertAdjacentHTML("beforeend",[`<button type="button" class="${b}" aria-haspopup="true" aria-label="${De.open_calendar}">&nbsp;</button>`,`<div class="${L}" role="dialog" aria-modal="true" aria-label="${s}" aria-describedby="${g}" hidden><div role="application"><div class="${v}" hidden></div></div></div>`,`<div class="sr-only ${y}" role="status" aria-live="polite"></div>`,`<div class="sr-only ${w}" id="${g}" hidden>${De.guide}</div>`].join("")),o.setAttribute("aria-hidden","true"),o.setAttribute("tabindex","-1"),o.classList.add("sr-only",m),o.removeAttribute("id"),o.required=!1,t.appendChild(r),t.classList.add(p),n&&yt(t,n),o.disabled&&(ft(t),o.disabled=!1),l.value&&vt(l)})(e)}))},setLanguage(e){De=e,Ne=[De.january,De.february,De.march,De.april,De.may,De.june,De.july,De.august,De.september,De.october,De.november,De.december],_e=[De.monday,De.tuesday,De.wednesday,De.thursday,De.friday,De.saturday,De.sunday]},getDatePickerContext:mt,disable:ft,enable:e=>{const{externalInputEl:t,toggleBtnEl:n}=mt(e);n.disabled=!1,t.disabled=!1},isDateInputInvalid:bt,setCalendarValue:yt,validateDateInput:vt,renderCalendar:wt,updateCalendarIfVisible:Lt},r.behavior(ln,a()({on:l("init","add"),off:l("teardown","remove")},sn)))},409:()=>{!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){const n=t||{bubbles:!1,cancelable:!1,detail:null},o=document.createEvent("CustomEvent");return o.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),o}}()},204:()=>{"use strict";const e=window.HTMLElement.prototype,t="hidden";t in e||Object.defineProperty(e,t,{get:function(){return this.hasAttribute(t)},set:function(e){e?this.setAttribute(t,""):this.removeAttribute(t)}})},923:(e,t,n)=>{"use strict";n(952),n(204),n(259),n(409)},259:()=>{Number.isNaN=Number.isNaN||function(e){return"number"==typeof e&&e!=e}},130:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o={xs:0,sm:576,md:768,lg:992,xl:1200}},665:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.documentElement;var o=e.getBoundingClientRect();return o.top>=0&&o.left>=0&&o.bottom<=(t.innerHeight||n.clientHeight)&&o.right<=(t.innerWidth||n.clientWidth)}},464:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=(e,t)=>{if("string"!=typeof e)return[];var n;t&&((n=t)&&"object"==typeof n&&1===n.nodeType)||(t=window.document);const o=t.querySelectorAll(e);return Array.prototype.slice.call(o)}},188:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const o="aria-expanded",i=(e,t)=>{"boolean"!=typeof t&&(t="false"===e.getAttribute(o)),e.setAttribute(o,t);const n=e.getAttribute("aria-controls"),i=document.getElementById(n);if(!i)throw new Error('No toggle target found with id: "'+n+'"');return i.setAttribute("aria-hidden",!t),t}},952:()=>{"document"in window.self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(e){"use strict";if("Element"in e){var t="classList",n="prototype",o=e.Element[n],i=Object,a=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},r=Array[n].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},l=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},s=function(e,t){if(""===t)throw new l("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new l("INVALID_CHARACTER_ERR","String contains an invalid character");return r.call(e,t)},d=function(e){for(var t=a.call(e.getAttribute("class")||""),n=t?t.split(/\s+/):[],o=0,i=n.length;o<i;o++)this.push(n[o]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},c=d[n]=[],u=function(){return new d(this)};if(l[n]=Error[n],c.item=function(e){return this[e]||null},c.contains=function(e){return-1!==s(this,e+="")},c.add=function(){var e,t=arguments,n=0,o=t.length,i=!1;do{-1===s(this,e=t[n]+"")&&(this.push(e),i=!0)}while(++n<o);i&&this._updateClassName()},c.remove=function(){var e,t,n=arguments,o=0,i=n.length,a=!1;do{for(t=s(this,e=n[o]+"");-1!==t;)this.splice(t,1),a=!0,t=s(this,e)}while(++o<i);a&&this._updateClassName()},c.toggle=function(e,t){e+="";var n=this.contains(e),o=n?!0!==t&&"remove":!1!==t&&"add";return o&&this[o](e),!0===t||!1===t?t:!n},c.toString=function(){return this.join(" ")},i.defineProperty){var h={get:u,enumerable:!0,configurable:!0};try{i.defineProperty(o,t,h)}catch(e){void 0!==e.number&&-2146823252!==e.number||(h.enumerable=!1,i.defineProperty(o,t,h))}}else i[n].__defineGetter__&&o.__defineGetter__(t,u)}}(window.self),function(){"use strict";var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var n,o=arguments.length;for(n=0;n<o;n++)e=arguments[n],t.call(this,e)}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:n.call(this,e)}}e=null}())},786:(e,t,n)=>{var o,i;!function(){var a,r={polyfill:function(){if(!("KeyboardEvent"in window)||"key"in KeyboardEvent.prototype)return!1;var e={get:function(e){var t=r.keys[this.which||this.keyCode];return Array.isArray(t)&&(t=t[+this.shiftKey]),t}};return Object.defineProperty(KeyboardEvent.prototype,"key",e),e},keys:{3:"Cancel",6:"Help",8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",28:"Convert",29:"NonConvert",30:"Accept",31:"ModeChange",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",42:"Print",43:"Execute",44:"PrintScreen",45:"Insert",46:"Delete",48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],91:"OS",93:"ContextMenu",144:"NumLock",145:"ScrollLock",181:"VolumeMute",182:"VolumeDown",183:"VolumeUp",186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"}};for(a=1;a<25;a++)r.keys[111+a]="F"+a;var l="";for(a=65;a<91;a++)l=String.fromCharCode(a),r.keys[a]=[l.toLowerCase(),l.toUpperCase()];void 0===(i="function"==typeof(o=r)?o.call(t,n,t,e):o)||(e.exports=i)}()},840:e=>{"use strict";var t="undefined"!=typeof Element?Element.prototype:{},n=t.matches||t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;e.exports=function(e,t){if(!e||1!==e.nodeType)return!1;if(n)return n.call(e,t);for(var o=e.parentNode.querySelectorAll(t),i=0;i<o.length;i++)if(o[i]==e)return!0;return!1}},228:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,r,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var d in a=Object(arguments[s]))n.call(a,d)&&(l[d]=a[d]);if(t){r=t(a);for(var c=0;c<r.length;c++)o.call(a,r[c])&&(l[r[c]]=a[r[c]])}}return l}},87:(e,t,n)=>{const o=n(228),i=n(746),a=n(591),r=/^(.+):delegate\((.+)\)$/;var l=function(e,t){var n=e[t];return delete e[t],n};e.exports=function(e,t){const n=Object.keys(e).reduce((function(t,n){var s=function(e,t){var n,s,d=e.match(r);d&&(e=d[1],n=d[2]),"object"==typeof t&&(s={capture:l(t,"capture"),passive:l(t,"passive")});var c={selector:n,delegate:"object"==typeof t?a(t):n?i(n,t):t,options:s};return e.indexOf(" ")>-1?e.split(" ").map((function(e){return o({type:e},c)})):(c.type=e,[c])}(n,e[n]);return t.concat(s)}),[]);return o({add:function(e){n.forEach((function(t){e.addEventListener(t.type,t.delegate,t.options)}))},remove:function(e){n.forEach((function(t){e.removeEventListener(t.type,t.delegate,t.options)}))}},t)}},678:(e,t,n)=>{const o=n(840);e.exports=function(e,t){do{if(o(e,t))return e}while((e=e.parentNode)&&1===e.nodeType)}},977:e=>{e.exports=function(e){return function(t){return e.some((function(e){return!1===e.call(this,t)}),this)}}},746:(e,t,n)=>{const o=n(678);e.exports=function(e,t){return function(n){var i=o(n.target,e);if(i)return t.call(i,n)}}},591:(e,t,n)=>{const o=n(746),i=n(977);e.exports=function(e){const t=Object.keys(e);if(1===t.length&&"*"===t[0])return e["*"];const n=t.reduce((function(t,n){return t.push(o(n,e[n])),t}),[]);return i(n)}},39:e=>{e.exports=function(e,t){return function(n){if(e!==n.target&&!e.contains(n.target))return t.call(this,n)}}},525:(e,t,n)=>{"use strict";e.exports={behavior:n(87),delegate:n(746),delegateAll:n(591),ignore:n(39),keymap:n(402)}},402:(e,t,n)=>{n(786);const o={Alt:"altKey",Control:"ctrlKey",Ctrl:"ctrlKey",Shift:"shiftKey"};e.exports=function(e){const t=Object.keys(e).some((function(e){return e.indexOf("+")>-1}));return function(n){var i=function(e,t){var n=e.key;if(t)for(var i in o)!0===e[o[i]]&&(n=[i,n].join("+"));return n}(n,t);return[i,i.toLowerCase()].reduce((function(t,o){return o in e&&(t=e[i].call(this,n)),t}),void 0)}},e.exports.MODIFIERS=o}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{Accordion:()=>l,Alert:()=>d,BackToTop:()=>h,CharacterLimit:()=>v,CheckboxToggleContent:()=>E,Dropdown:()=>q,DropdownSort:()=>R,ErrorSummary:()=>Y,MenuDropdown:()=>ue,Modal:()=>F,Navigation:()=>re,RadioToggleGroup:()=>ge,ResponsiveTable:()=>fe,TableSelectableRows:()=>Ce,Tabs:()=>Ee,Toast:()=>De,Tooltip:()=>je,datePicker:()=>Re,init:()=>Ie});const e=n(188).A,t=(n(665).A,".accordion-button[aria-controls]"),i="data-accordion-bulk-expand",a={open_all:"Åbn alle",close_all:"Luk alle"};function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if(!e)throw new Error("Missing accordion group element");this.accordion=e,this.text=t}r.prototype.init=function(){if(this.buttons=this.accordion.querySelectorAll(t),0==this.buttons.length)throw new Error("Missing accordion buttons");for(var e=0;e<this.buttons.length;e++){let t=this.buttons[e],n="true"===t.getAttribute("aria-expanded");this.toggleButton(t,n),t.removeEventListener("click",this.eventOnClick.bind(this,t),!1),t.addEventListener("click",this.eventOnClick.bind(this,t),!1)}let n=this.accordion.previousElementSibling;null!==n&&n.classList.contains("accordion-bulk-button")&&(this.bulkFunctionButton=n,this.bulkFunctionButton.addEventListener("click",this.bulkEvent.bind(this)))},r.prototype.bulkEvent=function(){var e=this;if(!e.accordion.classList.contains("accordion"))throw new Error("Could not find accordion.");if(0==e.buttons.length)throw new Error("Missing accordion buttons");let t=!0;"false"===e.bulkFunctionButton.getAttribute(i)&&(t=!1);for(var n=0;n<e.buttons.length;n++)e.toggleButton(e.buttons[n],t,!0);e.bulkFunctionButton.setAttribute(i,!t),e.bulkFunctionButton.innerText=!0==!t?this.text.open_all:this.text.close_all},r.prototype.eventOnClick=function(e,t){t.stopPropagation(),t.preventDefault(),this.toggleButton(e)},r.prototype.toggleButton=function(n,o){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=null;if(n.parentNode.parentNode.classList.contains("accordion")?r=n.parentNode.parentNode:n.parentNode.parentNode.parentNode.classList.contains("accordion")&&(r=n.parentNode.parentNode.parentNode),o=e(n,o)){let e=new Event("fds.accordion.open");n.dispatchEvent(e)}else{let e=new Event("fds.accordion.close");n.dispatchEvent(e)}if(null!==r){let e=r.previousElementSibling;if(null!==e&&e.classList.contains("accordion-bulk-button")){let n=r.querySelectorAll(t);if(!1===a){let o=r.querySelectorAll(t+'[aria-expanded="true"]'),a=!0;n.length===o.length&&(a=!1),e.setAttribute(i,a),e.innerText=!0===a?this.text.open_all:this.text.close_all}}}};const l=r;function s(e){this.alert=e}s.prototype.init=function(){let e=this.alert.getElementsByClassName("alert-close");1===e.length&&e[0].addEventListener("click",this.hide.bind(this))},s.prototype.hide=function(){this.alert.classList.add("d-none");let e=new Event("fds.alert.hide");this.alert.dispatchEvent(e)},s.prototype.show=function(){this.alert.classList.remove("d-none");let e=new Event("fds.alert.show");this.alert.dispatchEvent(e)};const d=s;function c(e){this.backtotop=e}function u(e){let t=document.body,n=document.documentElement,o=2*Math.max(n.clientHeight||0,window.innerHeight||0);if(o>Math.max(t.scrollHeight,t.offsetHeight,t.getBoundingClientRect().height,n.scrollHeight,n.offsetHeight,n.getBoundingClientRect().height,n.clientHeight))e.classList.add("d-none");else{e.classList.remove("d-none");let t=window.scrollY,n=function(e){if(e){if(e.querySelector(".footer")){let t=e.querySelector(".footer").getBoundingClientRect();return t.top<window.innerHeight||t.top<document.documentElement.clientHeight}return!1}return!1}(document.getElementsByTagName("footer")[0]);if(t>=o)n&&!e.classList.contains("footer-sticky")?e.classList.add("footer-sticky"):!n&&e.classList.contains("footer-sticky")&&e.classList.remove("footer-sticky");else{let t=!1,o=document.querySelector(".sidemenu");if(o){if(null!==o.offsetParent){let e=o.closest(".overflow-menu-inner");if(e){if("false"===e.getAttribute("aria-hidden")){let n=e.previousElementSibling;if(n){null===n.offsetParent&&(t=!0)}}}else t=!0}}if(t){o.getBoundingClientRect().bottom<0?!n&&e.classList.contains("footer-sticky")?e.classList.remove("footer-sticky"):n&&!e.classList.contains("footer-sticky")&&e.classList.add("footer-sticky"):e.classList.contains("footer-sticky")||e.classList.add("footer-sticky")}else e.classList.contains("footer-sticky")||e.classList.add("footer-sticky")}}}c.prototype.init=function(){let e=this.backtotop;u(e);const t=document.body;let n=document.querySelector("header.header");new MutationObserver((function(t,o){for(const o of t)o.target!==e&&(null===n?u(e):n.contains(o.target)||u(e))})).observe(t,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),window.addEventListener("scroll",(function(t){u(e)})),window.addEventListener("resize",(function(t){u(e)})),window.addEventListener("load",(function(t){u(e)}))};const h=c,p="data-maxlength",g={character_remaining:"Du har {value} tegn tilbage",characters_remaining:"Du har {value} tegn tilbage",character_too_many:"Du har {value} tegn for meget",characters_too_many:"Du har {value} tegn for meget"};function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;if(!e)throw new Error("Missing form-limit element");this.container=e,this.input=e.getElementsByClassName("form-input")[0],this.maxlength=this.container.getAttribute(p),this.text=t;let n=null,o=this.input.value,i=null,a=()=>{b(this),n=Date.now()},r=()=>{if(""!==this.input.value){this.container.getElementsByClassName("character-limit-sr-only")[0].innerHTML=""}i=setInterval(function(){if(!n||Date.now()-500>=n){let e=this.container.getElementsByClassName("character-limit-sr-only")[0].innerHTML,t=this.container.getElementsByClassName("character-limit")[0].innerHTML;o===this.input.value&&e===t||(o=this.input.value,this.updateMessages())}}.bind(this),1e3)},l=()=>{clearInterval(i),o!==this.input.value&&(o=this.input.value,this.updateMessages())};this.init=function(){if(!this.maxlength)throw new Error(`Character limit is missing attribute ${p}`);this.input.addEventListener("keyup",(function(){a()})),this.input.addEventListener("focus",(function(){r()})),this.input.addEventListener("blur",(function(){l()})),"onpageshow"in window?window.addEventListener("pageshow",(()=>{this.updateMessages()})):window.addEventListener("DOMContentLoaded",(()=>{this.updateMessages()}))}}function f(e){let t="",n=e.charactersLeft();if(-1===n){let o=Math.abs(n);t=e.text.character_too_many.replace(/{value}/,o)}else if(1===n)t=e.text.character_remaining.replace(/{value}/,n);else if(n>=0)t=e.text.characters_remaining.replace(/{value}/,n);else{let o=Math.abs(n);t=e.text.characters_too_many.replace(/{value}/,o)}return t}function b(e){let t=e.charactersLeft(),n=f(e),o=e.container.getElementsByClassName("character-limit")[0];t<0?(o.classList.contains("limit-exceeded")||o.classList.add("limit-exceeded"),e.input.classList.contains("form-limit-error")||e.input.classList.add("form-limit-error")):(o.classList.contains("limit-exceeded")&&o.classList.remove("limit-exceeded"),e.input.classList.contains("form-limit-error")&&e.input.classList.remove("form-limit-error")),o.innerHTML=n}m.prototype.charactersLeft=function(){let e=this.input.value.length;return this.maxlength-e},m.prototype.updateMessages=function(){b(this),function(e){let t=f(e);e.container.getElementsByClassName("character-limit-sr-only")[0].innerHTML=t}(this)};const v=m,y="data-aria-controls";function w(e){this.checkboxElement=e,this.targetElement=null}w.prototype.init=function(){this.checkboxElement.addEventListener("change",this.toggle.bind(this)),this.toggle()},w.prototype.toggle=function(){var e=this.checkboxElement.getAttribute(y),t=document.getElementById(e);if(null==t)throw new Error("Could not find panel element. Verify value of attribute "+y);this.checkboxElement.checked?this.expand(this.checkboxElement,t):this.collapse(this.checkboxElement,t)},w.prototype.expand=function(e,t){if(null!=e&&null!=t){e.setAttribute("data-aria-expanded","true"),t.classList.remove("collapsed"),t.setAttribute("aria-hidden","false");let n=new Event("fds.collapse.expanded");e.dispatchEvent(n)}},w.prototype.collapse=function(e,t){if(null!=e&&null!=t){e.setAttribute("data-aria-expanded","false"),t.classList.add("collapsed"),t.setAttribute("aria-hidden","true");let n=new Event("fds.collapse.collapsed");e.dispatchEvent(n)}};const E=w,L=n(130).A,A=".button-overflow-menu",x="data-js-target";function C(e){if(this.buttonElement=e,this.targetEl=null,this.responsiveListCollapseEnabled=!1,null===this.buttonElement||void 0===this.buttonElement)throw new Error("Could not find button for overflow menu component.");let t=this.buttonElement.getAttribute(x);if(null==t)throw new Error("Attribute could not be found on overflow menu component: "+x);let n=document.getElementById(t);if(null==n)throw new Error("Panel for overflow menu component could not be found.");this.targetEl=n,document.addEventListener("focusin",_)}C.prototype.init=function(){if(null!==this.buttonElement&&void 0!==this.buttonElement&&null!==this.targetEl&&void 0!==this.targetEl){(this.buttonElement.parentNode.classList.contains("overflow-menu--md-no-responsive")||this.buttonElement.parentNode.classList.contains("overflow-menu--lg-no-responsive"))&&(this.responsiveListCollapseEnabled=!0),document.getElementsByTagName("body")[0].removeEventListener("click",T),document.getElementsByTagName("body")[0].addEventListener("click",T),this.buttonElement.removeEventListener("click",D),this.buttonElement.addEventListener("click",D);let e=this;if(this.responsiveListCollapseEnabled){let t=this.buttonElement;if(window.IntersectionObserver){new IntersectionObserver((function(n){n[0].intersectionRatio?"false"===t.getAttribute("aria-expanded")&&e.targetEl.setAttribute("aria-hidden","true"):"true"===e.targetEl.getAttribute("aria-hidden")&&e.targetEl.setAttribute("aria-hidden","false")}),{root:document.body}).observe(t)}else B(e.triggerEl)&&"false"===t.getAttribute("aria-expanded")?e.targetEl.setAttribute("aria-hidden","true"):e.targetEl.setAttribute("aria-hidden","false"),window.addEventListener("resize",(function(){B(e.triggerEl)&&"false"===t.getAttribute("aria-expanded")?e.targetEl.setAttribute("aria-hidden","true"):e.targetEl.setAttribute("aria-hidden","false")}))}document.removeEventListener("keyup",k),document.addEventListener("keyup",k)}},C.prototype.hide=function(){$(this.buttonElement)},C.prototype.show=function(){$(this.buttonElement)};let k=function(e){27===(e.which||e.keyCode)&&S(e)},S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=!1;document.querySelector("body");let n=document.querySelectorAll(".overflow-menu, .submenu");for(let e=0;e<n.length;e++){let o=n[e].querySelector(A+'[aria-expanded="true"]');if(null!==o){t=!0;let e=document.getElementById(o.getAttribute(x).replace("#",""));if(null!==e&&null!==o&&B(o)){if(!0===o.getAttribute("aria-expanded")){let e=new Event("fds.dropdown.close");o.dispatchEvent(e)}o.setAttribute("aria-expanded","false"),e.classList.add("collapsed"),e.setAttribute("aria-hidden","true")}}}t&&null!==e&&e.stopImmediatePropagation()},D=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.stopPropagation(),e.preventDefault(),$(this,t)},$=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e,o=null;if(null!=n){let e=n.getAttribute(x);null!=e&&(o=document.getElementById(e))}if(null!=n&&null!=o)if(o.style.left=null,o.style.right=null,"true"===n.getAttribute("aria-expanded")||t){n.setAttribute("aria-expanded","false"),o.classList.add("collapsed"),o.setAttribute("aria-hidden","true");let e=new Event("fds.dropdown.close");n.dispatchEvent(e)}else{n.setAttribute("aria-expanded","true"),o.classList.remove("collapsed"),o.setAttribute("aria-hidden","false");let e=new Event("fds.dropdown.open");n.dispatchEvent(e);let t=function(e){let t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,o=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+o,left:t.left+n}}(o);if(t.left<0){let e=4;parseInt(window.getComputedStyle(o).marginLeft)<0&&(e=0-parseInt(window.getComputedStyle(o).marginLeft)),o.style.left=e+"px",o.style.right="auto"}t.left+o.offsetWidth>document.documentElement.clientWidth&&(o.style.left="auto",o.parentNode.classList.contains("submenu")?o.style.right="-4px":o.style.right="4px")}},N=function(e,t){return e.parentNode.tagName===t||"BODY"!==t&&"BODY"!==e.parentNode.tagName&&N(e.parentNode,t)};function _(e){let t=document.querySelectorAll(".overflow-menu, .submenu");for(let n=0;n<t.length;n++){let o=t[n].querySelectorAll("li"),i=t[n].querySelector(".button-overflow-menu");if(i){let t=[...o].includes(e.target.parentElement),n=i===e.target;t||n||$(i,!0)}}}let T=function(e){if(!document.getElementsByTagName("body")[0].classList.contains("mobile-nav-active")&&null===document.querySelector("body.mobile-nav-active")&&!e.target.classList.contains("button-menu-close")){let t=document.querySelectorAll(A+"[aria-expanded=true]");for(let n=0;n<t.length;n++){let o=t[n],i=null,a=o.getAttribute(x);if(null!=a&&(-1!==a.indexOf("#")&&(a=a.replace("#","")),i=document.getElementById(a)),(B(o)||N(o,"HEADER")&&!e.target.classList.contains("overlay"))&&e.target!==o){o.setAttribute("aria-expanded","false"),i.classList.add("collapsed"),i.setAttribute("aria-hidden","true");let e=new Event("fds.dropdown.close");o.dispatchEvent(e)}}}},B=function(e){if(!e.classList.contains("js-dropdown--responsive-collapse")){if(!e.parentNode.classList.contains("overflow-menu--md-no-responsive")&&!e.parentNode.classList.contains("overflow-menu--lg-no-responsive"))return!0;if(window.innerWidth<=M(e))return!0}return!1},M=function(e){return e.parentNode.classList.contains("overflow-menu--md-no-responsive")?L.md:e.parentNode.classList.contains("overflow-menu--lg-no-responsive")?L.lg:void 0};const q=C;function j(e){this.container=e,this.button=e.getElementsByClassName("button-overflow-menu")[0],this.overflowMenu=new q(this.button),this.container.querySelector('.overflow-list li button[aria-current="true"]')||this.container.querySelectorAll(".overflow-list li button")[0].setAttribute("aria-current","true"),this.updateSelectedValue()}j.prototype.init=function(){this.overflowMenu.init();let e=this.container.querySelectorAll(".overflow-list li button");for(let t=0;t<e.length;t++){e[t].addEventListener("click",this.onOptionClick.bind(this))}},j.prototype.updateSelectedValue=function(){let e=this.container.querySelector('.overflow-list li button[aria-current="true"]');this.container.getElementsByClassName("button-overflow-menu")[0].getElementsByClassName("selected-value")[0].innerText=e.innerText},j.prototype.onOptionClick=function(e){let t=e.target.closest("li");t.parentNode.querySelector('li button[aria-current="true"]').removeAttribute("aria-current"),t.querySelectorAll(".overflow-list li button")[0].setAttribute("aria-current","true");let n=t.parentNode.parentNode.parentNode.getElementsByClassName("button-overflow-menu")[0],o=new Event("fds.dropdown.selected");o.detail=this.target,n.dispatchEvent(o),this.updateSelectedValue(),this.overflowMenu.hide()};const R=j;function I(e){this.element=e}I.prototype.init=function(){this.element&&(this.element.focus(),this.element.addEventListener("click",this.handleClick.bind(this)))},I.prototype.handleClick=function(e){var t=e.target;this.focusTarget(t)&&e.preventDefault()},I.prototype.focusTarget=function(e){if("A"!==e.tagName||!1===e.href)return!1;var t=this.getFragmentFromUrl(e.href),n=document.getElementById(t);if(!n)return!1;var o=this.getAssociatedLegendOrLabel(n);return!!o&&(o.scrollIntoView(),n.focus({preventScroll:!0}),!0)},I.prototype.getFragmentFromUrl=function(e){return-1!==e.indexOf("#")&&e.split("#").pop()},I.prototype.getAssociatedLegendOrLabel=function(e){var t=e.closest("fieldset");if(t){var n=t.getElementsByTagName("legend");if(n.length){var o=n[0];if("checkbox"===e.type||"radio"===e.type)return o;var i=o.getBoundingClientRect().top,a=e.getBoundingClientRect();if(a.height&&window.innerHeight)if(a.top+a.height-i<window.innerHeight/2)return o}}return document.querySelector("label[for='"+e.getAttribute("id")+"']")||e.closest("label")};const Y=I;function P(e){this.$modal=e;let t=this.$modal.getAttribute("id");this.triggers=document.querySelectorAll('[data-module="modal"][data-target="'+t+'"]')}P.prototype.init=function(){let e=this.triggers;for(let t=0;t<e.length;t++){e[t].addEventListener("click",this.show.bind(this))}let t=this.$modal.querySelectorAll("[data-modal-close]");for(let e=0;e<t.length;e++){t[e].addEventListener("click",this.hide.bind(this))}},P.prototype.hide=function(){let e=this.$modal;if(null!==e){e.setAttribute("aria-hidden","true");let t=new Event("fds.modal.hidden");e.dispatchEvent(t);let n=document.querySelector("#modal-backdrop");n&&n.parentNode.removeChild(n),document.getElementsByTagName("body")[0].classList.remove("modal-open"),H(e)||document.removeEventListener("keyup",O);let o=document.querySelectorAll("body > *");for(let e=0;e<o.length;e++)o[e].classList.contains("fds-modal-inert")&&(o[e].removeAttribute("inert"),o[e].classList.remove("fds-modal-inert"));let i=document.querySelector("[data-modal-opener]");if(null!==i){let t=document.getElementById(i.getAttribute("data-modal-opener"));null!==t&&t.focus(),e.removeAttribute("data-modal-opener")}}},P.prototype.show=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.$modal;if(null!==t){if(null!==e){let n=e.target.getAttribute("id");null===n&&(n="modal-opener-"+Math.floor(9e3*Math.random()+1e3),e.target.setAttribute("id",n)),t.setAttribute("data-modal-opener",n)}let n=document.querySelectorAll(".fds-modal[aria-hidden=false]");for(let e=0;e<n.length;e++)new P(n[e]).hide();t.setAttribute("aria-hidden","false"),t.setAttribute("tabindex","-1");let o=new Event("fds.modal.shown");t.dispatchEvent(o);let i=document.createElement("div");i.classList.add("modal-backdrop"),i.setAttribute("id","modal-backdrop"),document.getElementsByTagName("body")[0].appendChild(i),document.getElementsByTagName("body")[0].classList.add("modal-open"),t.focus(),H(t)||document.addEventListener("keyup",O);let a=document.querySelectorAll("body > *");for(let e=0;e<a.length;e++){let t=a[e];"SCRIPT"===t.tagName||t.classList.contains("fds-modal-container")||t.hasAttribute("inert")||(t.setAttribute("inert",""),t.classList.add("fds-modal-inert"))}}};let O=function(e){let t=e.key,n=document.querySelector(".fds-modal[aria-hidden=false]"),o=new P(document.querySelector(".fds-modal[aria-hidden=false]"));if("Escape"===t){let e=n.querySelectorAll('.button-overflow-menu[aria-expanded="true"]'),t=n.querySelectorAll(".tooltip-wrapper:not(.hide-tooltip)");0===e.length&&0===t.length&&o.hide()}};function H(e){return null!==e.getAttribute("data-modal-forced-action")}const F=P,V=n(141),U=n(464).A,X=".mobile-drawer",K=".js-menu-open",W=".js-menu-close",z=`${W}, .overlay`,G=[X,".overlay"].join(", "),Z="mobile-nav-active";const J=function(){let e=document.querySelectorAll(".navigation-menu .mainmenu")[0],t=document.createElement("li");t.classList.add("more-option"),t.classList.add("d-none"),t.innerHTML='<div class="submenu"><button class="more-button button-overflow-menu js-dropdown" data-js-target="fds-more-menu" aria-expanded="false" aria-controls="fds-more-menu"><span>Mere</span></button><div class="overflow-menu-inner collapsed" id="fds-more-menu" aria-hidden="true"><ul class="overflow-list"></ul></div></div>',e.append(t),new q(document.getElementsByClassName("more-button")[0]).init()},Q=function(){let e=document.querySelectorAll(".navigation-menu .mainmenu > li"),t=e[e.length-1],n=document.querySelectorAll(".navigation-menu .more-option .overflow-list")[0],o=Math.floor(document.querySelectorAll(".navigation-menu .navigation-menu-inner")[0].getBoundingClientRect().width),i=0,a=0;document.querySelectorAll(".navigation-menu.contains-search").length>0?i=ee(document.querySelectorAll(".navigation-menu .search")[0]):a=parseInt(window.getComputedStyle(document.querySelectorAll(".navigation-menu .more-option .more-button")[0]).paddingRight);let r=o-i-parseInt(window.getComputedStyle(document.querySelectorAll(".navigation-menu .navigation-menu-inner")[0]).paddingRight)+a,l=0;for(let t=0;t<e.length-1&&(l+=ee(e[t]),!(l>=r));t++);if(l<r){for(let t=0;t<e.length-1;t++)e[t].classList.remove("d-none");t.classList.add("d-none")}else{let o=ee(t);n.innerHTML="";for(let t=0;t<e.length-1;t++)if(o+=ee(e[t]),o>=r){if(e[t].classList.remove("d-none"),e[t].getElementsByClassName("submenu").length>0){let o=document.createElement("li");e[t].getElementsByClassName("active").length>0&&o.classList.add("active");let i=e[t].getElementsByClassName("button-overflow-menu")[0].getElementsByTagName("SPAN")[0].innerText;o.innerHTML='<ul aria-label="'+i+'"><span class="sub-title" aria-hidden="true">'+i+"</span></ul>";let a=e[t].getElementsByTagName("LI");for(let e=0;e<a.length;e++)o.getElementsByTagName("UL")[0].append(a[e].cloneNode(!0));n.append(o)}else n.append(e[t].cloneNode(!0));e[t].classList.add("d-none")}else e[t].classList.remove("d-none");t.classList.remove("d-none")}},ee=function(e){let t=0;return e.classList.contains("d-none")?(e.classList.remove("d-none"),t=e.getBoundingClientRect().width,e.classList.add("d-none")):t=e.getBoundingClientRect().width,Math.ceil(t)},te=function(){let e=!1,t=document.querySelectorAll(K);for(let n=0;n<t.length;n++)"none"!==window.getComputedStyle(t[n],null).display&&(t[n].addEventListener("click",ae),e=!0);if(e){let e=document.querySelectorAll(z);for(let t=0;t<e.length;t++)e[t].addEventListener("click",ae);let t=document.querySelectorAll(".navigation-menu-mobile a");for(let e=0;e<t.length;e++)t[e].addEventListener("click",(function(){ne()&&ae.call(this,!1)}));let n=document.querySelectorAll('[data-module="modal"]');for(let e=0;e<n.length;e++)n[e].addEventListener("click",(function(){ne()&&ae.call(this,!1)}));const o=document.querySelectorAll(X);for(let e=0;e<o.length;e++)ie=oe(o[e])}const n=document.body.querySelector(W);ne()&&n&&0===n.getBoundingClientRect().width&&ae.call(n,!1)},ne=()=>document.body.classList.contains(Z),oe=e=>{let t=e.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]'),n=t[0];function o(e){if(9===(event.which||event.keyCode)){let o=null;for(let e=0;e<t.length;e++){let n=t.length-1,i=t[n-e];if(i.offsetWidth>0&&i.offsetHeight>0){o=i;break}}e.shiftKey?document.activeElement===n&&(e.preventDefault(),o.focus()):document.activeElement===o&&(e.preventDefault(),n.focus())}"Escape"===e.key&&ae.call(this,!1)}return{enable(){n.focus(),document.addEventListener("keydown",o)},release(){document.removeEventListener("keydown",o)}}};let ie;const ae=function(e){const t=document.body;"boolean"!=typeof e&&(e=!ne()),t.classList.toggle(Z,e),V(U(G),(t=>{t.classList.toggle("is-visible",e)})),e?ie.enable():ie.release();const n=t.querySelector(W),o=t.querySelector(K);return e&&n?n.focus():!e&&o&&o.focus(),e},re=class{init(){if(window.addEventListener("resize",te,!1),te(),document.querySelectorAll(".navigation-menu .mainmenu").length>0){J();let e=[],t=document.querySelectorAll(".navigation-menu .mainmenu > li");for(let n=0;n<t.length-1;n++){let o=ee(t[n]);e.push(o)}1===new Set(e).size||Q(),window.addEventListener("resize",Q,!1);let n={attributes:!1,attributeOldValue:!1,characterData:!1,characterDataOldValue:!1,childList:!0,subtree:!1};const o=document.querySelector(".navigation-menu .mainmenu");new MutationObserver((function(e,t){Q()})).observe(o,n),window.onload=e=>{Q()},"complete"===document.readyState&&Q()}}teardown(){window.removeEventListener("resize",te,!1),document.getElementsByClassName("mainmenu").length>0&&(document.querySelectorAll(".navigation-menu .more-option")[0].remove,window.removeEventListener("resize",Q,!1))}},le="data-js-target";function se(e){if(this.buttonElement=e,this.targetEl=null,null===this.buttonElement||void 0===this.buttonElement)throw new Error("Could not find button for overflow menu component.");let t=this.buttonElement.getAttribute(le);if(null==t)throw new Error("Attribute could not be found on overflow menu component: "+le);let n=document.getElementById(t.replace("#",""));if(null==n)throw new Error("Panel for overflow menu component could not be found.");this.targetEl=n}se.prototype.init=function(){null!==this.buttonElement&&void 0!==this.buttonElement&&null!==this.targetEl&&void 0!==this.targetEl&&(this.buttonElement.removeEventListener("click",de),this.buttonElement.addEventListener("click",de))},se.prototype.hide=function(){ce(this.buttonElement)},se.prototype.show=function(){ce(this.buttonElement)};let de=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.stopPropagation(),e.preventDefault(),ce(this,t)},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e,o=null;if(null!=n){let e=n.getAttribute(le);null!=e&&(o=document.getElementById(e.replace("#","")))}if(null!=n&&null!=o)if("true"===n.getAttribute("aria-expanded")||t){n.setAttribute("aria-expanded","false"),o.setAttribute("aria-hidden","true");let e=new Event("fds.menudropdown.close");n.dispatchEvent(e)}else{n.setAttribute("aria-expanded","true"),o.setAttribute("aria-hidden","false");let e=new Event("fds.menudropdown.open");n.dispatchEvent(e)}};const ue=se,he="data-controls";function pe(e){this.radioGroup=e,this.radioEls=null,this.targetEl=null}pe.prototype.init=function(){if(this.radioEls=this.radioGroup.querySelectorAll('input[type="radio"]'),0===this.radioEls.length)throw new Error("No radiobuttons found in radiobutton group.");var e=this;for(let n=0;n<this.radioEls.length;n++){var t=this.radioEls[n];t.addEventListener("change",(function(){for(let t=0;t<e.radioEls.length;t++)e.toggle(e.radioEls[t])})),this.toggle(t)}},pe.prototype.toggle=function(e){var t=e.getAttribute(he);if(null!=t&&""!==t){var n=document.querySelector(t);if(null==n)throw new Error("Could not find panel element. Verify value of attribute "+he);e.checked?this.expand(e,n):this.collapse(e,n)}},pe.prototype.expand=function(e,t){if(null!=e&&null!=t){e.setAttribute("data-expanded","true"),t.setAttribute("aria-hidden","false");let n=new Event("fds.radio.expanded");e.dispatchEvent(n)}},pe.prototype.collapse=function(e,t){if(null!=e&&null!=t){e.setAttribute("data-expanded","false"),t.setAttribute("aria-hidden","true");let n=new Event("fds.radio.collapsed");e.dispatchEvent(n)}};const ge=pe,me=n(464).A;const fe=class{constructor(e){!function(e){if(!e)return;let t=e.getElementsByTagName("thead");if(0!==t.length){let n=t[0].getElementsByTagName("th");if(0==n.length&&(n=t[0].getElementsByTagName("td")),n.length>0){const t=me("tbody tr",e);Array.from(t).forEach((e=>{let t=e.children;t.length===n.length&&Array.from(n).forEach(((e,n)=>{if(!t[n].hasAttribute("data-title")&&"TH"===e.tagName&&!e.classList.contains("sr-header")){let o=e.querySelector(".button.button-unstyled");o?t[n].setAttribute("data-title",o.firstChild.textContent):t[n].setAttribute("data-title",e.textContent)}}))}))}}}(e)}};var be={ArrowLeft:-1,ArrowRight:1};function ve(e){if(!e)throw new Error("Missing tab-container element");this.tabContainer=e,this.tabs=this.tabContainer.querySelectorAll(".tab-button")}function ye(e){let t=e.key;if("ArrowLeft"===t||"ArrowRight"===t||"Home"===t||"End"===t){if(e.preventDefault(),e.repeat)return;!function(e){let t=e.key,n=e.target,o=n.parentNode.parentNode,i=we(n);if(be[t]){let e=function(e,t){let n=-1;for(let o=0;o<t.length;o++)if(t[o]===e){n=o;break}return n}(n,i);-1!==e&&(i[e+be[t]]?new ve(o).activateTab(i[e+be[t]],!0):"ArrowLeft"===t?new ve(o).activateTab(i[i.length-1],!0):"ArrowRight"===t&&new ve(o).activateTab(i[0],!0))}else"Home"===t?new ve(o).activateTab(i[0],!0):"End"===t&&new ve(o).activateTab(i[i.length-1],!0)}(e)}}function we(e){let t=e.parentNode.parentNode;return t.classList.contains("tab-container")?t.querySelectorAll(".tab-button"):[]}ve.prototype.init=function(){let e=this.tabContainer.querySelectorAll(".tab-panel");if(this.tabs.length<2||e.length<2)throw new Error("tab-container must have at least two tabs (tab-button) and tabpanels (tab-panel).");let t=0;for(let e=0;e<this.tabs.length;e++){this.tabs[e].hasAttribute("aria-selected")&&("true"===this.tabs[e].getAttribute("aria-selected")?t++:this.tabs[e].setAttribute("tabindex","-1"))}if(0===t)throw new Error("tab-container does not have any selected tabs.");if(t>1)throw new Error("tab-container must only have one selected tab.");let n=this;for(let e=0;e<this.tabs.length;e++)this.tabs[e].addEventListener("click",(function(){n.activateTab(this,!1)})),this.tabs[e].addEventListener("keydown",ye)},ve.prototype.activateTab=function(e,t){let n=we(e);if(null!==e.getAttribute("aria-selected")){for(let t=0;t<this.tabs.length;t++){if(n[t]===e)continue;if("true"===n[t].getAttribute("aria-selected")){let e=new Event("fds.tab.hidden");n[t].dispatchEvent(e)}n[t].setAttribute("aria-selected","false"),n[t].setAttribute("tabindex","-1");let o=n[t].getAttribute("aria-controls"),i=document.getElementById(o);if(null===i)throw new Error("Could not find tabpanel from ID.");i.setAttribute("hidden","")}e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0");let o=e.getAttribute("aria-controls"),i=document.getElementById(o);if(null===i)throw new Error("Could not find tabpanel to set active.");i.removeAttribute("hidden"),t&&e.focus();let a=new Event("fds.tab.changed");this.tabContainer.dispatchEvent(a);let r=new Event("fds.tab.selected");e.dispatchEvent(r)}};const Ee=ve;function Le(e){this.table=e}function Ae(e){let t=e.target;t.removeAttribute("aria-checked");let n=e.target.parentNode.parentNode.parentNode.parentNode.parentNode,o=new Le(n).getCheckboxList(),i=0;if(t.checked){for(let e=0;e<o.length;e++){let t=o[e].parentNode.parentNode;t.matches("td:first-child")&&(o[e].checked=!0,t.parentNode.classList.add("table-row-selected"))}i=o.length}else for(let e=0;e<o.length;e++){let t=o[e].parentNode.parentNode;t.matches("td:first-child")&&(o[e].checked=!1,t.parentNode.classList.remove("table-row-selected"))}const a=new CustomEvent("fds.table.selectable.updated",{bubbles:!0,cancelable:!0,detail:{checkedNumber:i}});n.dispatchEvent(a)}function xe(e){e.target.checked?e.target.parentNode.parentNode.parentNode.classList.add("table-row-selected"):e.target.parentNode.parentNode.parentNode.classList.remove("table-row-selected");let t=e.target.parentNode.parentNode.parentNode.parentNode.parentNode,n=new Le(t),o=n.getGroupCheckbox();if(!1!==o){let e=n.getCheckboxList(),i=0,a=0;for(let t=0;t<e.length;t++){let n=e[t],o=n.parentNode.parentNode;n.checked&&o.matches("td:first-child")?(i++,a++):o.matches("td:first-child")&&a++}i===a?(o.removeAttribute("aria-checked"),o.indeterminate=!1,o.checked=!0):0==i?(o.removeAttribute("aria-checked"),o.indeterminate=!1,o.checked=!1):(o.setAttribute("aria-checked","mixed"),o.indeterminate=!0);const r=new CustomEvent("fds.table.selectable.updated",{bubbles:!0,cancelable:!0,detail:{checkedNumber:i}});t.dispatchEvent(r)}}Le.prototype.init=function(){if(this.groupCheckbox=this.getGroupCheckbox(),this.tbodyCheckboxList=this.getCheckboxList(),0!==this.tbodyCheckboxList.length)for(let e=0;e<this.tbodyCheckboxList.length;e++){let t=this.tbodyCheckboxList[e];t.parentNode.parentNode.matches("td:first-child")&&(t.removeEventListener("change",xe),t.addEventListener("change",xe))}!1!==this.groupCheckbox&&(this.groupCheckbox.removeEventListener("change",Ae),this.groupCheckbox.addEventListener("change",Ae))},Le.prototype.getGroupCheckbox=function(){let e=this.table.getElementsByTagName("thead")[0].getElementsByClassName("form-checkbox");return 0!==e.length&&e[0]},Le.prototype.getCheckboxList=function(){return this.table.getElementsByTagName("tbody")[0].getElementsByClassName("form-checkbox")};const Ce=Le;function ke(e){this.element=e}function Se(){let e=document.querySelectorAll(".toast.showing");for(let t=0;t<e.length;t++){let n=e[t];n.classList.remove("showing"),n.classList.add("show")}}ke.prototype.show=function(){this.element.classList.remove("hide"),this.element.classList.add("showing"),this.element.getElementsByClassName("toast-close")[0].addEventListener("click",(function(){new ke(this.parentNode.parentNode).hide()})),requestAnimationFrame(Se)},ke.prototype.hide=function(){this.element.classList.remove("show"),this.element.classList.add("hide")};const De=ke;let $e=[];function Ne(e){if(0===e.getElementsByClassName("tooltip-target").length)throw new Error("Missing tooltip target. Add class 'tooltip-target' to element inside tooltip wrapper.");if(!e.hasAttribute("data-tooltip")||""===e.dataset.tooltip)throw new Error("Missing tooltip text. Wrapper must have data attribute 'data-tooltip'.");if("hover"!==e.dataset.trigger&&"click"!==e.dataset.trigger)throw new Error("Missing trigger. Tooltip wrapper must have data attribute 'data-trigger=\"hover\"' or 'data-trigger=\"click\"'.");if(!e.hasAttribute("data-tooltip-id")||""===e.dataset.tooltipId)throw new Error("Missing ID. Tooltip wrapper must have data attribute 'data-tooltip-id'.");{this.wrapper=e,this.target=e.getElementsByClassName("tooltip-target")[0],this.tooltip=document.createElement("span"),this.tooltip.classList.add("tooltip"),this.wrapperParents=[];let t=document.createElement("span");t.classList.add("tooltip-arrow"),t.setAttribute("aria-hidden",!0),$e.push(this)}}function _e(e){let t=document.createElement("span");t.classList.add("tooltip-arrow"),t.setAttribute("aria-hidden",!0),e.append(t)}function Te(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Be(e){const t=window.getComputedStyle(e);return"visible"!==t.overflowX||"visible"!==t.overflowY}function Me(e){for(let t=0;t<$e.length;t++){let n=$e[t].target,o=$e[t].tooltip,i=n.getBoundingClientRect().left<=e.clientX&&e.clientX<=n.getBoundingClientRect().right&&n.getBoundingClientRect().top<=e.clientY&&e.clientY<=n.getBoundingClientRect().bottom,a="none"!==window.getComputedStyle(o).display&&o.getBoundingClientRect().left<=e.clientX&&e.clientX<=o.getBoundingClientRect().right&&o.getBoundingClientRect().top<=e.clientY&&e.clientY<=o.getBoundingClientRect().bottom;i||n===document.activeElement||a?"beforeprint"===e.type&&$e[t].hideTooltip():$e[t].hideTooltip()}}function qe(e){let t=e.key;if("Tab"===t)for(let e=0;e<$e.length;e++){let t=$e[e].target;document.activeElement!==t&&$e[e].isShowing()&&$e[e].hideTooltip()}else if("Escape"===t){let t=!1;for(let e=0;e<$e.length;e++)$e[e].isShowing()&&($e[e].hideTooltip(),t=!0);t&&e.stopImmediatePropagation()}}Ne.prototype.init=function(){let e=this.wrapper,t=this.target,n=this.tooltip;this.updateTooltip=()=>{this.updateTooltipPosition()},this.hideTooltip(),document.body.addEventListener("click",Me),document.body.addEventListener("keyup",qe),window.addEventListener("beforeprint",Me);let o="hover"===e.dataset.trigger;if(n.id=e.dataset.tooltipId,o)e.append(n),_e(e),t.classList.contains("tooltip-is-label")?t.setAttribute("aria-labelledby",e.dataset.tooltipId):t.setAttribute("aria-describedby",e.dataset.tooltipId),n.setAttribute("role","tooltip"),n.innerText=e.dataset.tooltip,t.addEventListener("pointerover",(e=>{"mouse"===e.pointerType&&(t.classList.add("js-hover"),setTimeout((()=>{t.classList.contains("js-hover")&&this.showTooltip()}),300))})),t.addEventListener("pointerdown",(e=>{"touch"===e.pointerType&&(t.classList.remove("js-pressed"),t.releasePointerCapture(e.pointerId),t.classList.add("js-pressing"),setTimeout((()=>{t.classList.contains("js-pressing")&&(t.classList.add("js-pressed"),t.classList.remove("js-pressing"))}),600))})),t.addEventListener("pointerup",(e=>{"touch"===e.pointerType&&t.classList.contains("js-pressed")&&(e.preventDefault(),this.showTooltip())})),t.addEventListener("click",(()=>{document.activeElement===t||t.classList.contains("js-pressed")||(t.classList.remove("js-hover"),this.hideTooltip())})),t.addEventListener("focus",(()=>{this.showTooltip()})),t.addEventListener("pointerleave",(n=>{if("mouse"===n.pointerType){t.classList.remove("js-hover");let o=(t.getBoundingClientRect().top+t.getBoundingClientRect().bottom)/2,i=!1;e.classList.contains("place-above")?i=t.getBoundingClientRect().left<=n.clientX&&n.clientX<=t.getBoundingClientRect().right&&n.clientY<=o:e.classList.contains("place-below")&&(i=t.getBoundingClientRect().left<=n.clientX&&n.clientX<=t.getBoundingClientRect().right&&n.clientY>=o),i||this.hideTooltip()}else"touch"===n.pointerType&&(t.classList.remove("js-pressing"),t.classList.remove("js-pressed"))})),n.addEventListener("pointerleave",(o=>{if("mouse"===o.pointerType){t.classList.remove("js-hover");let i=(n.getBoundingClientRect().top+n.getBoundingClientRect().bottom)/2,a=!1;e.classList.contains("place-above")?a=n.getBoundingClientRect().left<=o.clientX&&o.clientX<=n.getBoundingClientRect().right&&o.clientY>=i:e.classList.contains("place-below")&&(a=n.getBoundingClientRect().left<=o.clientX&&o.clientX<=n.getBoundingClientRect().right&&o.clientY<=i),a||this.hideTooltip()}})),e.addEventListener("pointerleave",(e=>{"mouse"===e.pointerType&&(t.classList.remove("js-hover"),this.hideTooltip())}));else{let o=document.createElement("span");o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),e.append(o),o.append(n),_e(e),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-controls",e.dataset.tooltipId),t.addEventListener("click",(()=>{e.classList.contains("hide-tooltip")?this.showTooltip():this.hideTooltip()}))}},Ne.prototype.hideTooltip=function(){if(window.removeEventListener("resize",this.updateTooltip,!1),"true"===this.wrapper.dataset.forceVisible){document.removeEventListener("scroll",this.updateTooltip,!1);for(let e=0;e<this.wrapperParents.length;e++)this.wrapperParents[e].removeEventListener("scroll",this.updateTooltip,!1);this.wrapperParents=[]}this.wrapper.classList.add("hide-tooltip"),this.target.hasAttribute("aria-expanded")&&(this.target.setAttribute("aria-expanded","false"),this.tooltip.innerText=""),this.target.classList.remove("js-pressing"),this.target.classList.remove("js-pressed")},Ne.prototype.showTooltip=function(){if(window.addEventListener("resize",this.updateTooltip,!1),"true"===this.wrapper.dataset.forceVisible){document.addEventListener("scroll",this.updateTooltip,!1),this.wrapperParents=function(e){let t=e;var n=[];for(;t&&t.parentNode&&(t=t.parentNode,t!==document.body&&t!==document);)n.unshift(t);return n}(this.wrapper);for(let e=0;e<this.wrapperParents.length;e++)(Te(this.wrapperParents[e])||Be(this.wrapperParents[e]))&&this.wrapperParents[e].addEventListener("scroll",this.updateTooltip,!1)}this.wrapper.classList.remove("hide-tooltip"),this.target.hasAttribute("aria-expanded")&&(this.target.setAttribute("aria-expanded","true"),this.tooltip.innerText=this.wrapper.dataset.tooltip),this.updateTooltipPosition();for(let e=0;e<$e.length;e++){$e[e].target!==this.target&&$e[e].hideTooltip()}},Ne.prototype.isShowing=function(){return!this.wrapper.classList.contains("hide-tooltip")},Ne.prototype.updateTooltipPosition=function(){!function(e){e.style.width="max-content";let t=304;parseInt(window.getComputedStyle(e).width)>t&&(e.style.width=t+"px");let n=document.body.getBoundingClientRect().width-16;parseInt(window.getComputedStyle(e).width)>n&&(e.style.width=n+"px")}(this.tooltip),function(e,t,n){let o=t.getBoundingClientRect().top;document.body.getBoundingClientRect().top>0&&(o=t.getBoundingClientRect().top-document.body.getBoundingClientRect().top);let i=window.innerHeight-t.getBoundingClientRect().bottom;document.body.getBoundingClientRect().bottom<window.innerHeight&&(i=document.body.getBoundingClientRect().bottom-t.getBoundingClientRect().bottom);let a=n.getBoundingClientRect().height+4+8,r="above";("below"===e.dataset.position&&i>=a||a>o)&&(r="below");"above"===r?(e.classList.add("place-above"),e.classList.remove("place-below")):"below"===r&&(e.classList.add("place-below"),e.classList.remove("place-above"))}(this.wrapper,this.target,this.tooltip),function(e,t,n){let o=t.getBoundingClientRect(),i=n.getBoundingClientRect();if("true"===e.dataset.forceVisible){let e=o.left+(o.width-i.width)/2;n.style.left=Math.round(e)+"px",n.classList.remove("open-right"),n.classList.remove("open-left");const t=21;if(e<8){let e=o.left-t+o.width/2;if(n.style.left=e+"px",n.classList.add("open-right"),document.body.clientWidth-n.getBoundingClientRect().right-8<0){let e=document.body.clientWidth-n.getBoundingClientRect().left-8;n.style.width=e+"px"}}else if(o.left+o.width/2+i.width/2>document.body.clientWidth-8){let e=o.right+t-i.width-o.width/2;if(n.style.left=e+"px",n.classList.add("open-left"),n.getBoundingClientRect().left<8){let e=n.getBoundingClientRect().right-8;n.style.width=e+"px",n.style.left="8px"}}}else{let e=(o.width-i.width)/2;if(n.style.left=Math.round(e)+"px",n.getBoundingClientRect().left<document.body.getBoundingClientRect().left+8){let t=document.body.getBoundingClientRect().left+8-n.getBoundingClientRect().left+e;n.style.left=Math.round(t)+"px"}else if(n.getBoundingClientRect().right>document.body.getBoundingClientRect().right-8){let t=document.body.getBoundingClientRect().right-8-n.getBoundingClientRect().right+e;n.style.left=Math.round(t)+"px"}}}(this.wrapper,this.target,this.tooltip),function(e,t,n){let o=1,i=n.getBoundingClientRect().height+8+4-o,a=12-o,r=0-i,l=t.getBoundingClientRect().height+a;"true"===e.dataset.forceVisible&&(r=t.getBoundingClientRect().top-i,l=t.getBoundingClientRect().bottom+a);e.classList.contains("place-above")?n.style.top=r+"px":e.classList.contains("place-below")&&(n.style.top=l+"px")}(this.wrapper,this.target,this.tooltip),function(e,t){let n=e.getBoundingClientRect();if(n.bottom<0||n.right<0||n.left>document.documentElement.clientWidth||n.top>document.documentElement.clientHeight)return!1;if(t.length>0){let e=!0;for(let o=0;o<t.length;o++)if(Te(t[o])||Be(t[o])){let i=t[o].getBoundingClientRect();if(!(n.bottom>i.top&&n.right>i.left&&n.left<i.right&&n.top<i.bottom)){e=!1;break}}return e}return!0}(this.wrapper,this.wrapperParents)||this.hideTooltip()};const je=Ne,Re=n(486).A;n(923);var Ie=function(e){var t=void 0!==(e=void 0!==e?e:{}).scope?e.scope:document;const n=t.getElementsByClassName("accordion");for(let e=0;e<n.length;e++)new l(n[e]).init();const o=t.querySelectorAll(".accordion-bordered:not(.accordion)");for(let e=0;e<o.length;e++)new l(o[e]).init();const i=t.querySelectorAll(".alert.has-close");for(let e=0;e<i.length;e++)new d(i[e]).init();const a=t.getElementsByClassName("back-to-top-button");for(let e=0;e<a.length;e++)new h(a[e]).init();const r=t.getElementsByClassName("form-limit");for(let e=0;e<r.length;e++)new v(r[e]).init();const s=t.getElementsByClassName("js-checkbox-toggle-content");for(let e=0;e<s.length;e++)new E(s[e]).init();const c=t.getElementsByClassName("js-dropdown");for(let e=0;e<c.length;e++)new q(c[e]).init();const u=t.getElementsByClassName("overflow-menu--sort");for(let e=0;e<u.length;e++)new R(u[e]).init();Re.on(t);var p=t.querySelector('[data-module="error-summary"]');new Y(p).init();const g=t.querySelectorAll(".fds-modal");for(let e=0;e<g.length;e++)new F(g[e]).init();(new re).init();const m=t.getElementsByClassName("js-menudropdown");for(let e=0;e<m.length;e++)new ue(m[e]).init();const f=t.getElementsByClassName("js-radio-toggle-group");for(let e=0;e<f.length;e++)new ge(f[e]).init();const b=t.querySelectorAll("table.table--responsive-headers, table.table-sm-responsive-headers, table.table-md-responsive-headers, table.table-lg-responsive-headers");for(let e=0;e<b.length;e++)new fe(b[e]);const y=t.querySelectorAll("table.table--selectable");for(let e=0;e<y.length;e++)new Ce(y[e]).init();const w=t.querySelectorAll("div.tab-container");for(let e=0;e<w.length;e++)new Ee(w[e]).init();const L=t.getElementsByClassName("tooltip-wrapper");for(let e=0;e<L.length;e++)new je(L[e]).init()}})(),o})()));
//# sourceMappingURL=dkfds.min.js.map