@mattilsynet/design 2.2.10 → 2.11.0-canary

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.
@@ -5,7 +5,7 @@ var mtds=function(O){"use strict";var os=Object.defineProperty,an=Object.getOwnP
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) { ${cs} }`,pn="beforeinput,blur,focus,click,input,keydown,mousedown",hn={once:!0,passive:!0},Bt="false",_s=rs&&!ln,ws=ln||ls,mn="​".repeat(5),gn="deleteContentBackward",ys="insertText",jt={added:"Added",empty:"No selected",found:"Navigate left to find %d selected",invalid:"Invalid value",of:"of",remove:"Press to remove",removed:"Removed"},we=class extends ds{constructor(){super(),this._item="",this._speak="",this._texts=as({},jt),this._value="",this.shadowRoot||this.attachShadow({mode:"open"}).append(Ht("slot"),Ht("style",vs))}static get observedAttributes(){return Object.keys(jt).map(t=>`data-sr-${t}`)}connectedCallback(){this._root=ps(this),Dt(this,pn,this,!0),ge(this,{attributeFilter:["value","id"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(Ft,0,this),setTimeout(Ut,0,this)}attributeChangedCallback(t,e,n){const o=t.split("data-sr-")[1];jt[o]&&(this._texts[o]=n||jt[o])}disconnectedCallback(){ge(this,!1),us(this,pn,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;xe(this)||(t.type==="beforeinput"&&(this._value=e?.value||""),t.type==="blur"&&Es(this),t.type==="click"&&Ts(this,t),t.type==="focus"&&xs(this,t),t.type==="input"&&$s(this,t),t.type==="keydown"&&Cs(this,t),t.type==="mousedown"&&_e(t),t.type==="mutation"&&Ft(this,t))}get multiple(){var t;return((t=x(this,"data-multiple"))!=null?t:Bt)!==Bt}set multiple(t){x(this,"data-multiple",t?"":null)}get creatable(){var t;return((t=x(this,"data-creatable"))!=null?t:Bt)!==Bt}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,xe=({control:t})=>t?.disabled||t?.readOnly||!1,Ft=(t,e)=>{var n;const{_focus:o,_texts:i,items:s,control:a,list:r,multiple:c}=t;if(!a||!r)return;const l=gs(a),d=l.endsWith(mn)?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:_}of e?.detail||[]){for(const y of b)ye(y)&&p.unshift(y);for(const y of _)ye(y)&&p.push(y)}const h=c?p.length===1:p[0]===o;if(o&&h){const b=x(a,"aria-expanded"),_=x(a,"inputmode"),y=ye(o)?a:o,E=!p[0].isConnected;t._speak=`${i[E?"removed":"added"]} ${ot(p[0])}, `,(ws||o===a)&&be(t._speak),a!==y&&(x(a,"aria-expanded",null),x(a,"inputmode","none"),u=" ",a.focus()),setTimeout(()=>{var M;x(a,"aria-expanded",b),x(a,"inputmode",E?"none":_),(M=y?.focus)==null||M.call(y),x(a,"inputmode",_),t._speak="",_s?Dt(t,"blur",()=>Ft(t),hn):setTimeout(Ft,100,t)},100)}let m=0;const g=t.querySelector("select"),w=xe(t)?"":`${i.remove}, `;for(const b of s){const _=g?.options[m],y=ot(b),E=b.value||y,M=`${t._speak}${y}, ${w}${++m} ${i.of} ${s.length}`;x(b,"role","button"),x(b,"value",E),x(b,"tabindex","-1"),x(b,"aria-label",M),_?Object.assign(_,{textContent:y,value:E}):g?.appendChild(new Option(y,E,!0,!0))}g&&x(g,"multiple",c?"":null);for(const b of[...g?.options||[]].slice(m))b.remove();!c&&m>1&&console.warn("u-combobox: Multiple <data> found in single mode."),x(r,"aria-multiselectable",`${c}`),x(a,"list",un(r)),x(a,"aria-label",`${t._speak}${u}${mn}`),r.hasAttribute("popover")&&(x(a,"popovertarget",un(r)),x(r,"popover","manual"));const v=ot(s[0]);v!==t._item&&Ut(t),t._item=v,bn(t),vn(t),(n=ge(t))==null||n.takeRecords()},bn=t=>{var e;t.clear&&x(t.clear,"role","button"),t.clear&&(t.clear.hidden=!((e=t.control)!=null&&e.value)||xe(t))},vn=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)}},Ut=t=>{const{multiple:e,control:n,items:o}=t,i=ot(o[0]);!e&&n&&i!==n.value&&fn(n,i,i?ys:gn)},Ee=(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(h=>(x(h,"label")||ot(h)).trim().toLowerCase()===d);const p={bubbles:!0,cancelable:!0,detail:u};if(t.dispatchEvent(new CustomEvent("comboboxbeforematch",p))||(u=[...i].find(h=>h.selected)),e)return vn(t),u?ht(t,u,!1):s&&l?ht(t,{value:l},!1):(!c&&!l&&r[0]?ht(t,r[0]):Ut(t),be(o.invalid));for(const h of i)h.selected=h===u},ht=(t,e,n=!0)=>{const{control:o,items:i,multiple:s}=t,a=Ht("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 Ut(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))}},xs=(t,{target:e})=>{e instanceof HTMLElement&&(t._focus=e),be()},Es=t=>_e()||setTimeout(Ss,0,t),Ss=t=>{var e;!t._focus||t.contains((e=t._root)==null?void 0:e.activeElement)||(t.multiple||Ee(t),t._focus=void 0)},Ts=(t,e)=>{const{clientX:n,clientY:o,target:i}=e,{clear:s,control:a,items:r}=t;if(s?.contains(i))return a&&fn(a,"",gn),a?.focus();for(const c of r){const{top:l,right:d,bottom:u,left:p}=c.getBoundingClientRect();if(c.contains(i))return ht(t,c);if(o>=l&&o<=u&&n>=p&&n<=d)return c.focus()}i===t&&a?.focus()},$s=(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 ht(t,c,s)}else s||Ee(t,!1);bn(t)},Cs=(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=-1,o.focus(),Dt(o,"blur",()=>x(o,"tabindex",null),hn)),!(!l&&fs(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)),Ee(t)}else if((a==="Backspace"||a==="Delete")&&!d){if(e.preventDefault(),!r&&s[u])return ht(t,s[u]);l&&(u-=1)}else return l||i?.focus();e.preventDefault(),(n=s[Math.max(0,u)]||i)==null||n.focus()}};ms.define("u-combobox",we);var Se=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",ks=Se&&/android/i.test(navigator.userAgent),_n;Se&&/^Mac/i.test(((_n=navigator.userAgentData)==null?void 0:_n.platform)||navigator.platform);var As=`${ks?"data":"aria"}-labelledby`,Te=":host(:not([hidden])) { display: block }",zt=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 wn=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Ls=(t,...e)=>wn("add",t,e),Is=(t,...e)=>wn("remove",t,e),Vt=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(Sn("slot"),Sn("style",e)),qt=new WeakMap,yn=(t,e)=>{if(e===void 0)return qt.get(t);try{qt.get(t).disconnect(),qt.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),qt.set(t,n)}},Ms=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},xn=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},Os=0,En=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Os).toString(32)}`),t.id):"",Sn=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},Wt={define:(t,e)=>!Se||window.customElements.get(t)||window.customElements.define(t,e)},Rs=Te,Ps=Te,Ds=Te,Ns=':host(:not([hidden])) { display: inline-block; cursor: pointer }:host([aria-disabled="true"]) { cursor: default }',Gt="aria-controls",mt="aria-selected",Tn=class extends zt{constructor(){super(),Vt(this,Rs)}get tabList(){return Yt("u-tablist",this)[0]||null}get selectedIndex(){return Kt(this.tabs)}set selectedIndex(t){ke(this.tabs[t])}get tabs(){return Yt("u-tab",this)}get panels(){return Yt("u-tabpanel",this)}},$n=class extends zt{constructor(){super(),Vt(this,Ps)}connectedCallback(){A(this,"role","tablist"),Ls(this,"click,keydown",this),yn(this,{childList:!0}),this.tabs.length&&this.handleEvent()}disconnectedCallback(){Is(this,"click,keydown",this),yn(this,!1)}handleEvent(t){if(!t||t.type==="mutation"){const s=this.tabs[Math.max(this.selectedIndex,0)];return s?.setAttribute(mt,"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"&&ke(n[o]),t.type==="keydown"&&!Ms(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=Kt(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 Kt(this.tabs)}set selectedIndex(t){ke(this.tabs[t])}},$e=!1,Cn=class extends zt{static get observedAttributes(){return["id",mt,Gt]}constructor(){super(),Vt(this,Ns)}connectedCallback(){A(this,"role","tab"),this.tabIndex=this.selected?0:-1}attributeChangedCallback(){if(!$e&&this.selected&&this.tabList){$e=!0;const t=[...this.tabList.querySelectorAll("u-tab")],e=Yt("u-tabpanel",this.tabsElement||this),n=Ce(this,e[t.indexOf(this)]);n&&A(n,As,En(this)),t.forEach((o,i)=>{const s=Ce(o,e[i]);o.tabIndex=o===this?0:-1,A(o,mt,`${o===this}`),A(o,Gt,s?.id||null),s&&(s.hidden=s!==n)}),$e=!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,mt)==="true"}set selected(t){A(this,mt,`${!!t}`)}get index(){const t=this.tabList;return t?[...t.querySelectorAll("u-tab")].indexOf(this):0}get panel(){return Ce(this)}},kn=class extends zt{static get observedAttributes(){return["hidden"]}constructor(){super(),Vt(this,Ds)}connectedCallback(){A(this,"role","tabpanel"),this.hidden=Kt(this.tabs)===-1,this.attributeChangedCallback()}attributeChangedCallback(){const t=this.hidden;A(this,"aria-hidden",`${t}`),A(this,"tabindex",t||Hs(this.firstChild)?null:"0")}get tabsElement(){return this.closest("u-tabs")}get tabs(){const t=`u-tab[${Gt}="${this.id}"]`;return xn(this).querySelectorAll(t)}},Yt=(t,e)=>e.querySelectorAll(`${t}:not(:scope u-tabpanel ${t})`),Ce=(t,e)=>{const n=A(t,Gt)||En(e),o=xn(t).getElementById(n);return o?.nodeName==="U-TABPANEL"?o:null},Kt=t=>[...t].findIndex(e=>A(e,mt)==="true"),ke=t=>t&&A(t,"aria-disabled")!=="true"&&A(t,"aria-selected","true"),Hs=t=>t instanceof Element&&!t.matches(':disabled,[tabindex^="-"]')&&t.matches('[contenteditable],[controls],[href],[tabindex],input:not([type="hidden"]),select,textarea,button,summary,iframe');Wt.define("u-tabs",Tn),Wt.define("u-tablist",$n),Wt.define("u-tab",Cn),Wt.define("u-tabpanel",kn);const Bs="2.2.10",An="_alert_3aj69_1 _ds-alert_14b25_3",Ln="_app_3aj69_1",In="_sticky_3aj69_1",Mn="_avatar_3aj69_1 _ds-avatar_14b25_1",On="_badge_3aj69_1",Rn="_breadcrumbs_3aj69_1 _ds-breadcrumbs_14b25_5",Pn="_button_3aj69_1 _ds-button_14b25_1",Dn="_card_3aj69_1",Nn="_group_3aj69_1",Hn="_chip_3aj69_1 _ds-chip_14b25_5",Bn="_details_3aj69_1 _ds-details_14b25_3",jn="_dialog_3aj69_1 _ds-dialog_14b25_5",Fn="__drawer_3aj69_1",Un="_divider_3aj69_1",zn="_errorsummary_3aj69_1 _ds-error-summary_14b25_5",Vn="__errorsummary_3aj69_1",qn="_field_3aj69_1 _ds-field_14b25_1",Wn="__datalist_3aj69_1",Gn="_affixes_3aj69_1 _ds-field-affixes_14b25_3",Yn="_fieldset_3aj69_1 _ds-fieldset_14b25_3",Kn="_helptext_3aj69_1 _ds-focus_14b25_1",Xn="_input_3aj69_1 _ds-input_14b25_1",Qn="_grid_3aj69_1",Jn="_flex_3aj69_1",Zn="_link_3aj69_1",to="_logo_3aj69_1",eo="_pagination_3aj69_1 _ds-pagination_14b25_5",no="_popover_3aj69_1",oo="_progress_3aj69_1",io="__indeterminate_3aj69_1",so="_skeleton_3aj69_1 _ds-skeleton_14b25_5",ao="__skeleton_3aj69_1",ro="_spinner_3aj69_1",lo="_steps_3aj69_1",co="_table_3aj69_1 _ds-table_14b25_5",uo="__scrollShadow_3aj69_1",fo="_tabs_3aj69_1 _ds-tabs_14b25_5",po="__scrollMask_3aj69_1",ho="_tag_3aj69_1 _ds-tag_14b25_5",mo="_toast_3aj69_1",go="__toastClose_3aj69_1",bo="__toastOpen_3aj69_1",vo="__toastTimeout_3aj69_1",_o="_togglegroup_3aj69_1",wo="__tooltip_3aj69_1",yo="_heading_3aj69_1 _ds-heading_14b25_1",xo="_ingress_3aj69_1",Eo="_muted_3aj69_1",So="_info_3aj69_1",To="_prose_3aj69_1",$o="_validation_3aj69_1 _ds-validation-message_14b25_1",Co="_body_3aj69_173",ko="__checked_3aj69_1",T={alert:An,app:Ln,sticky:In,avatar:Mn,badge:On,breadcrumbs:Rn,button:Pn,card:Dn,group:Nn,chip:Hn,details:Bn,dialog:jn,_drawer:Fn,divider:Un,errorsummary:zn,_errorsummary:Vn,field:qn,_datalist:Wn,affixes:Gn,fieldset:Yn,helptext:Kn,input:Xn,grid:Qn,flex:Jn,link:Zn,logo:to,pagination:eo,popover:no,progress:oo,_indeterminate:io,skeleton:so,_skeleton:ao,spinner:ro,steps:lo,table:co,_scrollShadow:uo,tabs:fo,_scrollMask:po,tag:ho,toast:mo,_toastClose:go,_toastOpen:bo,_toastTimeout:vo,togglegroup:_o,_tooltip:wo,heading:yo,ingress:xo,muted:Eo,info:So,prose:To,validation:$o,body:Co,_checked:ko},js=Object.freeze(Object.defineProperty({__proto__:null,_checked:ko,_datalist:Wn,_drawer:Fn,_errorsummary:Vn,_indeterminate:io,_scrollMask:po,_scrollShadow:uo,_skeleton:ao,_toastClose:go,_toastOpen:bo,_toastTimeout:vo,_tooltip:wo,affixes:Gn,alert:An,app:Ln,avatar:Mn,badge:On,body:Co,breadcrumbs:Rn,button:Pn,card:Dn,chip:Hn,default:T,details:Bn,dialog:jn,divider:Un,errorsummary:zn,field:qn,fieldset:Yn,flex:Jn,grid:Qn,group:Nn,heading:yo,helptext:Kn,info:So,ingress:xo,input:Xn,link:Zn,logo:to,muted:Eo,pagination:eo,popover:no,progress:oo,prose:To,skeleton:so,spinner:ro,steps:lo,sticky:In,table:co,tabs:fo,tag:ho,toast:mo,togglegroup:_o,validation:$o},Symbol.toStringTag,{value:"Module"})),gt=Math.min,R=Math.max,Xt=Math.round,Qt=Math.floor,V=t=>({x:t,y:t}),Fs={left:"right",right:"left",bottom:"top",top:"bottom"},Us={start:"end",end:"start"};function Ao(t,e,n){return R(t,gt(e,n))}function Jt(t,e){return typeof t=="function"?t(e):t}function it(t){return t.split("-")[0]}function Zt(t){return t.split("-")[1]}function Lo(t){return t==="x"?"y":"x"}function Io(t){return t==="y"?"height":"width"}const zs=new Set(["top","bottom"]);function Q(t){return zs.has(it(t))?"y":"x"}function Mo(t){return Lo(Q(t))}function Vs(t,e,n){n===void 0&&(n=!1);const o=Zt(t),i=Mo(t),s=Io(i);let a=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=te(a)),[a,te(a)]}function qs(t){const e=te(t);return[Ae(t),e,Ae(e)]}function Ae(t){return t.replace(/start|end/g,e=>Us[e])}const Oo=["left","right"],Ro=["right","left"],Ws=["top","bottom"],Gs=["bottom","top"];function Ys(t,e,n){switch(t){case"top":case"bottom":return n?e?Ro:Oo:e?Oo:Ro;case"left":case"right":return e?Ws:Gs;default:return[]}}function Ks(t,e,n,o){const i=Zt(t);let s=Ys(it(t),n==="start",o);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(Ae)))),s}function te(t){return t.replace(/left|right|bottom|top/g,e=>Fs[e])}function Xs(t){return{top:0,right:0,bottom:0,left:0,...t}}function Qs(t){return typeof t!="number"?Xs(t):{top:t,right:t,bottom:t,left:t}}function ee(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 Po(t,e,n){let{reference:o,floating:i}=t;const s=Q(e),a=Mo(e),r=Io(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 h;switch(c){case"top":h={x:d,y:o.y-i.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:u};break;case"left":h={x:o.x-i.width,y:u};break;default:h={x:o.x,y:o.y}}switch(Zt(e)){case"start":h[a]-=p*(n&&l?-1:1);break;case"end":h[a]+=p*(n&&l?-1:1);break}return h}const Js=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}=Po(l,o,c),p=o,h={},m=0;for(let g=0;g<r.length;g++){const{name:w,fn:v}=r[g],{x:b,y:_,data:y,reset:E}=await v({x:d,y:u,initialPlacement:o,placement:p,strategy:i,middlewareData:h,rects:l,platform:a,elements:{reference:t,floating:e}});d=b??d,u=_??u,h={...h,[w]:{...h[w],...y}},E&&m<=50&&(m++,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}=Po(l,p,c)),g=-1)}return{x:d,y:u,placement:p,strategy:i,middlewareData:h}};async function Le(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:h=0}=Jt(e,t),m=Qs(h),w=r[p?u==="floating"?"reference":"floating":u],v=ee(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.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,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(r.floating)),y=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},E=ee(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:b,offsetParent:_,strategy:c}):b);return{top:(v.top-E.top+m.top)/y.y,bottom:(E.bottom-v.bottom+m.bottom)/y.y,left:(v.left-E.left+m.left)/y.x,right:(E.right-v.right+m.right)/y.x}}const Zs=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:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...w}=Jt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=it(i),b=Q(r),_=it(r)===r,y=await(c.isRTL==null?void 0:c.isRTL(l.floating)),E=p||(_||!g?[te(r)]:qs(r)),M=m!=="none";!p&&M&&E.push(...Ks(r,g,m,y));const G=[r,...E],dt=await Le(e,w),ut=[];let X=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&ut.push(dt[v]),u){const ft=Vs(i,a,y);ut.push(dt[ft[0]],dt[ft[1]])}if(X=[...X,{placement:i,overflows:ut}],!ut.every(ft=>ft<=0)){var Mt,Ot;const ft=(((Mt=s.flip)==null?void 0:Mt.index)||0)+1,sn=G[ft];if(sn&&(!(u==="alignment"?b!==Q(sn):!1)||X.every(z=>Q(z.placement)===b?z.overflows[0]>0:!0)))return{data:{index:ft,overflows:X},reset:{placement:sn}};let Pt=(Ot=X.filter(pt=>pt.overflows[0]<=0).sort((pt,z)=>pt.overflows[1]-z.overflows[1])[0])==null?void 0:Ot.placement;if(!Pt)switch(h){case"bestFit":{var Rt;const pt=(Rt=X.filter(z=>{if(M){const et=Q(z.placement);return et===b||et==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(et=>et>0).reduce((et,Sl)=>et+Sl,0)]).sort((z,et)=>z[1]-et[1])[0])==null?void 0:Rt[0];pt&&(Pt=pt);break}case"initialPlacement":Pt=r;break}if(i!==Pt)return{reset:{placement:Pt}}}return{}}}},ta=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:w=>{let{x:v,y:b}=w;return{x:v,y:b}}},...c}=Jt(t,e),l={x:n,y:o},d=await Le(e,c),u=Q(it(i)),p=Lo(u);let h=l[p],m=l[u];if(s){const w=p==="y"?"top":"left",v=p==="y"?"bottom":"right",b=h+d[w],_=h-d[v];h=Ao(b,h,_)}if(a){const w=u==="y"?"top":"left",v=u==="y"?"bottom":"right",b=m+d[w],_=m-d[v];m=Ao(b,m,_)}const g=r.fn({...e,[p]:h,[u]:m});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[p]:s,[u]:a}}}}}},ea=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}=Jt(t,e),d=await Le(e,l),u=it(i),p=Zt(i),h=Q(i)==="y",{width:m,height:g}=s.floating;let w,v;u==="top"||u==="bottom"?(w=u,v=p===(await(a.isRTL==null?void 0:a.isRTL(r.floating))?"start":"end")?"left":"right"):(v=u,w=p==="end"?"top":"bottom");const b=g-d.top-d.bottom,_=m-d.left-d.right,y=gt(g-d[w],b),E=gt(m-d[v],_),M=!e.middlewareData.shift;let G=y,dt=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(dt=_),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(G=b),M&&!p){const X=R(d.left,0),Mt=R(d.right,0),Ot=R(d.top,0),Rt=R(d.bottom,0);h?dt=m-2*(X!==0||Mt!==0?X+Mt:R(d.left,d.right)):G=g-2*(Ot!==0||Rt!==0?Ot+Rt:R(d.top,d.bottom))}await c({...e,availableWidth:dt,availableHeight:G});const ut=await a.getDimensions(r.floating);return m!==ut.width||g!==ut.height?{reset:{rects:!0}}:{}}}};function ne(){return typeof window<"u"}function bt(t){return Do(t)?(t.nodeName||"").toLowerCase():"#document"}function P(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function q(t){var e;return(e=(Do(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Do(t){return ne()?t instanceof Node||t instanceof P(t).Node:!1}function H(t){return ne()?t instanceof Element||t instanceof P(t).Element:!1}function W(t){return ne()?t instanceof HTMLElement||t instanceof P(t).HTMLElement:!1}function No(t){return!ne()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof P(t).ShadowRoot}const na=new Set(["inline","contents"]);function Et(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=B(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!na.has(i)}const oa=new Set(["table","td","th"]);function ia(t){return oa.has(bt(t))}const sa=[":popover-open",":modal"];function oe(t){return sa.some(e=>{try{return t.matches(e)}catch{return!1}})}const aa=["transform","translate","scale","rotate","perspective"],ra=["transform","translate","scale","rotate","perspective","filter"],la=["paint","layout","strict","content"];function Ie(t){const e=Me(),n=H(t)?B(t):t;return aa.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)||ra.some(o=>(n.willChange||"").includes(o))||la.some(o=>(n.contain||"").includes(o))}function ca(t){let e=J(t);for(;W(e)&&!vt(e);){if(Ie(e))return e;if(oe(e))return null;e=J(e)}return null}function Me(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const da=new Set(["html","body","#document"]);function vt(t){return da.has(bt(t))}function B(t){return P(t).getComputedStyle(t)}function ie(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||No(t)&&t.host||q(t);return No(e)?e.host:e}function Ho(t){const e=J(t);return vt(e)?t.ownerDocument?t.ownerDocument.body:t.body:W(e)&&Et(e)?e:Ho(e)}function St(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Ho(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),a=P(i);if(s){const r=Oe(a);return e.concat(a,a.visualViewport||[],Et(i)?i:[],r&&n?St(r):[])}return e.concat(i,St(i,[],n))}function Oe(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Bo(t){const e=B(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=W(t),s=i?t.offsetWidth:n,a=i?t.offsetHeight:o,r=Xt(n)!==s||Xt(o)!==a;return r&&(n=s,o=a),{width:n,height:o,$:r}}function Re(t){return H(t)?t:t.contextElement}function _t(t){const e=Re(t);if(!W(e))return V(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=Bo(e);let a=(s?Xt(n.width):n.width)/o,r=(s?Xt(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!r||!Number.isFinite(r))&&(r=1),{x:a,y:r}}const ua=V(0);function jo(t){const e=P(t);return!Me()||!e.visualViewport?ua:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function fa(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=Re(t);let a=V(1);e&&(o?H(o)&&(a=_t(o)):a=_t(t));const r=fa(s,n,o)?jo(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),h=o&&H(o)?P(o):o;let m=p,g=Oe(m);for(;g&&o&&h!==m;){const w=_t(g),v=g.getBoundingClientRect(),b=B(g),_=v.left+(g.clientLeft+parseFloat(b.paddingLeft))*w.x,y=v.top+(g.clientTop+parseFloat(b.paddingTop))*w.y;c*=w.x,l*=w.y,d*=w.x,u*=w.y,c+=_,l+=y,m=P(g),g=Oe(m)}}return ee({width:d,height:u,x:c,y:l})}function se(t,e){const n=ie(t).scrollLeft;return e?e.left+n:st(q(t)).left+n}function Fo(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-se(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function pa(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s=i==="fixed",a=q(o),r=e?oe(e.floating):!1;if(o===a||r&&s)return n;let c={scrollLeft:0,scrollTop:0},l=V(1);const d=V(0),u=W(o);if((u||!u&&!s)&&((bt(o)!=="body"||Et(a))&&(c=ie(o)),W(o))){const h=st(o);l=_t(o),d.x=h.x+o.clientLeft,d.y=h.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 ha(t){return Array.from(t.getClientRects())}function ma(t){const e=q(t),n=ie(t),o=t.ownerDocument.body,i=R(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=R(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+se(t);const r=-n.scrollTop;return B(o).direction==="rtl"&&(a+=R(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:r}}const Uo=25;function ga(t,e){const n=P(t),o=q(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=Me();(!d||d&&e==="fixed")&&(r=i.offsetLeft,c=i.offsetTop)}const l=se(o);if(l<=0){const d=o.ownerDocument,u=d.body,p=getComputedStyle(u),h=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(o.clientWidth-u.clientWidth-h);m<=Uo&&(s-=m)}else l<=Uo&&(s+=l);return{width:s,height:a,x:r,y:c}}const ba=new Set(["absolute","fixed"]);function va(t,e){const n=st(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=W(t)?_t(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 zo(t,e,n){let o;if(e==="viewport")o=ga(t,n);else if(e==="document")o=ma(q(t));else if(H(e))o=va(e,n);else{const i=jo(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return ee(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 _a(t,e){const n=e.get(t);if(n)return n;let o=St(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=Ie(a);!c&&r.position==="fixed"&&(i=null),(s?!c&&!i:!c&&r.position==="static"&&!!i&&ba.has(i.position)||Et(a)&&!c&&Vo(t,a))?o=o.filter(d=>d!==a):i=r,a=J(a)}return e.set(t,o),o}function wa(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?oe(e)?[]:_a(e,this._c):[].concat(n),o],r=a[0],c=a.reduce((l,d)=>{const u=zo(e,d,i);return l.top=R(u.top,l.top),l.right=gt(u.right,l.right),l.bottom=gt(u.bottom,l.bottom),l.left=R(u.left,l.left),l},zo(e,r,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ya(t){const{width:e,height:n}=Bo(t);return{width:e,height:n}}function xa(t,e,n){const o=W(e),i=q(e),s=n==="fixed",a=st(t,!0,s,e);let r={scrollLeft:0,scrollTop:0};const c=V(0);function l(){c.x=se(i)}if(o||!o&&!s)if((bt(e)!=="body"||Et(i))&&(r=ie(e)),o){const h=st(e,!0,s,e);c.x=h.x+e.clientLeft,c.y=h.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 Pe(t){return B(t).position==="static"}function qo(t,e){if(!W(t)||B(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return q(t)===n&&(n=n.ownerDocument.body),n}function Wo(t,e){const n=P(t);if(oe(t))return n;if(!W(t)){let i=J(t);for(;i&&!vt(i);){if(H(i)&&!Pe(i))return i;i=J(i)}return n}let o=qo(t,e);for(;o&&ia(o)&&Pe(o);)o=qo(o,e);return o&&vt(o)&&Pe(o)&&!Ie(o)?n:o||ca(t)||n}const Ea=async function(t){const e=this.getOffsetParent||Wo,n=this.getDimensions,o=await n(t.floating);return{reference:xa(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Sa(t){return B(t).direction==="rtl"}const Ta={convertOffsetParentRelativeRectToViewportRelativeRect:pa,getDocumentElement:q,getClippingRect:wa,getOffsetParent:Wo,getElementRects:Ea,getClientRects:ha,getDimensions:ya,getScale:_t,isElement:H,isRTL:Sa};function Go(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function $a(t,e){let n=null,o;const i=q(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:h}=l;if(r||e(),!p||!h)return;const m=Qt(u),g=Qt(i.clientWidth-(d+p)),w=Qt(i.clientHeight-(u+h)),v=Qt(d),_={rootMargin:-m+"px "+-g+"px "+-w+"px "+-v+"px",threshold:R(0,gt(1,c))||1};let y=!0;function E(M){const G=M[0].intersectionRatio;if(G!==c){if(!y)return a();G?a(!1,G):o=setTimeout(()=>{a(!1,1e-7)},1e3)}G===1&&!Go(l,t.getBoundingClientRect())&&a(),y=!1}try{n=new IntersectionObserver(E,{..._,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,_)}n.observe(t)}return a(!0),s}function Ca(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=Re(t),d=i||s?[...l?St(l):[],...St(e)]:[];d.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const u=l&&r?$a(l,n):null;let p=-1,h=null;a&&(h=new ResizeObserver(v=>{let[b]=v;b&&b.target===l&&h&&(h.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=h)==null||_.observe(e)})),n()}),l&&!c&&h.observe(l),h.observe(e));let m,g=c?st(t):null;c&&w();function w(){const v=st(t);g&&!Go(g,v)&&n(),g=v,m=requestAnimationFrame(w)}return n(),()=>{var v;d.forEach(b=>{i&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),u?.(),(v=h)==null||v.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const Yo=ta,Ko=Zs,ka=ea,Aa=(t,e,n)=>{const o=new Map,i={platform:Ta,...n},s={...i.platform,_c:o};return Js(t,e,{...i,platform:s})};function Xo(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=Xo(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function La(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Xo(t))&&(o&&(o+=" "),o+=e);return o}const D={capture:!0,passive:!0},at=typeof window<"u"&&typeof document<"u";function Ia(t,e){let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>t(...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 Ma=0;const Oa=`${Date.now().toString(36)}${Math.random().toString(36).slice(2,5)}`;function ae(t){return t.id||(t.id=`${Oa}${++Ma}`),t.id}const Qo=(t,e,[...n])=>{for(const o of n[0].split(","))n[0]=o,e[`${t}EventListener`](...n)},$=(t,...e)=>{Tt&&(t===window||t===document)&&Tt.push(()=>Jo(t,...e)),Qo("add",t,e)},Jo=(t,...e)=>Qo("remove",t,e);let Tt=null;const N=t=>{if(!at||!window.requestAnimationFrame)return;window._mtdsUnbindEvents||(window._mtdsUnbindEvents=new Map);const e=()=>requestAnimationFrame(()=>{const n=String(t).replace(/(\n|\s)/g,"");window._mtdsUnbindEvents?.get(n)?.map(o=>o()),Tt=[],t(),window._mtdsUnbindEvents?.set(n,Tt?.slice(0)),Tt=null});document.readyState==="complete"?e():$(window,"load",e)},De=new WeakMap,Ra=`.${T.dialog.split(" ")[0]}`;function rt(t,e,{contain:n,middleware:o,placement:i,...s}={}){if(De.get(t)?.(),De.delete(t),e){const a=t.closest(Ra)?.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";De.set(t,Ca(e,t,()=>{if(!t.isConnected||!e.isConnected||t.hidden)return rt(t,!1);Aa(e,t,{...s,placement:i||d,middleware:[Ko({padding:l}),Yo(),...n?[ka({padding:l,apply:n})]:[],...o||[]]}).then(({x:u,y:p})=>{t.style.left=`${u}px`,t.style.top=`${p}px`})}))}}function Zo(t){let e=0;const n=()=>setTimeout(o,200),o=()=>{t([],i),i.takeRecords(),e=0},i=new MutationObserver(()=>{e||(e=requestAnimationFrame(n))});return i}const Ne=new WeakMap,wt=(t,e,n)=>{if(!at||!window.requestAnimationFrame)return;const o=t.getElementsByClassName(e),i=Ne.get(t)||[];i.length||(Ne.set(t,i),Zo((s,a)=>{if(t.isConnected&&i?.length)for(const r of i)r();else a?.disconnect(),Ne.delete(t)}).observe(t,{attributeFilter:["class","hidden"],attributes:!0,childList:!0,subtree:!0})),i.push(()=>n(o))},He=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},Pa=typeof HTMLElement>"u"?class{}:HTMLElement,Da=`.${T.breadcrumbs.split(" ")[0]}`,Na=`.${T.card.split(" ")[0]}`,ti=`.${T.chip.split(" ")[0]}`,Ha=`.${T.helptext.split(" ")[0]}`,Ba=`.${T.pagination.split(" ")[0]}`,ja='summary,u-summary,a,button,[role="tab"],[role="button"]',Fa="click,toggle,submit,change",Be="mattilsynet.matomo.cloud",j="mtds-analytics-banner",Ua="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function ei(t,e={}){if(at){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${Be}/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"&&za();const a=s?`https://cdn.matomo.cloud/${Be}/container_${s}.js`:`https://cdn.matomo.cloud/${Be}/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 za(){if(document.getElementById(j)||window.localStorage.getItem(j))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${j}" data-analytics="ignore"><style>
8
+ ::slotted(data:focus) { ${cs} }`,pn="beforeinput,blur,focus,click,input,keydown,mousedown",hn={once:!0,passive:!0},Bt="false",_s=rs&&!ln,ys=ln||ls,mn="​".repeat(5),gn="deleteContentBackward",ws="insertText",jt={added:"Added",empty:"No selected",found:"Navigate left to find %d selected",invalid:"Invalid value",of:"of",remove:"Press to remove",removed:"Removed"},ye=class extends ds{constructor(){super(),this._item="",this._speak="",this._texts=as({},jt),this._value="",this.shadowRoot||this.attachShadow({mode:"open"}).append(Ht("slot"),Ht("style",vs))}static get observedAttributes(){return Object.keys(jt).map(t=>`data-sr-${t}`)}connectedCallback(){this._root=ps(this),Dt(this,pn,this,!0),ge(this,{attributeFilter:["value","id"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(Ft,0,this),setTimeout(Ut,0,this)}attributeChangedCallback(t,e,n){const o=t.split("data-sr-")[1];jt[o]&&(this._texts[o]=n||jt[o])}disconnectedCallback(){ge(this,!1),us(this,pn,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;xe(this)||(t.type==="beforeinput"&&(this._value=e?.value||""),t.type==="blur"&&Es(this),t.type==="click"&&Ts(this,t),t.type==="focus"&&xs(this,t),t.type==="input"&&$s(this,t),t.type==="keydown"&&Cs(this,t),t.type==="mousedown"&&_e(t),t.type==="mutation"&&Ft(this,t))}get multiple(){var t;return((t=x(this,"data-multiple"))!=null?t:Bt)!==Bt}set multiple(t){x(this,"data-multiple",t?"":null)}get creatable(){var t;return((t=x(this,"data-creatable"))!=null?t:Bt)!==Bt}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())||""},we=t=>t instanceof HTMLDataElement,xe=({control:t})=>t?.disabled||t?.readOnly||!1,Ft=(t,e)=>{var n;const{_focus:o,_texts:i,items:s,control:a,list:r,multiple:c}=t;if(!a||!r)return;const l=gs(a),d=l.endsWith(mn)?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:_}of e?.detail||[]){for(const w of b)we(w)&&p.unshift(w);for(const w of _)we(w)&&p.push(w)}const h=c?p.length===1:p[0]===o;if(o&&h){const b=x(a,"aria-expanded"),_=x(a,"inputmode"),w=we(o)?a:o,E=!p[0].isConnected;t._speak=`${i[E?"removed":"added"]} ${ot(p[0])}, `,(ys||o===a)&&be(t._speak),a!==w&&(x(a,"aria-expanded",null),x(a,"inputmode","none"),u=" ",a.focus()),setTimeout(()=>{var M;x(a,"aria-expanded",b),x(a,"inputmode",E?"none":_),(M=w?.focus)==null||M.call(w),x(a,"inputmode",_),t._speak="",_s?Dt(t,"blur",()=>Ft(t),hn):setTimeout(Ft,100,t)},100)}let m=0;const g=t.querySelector("select"),y=xe(t)?"":`${i.remove}, `;for(const b of s){const _=g?.options[m],w=ot(b),E=b.value||w,M=`${t._speak}${w}, ${y}${++m} ${i.of} ${s.length}`;x(b,"role","button"),x(b,"value",E),x(b,"tabindex","-1"),x(b,"aria-label",M),_?Object.assign(_,{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(m))b.remove();!c&&m>1&&console.warn("u-combobox: Multiple <data> found in single mode."),x(r,"aria-multiselectable",`${c}`),x(a,"list",un(r)),x(a,"aria-label",`${t._speak}${u}${mn}`),r.hasAttribute("popover")&&(x(a,"popovertarget",un(r)),x(r,"popover","manual"));const v=ot(s[0]);v!==t._item&&Ut(t),t._item=v,bn(t),vn(t),(n=ge(t))==null||n.takeRecords()},bn=t=>{var e;t.clear&&x(t.clear,"role","button"),t.clear&&(t.clear.hidden=!((e=t.control)!=null&&e.value)||xe(t))},vn=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)}},Ut=t=>{const{multiple:e,control:n,items:o}=t,i=ot(o[0]);!e&&n&&i!==n.value&&fn(n,i,i?ws:gn)},Ee=(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(h=>(x(h,"label")||ot(h)).trim().toLowerCase()===d);const p={bubbles:!0,cancelable:!0,detail:u};if(t.dispatchEvent(new CustomEvent("comboboxbeforematch",p))||(u=[...i].find(h=>h.selected)),e)return vn(t),u?ht(t,u,!1):s&&l?ht(t,{value:l},!1):(!c&&!l&&r[0]?ht(t,r[0]):Ut(t),be(o.invalid));for(const h of i)h.selected=h===u},ht=(t,e,n=!0)=>{const{control:o,items:i,multiple:s}=t,a=Ht("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 Ut(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))}},xs=(t,{target:e})=>{e instanceof HTMLElement&&(t._focus=e),be()},Es=t=>_e()||setTimeout(Ss,0,t),Ss=t=>{var e;!t._focus||t.contains((e=t._root)==null?void 0:e.activeElement)||(t.multiple||Ee(t),t._focus=void 0)},Ts=(t,e)=>{const{clientX:n,clientY:o,target:i}=e,{clear:s,control:a,items:r}=t;if(s?.contains(i))return a&&fn(a,"",gn),a?.focus();for(const c of r){const{top:l,right:d,bottom:u,left:p}=c.getBoundingClientRect();if(c.contains(i))return ht(t,c);if(o>=l&&o<=u&&n>=p&&n<=d)return c.focus()}i===t&&a?.focus()},$s=(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 ht(t,c,s)}else s||Ee(t,!1);bn(t)},Cs=(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=-1,o.focus(),Dt(o,"blur",()=>x(o,"tabindex",null),hn)),!(!l&&fs(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)),Ee(t)}else if((a==="Backspace"||a==="Delete")&&!d){if(e.preventDefault(),!r&&s[u])return ht(t,s[u]);l&&(u-=1)}else return l||i?.focus();e.preventDefault(),(n=s[Math.max(0,u)]||i)==null||n.focus()}};ms.define("u-combobox",ye);var Se=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",ks=Se&&/android/i.test(navigator.userAgent),_n;Se&&/^Mac/i.test(((_n=navigator.userAgentData)==null?void 0:_n.platform)||navigator.platform);var As=`${ks?"data":"aria"}-labelledby`,Te=":host(:not([hidden])) { display: block }",zt=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 yn=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Ls=(t,...e)=>yn("add",t,e),Is=(t,...e)=>yn("remove",t,e),Vt=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(Sn("slot"),Sn("style",e)),qt=new WeakMap,wn=(t,e)=>{if(e===void 0)return qt.get(t);try{qt.get(t).disconnect(),qt.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),qt.set(t,n)}},Ms=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},xn=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},Os=0,En=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Os).toString(32)}`),t.id):"",Sn=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},Wt={define:(t,e)=>!Se||window.customElements.get(t)||window.customElements.define(t,e)},Rs=Te,Ps=Te,Ds=Te,Ns=':host(:not([hidden])) { display: inline-block; cursor: pointer }:host([aria-disabled="true"]) { cursor: default }',Gt="aria-controls",mt="aria-selected",Tn=class extends zt{constructor(){super(),Vt(this,Rs)}get tabList(){return Yt("u-tablist",this)[0]||null}get selectedIndex(){return Kt(this.tabs)}set selectedIndex(t){ke(this.tabs[t])}get tabs(){return Yt("u-tab",this)}get panels(){return Yt("u-tabpanel",this)}},$n=class extends zt{constructor(){super(),Vt(this,Ps)}connectedCallback(){A(this,"role","tablist"),Ls(this,"click,keydown",this),wn(this,{childList:!0}),this.tabs.length&&this.handleEvent()}disconnectedCallback(){Is(this,"click,keydown",this),wn(this,!1)}handleEvent(t){if(!t||t.type==="mutation"){const s=this.tabs[Math.max(this.selectedIndex,0)];return s?.setAttribute(mt,"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"&&ke(n[o]),t.type==="keydown"&&!Ms(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=Kt(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 Kt(this.tabs)}set selectedIndex(t){ke(this.tabs[t])}},$e=!1,Cn=class extends zt{static get observedAttributes(){return["id",mt,Gt]}constructor(){super(),Vt(this,Ns)}connectedCallback(){A(this,"role","tab"),this.tabIndex=this.selected?0:-1}attributeChangedCallback(){if(!$e&&this.selected&&this.tabList){$e=!0;const t=[...this.tabList.querySelectorAll("u-tab")],e=Yt("u-tabpanel",this.tabsElement||this),n=Ce(this,e[t.indexOf(this)]);n&&A(n,As,En(this)),t.forEach((o,i)=>{const s=Ce(o,e[i]);o.tabIndex=o===this?0:-1,A(o,mt,`${o===this}`),A(o,Gt,s?.id||null),s&&(s.hidden=s!==n)}),$e=!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,mt)==="true"}set selected(t){A(this,mt,`${!!t}`)}get index(){const t=this.tabList;return t?[...t.querySelectorAll("u-tab")].indexOf(this):0}get panel(){return Ce(this)}},kn=class extends zt{static get observedAttributes(){return["hidden"]}constructor(){super(),Vt(this,Ds)}connectedCallback(){A(this,"role","tabpanel"),this.hidden=Kt(this.tabs)===-1,this.attributeChangedCallback()}attributeChangedCallback(){const t=this.hidden;A(this,"aria-hidden",`${t}`),A(this,"tabindex",t||Hs(this.firstChild)?null:"0")}get tabsElement(){return this.closest("u-tabs")}get tabs(){const t=`u-tab[${Gt}="${this.id}"]`;return xn(this).querySelectorAll(t)}},Yt=(t,e)=>e.querySelectorAll(`${t}:not(:scope u-tabpanel ${t})`),Ce=(t,e)=>{const n=A(t,Gt)||En(e),o=xn(t).getElementById(n);return o?.nodeName==="U-TABPANEL"?o:null},Kt=t=>[...t].findIndex(e=>A(e,mt)==="true"),ke=t=>t&&A(t,"aria-disabled")!=="true"&&A(t,"aria-selected","true"),Hs=t=>t instanceof Element&&!t.matches(':disabled,[tabindex^="-"]')&&t.matches('[contenteditable],[controls],[href],[tabindex],input:not([type="hidden"]),select,textarea,button,summary,iframe');Wt.define("u-tabs",Tn),Wt.define("u-tablist",$n),Wt.define("u-tab",Cn),Wt.define("u-tabpanel",kn);const Bs="2.11.0-canary",An="_alert_3aj69_1 _ds-alert_14b25_3",Ln="_app_3aj69_1",In="_sticky_3aj69_1",Mn="_avatar_3aj69_1 _ds-avatar_14b25_1",On="_badge_3aj69_1",Rn="_breadcrumbs_3aj69_1 _ds-breadcrumbs_14b25_5",Pn="_button_3aj69_1 _ds-button_14b25_1",Dn="_card_3aj69_1",Nn="_group_3aj69_1",Hn="_chip_3aj69_1 _ds-chip_14b25_5",Bn="_details_3aj69_1 _ds-details_14b25_3",jn="_dialog_3aj69_1 _ds-dialog_14b25_5",Fn="__drawer_3aj69_1",Un="_divider_3aj69_1",zn="_errorsummary_3aj69_1 _ds-error-summary_14b25_5",Vn="__errorsummary_3aj69_1",qn="_field_3aj69_1 _ds-field_14b25_1",Wn="__datalist_3aj69_1",Gn="_affixes_3aj69_1 _ds-field-affixes_14b25_3",Yn="_fieldset_3aj69_1 _ds-fieldset_14b25_3",Kn="_helptext_3aj69_1 _ds-focus_14b25_1",Xn="_input_3aj69_1 _ds-input_14b25_1",Qn="_grid_3aj69_1",Jn="_flex_3aj69_1",Zn="_link_3aj69_1",to="_logo_3aj69_1",eo="_pagination_3aj69_1 _ds-pagination_14b25_5",no="_popover_3aj69_1",oo="_progress_3aj69_1",io="__indeterminate_3aj69_1",so="_skeleton_3aj69_1 _ds-skeleton_14b25_5",ao="__skeleton_3aj69_1",ro="_spinner_3aj69_1",lo="_steps_3aj69_1",co="_table_3aj69_1 _ds-table_14b25_5",uo="__scrollShadow_3aj69_1",fo="_tabs_3aj69_1 _ds-tabs_14b25_5",po="__scrollMask_3aj69_1",ho="_tag_3aj69_1 _ds-tag_14b25_5",mo="_toast_3aj69_1",go="__toastClose_3aj69_1",bo="__toastOpen_3aj69_1",vo="__toastTimeout_3aj69_1",_o="_togglegroup_3aj69_1",yo="__tooltip_3aj69_1",wo="_heading_3aj69_1 _ds-heading_14b25_1",xo="_ingress_3aj69_1",Eo="_muted_3aj69_1",So="_info_3aj69_1",To="_prose_3aj69_1",$o="_validation_3aj69_1 _ds-validation-message_14b25_1",Co="_body_3aj69_173",ko="__checked_3aj69_1",T={alert:An,app:Ln,sticky:In,avatar:Mn,badge:On,breadcrumbs:Rn,button:Pn,card:Dn,group:Nn,chip:Hn,details:Bn,dialog:jn,_drawer:Fn,divider:Un,errorsummary:zn,_errorsummary:Vn,field:qn,_datalist:Wn,affixes:Gn,fieldset:Yn,helptext:Kn,input:Xn,grid:Qn,flex:Jn,link:Zn,logo:to,pagination:eo,popover:no,progress:oo,_indeterminate:io,skeleton:so,_skeleton:ao,spinner:ro,steps:lo,table:co,_scrollShadow:uo,tabs:fo,_scrollMask:po,tag:ho,toast:mo,_toastClose:go,_toastOpen:bo,_toastTimeout:vo,togglegroup:_o,_tooltip:yo,heading:wo,ingress:xo,muted:Eo,info:So,prose:To,validation:$o,body:Co,_checked:ko},js=Object.freeze(Object.defineProperty({__proto__:null,_checked:ko,_datalist:Wn,_drawer:Fn,_errorsummary:Vn,_indeterminate:io,_scrollMask:po,_scrollShadow:uo,_skeleton:ao,_toastClose:go,_toastOpen:bo,_toastTimeout:vo,_tooltip:yo,affixes:Gn,alert:An,app:Ln,avatar:Mn,badge:On,body:Co,breadcrumbs:Rn,button:Pn,card:Dn,chip:Hn,default:T,details:Bn,dialog:jn,divider:Un,errorsummary:zn,field:qn,fieldset:Yn,flex:Jn,grid:Qn,group:Nn,heading:wo,helptext:Kn,info:So,ingress:xo,input:Xn,link:Zn,logo:to,muted:Eo,pagination:eo,popover:no,progress:oo,prose:To,skeleton:so,spinner:ro,steps:lo,sticky:In,table:co,tabs:fo,tag:ho,toast:mo,togglegroup:_o,validation:$o},Symbol.toStringTag,{value:"Module"})),gt=Math.min,R=Math.max,Xt=Math.round,Qt=Math.floor,V=t=>({x:t,y:t}),Fs={left:"right",right:"left",bottom:"top",top:"bottom"},Us={start:"end",end:"start"};function Ao(t,e,n){return R(t,gt(e,n))}function Jt(t,e){return typeof t=="function"?t(e):t}function it(t){return t.split("-")[0]}function Zt(t){return t.split("-")[1]}function Lo(t){return t==="x"?"y":"x"}function Io(t){return t==="y"?"height":"width"}const zs=new Set(["top","bottom"]);function Q(t){return zs.has(it(t))?"y":"x"}function Mo(t){return Lo(Q(t))}function Vs(t,e,n){n===void 0&&(n=!1);const o=Zt(t),i=Mo(t),s=Io(i);let a=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=te(a)),[a,te(a)]}function qs(t){const e=te(t);return[Ae(t),e,Ae(e)]}function Ae(t){return t.replace(/start|end/g,e=>Us[e])}const Oo=["left","right"],Ro=["right","left"],Ws=["top","bottom"],Gs=["bottom","top"];function Ys(t,e,n){switch(t){case"top":case"bottom":return n?e?Ro:Oo:e?Oo:Ro;case"left":case"right":return e?Ws:Gs;default:return[]}}function Ks(t,e,n,o){const i=Zt(t);let s=Ys(it(t),n==="start",o);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(Ae)))),s}function te(t){return t.replace(/left|right|bottom|top/g,e=>Fs[e])}function Xs(t){return{top:0,right:0,bottom:0,left:0,...t}}function Qs(t){return typeof t!="number"?Xs(t):{top:t,right:t,bottom:t,left:t}}function ee(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 Po(t,e,n){let{reference:o,floating:i}=t;const s=Q(e),a=Mo(e),r=Io(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 h;switch(c){case"top":h={x:d,y:o.y-i.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:u};break;case"left":h={x:o.x-i.width,y:u};break;default:h={x:o.x,y:o.y}}switch(Zt(e)){case"start":h[a]-=p*(n&&l?-1:1);break;case"end":h[a]+=p*(n&&l?-1:1);break}return h}const Js=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}=Po(l,o,c),p=o,h={},m=0;for(let g=0;g<r.length;g++){const{name:y,fn:v}=r[g],{x:b,y:_,data:w,reset:E}=await v({x:d,y:u,initialPlacement:o,placement:p,strategy:i,middlewareData:h,rects:l,platform:a,elements:{reference:t,floating:e}});d=b??d,u=_??u,h={...h,[y]:{...h[y],...w}},E&&m<=50&&(m++,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}=Po(l,p,c)),g=-1)}return{x:d,y:u,placement:p,strategy:i,middlewareData:h}};async function Le(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:h=0}=Jt(e,t),m=Qs(h),y=r[p?u==="floating"?"reference":"floating":u],v=ee(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.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,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(r.floating)),w=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},E=ee(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:b,offsetParent:_,strategy:c}):b);return{top:(v.top-E.top+m.top)/w.y,bottom:(E.bottom-v.bottom+m.bottom)/w.y,left:(v.left-E.left+m.left)/w.x,right:(E.right-v.right+m.right)/w.x}}const Zs=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:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...y}=Jt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=it(i),b=Q(r),_=it(r)===r,w=await(c.isRTL==null?void 0:c.isRTL(l.floating)),E=p||(_||!g?[te(r)]:qs(r)),M=m!=="none";!p&&M&&E.push(...Ks(r,g,m,w));const G=[r,...E],dt=await Le(e,y),ut=[];let X=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&ut.push(dt[v]),u){const ft=Vs(i,a,w);ut.push(dt[ft[0]],dt[ft[1]])}if(X=[...X,{placement:i,overflows:ut}],!ut.every(ft=>ft<=0)){var Mt,Ot;const ft=(((Mt=s.flip)==null?void 0:Mt.index)||0)+1,sn=G[ft];if(sn&&(!(u==="alignment"?b!==Q(sn):!1)||X.every(z=>Q(z.placement)===b?z.overflows[0]>0:!0)))return{data:{index:ft,overflows:X},reset:{placement:sn}};let Pt=(Ot=X.filter(pt=>pt.overflows[0]<=0).sort((pt,z)=>pt.overflows[1]-z.overflows[1])[0])==null?void 0:Ot.placement;if(!Pt)switch(h){case"bestFit":{var Rt;const pt=(Rt=X.filter(z=>{if(M){const et=Q(z.placement);return et===b||et==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(et=>et>0).reduce((et,Sl)=>et+Sl,0)]).sort((z,et)=>z[1]-et[1])[0])==null?void 0:Rt[0];pt&&(Pt=pt);break}case"initialPlacement":Pt=r;break}if(i!==Pt)return{reset:{placement:Pt}}}return{}}}},ta=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:y=>{let{x:v,y:b}=y;return{x:v,y:b}}},...c}=Jt(t,e),l={x:n,y:o},d=await Le(e,c),u=Q(it(i)),p=Lo(u);let h=l[p],m=l[u];if(s){const y=p==="y"?"top":"left",v=p==="y"?"bottom":"right",b=h+d[y],_=h-d[v];h=Ao(b,h,_)}if(a){const y=u==="y"?"top":"left",v=u==="y"?"bottom":"right",b=m+d[y],_=m-d[v];m=Ao(b,m,_)}const g=r.fn({...e,[p]:h,[u]:m});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[p]:s,[u]:a}}}}}},ea=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}=Jt(t,e),d=await Le(e,l),u=it(i),p=Zt(i),h=Q(i)==="y",{width:m,height:g}=s.floating;let y,v;u==="top"||u==="bottom"?(y=u,v=p===(await(a.isRTL==null?void 0:a.isRTL(r.floating))?"start":"end")?"left":"right"):(v=u,y=p==="end"?"top":"bottom");const b=g-d.top-d.bottom,_=m-d.left-d.right,w=gt(g-d[y],b),E=gt(m-d[v],_),M=!e.middlewareData.shift;let G=w,dt=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(dt=_),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(G=b),M&&!p){const X=R(d.left,0),Mt=R(d.right,0),Ot=R(d.top,0),Rt=R(d.bottom,0);h?dt=m-2*(X!==0||Mt!==0?X+Mt:R(d.left,d.right)):G=g-2*(Ot!==0||Rt!==0?Ot+Rt:R(d.top,d.bottom))}await c({...e,availableWidth:dt,availableHeight:G});const ut=await a.getDimensions(r.floating);return m!==ut.width||g!==ut.height?{reset:{rects:!0}}:{}}}};function ne(){return typeof window<"u"}function bt(t){return Do(t)?(t.nodeName||"").toLowerCase():"#document"}function P(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function q(t){var e;return(e=(Do(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Do(t){return ne()?t instanceof Node||t instanceof P(t).Node:!1}function H(t){return ne()?t instanceof Element||t instanceof P(t).Element:!1}function W(t){return ne()?t instanceof HTMLElement||t instanceof P(t).HTMLElement:!1}function No(t){return!ne()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof P(t).ShadowRoot}const na=new Set(["inline","contents"]);function Et(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=B(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!na.has(i)}const oa=new Set(["table","td","th"]);function ia(t){return oa.has(bt(t))}const sa=[":popover-open",":modal"];function oe(t){return sa.some(e=>{try{return t.matches(e)}catch{return!1}})}const aa=["transform","translate","scale","rotate","perspective"],ra=["transform","translate","scale","rotate","perspective","filter"],la=["paint","layout","strict","content"];function Ie(t){const e=Me(),n=H(t)?B(t):t;return aa.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)||ra.some(o=>(n.willChange||"").includes(o))||la.some(o=>(n.contain||"").includes(o))}function ca(t){let e=J(t);for(;W(e)&&!vt(e);){if(Ie(e))return e;if(oe(e))return null;e=J(e)}return null}function Me(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const da=new Set(["html","body","#document"]);function vt(t){return da.has(bt(t))}function B(t){return P(t).getComputedStyle(t)}function ie(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||No(t)&&t.host||q(t);return No(e)?e.host:e}function Ho(t){const e=J(t);return vt(e)?t.ownerDocument?t.ownerDocument.body:t.body:W(e)&&Et(e)?e:Ho(e)}function St(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Ho(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),a=P(i);if(s){const r=Oe(a);return e.concat(a,a.visualViewport||[],Et(i)?i:[],r&&n?St(r):[])}return e.concat(i,St(i,[],n))}function Oe(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Bo(t){const e=B(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=W(t),s=i?t.offsetWidth:n,a=i?t.offsetHeight:o,r=Xt(n)!==s||Xt(o)!==a;return r&&(n=s,o=a),{width:n,height:o,$:r}}function Re(t){return H(t)?t:t.contextElement}function _t(t){const e=Re(t);if(!W(e))return V(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=Bo(e);let a=(s?Xt(n.width):n.width)/o,r=(s?Xt(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!r||!Number.isFinite(r))&&(r=1),{x:a,y:r}}const ua=V(0);function jo(t){const e=P(t);return!Me()||!e.visualViewport?ua:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function fa(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=Re(t);let a=V(1);e&&(o?H(o)&&(a=_t(o)):a=_t(t));const r=fa(s,n,o)?jo(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),h=o&&H(o)?P(o):o;let m=p,g=Oe(m);for(;g&&o&&h!==m;){const y=_t(g),v=g.getBoundingClientRect(),b=B(g),_=v.left+(g.clientLeft+parseFloat(b.paddingLeft))*y.x,w=v.top+(g.clientTop+parseFloat(b.paddingTop))*y.y;c*=y.x,l*=y.y,d*=y.x,u*=y.y,c+=_,l+=w,m=P(g),g=Oe(m)}}return ee({width:d,height:u,x:c,y:l})}function se(t,e){const n=ie(t).scrollLeft;return e?e.left+n:st(q(t)).left+n}function Fo(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-se(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function pa(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s=i==="fixed",a=q(o),r=e?oe(e.floating):!1;if(o===a||r&&s)return n;let c={scrollLeft:0,scrollTop:0},l=V(1);const d=V(0),u=W(o);if((u||!u&&!s)&&((bt(o)!=="body"||Et(a))&&(c=ie(o)),W(o))){const h=st(o);l=_t(o),d.x=h.x+o.clientLeft,d.y=h.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 ha(t){return Array.from(t.getClientRects())}function ma(t){const e=q(t),n=ie(t),o=t.ownerDocument.body,i=R(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=R(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+se(t);const r=-n.scrollTop;return B(o).direction==="rtl"&&(a+=R(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:r}}const Uo=25;function ga(t,e){const n=P(t),o=q(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=Me();(!d||d&&e==="fixed")&&(r=i.offsetLeft,c=i.offsetTop)}const l=se(o);if(l<=0){const d=o.ownerDocument,u=d.body,p=getComputedStyle(u),h=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(o.clientWidth-u.clientWidth-h);m<=Uo&&(s-=m)}else l<=Uo&&(s+=l);return{width:s,height:a,x:r,y:c}}const ba=new Set(["absolute","fixed"]);function va(t,e){const n=st(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=W(t)?_t(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 zo(t,e,n){let o;if(e==="viewport")o=ga(t,n);else if(e==="document")o=ma(q(t));else if(H(e))o=va(e,n);else{const i=jo(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return ee(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 _a(t,e){const n=e.get(t);if(n)return n;let o=St(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=Ie(a);!c&&r.position==="fixed"&&(i=null),(s?!c&&!i:!c&&r.position==="static"&&!!i&&ba.has(i.position)||Et(a)&&!c&&Vo(t,a))?o=o.filter(d=>d!==a):i=r,a=J(a)}return e.set(t,o),o}function ya(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?oe(e)?[]:_a(e,this._c):[].concat(n),o],r=a[0],c=a.reduce((l,d)=>{const u=zo(e,d,i);return l.top=R(u.top,l.top),l.right=gt(u.right,l.right),l.bottom=gt(u.bottom,l.bottom),l.left=R(u.left,l.left),l},zo(e,r,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function wa(t){const{width:e,height:n}=Bo(t);return{width:e,height:n}}function xa(t,e,n){const o=W(e),i=q(e),s=n==="fixed",a=st(t,!0,s,e);let r={scrollLeft:0,scrollTop:0};const c=V(0);function l(){c.x=se(i)}if(o||!o&&!s)if((bt(e)!=="body"||Et(i))&&(r=ie(e)),o){const h=st(e,!0,s,e);c.x=h.x+e.clientLeft,c.y=h.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 Pe(t){return B(t).position==="static"}function qo(t,e){if(!W(t)||B(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return q(t)===n&&(n=n.ownerDocument.body),n}function Wo(t,e){const n=P(t);if(oe(t))return n;if(!W(t)){let i=J(t);for(;i&&!vt(i);){if(H(i)&&!Pe(i))return i;i=J(i)}return n}let o=qo(t,e);for(;o&&ia(o)&&Pe(o);)o=qo(o,e);return o&&vt(o)&&Pe(o)&&!Ie(o)?n:o||ca(t)||n}const Ea=async function(t){const e=this.getOffsetParent||Wo,n=this.getDimensions,o=await n(t.floating);return{reference:xa(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Sa(t){return B(t).direction==="rtl"}const Ta={convertOffsetParentRelativeRectToViewportRelativeRect:pa,getDocumentElement:q,getClippingRect:ya,getOffsetParent:Wo,getElementRects:Ea,getClientRects:ha,getDimensions:wa,getScale:_t,isElement:H,isRTL:Sa};function Go(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function $a(t,e){let n=null,o;const i=q(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:h}=l;if(r||e(),!p||!h)return;const m=Qt(u),g=Qt(i.clientWidth-(d+p)),y=Qt(i.clientHeight-(u+h)),v=Qt(d),_={rootMargin:-m+"px "+-g+"px "+-y+"px "+-v+"px",threshold:R(0,gt(1,c))||1};let w=!0;function E(M){const G=M[0].intersectionRatio;if(G!==c){if(!w)return a();G?a(!1,G):o=setTimeout(()=>{a(!1,1e-7)},1e3)}G===1&&!Go(l,t.getBoundingClientRect())&&a(),w=!1}try{n=new IntersectionObserver(E,{..._,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,_)}n.observe(t)}return a(!0),s}function Ca(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=Re(t),d=i||s?[...l?St(l):[],...St(e)]:[];d.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const u=l&&r?$a(l,n):null;let p=-1,h=null;a&&(h=new ResizeObserver(v=>{let[b]=v;b&&b.target===l&&h&&(h.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=h)==null||_.observe(e)})),n()}),l&&!c&&h.observe(l),h.observe(e));let m,g=c?st(t):null;c&&y();function y(){const v=st(t);g&&!Go(g,v)&&n(),g=v,m=requestAnimationFrame(y)}return n(),()=>{var v;d.forEach(b=>{i&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),u?.(),(v=h)==null||v.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const Yo=ta,Ko=Zs,ka=ea,Aa=(t,e,n)=>{const o=new Map,i={platform:Ta,...n},s={...i.platform,_c:o};return Js(t,e,{...i,platform:s})};function Xo(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=Xo(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function La(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Xo(t))&&(o&&(o+=" "),o+=e);return o}const D={capture:!0,passive:!0},at=typeof window<"u"&&typeof document<"u";function Ia(t,e){let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>t(...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 Ma=0;const Oa=`${Date.now().toString(36)}${Math.random().toString(36).slice(2,5)}`;function ae(t){return t.id||(t.id=`${Oa}${++Ma}`),t.id}const Qo=(t,e,[...n])=>{for(const o of n[0].split(","))n[0]=o,e[`${t}EventListener`](...n)},$=(t,...e)=>{Tt&&(t===window||t===document)&&Tt.push(()=>Jo(t,...e)),Qo("add",t,e)},Jo=(t,...e)=>Qo("remove",t,e);let Tt=null;const N=t=>{if(!at||!window.requestAnimationFrame)return;window._mtdsUnbindEvents||(window._mtdsUnbindEvents=new Map);const e=()=>requestAnimationFrame(()=>{const n=String(t).replace(/(\n|\s)/g,"");window._mtdsUnbindEvents?.get(n)?.map(o=>o()),Tt=[],t(),window._mtdsUnbindEvents?.set(n,Tt?.slice(0)),Tt=null});document.readyState==="complete"?e():$(window,"load",e)},De=new WeakMap,Ra=`.${T.dialog.split(" ")[0]}`;function rt(t,e,{contain:n,middleware:o,placement:i,...s}={}){if(De.get(t)?.(),De.delete(t),e){const a=t.closest(Ra)?.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";De.set(t,Ca(e,t,()=>{if(!t.isConnected||!e.isConnected||t.hidden)return rt(t,!1);Aa(e,t,{...s,placement:i||d,middleware:[Ko({padding:l}),Yo(),...n?[ka({padding:l,apply:n})]:[],...o||[]]}).then(({x:u,y:p})=>{t.style.left=`${u}px`,t.style.top=`${p}px`})}))}}function Zo(t){let e=0;const n=()=>setTimeout(o,200),o=()=>{t([],i),i.takeRecords(),e=0},i=new MutationObserver(()=>{e||(e=requestAnimationFrame(n))});return i}const Ne=new WeakMap,yt=(t,e,n)=>{if(!at||!window.requestAnimationFrame)return;const o=t.getElementsByClassName(e),i=Ne.get(t)||[];i.length||(Ne.set(t,i),Zo((s,a)=>{if(t.isConnected&&i?.length)for(const r of i)r();else a?.disconnect(),Ne.delete(t)}).observe(t,{attributeFilter:["class","hidden"],attributes:!0,childList:!0,subtree:!0})),i.push(()=>n(o))},He=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},Pa=typeof HTMLElement>"u"?class{}:HTMLElement,Da=`.${T.breadcrumbs.split(" ")[0]}`,Na=`.${T.card.split(" ")[0]}`,ti=`.${T.chip.split(" ")[0]}`,Ha=`.${T.helptext.split(" ")[0]}`,Ba=`.${T.pagination.split(" ")[0]}`,ja='summary,u-summary,a,button,[role="tab"],[role="button"]',Fa="click,toggle,submit,change",Be="mattilsynet.matomo.cloud",j="mtds-analytics-banner",Ua="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function ei(t,e={}){if(at){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${Be}/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"&&za();const a=s?`https://cdn.matomo.cloud/${Be}/container_${s}.js`:`https://cdn.matomo.cloud/${Be}/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 za(){if(document.getElementById(j)||window.localStorage.getItem(j))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${j}" data-analytics="ignore"><style>
9
9
  #${j}[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
  #${j} 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
  #${j} button:focus-visible { outline: 2px solid }
@@ -15,7 +15,7 @@ var mtds=function(O){"use strict";var os=Object.defineProperty,an=Object.getOwnP
15
15
  </style>
16
16
  <p>Vi bruker <a href="${Ua}" 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(j),n=()=>window.localStorage.setItem(j,"seen");e.addEventListener("close",n,{once:!0}),e.show()}function Va(t){window._mtdsTracking?.enabled&&setTimeout(qa,0,t)}function qa({type:t,target:e}){const n=t==="click"?e?.closest?.(ja):e;if(!(n instanceof Element)||n.closest('[data-analytics="ignore"]'))return;let o="click",i="Button",s=ni(n)||Ya(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(ti)?"Chip":"Form",o="change",s=ni(r||n)||$t(r?.querySelector("legend"))||$t(n?.labels?.[0])}else if(f(n,"role")==="tab")i="Tab",o="navigate";else if(f(n,"popovertarget")){if(!Wa(n)?.matches(":popover-open"))return;i=n.closest(Ha)?"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=Ga(n,"--mtds-tooltip-position")==="none";i="Sidebar",o=a?"expand":"minimize",s=a&&f(n,"data-tooltip")||$t(n)}else if(n.closest(Da))i="Breadcrumbs",o="navigate";else if(n.closest(Ba))i="Pagintation",o="navigate";else if(n.closest(Na))i="Card",o=n instanceof HTMLAnchorElement?"navigate":"click";else if(n.closest(ti))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"}ei("event",{category:f(n,"data-analytics-category")??i,action:f(n,"data-analytics-action")??o,name:f(n,"data-analytics-name")??s})}const $t=t=>t?.textContent?.trim()||"",ni=t=>t&&f(t,"aria-label")||"",Wa=t=>document.getElementById(f(t,"popovertarget")||""),Ga=(t,e)=>window.getComputedStyle(t).getPropertyValue(e)?.trim(),Ya=t=>{const e=$t(t),n=$t(t.querySelector("h1,h2,h3,h4,h5,h6"));return e.startsWith(n)&&n||e.slice(0,100).trim()};N(()=>$(document,Fa,Va,D)),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 oi=T.app.split(" ")[0],Ka=T.sticky.split(" ")[0],Xa='[data-command="toggle-app-expanded"]',je=`.${oi} > dialog,.${oi} dialog ~ main`,ii=t=>{document.startViewTransition?document.startViewTransition(t):t()},si=t=>ii(()=>window.mtdsToggleAppExpanded?.(t));function Qa({target:t,defaultPrevented:e}){const n=t?.closest?.("a");if(n?.closest("dialog")&&n?.closest(je))return ai();if(e||!(t instanceof HTMLButtonElement)||!t.matches(Xa))return;getComputedStyle(t).position==="sticky"?si():ii(()=>{const i=document.querySelector(je);i?.setAttribute("data-closedby","any"),i?.showModal()})}function ai(){document.querySelector(je)?.close()}let Fe=0,yt,Y=0,L,Ue=0,re=0,ze=!1,Ve=0,lt=0;function Ja([t]){L=t,ri()}function ri(){if(!L?.isConnected)return;const t=window.scrollY,e=t<lt;lt=t,e!==yt&&(Fe=(L.parentElement?.getBoundingClientRect().top||0)+lt,yt=e,Ue=L.offsetHeight,re=L.getBoundingClientRect().top+lt,ze=L.offsetHeight<=window.innerHeight,Ve=window.innerHeight),!(Y===-1&&ze)&&(Y!==-1&&(ze||yt&&lt<=re)?(L.style.setProperty("--pos","sticky"),L.style.setProperty("--top","0px"),Y=-1):Y===-1&&!yt?(L.style.setProperty("--pos","relative"),L.style.setProperty("--top",`${Math.max(0,lt-Fe)}px`),Y=0):Y!==1&&!yt&&lt+Ve>=re+Ue?(L.style.setProperty("--pos","sticky"),L.style.setProperty("--top",`${Ve-Ue}px`),Y=1):Y===1&&yt&&(L.style.setProperty("--pos","relative"),L.style.setProperty("--top",`${re-Fe}px`),Y=0))}N(()=>{wt(document.documentElement,Ka,Ja),$(document,"click",Qa,D),$(window,"resize",Ia(ai,100),D),$(window,"scroll",ri,D)});const Za=(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},tr=({current:t=1,total:e=10,show:n=7})=>({prev:t>1?t-1:0,next:t<e?t+1:0,pages:Za(t,e,n).map((o,i)=>({current:o===t&&"page",key:`key-${o}-${i}`,page:o}))});function k(t,e={}){const n=document.getElementById(e.id||"")||C("dialog");return f(n,"aria-busy",e.busy?"true":null),f(n,"class",La(T.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",er,{once:!0}),document.body.appendChild(n),n.id}function er({animationName:t,target:e}){t===T._toastClose&&e.remove()}k.success=(t,e)=>k(t,{color:"success",...e}),k.danger=(t,e)=>k(t,{color:"danger",...e}),k.info=(t,e)=>k(t,{color:"info",...e}),k.warning=(t,e)=>k(t,{color:"warning",...e}),k.neutral=(t,e)=>k(t,{color:"neutral",...e}),k.promise=async function(e,n){const{loading:o,success:i,error:s,...a}=n,r=k(o,{busy:!0,...a});try{const c=await e();return k.success(i,{id:r,busy:!1}),c}catch(c){throw k.danger(s,{id:r,busy:!1}),c}};const nr=T.breadcrumbs.split(" ")[0];function or(t){for(const e of t)e.querySelectorAll("li a").forEach((n,o,{length:i})=>{f(n,"aria-current",o===i-1?"page":null)})}N(()=>wt(document.documentElement,nr,or));const ir=`:host(:not([hidden])) {
18
+ </dialog>`);const e=document.getElementById(j),n=()=>window.localStorage.setItem(j,"seen");e.addEventListener("close",n,{once:!0}),e.show()}function Va(t){window._mtdsTracking?.enabled&&setTimeout(qa,0,t)}function qa({type:t,target:e}){const n=t==="click"?e?.closest?.(ja):e;if(!(n instanceof Element)||n.closest('[data-analytics="ignore"]'))return;let o="click",i="Button",s=ni(n)||Ya(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(ti)?"Chip":"Form",o="change",s=ni(r||n)||$t(r?.querySelector("legend"))||$t(n?.labels?.[0])}else if(f(n,"role")==="tab")i="Tab",o="navigate";else if(f(n,"popovertarget")){if(!Wa(n)?.matches(":popover-open"))return;i=n.closest(Ha)?"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=Ga(n,"--mtds-tooltip-position")==="none";i="Sidebar",o=a?"expand":"minimize",s=a&&f(n,"data-tooltip")||$t(n)}else if(n.closest(Da))i="Breadcrumbs",o="navigate";else if(n.closest(Ba))i="Pagintation",o="navigate";else if(n.closest(Na))i="Card",o=n instanceof HTMLAnchorElement?"navigate":"click";else if(n.closest(ti))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"}ei("event",{category:f(n,"data-analytics-category")??i,action:f(n,"data-analytics-action")??o,name:f(n,"data-analytics-name")??s})}const $t=t=>t?.textContent?.trim()||"",ni=t=>t&&f(t,"aria-label")||"",Wa=t=>document.getElementById(f(t,"popovertarget")||""),Ga=(t,e)=>window.getComputedStyle(t).getPropertyValue(e)?.trim(),Ya=t=>{const e=$t(t),n=$t(t.querySelector("h1,h2,h3,h4,h5,h6"));return e.startsWith(n)&&n||e.slice(0,100).trim()};N(()=>$(document,Fa,Va,D)),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 oi=T.app.split(" ")[0],Ka=T.sticky.split(" ")[0],Xa='[data-command="toggle-app-expanded"]',je=`.${oi} > dialog,.${oi} dialog ~ main`,ii=t=>{document.startViewTransition?document.startViewTransition(t):t()},si=t=>ii(()=>window.mtdsToggleAppExpanded?.(t));function Qa({target:t,defaultPrevented:e}){const n=t?.closest?.("a");if(n?.closest("dialog")&&n?.closest(je))return ai();if(e||!(t instanceof HTMLButtonElement)||!t.matches(Xa))return;getComputedStyle(t).position==="sticky"?si():ii(()=>{const i=document.querySelector(je);i?.setAttribute("data-closedby","any"),i?.showModal()})}function ai(){document.querySelector(je)?.close()}let Fe=0,wt,Y=0,L,Ue=0,re=0,ze=!1,Ve=0,lt=0;function Ja([t]){L=t,ri()}function ri(){if(!L?.isConnected)return;const t=window.scrollY,e=t<lt;lt=t,e!==wt&&(Fe=(L.parentElement?.getBoundingClientRect().top||0)+lt,wt=e,Ue=L.offsetHeight,re=L.getBoundingClientRect().top+lt,ze=L.offsetHeight<=window.innerHeight,Ve=window.innerHeight),!(Y===-1&&ze)&&(Y!==-1&&(ze||wt&&lt<=re)?(L.style.setProperty("--pos","sticky"),L.style.setProperty("--top","0px"),Y=-1):Y===-1&&!wt?(L.style.setProperty("--pos","relative"),L.style.setProperty("--top",`${Math.max(0,lt-Fe)}px`),Y=0):Y!==1&&!wt&&lt+Ve>=re+Ue?(L.style.setProperty("--pos","sticky"),L.style.setProperty("--top",`${Ve-Ue}px`),Y=1):Y===1&&wt&&(L.style.setProperty("--pos","relative"),L.style.setProperty("--top",`${re-Fe}px`),Y=0))}N(()=>{yt(document.documentElement,Ka,Ja),$(document,"click",Qa,D),$(window,"resize",Ia(ai,100),D),$(window,"scroll",ri,D)});const Za=(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},tr=({current:t=1,total:e=10,show:n=7})=>({prev:t>1?t-1:0,next:t<e?t+1:0,pages:Za(t,e,n).map((o,i)=>({current:o===t&&"page",key:`key-${o}-${i}`,page:o}))});function k(t,e={}){const n=document.getElementById(e.id||"")||C("dialog");return f(n,"aria-busy",e.busy?"true":null),f(n,"class",La(T.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",er,{once:!0}),document.body.appendChild(n),n.id}function er({animationName:t,target:e}){t===T._toastClose&&e.remove()}k.success=(t,e)=>k(t,{color:"success",...e}),k.danger=(t,e)=>k(t,{color:"danger",...e}),k.info=(t,e)=>k(t,{color:"info",...e}),k.warning=(t,e)=>k(t,{color:"warning",...e}),k.neutral=(t,e)=>k(t,{color:"neutral",...e}),k.promise=async function(e,n){const{loading:o,success:i,error:s,...a}=n,r=k(o,{busy:!0,...a});try{const c=await e();return k.success(i,{id:r,busy:!1}),c}catch(c){throw k.danger(s,{id:r,busy:!1}),c}};const nr=T.breadcrumbs.split(" ")[0];function or(t){for(const e of t)e.querySelectorAll("li a").forEach((n,o,{length:i})=>{f(n,"aria-current",o===i-1?"page":null)})}N(()=>yt(document.documentElement,nr,or));const ir=`:host(:not([hidden])) {
19
19
  display: grid;
20
20
  gap: var(--ds-size-6);
21
21
  }
@@ -100,6 +100,7 @@ var mtds=function(O){"use strict";var os=Object.defineProperty,an=Object.getOwnP
100
100
  }
101
101
  .axisGroup::after {
102
102
  content: attr(data-label);
103
+ direction: ltr; /* Prevent inherited rtl */
103
104
  min-width: 0; /* Allow word-wrapping */
104
105
  }
105
106
  :host(:not([data-variant|="bar"])) {
@@ -381,17 +382,17 @@ var mtds=function(O){"use strict";var os=Object.defineProperty,an=Object.getOwnP
381
382
  :host([data-legend="none"]) .legends {
382
383
  display: none;
383
384
  }
384
- `,sr=[.1,.2,.25,.5,1];function ar(t,{aspect:e,type:n}){const i=n==="stacked",s=t[0].reduce((m,g,w)=>{const v=t.map(_=>_[w].number),b=v.reduce((_,y)=>_+y,0);return Math.max(m,...i?[b]:v)},0),a=s/10,r=10**`${Math.round(a)}`.length,c=a/r,l=(sr.find(m=>m>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"})),h=u.appendChild(C("div",{class:"axisGroups"}));return Array.from({length:d/l+1},(m,g)=>rr(l*g)).reverse().map(m=>p.append(C("div",{class:"axisStep","data-label":m}))),{total:d,groups:h,axis:u}}const rr=new Intl.NumberFormat().format;function lr(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 cr(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=dr(a.map(({number:u},p,{length:h})=>[100/(h-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:h})=>{const m=C("div",{role:"listitem"});m.appendChild(C("div",{"aria-label":p,"data-event":h,tabindex:"0",class:"linePoint",role:"img",style:`--value: ${u}`})),r.append(m)}),r.appendChild(l).append(d),s.append(r)}),s}const dr=(t,e)=>t.map(([n,o],i,s)=>i?ur(i,s,e):`M${n},${o}`).join(" "),li=([t,e],[n,o])=>[t+n,e+o],ci=([t,e],[n,o])=>[t-n,e-o],di=(t,[e,n])=>[t*e,t*n],ur=(t,e,n)=>{const o=e[t-1],i=e[t],[s,a]=li(o,di(n,ci(i,e[t-2]||o))),[r,c]=li(i,di(n,ci(o,e[t+1]||i)));return`C ${s},${a} ${r},${c} ${i[0]},${i[1]}`};function fr(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"),h=i/r;i+=l;const m=Math.min(i/r,.99999),g=m-h>.5?1:0,w=2*Math.PI*(h-.25),v=2*Math.PI*(m-.25),b=Math.cos(w),_=Math.sin(w),y=Math.cos(v),E=Math.sin(v),M=`M ${s+a*b} ${s+a*_} L ${s+s*b} ${s+s*_} A ${s} ${s} 0 ${g} 1 ${s+s*y} ${s+s*E} L ${s+a*y} ${s+a*E} A ${a} ${a} 0 ${g} 0 ${s+a*b} ${s+a*_}`;f(p,"aria-label",c),f(p,"data-event",d),f(p,"style",u),f(p,"d",M),f(p,"role","img"),f(p,"tabindex","0"),o.appendChild(p)}),o}const ui="click,keydown,mousemove,mouseout",fi="mtds-chart-tooltip",Z=at?document.getElementById(fi)||C("div",{class:T._tooltip,id:fi,hidden:""}):null;class pr extends Pa{_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.bind(this)),this._observer.observe(this,{attributeFilter:["data-tooltip"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),this.attributeChangedCallback(),$(this,ui,this)}disconnectedCallback(){Z&&(Z.hidden=!0),Jo(this,ui,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=gr(this.querySelector("table")),s=C("style",{},ir),a=C("div",{class:"legends"});i.slice(1).forEach(([{value:d,style:u}])=>{a.appendChild(C("div",{class:"legend",style:u},d))});const{axis:r,groups:c,total:l}=ar(i,{aspect:o,type:n});(e==="column"||e==="bar")&&c.append(...lr(i)),(e==="line"||e==="area")&&c.append(cr(i,{total:l,variant:e,type:n})),(e==="doughnut"||e==="pie")&&this.shadowRoot?.append(fr(i,{aspect:o,variant:e})),this.shadowRoot?.append(r,a,s)}handleEvent(e){e.type==="click"||e.type==="keydown"?hr(e,this):mr(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 pi="";function mr(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!==pi&&(n&&(Z.textContent=n),pi=n,Z.hidden=!n)}const Ct=t=>t?.textContent?.trim()||"",gr=t=>Array.from(t?.rows||[],(e,n)=>Array.from(e.cells,(o,i)=>{const s=Ct(e.cells[0]),a=Ct(t?.rows[0].cells[i]),r=`${s}: ${Ct(o)}${a?` (${a})`:""}`;return{number:i&&n&&Number.parseFloat(Ct(o))||0,event:o.querySelector("a,button")&&`${n}-${i}`,style:`--color: var(--mtdsc-chart-color-${n}, var(--mtdsc-chart-color-base))`,value:Ct(o),tooltip:f(o,"data-tooltip")||r}}));at&&!window.customElements.get("mtds-chart")&&window.customElements.define("mtds-chart",pr);const br=T.dialog.split(" ")[0],hi=at?document.getElementsByClassName(br):[],vr=()=>{for(const t of hi)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()))},_r=({clientX:t,clientY:e,target:n})=>{for(const s of hi)if(s.open&&f(s,"data-closedby")==="any"){const{top:a,right:r,bottom:c,left:l}=s.getBoundingClientRect();if(!(a<=e&&e<=c&&l<=t&&t<=r))return s.close()}const o=n?.closest?.("dialog");o&&n?.closest?.('[data-command="close"]')&&o.close()};N(()=>{$(document,"click",_r,D),Zo(vr).observe(document.documentElement,{attributeFilter:["open"],attributes:!0,childList:!0,subtree:!0})});function wr(t){if(t.animationName!==T._errorsummary)return;const e=t.target?.firstElementChild;e instanceof HTMLHeadingElement&&(f(e,"tabindex","-1"),e.focus())}N(()=>$(document,"animationend",wr,D));var yr=Object.defineProperty,mi=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,Er=Object.prototype.propertyIsEnumerable,gi=(t,e,n)=>e in t?yr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Sr=(t,e)=>{for(var n in e||(e={}))xr.call(e,n)&&gi(t,n,e[n]);if(mi)for(var n of mi(e))Er.call(e,n)&&gi(t,n,e[n]);return t},kt=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",le=kt&&/android/i.test(navigator.userAgent),qe=kt&&/iPad|iPhone|iPod/.test(navigator.userAgent),bi;kt&&/^Mac/i.test(((bi=navigator.userAgentData)==null?void 0:bi.platform)||navigator.platform);var Tr=`${le?"data":"aria"}-labelledby`,$r=":host(:not([hidden])) { display: block }",Cr="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",vi=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 _i=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},At=(t,...e)=>_i("add",t,e),ce=(t,...e)=>_i("remove",t,e),kr=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(Ye("slot"),Ye("style",e)),de=new WeakMap,We=(t,e)=>{if(e===void 0)return de.get(t);try{de.get(t).disconnect(),de.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),de.set(t,n)}},wi=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},Ar=0,Ge=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Ar).toString(32)}`),t.id):"",Ye=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},yi={define:(t,e)=>!kt||window.customElements.get(t)||window.customElements.define(t,e)},ct,Lr=0,xi=t=>{ct||(ct=Ye("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}${Lr++%2?" ":""}`)},Ir=(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}))},Ke=!1,Xe=t=>(t?.type==="mouseup"&&(Ke=!1),t?.type==="mousedown"&&(Ke=!0,At(document,"mouseup",Xe,{once:!0})),Ke),Qe="disabled",Lt="selected",Mr=class extends vi{static get observedAttributes(){return[Qe,Lt]}connectedCallback(){qe||(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[Lt]}set defaultSelected(t){this[Lt]=t}get disabled(){return S(this,Qe)!==null}set disabled(t){S(this,Qe,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,Lt)!==null}set selected(t){S(this,Lt,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)}};yi.define("u-option",Mr);var Or=`${$r}
385
+ `,sr=[.1,.2,.25,.5,1];function ar(t,{aspect:e,type:n}){const i=n==="stacked",s=t[0].reduce((m,g,y)=>{const v=t.map(_=>_[y].number),b=v.reduce((_,w)=>_+w,0);return Math.max(m,...i?[b]:v)},0),a=s/10,r=10**`${Math.round(a)}`.length,c=a/r,l=(sr.find(m=>m>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"})),h=u.appendChild(C("div",{class:"axisGroups"}));return Array.from({length:d/l+1},(m,g)=>rr(l*g)).reverse().map(m=>p.append(C("div",{class:"axisStep","data-label":m}))),{total:d,groups:h,axis:u}}const rr=new Intl.NumberFormat().format;function lr(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 cr(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=dr(a.map(({number:u},p,{length:h})=>[100/(h-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:h})=>{const m=C("div",{role:"listitem"});m.appendChild(C("div",{"aria-label":p,"data-event":h,tabindex:"0",class:"linePoint",role:"img",style:`--value: ${u}`})),r.append(m)}),r.appendChild(l).append(d),s.append(r)}),s}const dr=(t,e)=>t.map(([n,o],i,s)=>i?ur(i,s,e):`M${n},${o}`).join(" "),li=([t,e],[n,o])=>[t+n,e+o],ci=([t,e],[n,o])=>[t-n,e-o],di=(t,[e,n])=>[t*e,t*n],ur=(t,e,n)=>{const o=e[t-1],i=e[t],[s,a]=li(o,di(n,ci(i,e[t-2]||o))),[r,c]=li(i,di(n,ci(o,e[t+1]||i)));return`C ${s},${a} ${r},${c} ${i[0]},${i[1]}`};function fr(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"),h=i/r;i+=l;const m=Math.min(i/r,.99999),g=m-h>.5?1:0,y=2*Math.PI*(h-.25),v=2*Math.PI*(m-.25),b=Math.cos(y),_=Math.sin(y),w=Math.cos(v),E=Math.sin(v),M=`M ${s+a*b} ${s+a*_} L ${s+s*b} ${s+s*_} 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*_}`;f(p,"aria-label",c),f(p,"data-event",d),f(p,"style",u),f(p,"d",M),f(p,"role","img"),f(p,"tabindex","0"),o.appendChild(p)}),o}const ui="click,keydown,mousemove,mouseout",fi="mtds-chart-tooltip",Z=at?document.getElementById(fi)||C("div",{"aria-hidden":"true",class:T._tooltip,hidden:"",id:fi}):null;class pr extends Pa{_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.bind(this)),this._observer.observe(this,{attributeFilter:["data-tooltip"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),this.attributeChangedCallback(),$(this,ui,this)}disconnectedCallback(){Z&&(Z.hidden=!0),Jo(this,ui,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=gr(this.querySelector("table")),s=C("style",{},ir),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}=ar(i,{aspect:o,type:n});(e==="column"||e==="bar")&&c.append(...lr(i)),(e==="line"||e==="area")&&c.append(cr(i,{total:l,variant:e,type:n})),(e==="doughnut"||e==="pie")&&this.shadowRoot?.append(fr(i,{aspect:o,variant:e})),this.shadowRoot?.append(r,a,s)}handleEvent(e){e.type==="click"||e.type==="keydown"?hr(e,this):mr(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 pi="";function mr(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!==pi&&(n&&(Z.textContent=n),pi=n,Z.hidden=!n)}const Ct=t=>t?.textContent?.trim()||"",gr=t=>Array.from(t?.rows||[],(e,n)=>Array.from(e.cells,(o,i)=>{const s=Ct(e.cells[0]),a=Ct(t?.rows[0].cells[i]),r=`${s}: ${Ct(o)}${a?` (${a})`:""}`;return{number:i&&n&&Number.parseFloat(Ct(o))||0,event:o.querySelector("a,button")&&`${n}-${i}`,style:`--color: var(--mtdsc-chart-color-${n}, var(--mtdsc-chart-color-base))`,value:Ct(o),tooltip:f(o,"data-tooltip")||r}}));at&&!window.customElements.get("mtds-chart")&&window.customElements.define("mtds-chart",pr);const br=T.dialog.split(" ")[0],hi=at?document.getElementsByClassName(br):[],vr=()=>{for(const t of hi)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()))},_r=({clientX:t,clientY:e,target:n})=>{for(const s of hi)if(s.open&&f(s,"data-closedby")==="any"){const{top:a,right:r,bottom:c,left:l}=s.getBoundingClientRect();if(!(a<=e&&e<=c&&l<=t&&t<=r))return s.close()}const o=n?.closest?.("dialog");o&&n?.closest?.('[data-command="close"]')&&o.close()};N(()=>{$(document,"click",_r,D),Zo(vr).observe(document.documentElement,{attributeFilter:["open"],attributes:!0,childList:!0,subtree:!0})});function yr(t){if(t.animationName!==T._errorsummary)return;const e=t.target?.firstElementChild;e instanceof HTMLHeadingElement&&(f(e,"tabindex","-1"),e.focus())}N(()=>$(document,"animationend",yr,D));var wr=Object.defineProperty,mi=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,Er=Object.prototype.propertyIsEnumerable,gi=(t,e,n)=>e in t?wr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Sr=(t,e)=>{for(var n in e||(e={}))xr.call(e,n)&&gi(t,n,e[n]);if(mi)for(var n of mi(e))Er.call(e,n)&&gi(t,n,e[n]);return t},kt=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",le=kt&&/android/i.test(navigator.userAgent),qe=kt&&/iPad|iPhone|iPod/.test(navigator.userAgent),bi;kt&&/^Mac/i.test(((bi=navigator.userAgentData)==null?void 0:bi.platform)||navigator.platform);var Tr=`${le?"data":"aria"}-labelledby`,$r=":host(:not([hidden])) { display: block }",Cr="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",vi=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 _i=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},At=(t,...e)=>_i("add",t,e),ce=(t,...e)=>_i("remove",t,e),kr=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(Ye("slot"),Ye("style",e)),de=new WeakMap,We=(t,e)=>{if(e===void 0)return de.get(t);try{de.get(t).disconnect(),de.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),de.set(t,n)}},yi=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},Ar=0,Ge=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Ar).toString(32)}`),t.id):"",Ye=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},wi={define:(t,e)=>!kt||window.customElements.get(t)||window.customElements.define(t,e)},ct,Lr=0,xi=t=>{ct||(ct=Ye("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}${Lr++%2?" ":""}`)},Ir=(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}))},Ke=!1,Xe=t=>(t?.type==="mouseup"&&(Ke=!1),t?.type==="mousedown"&&(Ke=!0,At(document,"mouseup",Xe,{once:!0})),Ke),Qe="disabled",Lt="selected",Mr=class extends vi{static get observedAttributes(){return[Qe,Lt]}connectedCallback(){qe||(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[Lt]}set defaultSelected(t){this[Lt]=t}get disabled(){return S(this,Qe)!==null}set disabled(t){S(this,Qe,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,Lt)!==null}set selected(t){S(this,Lt,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)}};wi.define("u-option",Mr);var Or=`${$r}
385
386
  ::slotted(u-option) { display: block; cursor: pointer }
386
387
  ::slotted(u-option:focus) { ${Cr} }
387
388
  ::slotted(u-option[aria-hidden="true"]),
388
389
  ::slotted(u-option[disabled]),
389
- ::slotted(u-option[hidden]) { display: none !important }`,Ei,Si=0,Rr=qe||le,Ti="click,focusout,input,keydown,mousedown,mouseup",$i="focus,focusin,blur,focusout",ue={singular:"%d hit",plural:"%d hits"},Ci=class extends vi{constructor(){super(),this._texts=Sr({},ue),this._value="",kr(this,Or)}static get observedAttributes(){return["id",...Object.keys(ue).map(t=>`data-sr-${t}`)]}connectedCallback(){this.hidden=!0,this._root=wi(this),S(this,"role","listbox"),S(this,"tabindex","-1"),At(this._root,"focusin",this),At(this._root,"focus",this,!0),We(this,{attributeFilter:["disabled","hidden","label","value"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(()=>this.attributeChangedCallback())}disconnectedCallback(){ce(this._root||this,"focus",this,!0),ce(this._root||this,"focusin",this),We(this,!1),Je(this),this._root=void 0}attributeChangedCallback(t,e,n){const o=t?.split("data-sr-")[1],i=`input[list="${this.id}"]`;if(ue[o])this._texts[o]=n||ue[o];else if(this._root){this._input&&Ze(this,this._input);for(const s of this._root.querySelectorAll(i))Ze(this,s)}}handleEvent(t){const{target:e,type:n}=t;t.defaultPrevented||(n==="click"&&Nr(this,t),(n==="focus"||n==="focusin")&&Pr(this,t),(n==="blur"||n==="focusout")&&Dr(this,t),n==="keydown"&&Hr(this,t),n==="mousedown"&&this.contains(e)&&Xe(t),(n==="mutation"||n==="input")&&(clearTimeout(Si),Si=setTimeout(Li,0,this,t)))}get options(){return this.getElementsByTagName("u-option")}},ki=t=>t?.disabled||t?.readOnly||!1,It=(t,e)=>{var n,o,i;if(t.hidden!==e)return;t.hidden=ki(t?._input)||!e,(n=We(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&&Ze(t,t._input,e),s&&S(t,"popover","manual"),s&&t.togglePopover(e),e&&Li(t)},Je=t=>{t._input&&(ce(t._input||t,$i,t),ce(t._root||t,Ti,t),It(t,!1),t._input=void 0)},Ze=(t,e,n=!1)=>{t.popover&&S(e,"popovertarget",Ge(t)),At(e,$i,t,!0),S(e,"aria-autocomplete","list"),S(e,"aria-controls",Ge(t)),S(e,"aria-expanded",`${!Rr||n}`),S(e,"autocomplete","off"),S(e,"role",ki(e)?null:"combobox")},Pr=(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&&Je(t),t._input=e.target,t._input.dispatchEvent(new FocusEvent("focus")),t._input.dispatchEvent(new FocusEvent("focusin",{bubbles:!0})),S(t,Tr,Ge((n=t._input.labels)==null?void 0:n[0])),At(t._root||t,Ti,t),It(t,S(t._input,"inputmode")!=="none"),xi())},Dr=(t,e)=>{!le&&!Xe()&&t._input&&setTimeout(Ai,0,t),e.target===t._input&&e.isTrusted&&e.stopImmediatePropagation()},Ai=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})),Je(t))},Nr=(t,{target:e})=>{var n;if(!t._input||t._input===e)return It(t,!0);for(const o of t.options)if(o.contains(e))return S(t,"aria-multiselectable")!=="true"&&((n=t._input)==null||n.focus(),It(t,!1)),Ir(t._input,o.value);le&&Ai(t)},Hr=(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(),It(t,!l);const d=[...t.options].filter(h=>S(h,"aria-hidden")!=="true"&&h.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 h of d)h.tabIndex=-1;d[p]&&e.preventDefault(),(n=d[p]||t._input)==null||n.focus(),!d[p]&&o==="ArrowUp"&&setTimeout(()=>{var h;return(h=t._input)==null?void 0:h.setSelectionRange(999,999)})},Li=(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(Ei),e?.type==="input"&&a!==t._value&&(Ei=setTimeout(()=>{const u=`${!d&&t.innerText.trim()||`${n[d===1?"singular":"plural"]}`.replace("%d",`${d}`)}`;!t.hidden&&o?.activeElement===i&&xi(u),t._value=a},1e3)),qe&&l.map((u,p)=>S(u,"title",`${p+1}/${d}`))};kt&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){return wi(this).getElementById(S(this,"list")||"")}}),yi.define("u-datalist",Ci);const tn=T.field.split(" ")[0],Ii=T.validation.split(" "),Br=Ii[0],F=(t,e)=>t.getPropertyValue(`--mtds-text-${e}`)?.slice(1,-1)||"";function Mi(t,e){for(const n of t)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 we?a=l:He(l)&&!l.hidden?r=l:l.hasAttribute("data-description")?i.push(l):l.classList.contains(Br)?(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=ae(r);if(e&&f(n,"data-validation")==="form"){c=r.matches(":valid");for(const l of s)f(l,"hidden",c?"":null)}jr(a),Ri(r),Oi(r),f(r,"aria-describedby",i.map(ae).join(" ")||null),f(r,"aria-invalid",`${!c}`)}}}function Oi(t){t instanceof HTMLTextAreaElement&&(t.style.setProperty("--mtds-textarea-height","auto"),t.style.setProperty("--mtds-textarea-height",`${t.scrollHeight}px`))}function jr(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",F(o,"combobox-added")),f(t,"data-sr-empty",F(o,"combobox-empty")),f(t,"data-sr-found",F(o,"combobox-found")),f(t,"data-sr-invalid",F(o,"combobox-invalid")),f(t,"data-sr-of",F(o,"combobox-of")),f(t,"data-sr-remove",F(o,"combobox-remove")),f(t,"data-sr-removed",F(o,"combobox-removed")),f(n,"data-sr-plural",F(o,"datalist-plural")),f(n,"data-sr-singular",F(o,"datalist-singular"))}n&&e&&!n.hasAttribute("popover")&&(f(n,"popover","manual"),f(e,"popovertarget",ae(n)))}function Ri(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=F(a,"count-over"),c=F(a,"count-under");if(s!==i){f(e,"aria-live",i?"polite":"off");for(const l of Ii)e.classList.toggle(l,i)}e.textContent=(i?r:c).replace("%d",`${Math.abs(o)}`)}}function Fr({target:t,newState:e}){if(t instanceof Ci){const o=t.getRootNode()?.querySelector(`[popovertarget="${t.id}"]`);e==="closed"?rt(t,!1):o&&rt(t,o,{contain({availableHeight:i}){t.style.width=`${o.clientWidth}px`,t.style.maxHeight=`${Math.max(50,i)}px`}})}}function Ur(t){He(t.target)&&(Ri(t.target),Oi(t.target))}function zr(t){const e=t.target?.closest?.(`.${tn}`);t.type==="invalid"&&e&&t.preventDefault(),Mi(document.getElementsByClassName(tn),!0)}N(()=>{wt(document.documentElement,tn,Mi),$(document,"input",Ur,D),$(document,"invalid,submit",zr,!0),$(document,"toggle",Fr,D)});const Vr=T.fieldset.split(" ")[0],qr=T.validation.split(" ")[0],Pi="aria-describedby",Wr="aria-invalid";function Gr(t){setTimeout(()=>{for(const e of t)if(e.isConnected){const n=[];let o=null,i=!0;for(const s of e.getElementsByTagName("*"))s.classList.contains(qr)?(i=f(s,"data-color")==="success"||!s.clientHeight,o=ae(s)):He(s)&&n.push(s);for(const s of n){const a=f(s,Pi)?.replace(o||"#","");f(s,Pi,`${o||""} ${a||""}`.trim()),f(s,Wr,`${!i}`)}}})}N(()=>wt(document.documentElement,Vr,Gr));const Yr=T.logo.split(" ")[0];function Kr([t]){if(t?.isConnected&&t?.firstElementChild instanceof SVGSVGElement){for(const r of document.head.querySelectorAll("link[rel~='icon']"))r.setAttribute("rel","disabled");const e=t.firstElementChild,n=t?.hasAttribute("data-env"),o=window.getComputedStyle(e),i=o.getPropertyValue("color"),s=o.getPropertyValue("--mtds-logo-color"),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(()=>wt(document.documentElement,Yr,Kr));const fe=T.popover.split(" ")[0],Di="_mtds-popover-auto";function Xr({target:t,newState:e}){if(t instanceof HTMLElement&&t.classList.contains(fe)){const n=document.querySelector(`[popovertarget="${t.id}"]`);e==="closed"?rt(t,!1):n&&rt(t,n,{contain:f(t,"data-overscroll")==="contain"&&(({availableHeight:o})=>{t.style.maxHeight=`${Math.max(50,o)}px`})})}}function Qr({target:t,newState:e}){e==="open"&&t instanceof HTMLElement&&t.classList.contains(fe)&&f(t,"popover")!=="manual"&&(t.classList.add(Di),f(t,"popover","manual"))}function Jr(t){const e=t.target?.closest?.("a,button"),n=e&&f(e,"popovertarget"),o=n?document.getElementById(n):e?.closest(`.${fe}`);for(const i of document.getElementsByClassName(Di))!i.contains(t.target)&&o!==i&&i.hidePopover();if(o?.classList.contains(fe)&&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(()=>{$(document,"click",Jr),$(document,"toggle",Xr,D),$(document,"beforetoggle",Qr,D)});const Zr=T.table.split(" ")[0],tl='a,button,label,input,select,textarea,[role="button"]';function el(t){for(const e of t){const n=Array.from(e.tHead?.rows[0]?.cells||[],o=>o.innerText.trim());for(const o of e.tBodies)for(const i of o.rows)for(const s of i.cells)f(s,"data-th",n[s.cellIndex]||":empty")}}function nl({target:t}){if(!(t instanceof Element))return;const n=t.closest("tr")?.querySelector('[data-command="row"]');n&&!t.closest(tl)&&n.click?.()}N(()=>{wt(document.documentElement,Zr,el),$(document,"click",nl)});const Ni=T.toast.split(" ")[0],pe="data-sort";function ol({animationName:t,target:e}){const n=e;if(t===T._toastTimeout&&n.close(),t!==T._toastOpen)return;const o=Number(f(n,"data-timeout"));n.style.setProperty("--mtdsc-toast-timeout",o?`${o}ms`:null),n.hasAttribute(pe)||f(n,pe,`${Date.now()}`),f(n,"tabindex","0"),[...document.querySelectorAll(`.${Ni}[open]`)].sort((i,s)=>Number(f(s,pe))-Number(f(i,pe))).reduce((i,s)=>(s.style.translate=`0 ${s===e?0:i}px`,i+s.offsetHeight+5),0)}function il({target:t,clientX:e,clientY:n}){if(t instanceof HTMLDialogElement&&t.classList.contains(Ni)&&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(()=>{$(document,"animationstart",ol),$(document,"click",il)});const sl=`.${T.togglegroup.split(" ")[0]}`;function al(t){const{key:e,target:n}=t,o=n instanceof HTMLInputElement&&n.closest(sl);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(()=>$(document,"keydown",al));const Hi="aria-describedby",Bi="Escape",he="aria-labelledby",rl="--mtds-tooltip-position",ll=300,ji="mtds-tooltip",U=at?document.getElementById(ji)||C("div",{class:T._tooltip,id:ji,popover:"manual"}):null;let tt=null,Fi=Number.NEGATIVE_INFINITY,Ui=0;function en({target:t,type:e,key:n}){if(e==="keydown"&&n!==Bi)return;const o=Fi+ll-Date.now();clearTimeout(Ui),Ui=setTimeout(cl,Math.max(o,0),n===Bi?null:t)}function cl(t){if(Fi=Date.now(),!U||t===U)return;U?.isConnected||document.body.append(U);let e=t?.closest?.("[data-tooltip]")||null;if(e===tt)return;const n=e&&f(e,"data-tooltip")||"",o=e&&f(e,"data-tooltip-position")||window.getComputedStyle(e||document.body).getPropertyValue(rl)?.trim()||"top";(!n||n==="false"||n==="true"||o==="none")&&(e=null),e&&(U.textContent=n);const s=tt&&f(tt,he)===U?.id,a=(e instanceof HTMLElement?e.innerText:e?.textContent)?.trim()||e?.hasAttribute(he)||e?.hasAttribute("aria-label");tt?.removeAttribute(s?he:Hi),rt(U,!1),tt=e,tt&&f(tt,a?Hi:he,U?.id),tt?.isConnected&&U.hidePopover(),U.togglePopover(!!e),rt(U,e||!1,{placement:o,middleware:[Ko(),Yo({padding:10})]})}N(()=>{$(document,"blur,focus,mouseout,mouseover",en,D),$(window,"keydown",en,D),$(window,"blur",en,D)});var zi=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Vi;zi&&/^Mac/i.test(((Vi=navigator.userAgentData)==null?void 0:Vi.platform)||navigator.platform);var dl=":host(:not([hidden])) { display: block }",qi=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 Wi=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Gi=(t,...e)=>Wi("add",t,e),Yi=(t,...e)=>Wi("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},fl=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},nn=(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},Ki={define:(t,e)=>!zi||window.customElements.get(t)||window.customElements.define(t,e)},pl=`${dl}
390
+ ::slotted(u-option[hidden]) { display: none !important }`,Ei,Si=0,Rr=qe||le,Ti="click,focusout,input,keydown,mousedown,mouseup",$i="focus,focusin,blur,focusout",ue={singular:"%d hit",plural:"%d hits"},Ci=class extends vi{constructor(){super(),this._texts=Sr({},ue),this._value="",kr(this,Or)}static get observedAttributes(){return["id",...Object.keys(ue).map(t=>`data-sr-${t}`)]}connectedCallback(){this.hidden=!0,this._root=yi(this),S(this,"role","listbox"),S(this,"tabindex","-1"),At(this._root,"focusin",this),At(this._root,"focus",this,!0),We(this,{attributeFilter:["disabled","hidden","label","value"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(()=>this.attributeChangedCallback())}disconnectedCallback(){ce(this._root||this,"focus",this,!0),ce(this._root||this,"focusin",this),We(this,!1),Je(this),this._root=void 0}attributeChangedCallback(t,e,n){const o=t?.split("data-sr-")[1],i=`input[list="${this.id}"]`;if(ue[o])this._texts[o]=n||ue[o];else if(this._root){this._input&&Ze(this,this._input);for(const s of this._root.querySelectorAll(i))Ze(this,s)}}handleEvent(t){const{target:e,type:n}=t;t.defaultPrevented||(n==="click"&&Nr(this,t),(n==="focus"||n==="focusin")&&Pr(this,t),(n==="blur"||n==="focusout")&&Dr(this,t),n==="keydown"&&Hr(this,t),n==="mousedown"&&this.contains(e)&&Xe(t),(n==="mutation"||n==="input")&&(clearTimeout(Si),Si=setTimeout(Li,0,this,t)))}get options(){return this.getElementsByTagName("u-option")}},ki=t=>t?.disabled||t?.readOnly||!1,It=(t,e)=>{var n,o,i;if(t.hidden!==e)return;t.hidden=ki(t?._input)||!e,(n=We(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&&Ze(t,t._input,e),s&&S(t,"popover","manual"),s&&t.togglePopover(e),e&&Li(t)},Je=t=>{t._input&&(ce(t._input||t,$i,t),ce(t._root||t,Ti,t),It(t,!1),t._input=void 0)},Ze=(t,e,n=!1)=>{t.popover&&S(e,"popovertarget",Ge(t)),At(e,$i,t,!0),S(e,"aria-autocomplete","list"),S(e,"aria-controls",Ge(t)),S(e,"aria-expanded",`${!Rr||n}`),S(e,"autocomplete","off"),S(e,"role",ki(e)?null:"combobox")},Pr=(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&&Je(t),t._input=e.target,t._input.dispatchEvent(new FocusEvent("focus")),t._input.dispatchEvent(new FocusEvent("focusin",{bubbles:!0})),S(t,Tr,Ge((n=t._input.labels)==null?void 0:n[0])),At(t._root||t,Ti,t),It(t,S(t._input,"inputmode")!=="none"),xi())},Dr=(t,e)=>{!le&&!Xe()&&t._input&&setTimeout(Ai,0,t),e.target===t._input&&e.isTrusted&&e.stopImmediatePropagation()},Ai=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})),Je(t))},Nr=(t,{target:e})=>{var n;if(!t._input||t._input===e)return It(t,!0);for(const o of t.options)if(o.contains(e))return S(t,"aria-multiselectable")!=="true"&&((n=t._input)==null||n.focus(),It(t,!1)),Ir(t._input,o.value);le&&Ai(t)},Hr=(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(),It(t,!l);const d=[...t.options].filter(h=>S(h,"aria-hidden")!=="true"&&h.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 h of d)h.tabIndex=-1;d[p]&&e.preventDefault(),(n=d[p]||t._input)==null||n.focus(),!d[p]&&o==="ArrowUp"&&setTimeout(()=>{var h;return(h=t._input)==null?void 0:h.setSelectionRange(999,999)})},Li=(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(Ei),e?.type==="input"&&a!==t._value&&(Ei=setTimeout(()=>{const u=`${!d&&t.innerText.trim()||`${n[d===1?"singular":"plural"]}`.replace("%d",`${d}`)}`;!t.hidden&&o?.activeElement===i&&xi(u),t._value=a},1e3)),qe&&l.map((u,p)=>S(u,"title",`${p+1}/${d}`))};kt&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){return yi(this).getElementById(S(this,"list")||"")}}),wi.define("u-datalist",Ci);const tn=T.field.split(" ")[0],Ii=T.validation.split(" "),Br=Ii[0],F=(t,e)=>t.getPropertyValue(`--mtds-text-${e}`)?.slice(1,-1)||"";function Mi(t,e){for(const n of t)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 ye?a=l:He(l)&&!l.hidden?r=l:l.hasAttribute("data-description")?i.push(l):l.classList.contains(Br)?(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=ae(r);if(e&&f(n,"data-validation")==="form"){c=r.matches(":valid");for(const l of s)f(l,"hidden",c?"":null)}jr(a),Ri(r),Oi(r),f(r,"aria-describedby",i.map(ae).join(" ")||null),f(r,"aria-invalid",`${!c}`)}}}function Oi(t){t instanceof HTMLTextAreaElement&&(t.style.setProperty("--mtds-textarea-height","auto"),t.style.setProperty("--mtds-textarea-height",`${t.scrollHeight}px`))}function jr(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",F(o,"combobox-added")),f(t,"data-sr-empty",F(o,"combobox-empty")),f(t,"data-sr-found",F(o,"combobox-found")),f(t,"data-sr-invalid",F(o,"combobox-invalid")),f(t,"data-sr-of",F(o,"combobox-of")),f(t,"data-sr-remove",F(o,"combobox-remove")),f(t,"data-sr-removed",F(o,"combobox-removed")),f(n,"data-sr-plural",F(o,"datalist-plural")),f(n,"data-sr-singular",F(o,"datalist-singular"))}n&&e&&!n.hasAttribute("popover")&&(f(n,"popover","manual"),f(e,"popovertarget",ae(n)))}function Ri(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=F(a,"count-over"),c=F(a,"count-under");if(s!==i){f(e,"aria-live",i?"polite":"off");for(const l of Ii)e.classList.toggle(l,i)}e.textContent=(i?r:c).replace("%d",`${Math.abs(o)}`)}}function Fr({target:t,newState:e}){if(t instanceof Ci){const o=t.getRootNode()?.querySelector(`[popovertarget="${t.id}"]`);e==="closed"?rt(t,!1):o&&rt(t,o,{contain({availableHeight:i}){t.style.width=`${o.clientWidth}px`,t.style.maxHeight=`${Math.max(50,i)}px`}})}}function Ur(t){He(t.target)&&(Ri(t.target),Oi(t.target))}function zr(t){const e=t.target?.closest?.(`.${tn}`);t.type==="invalid"&&e&&t.preventDefault(),Mi(document.getElementsByClassName(tn),!0)}N(()=>{yt(document.documentElement,tn,Mi),$(document,"input",Ur,D),$(document,"invalid,submit",zr,!0),$(document,"toggle",Fr,D)});const Vr=T.fieldset.split(" ")[0],qr=T.validation.split(" ")[0],Pi="aria-describedby",Wr="aria-invalid";function Gr(t){setTimeout(()=>{for(const e of t)if(e.isConnected){const n=[];let o=null,i=!0;for(const s of e.getElementsByTagName("*"))s.classList.contains(qr)?(i=f(s,"data-color")==="success"||!s.clientHeight,o=ae(s)):He(s)&&n.push(s);for(const s of n){const a=f(s,Pi)?.replace(o||"#","");f(s,Pi,`${o||""} ${a||""}`.trim()),f(s,Wr,`${!i}`)}}})}N(()=>yt(document.documentElement,Vr,Gr));const Yr=T.logo.split(" ")[0];function Kr([t]){if(t?.isConnected&&t?.firstElementChild instanceof SVGSVGElement){for(const r of document.head.querySelectorAll("link[rel~='icon']"))r.setAttribute("rel","disabled");const e=t.firstElementChild,n=t?.hasAttribute("data-env"),o=window.getComputedStyle(e),i=o.getPropertyValue("color"),s=o.getPropertyValue("--mtds-logo-color"),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(()=>yt(document.documentElement,Yr,Kr));const fe=T.popover.split(" ")[0],Di="_mtds-popover-auto";function Xr({target:t,newState:e}){if(t instanceof HTMLElement&&t.classList.contains(fe)){const n=document.querySelector(`[popovertarget="${t.id}"]`);e==="closed"?rt(t,!1):n&&rt(t,n,{contain:f(t,"data-overscroll")==="contain"&&(({availableHeight:o})=>{t.style.maxHeight=`${Math.max(50,o)}px`})})}}function Qr({target:t,newState:e}){e==="open"&&t instanceof HTMLElement&&t.classList.contains(fe)&&f(t,"popover")!=="manual"&&(t.classList.add(Di),f(t,"popover","manual"))}function Jr(t){const e=t.target?.closest?.("a,button"),n=e&&f(e,"popovertarget"),o=n?document.getElementById(n):e?.closest(`.${fe}`);for(const i of document.getElementsByClassName(Di))!i.contains(t.target)&&o!==i&&i.hidePopover();if(o?.classList.contains(fe)&&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(()=>{$(document,"click",Jr),$(document,"toggle",Xr,D),$(document,"beforetoggle",Qr,D)});const Zr=T.table.split(" ")[0],tl='a,button,label,input,select,textarea,[role="button"]';function el(t){for(const e of t){const n=Array.from(e.tHead?.rows[0]?.cells||[],o=>o.innerText.trim());for(const o of e.tBodies)for(const i of o.rows)for(const s of i.cells)f(s,"data-th",n[s.cellIndex]||":empty")}}function nl({target:t}){if(!(t instanceof Element))return;const n=t.closest("tr")?.querySelector('[data-command="row"]');n&&!t.closest(tl)&&n.click?.()}N(()=>{yt(document.documentElement,Zr,el),$(document,"click",nl)});const Ni=T.toast.split(" ")[0],pe="data-sort";function ol({animationName:t,target:e}){const n=e;if(t===T._toastTimeout&&n.close(),t!==T._toastOpen)return;const o=Number(f(n,"data-timeout"));n.style.setProperty("--mtdsc-toast-timeout",o?`${o}ms`:null),n.hasAttribute(pe)||f(n,pe,`${Date.now()}`),f(n,"tabindex","0"),[...document.querySelectorAll(`.${Ni}[open]`)].sort((i,s)=>Number(f(s,pe))-Number(f(i,pe))).reduce((i,s)=>(s.style.translate=`0 ${s===e?0:i}px`,i+s.offsetHeight+5),0)}function il({target:t,clientX:e,clientY:n}){if(t instanceof HTMLDialogElement&&t.classList.contains(Ni)&&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(()=>{$(document,"animationstart",ol),$(document,"click",il)});const sl=`.${T.togglegroup.split(" ")[0]}`;function al(t){const{key:e,target:n}=t,o=n instanceof HTMLInputElement&&n.closest(sl);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(()=>$(document,"keydown",al));const Hi="aria-describedby",Bi="Escape",he="aria-labelledby",rl="--mtds-tooltip-position",ll=300,ji="mtds-tooltip",U=at?document.getElementById(ji)||C("div",{class:T._tooltip,id:ji,popover:"manual"}):null;let tt=null,Fi=Number.NEGATIVE_INFINITY,Ui=0;function en({target:t,type:e,key:n}){if(e==="keydown"&&n!==Bi)return;const o=Fi+ll-Date.now();clearTimeout(Ui),Ui=setTimeout(cl,Math.max(o,0),n===Bi?null:t)}function cl(t){if(Fi=Date.now(),!U||t===U)return;U?.isConnected||document.body.append(U);let e=t?.closest?.("[data-tooltip]")||null;if(e===tt)return;const n=e&&f(e,"data-tooltip")||"",o=e&&f(e,"data-tooltip-position")||window.getComputedStyle(e||document.body).getPropertyValue(rl)?.trim()||"top";(!n||n==="false"||n==="true"||o==="none")&&(e=null),e&&(U.textContent=n);const s=tt&&f(tt,he)===U?.id,a=(e instanceof HTMLElement?e.innerText:e?.textContent)?.trim()||e?.hasAttribute(he)||e?.hasAttribute("aria-label");tt?.removeAttribute(s?he:Hi),rt(U,!1),tt=e,tt&&f(tt,a?Hi:he,U?.id),tt?.isConnected&&U.hidePopover(),U.togglePopover(!!e),rt(U,e||!1,{placement:o,middleware:[Ko(),Yo({padding:10})]})}N(()=>{$(document,"blur,focus,mouseout,mouseover",en,D),$(window,"keydown",en,D),$(window,"blur",en,D)});var zi=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Vi;zi&&/^Mac/i.test(((Vi=navigator.userAgentData)==null?void 0:Vi.platform)||navigator.platform);var dl=":host(:not([hidden])) { display: block }",qi=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 Wi=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Gi=(t,...e)=>Wi("add",t,e),Yi=(t,...e)=>Wi("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},fl=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},nn=(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},Ki={define:(t,e)=>!zi||window.customElements.get(t)||window.customElements.define(t,e)},pl=`${dl}
390
391
  ::slotted(u-summary) { cursor: pointer; display: block }
391
392
  ::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 }
392
393
  ::slotted(u-summary[aria-expanded="true"])::before { rotate: 90deg }
393
- :host > [part="details-content"]:not([hidden=""]) { display: block }`,hl=class extends qi{constructor(){super(),this._content=null,this.shadowRoot||this.attachShadow({mode:"open"}).append(nn("slot",null,{name:"summary"}),nn("slot",null,{part:"details-content"}),nn("style",pl))}static get observedAttributes(){return["open"]}connectedCallback(){var t;this._content=(t=this.shadowRoot)==null?void 0:t.children[1],K(this,"role","group"),Gi(this._content,"beforematch",this),Gi(this,"click,keydown",this),this.attributeChangedCallback()}disconnectedCallback(){this._content&&Yi(this._content,"beforematch",this),Yi(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=fl(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)}},ml=class extends qi{connectedCallback(){K(this,"role","button"),this.slot="summary",this.tabIndex=0}};Ki.define("u-details",hl),Ki.define("u-summary",ml);var me=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Xi=me&&/firefox/i.test(navigator.userAgent),gl=me&&/iPad|iPhone|iPod/.test(navigator.userAgent),Qi;me&&/^Mac/i.test(((Qi=navigator.userAgentData)==null?void 0:Qi.platform)||navigator.platform);var bl=typeof HTMLElement>"u"?class{}:HTMLElement;function I(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 vl=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},_l=0,wl=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++_l).toString(32)}`),t.id):"",Ji=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,s]of Object.entries(n))I(o,i,s);return o},yl={define:(t,e)=>!me||window.customElements.get(t)||window.customElements.define(t,e)},xl=t=>{var e;const n=I(t,"aria-label")||"";return[...(((e=I(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)},El=`:host(:not([hidden])) { box-sizing: border-box; border: 1px solid; display: inline-block; height: .5em; width: 10em; overflow: hidden }
394
+ :host > [part="details-content"]:not([hidden=""]) { display: block }`,hl=class extends qi{constructor(){super(),this._content=null,this.shadowRoot||this.attachShadow({mode:"open"}).append(nn("slot",null,{name:"summary"}),nn("slot",null,{part:"details-content"}),nn("style",pl))}static get observedAttributes(){return["open"]}connectedCallback(){var t;this._content=(t=this.shadowRoot)==null?void 0:t.children[1],K(this,"role","group"),Gi(this._content,"beforematch",this),Gi(this,"click,keydown",this),this.attributeChangedCallback()}disconnectedCallback(){this._content&&Yi(this._content,"beforematch",this),Yi(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=fl(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)}},ml=class extends qi{connectedCallback(){K(this,"role","button"),this.slot="summary",this.tabIndex=0}};Ki.define("u-details",hl),Ki.define("u-summary",ml);var me=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Xi=me&&/firefox/i.test(navigator.userAgent),gl=me&&/iPad|iPhone|iPod/.test(navigator.userAgent),Qi;me&&/^Mac/i.test(((Qi=navigator.userAgentData)==null?void 0:Qi.platform)||navigator.platform);var bl=typeof HTMLElement>"u"?class{}:HTMLElement;function I(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 vl=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},_l=0,yl=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++_l).toString(32)}`),t.id):"",Ji=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,s]of Object.entries(n))I(o,i,s);return o},wl={define:(t,e)=>!me||window.customElements.get(t)||window.customElements.define(t,e)},xl=t=>{var e;const n=I(t,"aria-label")||"";return[...(((e=I(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)},El=`:host(:not([hidden])) { box-sizing: border-box; border: 1px solid; display: inline-block; height: .5em; width: 10em; overflow: hidden }
394
395
  :host::before { content: ''; display: block; height: 100%; background: currentColor; width: var(--percentage, 0%); transition: width .2s }
395
396
  :host(:not([value])) { background: linear-gradient(90deg,currentColor 25%, transparent 50%, currentColor 75%) 50%/400% }
396
397
  @media (prefers-reduced-motion: no-preference) { :host { animation: indeterminate 2s linear infinite } }
397
- @keyframes indeterminate { from { background-position-x: 100% } to { background-position-x: 0 } }`,on=!1,Zi=class extends bl{static get observedAttributes(){return["aria-label","aria-labelledby","value","max"]}constructor(){super(),this.shadowRoot||this.attachShadow({mode:"open"}).append(Ji("slot",null,{hidden:""}),Ji("style",El))}connectedCallback(){this.attributeChangedCallback()}attributeChangedCallback(){if(on)return;on=!0;const t=gl||Xi,e=Math.max(0,Math.round(this.position*100));this.style.setProperty("--percentage",`${e}%`);let n=xl(this);if(t&&(n=`${n.replace(/\d+%$/,"")} ${e}%`),Xi)for(const o of this.labels)I(o,"aria-label",n);I(this,"aria-busy",`${this.position===-1}`),I(this,"aria-label",n.trim()),I(this,"aria-labelledby",null),I(this,"aria-valuemax","100"),I(this,"aria-valuemin","0"),I(this,"aria-valuenow",`${e}`),I(this,"role",t?"img":"progressbar"),on=!1}get labels(){const t=this.closest("label:not([for])"),e=wl(this);return t&&(t.htmlFor=e),vl(this).querySelectorAll(`label[for="${e}"]`)}get position(){return this.value===null?-1:Math.min(this.value/this.max,1)}get value(){return es(this,"value")}set value(t){ns(this,"value",t)}get max(){return es(this,"max")||1}set max(t){ns(this,"max",t)}};Zi.formAssociated=!0;var ts=t=>!Number.isNaN(Number.parseFloat(`${t}`))&&Number.isFinite(Number(t)),es=(t,e)=>{const n=I(t,e);return ts(n)?Math.max(0,Number.parseFloat(n)):null},ns=(t,e,n)=>{if(n===null||ts(n))I(t,e,`${n}`);else throw new Error(`Failed to set non-numeric '${I}': '${n}'`)};return yl.define("u-progress",Zi),O.UHTMLComboboxElement=we,O.UHTMLTabElement=Cn,O.UHTMLTabListElement=$n,O.UHTMLTabPanelElement=kn,O.UHTMLTabsElement=Tn,O.analytics=ei,O.pagination=tr,O.styles=js,O.toast=k,O.toggleAppExpanded=si,O.version=Bs,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"}),O}({});
398
+ @keyframes indeterminate { from { background-position-x: 100% } to { background-position-x: 0 } }`,on=!1,Zi=class extends bl{static get observedAttributes(){return["aria-label","aria-labelledby","value","max"]}constructor(){super(),this.shadowRoot||this.attachShadow({mode:"open"}).append(Ji("slot",null,{hidden:""}),Ji("style",El))}connectedCallback(){this.attributeChangedCallback()}attributeChangedCallback(){if(on)return;on=!0;const t=gl||Xi,e=Math.max(0,Math.round(this.position*100));this.style.setProperty("--percentage",`${e}%`);let n=xl(this);if(t&&(n=`${n.replace(/\d+%$/,"")} ${e}%`),Xi)for(const o of this.labels)I(o,"aria-label",n);I(this,"aria-busy",`${this.position===-1}`),I(this,"aria-label",n.trim()),I(this,"aria-labelledby",null),I(this,"aria-valuemax","100"),I(this,"aria-valuemin","0"),I(this,"aria-valuenow",`${e}`),I(this,"role",t?"img":"progressbar"),on=!1}get labels(){const t=this.closest("label:not([for])"),e=yl(this);return t&&(t.htmlFor=e),vl(this).querySelectorAll(`label[for="${e}"]`)}get position(){return this.value===null?-1:Math.min(this.value/this.max,1)}get value(){return es(this,"value")}set value(t){ns(this,"value",t)}get max(){return es(this,"max")||1}set max(t){ns(this,"max",t)}};Zi.formAssociated=!0;var ts=t=>!Number.isNaN(Number.parseFloat(`${t}`))&&Number.isFinite(Number(t)),es=(t,e)=>{const n=I(t,e);return ts(n)?Math.max(0,Number.parseFloat(n)):null},ns=(t,e,n)=>{if(n===null||ts(n))I(t,e,`${n}`);else throw new Error(`Failed to set non-numeric '${I}': '${n}'`)};return wl.define("u-progress",Zi),O.UHTMLComboboxElement=ye,O.UHTMLTabElement=Cn,O.UHTMLTabListElement=$n,O.UHTMLTabPanelElement=kn,O.UHTMLTabsElement=Tn,O.analytics=ei,O.pagination=tr,O.styles=js,O.toast=k,O.toggleAppExpanded=si,O.version=Bs,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"}),O}({});
@@ -1,5 +1,5 @@
1
- const o = "2.2.10";
1
+ const n = "2.11.0-canary";
2
2
  export {
3
- o as version
3
+ n as version
4
4
  };
5
5
  //# sourceMappingURL=package.json.js.map