@mattilsynet/design 2.2.21 → 2.2.22

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.
@@ -1,11 +1,11 @@
1
- var mtds=function(k){"use strict";var rs=Object.defineProperty,nn=Object.getOwnPropertySymbols,ls=Object.prototype.hasOwnProperty,cs=Object.prototype.propertyIsEnumerable,on=(t,e,n)=>e in t?rs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ds=(t,e)=>{for(var n in e||(e={}))ls.call(e,n)&&on(t,n,e[n]);if(nn)for(var n of nn(e))cs.call(e,n)&&on(t,n,e[n]);return t},wt=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",sn=wt&&/android/i.test(navigator.userAgent),us=wt&&/firefox/i.test(navigator.userAgent),fs=wt&&/iPad|iPhone|iPod/.test(navigator.userAgent),an;wt&&/^Mac/i.test(((an=navigator.userAgentData)==null?void 0:an.platform)||navigator.platform);var ps="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",ms=typeof HTMLElement>"u"?class{}:HTMLElement;function x(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var rn=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Mt=(t,...e)=>rn("add",t,e),hs=(t,...e)=>rn("remove",t,e),Pt=new WeakMap,me=(t,e)=>{if(e===void 0)return Pt.get(t);try{Pt.get(t).disconnect(),Pt.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),Pt.set(t,n)}},gs=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},bs=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},vs=0,ln=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++vs).toString(32)}`),t.id):"",Dt=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,s]of Object.entries(n))x(o,i,s);return o},ys={define:(t,e)=>!wt||window.customElements.get(t)||window.customElements.define(t,e)},_s=t=>{var e;const n=x(t,"aria-label")||"";return[...(((e=x(t,"aria-labelledby"))==null?void 0:e.trim().split(/\s+/))||[]).map(i=>document.getElementById(i)),...Array.from(t.labels||[])].reduce((i,s)=>{var a;return i||((a=s?.innerText)==null?void 0:a.trim())||""},n)},et,ws=0,he=t=>{et||(et=Dt("div"),et.style.cssText="position:fixed;overflow:hidden;width:1px;white-space:nowrap",x(et,"aria-live","assertive")),et.isConnected||document.body.append(et),t&&(et.textContent=`${t}${ws++%2?" ":""}`)},cn=(t,e,n="")=>{var o,i;const s={bubbles:!0,composed:!0,data:e,inputType:n},a=HTMLInputElement.prototype;t.dispatchEvent(new InputEvent("beforeinput",s)),(i=(o=Object.getOwnPropertyDescriptor(a,"value"))==null?void 0:o.set)==null||i.call(t,e),t.dispatchEvent(new InputEvent("input",s)),t.dispatchEvent(new Event("change",{bubbles:!0}))},ge=!1,be=t=>(t?.type==="mouseup"&&(ge=!1),t?.type==="mousedown"&&(ge=!0,Mt(document,"mouseup",be,{once:!0})),ge),xs=`:host(:not([hidden])) { display: block; -webkit-tap-highlight-color: rgba(0, 0, 0, 0) } /* Must be display block in Safari to allow focus inside */
1
+ var mtds=function(k){"use strict";var rs=Object.defineProperty,nn=Object.getOwnPropertySymbols,ls=Object.prototype.hasOwnProperty,cs=Object.prototype.propertyIsEnumerable,on=(t,e,n)=>e in t?rs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ds=(t,e)=>{for(var n in e||(e={}))ls.call(e,n)&&on(t,n,e[n]);if(nn)for(var n of nn(e))cs.call(e,n)&&on(t,n,e[n]);return t},wt=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",sn=wt&&/android/i.test(navigator.userAgent),us=wt&&/firefox/i.test(navigator.userAgent),fs=wt&&/iPad|iPhone|iPod/.test(navigator.userAgent),an;wt&&/^Mac/i.test(((an=navigator.userAgentData)==null?void 0:an.platform)||navigator.platform);var ps="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",ms=typeof HTMLElement>"u"?class{}:HTMLElement;function x(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var rn=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Mt=(t,...e)=>rn("add",t,e),hs=(t,...e)=>rn("remove",t,e),Pt=new WeakMap,me=(t,e)=>{if(e===void 0)return Pt.get(t);try{Pt.get(t).disconnect(),Pt.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),Pt.set(t,n)}},gs=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},vs=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},bs=0,ln=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++bs).toString(32)}`),t.id):"",Dt=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,s]of Object.entries(n))x(o,i,s);return o},ys={define:(t,e)=>!wt||window.customElements.get(t)||window.customElements.define(t,e)},_s=t=>{var e;const n=x(t,"aria-label")||"";return[...(((e=x(t,"aria-labelledby"))==null?void 0:e.trim().split(/\s+/))||[]).map(i=>document.getElementById(i)),...Array.from(t.labels||[])].reduce((i,s)=>{var a;return i||((a=s?.innerText)==null?void 0:a.trim())||""},n)},nt,ws=0,he=t=>{nt||(nt=Dt("div"),nt.style.cssText="position:fixed;overflow:hidden;width:1px;white-space:nowrap",x(nt,"aria-live","assertive")),nt.isConnected||document.body.append(nt),t&&(nt.textContent=`${t}${ws++%2?" ":""}`)},cn=(t,e,n="")=>{var o,i;const s={bubbles:!0,composed:!0,data:e,inputType:n},a=HTMLInputElement.prototype;t.dispatchEvent(new InputEvent("beforeinput",s)),(i=(o=Object.getOwnPropertyDescriptor(a,"value"))==null?void 0:o.set)==null||i.call(t,e),t.dispatchEvent(new InputEvent("input",s)),t.dispatchEvent(new Event("change",{bubbles:!0}))},ge=!1,ve=t=>(t?.type==="mouseup"&&(ge=!1),t?.type==="mousedown"&&(ge=!0,Mt(document,"mouseup",ve,{once:!0})),ge),xs=`:host(:not([hidden])) { display: block; -webkit-tap-highlight-color: rgba(0, 0, 0, 0) } /* Must be display block in Safari to allow focus inside */
2
2
  :host(:not([data-multiple])) ::slotted(data),
3
3
  :host([data-multiple="false"]) ::slotted(data) { display: none } /* Hide data if not multiple */
4
4
  ::slotted(input[inputmode="none"]) { outline: none } /* Hide temporary foucs outline flash */
5
5
  ::slotted(del) { text-decoration: none }
6
6
  ::slotted(data:not([hidden])) { display: inline-block; pointer-events: none }
7
7
  ::slotted(data)::after { content: '\\00D7'; content: '\\00D7' / ''; padding-inline: .5ch; pointer-events: auto; cursor: pointer }
8
- ::slotted(data:focus) { ${ps} }`,dn="beforeinput,blur,focus,click,input,keydown,mousedown",un={once:!0,passive:!0},Nt="false",Es=us&&!sn,Ss=sn||fs,fn="​".repeat(5),pn="deleteContentBackward",$s="insertText",Ht={added:"Added",empty:"No selected",found:"Navigate left to find %d selected",invalid:"Invalid value",of:"of",remove:"Press to remove",removed:"Removed"},ve=class extends ms{constructor(){super(),this._item="",this._speak="",this._texts=ds({},Ht),this._value="",this.shadowRoot||this.attachShadow({mode:"open"}).append(Dt("slot"),Dt("style",xs))}static get observedAttributes(){return Object.keys(Ht).map(t=>`data-sr-${t}`)}connectedCallback(){this._root=bs(this),Mt(this,dn,this,!0),me(this,{attributeFilter:["value","id"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(Bt,0,this),setTimeout(Ft,0,this)}attributeChangedCallback(t,e,n){const o=t.split("data-sr-")[1];Ht[o]&&(this._texts[o]=n||Ht[o])}disconnectedCallback(){me(this,!1),hs(this,dn,this,!0),this._items=this._clear=this._focus=this._control=void 0,this._list=this._options=this._root=void 0}handleEvent(t){const e=t.target;_e(this)||(t.type==="beforeinput"&&(this._value=e?.value||""),t.type==="blur"&&Cs(this),t.type==="click"&&Ls(this,t),t.type==="focus"&&Ts(this,t),t.type==="input"&&As(this,t),t.type==="keydown"&&Is(this,t),t.type==="mousedown"&&be(t),t.type==="mutation"&&Bt(this,t))}get multiple(){var t;return((t=x(this,"data-multiple"))!=null?t:Nt)!==Nt}set multiple(t){x(this,"data-multiple",t?"":null)}get creatable(){var t;return((t=x(this,"data-creatable"))!=null?t:Nt)!==Nt}set creatable(t){x(this,"data-creatable",t?"":null)}get control(){var t;return(t=this._control)!=null&&t.isConnected||(this._control=this.querySelector("input")),this._control}get list(){var t;return(t=this._list)!=null&&t.isConnected||(this._list=this.querySelector("u-datalist,datalist")),this._list}get clear(){var t;return(t=this._clear)!=null&&t.isConnected||(this._clear=this.querySelector("del")),this._clear}get items(){return this._items||(this._items=this.getElementsByTagName("data")),this._items}get options(){var t,e;if(!this._options){const n=((t=this.list)==null?void 0:t.nodeName)==="U-DATALIST"?"u-option":"option";this._options=(e=this.list)==null?void 0:e.getElementsByTagName(n)}return this._options}get values(){return[...this.items].map(({value:t})=>t)}},nt=t=>{var e;return((e=t?.textContent)==null?void 0:e.trim())||""},ye=t=>t instanceof HTMLDataElement,_e=({control:t})=>t?.disabled||t?.readOnly||!1,Bt=(t,e)=>{var n;const{_focus:o,_texts:i,items:s,control:a,list:r,multiple:c}=t;if(!a||!r)return;const l=_s(a),d=l.endsWith(fn)?x(a,"data-label"):l;x(a,"data-label",d);let u=`${d}${c?`, ${s.length?i.found.replace("%d",`${s.length}`):i.empty}`:""}`;const p=[];for(const{addedNodes:b,removedNodes:y}of e?.detail||[]){for(const w of b)ye(w)&&p.unshift(w);for(const w of y)ye(w)&&p.push(w)}const m=c?p.length===1:p[0]===o;if(o&&m){const b=x(a,"aria-expanded"),y=x(a,"inputmode"),w=ye(o)?a:o,E=!p[0].isConnected;t._speak=`${i[E?"removed":"added"]} ${nt(p[0])}, `,(Ss||o===a)&&he(t._speak),a!==w&&(x(a,"aria-expanded",null),x(a,"inputmode","none"),u=" ",a.focus()),setTimeout(()=>{var R;x(a,"aria-expanded",b),x(a,"inputmode",E?"none":y),(R=w?.focus)==null||R.call(w),x(a,"inputmode",y),t._speak="",Es?Mt(t,"blur",()=>Bt(t),un):setTimeout(Bt,100,t)},100)}let h=0;const g=t.querySelector("select"),_=_e(t)?"":`${i.remove}, `;for(const b of s){const y=g?.options[h],w=nt(b),E=b.value||w,R=`${t._speak}${w}, ${_}${++h} ${i.of} ${s.length}`;x(b,"role","button"),x(b,"value",E),x(b,"tabindex","-1"),x(b,"aria-label",R),y?Object.assign(y,{textContent:w,value:E}):g?.appendChild(new Option(w,E,!0,!0))}g&&x(g,"multiple",c?"":null);for(const b of[...g?.options||[]].slice(h))b.remove();!c&&h>1&&console.warn("u-combobox: Multiple <data> found in single mode."),x(r,"aria-multiselectable",`${c}`),x(a,"list",ln(r)),x(a,"aria-label",`${t._speak}${u}${fn}`),r.hasAttribute("popover")&&(x(a,"popovertarget",ln(r)),x(r,"popover","manual"));const v=nt(s[0]);v!==t._item&&Ft(t),t._item=v,mn(t),hn(t),(n=me(t))==null||n.takeRecords()},mn=t=>{var e;t.clear&&x(t.clear,"role","button"),t.clear&&(t.clear.hidden=!((e=t.control)!=null&&e.value)||_e(t))},hn=t=>{var e;const{_speak:n,options:o=[],values:i}=t;for(const s of o){const a=(e=x(s,"value"))!=null?e:nt(s);x(s,"aria-label",n?`${n}${nt(s)}`:null),x(s,"selected",i.includes(a)?"":null)}},Ft=t=>{const{multiple:e,control:n,items:o}=t,i=nt(o[0]);!e&&n&&i!==n.value&&cn(n,i,i?$s:pn)},we=(t,e=!0)=>{var n;const{_texts:o,options:i=[],creatable:s,control:a,items:r,multiple:c}=t,l=((n=a?.value)==null?void 0:n.trim())||"",d=l.toLowerCase()||null;let u=[...i].find(m=>(x(m,"label")||nt(m)).trim().toLowerCase()===d);const p={bubbles:!0,cancelable:!0,detail:u};if(t.dispatchEvent(new CustomEvent("comboboxbeforematch",p))||(u=[...i].find(m=>m.selected)),e)return hn(t),u?mt(t,u,!1):s&&l?mt(t,{value:l},!1):(!c&&!l&&r[0]?mt(t,r[0]):Ft(t),he(o.invalid));for(const m of i)m.selected=m===u},mt=(t,e,n=!0)=>{const{control:o,items:i,multiple:s}=t,a=Dt("data",e.label||e.value,{value:e.value}),r=[...i].find(d=>d.value===e.value),c={bubbles:!0,cancelable:!0,detail:r||a};if(r&&!n)return Ft(t);if(t.dispatchEvent(new CustomEvent("comboboxbeforeselect",c))){if(!s)for(const d of[...i])d.remove();r?r.remove():o?.insertAdjacentElement("beforebegin",a),t.dispatchEvent(new CustomEvent("comboboxafterselect",c))}},Ts=(t,{target:e})=>{e instanceof HTMLElement&&(t._focus=e),he()},Cs=t=>be()||setTimeout(ks,0,t),ks=t=>{var e;!t._focus||t.contains((e=t._root)==null?void 0:e.activeElement)||(t.multiple||we(t),t._focus=void 0)},Ls=(t,e)=>{const{clientX:n,clientY:o,target:i}=e,{clear:s,control:a,items:r}=t;if(s?.contains(i))return a&&cn(a,"",pn),a?.focus();for(const c of r){const{top:l,right:d,bottom:u,left:p}=c.getBoundingClientRect();if(c.contains(i))return mt(t,c);if(o>=l&&o<=u&&n>=p&&n<=d)return c.focus()}i===t&&a?.focus()},As=(t,e)=>{var n;const{options:o=[],control:i,multiple:s}=t,a=((n=i?.value)==null?void 0:n.trim())||"";if(e instanceof InputEvent?!e.inputType||e.inputType==="insertReplacementText":!!a){e.stopImmediatePropagation(),i&&(i.value=t._value);for(const c of o)if(c.value&&c.value===a)return mt(t,c,s)}else s||we(t,!1);mn(t)},Is=(t,e)=>{var n;if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;const{clear:o,control:i,items:s}=t,{key:a,repeat:r,target:c}=e,l=i&&i===c,d=l&&i?.selectionEnd;let u=l?s.length:[...s].indexOf(c);if(l&&a==="Tab"&&o&&!o.hidden&&(e.preventDefault(),o.tabIndex=0,o.focus(),Mt(o,"blur",()=>x(o,"tabindex",null),un)),!(!l&&gs(e)||u===-1)){if(a==="ArrowRight"&&!l)u+=1;else if(a==="ArrowLeft"&&!d)u-=1;else if(a==="Enter"&&l){const p=x(i,"form");return x(i,"form","#"),requestAnimationFrame(()=>x(i,"form",p)),we(t)}else if(a==="Backspace"&&!d){if(e.preventDefault(),!r&&s[u])return mt(t,s[u]);l&&(u-=1)}else return l||i?.focus();e.preventDefault(),(n=s[Math.max(0,u)]||i)==null||n.focus()}};ys.define("u-combobox",ve);var xe=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Os=xe&&/android/i.test(navigator.userAgent),gn;xe&&/^Mac/i.test(((gn=navigator.userAgentData)==null?void 0:gn.platform)||navigator.platform);var Rs=`${Os?"data":"aria"}-labelledby`,Ee=":host(:not([hidden])) { display: block }",Ut=typeof HTMLElement>"u"?class{}:HTMLElement;function A(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var bn=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Ms=(t,...e)=>bn("add",t,e),Ps=(t,...e)=>bn("remove",t,e),qt=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(wn("slot"),wn("style",e)),Vt=new WeakMap,vn=(t,e)=>{if(e===void 0)return Vt.get(t);try{Vt.get(t).disconnect(),Vt.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),Vt.set(t,n)}},Ds=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},yn=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},Ns=0,_n=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Ns).toString(32)}`),t.id):"",wn=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},zt={define:(t,e)=>!xe||window.customElements.get(t)||window.customElements.define(t,e)},Hs=Ee,Bs=Ee,Fs=Ee,Us=':host(:not([hidden])) { display: inline-block; cursor: pointer }:host([aria-disabled="true"]) { cursor: default }',Gt="aria-controls",ht="aria-selected",xn=class extends Ut{constructor(){super(),qt(this,Hs)}get tabList(){return Wt("u-tablist",this)[0]||null}get selectedIndex(){return Xt(this.tabs)}set selectedIndex(t){Te(this.tabs[t])}get tabs(){return Wt("u-tab",this)}get panels(){return Wt("u-tabpanel",this)}},En=class extends Ut{constructor(){super(),qt(this,Bs)}connectedCallback(){A(this,"role","tablist"),Ms(this,"click,keydown",this),vn(this,{childList:!0}),this.tabs.length&&this.handleEvent()}disconnectedCallback(){Ps(this,"click,keydown",this),vn(this,!1)}handleEvent(t){if(!t||t.type==="mutation"){const s=this.tabs[Math.max(this.selectedIndex,0)];return s?.setAttribute(ht,"true")}const{key:e}=t,n=[...this.tabs],o=n.findIndex(s=>s.contains(t.target));let i=o;if(!(t.defaultPrevented||o===-1)&&(t.type==="click"&&Te(n[o]),t.type==="keydown"&&!Ds(t))){if(e==="ArrowDown"||e==="ArrowRight")i=(o+1)%n.length;else if(e==="ArrowUp"||e==="ArrowLeft")i=(o||n.length)-1;else if(e==="End")i=n.length-1;else if(e==="Home")i=0;else if(e==="Tab")i=Xt(n);else return;setTimeout(()=>{n[o].tabIndex=-1,n[i].tabIndex=0}),e!=="Tab"&&(t.preventDefault(),n[i].focus())}}get tabsElement(){return this.closest("u-tabs")}get tabs(){return this.querySelectorAll("u-tab")}get selectedIndex(){return Xt(this.tabs)}set selectedIndex(t){Te(this.tabs[t])}},Se=!1,Sn=class extends Ut{static get observedAttributes(){return["id",ht,Gt]}constructor(){super(),qt(this,Us)}connectedCallback(){A(this,"role","tab"),this.tabIndex=this.selected?0:-1}attributeChangedCallback(){if(!Se&&this.selected&&this.tabList){Se=!0;const t=[...this.tabList.querySelectorAll("u-tab")],e=Wt("u-tabpanel",this.tabsElement||this),n=$e(this,e[t.indexOf(this)]);n&&A(n,Rs,_n(this)),t.forEach((o,i)=>{const s=$e(o,e[i]);o.tabIndex=o===this?0:-1,A(o,ht,`${o===this}`),A(o,Gt,s?.id||null),s&&(s.hidden=s!==n)}),Se=!1}}get tabsElement(){return this.closest("u-tabs")}get tabList(){const t=this.parentElement;return t?.nodeName==="U-TABLIST"?t:null}get selected(){return A(this,ht)==="true"}set selected(t){A(this,ht,`${!!t}`)}get index(){const t=this.tabList;return t?[...t.querySelectorAll("u-tab")].indexOf(this):0}get panel(){return $e(this)}},$n=class extends Ut{static get observedAttributes(){return["hidden"]}constructor(){super(),qt(this,Fs)}connectedCallback(){A(this,"role","tabpanel"),this.hidden=Xt(this.tabs)===-1,this.attributeChangedCallback()}attributeChangedCallback(){const t=this.hidden;A(this,"aria-hidden",`${t}`),A(this,"tabindex",t||qs(this.firstChild)?null:"0")}get tabsElement(){return this.closest("u-tabs")}get tabs(){const t=`u-tab[${Gt}="${this.id}"]`;return yn(this).querySelectorAll(t)}},Wt=(t,e)=>e.querySelectorAll(`${t}:not(:scope u-tabpanel ${t})`),$e=(t,e)=>{const n=A(t,Gt)||_n(e),o=yn(t).getElementById(n);return o?.nodeName==="U-TABPANEL"?o:null},Xt=t=>[...t].findIndex(e=>A(e,ht)==="true"),Te=t=>t&&A(t,"aria-disabled")!=="true"&&A(t,"aria-selected","true"),qs=t=>t instanceof Element&&!t.matches(':disabled,[tabindex^="-"]')&&t.matches('[contenteditable],[controls],[href],[tabindex],input:not([type="hidden"]),select,textarea,button,summary,iframe');zt.define("u-tabs",xn),zt.define("u-tablist",En),zt.define("u-tab",Sn),zt.define("u-tabpanel",$n);const Vs="2.2.21",Tn="_alert_1cl7y_1 _ds-alert_dbymd_3",Cn="_app_1cl7y_1",kn="_sticky_1cl7y_1",Ln="_avatar_1cl7y_1 _ds-avatar_dbymd_1",An="_badge_1cl7y_1",In="_breadcrumbs_1cl7y_1 _ds-breadcrumbs_dbymd_5",On="_button_1cl7y_1 _ds-button_dbymd_1",Rn="_card_1cl7y_1",Mn="_group_1cl7y_1",Pn="_chip_1cl7y_1 _ds-chip_dbymd_5",Dn="_details_1cl7y_1 _ds-details_dbymd_3",Nn="_dialog_1cl7y_1 _ds-dialog_dbymd_5",Hn="__drawer_1cl7y_1",Bn="_divider_1cl7y_1",Fn="_errorsummary_1cl7y_1 _ds-error-summary_dbymd_5",Un="__errorsummary_1cl7y_1",qn="_field_1cl7y_1 _ds-field_dbymd_1",Vn="__datalist_1cl7y_1",zn="_affixes_1cl7y_1 _ds-field-affixes_dbymd_3",Gn="_fieldset_1cl7y_1 _ds-fieldset_dbymd_3",Wn="_fileupload_1cl7y_1",Xn="_helptext_1cl7y_1 _ds-focus_dbymd_1",jn="_input_1cl7y_1 _ds-input_dbymd_1",Kn="_law_1cl7y_1",Yn="_grid_1cl7y_1",Qn="_flex_1cl7y_1",Jn="_link_1cl7y_1",Zn="_logo_1cl7y_1",to="_pagination_1cl7y_1 _ds-pagination_dbymd_5",eo="_popover_1cl7y_1",no="_progress_1cl7y_1",oo="__indeterminate_1cl7y_1",io="_skeleton_1cl7y_1 _ds-skeleton_dbymd_5",so="__skeleton_1cl7y_1",ao="_spinner_1cl7y_1",ro="_steps_1cl7y_1",lo="_table_1cl7y_1 _ds-table_dbymd_5",co="__scrollShadow_1cl7y_1",uo="_tabs_1cl7y_1 _ds-tabs_dbymd_5",fo="__scrollMask_1cl7y_1",po="_tag_1cl7y_1 _ds-tag_dbymd_5",mo="_toast_1cl7y_1",ho="__toastClose_1cl7y_1",go="__toastOpen_1cl7y_1",bo="__toastTimeout_1cl7y_1",vo="_togglegroup_1cl7y_1",yo="__tooltip_1cl7y_1",_o="_heading_1cl7y_1 _ds-heading_dbymd_1",wo="_ingress_1cl7y_1",xo="_muted_1cl7y_1",Eo="_info_1cl7y_1",So="_prose_1cl7y_1",$o="_validation_1cl7y_1 _ds-validation-message_dbymd_1",To="_body_1cl7y_173",Co="__checked_1cl7y_1",$={alert:Tn,app:Cn,sticky:kn,avatar:Ln,badge:An,breadcrumbs:In,button:On,card:Rn,group:Mn,chip:Pn,details:Dn,dialog:Nn,_drawer:Hn,divider:Bn,errorsummary:Fn,_errorsummary:Un,field:qn,_datalist:Vn,affixes:zn,fieldset:Gn,fileupload:Wn,helptext:Xn,input:jn,law:Kn,grid:Yn,flex:Qn,link:Jn,logo:Zn,pagination:to,popover:eo,progress:no,_indeterminate:oo,skeleton:io,_skeleton:so,spinner:ao,steps:ro,table:lo,_scrollShadow:co,tabs:uo,_scrollMask:fo,tag:po,toast:mo,_toastClose:ho,_toastOpen:go,_toastTimeout:bo,togglegroup:vo,_tooltip:yo,heading:_o,ingress:wo,muted:xo,info:Eo,prose:So,validation:$o,body:To,_checked:Co},zs=Object.freeze(Object.defineProperty({__proto__:null,_checked:Co,_datalist:Vn,_drawer:Hn,_errorsummary:Un,_indeterminate:oo,_scrollMask:fo,_scrollShadow:co,_skeleton:so,_toastClose:ho,_toastOpen:go,_toastTimeout:bo,_tooltip:yo,affixes:zn,alert:Tn,app:Cn,avatar:Ln,badge:An,body:To,breadcrumbs:In,button:On,card:Rn,chip:Pn,default:$,details:Dn,dialog:Nn,divider:Bn,errorsummary:Fn,field:qn,fieldset:Gn,fileupload:Wn,flex:Qn,grid:Yn,group:Mn,heading:_o,helptext:Xn,info:Eo,ingress:wo,input:jn,law:Kn,link:Jn,logo:Zn,muted:xo,pagination:to,popover:eo,progress:no,prose:So,skeleton:io,spinner:ao,steps:ro,sticky:kn,table:lo,tabs:uo,tag:po,toast:mo,togglegroup:vo,validation:$o},Symbol.toStringTag,{value:"Module"})),gt=Math.min,M=Math.max,jt=Math.round,Kt=Math.floor,V=t=>({x:t,y:t}),Gs={left:"right",right:"left",bottom:"top",top:"bottom"},Ws={start:"end",end:"start"};function ko(t,e,n){return M(t,gt(e,n))}function Yt(t,e){return typeof t=="function"?t(e):t}function ot(t){return t.split("-")[0]}function Qt(t){return t.split("-")[1]}function Lo(t){return t==="x"?"y":"x"}function Ao(t){return t==="y"?"height":"width"}const Xs=new Set(["top","bottom"]);function Q(t){return Xs.has(ot(t))?"y":"x"}function Io(t){return Lo(Q(t))}function js(t,e,n){n===void 0&&(n=!1);const o=Qt(t),i=Io(t),s=Ao(i);let a=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Jt(a)),[a,Jt(a)]}function Ks(t){const e=Jt(t);return[Ce(t),e,Ce(e)]}function Ce(t){return t.replace(/start|end/g,e=>Ws[e])}const Oo=["left","right"],Ro=["right","left"],Ys=["top","bottom"],Qs=["bottom","top"];function Js(t,e,n){switch(t){case"top":case"bottom":return n?e?Ro:Oo:e?Oo:Ro;case"left":case"right":return e?Ys:Qs;default:return[]}}function Zs(t,e,n,o){const i=Qt(t);let s=Js(ot(t),n==="start",o);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(Ce)))),s}function Jt(t){return t.replace(/left|right|bottom|top/g,e=>Gs[e])}function ta(t){return{top:0,right:0,bottom:0,left:0,...t}}function ea(t){return typeof t!="number"?ta(t):{top:t,right:t,bottom:t,left:t}}function Zt(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Mo(t,e,n){let{reference:o,floating:i}=t;const s=Q(e),a=Io(e),r=Ao(a),c=ot(e),l=s==="y",d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,p=o[r]/2-i[r]/2;let m;switch(c){case"top":m={x:d,y:o.y-i.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:u};break;case"left":m={x:o.x-i.width,y:u};break;default:m={x:o.x,y:o.y}}switch(Qt(e)){case"start":m[a]-=p*(n&&l?-1:1);break;case"end":m[a]+=p*(n&&l?-1:1);break}return m}const na=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,r=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:u}=Mo(l,o,c),p=o,m={},h=0;for(let g=0;g<r.length;g++){const{name:_,fn:v}=r[g],{x:b,y,data:w,reset:E}=await v({x:d,y:u,initialPlacement:o,placement:p,strategy:i,middlewareData:m,rects:l,platform:a,elements:{reference:t,floating:e}});d=b??d,u=y??u,m={...m,[_]:{...m[_],...w}},E&&h<=50&&(h++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(l=E.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):E.rects),{x:d,y:u}=Mo(l,p,c)),g=-1)}return{x:d,y:u,placement:p,strategy:i,middlewareData:m}};async function ke(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:a,elements:r,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:m=0}=Yt(e,t),h=ea(m),_=r[p?u==="floating"?"reference":"floating":u],v=Zt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(r.floating)),boundary:l,rootBoundary:d,strategy:c})),b=u==="floating"?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(r.floating)),w=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},E=Zt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:b,offsetParent:y,strategy:c}):b);return{top:(v.top-E.top+h.top)/w.y,bottom:(E.bottom-v.bottom+h.bottom)/w.y,left:(v.left-E.left+h.left)/w.x,right:(E.right-v.right+h.right)/w.x}}const oa=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:a,initialPlacement:r,platform:c,elements:l}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,..._}=Yt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=ot(i),b=Q(r),y=ot(r)===r,w=await(c.isRTL==null?void 0:c.isRTL(l.floating)),E=p||(y||!g?[Jt(r)]:Ks(r)),R=h!=="none";!p&&R&&E.push(...Zs(r,g,h,w));const W=[r,...E],dt=await ke(e,_),ut=[];let Y=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&ut.push(dt[v]),u){const ft=js(i,a,w);ut.push(dt[ft[0]],dt[ft[1]])}if(Y=[...Y,{placement:i,overflows:ut}],!ut.every(ft=>ft<=0)){var At,It;const ft=(((At=s.flip)==null?void 0:At.index)||0)+1,en=W[ft];if(en&&(!(u==="alignment"?b!==Q(en):!1)||Y.every(q=>Q(q.placement)===b?q.overflows[0]>0:!0)))return{data:{index:ft,overflows:Y},reset:{placement:en}};let Rt=(It=Y.filter(pt=>pt.overflows[0]<=0).sort((pt,q)=>pt.overflows[1]-q.overflows[1])[0])==null?void 0:It.placement;if(!Rt)switch(m){case"bestFit":{var Ot;const pt=(Ot=Y.filter(q=>{if(R){const tt=Q(q.placement);return tt===b||tt==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(tt=>tt>0).reduce((tt,Zl)=>tt+Zl,0)]).sort((q,tt)=>q[1]-tt[1])[0])==null?void 0:Ot[0];pt&&(Rt=pt);break}case"initialPlacement":Rt=r;break}if(i!==Rt)return{reset:{placement:Rt}}}return{}}}},ia=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:r={fn:_=>{let{x:v,y:b}=_;return{x:v,y:b}}},...c}=Yt(t,e),l={x:n,y:o},d=await ke(e,c),u=Q(ot(i)),p=Lo(u);let m=l[p],h=l[u];if(s){const _=p==="y"?"top":"left",v=p==="y"?"bottom":"right",b=m+d[_],y=m-d[v];m=ko(b,m,y)}if(a){const _=u==="y"?"top":"left",v=u==="y"?"bottom":"right",b=h+d[_],y=h-d[v];h=ko(b,h,y)}const g=r.fn({...e,[p]:m,[u]:h});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[p]:s,[u]:a}}}}}},sa=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:s,platform:a,elements:r}=e,{apply:c=()=>{},...l}=Yt(t,e),d=await ke(e,l),u=ot(i),p=Qt(i),m=Q(i)==="y",{width:h,height:g}=s.floating;let _,v;u==="top"||u==="bottom"?(_=u,v=p===(await(a.isRTL==null?void 0:a.isRTL(r.floating))?"start":"end")?"left":"right"):(v=u,_=p==="end"?"top":"bottom");const b=g-d.top-d.bottom,y=h-d.left-d.right,w=gt(g-d[_],b),E=gt(h-d[v],y),R=!e.middlewareData.shift;let W=w,dt=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(dt=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(W=b),R&&!p){const Y=M(d.left,0),At=M(d.right,0),It=M(d.top,0),Ot=M(d.bottom,0);m?dt=h-2*(Y!==0||At!==0?Y+At:M(d.left,d.right)):W=g-2*(It!==0||Ot!==0?It+Ot:M(d.top,d.bottom))}await c({...e,availableWidth:dt,availableHeight:W});const ut=await a.getDimensions(r.floating);return h!==ut.width||g!==ut.height?{reset:{rects:!0}}:{}}}};function te(){return typeof window<"u"}function bt(t){return Po(t)?(t.nodeName||"").toLowerCase():"#document"}function P(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function z(t){var e;return(e=(Po(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Po(t){return te()?t instanceof Node||t instanceof P(t).Node:!1}function H(t){return te()?t instanceof Element||t instanceof P(t).Element:!1}function G(t){return te()?t instanceof HTMLElement||t instanceof P(t).HTMLElement:!1}function Do(t){return!te()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof P(t).ShadowRoot}const aa=new Set(["inline","contents"]);function xt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=B(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!aa.has(i)}const ra=new Set(["table","td","th"]);function la(t){return ra.has(bt(t))}const ca=[":popover-open",":modal"];function ee(t){return ca.some(e=>{try{return t.matches(e)}catch{return!1}})}const da=["transform","translate","scale","rotate","perspective"],ua=["transform","translate","scale","rotate","perspective","filter"],fa=["paint","layout","strict","content"];function Le(t){const e=Ae(),n=H(t)?B(t):t;return da.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||ua.some(o=>(n.willChange||"").includes(o))||fa.some(o=>(n.contain||"").includes(o))}function pa(t){let e=J(t);for(;G(e)&&!vt(e);){if(Le(e))return e;if(ee(e))return null;e=J(e)}return null}function Ae(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ma=new Set(["html","body","#document"]);function vt(t){return ma.has(bt(t))}function B(t){return P(t).getComputedStyle(t)}function ne(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function J(t){if(bt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Do(t)&&t.host||z(t);return Do(e)?e.host:e}function No(t){const e=J(t);return vt(e)?t.ownerDocument?t.ownerDocument.body:t.body:G(e)&&xt(e)?e:No(e)}function Et(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=No(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),a=P(i);if(s){const r=Ie(a);return e.concat(a,a.visualViewport||[],xt(i)?i:[],r&&n?Et(r):[])}return e.concat(i,Et(i,[],n))}function Ie(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ho(t){const e=B(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=G(t),s=i?t.offsetWidth:n,a=i?t.offsetHeight:o,r=jt(n)!==s||jt(o)!==a;return r&&(n=s,o=a),{width:n,height:o,$:r}}function Oe(t){return H(t)?t:t.contextElement}function yt(t){const e=Oe(t);if(!G(e))return V(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=Ho(e);let a=(s?jt(n.width):n.width)/o,r=(s?jt(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!r||!Number.isFinite(r))&&(r=1),{x:a,y:r}}const ha=V(0);function Bo(t){const e=P(t);return!Ae()||!e.visualViewport?ha:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ga(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==P(t)?!1:e}function it(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Oe(t);let a=V(1);e&&(o?H(o)&&(a=yt(o)):a=yt(t));const r=ga(s,n,o)?Bo(s):V(0);let c=(i.left+r.x)/a.x,l=(i.top+r.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(s){const p=P(s),m=o&&H(o)?P(o):o;let h=p,g=Ie(h);for(;g&&o&&m!==h;){const _=yt(g),v=g.getBoundingClientRect(),b=B(g),y=v.left+(g.clientLeft+parseFloat(b.paddingLeft))*_.x,w=v.top+(g.clientTop+parseFloat(b.paddingTop))*_.y;c*=_.x,l*=_.y,d*=_.x,u*=_.y,c+=y,l+=w,h=P(g),g=Ie(h)}}return Zt({width:d,height:u,x:c,y:l})}function oe(t,e){const n=ne(t).scrollLeft;return e?e.left+n:it(z(t)).left+n}function Fo(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-oe(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function ba(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s=i==="fixed",a=z(o),r=e?ee(e.floating):!1;if(o===a||r&&s)return n;let c={scrollLeft:0,scrollTop:0},l=V(1);const d=V(0),u=G(o);if((u||!u&&!s)&&((bt(o)!=="body"||xt(a))&&(c=ne(o)),G(o))){const m=it(o);l=yt(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}const p=a&&!u&&!s?Fo(a,c):V(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+p.x,y:n.y*l.y-c.scrollTop*l.y+d.y+p.y}}function va(t){return Array.from(t.getClientRects())}function ya(t){const e=z(t),n=ne(t),o=t.ownerDocument.body,i=M(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=M(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+oe(t);const r=-n.scrollTop;return B(o).direction==="rtl"&&(a+=M(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:r}}const Uo=25;function _a(t,e){const n=P(t),o=z(t),i=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,r=0,c=0;if(i){s=i.width,a=i.height;const d=Ae();(!d||d&&e==="fixed")&&(r=i.offsetLeft,c=i.offsetTop)}const l=oe(o);if(l<=0){const d=o.ownerDocument,u=d.body,p=getComputedStyle(u),m=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,h=Math.abs(o.clientWidth-u.clientWidth-m);h<=Uo&&(s-=h)}else l<=Uo&&(s+=l);return{width:s,height:a,x:r,y:c}}const wa=new Set(["absolute","fixed"]);function xa(t,e){const n=it(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=G(t)?yt(t):V(1),a=t.clientWidth*s.x,r=t.clientHeight*s.y,c=i*s.x,l=o*s.y;return{width:a,height:r,x:c,y:l}}function qo(t,e,n){let o;if(e==="viewport")o=_a(t,n);else if(e==="document")o=ya(z(t));else if(H(e))o=xa(e,n);else{const i=Bo(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Zt(o)}function Vo(t,e){const n=J(t);return n===e||!H(n)||vt(n)?!1:B(n).position==="fixed"||Vo(n,e)}function Ea(t,e){const n=e.get(t);if(n)return n;let o=Et(t,[],!1).filter(r=>H(r)&&bt(r)!=="body"),i=null;const s=B(t).position==="fixed";let a=s?J(t):t;for(;H(a)&&!vt(a);){const r=B(a),c=Le(a);!c&&r.position==="fixed"&&(i=null),(s?!c&&!i:!c&&r.position==="static"&&!!i&&wa.has(i.position)||xt(a)&&!c&&Vo(t,a))?o=o.filter(d=>d!==a):i=r,a=J(a)}return e.set(t,o),o}function Sa(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?ee(e)?[]:Ea(e,this._c):[].concat(n),o],r=a[0],c=a.reduce((l,d)=>{const u=qo(e,d,i);return l.top=M(u.top,l.top),l.right=gt(u.right,l.right),l.bottom=gt(u.bottom,l.bottom),l.left=M(u.left,l.left),l},qo(e,r,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function $a(t){const{width:e,height:n}=Ho(t);return{width:e,height:n}}function Ta(t,e,n){const o=G(e),i=z(e),s=n==="fixed",a=it(t,!0,s,e);let r={scrollLeft:0,scrollTop:0};const c=V(0);function l(){c.x=oe(i)}if(o||!o&&!s)if((bt(e)!=="body"||xt(i))&&(r=ne(e)),o){const m=it(e,!0,s,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else i&&l();s&&!o&&i&&l();const d=i&&!o&&!s?Fo(i,r):V(0),u=a.left+r.scrollLeft-c.x-d.x,p=a.top+r.scrollTop-c.y-d.y;return{x:u,y:p,width:a.width,height:a.height}}function Re(t){return B(t).position==="static"}function zo(t,e){if(!G(t)||B(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return z(t)===n&&(n=n.ownerDocument.body),n}function Go(t,e){const n=P(t);if(ee(t))return n;if(!G(t)){let i=J(t);for(;i&&!vt(i);){if(H(i)&&!Re(i))return i;i=J(i)}return n}let o=zo(t,e);for(;o&&la(o)&&Re(o);)o=zo(o,e);return o&&vt(o)&&Re(o)&&!Le(o)?n:o||pa(t)||n}const Ca=async function(t){const e=this.getOffsetParent||Go,n=this.getDimensions,o=await n(t.floating);return{reference:Ta(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ka(t){return B(t).direction==="rtl"}const La={convertOffsetParentRelativeRectToViewportRelativeRect:ba,getDocumentElement:z,getClippingRect:Sa,getOffsetParent:Go,getElementRects:Ca,getClientRects:va,getDimensions:$a,getScale:yt,isElement:H,isRTL:ka};function Wo(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Aa(t,e){let n=null,o;const i=z(t);function s(){var r;clearTimeout(o),(r=n)==null||r.disconnect(),n=null}function a(r,c){r===void 0&&(r=!1),c===void 0&&(c=1),s();const l=t.getBoundingClientRect(),{left:d,top:u,width:p,height:m}=l;if(r||e(),!p||!m)return;const h=Kt(u),g=Kt(i.clientWidth-(d+p)),_=Kt(i.clientHeight-(u+m)),v=Kt(d),y={rootMargin:-h+"px "+-g+"px "+-_+"px "+-v+"px",threshold:M(0,gt(1,c))||1};let w=!0;function E(R){const W=R[0].intersectionRatio;if(W!==c){if(!w)return a();W?a(!1,W):o=setTimeout(()=>{a(!1,1e-7)},1e3)}W===1&&!Wo(l,t.getBoundingClientRect())&&a(),w=!1}try{n=new IntersectionObserver(E,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,y)}n.observe(t)}return a(!0),s}function Ia(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=Oe(t),d=i||s?[...l?Et(l):[],...Et(e)]:[];d.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const u=l&&r?Aa(l,n):null;let p=-1,m=null;a&&(m=new ResizeObserver(v=>{let[b]=v;b&&b.target===l&&m&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(e)})),n()}),l&&!c&&m.observe(l),m.observe(e));let h,g=c?it(t):null;c&&_();function _(){const v=it(t);g&&!Wo(g,v)&&n(),g=v,h=requestAnimationFrame(_)}return n(),()=>{var v;d.forEach(b=>{i&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),u?.(),(v=m)==null||v.disconnect(),m=null,c&&cancelAnimationFrame(h)}}const Xo=ia,jo=oa,Oa=sa,Ra=(t,e,n)=>{const o=new Map,i={platform:La,...n},s={...i.platform,_c:o};return na(t,e,{...i,platform:s})};function Ko(t){var e,n,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Ko(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function Ma(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Ko(t))&&(o&&(o+=" "),o+=e);return o}const I={capture:!0,passive:!0},D=typeof window<"u"&&typeof document<"u";function Pa(t,e){let n;return function(...o){clearTimeout(n),n=setTimeout(()=>t.apply(this,o),e)}}function f(t,e,n){return n===void 0?t.getAttribute(e)??null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}let Da=0;const Na=`${Date.now().toString(36)}${Math.random().toString(36).slice(2,5)}`;function ie(t){return t.id||(t.id=`${Na}${++Da}`),t.id}const Yo=(t,e,[...n])=>{for(const o of n[0].split(","))n[0]=o,e[`${t}EventListener`](...n)},T=(t,...e)=>(Yo("add",t,e),()=>Qo(t,...e)),Qo=(t,...e)=>Yo("remove",t,e),N=t=>{if(!D||!window.requestAnimationFrame)return;window._mtdsCleanups||(window._mtdsCleanups=new Map);const e=()=>requestAnimationFrame(()=>{const n=String(t).replace(/(\n|\s)/g,"");window._mtdsCleanups?.get(n)?.map(o=>o()),window._mtdsCleanups?.set(n,t())});document.readyState==="complete"?e():T(window,"load",e)},Me=new WeakMap,Ha=`.${$.dialog.split(" ")[0]}`;function st(t,e,{contain:n,middleware:o,placement:i,...s}={}){if(Me.get(t)?.(),Me.delete(t),e){const a=t.closest(Ha)?.querySelector(":scope > footer"),r=Number(f(t,"data-inset"))||20,l={bottom:(a?.clientHeight||0)+r,left:r,right:r,top:r},d=f(t,"data-position")??"bottom";Me.set(t,Ia(e,t,()=>{if(!t.isConnected||!e.isConnected||t.hidden)return st(t,!1);Ra(e,t,{...s,placement:i||d,middleware:[jo({padding:l}),Xo(),...n?[Oa({padding:l,apply:n})]:[],...o||[]]}).then(({x:u,y:p})=>{t.style.left=`${u}px`,t.style.top=`${p}px`})}))}}function at(t,...e){let n=0;const o=()=>setTimeout(i,200),i=()=>{if(!D)return a();t([],s),s.takeRecords(),n=0},s=new MutationObserver(()=>{n||(n=requestAnimationFrame(o))}),a=()=>{try{s.disconnect()}catch{}};return s.observe(document.documentElement,{attributeFilter:e,attributes:!0,childList:!0,subtree:!0}),a}const Pe=t=>t instanceof HTMLElement&&"validity"in t&&!(t instanceof HTMLButtonElement),C=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,s]of Object.entries(e))f(o,i,s);return o},Ba=typeof HTMLElement>"u"?class{}:HTMLElement,Fa=`.${$.breadcrumbs.split(" ")[0]}`,Ua=`.${$.card.split(" ")[0]}`,Jo=`.${$.chip.split(" ")[0]}`,qa=`.${$.helptext.split(" ")[0]}`,Va=`.${$.pagination.split(" ")[0]}`,za='summary,u-summary,a,button,[role="tab"],[role="button"]',Ga="click,toggle,submit,change",De="mattilsynet.matomo.cloud",F="mtds-analytics-banner",Wa="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function Zo(t,e={}){if(D){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${De}/matomo.php`])),window._mtm||(window._mtm=window._mtm||[],window._mtm.push({"mtm.startTime":Date.now(),event:"mtm.Start"})),t==="init"){window._mtdsTracking={enabled:window.location.hostname!=="localhost",...window._mtdsTracking,...e};const{consent:n,enabled:o,matomoId:i,matomoTagManagerId:s}=window._mtdsTracking;if(i&&window._paq.push(["setSiteId",i]),o){n!=="custom"&&Xa();const a=s?`https://cdn.matomo.cloud/${De}/container_${s}.js`:`https://cdn.matomo.cloud/${De}/matomo.js`;document.querySelector(`script[src="${a}"]`)||document.head.append(C("script",{async:"",src:a}))}}if(window._mtdsTracking?.enabled!==!1){if(window._mtdsTracking?.enabled==="debug")return console.info(`analytics ${t}:`,e);if(t==="pageview"){const{url:n,title:o}=e;window._paq.push(["setCustomUrl",n||location.href]),window._paq.push(["setDocumentTitle",o||document.title]),window._paq.push(["trackPageView"])}else if(t==="event"){const{category:n,action:o,name:i,value:s}=e,a=["trackEvent",n,o,i,s];let r=location.href;window._paq.push([function(){r=this.getCurrentUrl()}]),window._paq.push(["setCustomUrl",r.split("#")[0]]),window._paq.push(a.filter(c=>c!==void 0)),window._paq.push(["setCustomUrl",r])}else if(t==="search"){const{query:n,category:o=!1,results:i=!1}=e;window._paq.push(["trackSiteSearch",n,o,i])}else t==="matomo"&&window._paq.push(e)}}}function Xa(){if(document.getElementById(F)||window.localStorage.getItem(F))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${F}" data-analytics="ignore"><style>
8
+ ::slotted(data:focus) { ${ps} }`,dn="beforeinput,blur,focus,click,input,keydown,mousedown",un={once:!0,passive:!0},Nt="false",Es=us&&!sn,Ss=sn||fs,fn="​".repeat(5),pn="deleteContentBackward",$s="insertText",Ht={added:"Added",empty:"No selected",found:"Navigate left to find %d selected",invalid:"Invalid value",of:"of",remove:"Press to remove",removed:"Removed"},be=class extends ms{constructor(){super(),this._item="",this._speak="",this._texts=ds({},Ht),this._value="",this.shadowRoot||this.attachShadow({mode:"open"}).append(Dt("slot"),Dt("style",xs))}static get observedAttributes(){return Object.keys(Ht).map(t=>`data-sr-${t}`)}connectedCallback(){this._root=vs(this),Mt(this,dn,this,!0),me(this,{attributeFilter:["value","id"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(Bt,0,this),setTimeout(Ft,0,this)}attributeChangedCallback(t,e,n){const o=t.split("data-sr-")[1];Ht[o]&&(this._texts[o]=n||Ht[o])}disconnectedCallback(){me(this,!1),hs(this,dn,this,!0),this._items=this._clear=this._focus=this._control=void 0,this._list=this._options=this._root=void 0}handleEvent(t){const e=t.target;_e(this)||(t.type==="beforeinput"&&(this._value=e?.value||""),t.type==="blur"&&Cs(this),t.type==="click"&&As(this,t),t.type==="focus"&&Ts(this,t),t.type==="input"&&Ls(this,t),t.type==="keydown"&&Is(this,t),t.type==="mousedown"&&ve(t),t.type==="mutation"&&Bt(this,t))}get multiple(){var t;return((t=x(this,"data-multiple"))!=null?t:Nt)!==Nt}set multiple(t){x(this,"data-multiple",t?"":null)}get creatable(){var t;return((t=x(this,"data-creatable"))!=null?t:Nt)!==Nt}set creatable(t){x(this,"data-creatable",t?"":null)}get control(){var t;return(t=this._control)!=null&&t.isConnected||(this._control=this.querySelector("input")),this._control}get list(){var t;return(t=this._list)!=null&&t.isConnected||(this._list=this.querySelector("u-datalist,datalist")),this._list}get clear(){var t;return(t=this._clear)!=null&&t.isConnected||(this._clear=this.querySelector("del")),this._clear}get items(){return this._items||(this._items=this.getElementsByTagName("data")),this._items}get options(){var t,e;if(!this._options){const n=((t=this.list)==null?void 0:t.nodeName)==="U-DATALIST"?"u-option":"option";this._options=(e=this.list)==null?void 0:e.getElementsByTagName(n)}return this._options}get values(){return[...this.items].map(({value:t})=>t)}},ot=t=>{var e;return((e=t?.textContent)==null?void 0:e.trim())||""},ye=t=>t instanceof HTMLDataElement,_e=({control:t})=>t?.disabled||t?.readOnly||!1,Bt=(t,e)=>{var n;const{_focus:o,_texts:i,items:s,control:a,list:r,multiple:c}=t;if(!a||!r)return;const l=_s(a),d=l.endsWith(fn)?x(a,"data-label"):l;x(a,"data-label",d);let u=`${d}${c?`, ${s.length?i.found.replace("%d",`${s.length}`):i.empty}`:""}`;const p=[];for(const{addedNodes:v,removedNodes:y}of e?.detail||[]){for(const w of v)ye(w)&&p.unshift(w);for(const w of y)ye(w)&&p.push(w)}const m=c?p.length===1:p[0]===o;if(o&&m){const v=x(a,"aria-expanded"),y=x(a,"inputmode"),w=ye(o)?a:o,E=!p[0].isConnected;t._speak=`${i[E?"removed":"added"]} ${ot(p[0])}, `,(Ss||o===a)&&he(t._speak),a!==w&&(x(a,"aria-expanded",null),x(a,"inputmode","none"),u=" ",a.focus()),setTimeout(()=>{var R;x(a,"aria-expanded",v),x(a,"inputmode",E?"none":y),(R=w?.focus)==null||R.call(w),x(a,"inputmode",y),t._speak="",Es?Mt(t,"blur",()=>Bt(t),un):setTimeout(Bt,100,t)},100)}let h=0;const g=t.querySelector("select"),_=_e(t)?"":`${i.remove}, `;for(const v of s){const y=g?.options[h],w=ot(v),E=v.value||w,R=`${t._speak}${w}, ${_}${++h} ${i.of} ${s.length}`;x(v,"role","button"),x(v,"value",E),x(v,"tabindex","-1"),x(v,"aria-label",R),y?Object.assign(y,{textContent:w,value:E}):g?.appendChild(new Option(w,E,!0,!0))}g&&x(g,"multiple",c?"":null);for(const v of[...g?.options||[]].slice(h))v.remove();!c&&h>1&&console.warn("u-combobox: Multiple <data> found in single mode."),x(r,"aria-multiselectable",`${c}`),x(a,"list",ln(r)),x(a,"aria-label",`${t._speak}${u}${fn}`),r.hasAttribute("popover")&&(x(a,"popovertarget",ln(r)),x(r,"popover","manual"));const b=ot(s[0]);b!==t._item&&Ft(t),t._item=b,mn(t),hn(t),(n=me(t))==null||n.takeRecords()},mn=t=>{var e;t.clear&&x(t.clear,"role","button"),t.clear&&(t.clear.hidden=!((e=t.control)!=null&&e.value)||_e(t))},hn=t=>{var e;const{_speak:n,options:o=[],values:i}=t;for(const s of o){const a=(e=x(s,"value"))!=null?e:ot(s);x(s,"aria-label",n?`${n}${ot(s)}`:null),x(s,"selected",i.includes(a)?"":null)}},Ft=t=>{const{multiple:e,control:n,items:o}=t,i=ot(o[0]);!e&&n&&i!==n.value&&cn(n,i,i?$s:pn)},we=(t,e=!0)=>{var n;const{_texts:o,options:i=[],creatable:s,control:a,items:r,multiple:c}=t,l=((n=a?.value)==null?void 0:n.trim())||"",d=l.toLowerCase()||null;let u=[...i].find(m=>(x(m,"label")||ot(m)).trim().toLowerCase()===d);const p={bubbles:!0,cancelable:!0,detail:u};if(t.dispatchEvent(new CustomEvent("comboboxbeforematch",p))||(u=[...i].find(m=>m.selected)),e)return hn(t),u?mt(t,u,!1):s&&l?mt(t,{value:l},!1):(!c&&!l&&r[0]?mt(t,r[0]):Ft(t),he(o.invalid));for(const m of i)m.selected=m===u},mt=(t,e,n=!0)=>{const{control:o,items:i,multiple:s}=t,a=Dt("data",e.label||e.value,{value:e.value}),r=[...i].find(d=>d.value===e.value),c={bubbles:!0,cancelable:!0,detail:r||a};if(r&&!n)return Ft(t);if(t.dispatchEvent(new CustomEvent("comboboxbeforeselect",c))){if(!s)for(const d of[...i])d.remove();r?r.remove():o?.insertAdjacentElement("beforebegin",a),t.dispatchEvent(new CustomEvent("comboboxafterselect",c))}},Ts=(t,{target:e})=>{e instanceof HTMLElement&&(t._focus=e),he()},Cs=t=>ve()||setTimeout(ks,0,t),ks=t=>{var e;!t._focus||t.contains((e=t._root)==null?void 0:e.activeElement)||(t.multiple||we(t),t._focus=void 0)},As=(t,e)=>{const{clientX:n,clientY:o,target:i}=e,{clear:s,control:a,items:r}=t;if(s?.contains(i))return a&&cn(a,"",pn),a?.focus();for(const c of r){const{top:l,right:d,bottom:u,left:p}=c.getBoundingClientRect();if(c.contains(i))return mt(t,c);if(o>=l&&o<=u&&n>=p&&n<=d)return c.focus()}i===t&&a?.focus()},Ls=(t,e)=>{var n;const{options:o=[],control:i,multiple:s}=t,a=((n=i?.value)==null?void 0:n.trim())||"";if(e instanceof InputEvent?!e.inputType||e.inputType==="insertReplacementText":!!a){e.stopImmediatePropagation(),i&&(i.value=t._value);for(const c of o)if(c.value&&c.value===a)return mt(t,c,s)}else s||we(t,!1);mn(t)},Is=(t,e)=>{var n;if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;const{clear:o,control:i,items:s}=t,{key:a,repeat:r,target:c}=e,l=i&&i===c,d=l&&i?.selectionEnd;let u=l?s.length:[...s].indexOf(c);if(l&&a==="Tab"&&o&&!o.hidden&&(e.preventDefault(),o.tabIndex=0,o.focus(),Mt(o,"blur",()=>x(o,"tabindex",null),un)),!(!l&&gs(e)||u===-1)){if(a==="ArrowRight"&&!l)u+=1;else if(a==="ArrowLeft"&&!d)u-=1;else if(a==="Enter"&&l){const p=x(i,"form");return x(i,"form","#"),requestAnimationFrame(()=>x(i,"form",p)),we(t)}else if(a==="Backspace"&&!d){if(e.preventDefault(),!r&&s[u])return mt(t,s[u]);l&&(u-=1)}else return l||i?.focus();e.preventDefault(),(n=s[Math.max(0,u)]||i)==null||n.focus()}};ys.define("u-combobox",be);var xe=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Os=xe&&/android/i.test(navigator.userAgent),gn;xe&&/^Mac/i.test(((gn=navigator.userAgentData)==null?void 0:gn.platform)||navigator.platform);var Rs=`${Os?"data":"aria"}-labelledby`,Ee=":host(:not([hidden])) { display: block }",Ut=typeof HTMLElement>"u"?class{}:HTMLElement;function L(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var vn=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Ms=(t,...e)=>vn("add",t,e),Ps=(t,...e)=>vn("remove",t,e),qt=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(wn("slot"),wn("style",e)),Vt=new WeakMap,bn=(t,e)=>{if(e===void 0)return Vt.get(t);try{Vt.get(t).disconnect(),Vt.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),Vt.set(t,n)}},Ds=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},yn=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},Ns=0,_n=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Ns).toString(32)}`),t.id):"",wn=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},Gt={define:(t,e)=>!xe||window.customElements.get(t)||window.customElements.define(t,e)},Hs=Ee,Bs=Ee,Fs=Ee,Us=':host(:not([hidden])) { display: inline-block; cursor: pointer }:host([aria-disabled="true"]) { cursor: default }',zt="aria-controls",ht="aria-selected",xn=class extends Ut{constructor(){super(),qt(this,Hs)}get tabList(){return Wt("u-tablist",this)[0]||null}get selectedIndex(){return Xt(this.tabs)}set selectedIndex(t){Te(this.tabs[t])}get tabs(){return Wt("u-tab",this)}get panels(){return Wt("u-tabpanel",this)}},En=class extends Ut{constructor(){super(),qt(this,Bs)}connectedCallback(){L(this,"role","tablist"),Ms(this,"click,keydown",this),bn(this,{childList:!0}),this.tabs.length&&this.handleEvent()}disconnectedCallback(){Ps(this,"click,keydown",this),bn(this,!1)}handleEvent(t){if(!t||t.type==="mutation"){const s=this.tabs[Math.max(this.selectedIndex,0)];return s?.setAttribute(ht,"true")}const{key:e}=t,n=[...this.tabs],o=n.findIndex(s=>s.contains(t.target));let i=o;if(!(t.defaultPrevented||o===-1)&&(t.type==="click"&&Te(n[o]),t.type==="keydown"&&!Ds(t))){if(e==="ArrowDown"||e==="ArrowRight")i=(o+1)%n.length;else if(e==="ArrowUp"||e==="ArrowLeft")i=(o||n.length)-1;else if(e==="End")i=n.length-1;else if(e==="Home")i=0;else if(e==="Tab")i=Xt(n);else return;setTimeout(()=>{n[o].tabIndex=-1,n[i].tabIndex=0}),e!=="Tab"&&(t.preventDefault(),n[i].focus())}}get tabsElement(){return this.closest("u-tabs")}get tabs(){return this.querySelectorAll("u-tab")}get selectedIndex(){return Xt(this.tabs)}set selectedIndex(t){Te(this.tabs[t])}},Se=!1,Sn=class extends Ut{static get observedAttributes(){return["id",ht,zt]}constructor(){super(),qt(this,Us)}connectedCallback(){L(this,"role","tab"),this.tabIndex=this.selected?0:-1}attributeChangedCallback(){if(!Se&&this.selected&&this.tabList){Se=!0;const t=[...this.tabList.querySelectorAll("u-tab")],e=Wt("u-tabpanel",this.tabsElement||this),n=$e(this,e[t.indexOf(this)]);n&&L(n,Rs,_n(this)),t.forEach((o,i)=>{const s=$e(o,e[i]);o.tabIndex=o===this?0:-1,L(o,ht,`${o===this}`),L(o,zt,s?.id||null),s&&(s.hidden=s!==n)}),Se=!1}}get tabsElement(){return this.closest("u-tabs")}get tabList(){const t=this.parentElement;return t?.nodeName==="U-TABLIST"?t:null}get selected(){return L(this,ht)==="true"}set selected(t){L(this,ht,`${!!t}`)}get index(){const t=this.tabList;return t?[...t.querySelectorAll("u-tab")].indexOf(this):0}get panel(){return $e(this)}},$n=class extends Ut{static get observedAttributes(){return["hidden"]}constructor(){super(),qt(this,Fs)}connectedCallback(){L(this,"role","tabpanel"),this.hidden=Xt(this.tabs)===-1,this.attributeChangedCallback()}attributeChangedCallback(){const t=this.hidden;L(this,"aria-hidden",`${t}`),L(this,"tabindex",t||qs(this.firstChild)?null:"0")}get tabsElement(){return this.closest("u-tabs")}get tabs(){const t=`u-tab[${zt}="${this.id}"]`;return yn(this).querySelectorAll(t)}},Wt=(t,e)=>e.querySelectorAll(`${t}:not(:scope u-tabpanel ${t})`),$e=(t,e)=>{const n=L(t,zt)||_n(e),o=yn(t).getElementById(n);return o?.nodeName==="U-TABPANEL"?o:null},Xt=t=>[...t].findIndex(e=>L(e,ht)==="true"),Te=t=>t&&L(t,"aria-disabled")!=="true"&&L(t,"aria-selected","true"),qs=t=>t instanceof Element&&!t.matches(':disabled,[tabindex^="-"]')&&t.matches('[contenteditable],[controls],[href],[tabindex],input:not([type="hidden"]),select,textarea,button,summary,iframe');Gt.define("u-tabs",xn),Gt.define("u-tablist",En),Gt.define("u-tab",Sn),Gt.define("u-tabpanel",$n);const Vs="2.2.22",Tn="_alert_1cl7y_1 _ds-alert_5rpuv_3",Cn="_app_1cl7y_1",kn="_sticky_1cl7y_1",An="_avatar_1cl7y_1 _ds-avatar_5rpuv_1",Ln="_badge_1cl7y_1",In="_breadcrumbs_1cl7y_1 _ds-breadcrumbs_5rpuv_5",On="_button_1cl7y_1 _ds-button_5rpuv_1",Rn="_card_1cl7y_1",Mn="_group_1cl7y_1",Pn="_chip_1cl7y_1 _ds-chip_5rpuv_5",Dn="_details_1cl7y_1 _ds-details_5rpuv_3",Nn="_dialog_1cl7y_1 _ds-dialog_5rpuv_5",Hn="__drawer_1cl7y_1",Bn="_divider_1cl7y_1",Fn="_errorsummary_1cl7y_1 _ds-error-summary_5rpuv_5",Un="__errorsummary_1cl7y_1",qn="_field_1cl7y_1 _ds-field_5rpuv_1",Vn="__datalist_1cl7y_1",Gn="_affixes_1cl7y_1 _ds-field-affixes_5rpuv_3",zn="_fieldset_1cl7y_1 _ds-fieldset_5rpuv_3",Wn="_fileupload_1cl7y_1",Xn="_helptext_1cl7y_1 _ds-focus_5rpuv_1",jn="_input_1cl7y_1 _ds-input_5rpuv_1",Kn="_law_1cl7y_1",Yn="_grid_1cl7y_1",Qn="_flex_1cl7y_1",Jn="_link_1cl7y_1",Zn="_logo_1cl7y_1",to="_pagination_1cl7y_1 _ds-pagination_5rpuv_5",eo="_popover_1cl7y_1",no="_progress_1cl7y_1",oo="__indeterminate_1cl7y_1",io="_skeleton_1cl7y_1 _ds-skeleton_5rpuv_5",so="__skeleton_1cl7y_1",ao="_spinner_1cl7y_1",ro="_steps_1cl7y_1",lo="_table_1cl7y_1 _ds-table_5rpuv_5",co="__scrollShadow_1cl7y_1",uo="_tabs_1cl7y_1 _ds-tabs_5rpuv_5",fo="__scrollMask_1cl7y_1",po="_tag_1cl7y_1 _ds-tag_5rpuv_5",mo="_toast_1cl7y_1",ho="__toastClose_1cl7y_1",go="__toastOpen_1cl7y_1",vo="__toastTimeout_1cl7y_1",bo="_togglegroup_1cl7y_1",yo="__tooltip_1cl7y_1",_o="_heading_1cl7y_1 _ds-heading_5rpuv_1",wo="_ingress_1cl7y_1",xo="_muted_1cl7y_1",Eo="_info_1cl7y_1",So="_prose_1cl7y_1",$o="_validation_1cl7y_1 _ds-validation-message_5rpuv_1",To="_body_1cl7y_173",Co="__checked_1cl7y_1",$={alert:Tn,app:Cn,sticky:kn,avatar:An,badge:Ln,breadcrumbs:In,button:On,card:Rn,group:Mn,chip:Pn,details:Dn,dialog:Nn,_drawer:Hn,divider:Bn,errorsummary:Fn,_errorsummary:Un,field:qn,_datalist:Vn,affixes:Gn,fieldset:zn,fileupload:Wn,helptext:Xn,input:jn,law:Kn,grid:Yn,flex:Qn,link:Jn,logo:Zn,pagination:to,popover:eo,progress:no,_indeterminate:oo,skeleton:io,_skeleton:so,spinner:ao,steps:ro,table:lo,_scrollShadow:co,tabs:uo,_scrollMask:fo,tag:po,toast:mo,_toastClose:ho,_toastOpen:go,_toastTimeout:vo,togglegroup:bo,_tooltip:yo,heading:_o,ingress:wo,muted:xo,info:Eo,prose:So,validation:$o,body:To,_checked:Co},Gs=Object.freeze(Object.defineProperty({__proto__:null,_checked:Co,_datalist:Vn,_drawer:Hn,_errorsummary:Un,_indeterminate:oo,_scrollMask:fo,_scrollShadow:co,_skeleton:so,_toastClose:ho,_toastOpen:go,_toastTimeout:vo,_tooltip:yo,affixes:Gn,alert:Tn,app:Cn,avatar:An,badge:Ln,body:To,breadcrumbs:In,button:On,card:Rn,chip:Pn,default:$,details:Dn,dialog:Nn,divider:Bn,errorsummary:Fn,field:qn,fieldset:zn,fileupload:Wn,flex:Qn,grid:Yn,group:Mn,heading:_o,helptext:Xn,info:Eo,ingress:wo,input:jn,law:Kn,link:Jn,logo:Zn,muted:xo,pagination:to,popover:eo,progress:no,prose:So,skeleton:io,spinner:ao,steps:ro,sticky:kn,table:lo,tabs:uo,tag:po,toast:mo,togglegroup:bo,validation:$o},Symbol.toStringTag,{value:"Module"})),gt=Math.min,M=Math.max,jt=Math.round,Kt=Math.floor,V=t=>({x:t,y:t}),zs={left:"right",right:"left",bottom:"top",top:"bottom"},Ws={start:"end",end:"start"};function ko(t,e,n){return M(t,gt(e,n))}function Yt(t,e){return typeof t=="function"?t(e):t}function it(t){return t.split("-")[0]}function Qt(t){return t.split("-")[1]}function Ao(t){return t==="x"?"y":"x"}function Lo(t){return t==="y"?"height":"width"}const Xs=new Set(["top","bottom"]);function Q(t){return Xs.has(it(t))?"y":"x"}function Io(t){return Ao(Q(t))}function js(t,e,n){n===void 0&&(n=!1);const o=Qt(t),i=Io(t),s=Lo(i);let a=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Jt(a)),[a,Jt(a)]}function Ks(t){const e=Jt(t);return[Ce(t),e,Ce(e)]}function Ce(t){return t.replace(/start|end/g,e=>Ws[e])}const Oo=["left","right"],Ro=["right","left"],Ys=["top","bottom"],Qs=["bottom","top"];function Js(t,e,n){switch(t){case"top":case"bottom":return n?e?Ro:Oo:e?Oo:Ro;case"left":case"right":return e?Ys:Qs;default:return[]}}function Zs(t,e,n,o){const i=Qt(t);let s=Js(it(t),n==="start",o);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(Ce)))),s}function Jt(t){return t.replace(/left|right|bottom|top/g,e=>zs[e])}function ta(t){return{top:0,right:0,bottom:0,left:0,...t}}function ea(t){return typeof t!="number"?ta(t):{top:t,right:t,bottom:t,left:t}}function Zt(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Mo(t,e,n){let{reference:o,floating:i}=t;const s=Q(e),a=Io(e),r=Lo(a),c=it(e),l=s==="y",d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,p=o[r]/2-i[r]/2;let m;switch(c){case"top":m={x:d,y:o.y-i.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:u};break;case"left":m={x:o.x-i.width,y:u};break;default:m={x:o.x,y:o.y}}switch(Qt(e)){case"start":m[a]-=p*(n&&l?-1:1);break;case"end":m[a]+=p*(n&&l?-1:1);break}return m}const na=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,r=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:u}=Mo(l,o,c),p=o,m={},h=0;for(let g=0;g<r.length;g++){const{name:_,fn:b}=r[g],{x:v,y,data:w,reset:E}=await b({x:d,y:u,initialPlacement:o,placement:p,strategy:i,middlewareData:m,rects:l,platform:a,elements:{reference:t,floating:e}});d=v??d,u=y??u,m={...m,[_]:{...m[_],...w}},E&&h<=50&&(h++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(l=E.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):E.rects),{x:d,y:u}=Mo(l,p,c)),g=-1)}return{x:d,y:u,placement:p,strategy:i,middlewareData:m}};async function ke(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:a,elements:r,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:m=0}=Yt(e,t),h=ea(m),_=r[p?u==="floating"?"reference":"floating":u],b=Zt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(r.floating)),boundary:l,rootBoundary:d,strategy:c})),v=u==="floating"?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(r.floating)),w=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},E=Zt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:v,offsetParent:y,strategy:c}):v);return{top:(b.top-E.top+h.top)/w.y,bottom:(E.bottom-b.bottom+h.bottom)/w.y,left:(b.left-E.left+h.left)/w.x,right:(E.right-b.right+h.right)/w.x}}const oa=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:a,initialPlacement:r,platform:c,elements:l}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,..._}=Yt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=it(i),v=Q(r),y=it(r)===r,w=await(c.isRTL==null?void 0:c.isRTL(l.floating)),E=p||(y||!g?[Jt(r)]:Ks(r)),R=h!=="none";!p&&R&&E.push(...Zs(r,g,h,w));const W=[r,...E],dt=await ke(e,_),ut=[];let Y=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&ut.push(dt[b]),u){const ft=js(i,a,w);ut.push(dt[ft[0]],dt[ft[1]])}if(Y=[...Y,{placement:i,overflows:ut}],!ut.every(ft=>ft<=0)){var Lt,It;const ft=(((Lt=s.flip)==null?void 0:Lt.index)||0)+1,en=W[ft];if(en&&(!(u==="alignment"?v!==Q(en):!1)||Y.every(q=>Q(q.placement)===v?q.overflows[0]>0:!0)))return{data:{index:ft,overflows:Y},reset:{placement:en}};let Rt=(It=Y.filter(pt=>pt.overflows[0]<=0).sort((pt,q)=>pt.overflows[1]-q.overflows[1])[0])==null?void 0:It.placement;if(!Rt)switch(m){case"bestFit":{var Ot;const pt=(Ot=Y.filter(q=>{if(R){const et=Q(q.placement);return et===v||et==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(et=>et>0).reduce((et,tc)=>et+tc,0)]).sort((q,et)=>q[1]-et[1])[0])==null?void 0:Ot[0];pt&&(Rt=pt);break}case"initialPlacement":Rt=r;break}if(i!==Rt)return{reset:{placement:Rt}}}return{}}}},ia=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:r={fn:_=>{let{x:b,y:v}=_;return{x:b,y:v}}},...c}=Yt(t,e),l={x:n,y:o},d=await ke(e,c),u=Q(it(i)),p=Ao(u);let m=l[p],h=l[u];if(s){const _=p==="y"?"top":"left",b=p==="y"?"bottom":"right",v=m+d[_],y=m-d[b];m=ko(v,m,y)}if(a){const _=u==="y"?"top":"left",b=u==="y"?"bottom":"right",v=h+d[_],y=h-d[b];h=ko(v,h,y)}const g=r.fn({...e,[p]:m,[u]:h});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[p]:s,[u]:a}}}}}},sa=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:s,platform:a,elements:r}=e,{apply:c=()=>{},...l}=Yt(t,e),d=await ke(e,l),u=it(i),p=Qt(i),m=Q(i)==="y",{width:h,height:g}=s.floating;let _,b;u==="top"||u==="bottom"?(_=u,b=p===(await(a.isRTL==null?void 0:a.isRTL(r.floating))?"start":"end")?"left":"right"):(b=u,_=p==="end"?"top":"bottom");const v=g-d.top-d.bottom,y=h-d.left-d.right,w=gt(g-d[_],v),E=gt(h-d[b],y),R=!e.middlewareData.shift;let W=w,dt=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(dt=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(W=v),R&&!p){const Y=M(d.left,0),Lt=M(d.right,0),It=M(d.top,0),Ot=M(d.bottom,0);m?dt=h-2*(Y!==0||Lt!==0?Y+Lt:M(d.left,d.right)):W=g-2*(It!==0||Ot!==0?It+Ot:M(d.top,d.bottom))}await c({...e,availableWidth:dt,availableHeight:W});const ut=await a.getDimensions(r.floating);return h!==ut.width||g!==ut.height?{reset:{rects:!0}}:{}}}};function te(){return typeof window<"u"}function vt(t){return Po(t)?(t.nodeName||"").toLowerCase():"#document"}function P(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function G(t){var e;return(e=(Po(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Po(t){return te()?t instanceof Node||t instanceof P(t).Node:!1}function H(t){return te()?t instanceof Element||t instanceof P(t).Element:!1}function z(t){return te()?t instanceof HTMLElement||t instanceof P(t).HTMLElement:!1}function Do(t){return!te()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof P(t).ShadowRoot}const aa=new Set(["inline","contents"]);function xt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=B(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!aa.has(i)}const ra=new Set(["table","td","th"]);function la(t){return ra.has(vt(t))}const ca=[":popover-open",":modal"];function ee(t){return ca.some(e=>{try{return t.matches(e)}catch{return!1}})}const da=["transform","translate","scale","rotate","perspective"],ua=["transform","translate","scale","rotate","perspective","filter"],fa=["paint","layout","strict","content"];function Ae(t){const e=Le(),n=H(t)?B(t):t;return da.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||ua.some(o=>(n.willChange||"").includes(o))||fa.some(o=>(n.contain||"").includes(o))}function pa(t){let e=J(t);for(;z(e)&&!bt(e);){if(Ae(e))return e;if(ee(e))return null;e=J(e)}return null}function Le(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ma=new Set(["html","body","#document"]);function bt(t){return ma.has(vt(t))}function B(t){return P(t).getComputedStyle(t)}function ne(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function J(t){if(vt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Do(t)&&t.host||G(t);return Do(e)?e.host:e}function No(t){const e=J(t);return bt(e)?t.ownerDocument?t.ownerDocument.body:t.body:z(e)&&xt(e)?e:No(e)}function Et(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=No(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),a=P(i);if(s){const r=Ie(a);return e.concat(a,a.visualViewport||[],xt(i)?i:[],r&&n?Et(r):[])}return e.concat(i,Et(i,[],n))}function Ie(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ho(t){const e=B(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=z(t),s=i?t.offsetWidth:n,a=i?t.offsetHeight:o,r=jt(n)!==s||jt(o)!==a;return r&&(n=s,o=a),{width:n,height:o,$:r}}function Oe(t){return H(t)?t:t.contextElement}function yt(t){const e=Oe(t);if(!z(e))return V(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=Ho(e);let a=(s?jt(n.width):n.width)/o,r=(s?jt(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!r||!Number.isFinite(r))&&(r=1),{x:a,y:r}}const ha=V(0);function Bo(t){const e=P(t);return!Le()||!e.visualViewport?ha:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ga(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==P(t)?!1:e}function st(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Oe(t);let a=V(1);e&&(o?H(o)&&(a=yt(o)):a=yt(t));const r=ga(s,n,o)?Bo(s):V(0);let c=(i.left+r.x)/a.x,l=(i.top+r.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(s){const p=P(s),m=o&&H(o)?P(o):o;let h=p,g=Ie(h);for(;g&&o&&m!==h;){const _=yt(g),b=g.getBoundingClientRect(),v=B(g),y=b.left+(g.clientLeft+parseFloat(v.paddingLeft))*_.x,w=b.top+(g.clientTop+parseFloat(v.paddingTop))*_.y;c*=_.x,l*=_.y,d*=_.x,u*=_.y,c+=y,l+=w,h=P(g),g=Ie(h)}}return Zt({width:d,height:u,x:c,y:l})}function oe(t,e){const n=ne(t).scrollLeft;return e?e.left+n:st(G(t)).left+n}function Fo(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-oe(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function va(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s=i==="fixed",a=G(o),r=e?ee(e.floating):!1;if(o===a||r&&s)return n;let c={scrollLeft:0,scrollTop:0},l=V(1);const d=V(0),u=z(o);if((u||!u&&!s)&&((vt(o)!=="body"||xt(a))&&(c=ne(o)),z(o))){const m=st(o);l=yt(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}const p=a&&!u&&!s?Fo(a,c):V(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+p.x,y:n.y*l.y-c.scrollTop*l.y+d.y+p.y}}function ba(t){return Array.from(t.getClientRects())}function ya(t){const e=G(t),n=ne(t),o=t.ownerDocument.body,i=M(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=M(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+oe(t);const r=-n.scrollTop;return B(o).direction==="rtl"&&(a+=M(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:r}}const Uo=25;function _a(t,e){const n=P(t),o=G(t),i=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,r=0,c=0;if(i){s=i.width,a=i.height;const d=Le();(!d||d&&e==="fixed")&&(r=i.offsetLeft,c=i.offsetTop)}const l=oe(o);if(l<=0){const d=o.ownerDocument,u=d.body,p=getComputedStyle(u),m=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,h=Math.abs(o.clientWidth-u.clientWidth-m);h<=Uo&&(s-=h)}else l<=Uo&&(s+=l);return{width:s,height:a,x:r,y:c}}const wa=new Set(["absolute","fixed"]);function xa(t,e){const n=st(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=z(t)?yt(t):V(1),a=t.clientWidth*s.x,r=t.clientHeight*s.y,c=i*s.x,l=o*s.y;return{width:a,height:r,x:c,y:l}}function qo(t,e,n){let o;if(e==="viewport")o=_a(t,n);else if(e==="document")o=ya(G(t));else if(H(e))o=xa(e,n);else{const i=Bo(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Zt(o)}function Vo(t,e){const n=J(t);return n===e||!H(n)||bt(n)?!1:B(n).position==="fixed"||Vo(n,e)}function Ea(t,e){const n=e.get(t);if(n)return n;let o=Et(t,[],!1).filter(r=>H(r)&&vt(r)!=="body"),i=null;const s=B(t).position==="fixed";let a=s?J(t):t;for(;H(a)&&!bt(a);){const r=B(a),c=Ae(a);!c&&r.position==="fixed"&&(i=null),(s?!c&&!i:!c&&r.position==="static"&&!!i&&wa.has(i.position)||xt(a)&&!c&&Vo(t,a))?o=o.filter(d=>d!==a):i=r,a=J(a)}return e.set(t,o),o}function Sa(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?ee(e)?[]:Ea(e,this._c):[].concat(n),o],r=a[0],c=a.reduce((l,d)=>{const u=qo(e,d,i);return l.top=M(u.top,l.top),l.right=gt(u.right,l.right),l.bottom=gt(u.bottom,l.bottom),l.left=M(u.left,l.left),l},qo(e,r,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function $a(t){const{width:e,height:n}=Ho(t);return{width:e,height:n}}function Ta(t,e,n){const o=z(e),i=G(e),s=n==="fixed",a=st(t,!0,s,e);let r={scrollLeft:0,scrollTop:0};const c=V(0);function l(){c.x=oe(i)}if(o||!o&&!s)if((vt(e)!=="body"||xt(i))&&(r=ne(e)),o){const m=st(e,!0,s,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else i&&l();s&&!o&&i&&l();const d=i&&!o&&!s?Fo(i,r):V(0),u=a.left+r.scrollLeft-c.x-d.x,p=a.top+r.scrollTop-c.y-d.y;return{x:u,y:p,width:a.width,height:a.height}}function Re(t){return B(t).position==="static"}function Go(t,e){if(!z(t)||B(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return G(t)===n&&(n=n.ownerDocument.body),n}function zo(t,e){const n=P(t);if(ee(t))return n;if(!z(t)){let i=J(t);for(;i&&!bt(i);){if(H(i)&&!Re(i))return i;i=J(i)}return n}let o=Go(t,e);for(;o&&la(o)&&Re(o);)o=Go(o,e);return o&&bt(o)&&Re(o)&&!Ae(o)?n:o||pa(t)||n}const Ca=async function(t){const e=this.getOffsetParent||zo,n=this.getDimensions,o=await n(t.floating);return{reference:Ta(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ka(t){return B(t).direction==="rtl"}const Aa={convertOffsetParentRelativeRectToViewportRelativeRect:va,getDocumentElement:G,getClippingRect:Sa,getOffsetParent:zo,getElementRects:Ca,getClientRects:ba,getDimensions:$a,getScale:yt,isElement:H,isRTL:ka};function Wo(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function La(t,e){let n=null,o;const i=G(t);function s(){var r;clearTimeout(o),(r=n)==null||r.disconnect(),n=null}function a(r,c){r===void 0&&(r=!1),c===void 0&&(c=1),s();const l=t.getBoundingClientRect(),{left:d,top:u,width:p,height:m}=l;if(r||e(),!p||!m)return;const h=Kt(u),g=Kt(i.clientWidth-(d+p)),_=Kt(i.clientHeight-(u+m)),b=Kt(d),y={rootMargin:-h+"px "+-g+"px "+-_+"px "+-b+"px",threshold:M(0,gt(1,c))||1};let w=!0;function E(R){const W=R[0].intersectionRatio;if(W!==c){if(!w)return a();W?a(!1,W):o=setTimeout(()=>{a(!1,1e-7)},1e3)}W===1&&!Wo(l,t.getBoundingClientRect())&&a(),w=!1}try{n=new IntersectionObserver(E,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,y)}n.observe(t)}return a(!0),s}function Ia(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=Oe(t),d=i||s?[...l?Et(l):[],...Et(e)]:[];d.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const u=l&&r?La(l,n):null;let p=-1,m=null;a&&(m=new ResizeObserver(b=>{let[v]=b;v&&v.target===l&&m&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(e)})),n()}),l&&!c&&m.observe(l),m.observe(e));let h,g=c?st(t):null;c&&_();function _(){const b=st(t);g&&!Wo(g,b)&&n(),g=b,h=requestAnimationFrame(_)}return n(),()=>{var b;d.forEach(v=>{i&&v.removeEventListener("scroll",n),s&&v.removeEventListener("resize",n)}),u?.(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(h)}}const Xo=ia,jo=oa,Oa=sa,Ra=(t,e,n)=>{const o=new Map,i={platform:Aa,...n},s={...i.platform,_c:o};return na(t,e,{...i,platform:s})};function Ko(t){var e,n,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Ko(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function Ma(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Ko(t))&&(o&&(o+=" "),o+=e);return o}const I={capture:!0,passive:!0},D=typeof window<"u"&&typeof document<"u";function Pa(t,e){let n;return function(...o){clearTimeout(n),n=setTimeout(()=>t.apply(this,o),e)}}function f(t,e,n){return n===void 0?t.getAttribute(e)??null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}let Da=0;const Na=`${Date.now().toString(36)}${Math.random().toString(36).slice(2,5)}`;function ie(t){return t.id||(t.id=`${Na}${++Da}`),t.id}const Yo=(t,e,[...n])=>{for(const o of n[0].split(","))n[0]=o,e[`${t}EventListener`](...n)},T=(t,...e)=>(Yo("add",t,e),()=>Qo(t,...e)),Qo=(t,...e)=>Yo("remove",t,e),N=t=>{if(!D||!window.requestAnimationFrame)return;window._mtdsCleanups||(window._mtdsCleanups=new Map);const e=()=>requestAnimationFrame(()=>{const n=String(t).replace(/(\n|\s)/g,"");window._mtdsCleanups?.get(n)?.map(o=>o()),window._mtdsCleanups?.set(n,t())});document.readyState==="complete"?e():T(window,"load",e)},Me=new WeakMap,Ha=`.${$.dialog.split(" ")[0]}`;function at(t,e,{contain:n,middleware:o,placement:i,...s}={}){if(Me.get(t)?.(),Me.delete(t),e){const a=t.closest(Ha)?.querySelector(":scope > footer"),r=Number(f(t,"data-inset"))||20,l={bottom:(a?.clientHeight||0)+r,left:r,right:r,top:r},d=f(t,"data-position")??"bottom";Me.set(t,Ia(e,t,()=>{if(!t.isConnected||!e.isConnected||t.hidden)return at(t,!1);Ra(e,t,{...s,placement:i||d,middleware:[jo({padding:l}),Xo(),...n?[Oa({padding:l,apply:n})]:[],...o||[]]}).then(({x:u,y:p})=>{t.style.left=`${u}px`,t.style.top=`${p}px`})}))}}function Z(t,e){let n=0;const o=typeof e=="string"?{attr:e}:e,i=()=>setTimeout(s,o?.delay??200),s=()=>{if(!D)return r();t(a),a.takeRecords(),n=0},a=new MutationObserver(()=>{n||(n=requestAnimationFrame(i))}),r=()=>{try{a.disconnect()}catch{}};return a.observe(o?.root||document.documentElement,{attributeFilter:[o.attr],attributes:!0,childList:!0,subtree:!0}),t(a),r}function Ba(t,e){const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()}const Pe=t=>t instanceof HTMLElement&&"validity"in t&&!(t instanceof HTMLButtonElement),C=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,s]of Object.entries(e))f(o,i,s);return o},Fa=typeof HTMLElement>"u"?class{}:HTMLElement,Ua=`.${$.breadcrumbs.split(" ")[0]}`,qa=`.${$.card.split(" ")[0]}`,Jo=`.${$.chip.split(" ")[0]}`,Va=`.${$.helptext.split(" ")[0]}`,Ga=`.${$.pagination.split(" ")[0]}`,za='summary,u-summary,a,button,[role="tab"],[role="button"]',Wa="click,toggle,submit,change",De="mattilsynet.matomo.cloud",F="mtds-analytics-banner",Xa="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function Zo(t,e={}){if(D){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${De}/matomo.php`])),window._mtm||(window._mtm=window._mtm||[],window._mtm.push({"mtm.startTime":Date.now(),event:"mtm.Start"})),t==="init"){window._mtdsTracking={enabled:window.location.hostname!=="localhost",...window._mtdsTracking,...e};const{consent:n,enabled:o,matomoId:i,matomoTagManagerId:s}=window._mtdsTracking;if(i&&window._paq.push(["setSiteId",i]),o){n!=="custom"&&ja();const a=s?`https://cdn.matomo.cloud/${De}/container_${s}.js`:`https://cdn.matomo.cloud/${De}/matomo.js`;document.querySelector(`script[src="${a}"]`)||document.head.append(C("script",{async:"",src:a}))}}if(window._mtdsTracking?.enabled!==!1){if(window._mtdsTracking?.enabled==="debug")return console.info(`analytics ${t}:`,e);if(t==="pageview"){const{url:n,title:o}=e;window._paq.push(["setCustomUrl",n||location.href]),window._paq.push(["setDocumentTitle",o||document.title]),window._paq.push(["trackPageView"])}else if(t==="event"){const{category:n,action:o,name:i,value:s}=e,a=["trackEvent",n,o,i,s];let r=location.href;window._paq.push([function(){r=this.getCurrentUrl()}]),window._paq.push(["setCustomUrl",r.split("#")[0]]),window._paq.push(a.filter(c=>c!==void 0)),window._paq.push(["setCustomUrl",r])}else if(t==="search"){const{query:n,category:o=!1,results:i=!1}=e;window._paq.push(["trackSiteSearch",n,o,i])}else t==="matomo"&&window._paq.push(e)}}}function ja(){if(document.getElementById(F)||window.localStorage.getItem(F))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${F}" data-analytics="ignore"><style>
9
9
  #${F}[open] { box-sizing: border-box; display: flex; align-items: center; background: #116e6b; border-radius: .5em; border: 0; box-shadow: 0 .25em .5em rgba(0,0,0,.3); color: #fff; font-size: .875em; inset: auto auto 1em 1em; max-width: calc(100vw - 2em); outline: 0; padding: .5em; position: fixed; z-index: 99999 }
10
10
  #${F} button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; width: 1.5em; height: 1.5em; font: 300 1.5em/1.35 sans-serif; border-radius: .25em; place-content: center; transition: .2s; transition-property: background, scale }
11
11
  #${F} button:focus-visible { outline: 2px solid }
@@ -13,11 +13,12 @@ var mtds=function(k){"use strict";var rs=Object.defineProperty,nn=Object.getOwnP
13
13
  #${F} button:active { background: #054449; scale: .9 }
14
14
  #${F} p { margin: 0 .25em }
15
15
  </style>
16
- <p>Vi bruker <a href="${Wa}" target="_blank">informasjonskapsler</a> for å forbedre brukeropplevelsen.</p>
16
+ <p>Vi bruker <a href="${Xa}" target="_blank">informasjonskapsler</a> for å forbedre brukeropplevelsen.</p>
17
17
  <form method="dialog" data-analytics="ignore"><button type="submit" aria-label="OK">&times;</button></form>
18
- </dialog>`);const e=document.getElementById(F),n=()=>window.localStorage.setItem(F,"seen");e.addEventListener("close",n,{once:!0}),e.show()}function ja(t){window._mtdsTracking?.enabled&&setTimeout(Ka,0,t)}function Ka({type:t,target:e}){const n=t==="click"?e?.closest?.(za):e;if(!(n instanceof Element)||n.closest('[data-analytics="ignore"]'))return;let o="click",i="Button",s=ti(n)||Ja(n)||f(n,"data-tooltip")||"";if(t==="submit")i="Form",o="submit",s=s||document.title;else if(t==="toggle"){if(!n.matches("dialog:modal"))return;i="Dialog",o="open"}else if(t==="change"){const a=f(n,"type"),r=a==="checkbox"||a==="radio"?n.closest("fieldset"):null;i=n.closest(Jo)?"Chip":"Form",o="change",s=ti(r||n)||St(r?.querySelector("legend"))||St(n?.labels?.[0])}else if(f(n,"role")==="tab")i="Tab",o="navigate";else if(f(n,"popovertarget")){if(!Ya(n)?.matches(":popover-open"))return;i=n.closest(qa)?"HelpText":"Popover",o="open"}else if(n.nodeName.endsWith("SUMMARY")){if(!n.parentElement.open)return;i="Details",o="open"}else if(f(n,"data-command")==="toggle-app-expanded"){const a=Qa(n,"--mtds-tooltip-position")==="none";i="Sidebar",o=a?"expand":"minimize",s=a&&f(n,"data-tooltip")||St(n)}else if(n.closest(Fa))i="Breadcrumbs",o="navigate";else if(n.closest(Va))i="Pagintation",o="navigate";else if(n.closest(Ua))i="Card",o=n instanceof HTMLAnchorElement?"navigate":"click";else if(n.closest(Jo))i="Chip",o=n.hasAttribute("data-removable")?"remove":"click";else if(n.closest("th[aria-sort]"))i="Table",o="sort";else if(n instanceof HTMLAnchorElement)i="Link",o=n.protocol==="mailto:"?"email":"navigate",n.hasAttribute("download")?o="download":n.hash&&n.href.startsWith(location.href.split("#")[0])&&(o="anchor");else if(n.hasAttribute("aria-expanded")){if(f(n,"aria-expanded")!=="true")return;i="Expand",o="open"}Zo("event",{category:f(n,"data-analytics-category")??i,action:f(n,"data-analytics-action")??o,name:f(n,"data-analytics-name")??s})}const St=t=>t?.textContent?.trim()||"",ti=t=>t&&f(t,"aria-label")||"",Ya=t=>document.getElementById(f(t,"popovertarget")||""),Qa=(t,e)=>window.getComputedStyle(t).getPropertyValue(e)?.trim(),Ja=t=>{const e=St(t),n=St(t.querySelector("h1,h2,h3,h4,h5,h6"));return e.startsWith(n)&&n||e.slice(0,100).trim()};N(()=>[T(document,Ga,ja,I)]),typeof window<"u"&&window.CSSStyleSheet&&document.adoptedStyleSheets&&(()=>{const t="--mtds-app-expanded",e=new CSSStyleSheet,n=()=>!window.localStorage.getItem(t)?.includes("false");document.adoptedStyleSheets.push(e),window.mtdsToggleAppExpanded=o=>{try{const i=o??!n();e.replaceSync?.(`:root { ${t}: var(${t}--${i})}`),window.localStorage.setItem(t,i)}catch{}},window.mtdsToggleAppExpanded(n())})();const ei=$.app.split(" ")[0],Za=$.sticky.split(" ")[0],tr='[data-command="toggle-app-expanded"]',Ne=`.${ei} > dialog,.${ei} dialog ~ main`,ni=D?document.getElementsByClassName(Za):[],oi=t=>{document.startViewTransition?document.startViewTransition(t):t()},ii=t=>oi(()=>window.mtdsToggleAppExpanded?.(t));function er({target:t,defaultPrevented:e}){const n=t?.closest?.("a");if(n?.closest("dialog")&&n?.closest(Ne))return si();if(e||!(t instanceof HTMLButtonElement)||!t.matches(tr))return;getComputedStyle(t).position==="sticky"?ii():oi(()=>{const i=document.querySelector(Ne);i?.setAttribute("data-closedby","any"),i?.showModal()})}function si(){document.querySelector(Ne)?.close()}let He=0,_t,X=0,Be=0,se=0,Fe=!1,Ue=0,rt=0;function nr(){if(!ni?.length)return;const t=ni[0],e=window.scrollY,n=e<rt;rt=e,n!==_t&&(He=(t.parentElement?.getBoundingClientRect().top||0)+rt,_t=n,Be=t.offsetHeight,se=t.getBoundingClientRect().top+rt,Fe=t.offsetHeight<=window.innerHeight,Ue=window.innerHeight),!(X===-1&&Fe)&&(X!==-1&&(Fe||_t&&rt<=se)?(t.style.setProperty("--pos","sticky"),t.style.setProperty("--top","0px"),X=-1):X===-1&&!_t?(t.style.setProperty("--pos","relative"),t.style.setProperty("--top",`${Math.max(0,rt-He)}px`),X=0):X!==1&&!_t&&rt+Ue>=se+Be?(t.style.setProperty("--pos","sticky"),t.style.setProperty("--top",`${Ue-Be}px`),X=1):X===1&&_t&&(t.style.setProperty("--pos","relative"),t.style.setProperty("--top",`${se-He}px`),X=0))}N(()=>[T(document,"click",er,I),T(window,"resize",Pa(si,100),I),T(window,"scroll",nr,I)]);const or=/<[^>]+id="([^"]+)[^>]+>/gi,ai=/\([^)]{1,4}\).{1,9}\d+\/\d+/i,ir=/<(h\d|[^>]+role="heading")[^>]*>(.*?)<\/?(h\d|br|div)/i,sr=/kapittel-\d+-ledd-\d+/,ar=/<button[^>]+>.*?<\/button>/g,rr=/►m\d+/i,ae=/<[^>]+>/g,lr=/<dt([^>]*class="([^"]+)")?[^>]*>(.*?)<\/dt><dd[^>]*>(.*?)<\/dd>/gis,cr=/<(\/?)(article|footer|section)/gi,dr=/(src|href)="([^"]+)"/gi,ur=/(<li[^>]*)>\s*<div([^>]*>)|<\/div>(<\/li>)/gi,fr=/(<li[^>]+data-name="([^"]+)[^>]+>)(\s*<(ul|ol|div)[^>]+>)/gis,pr=/(<[^>]+class="[^"]*\bnumberedLegalP\b[^>]+>\s*)(\d+\.)(.*?)(?=<\/?(ul|ol|div)|$)/gis,ri="https://lovdata.no/",mr={legacyid:{label:"Datokode",value:""},titleshort:{label:"Korttittel",value:""},title:{label:"Tittel",value:""},url:{label:"Url",value:""}},hr=(t,e)=>e?.querySelectorAll("button").forEach(n=>{f(n,"aria-checked",`${t.includes(n.value)||!1}`)}),gr=(t,e)=>{const n=li(e);return t.map(o=>vr(o,n)).filter(o=>!!o)},br=t=>{const e=t.slice(0,t.indexOf("</dl>")),n={...mr};for(const o of e.matchAll(lr)){const i=o[2].replace(/-/g,"").toLowerCase();n[i]={label:o[3],value:o[4]}}return n},li=t=>t.includes("<main")?(t.split(/<\/?main[^>]*>/)[1]||"").replace(cr,"<$1div").replace(ur,"$1$2$3").replace(dr,(e,n,o)=>`${n}="${o.includes(":")?"":ri}${o}" ${n==="href"?'rel="noopener noreferrer" target="_blank"':""}`).replace(pr,(e,n,o,i)=>`${n}<span class="data-originalId">${o}</span><div class="legalP" id="${lt("id",n)}-ledd-0">${i}</div>`).replace(fr,(e,n,o,i)=>`${n}<span class="data-originalId">${o}</span>${i}`).replace(or,(e,n,o,i)=>{const s=ci(e,n,o,i);return`${e}${s?`<button type="button" role="checkbox" aria-label="${s}" value="${n}"></button>`:""}`}):t,vr=(t,e)=>{const n=sr.test(t),o=t.split("-").map((r,c,l)=>c%2?yr(l.slice(0,c+1).join("-"),e,n):null).filter(r=>!!r);if(!o.length)return null;const i=o.filter(({url:r})=>r).pop()?.url||"",s=o.filter(r=>r.className==="section"&&ai.test(r.label)),a=o.slice(o.indexOf(s.pop()||o[0])).map(r=>r.label).join(", ");return{...o.slice(-1)[0],path:o,label:a,url:i}},yr=(t,e,n)=>{const o=e.lastIndexOf("<",e.indexOf(` id="${t}"`)),i=e.slice(o,e.indexOf(">",o)+1),s=lt("class",i),a=lt("data-lovdata-url",i),r=ci(i,t,o,e);return{id:t,className:s,html:_r(t,e),url:a?`${ri}${a}`:"",label:!n&&s==="section"&&r?.match(ai)?.[0]||r}},lt=(t,e)=>{const n=` ${t.toLowerCase()}="`,o=e.toLowerCase().indexOf(n),i=o+n.length;return o===-1?"":e.slice(i,e.indexOf('"',i))},_r=(t,e)=>{const n=e.lastIndexOf("<",e.indexOf(` id="${t}"`)),o=e.length;let i=n+1,s=0;for(;i&&i<o;)if(i=e.indexOf("<",i)+1,e[i]!=="/")s++;else if(--s<0)break;const a=e.indexOf(">",i)+1;return i?e.slice(n,a).replace(ar,""):""},ci=(t,e,n,o)=>wr[lt("class",t)]?.(t,e,n,o)||"",wr={numberedLegalP:t=>`nr. ${lt("data-numerator",t)}.`,section:(t,e,n,o)=>o.slice(n).match(ir)?.[2]?.replace(ae,"")?.replace(rr,"").trim()||"",legalArticle:(t,e,n,o)=>{const i=o.indexOf(">",o.indexOf("legalArticleValue",n));return o.slice(i+1,o.indexOf("</span>",i)).replace(ae,"").replace("Artikkel","artikkel")},legalP:(t,e)=>{const[n,o,i,s]=e.split("-").slice(-4);return`avsnitt ${(i==="nummer"?1:Number(s))+(n==="nummer"?1:0)}`},listArticle:(t,e,n,o)=>{const i=e.split("-"),s=` id="${i.slice(0,-2).join("-")}"`,a=o.lastIndexOf(s,n),r=o.slice(o.indexOf("<ol",a),n),c=lt("data-name",t)||"-",l=lt("type",r)||"-";let d="punkt";return l==="1"&&(d="tall"),l==="a"&&(d="bokstav"),l==="i"&&(d="romtertall"),`${d} ${c==="-"?i.pop():c.replace(ae,"")}`},marginIdArticle:(t,e,n,o)=>{const i=o.indexOf(">",o.indexOf("data-marginOriginalId",n));return`nr. ${o.slice(i+1,o.indexOf("</span>",i)).replace(ae,"")}`}},xr=(t,e,n=Number.POSITIVE_INFINITY)=>{const o=(n-1)/2,i=Math.max(Math.min(t-Math.floor(o),e-n+1),1),s=Math.min(Math.max(t+Math.ceil(o),n),e),a=Array.from({length:s+1-i},(r,c)=>c+i);return n>4&&i>1&&a.splice(0,2,1,0),n>3&&s<e&&a.splice(-2,2,0,e),a},Er=({current:t=1,total:e=10,show:n=7})=>({prev:t>1?t-1:0,next:t<e?t+1:0,pages:xr(t,e,n).map((o,i)=>({current:o===t&&"page",key:`key-${o}-${i}`,page:o}))});function L(t,e={}){const n=document.getElementById(e.id||"")||C("dialog");return f(n,"aria-busy",e.busy?"true":null),f(n,"class",Ma($.toast,e.className)),f(n,"data-closedby",e.closedby||null),f(n,"data-color",e.color||null),f(n,"data-icon",`${e.icon??""}`||null),f(n,"data-timeout",`${e.timeout??""}`||null),f(n,"id",e.id||`${Date.now()}`),f(n,"open",e.open===!1?null:""),n.innerHTML=t,n.addEventListener("animationend",Sr,{once:!0}),document.body.appendChild(n),n.id}function Sr({animationName:t,target:e}){t===$._toastClose&&e.remove()}L.success=(t,e)=>L(t,{color:"success",...e}),L.danger=(t,e)=>L(t,{color:"danger",...e}),L.info=(t,e)=>L(t,{color:"info",...e}),L.warning=(t,e)=>L(t,{color:"warning",...e}),L.neutral=(t,e)=>L(t,{color:"neutral",...e}),L.promise=async function(e,n){const{loading:o,success:i,error:s,...a}=n,r=L(o,{busy:!0,...a});try{const c=await e();return L.success(i,{id:r,busy:!1}),c}catch(c){throw L.danger(s,{id:r,busy:!1}),c}};const $r=$.breadcrumbs.split(" ")[0],di=D?document.getElementsByClassName($r):[];function Tr(){if(di)for(const t of di)t.querySelectorAll("a").forEach((e,n,{length:o})=>{f(e,"aria-current",n===o-1?"page":null)})}N(()=>[at(Tr,"class")]);const Cr=`:host(:not([hidden])) {
18
+ </dialog>`);const e=document.getElementById(F),n=()=>window.localStorage.setItem(F,"seen");e.addEventListener("close",n,{once:!0}),e.show()}function Ka(t){window._mtdsTracking?.enabled&&setTimeout(Ya,0,t)}function Ya({type:t,target:e}){const n=t==="click"?e?.closest?.(za):e;if(!(n instanceof Element)||n.closest('[data-analytics="ignore"]'))return;let o="click",i="Button",s=ti(n)||Za(n)||f(n,"data-tooltip")||"";if(t==="submit")i="Form",o="submit",s=s||document.title;else if(t==="toggle"){if(!n.matches("dialog:modal"))return;i="Dialog",o="open"}else if(t==="change"){const a=f(n,"type"),r=a==="checkbox"||a==="radio"?n.closest("fieldset"):null;i=n.closest(Jo)?"Chip":"Form",o="change",s=ti(r||n)||St(r?.querySelector("legend"))||St(n?.labels?.[0])}else if(f(n,"role")==="tab")i="Tab",o="navigate";else if(f(n,"popovertarget")){if(!Qa(n)?.matches(":popover-open"))return;i=n.closest(Va)?"HelpText":"Popover",o="open"}else if(n.nodeName.endsWith("SUMMARY")){if(!n.parentElement.open)return;i="Details",o="open"}else if(f(n,"data-command")==="toggle-app-expanded"){const a=Ja(n,"--mtds-tooltip-position")==="none";i="Sidebar",o=a?"expand":"minimize",s=a&&f(n,"data-tooltip")||St(n)}else if(n.closest(Ua))i="Breadcrumbs",o="navigate";else if(n.closest(Ga))i="Pagintation",o="navigate";else if(n.closest(qa))i="Card",o=n instanceof HTMLAnchorElement?"navigate":"click";else if(n.closest(Jo))i="Chip",o=n.hasAttribute("data-removable")?"remove":"click";else if(n.closest("th[aria-sort]"))i="Table",o="sort";else if(n instanceof HTMLAnchorElement)i="Link",o=n.protocol==="mailto:"?"email":"navigate",n.hasAttribute("download")?o="download":n.hash&&n.href.startsWith(location.href.split("#")[0])&&(o="anchor");else if(n.hasAttribute("aria-expanded")){if(f(n,"aria-expanded")!=="true")return;i="Expand",o="open"}Zo("event",{category:f(n,"data-analytics-category")??i,action:f(n,"data-analytics-action")??o,name:f(n,"data-analytics-name")??s})}const St=t=>t?.textContent?.trim()||"",ti=t=>t&&f(t,"aria-label")||"",Qa=t=>document.getElementById(f(t,"popovertarget")||""),Ja=(t,e)=>window.getComputedStyle(t).getPropertyValue(e)?.trim(),Za=t=>{const e=St(t),n=St(t.querySelector("h1,h2,h3,h4,h5,h6"));return e.startsWith(n)&&n||e.slice(0,100).trim()};N(()=>[T(document,Wa,Ka,I)]),typeof window<"u"&&window.CSSStyleSheet&&document.adoptedStyleSheets&&(()=>{const t="--mtds-app-expanded",e=new CSSStyleSheet,n=()=>!window.localStorage.getItem(t)?.includes("false");document.adoptedStyleSheets.push(e),window.mtdsToggleAppExpanded=o=>{try{const i=o??!n();e.replaceSync?.(`:root { ${t}: var(${t}--${i})}`),window.localStorage.setItem(t,i)}catch{}},window.mtdsToggleAppExpanded(n())})();const ei=$.app.split(" ")[0],tr=$.sticky.split(" ")[0],er='[data-command="toggle-app-expanded"]',Ne=`.${ei} > dialog,.${ei} dialog ~ main`,ni=D?document.getElementsByClassName(tr):[],oi=t=>{document.startViewTransition?document.startViewTransition(t):t()},ii=t=>oi(()=>window.mtdsToggleAppExpanded?.(t));function nr({target:t,defaultPrevented:e}){const n=t?.closest?.("a");if(n?.closest("dialog")&&n?.closest(Ne))return si();if(e||!(t instanceof HTMLButtonElement)||!t.matches(er))return;getComputedStyle(t).position==="sticky"?ii():oi(()=>{const i=document.querySelector(Ne);i?.setAttribute("data-closedby","any"),i?.showModal()})}function si(){document.querySelector(Ne)?.close()}let He=0,_t,X=0,Be=0,se=0,Fe=!1,Ue=0,rt=0;function or(){if(!ni?.length)return;const t=ni[0],e=window.scrollY,n=e<rt;rt=e,n!==_t&&(He=(t.parentElement?.getBoundingClientRect().top||0)+rt,_t=n,Be=t.offsetHeight,se=t.getBoundingClientRect().top+rt,Fe=t.offsetHeight<=window.innerHeight,Ue=window.innerHeight),!(X===-1&&Fe)&&(X!==-1&&(Fe||_t&&rt<=se)?(t.style.setProperty("--pos","sticky"),t.style.setProperty("--top","0px"),X=-1):X===-1&&!_t?(t.style.setProperty("--pos","relative"),t.style.setProperty("--top",`${Math.max(0,rt-He)}px`),X=0):X!==1&&!_t&&rt+Ue>=se+Be?(t.style.setProperty("--pos","sticky"),t.style.setProperty("--top",`${Ue-Be}px`),X=1):X===1&&_t&&(t.style.setProperty("--pos","relative"),t.style.setProperty("--top",`${se-He}px`),X=0))}N(()=>[T(document,"click",nr,I),T(window,"resize",Pa(si,100),I),T(window,"scroll",or,I)]);const ir=/<[^>]+id="([^"]+)[^>]+>/gi,ai=/\([^)]{1,4}\).{1,9}\d+\/\d+/i,sr=/<(h\d|[^>]+role="heading")[^>]*>(.*?)<\/?(h\d|br|div)/i,ar=/kapittel-\d+-ledd-\d+/,rr=/<button[^>]+>.*?<\/button>/g,lr=/►m\d+/i,ae=/<[^>]+>/g,cr=/<dt([^>]*class="([^"]+)")?[^>]*>(.*?)<\/dt><dd[^>]*>(.*?)<\/dd>/gis,dr=/<(\/?)(article|footer|section)/gi,ur=/(src|href)="([^"]+)"/gi,fr=/(<li[^>]*)>\s*<div([^>]*>)|<\/div>(<\/li>)/gi,pr=/(<li[^>]+data-name="([^"]+)[^>]+>)(\s*<(ul|ol|div)[^>]+>)/gis,mr=/(<[^>]+class="[^"]*\bnumberedLegalP\b[^>]+>\s*)(\d+\.)(.*?)(?=<\/?(ul|ol|div)|$)/gis,ri="https://lovdata.no/",hr={legacyid:{label:"Datokode",value:""},titleshort:{label:"Korttittel",value:""},title:{label:"Tittel",value:""},url:{label:"Url",value:""}},gr=(t,e)=>e?.querySelectorAll("button").forEach(n=>{f(n,"aria-checked",`${t.includes(n.value)||!1}`)}),vr=(t,e)=>{const n=li(e);return t.map(o=>yr(o,n)).filter(o=>!!o)},br=t=>{const e=t.slice(0,t.indexOf("</dl>")),n={...hr};for(const o of e.matchAll(cr)){const i=o[2].replace(/-/g,"").toLowerCase();n[i]={label:o[3],value:o[4]}}return n},li=t=>t.includes("<main")?(t.split(/<\/?main[^>]*>/)[1]||"").replace(dr,"<$1div").replace(fr,"$1$2$3").replace(ur,(e,n,o)=>`${n}="${o.includes(":")?"":ri}${o}" ${n==="href"?'rel="noopener noreferrer" target="_blank"':""}`).replace(mr,(e,n,o,i)=>`${n}<span class="data-originalId">${o}</span><div class="legalP" id="${lt("id",n)}-ledd-0">${i}</div>`).replace(pr,(e,n,o,i)=>`${n}<span class="data-originalId">${o}</span>${i}`).replace(ir,(e,n,o,i)=>{const s=ci(e,n,o,i);return`${e}${s?`<button type="button" role="checkbox" aria-label="${s}" value="${n}"></button>`:""}`}):t,yr=(t,e)=>{const n=ar.test(t),o=t.split("-").map((r,c,l)=>c%2?_r(l.slice(0,c+1).join("-"),e,n):null).filter(r=>!!r);if(!o.length)return null;const i=o.filter(({url:r})=>r).pop()?.url||"",s=o.filter(r=>r.className==="section"&&ai.test(r.label)),a=o.slice(o.indexOf(s.pop()||o[0])).map(r=>r.label).join(", ");return{...o.slice(-1)[0],path:o,label:a,url:i}},_r=(t,e,n)=>{const o=e.lastIndexOf("<",e.indexOf(` id="${t}"`)),i=e.slice(o,e.indexOf(">",o)+1),s=lt("class",i),a=lt("data-lovdata-url",i),r=ci(i,t,o,e);return{id:t,className:s,html:wr(t,e),url:a?`${ri}${a}`:"",label:!n&&s==="section"&&r?.match(ai)?.[0]||r}},lt=(t,e)=>{const n=` ${t.toLowerCase()}="`,o=e.toLowerCase().indexOf(n),i=o+n.length;return o===-1?"":e.slice(i,e.indexOf('"',i))},wr=(t,e)=>{const n=e.lastIndexOf("<",e.indexOf(` id="${t}"`)),o=e.length;let i=n+1,s=0;for(;i&&i<o;)if(i=e.indexOf("<",i)+1,e[i]!=="/")s++;else if(--s<0)break;const a=e.indexOf(">",i)+1;return i?e.slice(n,a).replace(rr,""):""},ci=(t,e,n,o)=>xr[lt("class",t)]?.(t,e,n,o)||"",xr={numberedLegalP:t=>`nr. ${lt("data-numerator",t)}.`,section:(t,e,n,o)=>o.slice(n).match(sr)?.[2]?.replace(ae,"")?.replace(lr,"").trim()||"",legalArticle:(t,e,n,o)=>{const i=o.indexOf(">",o.indexOf("legalArticleValue",n));return o.slice(i+1,o.indexOf("</span>",i)).replace(ae,"").replace("Artikkel","artikkel")},legalP:(t,e)=>{const[n,o,i,s]=e.split("-").slice(-4);return`avsnitt ${(i==="nummer"?1:Number(s))+(n==="nummer"?1:0)}`},listArticle:(t,e,n,o)=>{const i=e.split("-"),s=` id="${i.slice(0,-2).join("-")}"`,a=o.lastIndexOf(s,n),r=o.slice(o.indexOf("<ol",a),n),c=lt("data-name",t)||"-",l=lt("type",r)||"-";let d="punkt";return l==="1"&&(d="tall"),l==="a"&&(d="bokstav"),l==="i"&&(d="romtertall"),`${d} ${c==="-"?i.pop():c.replace(ae,"")}`},marginIdArticle:(t,e,n,o)=>{const i=o.indexOf(">",o.indexOf("data-marginOriginalId",n));return`nr. ${o.slice(i+1,o.indexOf("</span>",i)).replace(ae,"")}`}},Er=(t,e,n=Number.POSITIVE_INFINITY)=>{const o=(n-1)/2,i=Math.max(Math.min(t-Math.floor(o),e-n+1),1),s=Math.min(Math.max(t+Math.ceil(o),n),e),a=Array.from({length:s+1-i},(r,c)=>c+i);return n>4&&i>1&&a.splice(0,2,1,0),n>3&&s<e&&a.splice(-2,2,0,e),a},Sr=({current:t=1,total:e=10,show:n=7})=>({prev:t>1?t-1:0,next:t<e?t+1:0,pages:Er(t,e,n).map((o,i)=>({current:o===t&&"page",key:`key-${o}-${i}`,page:o}))});function A(t,e={}){const n=document.getElementById(e.id||"")||C("dialog");return f(n,"aria-busy",e.busy?"true":null),f(n,"class",Ma($.toast,e.className)),f(n,"data-closedby",e.closedby||null),f(n,"data-color",e.color||null),f(n,"data-icon",`${e.icon??""}`||null),f(n,"data-timeout",`${e.timeout??""}`||null),f(n,"id",e.id||`${Date.now()}`),f(n,"open",e.open===!1?null:""),n.innerHTML=t,n.addEventListener("animationend",$r,{once:!0}),document.body.appendChild(n),n.id}function $r({animationName:t,target:e}){t===$._toastClose&&e.remove()}A.success=(t,e)=>A(t,{color:"success",...e}),A.danger=(t,e)=>A(t,{color:"danger",...e}),A.info=(t,e)=>A(t,{color:"info",...e}),A.warning=(t,e)=>A(t,{color:"warning",...e}),A.neutral=(t,e)=>A(t,{color:"neutral",...e}),A.promise=async function(e,n){const{loading:o,success:i,error:s,...a}=n,r=A(o,{busy:!0,...a});try{const c=await e();return A.success(i,{id:r,busy:!1}),c}catch(c){throw A.danger(s,{id:r,busy:!1}),c}};const Tr=$.breadcrumbs.split(" ")[0],di=D?document.getElementsByClassName(Tr):[];function Cr(){if(di)for(const t of di)t.querySelectorAll("a").forEach((e,n,{length:o})=>{f(e,"aria-current",n===o-1?"page":null)})}N(()=>[Z(Cr,"class")]);const kr=`/* NOTE: Using --mtds- not --mtds- since we're inside shadow dom */
19
+ :host(:not([hidden])) {
19
20
  display: grid;
20
- gap: var(--ds-size-6);
21
+ gap: var(--mtds-6);
21
22
  }
22
23
 
23
24
  [data-event-proxy] {
@@ -48,7 +49,7 @@ var mtds=function(k){"use strict";var rs=Object.defineProperty,nn=Object.getOwnP
48
49
  }
49
50
 
50
51
  .axis {
51
- font-size: var(--ds-body-sm-font-size);
52
+ font-size: var(--mtds-body-sm-font-size);
52
53
  display: grid;
53
54
  gap: var(--mtdsc-chart-axis-gap);
54
55
  grid-template-columns: fit-content(7em) 1fr;
@@ -229,7 +230,7 @@ var mtds=function(k){"use strict";var rs=Object.defineProperty,nn=Object.getOwnP
229
230
  align-self: end;
230
231
  background: var(--color);
231
232
  border: var(--mtdsc-chart-border-color) solid var(--mtdsc-chart-border-width);
232
- border-radius: var(--ds-border-radius-sm) var(--ds-border-radius-sm) 0 0;
233
+ border-radius: var(--mtds-border-radius-sm) var(--mtds-border-radius-sm) 0 0;
233
234
  box-sizing: border-box;
234
235
  height: var(--size);
235
236
  width: 100%;
@@ -238,12 +239,12 @@ var mtds=function(k){"use strict";var rs=Object.defineProperty,nn=Object.getOwnP
238
239
  .linePoint:focus-visible {
239
240
  box-shadow: var(--dsc-focus-boxShadow);
240
241
  outline: var(--dsc-focus-outline);
241
- outline-offset: var(--ds-border-width-focus);
242
+ outline-offset: var(--mtds-border-width-focus);
242
243
  z-index: 2; /* z-index to place on top when outlined */
243
244
  }
244
245
 
245
246
  :host([data-variant|="bar"]) .bar {
246
- border-radius: 0 var(--ds-border-radius-sm) var(--ds-border-radius-sm) 0;
247
+ border-radius: 0 var(--mtds-border-radius-sm) var(--mtds-border-radius-sm) 0;
247
248
  width: var(--size);
248
249
  height: 100%;
249
250
  align-self: start;
@@ -321,9 +322,9 @@ var mtds=function(k){"use strict";var rs=Object.defineProperty,nn=Object.getOwnP
321
322
  }
322
323
 
323
324
  .linePoint {
324
- --size: var(--ds-size-2);
325
+ --size: var(--mtds-2);
325
326
  background: var(--color);
326
- border-radius: var(--ds-border-radius-full);
327
+ border-radius: var(--mtds-border-radius-full);
327
328
  border: var(--mtdsc-chart-border-width) solid var(--mtdsc-chart-border-color);
328
329
  box-sizing: border-box;
329
330
  height: var(--size);
@@ -342,7 +343,7 @@ var mtds=function(k){"use strict";var rs=Object.defineProperty,nn=Object.getOwnP
342
343
  }
343
344
  .linePoint::before {
344
345
  content: "";
345
- inset: calc(var(--ds-size-3) * -1); /* Increase click surface */
346
+ inset: calc(var(--mtds-3) * -1); /* Increase click surface */
346
347
  position: absolute;
347
348
  }
348
349
 
@@ -357,24 +358,24 @@ var mtds=function(k){"use strict";var rs=Object.defineProperty,nn=Object.getOwnP
357
358
  align-items: center;
358
359
  display: flex;
359
360
  flex-wrap: wrap;
360
- gap: var(--ds-size-2) var(--ds-size-5);
361
+ gap: var(--mtds-2) var(--mtds-5);
361
362
  justify-content: center;
362
363
  }
363
364
  .legend {
364
365
  display: flex;
365
366
  align-items: center;
366
- gap: var(--ds-size-2);
367
+ gap: var(--mtds-2);
367
368
  }
368
369
  .legend::before {
369
370
  background: var(--color);
370
- border-radius: var(--ds-border-radius-full);
371
+ border-radius: var(--mtds-border-radius-full);
371
372
  border: var(--mtdsc-chart-border-color) solid var(--mtdsc-chart-border-width);
372
373
  box-sizing: border-box;
373
374
  content: "";
374
375
  display: inline-block;
375
- height: var(--ds-size-5);
376
+ height: var(--mtds-5);
376
377
  vertical-align: middle;
377
- width: var(--ds-size-5);
378
+ width: var(--mtds-5);
378
379
  }
379
380
 
380
381
  :host([data-legend="false"]) .legends,
@@ -382,17 +383,17 @@ var mtds=function(k){"use strict";var rs=Object.defineProperty,nn=Object.getOwnP
382
383
  :host([data-legend="none"]) .legends {
383
384
  display: none;
384
385
  }
385
- `,kr=[.1,.2,.25,.5,1];function Lr(t,{aspect:e,type:n}){const i=n==="stacked",s=t[0].reduce((h,g,_)=>{const v=t.map(y=>y[_].number),b=v.reduce((y,w)=>y+w,0);return Math.max(h,...i?[b]:v)},0),a=s/10,r=10**`${Math.round(a)}`.length,c=a/r,l=(kr.find(h=>h>c)||1)*r,d=Math.ceil(s/l)*l,u=C("div",{"aria-label":t[0][0].value||null,class:"axis",role:"figure",style:`${e?`--mtdsc-chart-aspect: ${e};`:""} --bars: ${t[0]?.length-1}; --groups: ${t.length-1}; --total: ${d}`}),p=u.appendChild(C("div",{class:"axisSteps"})),m=u.appendChild(C("div",{class:"axisGroups"}));return Array.from({length:d/l+1},(h,g)=>Ar(l*g)).reverse().map(h=>p.append(C("div",{class:"axisStep","data-label":h}))),{total:d,groups:m,axis:u}}const Ar=new Intl.NumberFormat().format;function Ir(t){return t[0].slice(1).map(({value:e,event:n},o)=>{const i=C("div",{class:"axisGroup","data-label":e}),s=i.appendChild(C("div",{class:"axisGroupContent"}));return t.slice(1).map(a=>a[o+1]).map(({tooltip:a,style:r,number:c})=>s.appendChild(C("div",{"aria-label":a,"data-event":n,class:"bar",role:"img",style:`${r}; --value: ${c}`,tabindex:"0"}))),i})}function Or(t,{total:e,type:n,variant:o}){const i=Number.parseFloat(n||"0")||0,s=C("div",{class:"axisGroup"});return t.slice(1).forEach(([,...a])=>{const r=C("div",{class:"lineContainer",role:"list",style:a[0].style}),c=Rr(a.map(({number:u},p,{length:m})=>[100/(m-1)*p,100-u/e*100]),i/100),l=document.createElementNS("http://www.w3.org/2000/svg","svg");f(l,"aria-hidden","true"),f(l,"preserveAspectRatio","none"),f(l,"viewBox","0 0 100 100");const d=document.createElementNS("http://www.w3.org/2000/svg","path");if(f(d,"class","line"),f(d,"d",c),f(d,"fill","none"),f(d,"stroke","currentColor"),o==="area"){const u=d.cloneNode(!0);f(u,"d",`M-100,100 L${c.slice(1)}L200,100`),f(u,"class","lineShade"),l.append(u)}a.forEach(({number:u,tooltip:p,event:m})=>{const h=C("div",{role:"listitem"});h.appendChild(C("div",{"aria-label":p,"data-event":m,tabindex:"0",class:"linePoint",role:"img",style:`--value: ${u}`})),r.append(h)}),r.appendChild(l).append(d),s.append(r)}),s}const Rr=(t,e)=>t.map(([n,o],i,s)=>i?Mr(i,s,e):`M${n},${o}`).join(" "),ui=([t,e],[n,o])=>[t+n,e+o],fi=([t,e],[n,o])=>[t-n,e-o],pi=(t,[e,n])=>[t*e,t*n],Mr=(t,e,n)=>{const o=e[t-1],i=e[t],[s,a]=ui(o,pi(n,fi(i,e[t-2]||o))),[r,c]=ui(i,pi(n,fi(o,e[t+1]||i)));return`C ${s},${a} ${r},${c} ${i[0]},${i[1]}`};function Pr(t,{aspect:e,variant:n}){const o=document.createElementNS("http://www.w3.org/2000/svg","svg");e&&o.style.setProperty("--mtdsc-chart-aspect",e),f(o,"class","pie"),f(o,"viewBox","0 0 100 100");let i=0;const s=50,a=n==="doughnut"?25:0,r=t.slice(1).reduce((c,[,l])=>c+l.number,0);return t.slice(1).forEach(([,{tooltip:c,number:l,event:d,style:u}])=>{if(!l)return;const p=document.createElementNS("http://www.w3.org/2000/svg","path"),m=i/r;i+=l;const h=Math.min(i/r,.99999),g=h-m>.5?1:0,_=2*Math.PI*(m-.25),v=2*Math.PI*(h-.25),b=Math.cos(_),y=Math.sin(_),w=Math.cos(v),E=Math.sin(v),R=`M ${s+a*b} ${s+a*y} L ${s+s*b} ${s+s*y} A ${s} ${s} 0 ${g} 1 ${s+s*w} ${s+s*E} L ${s+a*w} ${s+a*E} A ${a} ${a} 0 ${g} 0 ${s+a*b} ${s+a*y}`;f(p,"aria-label",c),f(p,"data-event",d),f(p,"style",u),f(p,"d",R),f(p,"role","img"),f(p,"tabindex","0"),o.appendChild(p)}),o}const mi="click,keydown,mousemove,mouseout",hi="mtds-chart-tooltip",Z=D?document.getElementById(hi)||C("div",{"aria-hidden":"true",class:$._tooltip,hidden:"",id:hi}):null;class Dr extends Ba{_observer;_resize;static get observedAttributes(){return["data-variant","data-aspect"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this._resize=new ResizeObserver(this.handleResize.bind(this)),this._resize.observe(this),this._observer=new MutationObserver(()=>this.attributeChangedCallback()),this._observer.observe(this,{attributeFilter:["data-tooltip"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),this.attributeChangedCallback(),T(this,mi,this)}disconnectedCallback(){Z&&(Z.hidden=!0),Qo(this,mi,this),this._resize?.disconnect(),this._observer?.disconnect(),this._observer=this._resize=void 0}attributeChangedCallback(){Array.from(this.shadowRoot?.children||[]).map(d=>d.remove());const[e,n]=(f(this,"data-variant")||"column").split("-"),o=f(this,"data-aspect")||void 0,i=Br(this.querySelector("table")),s=C("style",{},Cr),a=C("div",{"aria-hidden":"hidden",class:"legends",role:"group"});i.slice(1).forEach(([{value:d,style:u}])=>{a.appendChild(C("div",{class:"legend",style:u},d))});const{axis:r,groups:c,total:l}=Lr(i,{aspect:o,type:n});(e==="column"||e==="bar")&&c.append(...Ir(i)),(e==="line"||e==="area")&&c.append(Or(i,{total:l,variant:e,type:n})),(e==="doughnut"||e==="pie")&&this.shadowRoot?.append(Pr(i,{aspect:o,variant:e})),this.shadowRoot?.append(r,a,s)}handleEvent(e){e.type==="click"||e.type==="keydown"?Nr(e,this):Hr(e)}handleResize(){const e=this.shadowRoot?.firstElementChild,n=e?.firstElementChild;e?.classList.toggle("axisStepsYHalf",(n?.offsetHeight||0)<400),e?.classList.toggle("axisStepsXHalf",(n?.offsetWidth||0)<500)}}function Nr(t,e){if(t instanceof KeyboardEvent&&t.key!=="Enter")return;const n=t.composedPath()[0],o=e.querySelector("table"),[i,s]=n instanceof Element&&f(n,"data-event")?.split("-").map(Number)||[];o?.rows[i]?.cells[s]?.querySelector("a,button")?.click?.()}let gi="";function Hr(t){if(!Z)return;Z?.isConnected||document.body.append(Z);const e=t.composedPath()[0],n=e instanceof Element&&e.getAttribute("aria-label")||"";n&&(Z.style.transform=`translate(${t.pageX}px, ${t.pageY}px)`),n!==gi&&(n&&(Z.textContent=n),gi=n,Z.hidden=!n)}const $t=t=>t?.textContent?.trim()||"",Br=t=>Array.from(t?.rows||[],(e,n)=>Array.from(e.cells,(o,i)=>{const s=$t(e.cells[0]),a=$t(t?.rows[0].cells[i]),r=`${s}: ${$t(o)}${a?` (${a})`:""}`;return{number:i&&n&&Number.parseFloat($t(o))||0,event:o.querySelector("a,button")&&`${n}-${i}`,style:`--color: var(--mtdsc-chart-color-${n}, var(--mtdsc-chart-color-base))`,value:$t(o),tooltip:f(o,"data-tooltip")||r}}));D&&!window.customElements.get("mtds-chart")&&window.customElements.define("mtds-chart",Dr);const Fr=$.dialog.split(" ")[0],bi=D?document.getElementsByClassName(Fr):[];function Ur(){for(const t of bi)t.isConnected&&t.showModal&&t.close&&(t.matches('[open]:not([data-modal="false"]):not(:modal)')?(f(t,"open",null),t.showModal()):t.matches(":modal:not([open])")&&(f(t,"open",""),t.close()))}let qe=!1;const qr=(t,{clientX:e=0,clientY:n=0})=>{const{top:o,right:i,bottom:s,left:a}=t.getBoundingClientRect();return o<=n&&n<=s&&a<=e&&e<=i};function Vr(t){const e=t.target?.closest?.("dialog");qe=!!e&&qr(e,t)}function zr({target:t}){for(const e of bi)e.open&&(e!==t&&e.contains(t)?t?.closest?.('[data-command="close"]'):!qe&&f(e,"data-closedby")==="any")&&e.close();qe=!1}N(()=>[T(document,"click",zr,I),T(document,"pointerdown",Vr,I),at(Ur,"open")]);function Gr(t){if(t.animationName!==$._errorsummary)return;const e=t.target?.firstElementChild;e instanceof HTMLHeadingElement&&(f(e,"tabindex","-1"),e.focus())}N(()=>[T(document,"animationend",Gr,I)]);var Wr=Object.defineProperty,vi=Object.getOwnPropertySymbols,Xr=Object.prototype.hasOwnProperty,jr=Object.prototype.propertyIsEnumerable,yi=(t,e,n)=>e in t?Wr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Kr=(t,e)=>{for(var n in e||(e={}))Xr.call(e,n)&&yi(t,n,e[n]);if(vi)for(var n of vi(e))jr.call(e,n)&&yi(t,n,e[n]);return t},Tt=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",re=Tt&&/android/i.test(navigator.userAgent),Ve=Tt&&/iPad|iPhone|iPod/.test(navigator.userAgent),_i;Tt&&/^Mac/i.test(((_i=navigator.userAgentData)==null?void 0:_i.platform)||navigator.platform);var Yr=`${re?"data":"aria"}-labelledby`,Qr=":host(:not([hidden])) { display: block }",Jr="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",wi=typeof HTMLElement>"u"?class{}:HTMLElement;function S(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var xi=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Ct=(t,...e)=>xi("add",t,e),le=(t,...e)=>xi("remove",t,e),Zr=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(We("slot"),We("style",e)),ce=new WeakMap,ze=(t,e)=>{if(e===void 0)return ce.get(t);try{ce.get(t).disconnect(),ce.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),ce.set(t,n)}},Ei=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},tl=0,Ge=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++tl).toString(32)}`),t.id):"",We=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},Si={define:(t,e)=>!Tt||window.customElements.get(t)||window.customElements.define(t,e)},ct,el=0,$i=t=>{ct||(ct=We("div"),ct.style.cssText="position:fixed;overflow:hidden;width:1px;white-space:nowrap",S(ct,"aria-live","assertive")),ct.isConnected||document.body.append(ct),t&&(ct.textContent=`${t}${el++%2?" ":""}`)},nl=(t,e,n="")=>{var o,i;const s={bubbles:!0,composed:!0,data:e,inputType:n},a=HTMLInputElement.prototype;t.dispatchEvent(new InputEvent("beforeinput",s)),(i=(o=Object.getOwnPropertyDescriptor(a,"value"))==null?void 0:o.set)==null||i.call(t,e),t.dispatchEvent(new InputEvent("input",s)),t.dispatchEvent(new Event("change",{bubbles:!0}))},Xe=!1,je=t=>(t?.type==="mouseup"&&(Xe=!1),t?.type==="mousedown"&&(Xe=!0,Ct(document,"mouseup",je,{once:!0})),Xe),Ke="disabled",kt="selected",ol=class extends wi{static get observedAttributes(){return[Ke,kt]}connectedCallback(){Ve||(this.tabIndex=-1),this.hasAttribute("role")||S(this,"role","option"),this.attributeChangedCallback()}attributeChangedCallback(){S(this,"aria-disabled",`${this.disabled}`),S(this,"aria-selected",`${this.selected}`)}get defaultSelected(){return this[kt]}set defaultSelected(t){this[kt]=t}get disabled(){return S(this,Ke)!==null}set disabled(t){S(this,Ke,t?"":null)}get form(){return this.closest("form")}get index(){var t;return[...((t=this.parentElement)==null?void 0:t.options)||[this]].indexOf(this)}get label(){var t;return(t=S(this,"label"))!=null?t:this.text}set label(t){S(this,"label",t)}get selected(){return S(this,kt)!==null}set selected(t){S(this,kt,t?"":null)}get text(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}set text(t){this.textContent=t}get value(){var t;return(t=S(this,"value"))!=null?t:this.text}set value(t){S(this,"value",t)}};Si.define("u-option",ol);var il=`${Qr}
386
+ `,Ar=[.1,.2,.25,.5,1];function Lr(t,{aspect:e,type:n}){const i=n==="stacked",s=t[0].reduce((h,g,_)=>{const b=t.map(y=>y[_].number),v=b.reduce((y,w)=>y+w,0);return Math.max(h,...i?[v]:b)},0),a=s/10,r=10**`${Math.round(a)}`.length,c=a/r,l=(Ar.find(h=>h>c)||1)*r,d=Math.ceil(s/l)*l,u=C("div",{"aria-label":t[0][0].value||null,class:"axis",role:"figure",style:`${e?`--mtdsc-chart-aspect: ${e};`:""} --bars: ${t[0]?.length-1}; --groups: ${t.length-1}; --total: ${d}`}),p=u.appendChild(C("div",{class:"axisSteps"})),m=u.appendChild(C("div",{class:"axisGroups"}));return Array.from({length:d/l+1},(h,g)=>Ir(l*g)).reverse().map(h=>p.append(C("div",{class:"axisStep","data-label":h}))),{total:d,groups:m,axis:u}}const Ir=new Intl.NumberFormat().format;function Or(t){return t[0].slice(1).map(({value:e,event:n},o)=>{const i=C("div",{class:"axisGroup","data-label":e}),s=i.appendChild(C("div",{class:"axisGroupContent"}));return t.slice(1).map(a=>a[o+1]).map(({tooltip:a,style:r,number:c})=>s.appendChild(C("div",{"aria-label":a,"data-event":n,class:"bar",role:"img",style:`${r}; --value: ${c}`,tabindex:"0"}))),i})}function Rr(t,{total:e,type:n,variant:o}){const i=Number.parseFloat(n||"0")||0,s=C("div",{class:"axisGroup"});return t.slice(1).forEach(([,...a])=>{const r=C("div",{class:"lineContainer",role:"list",style:a[0].style}),c=Mr(a.map(({number:u},p,{length:m})=>[100/(m-1)*p,100-u/e*100]),i/100),l=document.createElementNS("http://www.w3.org/2000/svg","svg");f(l,"aria-hidden","true"),f(l,"preserveAspectRatio","none"),f(l,"viewBox","0 0 100 100");const d=document.createElementNS("http://www.w3.org/2000/svg","path");if(f(d,"class","line"),f(d,"d",c),f(d,"fill","none"),f(d,"stroke","currentColor"),o==="area"){const u=d.cloneNode(!0);f(u,"d",`M-100,100 L${c.slice(1)}L200,100`),f(u,"class","lineShade"),l.append(u)}a.forEach(({number:u,tooltip:p,event:m})=>{const h=C("div",{role:"listitem"});h.appendChild(C("div",{"aria-label":p,"data-event":m,tabindex:"0",class:"linePoint",role:"img",style:`--value: ${u}`})),r.append(h)}),r.appendChild(l).append(d),s.append(r)}),s}const Mr=(t,e)=>t.map(([n,o],i,s)=>i?Pr(i,s,e):`M${n},${o}`).join(" "),ui=([t,e],[n,o])=>[t+n,e+o],fi=([t,e],[n,o])=>[t-n,e-o],pi=(t,[e,n])=>[t*e,t*n],Pr=(t,e,n)=>{const o=e[t-1],i=e[t],[s,a]=ui(o,pi(n,fi(i,e[t-2]||o))),[r,c]=ui(i,pi(n,fi(o,e[t+1]||i)));return`C ${s},${a} ${r},${c} ${i[0]},${i[1]}`};function Dr(t,{aspect:e,variant:n}){const o=document.createElementNS("http://www.w3.org/2000/svg","svg");e&&o.style.setProperty("--mtdsc-chart-aspect",e),f(o,"class","pie"),f(o,"viewBox","0 0 100 100");let i=0;const s=50,a=n==="doughnut"?25:0,r=t.slice(1).reduce((c,[,l])=>c+l.number,0);return t.slice(1).forEach(([,{tooltip:c,number:l,event:d,style:u}])=>{if(!l)return;const p=document.createElementNS("http://www.w3.org/2000/svg","path"),m=i/r;i+=l;const h=Math.min(i/r,.99999),g=h-m>.5?1:0,_=2*Math.PI*(m-.25),b=2*Math.PI*(h-.25),v=Math.cos(_),y=Math.sin(_),w=Math.cos(b),E=Math.sin(b),R=`M ${s+a*v} ${s+a*y} L ${s+s*v} ${s+s*y} A ${s} ${s} 0 ${g} 1 ${s+s*w} ${s+s*E} L ${s+a*w} ${s+a*E} A ${a} ${a} 0 ${g} 0 ${s+a*v} ${s+a*y}`;f(p,"aria-label",c),f(p,"data-event",d),f(p,"style",u),f(p,"d",R),f(p,"role","img"),f(p,"tabindex","0"),o.appendChild(p)}),o}const mi="click,keydown,mousemove,mouseout",hi="mtds-chart-tooltip",tt=D?document.getElementById(hi)||C("div",{"aria-hidden":"true",class:$._tooltip,hidden:"",id:hi}):null;class Nr extends Fa{#t;#e;static get observedAttributes(){return["data-variant","data-aspect"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.#e=Ba(()=>this.handleResize(),this),this.#t=Z(()=>this.attributeChangedCallback(),{attr:"data-tooltip",root:this}),this.attributeChangedCallback(),T(this,mi,this)}disconnectedCallback(){tt&&(tt.hidden=!0),Qo(this,mi,this),this.#e?.(),this.#t?.(),this.#t=this.#e=void 0}attributeChangedCallback(){Array.from(this.shadowRoot?.children||[]).map(d=>d.remove());const[e,n]=(f(this,"data-variant")||"column").split("-"),o=f(this,"data-aspect")||void 0,i=Fr(this.querySelector("table")),s=C("style",{},kr),a=C("div",{"aria-hidden":"hidden",class:"legends",role:"group"});i.slice(1).forEach(([{value:d,style:u}])=>{a.appendChild(C("div",{class:"legend",style:u},d))});const{axis:r,groups:c,total:l}=Lr(i,{aspect:o,type:n});(e==="column"||e==="bar")&&c.append(...Or(i)),(e==="line"||e==="area")&&c.append(Rr(i,{total:l,variant:e,type:n})),(e==="doughnut"||e==="pie")&&this.shadowRoot?.append(Dr(i,{aspect:o,variant:e})),this.shadowRoot?.append(r,a,s)}handleEvent(e){e.type==="click"||e.type==="keydown"?Hr(e,this):Br(e)}handleResize(){const e=this.shadowRoot?.firstElementChild,n=e?.firstElementChild;e?.classList.toggle("axisStepsYHalf",(n?.offsetHeight||0)<400),e?.classList.toggle("axisStepsXHalf",(n?.offsetWidth||0)<500)}}function Hr(t,e){if(t instanceof KeyboardEvent&&t.key!=="Enter")return;const n=t.composedPath()[0],o=e.querySelector("table"),[i,s]=n instanceof Element&&f(n,"data-event")?.split("-").map(Number)||[];o?.rows[i]?.cells[s]?.querySelector("a,button")?.click?.()}let gi="";function Br(t){if(!tt)return;tt?.isConnected||document.body.append(tt);const e=t.composedPath()[0],n=e instanceof Element&&e.getAttribute("aria-label")||"";n&&(tt.style.transform=`translate(${t.pageX}px, ${t.pageY}px)`),n!==gi&&(n&&(tt.textContent=n),gi=n,tt.hidden=!n)}const $t=t=>t?.textContent?.trim()||"",Fr=t=>Array.from(t?.rows||[],(e,n)=>Array.from(e.cells,(o,i)=>{const s=$t(e.cells[0]),a=$t(t?.rows[0].cells[i]),r=`${s}: ${$t(o)}${a?` (${a})`:""}`;return{number:i&&n&&Number.parseFloat($t(o))||0,event:o.querySelector("a,button")&&`${n}-${i}`,style:`--color: var(--mtdsc-chart-color-${n}, var(--mtdsc-chart-color-base))`,value:$t(o),tooltip:f(o,"data-tooltip")||r}}));D&&!window.customElements.get("mtds-chart")&&window.customElements.define("mtds-chart",Nr);const Ur=$.dialog.split(" ")[0],vi=D?document.getElementsByClassName(Ur):[];function qr(){for(const t of vi)t.isConnected&&t.showModal&&t.close&&(t.matches('[open]:not([data-modal="false"]):not(:modal)')?(f(t,"open",null),t.showModal()):t.matches(":modal:not([open])")&&(f(t,"open",""),t.close()))}let qe=!1;const Vr=(t,{clientX:e=0,clientY:n=0})=>{const{top:o,right:i,bottom:s,left:a}=t.getBoundingClientRect();return o<=n&&n<=s&&a<=e&&e<=i};function Gr(t){const e=t.target?.closest?.("dialog");qe=!!e&&Vr(e,t)}function zr({target:t}){for(const e of vi)e.open&&(e!==t&&e.contains(t)?t?.closest?.('[data-command="close"]'):!qe&&f(e,"data-closedby")==="any")&&e.close();qe=!1}N(()=>[T(document,"click",zr,I),T(document,"pointerdown",Gr,I),Z(qr,"open")]);function Wr(t){if(t.animationName!==$._errorsummary)return;const e=t.target?.firstElementChild;e instanceof HTMLHeadingElement&&(f(e,"tabindex","-1"),e.focus())}N(()=>[T(document,"animationend",Wr,I)]);var Xr=Object.defineProperty,bi=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable,yi=(t,e,n)=>e in t?Xr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Yr=(t,e)=>{for(var n in e||(e={}))jr.call(e,n)&&yi(t,n,e[n]);if(bi)for(var n of bi(e))Kr.call(e,n)&&yi(t,n,e[n]);return t},Tt=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",re=Tt&&/android/i.test(navigator.userAgent),Ve=Tt&&/iPad|iPhone|iPod/.test(navigator.userAgent),_i;Tt&&/^Mac/i.test(((_i=navigator.userAgentData)==null?void 0:_i.platform)||navigator.platform);var Qr=`${re?"data":"aria"}-labelledby`,Jr=":host(:not([hidden])) { display: block }",Zr="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",wi=typeof HTMLElement>"u"?class{}:HTMLElement;function S(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var xi=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Ct=(t,...e)=>xi("add",t,e),le=(t,...e)=>xi("remove",t,e),tl=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(We("slot"),We("style",e)),ce=new WeakMap,Ge=(t,e)=>{if(e===void 0)return ce.get(t);try{ce.get(t).disconnect(),ce.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),ce.set(t,n)}},Ei=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},el=0,ze=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++el).toString(32)}`),t.id):"",We=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},Si={define:(t,e)=>!Tt||window.customElements.get(t)||window.customElements.define(t,e)},ct,nl=0,$i=t=>{ct||(ct=We("div"),ct.style.cssText="position:fixed;overflow:hidden;width:1px;white-space:nowrap",S(ct,"aria-live","assertive")),ct.isConnected||document.body.append(ct),t&&(ct.textContent=`${t}${nl++%2?" ":""}`)},ol=(t,e,n="")=>{var o,i;const s={bubbles:!0,composed:!0,data:e,inputType:n},a=HTMLInputElement.prototype;t.dispatchEvent(new InputEvent("beforeinput",s)),(i=(o=Object.getOwnPropertyDescriptor(a,"value"))==null?void 0:o.set)==null||i.call(t,e),t.dispatchEvent(new InputEvent("input",s)),t.dispatchEvent(new Event("change",{bubbles:!0}))},Xe=!1,je=t=>(t?.type==="mouseup"&&(Xe=!1),t?.type==="mousedown"&&(Xe=!0,Ct(document,"mouseup",je,{once:!0})),Xe),Ke="disabled",kt="selected",il=class extends wi{static get observedAttributes(){return[Ke,kt]}connectedCallback(){Ve||(this.tabIndex=-1),this.hasAttribute("role")||S(this,"role","option"),this.attributeChangedCallback()}attributeChangedCallback(){S(this,"aria-disabled",`${this.disabled}`),S(this,"aria-selected",`${this.selected}`)}get defaultSelected(){return this[kt]}set defaultSelected(t){this[kt]=t}get disabled(){return S(this,Ke)!==null}set disabled(t){S(this,Ke,t?"":null)}get form(){return this.closest("form")}get index(){var t;return[...((t=this.parentElement)==null?void 0:t.options)||[this]].indexOf(this)}get label(){var t;return(t=S(this,"label"))!=null?t:this.text}set label(t){S(this,"label",t)}get selected(){return S(this,kt)!==null}set selected(t){S(this,kt,t?"":null)}get text(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}set text(t){this.textContent=t}get value(){var t;return(t=S(this,"value"))!=null?t:this.text}set value(t){S(this,"value",t)}};Si.define("u-option",il);var sl=`${Jr}
386
387
  ::slotted(u-option) { display: block; cursor: pointer }
387
- ::slotted(u-option:focus) { ${Jr} }
388
+ ::slotted(u-option:focus) { ${Zr} }
388
389
  ::slotted(u-option[aria-hidden="true"]),
389
390
  ::slotted(u-option[disabled]),
390
- ::slotted(u-option[hidden]) { display: none !important }`,Ti,Ci=0,sl=Ve||re,ki="click,focusout,input,keydown,mousedown,mouseup",Li="focus,focusin,blur,focusout",de={singular:"%d hit",plural:"%d hits"},Ai=class extends wi{constructor(){super(),this._texts=Kr({},de),this._value="",Zr(this,il)}static get observedAttributes(){return["id",...Object.keys(de).map(t=>`data-sr-${t}`)]}connectedCallback(){this.hidden=!0,this._root=Ei(this),S(this,"role","listbox"),S(this,"tabindex","-1"),Ct(this._root,"focusin",this),Ct(this._root,"focus",this,!0),ze(this,{attributeFilter:["disabled","hidden","label","value"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(()=>this.attributeChangedCallback())}disconnectedCallback(){le(this._root||this,"focus",this,!0),le(this._root||this,"focusin",this),ze(this,!1),Ye(this),this._root=void 0}attributeChangedCallback(t,e,n){const o=t?.split("data-sr-")[1],i=`input[list="${this.id}"]`;if(de[o])this._texts[o]=n||de[o];else if(this._root){this._input&&Qe(this,this._input);for(const s of this._root.querySelectorAll(i))Qe(this,s)}}handleEvent(t){const{target:e,type:n}=t;t.defaultPrevented||(n==="click"&&ll(this,t),(n==="focus"||n==="focusin")&&al(this,t),(n==="blur"||n==="focusout")&&rl(this,t),n==="keydown"&&cl(this,t),n==="mousedown"&&this.contains(e)&&je(t),(n==="mutation"||n==="input")&&(clearTimeout(Ci),Ci=setTimeout(Ri,0,this,t)))}get options(){return this.getElementsByTagName("u-option")}},Ii=t=>t?.disabled||t?.readOnly||!1,Lt=(t,e)=>{var n,o,i;if(t.hidden!==e)return;t.hidden=Ii(t?._input)||!e,(n=ze(t))==null||n.takeRecords();const s=t.isConnected&&t.popover&&((o=t._input)==null?void 0:o.isConnected)&&((i=t._input)==null?void 0:i.popoverTargetElement)===t;t._input&&Qe(t,t._input,e),s&&S(t,"popover","manual"),s&&t.togglePopover(e),e&&Ri(t)},Ye=t=>{t._input&&(le(t._input||t,Li,t),le(t._root||t,ki,t),Lt(t,!1),t._input=void 0)},Qe=(t,e,n=!1)=>{t.popover&&S(e,"popovertarget",Ge(t)),Ct(e,Li,t,!0),S(e,"aria-autocomplete","list"),S(e,"aria-controls",Ge(t)),S(e,"aria-expanded",`${!sl||n}`),S(e,"autocomplete","off"),S(e,"role",Ii(e)?null:"combobox")},al=(t,e)=>{var n;const o=e.target instanceof HTMLInputElement;o&&e.isTrusted&&e.stopImmediatePropagation(),t._input!==e.target&&o&&e.target.list===t&&(t._input&&Ye(t),t._input=e.target,t._input.dispatchEvent(new FocusEvent("focus")),t._input.dispatchEvent(new FocusEvent("focusin",{bubbles:!0})),S(t,Yr,Ge((n=t._input.labels)==null?void 0:n[0])),Ct(t._root||t,ki,t),Lt(t,S(t._input,"inputmode")!=="none"),$i())},rl=(t,e)=>{!re&&!je()&&t._input&&setTimeout(Oi,0,t),e.target===t._input&&e.isTrusted&&e.stopImmediatePropagation()},Oi=t=>{var e;const n=((e=t._root)==null?void 0:e.activeElement)||null,o=t._input;o&&o!==n&&!t.contains(n)&&(o.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n})),Ye(t))},ll=(t,{target:e})=>{var n;if(!t._input||t._input===e)return Lt(t,!0);for(const o of t.options)if(o.contains(e))return S(t,"aria-multiselectable")!=="true"&&((n=t._input)==null||n.focus(),Lt(t,!1)),nl(t._input,o.value);re&&Oi(t)},cl=(t,e)=>{var n;const{key:o,target:i,altKey:s,ctrlKey:a,shiftKey:r,metaKey:c}=e,l=o==="Escape"||o==="Esc";if(s||a||c||r||o==="Tab")return;l&&!t.hidden&&e?.preventDefault(),Lt(t,!l);const d=[...t.options].filter(m=>S(m,"aria-hidden")!=="true"&&m.offsetHeight),u=d.indexOf(i);let p=-1;if(o==="ArrowDown"&&(p=(u+1)%d.length),o==="ArrowUp"&&(p=(~u?u:d.length)-1),~u&&((o==="Home"||o==="PageUp")&&(p=0),(o==="End"||o==="PageDown")&&(p=d.length-1),o==="Enter"))return d[u].click(),e.preventDefault();if(d[p])for(const m of d)m.tabIndex=-1;d[p]&&e.preventDefault(),(n=d[p]||t._input)==null||n.focus(),!d[p]&&o==="ArrowUp"&&setTimeout(()=>{var m;return(m=t._input)==null?void 0:m.setSelectionRange(999,999)})},Ri=(t,e)=>{const{_texts:n,_root:o,_input:i,options:s}=t,a=i?.value.toLowerCase().trim()||"",r=!t.hasAttribute("data-nofilter"),c=[],l=[];for(const u of s)(u.disabled||u.hidden||r&&!u.label.toLowerCase().includes(a)?c:l).push(u);for(const u of c)S(u,"aria-hidden","true");for(const u of l)S(u,"aria-hidden","false");const d=l.length;clearTimeout(Ti),e?.type==="input"&&a!==t._value&&(Ti=setTimeout(()=>{const u=`${!d&&t.innerText.trim()||`${n[d===1?"singular":"plural"]}`.replace("%d",`${d}`)}`;!t.hidden&&o?.activeElement===i&&$i(u),t._value=a},1e3)),Ve&&l.map((u,p)=>S(u,"title",`${p+1}/${d}`))};Tt&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){return Ei(this).getElementById(S(this,"list")||"")}}),Si.define("u-datalist",Ai);const Mi=$.field.split(" ")[0],Pi=$.validation.split(" "),dl=Pi[0],ul=D?document.getElementsByClassName(Mi):[],U=(t,e)=>t.getPropertyValue(`--mtds-text-${e}`)?.slice(1,-1)||"";function Di(t){let e=null;for(const n of ul)if(n.isConnected){const o=[],i=[],s=[];let a=null,r=null,c=!0;for(const l of n.getElementsByTagName("*"))l instanceof HTMLLabelElement?o.push(l):l instanceof ve?a=l:Pe(l)&&!l.hidden?r=l:l.hasAttribute("data-description")?i.push(l):l.classList.contains(dl)?(c=f(l,"data-color")==="success"||!l.clientHeight,s.push(l),i.unshift(l)):l instanceof HTMLParagraphElement&&(i.some(d=>d.contains(l))||i.push(l));if(r){for(const l of o)l.htmlFor=ie(r);if(t&&f(n,"data-validation")==="form"){c=r.matches(":valid"),!e&&!c&&(e=r);for(const l of s)f(l,"hidden",c?"":null)}fl(a),Hi(r),Ni(r),f(r,"aria-describedby",i.map(ie).join(" ")),f(r,"aria-invalid",`${!c}`)}}e?.focus()}function Ni(t){t instanceof HTMLTextAreaElement&&(t.style.setProperty("--mtds-textarea-height","auto"),t.style.setProperty("--mtds-textarea-height",`${t.scrollHeight}px`))}function fl(t){const{control:e,list:n}=t||{};if(t&&n&&!t.hasAttribute("data-sr-added")){const o=window.getComputedStyle(t);f(t,"data-sr-added",U(o,"combobox-added")),f(t,"data-sr-empty",U(o,"combobox-empty")),f(t,"data-sr-found",U(o,"combobox-found")),f(t,"data-sr-invalid",U(o,"combobox-invalid")),f(t,"data-sr-of",U(o,"combobox-of")),f(t,"data-sr-remove",U(o,"combobox-remove")),f(t,"data-sr-removed",U(o,"combobox-removed")),f(n,"data-sr-plural",U(o,"datalist-plural")),f(n,"data-sr-singular",U(o,"datalist-singular"))}n&&e&&!n.hasAttribute("popover")&&(f(n,"popover","manual"),f(e,"popovertarget",ie(n)))}function Hi(t){const e=t?.nextElementSibling,n=e&&f(e,"data-count");if(e&&n){const o=Number(n)-t.value.length,i=o<0,s=f(e,"aria-live")==="polite",a=window.getComputedStyle(e||t),r=U(a,"count-over"),c=U(a,"count-under");if(s!==i){f(e,"aria-live",i?"polite":"off");for(const l of Pi)e.classList.toggle(l,i)}e.textContent=(i?r:c).replace("%d",`${Math.abs(o)}`)}}function pl({target:t,newState:e}){if(t instanceof Ai){const o=t.getRootNode()?.querySelector(`[popovertarget="${t.id}"]`);e==="closed"?st(t,!1):o&&st(t,o,{contain({availableHeight:i}){t.style.width=`${o.clientWidth}px`,t.style.maxHeight=`${Math.max(50,i)}px`}})}}function ml(t){Pe(t.target)&&(Hi(t.target),Ni(t.target))}function hl(t){const e=t.target?.closest?.(`.${Mi}`);t.type==="invalid"&&e&&t.preventDefault(),Di(!0)}N(()=>[at(()=>Di()),T(document,"input",ml,I),T(document,"toggle",pl,I),T(document,"invalid,submit",hl,!0)]);const gl=$.fieldset.split(" ")[0],bl=$.validation.split(" ")[0],Bi="aria-describedby",vl="aria-invalid",yl=D?document.getElementsByClassName(gl):[];function _l(){setTimeout(()=>{for(const t of yl)if(t.isConnected){const e=[];let n=null,o=!0;for(const i of t.getElementsByTagName("*"))i.classList.contains(bl)?(o=f(i,"data-color")==="success"||!i.clientHeight,n=ie(i)):Pe(i)&&e.push(i);for(const i of e){const s=f(i,Bi)?.replace(n||"#","");f(i,Bi,`${n||""} ${s||""}`.trim()),f(i,vl,`${!o}`)}}})}N(()=>[at(_l,"class")]);const wl=$.logo.split(" ")[0],xl=D?document.getElementsByClassName(wl):[];function El(){const t=xl[0],e=t?.firstElementChild;if(e instanceof SVGSVGElement){for(const r of document.head.querySelectorAll("link[rel~='icon']"))r.setAttribute("rel","disabled");const n=t?.hasAttribute("data-env"),o=window.getComputedStyle(e),i=o.getPropertyValue("color"),s=o.getPropertyValue("--mtdsc-logo-background"),a=e.outerHTML.replace(/\n+/g," ").replace(/(fill|width|height|xmlns)="[^"]+"/gi,"").replace("<svg",`<svg width="40" height="40" fill="${i}"`);document.head.appendChild(C("link",{href:`data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 55 55'><rect fill='${n?"none":s}' width='51' height='51' x='2' y='2' stroke='${i}' stroke-dasharray='0.09 6.38' stroke-linecap='round' stroke-opacity='${n?.6:0}' stroke-width='2.3' rx='25.5'/><g transform="translate(7.5 7.5)">${a}</g></svg>`)}`,rel:"icon"}))}}N(()=>[at(El,"class")]);const ue=$.popover.split(" ")[0],Fi="_mtds-popover-auto";function Sl({target:t,newState:e}){if(t instanceof HTMLElement&&t.classList.contains(ue)){const n=document.querySelector(`[popovertarget="${t.id}"]`);e==="closed"?st(t,!1):n&&st(t,n,{contain:f(t,"data-overscroll")==="contain"&&(({availableHeight:o})=>{t.style.maxHeight=`${Math.max(50,o)}px`})})}}function $l({target:t,newState:e}){e==="open"&&t instanceof HTMLElement&&t.classList.contains(ue)&&f(t,"popover")!=="manual"&&(t.classList.add(Fi),f(t,"popover","manual"))}function Tl(t){const e=t.target?.closest?.("a,button"),n=e&&f(e,"popovertarget"),o=n?document.getElementById(n):e?.closest(`.${ue}`);for(const i of document.getElementsByClassName(Fi))!i.contains(t.target)&&o!==i&&i.hidePopover();if(o?.classList.contains(ue)&&e){const i=f(e,"popovertargetaction"),s=i==="show"||(i==="hide"?!1:void 0),a=e instanceof HTMLButtonElement;if(a&&!i&&o.contains(e))return;if(o instanceof HTMLElement&&o.isConnected){if(a&&n)return;if(o.hasAttribute("popover"))return o.togglePopover(s);console.error(`Element "${o.id}" is missing "popover" attribute`)}}}N(()=>[T(document,"click",Tl),T(document,"toggle",Sl,I),T(document,"beforetoggle",$l,I)]);const Cl=$.table.split(" ")[0],kl='a,button,label,input,select,textarea,[role="button"]',Ll=D?document.getElementsByClassName(Cl):[];function Al(){for(const t of Ll){const e=Array.from(t.tHead?.rows[0]?.cells||[],n=>n.innerText.trim());for(const n of t.tBodies)for(const o of n.rows)for(const i of o.cells)f(i,"data-th",e[i.cellIndex]||":empty")}}function Il({target:t}){if(!(t instanceof Element))return;const n=t.closest("tr")?.querySelector('[data-command="row"]');n&&!t.closest(kl)&&n.click?.()}N(()=>[T(document,"click",Il),at(Al,"class")]);const Ui=$.toast.split(" ")[0],fe="data-sort";function Ol({animationName:t,target:e}){const n=e;if(t===$._toastTimeout&&n.close(),t!==$._toastOpen)return;const o=Number(f(n,"data-timeout"));n.style.setProperty("--mtdsc-toast-timeout",o?`${o}ms`:null),n.hasAttribute(fe)||f(n,fe,`${Date.now()}`),f(n,"tabindex","0"),[...document.querySelectorAll(`.${Ui}[open]`)].sort((i,s)=>Number(f(s,fe))-Number(f(i,fe))).reduce((i,s)=>(s.style.translate=`0 ${s===e?0:i}px`,i+s.offsetHeight+5),0)}function Rl({target:t,clientX:e,clientY:n}){if(t instanceof HTMLDialogElement&&t.classList.contains(Ui)&&f(t,"data-closedby")!=="none"){const o=t.getBoundingClientRect(),i=window.getComputedStyle(t),s=window.getComputedStyle(t,"::after"),a=o.top+Number.parseInt(i.paddingTop,10),r=a+Number.parseInt(s.height,10),c=o.right-Number.parseInt(i.paddingRight,10),l=c-Number.parseInt(s.width,10);a<=n&&n<=r&&l<=e&&e<=c&&t.close()}}N(()=>[T(document,"animationstart",Ol),T(document,"click",Rl)]);const Ml=`.${$.togglegroup.split(" ")[0]}`;function Pl(t){const{key:e,target:n}=t,o=n instanceof HTMLInputElement&&n.closest(Ml);if(o&&(e==="Enter"&&n.click(),e?.startsWith("Arrow"))){t.preventDefault();const i=o.getElementsByTagName("input"),s=[...i].indexOf(n),a=e.match(/Arrow(Right|Down)/)?1:-1;i[(i.length+s+a)%i.length]?.focus()}}N(()=>[T(document,"keydown",Pl)]);const qi="Escape",Dl=300,Vi="mtds-tooltip",j=D?document.getElementById(Vi)||C("div",{class:$._tooltip,id:Vi,popover:"manual"}):null;let zi=null,Gi=Number.NEGATIVE_INFINITY,Wi=0;function Je({target:t,type:e,key:n}){if(e==="keydown"&&n!==qi)return;const o=Gi+Dl-Date.now();clearTimeout(Wi),Wi=setTimeout(Nl,Math.max(o,0),n===qi?null:t)}function Nl(t){if(Gi=Date.now(),!j||t===j)return;j?.isConnected||document.body.append(j);let e=t?.closest?.("[data-tooltip]")||null;if(e===zi)return;const n=e&&f(e,"data-tooltip")||"",o=e&&f(e,"data-tooltip-position")||window.getComputedStyle(e||document.body).getPropertyValue("--mtds-tooltip-position")?.trim()||"top";(!n||n==="false"||n==="true"||o==="none")&&(e=null),e&&(j.textContent=n),st(j,!1),zi=e,j.hidePopover(),j.togglePopover(!!e),st(j,e||!1,{strategy:"fixed",placement:o,middleware:[jo(),Xo({padding:10})]})}function Hl(){document.querySelectorAll("[data-tooltip]").forEach(t=>{const e=!t?.textContent?.trim(),n=f(t,"data-tooltip");f(t,`aria-${e?"label":"description"}`,n)})}N(()=>[T(document,"blur,focus,mouseout,mouseover",Je,I),T(window,"keydown",Je,I),T(window,"blur",Je,I),at(Hl,"data-tooltip")]);var Xi=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",ji;Xi&&/^Mac/i.test(((ji=navigator.userAgentData)==null?void 0:ji.platform)||navigator.platform);var Bl=":host(:not([hidden])) { display: block }",Ki=typeof HTMLElement>"u"?class{}:HTMLElement;function K(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var Yi=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Qi=(t,...e)=>Yi("add",t,e),Ji=(t,...e)=>Yi("remove",t,e),Fl=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},Ul=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},Ze=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,s]of Object.entries(n))K(o,i,s);return o},Zi={define:(t,e)=>!Xi||window.customElements.get(t)||window.customElements.define(t,e)},ql=`${Bl}
391
+ ::slotted(u-option[hidden]) { display: none !important }`,Ti,Ci=0,al=Ve||re,ki="click,focusout,input,keydown,mousedown,mouseup",Ai="focus,focusin,blur,focusout",de={singular:"%d hit",plural:"%d hits"},Li=class extends wi{constructor(){super(),this._texts=Yr({},de),this._value="",tl(this,sl)}static get observedAttributes(){return["id",...Object.keys(de).map(t=>`data-sr-${t}`)]}connectedCallback(){this.hidden=!0,this._root=Ei(this),S(this,"role","listbox"),S(this,"tabindex","-1"),Ct(this._root,"focusin",this),Ct(this._root,"focus",this,!0),Ge(this,{attributeFilter:["disabled","hidden","label","value"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(()=>this.attributeChangedCallback())}disconnectedCallback(){le(this._root||this,"focus",this,!0),le(this._root||this,"focusin",this),Ge(this,!1),Ye(this),this._root=void 0}attributeChangedCallback(t,e,n){const o=t?.split("data-sr-")[1],i=`input[list="${this.id}"]`;if(de[o])this._texts[o]=n||de[o];else if(this._root){this._input&&Qe(this,this._input);for(const s of this._root.querySelectorAll(i))Qe(this,s)}}handleEvent(t){const{target:e,type:n}=t;t.defaultPrevented||(n==="click"&&cl(this,t),(n==="focus"||n==="focusin")&&rl(this,t),(n==="blur"||n==="focusout")&&ll(this,t),n==="keydown"&&dl(this,t),n==="mousedown"&&this.contains(e)&&je(t),(n==="mutation"||n==="input")&&(clearTimeout(Ci),Ci=setTimeout(Ri,0,this,t)))}get options(){return this.getElementsByTagName("u-option")}},Ii=t=>t?.disabled||t?.readOnly||!1,At=(t,e)=>{var n,o,i;if(t.hidden!==e)return;t.hidden=Ii(t?._input)||!e,(n=Ge(t))==null||n.takeRecords();const s=t.isConnected&&t.popover&&((o=t._input)==null?void 0:o.isConnected)&&((i=t._input)==null?void 0:i.popoverTargetElement)===t;t._input&&Qe(t,t._input,e),s&&S(t,"popover","manual"),s&&t.togglePopover(e),e&&Ri(t)},Ye=t=>{t._input&&(le(t._input||t,Ai,t),le(t._root||t,ki,t),At(t,!1),t._input=void 0)},Qe=(t,e,n=!1)=>{t.popover&&S(e,"popovertarget",ze(t)),Ct(e,Ai,t,!0),S(e,"aria-autocomplete","list"),S(e,"aria-controls",ze(t)),S(e,"aria-expanded",`${!al||n}`),S(e,"autocomplete","off"),S(e,"role",Ii(e)?null:"combobox")},rl=(t,e)=>{var n;const o=e.target instanceof HTMLInputElement;o&&e.isTrusted&&e.stopImmediatePropagation(),t._input!==e.target&&o&&e.target.list===t&&(t._input&&Ye(t),t._input=e.target,t._input.dispatchEvent(new FocusEvent("focus")),t._input.dispatchEvent(new FocusEvent("focusin",{bubbles:!0})),S(t,Qr,ze((n=t._input.labels)==null?void 0:n[0])),Ct(t._root||t,ki,t),At(t,S(t._input,"inputmode")!=="none"),$i())},ll=(t,e)=>{!re&&!je()&&t._input&&setTimeout(Oi,0,t),e.target===t._input&&e.isTrusted&&e.stopImmediatePropagation()},Oi=t=>{var e;const n=((e=t._root)==null?void 0:e.activeElement)||null,o=t._input;o&&o!==n&&!t.contains(n)&&(o.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n})),Ye(t))},cl=(t,{target:e})=>{var n;if(!t._input||t._input===e)return At(t,!0);for(const o of t.options)if(o.contains(e))return S(t,"aria-multiselectable")!=="true"&&((n=t._input)==null||n.focus(),At(t,!1)),ol(t._input,o.value);re&&Oi(t)},dl=(t,e)=>{var n;const{key:o,target:i,altKey:s,ctrlKey:a,shiftKey:r,metaKey:c}=e,l=o==="Escape"||o==="Esc";if(s||a||c||r||o==="Tab")return;l&&!t.hidden&&e?.preventDefault(),At(t,!l);const d=[...t.options].filter(m=>S(m,"aria-hidden")!=="true"&&m.offsetHeight),u=d.indexOf(i);let p=-1;if(o==="ArrowDown"&&(p=(u+1)%d.length),o==="ArrowUp"&&(p=(~u?u:d.length)-1),~u&&((o==="Home"||o==="PageUp")&&(p=0),(o==="End"||o==="PageDown")&&(p=d.length-1),o==="Enter"))return d[u].click(),e.preventDefault();if(d[p])for(const m of d)m.tabIndex=-1;d[p]&&e.preventDefault(),(n=d[p]||t._input)==null||n.focus(),!d[p]&&o==="ArrowUp"&&setTimeout(()=>{var m;return(m=t._input)==null?void 0:m.setSelectionRange(999,999)})},Ri=(t,e)=>{const{_texts:n,_root:o,_input:i,options:s}=t,a=i?.value.toLowerCase().trim()||"",r=!t.hasAttribute("data-nofilter"),c=[],l=[];for(const u of s)(u.disabled||u.hidden||r&&!u.label.toLowerCase().includes(a)?c:l).push(u);for(const u of c)S(u,"aria-hidden","true");for(const u of l)S(u,"aria-hidden","false");const d=l.length;clearTimeout(Ti),e?.type==="input"&&a!==t._value&&(Ti=setTimeout(()=>{const u=`${!d&&t.innerText.trim()||`${n[d===1?"singular":"plural"]}`.replace("%d",`${d}`)}`;!t.hidden&&o?.activeElement===i&&$i(u),t._value=a},1e3)),Ve&&l.map((u,p)=>S(u,"title",`${p+1}/${d}`))};Tt&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){return Ei(this).getElementById(S(this,"list")||"")}}),Si.define("u-datalist",Li);const Mi=$.field.split(" ")[0],Pi=$.validation.split(" "),ul=Pi[0],fl=D?document.getElementsByClassName(Mi):[];function Di(t){let e=null;for(const n of fl)if(n.isConnected){const o=[],i=[],s=[];let a=null,r=null,c=!0;for(const l of n.getElementsByTagName("*"))l instanceof HTMLLabelElement?o.push(l):l instanceof be?a=l:Pe(l)&&!l.hidden?r=l:l.hasAttribute("data-description")?i.push(l):l.classList.contains(ul)?(c=f(l,"data-color")==="success"||!l.clientHeight,s.push(l),i.unshift(l)):l instanceof HTMLParagraphElement&&(i.some(d=>d.contains(l))||i.push(l));if(r){for(const l of o)l.htmlFor=ie(r);if((t||a?.control?.validity.customError)&&f(n,"data-validation")==="form"){c=a?.hasAttribute("data-required")?!!a?.items.length:r.validity.valid,!e&&!c&&(e=r);for(const l of s)f(l,"hidden",c?"":null);a?.control?.setCustomValidity(c?"":"Invalid")}pl(a),Hi(r),Ni(r),f(r,"aria-describedby",i.map(ie).join(" ")),f(r,"aria-invalid",`${!c}`)}}return e?.focus(),e}function Ni(t){t instanceof HTMLTextAreaElement&&(t.style.setProperty("--mtds-textarea-height","auto"),t.style.setProperty("--mtds-textarea-height",`${t.scrollHeight}px`))}const U=(t,e)=>t.getPropertyValue(`--mtds-text-${e}`)?.slice(1,-1)||"";function pl(t){const{control:e,list:n}=t||{};if(t&&n&&!t.hasAttribute("data-sr-added")){const o=window.getComputedStyle(t);f(t,"data-sr-added",U(o,"combobox-added")),f(t,"data-sr-empty",U(o,"combobox-empty")),f(t,"data-sr-found",U(o,"combobox-found")),f(t,"data-sr-invalid",U(o,"combobox-invalid")),f(t,"data-sr-of",U(o,"combobox-of")),f(t,"data-sr-remove",U(o,"combobox-remove")),f(t,"data-sr-removed",U(o,"combobox-removed")),f(n,"data-sr-plural",U(o,"datalist-plural")),f(n,"data-sr-singular",U(o,"datalist-singular"))}n&&e&&!n.hasAttribute("popover")&&(f(n,"popover","manual"),f(e,"popovertarget",ie(n)))}function Hi(t){const e=t?.nextElementSibling,n=e&&f(e,"data-count");if(e&&n){const o=Number(n)-t.value.length,i=o<0,s=f(e,"aria-live")==="polite",a=window.getComputedStyle(e||t),r=U(a,"count-over"),c=U(a,"count-under");if(s!==i){f(e,"aria-live",i?"polite":"off");for(const l of Pi)e.classList.toggle(l,i)}e.textContent=(i?r:c).replace("%d",`${Math.abs(o)}`)}}function ml({target:t,newState:e}){if(t instanceof Li){const o=t.getRootNode()?.querySelector(`[popovertarget="${t.id}"]`);e==="closed"?at(t,!1):o&&at(t,o,{contain({availableHeight:i}){t.style.width=`${o.clientWidth}px`,t.style.maxHeight=`${Math.max(50,i)}px`}})}}function hl(t){Pe(t.target)&&(Hi(t.target),Ni(t.target))}function gl(t){const e=t.target?.closest?.(`.${Mi}`);t.type==="invalid"&&e&&t.preventDefault(),Di(!0)&&t.preventDefault()}N(()=>[Z(()=>Di(),"class"),T(document,"input",hl,I),T(document,"toggle",ml,I),T(document,"invalid,submit",gl,!0)]);const vl=$.fieldset.split(" ")[0],bl=$.validation.split(" ")[0],Bi="aria-describedby",yl="aria-invalid",_l=D?document.getElementsByClassName(vl):[];function wl(){setTimeout(()=>{for(const t of _l)if(t.isConnected){const e=[];let n=null,o=!0;for(const i of t.getElementsByTagName("*"))i.classList.contains(bl)?(o=f(i,"data-color")==="success"||!i.clientHeight,n=ie(i)):Pe(i)&&e.push(i);for(const i of e){const s=f(i,Bi)?.replace(n||"#","");f(i,Bi,`${n||""} ${s||""}`.trim()),f(i,yl,`${!o}`)}}})}N(()=>[Z(wl,"class")]);const xl=$.logo.split(" ")[0],El=D?document.getElementsByClassName(xl):[];function Sl(){const t=El[0],e=t?.firstElementChild;if(e instanceof SVGSVGElement){for(const r of document.head.querySelectorAll("link[rel~='icon']"))r.setAttribute("rel","disabled");const n=t?.hasAttribute("data-env"),o=window.getComputedStyle(e),i=o.getPropertyValue("color"),s=o.getPropertyValue("--mtdsc-logo-background"),a=e.outerHTML.replace(/\n+/g," ").replace(/(fill|width|height|xmlns)="[^"]+"/gi,"").replace("<svg",`<svg width="40" height="40" fill="${i}"`);document.head.appendChild(C("link",{href:`data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 55 55'><rect fill='${n?"none":s}' width='51' height='51' x='2' y='2' stroke='${i}' stroke-dasharray='0.09 6.38' stroke-linecap='round' stroke-opacity='${n?.6:0}' stroke-width='2.3' rx='25.5'/><g transform="translate(7.5 7.5)">${a}</g></svg>`)}`,rel:"icon"}))}}N(()=>[Z(Sl,"class")]);const ue=$.popover.split(" ")[0],Fi="_mtds-popover-auto";function $l({target:t,newState:e}){if(t instanceof HTMLElement&&t.classList.contains(ue)){const n=document.querySelector(`[popovertarget="${t.id}"]`);e==="closed"?at(t,!1):n&&at(t,n,{contain:f(t,"data-overscroll")==="contain"&&(({availableHeight:o})=>{t.style.maxHeight=`${Math.max(50,o)}px`})})}}function Tl({target:t,newState:e}){e==="open"&&t instanceof HTMLElement&&t.classList.contains(ue)&&f(t,"popover")!=="manual"&&(t.classList.add(Fi),f(t,"popover","manual"))}function Cl(t){const e=t.target?.closest?.("a,button"),n=e&&f(e,"popovertarget"),o=n?document.getElementById(n):e?.closest(`.${ue}`);for(const i of document.getElementsByClassName(Fi))!i.contains(t.target)&&o!==i&&i.hidePopover();if(o?.classList.contains(ue)&&e){const i=f(e,"popovertargetaction"),s=i==="show"||(i==="hide"?!1:void 0),a=e instanceof HTMLButtonElement;if(a&&!i&&o.contains(e))return;if(o instanceof HTMLElement&&o.isConnected){if(a&&n)return;if(o.hasAttribute("popover"))return o.togglePopover(s);console.error(`Element "${o.id}" is missing "popover" attribute`)}}}N(()=>[T(document,"click",Cl),T(document,"toggle",$l,I),T(document,"beforetoggle",Tl,I)]);const kl=$.table.split(" ")[0],Al='a,button,label,input,select,textarea,[role="button"]',Ll=D?document.getElementsByClassName(kl):[];function Il(){for(const t of Ll){const e=Array.from(t.tHead?.rows[0]?.cells||[],n=>n.innerText.trim());for(const n of t.tBodies)for(const o of n.rows)for(const i of o.cells)f(i,"data-th",e[i.cellIndex]||":empty")}}function Ol({target:t}){if(!(t instanceof Element))return;const n=t.closest("tr")?.querySelector('[data-command="row"]');n&&!t.closest(Al)&&n.click?.()}N(()=>[T(document,"click",Ol),Z(Il,"class")]);const Ui=$.toast.split(" ")[0],fe="data-sort";function Rl({animationName:t,target:e}){const n=e;if(t===$._toastTimeout&&n.close(),t!==$._toastOpen)return;const o=Number(f(n,"data-timeout"));n.style.setProperty("--mtdsc-toast-timeout",o?`${o}ms`:null),n.hasAttribute(fe)||f(n,fe,`${Date.now()}`),f(n,"tabindex","0"),[...document.querySelectorAll(`.${Ui}[open]`)].sort((i,s)=>Number(f(s,fe))-Number(f(i,fe))).reduce((i,s)=>(s.style.translate=`0 ${s===e?0:i}px`,i+s.offsetHeight+5),0)}function Ml({target:t,clientX:e,clientY:n}){if(t instanceof HTMLDialogElement&&t.classList.contains(Ui)&&f(t,"data-closedby")!=="none"){const o=t.getBoundingClientRect(),i=window.getComputedStyle(t),s=window.getComputedStyle(t,"::after"),a=o.top+Number.parseInt(i.paddingTop,10),r=a+Number.parseInt(s.height,10),c=o.right-Number.parseInt(i.paddingRight,10),l=c-Number.parseInt(s.width,10);a<=n&&n<=r&&l<=e&&e<=c&&t.close()}}N(()=>[T(document,"animationstart",Rl),T(document,"click",Ml)]);const Pl=`.${$.togglegroup.split(" ")[0]}`;function Dl(t){const{key:e,target:n}=t,o=n instanceof HTMLInputElement&&n.closest(Pl);if(o&&(e==="Enter"&&n.click(),e?.startsWith("Arrow"))){t.preventDefault();const i=o.getElementsByTagName("input"),s=[...i].indexOf(n),a=e.match(/Arrow(Right|Down)/)?1:-1;i[(i.length+s+a)%i.length]?.focus()}}N(()=>[T(document,"keydown",Dl)]);const qi="Escape",Nl=300,Vi="mtds-tooltip",j=D?document.getElementById(Vi)||C("div",{class:$._tooltip,id:Vi,popover:"manual"}):null;let Gi=null,zi=Number.NEGATIVE_INFINITY,Wi=0;function Je({target:t,type:e,key:n}){if(e==="keydown"&&n!==qi)return;const o=zi+Nl-Date.now();clearTimeout(Wi),Wi=setTimeout(Hl,Math.max(o,0),n===qi?null:t)}function Hl(t){if(zi=Date.now(),!j||t===j)return;j?.isConnected||document.body.append(j);let e=t?.closest?.("[data-tooltip]")||null;if(e===Gi)return;const n=e&&f(e,"data-tooltip")||"",o=e&&f(e,"data-tooltip-position")||window.getComputedStyle(e||document.body).getPropertyValue("--mtds-tooltip-position")?.trim()||"top";(!n||n==="false"||n==="true"||o==="none")&&(e=null),e&&(j.textContent=n),at(j,!1),Gi=e,j.hidePopover(),j.togglePopover(!!e),at(j,e||!1,{strategy:"fixed",placement:o,middleware:[jo(),Xo({padding:10})]})}function Bl(){document.querySelectorAll("[data-tooltip]").forEach(t=>{const e=!t?.textContent?.trim(),n=f(t,"data-tooltip");f(t,`aria-${e?"label":"description"}`,n)})}N(()=>[T(document,"blur,focus,mouseout,mouseover",Je,I),T(window,"keydown",Je,I),T(window,"blur",Je,I),Z(Bl,"data-tooltip")]);var Xi=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",ji;Xi&&/^Mac/i.test(((ji=navigator.userAgentData)==null?void 0:ji.platform)||navigator.platform);var Fl=":host(:not([hidden])) { display: block }",Ki=typeof HTMLElement>"u"?class{}:HTMLElement;function K(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var Yi=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Qi=(t,...e)=>Yi("add",t,e),Ji=(t,...e)=>Yi("remove",t,e),Ul=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},ql=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},Ze=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,s]of Object.entries(n))K(o,i,s);return o},Zi={define:(t,e)=>!Xi||window.customElements.get(t)||window.customElements.define(t,e)},Vl=`${Fl}
391
392
  ::slotted(u-summary) { cursor: pointer; display: block }
392
393
  ::slotted(u-summary)::before { content: ''; display: inline-block; vertical-align: middle; margin-inline: .05em .3125em; border-block: .3125em solid transparent; border-inline-start: .5em solid }
393
394
  ::slotted(u-summary[aria-expanded="true"])::before { rotate: 90deg }
394
- :host > [part="details-content"]:not([hidden=""]) { display: block }`,Vl=class extends Ki{constructor(){super(),this._content=null,this.shadowRoot||this.attachShadow({mode:"open"}).append(Ze("slot",null,{name:"summary"}),Ze("slot",null,{part:"details-content"}),Ze("style",ql))}static get observedAttributes(){return["open"]}connectedCallback(){var t;this._content=(t=this.shadowRoot)==null?void 0:t.children[1],K(this,"role","group"),Qi(this._content,"beforematch",this),Qi(this,"click,keydown",this),this.attributeChangedCallback()}disconnectedCallback(){this._content&&Ji(this._content,"beforematch",this),Ji(this,"click,keydown",this),this._content=null}attributeChangedCallback(t,e,n){const o="onbeforematch"in this?"until-found":!0,i=this.open;for(const s of this.children)s.nodeName==="U-SUMMARY"&&K(s,"aria-expanded",`${i}`);if(this._content&&(K(this._content,"aria-hidden",`${!i}`),K(this._content,"tabindex",i?null:"-1"),this._content.hidden=i?!1:o),i&&this.name){const s=Ul(this).querySelectorAll(`${this.nodeName}[name="${this.name}"]`);for(const a of s)a!==this&&(a.open=!1)}t==="open"&&e===null!=(n===null)&&this.dispatchEvent(new Event("toggle"))}handleEvent(t){const e=this.querySelector(":scope > u-summary"),n=e?.contains(t.target);t.defaultPrevented||(t.type==="beforematch"&&(this.open=!0),n&&t.type==="keydown"&&Fl(t),n&&t.type==="click"&&(this.open=!this.open))}get open(){return this.hasAttribute("open")}set open(t){K(this,"open",t?"":null)}get name(){return K(this,"name")||""}set name(t){K(this,"name",t)}},zl=class extends Ki{connectedCallback(){K(this,"role","button"),this.slot="summary",this.tabIndex=0}};Zi.define("u-details",Vl),Zi.define("u-summary",zl);var pe=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",ts=pe&&/firefox/i.test(navigator.userAgent),Gl=pe&&/iPad|iPhone|iPod/.test(navigator.userAgent),es;pe&&/^Mac/i.test(((es=navigator.userAgentData)==null?void 0:es.platform)||navigator.platform);var Wl=typeof HTMLElement>"u"?class{}:HTMLElement;function O(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var Xl=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},jl=0,Kl=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++jl).toString(32)}`),t.id):"",ns=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,s]of Object.entries(n))O(o,i,s);return o},Yl={define:(t,e)=>!pe||window.customElements.get(t)||window.customElements.define(t,e)},Ql=t=>{var e;const n=O(t,"aria-label")||"";return[...(((e=O(t,"aria-labelledby"))==null?void 0:e.trim().split(/\s+/))||[]).map(i=>document.getElementById(i)),...Array.from(t.labels||[])].reduce((i,s)=>{var a;return i||((a=s?.innerText)==null?void 0:a.trim())||""},n)},Jl=`:host(:not([hidden])) { box-sizing: border-box; border: 1px solid; display: inline-block; height: .5em; width: 10em; overflow: hidden }
395
+ :host > [part="details-content"]:not([hidden=""]) { display: block }`,Gl=class extends Ki{constructor(){super(),this._content=null,this.shadowRoot||this.attachShadow({mode:"open"}).append(Ze("slot",null,{name:"summary"}),Ze("slot",null,{part:"details-content"}),Ze("style",Vl))}static get observedAttributes(){return["open"]}connectedCallback(){var t;this._content=(t=this.shadowRoot)==null?void 0:t.children[1],K(this,"role","group"),Qi(this._content,"beforematch",this),Qi(this,"click,keydown",this),this.attributeChangedCallback()}disconnectedCallback(){this._content&&Ji(this._content,"beforematch",this),Ji(this,"click,keydown",this),this._content=null}attributeChangedCallback(t,e,n){const o="onbeforematch"in this?"until-found":!0,i=this.open;for(const s of this.children)s.nodeName==="U-SUMMARY"&&K(s,"aria-expanded",`${i}`);if(this._content&&(K(this._content,"aria-hidden",`${!i}`),K(this._content,"tabindex",i?null:"-1"),this._content.hidden=i?!1:o),i&&this.name){const s=ql(this).querySelectorAll(`${this.nodeName}[name="${this.name}"]`);for(const a of s)a!==this&&(a.open=!1)}t==="open"&&e===null!=(n===null)&&this.dispatchEvent(new Event("toggle"))}handleEvent(t){const e=this.querySelector(":scope > u-summary"),n=e?.contains(t.target);t.defaultPrevented||(t.type==="beforematch"&&(this.open=!0),n&&t.type==="keydown"&&Ul(t),n&&t.type==="click"&&(this.open=!this.open))}get open(){return this.hasAttribute("open")}set open(t){K(this,"open",t?"":null)}get name(){return K(this,"name")||""}set name(t){K(this,"name",t)}},zl=class extends Ki{connectedCallback(){K(this,"role","button"),this.slot="summary",this.tabIndex=0}};Zi.define("u-details",Gl),Zi.define("u-summary",zl);var pe=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",ts=pe&&/firefox/i.test(navigator.userAgent),Wl=pe&&/iPad|iPhone|iPod/.test(navigator.userAgent),es;pe&&/^Mac/i.test(((es=navigator.userAgentData)==null?void 0:es.platform)||navigator.platform);var Xl=typeof HTMLElement>"u"?class{}:HTMLElement;function O(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var jl=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},Kl=0,Yl=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Kl).toString(32)}`),t.id):"",ns=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,s]of Object.entries(n))O(o,i,s);return o},Ql={define:(t,e)=>!pe||window.customElements.get(t)||window.customElements.define(t,e)},Jl=t=>{var e;const n=O(t,"aria-label")||"";return[...(((e=O(t,"aria-labelledby"))==null?void 0:e.trim().split(/\s+/))||[]).map(i=>document.getElementById(i)),...Array.from(t.labels||[])].reduce((i,s)=>{var a;return i||((a=s?.innerText)==null?void 0:a.trim())||""},n)},Zl=`:host(:not([hidden])) { box-sizing: border-box; border: 1px solid; display: inline-block; height: .5em; width: 10em; overflow: hidden }
395
396
  :host::before { content: ''; display: block; height: 100%; background: currentColor; width: var(--percentage, 0%); transition: width .2s }
396
397
  :host(:not([value])) { background: linear-gradient(90deg,currentColor 25%, transparent 50%, currentColor 75%) 50%/400% }
397
398
  @media (prefers-reduced-motion: no-preference) { :host { animation: indeterminate 2s linear infinite } }
398
- @keyframes indeterminate { from { background-position-x: 100% } to { background-position-x: 0 } }`,tn=!1,os=class extends Wl{static get observedAttributes(){return["aria-label","aria-labelledby","value","max"]}constructor(){super(),this.shadowRoot||this.attachShadow({mode:"open"}).append(ns("slot",null,{hidden:""}),ns("style",Jl))}connectedCallback(){this.attributeChangedCallback()}attributeChangedCallback(){if(tn)return;tn=!0;const t=Gl||ts,e=Math.max(0,Math.round(this.position*100));this.style.setProperty("--percentage",`${e}%`);let n=Ql(this);if(t&&(n=`${n.replace(/\d+%$/,"")} ${e}%`),ts)for(const o of this.labels)O(o,"aria-label",n);O(this,"aria-busy",`${this.position===-1}`),O(this,"aria-label",n.trim()),O(this,"aria-labelledby",null),O(this,"aria-valuemax","100"),O(this,"aria-valuemin","0"),O(this,"aria-valuenow",`${e}`),O(this,"role",t?"img":"progressbar"),tn=!1}get labels(){const t=this.closest("label:not([for])"),e=Kl(this);return t&&(t.htmlFor=e),Xl(this).querySelectorAll(`label[for="${e}"]`)}get position(){return this.value===null?-1:Math.min(this.value/this.max,1)}get value(){return ss(this,"value")}set value(t){as(this,"value",t)}get max(){return ss(this,"max")||1}set max(t){as(this,"max",t)}};os.formAssociated=!0;var is=t=>!Number.isNaN(Number.parseFloat(`${t}`))&&Number.isFinite(Number(t)),ss=(t,e)=>{const n=O(t,e);return is(n)?Math.max(0,Number.parseFloat(n)):null},as=(t,e,n)=>{if(n===null||is(n))O(t,e,`${n}`);else throw new Error(`Failed to set non-numeric '${O}': '${n}'`)};return Yl.define("u-progress",os),k.UHTMLComboboxElement=ve,k.UHTMLTabElement=Sn,k.UHTMLTabListElement=En,k.UHTMLTabPanelElement=$n,k.UHTMLTabsElement=xn,k.analytics=Zo,k.fixLawHtml=li,k.pagination=Er,k.parseLawIds=gr,k.parseLawMeta=br,k.setLawChecked=hr,k.styles=zs,k.toast=L,k.toggleAppExpanded=ii,k.version=Vs,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),k}({});
399
+ @keyframes indeterminate { from { background-position-x: 100% } to { background-position-x: 0 } }`,tn=!1,os=class extends Xl{static get observedAttributes(){return["aria-label","aria-labelledby","value","max"]}constructor(){super(),this.shadowRoot||this.attachShadow({mode:"open"}).append(ns("slot",null,{hidden:""}),ns("style",Zl))}connectedCallback(){this.attributeChangedCallback()}attributeChangedCallback(){if(tn)return;tn=!0;const t=Wl||ts,e=Math.max(0,Math.round(this.position*100));this.style.setProperty("--percentage",`${e}%`);let n=Jl(this);if(t&&(n=`${n.replace(/\d+%$/,"")} ${e}%`),ts)for(const o of this.labels)O(o,"aria-label",n);O(this,"aria-busy",`${this.position===-1}`),O(this,"aria-label",n.trim()),O(this,"aria-labelledby",null),O(this,"aria-valuemax","100"),O(this,"aria-valuemin","0"),O(this,"aria-valuenow",`${e}`),O(this,"role",t?"img":"progressbar"),tn=!1}get labels(){const t=this.closest("label:not([for])"),e=Yl(this);return t&&(t.htmlFor=e),jl(this).querySelectorAll(`label[for="${e}"]`)}get position(){return this.value===null?-1:Math.min(this.value/this.max,1)}get value(){return ss(this,"value")}set value(t){as(this,"value",t)}get max(){return ss(this,"max")||1}set max(t){as(this,"max",t)}};os.formAssociated=!0;var is=t=>!Number.isNaN(Number.parseFloat(`${t}`))&&Number.isFinite(Number(t)),ss=(t,e)=>{const n=O(t,e);return is(n)?Math.max(0,Number.parseFloat(n)):null},as=(t,e,n)=>{if(n===null||is(n))O(t,e,`${n}`);else throw new Error(`Failed to set non-numeric '${O}': '${n}'`)};return Ql.define("u-progress",os),k.UHTMLComboboxElement=be,k.UHTMLTabElement=Sn,k.UHTMLTabListElement=En,k.UHTMLTabPanelElement=$n,k.UHTMLTabsElement=xn,k.analytics=Zo,k.fixLawHtml=li,k.pagination=Sr,k.parseLawIds=vr,k.parseLawMeta=br,k.setLawChecked=gr,k.styles=Gs,k.toast=A,k.toggleAppExpanded=ii,k.version=Vs,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),k}({});
@@ -1,4 +1,4 @@
1
- const o = "2.2.21";
1
+ const o = "2.2.22";
2
2
  export {
3
3
  o as version
4
4
  };