@mattilsynet/design 3.2.5 → 3.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import P from "../styles.module.css.js";
2
2
  import { getByCSSModule as _, onHotReload as h, on as r, QUICK_EVENT as m, debounce as E } from "../utils.js";
3
- import "./app-toggle2.js";
3
+ import "./app-toggle.js";
4
4
  const y = P.app.split(" ")[0], I = `[data-command="toggle-app-expanded"],.${y} > [command="show-modal"]`, u = `.${y} > dialog,.${y} dialog ~ main`, S = _("sticky"), w = (t) => {
5
5
  document.startViewTransition ? document.startViewTransition(t) : t();
6
6
  }, x = (t) => (
@@ -1,27 +1,11 @@
1
- const t = `if (
2
- typeof window !== "undefined" &&
3
- window.CSSStyleSheet &&
4
- document.adoptedStyleSheets
5
- )
6
- (() => {
7
- const key = "--mtds-app-expanded";
8
- const sheet = new CSSStyleSheet();
9
- const prev = () => !window.localStorage.getItem(key)?.includes("false");
10
-
11
- document.adoptedStyleSheets.push(sheet);
12
- window.mtdsToggleAppExpanded = (force) => {
13
- try {
14
- const next = force ?? !prev();
15
- sheet.replaceSync?.(\`:root { \${key}: var(\${key}--\${next})}\`);
16
- window.localStorage.setItem(key, next);
17
- } catch (_err) {} // localStorage is full or replaceSync is not supported
18
- };
19
-
20
- // Set and store initial state
21
- window.mtdsToggleAppExpanded(prev());
22
- })();
23
- `;
24
- export {
25
- t as default
26
- };
1
+ typeof window < "u" && window.CSSStyleSheet && document.adoptedStyleSheets && (() => {
2
+ const e = "--mtds-app-expanded", d = new CSSStyleSheet(), o = () => !window.localStorage.getItem(e)?.includes("false");
3
+ document.adoptedStyleSheets.push(d), window.mtdsToggleAppExpanded = (n) => {
4
+ try {
5
+ const t = n ?? !o();
6
+ d.replaceSync?.(`:root { ${e}: var(${e}--${t})}`), window.localStorage.setItem(e, t);
7
+ } catch {
8
+ }
9
+ }, window.mtdsToggleAppExpanded(o());
10
+ })();
27
11
  //# sourceMappingURL=app-toggle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-toggle.js","sources":["../../designsystem/app/app-toggle.js?raw"],"sourcesContent":["export default \"if (\\n\\ttypeof window !== \\\"undefined\\\" &&\\n\\twindow.CSSStyleSheet &&\\n\\tdocument.adoptedStyleSheets\\n)\\n\\t(() => {\\n\\t\\tconst key = \\\"--mtds-app-expanded\\\";\\n\\t\\tconst sheet = new CSSStyleSheet();\\n\\t\\tconst prev = () => !window.localStorage.getItem(key)?.includes(\\\"false\\\");\\n\\n\\t\\tdocument.adoptedStyleSheets.push(sheet);\\n\\t\\twindow.mtdsToggleAppExpanded = (force) => {\\n\\t\\t\\ttry {\\n\\t\\t\\t\\tconst next = force ?? !prev();\\n\\t\\t\\t\\tsheet.replaceSync?.(`:root { ${key}: var(${key}--${next})}`);\\n\\t\\t\\t\\twindow.localStorage.setItem(key, next);\\n\\t\\t\\t} catch (_err) {} // localStorage is full or replaceSync is not supported\\n\\t\\t};\\n\\n\\t\\t// Set and store initial state\\n\\t\\twindow.mtdsToggleAppExpanded(prev());\\n\\t})();\\n\""],"names":["script"],"mappings":"AAAA,MAAAA,IAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
1
+ {"version":3,"file":"app-toggle.js","sources":["../../designsystem/app/app-toggle.js"],"sourcesContent":["if (\n\ttypeof window !== \"undefined\" &&\n\twindow.CSSStyleSheet &&\n\tdocument.adoptedStyleSheets\n)\n\t(() => {\n\t\tconst key = \"--mtds-app-expanded\";\n\t\tconst sheet = new CSSStyleSheet();\n\t\tconst prev = () => !window.localStorage.getItem(key)?.includes(\"false\");\n\n\t\tdocument.adoptedStyleSheets.push(sheet);\n\t\twindow.mtdsToggleAppExpanded = (force) => {\n\t\t\ttry {\n\t\t\t\tconst next = force ?? !prev();\n\t\t\t\tsheet.replaceSync?.(`:root { ${key}: var(${key}--${next})}`);\n\t\t\t\twindow.localStorage.setItem(key, next);\n\t\t\t} catch (_err) {} // localStorage is full or replaceSync is not supported\n\t\t};\n\n\t\t// Set and store initial state\n\t\twindow.mtdsToggleAppExpanded(prev());\n\t})();\n"],"names":["key","sheet","prev","force","next"],"mappings":"AACC,OAAO,SAAW,OAClB,OAAO,iBACP,SAAS,uBAER,MAAM;AACN,QAAMA,IAAM,uBACNC,IAAQ,IAAI,cAAa,GACzBC,IAAO,MAAM,CAAC,OAAO,aAAa,QAAQF,CAAG,GAAG,SAAS,OAAO;AAEtE,WAAS,mBAAmB,KAAKC,CAAK,GACtC,OAAO,wBAAwB,CAACE,MAAU;AACzC,QAAI;AACH,YAAMC,IAAOD,KAAS,CAACD,EAAI;AAC3B,MAAAD,EAAM,cAAc,WAAWD,CAAG,SAASA,CAAG,KAAKI,CAAI,IAAI,GAC3D,OAAO,aAAa,QAAQJ,GAAKI,CAAI;AAAA,IACtC,QAAe;AAAA,IAAC;AAAA,EACjB,GAGA,OAAO,sBAAsBF,GAAM;AACpC,GAAC;"}
@@ -1,11 +1,27 @@
1
- typeof window < "u" && window.CSSStyleSheet && document.adoptedStyleSheets && (() => {
2
- const e = "--mtds-app-expanded", d = new CSSStyleSheet(), o = () => !window.localStorage.getItem(e)?.includes("false");
3
- document.adoptedStyleSheets.push(d), window.mtdsToggleAppExpanded = (n) => {
4
- try {
5
- const t = n ?? !o();
6
- d.replaceSync?.(`:root { ${e}: var(${e}--${t})}`), window.localStorage.setItem(e, t);
7
- } catch {
8
- }
9
- }, window.mtdsToggleAppExpanded(o());
10
- })();
1
+ const t = `if (
2
+ typeof window !== "undefined" &&
3
+ window.CSSStyleSheet &&
4
+ document.adoptedStyleSheets
5
+ )
6
+ (() => {
7
+ const key = "--mtds-app-expanded";
8
+ const sheet = new CSSStyleSheet();
9
+ const prev = () => !window.localStorage.getItem(key)?.includes("false");
10
+
11
+ document.adoptedStyleSheets.push(sheet);
12
+ window.mtdsToggleAppExpanded = (force) => {
13
+ try {
14
+ const next = force ?? !prev();
15
+ sheet.replaceSync?.(\`:root { \${key}: var(\${key}--\${next})}\`);
16
+ window.localStorage.setItem(key, next);
17
+ } catch (_err) {} // localStorage is full or replaceSync is not supported
18
+ };
19
+
20
+ // Set and store initial state
21
+ window.mtdsToggleAppExpanded(prev());
22
+ })();
23
+ `;
24
+ export {
25
+ t as default
26
+ };
11
27
  //# sourceMappingURL=app-toggle2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-toggle2.js","sources":["../../designsystem/app/app-toggle.js"],"sourcesContent":["if (\n\ttypeof window !== \"undefined\" &&\n\twindow.CSSStyleSheet &&\n\tdocument.adoptedStyleSheets\n)\n\t(() => {\n\t\tconst key = \"--mtds-app-expanded\";\n\t\tconst sheet = new CSSStyleSheet();\n\t\tconst prev = () => !window.localStorage.getItem(key)?.includes(\"false\");\n\n\t\tdocument.adoptedStyleSheets.push(sheet);\n\t\twindow.mtdsToggleAppExpanded = (force) => {\n\t\t\ttry {\n\t\t\t\tconst next = force ?? !prev();\n\t\t\t\tsheet.replaceSync?.(`:root { ${key}: var(${key}--${next})}`);\n\t\t\t\twindow.localStorage.setItem(key, next);\n\t\t\t} catch (_err) {} // localStorage is full or replaceSync is not supported\n\t\t};\n\n\t\t// Set and store initial state\n\t\twindow.mtdsToggleAppExpanded(prev());\n\t})();\n"],"names":["key","sheet","prev","force","next"],"mappings":"AACC,OAAO,SAAW,OAClB,OAAO,iBACP,SAAS,uBAER,MAAM;AACN,QAAMA,IAAM,uBACNC,IAAQ,IAAI,cAAa,GACzBC,IAAO,MAAM,CAAC,OAAO,aAAa,QAAQF,CAAG,GAAG,SAAS,OAAO;AAEtE,WAAS,mBAAmB,KAAKC,CAAK,GACtC,OAAO,wBAAwB,CAACE,MAAU;AACzC,QAAI;AACH,YAAMC,IAAOD,KAAS,CAACD,EAAI;AAC3B,MAAAD,EAAM,cAAc,WAAWD,CAAG,SAASA,CAAG,KAAKI,CAAI,IAAI,GAC3D,OAAO,aAAa,QAAQJ,GAAKI,CAAI;AAAA,IACtC,QAAe;AAAA,IAAC;AAAA,EACjB,GAGA,OAAO,sBAAsBF,GAAM;AACpC,GAAC;"}
1
+ {"version":3,"file":"app-toggle2.js","sources":["../../designsystem/app/app-toggle.js?raw"],"sourcesContent":["export default \"if (\\n\\ttypeof window !== \\\"undefined\\\" &&\\n\\twindow.CSSStyleSheet &&\\n\\tdocument.adoptedStyleSheets\\n)\\n\\t(() => {\\n\\t\\tconst key = \\\"--mtds-app-expanded\\\";\\n\\t\\tconst sheet = new CSSStyleSheet();\\n\\t\\tconst prev = () => !window.localStorage.getItem(key)?.includes(\\\"false\\\");\\n\\n\\t\\tdocument.adoptedStyleSheets.push(sheet);\\n\\t\\twindow.mtdsToggleAppExpanded = (force) => {\\n\\t\\t\\ttry {\\n\\t\\t\\t\\tconst next = force ?? !prev();\\n\\t\\t\\t\\tsheet.replaceSync?.(`:root { ${key}: var(${key}--${next})}`);\\n\\t\\t\\t\\twindow.localStorage.setItem(key, next);\\n\\t\\t\\t} catch (_err) {} // localStorage is full or replaceSync is not supported\\n\\t\\t};\\n\\n\\t\\t// Set and store initial state\\n\\t\\twindow.mtdsToggleAppExpanded(prev());\\n\\t})();\\n\""],"names":["script"],"mappings":"AAAA,MAAAA,IAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
package/mtds/app/app.js CHANGED
@@ -3,7 +3,7 @@ import a from "clsx";
3
3
  import { forwardRef as n } from "react";
4
4
  import { Button as m } from "../button/button.js";
5
5
  import s from "../styles.module.css.js";
6
- import d from "./app-toggle.js";
6
+ import d from "./app-toggle2.js";
7
7
  const u = n(function({ as: r, className: t, ...p }, e) {
8
8
  return /* @__PURE__ */ o(r || "div", { className: a(s.app, t), ref: e, ...p });
9
9
  }), f = n(function({ as: r, className: t, ...p }, e) {
@@ -19,7 +19,7 @@ class r extends g {
19
19
  }
20
20
  constructor() {
21
21
  super(), this.attachShadow({ mode: "open" }).append(m("figure")), C(this, `@layer leaflet{${h}}
22
- @layer mt.v3-2-5design{${b}`);
22
+ @layer mt.v3-2-6design{${b}`);
23
23
  }
24
24
  connectedCallback() {
25
25
  const t = this.shadowRoot?.lastElementChild, e = a(this, "data-cluster") ?? "false", o = new i.TileLayer(k, {
@@ -15,7 +15,7 @@ var mtds=(function(S){"use strict";var Br=Object.defineProperty,ho=Object.getOwn
15
15
  Please use <details> and <summary>, but import '@u-elements/u-details/polyfill' to polyfill support for Talkback screen reader when used with Firefox on Android.`,this)}connectedCallback(){var t;this._content=(t=this.shadowRoot)==null?void 0:t.children[1],tt(this,"role","group"),Uo(this._content,"beforematch",this),Uo(this,"click keydown",this),this.attributeChangedCallback()}disconnectedCallback(){this._content&&gn(this._content,"beforematch",this),gn(this,"click keydown",this),this._content=void 0}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"&&tt(s,"aria-expanded",`${i}`);if(this._content&&(tt(this._content,"aria-hidden",`${!i}`),tt(this._content,"tabindex",i?null:"-1"),this._content.hidden=i?!1:o),i&&this.name){const s=Pa(this).querySelectorAll(`${this.nodeName}[name="${this.name}"]`);for(const r of s)r!==this&&(r.open=!1)}t==="open"&&e===null!=(n===null)&&this.dispatchEvent(new Event("toggle"))}handleEvent(t){var e,n;const o=t.key===" "||t.key==="Enter",i=t.target instanceof Element&&((e=t.target.closest('[slot="summary"]'))==null?void 0:e.parentElement)===this;t.defaultPrevented||(t.type==="beforematch"&&(this.open=!0),i&&t.type==="click"&&(this.open=!this.open),i&&t.type==="keydown"&&o&&((n=t.preventDefault)==null||n.call(t),t.target.dispatchEvent(new MouseEvent("click",t))))}get open(){return this.hasAttribute("open")}set open(t){tt(this,"open",t?"":null)}get name(){return tt(this,"name")||""}set name(t){tt(this,"name",t)}},qa=class extends Bo{connectedCallback(){tt(this,"role","button"),this.slot="summary",this.tabIndex=0}};zo.define("u-details",Na),zo.define("u-summary",qa);function Ba(){return typeof HTMLButtonElement<"u"&&"command"in HTMLButtonElement.prototype&&"source"in((globalThis.CommandEvent||{}).prototype||{})}function Ua(){document.addEventListener("invoke",f=>{f.type=="invoke"&&f.isTrusted&&(f.stopImmediatePropagation(),f.preventDefault())},!0),document.addEventListener("command",f=>{f.type=="command"&&f.isTrusted&&(f.stopImmediatePropagation(),f.preventDefault())},!0);function t(f,p,b=!0){Object.defineProperty(f,p,{...Object.getOwnPropertyDescriptor(f,p),enumerable:b})}function e(f){return f&&typeof f.getRootNode=="function"?f.getRootNode():f&&f.parentNode?e(f.parentNode):f}let n=new WeakMap,o=new WeakMap;class i extends Event{constructor(p,b={}){super(p,b);let{source:y,command:_}=b;if(y!=null&&!(y instanceof Element))throw TypeError("source must be an element");n.set(this,y||null),o.set(this,_===void 0?"":String(_))}get[Symbol.toStringTag](){return"CommandEvent"}get source(){if(!n.has(this))throw TypeError("illegal invocation");let p=n.get(this);if(!(p instanceof Element))return null;let b=e(p);return b===e(this.target||document)?p:b.host}get command(){if(!o.has(this))throw TypeError("illegal invocation");return o.get(this)}}t(i.prototype,"source"),t(i.prototype,"command");let s=new WeakMap;function r(f){Object.defineProperties(f.prototype,{commandForElement:{enumerable:!0,configurable:!0,set(p){if(p===null)this.removeAttribute("commandfor"),s.delete(this);else if(p instanceof Element){this.setAttribute("commandfor","");let b=e(p);e(this)===b||b===this.ownerDocument?s.set(this,p):s.delete(this)}else throw TypeError("commandForElement must be an element or null")},get(){if(this.localName!=="button"||this.disabled)return null;if(this.form&&this.getAttribute("type")!=="button")return console.warn("Element with `commandFor` is a form participant. It should explicitly set `type=button` in order for `commandFor` to work"),null;let p=s.get(this);if(p)return p.isConnected?p:(s.delete(this),null);let b=e(this),y=this.getAttribute("commandfor");return(b instanceof Document||b instanceof ShadowRoot)&&y&&b.getElementById(y)||null}},command:{enumerable:!0,configurable:!0,get(){let p=this.getAttribute("command")||"";if(p.startsWith("--"))return p;let b=p.toLowerCase();switch(b){case"show-modal":case"request-close":case"close":case"toggle-popover":case"hide-popover":case"show-popover":return b}return""},set(p){this.setAttribute("command",p)}}})}let a=new WeakMap;Object.defineProperties(HTMLElement.prototype,{oncommand:{enumerable:!0,configurable:!0,get(){return c.takeRecords(),a.get(this)||null},set(f){let p=a.get(this)||null;p&&this.removeEventListener("command",p),a.set(this,typeof f=="object"||typeof f=="function"?f:null),typeof f=="function"&&this.addEventListener("command",f)}}});function l(f){for(let p of f)p.oncommand=Function("event",p.getAttribute("oncommand"))}let c=new MutationObserver(f=>{for(let p of f){let{target:b}=p;p.type==="childList"?l(b.querySelectorAll("[oncommand]")):l([b])}});c.observe(document,{subtree:!0,childList:!0,attributeFilter:["oncommand"]}),l(document.querySelectorAll("[oncommand]"));let u=new WeakSet;function d(f){if(u.has(f)||(u.add(f),f.defaultPrevented)||f.type!=="click")return;let p=f.composedPath().find(w=>w.matches?.("button[commandfor], button[command]"));if(!p)return;if(p.form&&p.getAttribute("type")!=="button")throw f.preventDefault(),Error("Element with `commandFor` is a form participant. It should explicitly set `type=button` in order for `commandFor` to work. In order for it to act as a Submit button, it must not have command or commandfor attributes");if(p.hasAttribute("command")!==p.hasAttribute("commandfor")){let w=p.hasAttribute("command")?"command":"commandfor",x=p.hasAttribute("command")?"commandfor":"command";throw Error(`Element with ${w} attribute must also have a ${x} attribute to function.`)}if(p.command!=="show-popover"&&p.command!=="hide-popover"&&p.command!=="toggle-popover"&&p.command!=="show-modal"&&p.command!=="request-close"&&p.command!=="close"&&!p.command.startsWith("--")){console.warn(`"${p.command}" is not a valid command value. Custom commands must begin with --`);return}let b=p.commandForElement;if(!b)return;let y=new i("command",{command:p.command,source:p,cancelable:!0});if(b.dispatchEvent(y),y.defaultPrevented)return;let _=y.command.toLowerCase();if(b.popover){let w=!b.matches(":popover-open");w&&(_==="toggle-popover"||_==="show-popover")?b.showPopover({source:p}):!w&&_==="hide-popover"&&b.hidePopover()}else if(b.localName==="dialog"){let w=!b.hasAttribute("open");w&&_=="show-modal"?b.showModal():!w&&_=="close"?b.close(p.value?p.value:void 0):!w&&_=="request-close"&&(HTMLDialogElement.prototype.requestClose||(HTMLDialogElement.prototype.requestClose=function(){let x=new Event("cancel",{cancelable:!0});this.dispatchEvent(x),x.defaultPrevented||this.close()}),b.requestClose(p.value?p.value:void 0))}}function m(f){f.addEventListener("click",d,!0)}function h(f,p){let b=f.prototype.attachShadow;f.prototype.attachShadow=function(_){let w=b.call(this,_);return p(w),w};let y=f.prototype.attachInternals;f.prototype.attachInternals=function(){let _=y.call(this);return _.shadowRoot&&p(_.shadowRoot),_}}r(HTMLButtonElement),h(HTMLElement,f=>{m(f),c.observe(f,{attributeFilter:["oncommand"]}),l(f.querySelectorAll("[oncommand]"))}),m(document),Object.assign(globalThis,{CommandEvent:i})}const B={passive:!0,capture:!0},j=()=>typeof window<"u"&&typeof document<"u",za=()=>j()&&/^Win/i.test(navigator.userAgentData?.platform||navigator.platform),ge=typeof HTMLElement>"u"?class{}:HTMLElement;function Fo(t,e){let n;return function(...o){clearTimeout(n),n=setTimeout(()=>t.apply(this,o),e)}}const Mt=(t,...e)=>!j()||window.dsWarnings===!1||console.log(`\x1B[1mDesignsystemet:\x1B[m ${t}`,...e),v=(t,e,n)=>n===void 0?t.getAttribute(e)??null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null),bn=(t,e)=>getComputedStyle(t).getPropertyValue(e).trim(),Fa=/^["']|["']$/g,It=(t,e)=>{let n=v(t,e);return n||=bn(t,`--_ds-${e}`).replace(Fa,"").trim(),n||Mt(`Missing ${e} on:`,t),n||null},M=(t,...e)=>{let[n,...o]=e;for(let i of n.split(" "))t.addEventListener(i,...o);return()=>vn(t,...e)},vn=(t,...e)=>{let[n,...o]=e;for(let i of n.split(" "))t.removeEventListener(i,...o)},et=(t,e)=>{j()&&(window._dsHotReloadCleanup||(window._dsHotReloadCleanup=new Map),window._dsHotReloadCleanup?.get(t)?.map(n=>n()),window._dsHotReloadCleanup?.set(t,e()))},nt=(t,e,n)=>{let o=()=>i.disconnect(),i=new MutationObserver(s=>{if(!j()||!t.isConnected)return o();e(t,s)});return e(t),i.observe(t,n),o},Wo=(t,e)=>{let n=document.createElement(t);if(e)for(let[o,i]of Object.entries(e))v(n,o,i);return n},ot={define:(t,e)=>!j()||window.customElements.get(t)||window.customElements.define(t,e)};let Wa=0;function it(t){return j()?(window.dsUseId||(window.dsUseId=0),t&&!t.id&&(t.id=`:ds:${++window.dsUseId}`),t?.id||""):`:ds:${++Wa}`}let X,Va=0,Vo=0;const yn=t=>{clearTimeout(Vo),X&&(X.textContent=`${t}${Va++%2?" ":""}`),t&&(Vo=setTimeout(yn,2e3,""))},Ga=()=>{document.readyState==="complete"&&(X||(X=Wo("div",{"aria-live":"assertive"}),X.style.overflow="hidden",X.style.position="fixed",X.style.whiteSpace="nowrap",X.style.width="1px"),X.isConnected||document.body.appendChild(X))};et("announce",()=>[M(document,"focus mouseover",Ga,B)]);const Go=":click-delegate-hover",jo="data-clickdelegatefor",ja=`[${jo}]`,Xa=t=>{let e=t.button===1||t.metaKey||t.ctrlKey,n=t.button<2&&Xo(t);if(!(!n||n.contains(t.target))){if(e&&n instanceof HTMLAnchorElement)return window.open(n.href,void 0,n.rel);t.stopImmediatePropagation(),n.click()}};let be;const Ka=t=>{let e=Xo(t);be!==e&&(be&&be.classList.remove(Go),e&&e.classList.add(Go),be=e)},Xo=({target:t})=>{let e=(t instanceof Element?t.closest(ja):null)?.getAttribute(jo),n=e&&document.getElementById(e)||void 0,o=n&&t.closest('a,button,label,input,select,textarea,details,dialog,[role="button"],[popover],[contenteditable]');return(!o||o===n)&&!n?.disabled?n:void 0};et("clickdelegatefor",()=>[M(window,"click auxclick",Xa,!0),M(document,"mouseover",Ka,B)]);let wn=!1;const Ya=({type:t,target:e,clientX:n=0,clientY:o=0})=>{if(t==="pointerdown"){let i=e?.closest?.("dialog")?.getBoundingClientRect();wn=!!(i&&i.top<=o&&o<=i.bottom&&i.left<=n&&n<=i.right)}else{let i=e instanceof HTMLDialogElement&&!wn&&v(e,"closedby")==="any";wn=!1,i&&requestAnimationFrame(()=>e.open&&e.close())}},Qa=j()?document.getElementsByTagName("button"):[],Ja=()=>{for(let t of Qa)t.getAttribute("command")?.endsWith("-modal")&&t.setAttribute("aria-haspopup","dialog")},Za=({command:t,target:e})=>t==="--show-non-modal"&&e instanceof HTMLDialogElement&&e.show();et("dialog",()=>[M(document,"command",Za,B),M(document,"pointerdown pointerup",Ya,B),nt(document,Ja,{attributeFilter:["command"],attributes:!0,childList:!0,subtree:!0})]);const tl=j()?document.getElementsByTagName("fieldset"):[],el=()=>{for(let t of tl)t.hasAttribute("aria-labelledby")||v(t,"aria-labelledby",`${it(t.querySelector("legend"))} ${it(t.querySelector(':scope > :is([data-field="description"],legend + p)'))}`.trim()||null)};et("fieldset",()=>[nt(document,el,{childList:!0,subtree:!0})]);const Ot=Math.min,H=Math.max,ve=Math.round,ye=Math.floor,K=t=>({x:t,y:t}),nl={left:"right",right:"left",bottom:"top",top:"bottom"};function Ko(t,e,n){return H(t,Ot(e,n))}function gt(t,e){return typeof t=="function"?t(e):t}function st(t){return t.split("-")[0]}function Wt(t){return t.split("-")[1]}function _n(t){return t==="x"?"y":"x"}function Yo(t){return t==="y"?"height":"width"}function Y(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function Qo(t){return _n(Y(t))}function ol(t,e,n){n===void 0&&(n=!1);const o=Wt(t),i=Qo(t),s=Yo(i);let r=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=we(r)),[r,we(r)]}function il(t){const e=we(t);return[Sn(t),e,Sn(e)]}function Sn(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Jo=["left","right"],Zo=["right","left"],sl=["top","bottom"],rl=["bottom","top"];function al(t,e,n){switch(t){case"top":case"bottom":return n?e?Zo:Jo:e?Jo:Zo;case"left":case"right":return e?sl:rl;default:return[]}}function ll(t,e,n,o){const i=Wt(t);let s=al(st(t),n==="start",o);return i&&(s=s.map(r=>r+"-"+i),e&&(s=s.concat(s.map(Sn)))),s}function we(t){const e=st(t);return nl[e]+t.slice(e.length)}function cl(t){return{top:0,right:0,bottom:0,left:0,...t}}function dl(t){return typeof t!="number"?cl(t):{top:t,right:t,bottom:t,left:t}}function _e(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 ti(t,e,n){let{reference:o,floating:i}=t;const s=Y(e),r=Qo(e),a=Yo(r),l=st(e),c=s==="y",u=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,m=o[a]/2-i[a]/2;let h;switch(l){case"top":h={x:u,y:o.y-i.height};break;case"bottom":h={x:u,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:d};break;case"left":h={x:o.x-i.width,y:d};break;default:h={x:o.x,y:o.y}}switch(Wt(e)){case"start":h[r]-=m*(n&&c?-1:1);break;case"end":h[r]+=m*(n&&c?-1:1);break}return h}async function ul(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:r,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:h=0}=gt(e,t),f=dl(h),b=a[m?d==="floating"?"reference":"floating":d],y=_e(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),_=d==="floating"?{x:o,y:i,width:r.floating.width,height:r.floating.height}:r.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},C=_e(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:w,strategy:l}):_);return{top:(y.top-C.top+f.top)/x.y,bottom:(C.bottom-y.bottom+f.bottom)/x.y,left:(y.left-C.left+f.left)/x.x,right:(C.right-y.right+f.right)/x.x}}const fl=50,ml=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:r}=n,a=r.detectOverflow?r:{...r,detectOverflow:ul},l=await(r.isRTL==null?void 0:r.isRTL(e));let c=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=ti(c,o,l),m=o,h=0;const f={};for(let p=0;p<s.length;p++){const b=s[p];if(!b)continue;const{name:y,fn:_}=b,{x:w,y:x,data:C,reset:k}=await _({x:u,y:d,initialPlacement:o,placement:m,strategy:i,middlewareData:f,rects:c,platform:a,elements:{reference:t,floating:e}});u=w??u,d=x??d,f[y]={...f[y],...C},k&&h<fl&&(h++,typeof k=="object"&&(k.placement&&(m=k.placement),k.rects&&(c=k.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:i}):k.rects),{x:u,y:d}=ti(c,m,l)),p=-1)}return{x:u,y:d,placement:m,strategy:i,middlewareData:f}},pl=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:r,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:p=!0,...b}=gt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=st(i),_=Y(a),w=st(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),C=m||(w||!p?[we(a)]:il(a)),k=f!=="none";!m&&k&&C.push(...ll(a,p,f,x));const Z=[a,...C],St=await l.detectOverflow(e,b),xt=[];let lt=((o=s.flip)==null?void 0:o.overflows)||[];if(u&&xt.push(St[y]),d){const Et=ol(i,r,x);xt.push(St[Et[0]],St[Et[1]])}if(lt=[...lt,{placement:i,overflows:xt}],!xt.every(Et=>Et<=0)){var ee,ne;const Et=(((ee=s.flip)==null?void 0:ee.index)||0)+1,po=Z[Et];if(po&&(!(d==="alignment"?_!==Y(po):!1)||lt.every(V=>Y(V.placement)===_?V.overflows[0]>0:!0)))return{data:{index:Et,overflows:lt},reset:{placement:po}};let ie=(ne=lt.filter($t=>$t.overflows[0]<=0).sort(($t,V)=>$t.overflows[1]-V.overflows[1])[0])==null?void 0:ne.placement;if(!ie)switch(h){case"bestFit":{var oe;const $t=(oe=lt.filter(V=>{if(k){const mt=Y(V.placement);return mt===_||mt==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(mt=>mt>0).reduce((mt,zu)=>mt+zu,0)]).sort((V,mt)=>V[1]-mt[1])[0])==null?void 0:oe[0];$t&&(ie=$t);break}case"initialPlacement":ie=a;break}if(i!==ie)return{reset:{placement:ie}}}return{}}}},ei=new Set(["left","top"]);async function hl(t,e){const{placement:n,platform:o,elements:i}=t,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),r=st(n),a=Wt(n),l=Y(n)==="y",c=ei.has(r)?-1:1,u=s&&l?-1:1,d=gt(e,t);let{mainAxis:m,crossAxis:h,alignmentAxis:f}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof f=="number"&&(h=a==="end"?f*-1:f),l?{x:h*u,y:m*c}:{x:m*c,y:h*u}}const gl=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:s,placement:r,middlewareData:a}=e,l=await hl(e,t);return r===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:r}}}}},bl=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i,platform:s}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:l={fn:y=>{let{x:_,y:w}=y;return{x:_,y:w}}},...c}=gt(t,e),u={x:n,y:o},d=await s.detectOverflow(e,c),m=Y(st(i)),h=_n(m);let f=u[h],p=u[m];if(r){const y=h==="y"?"top":"left",_=h==="y"?"bottom":"right",w=f+d[y],x=f-d[_];f=Ko(w,f,x)}if(a){const y=m==="y"?"top":"left",_=m==="y"?"bottom":"right",w=p+d[y],x=p-d[_];p=Ko(w,p,x)}const b=l.fn({...e,[h]:f,[m]:p});return{...b,data:{x:b.x-n,y:b.y-o,enabled:{[h]:r,[m]:a}}}}}},vl=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:s,middlewareData:r}=e,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=gt(t,e),u={x:n,y:o},d=Y(i),m=_n(d);let h=u[m],f=u[d];const p=gt(a,e),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const w=m==="y"?"height":"width",x=s.reference[m]-s.floating[w]+b.mainAxis,C=s.reference[m]+s.reference[w]-b.mainAxis;h<x?h=x:h>C&&(h=C)}if(c){var y,_;const w=m==="y"?"width":"height",x=ei.has(st(i)),C=s.reference[d]-s.floating[w]+(x&&((y=r.offset)==null?void 0:y[d])||0)+(x?0:b.crossAxis),k=s.reference[d]+s.reference[w]+(x?0:((_=r.offset)==null?void 0:_[d])||0)-(x?b.crossAxis:0);f<C?f=C:f>k&&(f=k)}return{[m]:h,[d]:f}}}},yl=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:s,platform:r,elements:a}=e,{apply:l=()=>{},...c}=gt(t,e),u=await r.detectOverflow(e,c),d=st(i),m=Wt(i),h=Y(i)==="y",{width:f,height:p}=s.floating;let b,y;d==="top"||d==="bottom"?(b=d,y=m===(await(r.isRTL==null?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,b=m==="end"?"top":"bottom");const _=p-u.top-u.bottom,w=f-u.left-u.right,x=Ot(p-u[b],_),C=Ot(f-u[y],w),k=!e.middlewareData.shift;let Z=x,St=C;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(St=w),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(Z=_),k&&!m){const lt=H(u.left,0),ee=H(u.right,0),ne=H(u.top,0),oe=H(u.bottom,0);h?St=f-2*(lt!==0||ee!==0?lt+ee:H(u.left,u.right)):Z=p-2*(ne!==0||oe!==0?ne+oe:H(u.top,u.bottom))}await l({...e,availableWidth:St,availableHeight:Z});const xt=await r.getDimensions(a.floating);return f!==xt.width||p!==xt.height?{reset:{rects:!0}}:{}}}};function Se(){return typeof window<"u"}function Dt(t){return ni(t)?(t.nodeName||"").toLowerCase():"#document"}function N(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Q(t){var e;return(e=(ni(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ni(t){return Se()?t instanceof Node||t instanceof N(t).Node:!1}function z(t){return Se()?t instanceof Element||t instanceof N(t).Element:!1}function rt(t){return Se()?t instanceof HTMLElement||t instanceof N(t).HTMLElement:!1}function oi(t){return!Se()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof N(t).ShadowRoot}function Vt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=F(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&i!=="inline"&&i!=="contents"}function wl(t){return/^(table|td|th)$/.test(Dt(t))}function xe(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const _l=/transform|translate|scale|rotate|perspective|filter/,Sl=/paint|layout|strict|content/,bt=t=>!!t&&t!=="none";let xn;function En(t){const e=z(t)?F(t):t;return bt(e.transform)||bt(e.translate)||bt(e.scale)||bt(e.rotate)||bt(e.perspective)||!$n()&&(bt(e.backdropFilter)||bt(e.filter))||_l.test(e.willChange||"")||Sl.test(e.contain||"")}function xl(t){let e=dt(t);for(;rt(e)&&!Pt(e);){if(En(e))return e;if(xe(e))return null;e=dt(e)}return null}function $n(){return xn==null&&(xn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),xn}function Pt(t){return/^(html|body|#document)$/.test(Dt(t))}function F(t){return N(t).getComputedStyle(t)}function Ee(t){return z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function dt(t){if(Dt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||oi(t)&&t.host||Q(t);return oi(e)?e.host:e}function ii(t){const e=dt(t);return Pt(e)?t.ownerDocument?t.ownerDocument.body:t.body:rt(e)&&Vt(e)?e:ii(e)}function Gt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=ii(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),r=N(i);if(s){const a=Tn(r);return e.concat(r,r.visualViewport||[],Vt(i)?i:[],a&&n?Gt(a):[])}else return e.concat(i,Gt(i,[],n))}function Tn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function si(t){const e=F(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=rt(t),s=i?t.offsetWidth:n,r=i?t.offsetHeight:o,a=ve(n)!==s||ve(o)!==r;return a&&(n=s,o=r),{width:n,height:o,$:a}}function Cn(t){return z(t)?t:t.contextElement}function Ht(t){const e=Cn(t);if(!rt(e))return K(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=si(e);let r=(s?ve(n.width):n.width)/o,a=(s?ve(n.height):n.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!a||!Number.isFinite(a))&&(a=1),{x:r,y:a}}const El=K(0);function ri(t){const e=N(t);return!$n()||!e.visualViewport?El:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function $l(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==N(t)?!1:e}function vt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Cn(t);let r=K(1);e&&(o?z(o)&&(r=Ht(o)):r=Ht(t));const a=$l(s,n,o)?ri(s):K(0);let l=(i.left+a.x)/r.x,c=(i.top+a.y)/r.y,u=i.width/r.x,d=i.height/r.y;if(s){const m=N(s),h=o&&z(o)?N(o):o;let f=m,p=Tn(f);for(;p&&o&&h!==f;){const b=Ht(p),y=p.getBoundingClientRect(),_=F(p),w=y.left+(p.clientLeft+parseFloat(_.paddingLeft))*b.x,x=y.top+(p.clientTop+parseFloat(_.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=w,c+=x,f=N(p),p=Tn(f)}}return _e({width:u,height:d,x:l,y:c})}function $e(t,e){const n=Ee(t).scrollLeft;return e?e.left+n:vt(Q(t)).left+n}function ai(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-$e(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function Tl(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s=i==="fixed",r=Q(o),a=e?xe(e.floating):!1;if(o===r||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=K(1);const u=K(0),d=rt(o);if((d||!d&&!s)&&((Dt(o)!=="body"||Vt(r))&&(l=Ee(o)),d)){const h=vt(o);c=Ht(o),u.x=h.x+o.clientLeft,u.y=h.y+o.clientTop}const m=r&&!d&&!s?ai(r,l):K(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+m.x,y:n.y*c.y-l.scrollTop*c.y+u.y+m.y}}function Cl(t){return Array.from(t.getClientRects())}function Al(t){const e=Q(t),n=Ee(t),o=t.ownerDocument.body,i=H(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=H(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+$e(t);const a=-n.scrollTop;return F(o).direction==="rtl"&&(r+=H(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:r,y:a}}const li=25;function kl(t,e){const n=N(t),o=Q(t),i=n.visualViewport;let s=o.clientWidth,r=o.clientHeight,a=0,l=0;if(i){s=i.width,r=i.height;const u=$n();(!u||u&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const c=$e(o);if(c<=0){const u=o.ownerDocument,d=u.body,m=getComputedStyle(d),h=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,f=Math.abs(o.clientWidth-d.clientWidth-h);f<=li&&(s-=f)}else c<=li&&(s+=c);return{width:s,height:r,x:a,y:l}}function Ll(t,e){const n=vt(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=rt(t)?Ht(t):K(1),r=t.clientWidth*s.x,a=t.clientHeight*s.y,l=i*s.x,c=o*s.y;return{width:r,height:a,x:l,y:c}}function ci(t,e,n){let o;if(e==="viewport")o=kl(t,n);else if(e==="document")o=Al(Q(t));else if(z(e))o=Ll(e,n);else{const i=ri(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return _e(o)}function di(t,e){const n=dt(t);return n===e||!z(n)||Pt(n)?!1:F(n).position==="fixed"||di(n,e)}function Rl(t,e){const n=e.get(t);if(n)return n;let o=Gt(t,[],!1).filter(a=>z(a)&&Dt(a)!=="body"),i=null;const s=F(t).position==="fixed";let r=s?dt(t):t;for(;z(r)&&!Pt(r);){const a=F(r),l=En(r);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Vt(r)&&!l&&di(t,r))?o=o.filter(u=>u!==r):i=a,r=dt(r)}return e.set(t,o),o}function Ml(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[...n==="clippingAncestors"?xe(e)?[]:Rl(e,this._c):[].concat(n),o],a=ci(e,r[0],i);let l=a.top,c=a.right,u=a.bottom,d=a.left;for(let m=1;m<r.length;m++){const h=ci(e,r[m],i);l=H(h.top,l),c=Ot(h.right,c),u=Ot(h.bottom,u),d=H(h.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function Il(t){const{width:e,height:n}=si(t);return{width:e,height:n}}function Ol(t,e,n){const o=rt(e),i=Q(e),s=n==="fixed",r=vt(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=K(0);function c(){l.x=$e(i)}if(o||!o&&!s)if((Dt(e)!=="body"||Vt(i))&&(a=Ee(e)),o){const h=vt(e,!0,s,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else i&&c();s&&!o&&i&&c();const u=i&&!o&&!s?ai(i,a):K(0),d=r.left+a.scrollLeft-l.x-u.x,m=r.top+a.scrollTop-l.y-u.y;return{x:d,y:m,width:r.width,height:r.height}}function An(t){return F(t).position==="static"}function ui(t,e){if(!rt(t)||F(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Q(t)===n&&(n=n.ownerDocument.body),n}function fi(t,e){const n=N(t);if(xe(t))return n;if(!rt(t)){let i=dt(t);for(;i&&!Pt(i);){if(z(i)&&!An(i))return i;i=dt(i)}return n}let o=ui(t,e);for(;o&&wl(o)&&An(o);)o=ui(o,e);return o&&Pt(o)&&An(o)&&!En(o)?n:o||xl(t)||n}const Dl=async function(t){const e=this.getOffsetParent||fi,n=this.getDimensions,o=await n(t.floating);return{reference:Ol(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Pl(t){return F(t).direction==="rtl"}const Hl={convertOffsetParentRelativeRectToViewportRelativeRect:Tl,getDocumentElement:Q,getClippingRect:Ml,getOffsetParent:fi,getElementRects:Dl,getClientRects:Cl,getDimensions:Il,getScale:Ht,isElement:z,isRTL:Pl};function mi(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Nl(t,e){let n=null,o;const i=Q(t);function s(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function r(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=t.getBoundingClientRect(),{left:u,top:d,width:m,height:h}=c;if(a||e(),!m||!h)return;const f=ye(d),p=ye(i.clientWidth-(u+m)),b=ye(i.clientHeight-(d+h)),y=ye(u),w={rootMargin:-f+"px "+-p+"px "+-b+"px "+-y+"px",threshold:H(0,Ot(1,l))||1};let x=!0;function C(k){const Z=k[0].intersectionRatio;if(Z!==l){if(!x)return r();Z?r(!1,Z):o=setTimeout(()=>{r(!1,1e-7)},1e3)}Z===1&&!mi(c,t.getBoundingClientRect())&&r(),x=!1}try{n=new IntersectionObserver(C,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(t)}return r(!0),s}function ql(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,c=Cn(t),u=i||s?[...c?Gt(c):[],...e?Gt(e):[]]:[];u.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const d=c&&a?Nl(c,n):null;let m=-1,h=null;r&&(h=new ResizeObserver(y=>{let[_]=y;_&&_.target===c&&h&&e&&(h.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(e)})),n()}),c&&!l&&h.observe(c),e&&h.observe(e));let f,p=l?vt(t):null;l&&b();function b(){const y=vt(t);p&&!mi(p,y)&&n(),p=y,f=requestAnimationFrame(b)}return n(),()=>{var y;u.forEach(_=>{i&&_.removeEventListener("scroll",n),s&&_.removeEventListener("resize",n)}),d?.(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const Bl=gl,Ul=bl,zl=pl,Fl=yl,Wl=vl,Vl=(t,e,n)=>{const o=new Map,i={platform:Hl,...n},s={...i.platform,_c:o};return ml(t,e,{...i,platform:s})},pi="data-placement",hi="data-autoplacement",jt=new Map;function Gl(t){let{newState:e,oldState:n,target:o,source:i=t.detail}=t,s=o instanceof HTMLElement&&v(o,"popover")!==null&&bn(o,"--_ds-floating");if(!s)return;if(e==="closed")return jt.get(o)?.();if(!i){let f=o.getRootNode(),p=`[popovertarget="${o.id}"],[commandfor="${o.id}"]`;i=o.id&&f?.querySelector?.(p)||void 0}if(!i||i===o||n&&n===e)return;let r=bn(o,"--_ds-floating-overscroll"),a=v(o,pi)||v(i,pi)||s,l=v(o,hi)||v(i,hi),c=parseFloat(getComputedStyle(o,"::before").height)||0,u=a.match(/left|right/gi)?"Height":"Width",d=i[`offset${u}`]/2+c;if(a==="none")return;let m={strategy:"absolute",placement:a,middleware:[Bl(c||0),Ul({padding:10,limiter:Wl({offset:{mainAxis:d}})}),Xl(),...l==="false"?[]:[zl({padding:10,crossAxis:!1})],...r?[Fl({apply({availableHeight:f}){r==="fit"&&(o.style.width=`${i.clientWidth}px`),o.style.maxHeight=`${Math.max(50,f-20)}px`}})]:[]]},h=ql(i,o,async()=>{if(!i?.isConnected)return jt.get(o)?.();let{x:f,y:p}=await Vl(i,o,m);o.style.translate=`${f}px ${p}px`});jt.set(o,()=>jt.delete(o)&&h())}let Te;const jl=({type:t})=>{if(t==="mousedown"&&(Te=!1),t==="scroll"&&Te===!1&&(Te=!0),t==="mouseup"&&Te)for(let[e]of jt)e.showPopover()};et("popover",()=>[M(document,"mousedown scroll mouseup",jl,!0),M(document,"toggle ds-toggle-source",Gl,B)]);const Xl=()=>({name:"arrowPseudo",fn(t){let e=t.elements.floating,n=t.rects.reference,o=`${Math.round(n.width/2+n.x-t.x)}px`,i=`${Math.round(n.height/2+n.y-t.y)}px`;return e.style.setProperty("--_ds-floating-arrow-x",o),e.style.setProperty("--_ds-floating-arrow-y",i),v(e,"data-floating",t.placement),t}}),kn=t=>(t instanceof HTMLSelectElement||t instanceof HTMLInputElement)&&(t.hasAttribute("readonly")||v(t,"aria-readonly")==="true"),Kl=t=>{if(t.key!=="Tab"&&kn(t.target)){let e=t.key?.startsWith("Arrow"),n=t.altKey||t.ctrlKey||t.metaKey;if((e||!n)&&t.preventDefault(),e&&v(t.target,"type")==="radio"){let o=document.querySelectorAll(`input[name="${t.target.name}"]`),i=t.key?.match(/Arrow(Right|Down)/)?1:-1;o[(o.length+[...o].indexOf(t.target)+i)%o.length]?.focus()}}},Yl=t=>{let e=t.target?.closest?.("label")?.control||t.target;kn(e)&&(t.preventDefault(),e.focus())},Ql=t=>{t.target instanceof HTMLSelectElement&&kn(t.target)&&t.preventDefault()};et("readonly",()=>[M(document,"keydown",Kl),M(document,"click",Yl),M(document,"mousedown",Ql)]);const gi="aria-label",Ce="data-toggle-group",bi=`[${Ce}]`,Jl=()=>{for(let t of document.querySelectorAll(bi))v(t,"aria-label",It(t,Ce))},Zl=t=>{let{key:e,target:n}=t,o=n instanceof HTMLInputElement&&n.closest(bi);if(o&&(!v(o,gi)&&!v(o,"aria-labelledby")&&v(o,gi,It(o,Ce)),e==="Enter"&&n.click(),e?.startsWith("Arrow"))){t.preventDefault?.();let i=[...o.getElementsByTagName("input")],s=i.indexOf(n),r=e.match(/Arrow(Right|Down)/)?1:-1,a=s;for(let l=0;l<i.length;l++)if(a=(i.length+a+r)%i.length,!i[a]?.disabled){i[a]?.focus();break}}};et("toggle-group",()=>[M(document,"keydown",Zl),nt(document,Jl,{attributeFilter:[Ce],attributes:!0,childList:!0,subtree:!0})]);let A,Xt,Ae=!1,Ln=0,Rn=0;const tc=j()&&/iPad|iPhone|iPod/.test(navigator.userAgent),Nt="data-tooltip",Mn="data-color",vi="aria-label",yi="aria-description",ec=`[${Mn}]`,nc=`[${Nt}]`,In="data-color-scheme",oc=`[${In}]`,wi=t=>{t&&!(t instanceof HTMLElement)&&Mt("setTooltipElement expects an HTMLElement, got: ",t),clearTimeout(Rn),clearTimeout(Ln),Xt=void 0,Ae=!1,A=t||void 0},ic=()=>{for(let t of document.querySelectorAll(nc)){let e=It(t,Nt);if(!e)return;if(e!==(t.getAttribute(vi)||t.getAttribute(yi))){let i=v(t,"role")!=="img"&&t.textContent?.trim();v(t,Nt,e),v(t,vi,i?null:e),v(t,yi,i?e:null),t.matches("a,button,input,label,select,textarea,[tabindex]")||Mt('Missing tabindex="0" attribute on: ',t)}let n=t===Xt&&A?.offsetHeight&&A?.offsetWidth,o=n&&e&&A?.textContent!==e;n&&o&&(A&&(A.textContent=e),document.activeElement===t&&yn(e))}},_i=({type:t,target:e})=>{if(clearTimeout(Ln),e===A)return;if(t==="mouseover"&&!Ae&&!tc){Ln=setTimeout(_i,300,{target:e});return}let n=e?.closest?.(`[${Nt}]`);if(n===Xt)return;if(!n)return Si();A||=Wo("div",{class:"ds-tooltip"}),A.isConnected||document.body.appendChild(A);let o=n.closest(ec),i=n.closest(oc),s=o!==i&&o?.contains(i);clearTimeout(Rn),v(A,"popover","manual"),v(A,In,i?.getAttribute(In)||null),v(A,Mn,s&&o?.getAttribute(Mn)||null),A.textContent=v(n,Nt),A.showPopover(),A.dispatchEvent(new CustomEvent("ds-toggle-source",{detail:n})),Ae=!0,Xt=n},Si=()=>A?.isConnected&&A.popover&&A.hidePopover(),xi=t=>{if(t?.type==="keydown")return t?.key==="Escape"&&Si();t?t.target===A&&t.newState==="closed"&&(Xt=void 0,Rn=setTimeout(xi,300)):Ae=!1};et("tooltip",()=>[M(document,"blur focus mouseover",_i,B),M(document,"toggle keydown",xi,B),nt(document,ic,{attributeFilter:[Nt],attributes:!0,childList:!0,subtree:!0})]);const On="aria-label";var Ei=class extends ge{_items;_label=null;_unresize;_unmutate;static get observedAttributes(){return[On]}connectedCallback(){let e=Fo(()=>Dn(this),100);this._label=It(this,On),this._items=this.getElementsByTagName("a"),this._unresize=M(window,"resize",e),this._unmutate=nt(this,Dn,{childList:!0,subtree:!0})}attributeChangedCallback(e,n,o){!this._unmutate||!o||(this._label=o,Dn(this))}disconnectedCallback(){this._unresize?.(),this._unmutate?.(),this._unresize=this._unmutate=this._items=void 0}};const Dn=t=>{let e=t._items?.[t._items.length-1],n=e?.parentElement===t?null:e,o=!n?.offsetHeight;v(t,"role",o?null:"navigation"),v(t,On,o?null:t._label);for(let i of t._items||[])v(i,"aria-current",i===n?"page":null)};ot.define("ds-breadcrumbs",Ei);var $i=class extends ge{_unmutate;connectedCallback(){M(this,"animationend",this,B),v(this,"tabindex","-1"),this._unmutate=nt(this,sc,{childList:!0,subtree:!0}),this.focus()}handleEvent({target:e}){e===this&&this.focus()}disconnectedCallback(){vn(this,"animationend",this,B),this._unmutate?.(),this._unmutate=void 0}};const sc=t=>{let e=t.querySelector("h2,h3,h4,h5,h6");e&&v(t,"aria-labelledby",it(e))};ot.define("ds-error-summary",$i);const Pn="aria-invalid",Ti="aria-describedby",Ci="data-indeterminate",rc=za()?800:200,Ai=new WeakMap,Kt=new Map,Hn=new WeakSet,ac=(t,e=[])=>{for(let{target:n}of e){let o=n instanceof HTMLFieldSetElement;for(let[i]of Kt)(o?n.contains(i):i.contains(n))&&ki(i)}},ki=t=>{let e=[],n=[],o=Kt.get(t)||[],i,s,r=!1,a=!1;for(let m of t.getElementsByTagName("*"))if(m instanceof HTMLLabelElement&&e.push(m),!m.hidden)if(dc(m))i?Mt("Fields should only have one input element. Use <fieldset> to group multiple fields:",t):i=m;else{let h=m.getAttribute("data-field");h==="counter"&&(s=m),h==="validation"?(n.unshift(it(m)),r=!0,a||=Ri(m)):h&&n.push(it(m))}if(!i)return;s&&Ai.set(i,s);for(let m of e)v(m,"for",it(i));let l=t.closest("fieldset")?.querySelector(':scope > [data-field="validation"]');l&&!l?.hidden&&(r=!0,a||=Ri(l),n.unshift(it(l)));let c=v(i,Ci);c&&(i.indeterminate=c==="true"),(i.type==="radio"||i.type==="checkbox")&&v(t,"data-clickdelegatefor",it(i));let u=v(i,Ti)?.trim().split(/\s+/)?.filter(m=>!o.includes(m))||[];v(i,Ti,[...n,...u].join(" ")||null),Kt.set(t,n);let d=Hn.has(i);r&&!d&&!i.hasAttribute(Pn)?(v(i,Pn,"true"),Hn.add(i)):!r&&d&&(v(i,Pn,null),Hn.delete(i)),Li(i)},lc={over:"%d tegn for mye",under:"%d tegn igjen"},Li=t=>{let e=t.target||t,n=Ai.get(e);if(n?.isConnected){let o=(Number(v(n,"data-limit"))||0)-e.value.length,i=o<0?"over":"under",s=(It(n,`data-${i}`)||lc[i])?.replace("%d",`${Math.abs(o)}`);v(n,"data-label",s),v(n,"data-state",i),v(n,"data-color",o<0?"danger":null),t.type==="input"&&s&&cc(e,s)}e instanceof HTMLTextAreaElement&&(e.style.setProperty("--_ds-field-sizing","auto"),e.style.setProperty("--_ds-field-sizing",`${e.scrollHeight}px`))},cc=Fo((t,e)=>{document.activeElement===t&&yn(e)},rc),Ri=t=>t.getAttribute("data-color")!=="success",dc=t=>t instanceof HTMLElement&&"validity"in t&&!(t instanceof HTMLButtonElement)&&t.type!=="hidden";var ke=class extends ge{connectedCallback(){Kt.set(this,[]),ki(this)}disconnectedCallback(){Kt.delete(this)}};ot.define("ds-field",ke),et("field",()=>[M(document,"input",Li,B),nt(document,ac,{attributeFilter:["data-field","data-limit","hidden","id","value",Ci],attributes:!0,childList:!0,subtree:!0})]);const Nn="aria-label",Le="data-current",Re="data-total",Mi="data-href",Ii=({current:t=1,total:e=10,show:n=7})=>({prev:t>1?t-1:0,next:t<e?t+1:0,pages:uc(t,e,n).map((o,i)=>({current:o===t&&"page",key:`key-${o}-${i}`,page:o}))});var Oi=class extends ge{_unmutate;_render;static get observedAttributes(){return[Nn,Le,Re,Mi]}connectedCallback(){let t=v(this,Re),e=v(this,Le);e&&!t&&Mt(`Missing ${Re} attribute on:`,this),t&&!e&&Mt(`Missing ${Le} attribute on:`,this),v(this,Nn,It(this,Nn)),v(this,"role","navigation"),this._unmutate=nt(this,Di,{childList:!0,subtree:!0})}attributeChangedCallback(){this._unmutate&&Di(this)}disconnectedCallback(){this._unmutate?.(),this._unmutate=this._render=void 0}};const Di=t=>{let e=Number(v(t,Le)),n=Number(v(t,Re));if(e&&n){let o=t.querySelectorAll("button,a"),i=o.length-2,s=v(t,Mi),{next:r,prev:a,pages:l}=Ii({current:e,total:n,show:i});o.forEach((c,u)=>{let d=u?o[u+1]?l[u-1]?.page:r:a;v(c,"aria-current",l[u-1]?.current?"true":null),v(c,"aria-label",`${d??"hidden"}`),v(c,"role",d?null:"none"),v(c,"tabindex",d?null:"-1"),c instanceof HTMLButtonElement&&v(c,"value",`${d}`),s&&c instanceof HTMLAnchorElement&&v(c,"href",s.replace("%d",`${d}`))})}},uc=(t,e,n=1/0)=>{let 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),r=Array.from({length:s+1-i},(a,l)=>l+i);return n>4&&i>1&&r.splice(0,2,1,0),n>3&&s<e&&r.splice(-2,2,0,e),r};ot.define("ds-pagination",Oi);var Pi=class extends en{_unmutate;connectedCallback(){super.connectedCallback(),this._unmutate=nt(this,fc,{childList:!0}),M(this,"toggle",Hi,B)}disconnectedCallback(){super.disconnectedCallback(),this._unmutate?.(),this._unmutate=void 0,vn(this,"toggle",Hi,B)}};const fc=({control:t,list:e})=>{t&&!t.placeholder&&v(t,"placeholder"," "),t&&v(t,"popovertarget",it(e)||null),e&&v(e,"popover","manual"),e&&v(e,"data-is-floating","true")},Hi=t=>{let e=t.currentTarget,n=t.newState==="open"&&e.control;n&&e.list?.dispatchEvent(new CustomEvent("ds-toggle-source",{detail:n}))};ot.define("ds-suggestion",Pi);var Ni=class extends me{},qi=class extends pe{},Bi=class extends fn{},Ui=class extends mn{};ot.define("ds-tabs",Ni),ot.define("ds-tablist",qi),ot.define("ds-tab",Bi),ot.define("ds-tabpanel",Ui);var qn=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",zi=qn(),Fi=zi?navigator.userAgent:"",mc=/android/i.test(Fi),pc=/firefox/i.test(Fi),Wi;zi&&/^Mac/i.test(((Wi=navigator.userAgentData)==null?void 0:Wi.platform)||navigator.platform);var Vi=(t,e,n)=>n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null),hc=(t,e,n)=>{const o=new MutationObserver(s=>{if(!qn()||!t.isConnected)return i();e(t,s)}),i=Object.assign(()=>o.disconnect(),{takeRecords:()=>o.takeRecords()});return e(t),o.observe(t,n),i},Gi="__uDetailsPolyfillSummarys";if(qn()&&mc&&pc&&!window[Gi]){const t=document.getElementsByTagName("summary"),e=()=>{for(const n of t){const o=n.parentElement;Vi(n,"role","button"),Vi(n,"aria-expanded",`${!!o?.open}`)}};window[Gi]=hc(document,e,{attributeFilter:["open"],attributes:!0,childList:!0,subtree:!0})}var gc=Object.defineProperty,ji=Object.getOwnPropertySymbols,bc=Object.prototype.hasOwnProperty,vc=Object.prototype.propertyIsEnumerable,Xi=(t,e,n)=>e in t?gc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yc=(t,e)=>{for(var n in e||(e={}))bc.call(e,n)&&Xi(t,n,e[n]);if(ji)for(var n of ji(e))vc.call(e,n)&&Xi(t,n,e[n]);return t},Me=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Ie=Me(),Bn=Ie?navigator.userAgent:"",Oe=/android/i.test(Bn),wc=/firefox/i.test(Bn),_c=/iPad|iPhone|iPod/.test(Bn),Ki,Sc=Ie&&/^Mac/i.test(((Ki=navigator.userAgentData)==null?void 0:Ki.platform)||navigator.platform),xc=Ie&&window.CSSStyleSheet&&document.adoptedStyleSheets,Ec={once:!0,capture:!0,passive:!0},$c=":host(:not([hidden])) { display: block }",Tc="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",Cc=`${Oe?"data":"aria"}-multiselectable`,Yi=typeof HTMLElement>"u"?class{}:HTMLElement,$=(t,e,n)=>n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null),Un=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.addEventListener(i,...o);return()=>De(t,...e)},De=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.removeEventListener(i,...o)},Ac=(t,e)=>{const n=t.shadowRoot||t.attachShadow({mode:"open"});if(n.querySelector("slot")||n.append(zn("slot")),!n.querySelector("style"))if(!xc)n.append(zn("style",null,e));else{const o=new CSSStyleSheet;o.replaceSync(e),n.adoptedStyleSheets=[o]}return n},kc=(t,e,n)=>{const o=new MutationObserver(s=>{if(!Me()||!t.isConnected)return i();e(t,s)}),i=Object.assign(()=>o.disconnect(),{takeRecords:()=>o.takeRecords()});return e(t),o.observe(t,n),i},Pe=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},Qi=t=>Pe(t).activeElement,Yt=t=>{if(!t||!Ie)return null;if(window.uElementsId||(window.uElementsId={}),!t.id){const e=t.nodeName.toLowerCase();window.uElementsId[e]||(window.uElementsId[e]=1),t.id=`:${e}${window.uElementsId[e]++}`}return t.id},zn=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,s]of Object.entries(e))$(o,i,s);return o},Ji={define:(t,e)=>!Me()||window.customElements.get(t)||window.customElements.define(t,e)},Lc=(t,e,n="")=>{var o,i;const s={bubbles:!0,composed:!0,data:e,inputType:n},r=HTMLInputElement.prototype;t.dispatchEvent(new InputEvent("beforeinput",s)),(i=(o=Object.getOwnPropertyDescriptor(r,"value"))==null?void 0:o.set)==null||i.call(t,e),t.dispatchEvent(new InputEvent("input",s)),t.dispatchEvent(new Event("change",{bubbles:!0}))},Fn=!1,Wn=t=>(t?.type==="pointerup"&&(Fn=!1),t?.type==="pointerdown"&&(Fn=!0,Un(document,"pointerup",Wn,Ec)),Fn),Rc=(t,e="<slot></slot>")=>`<template shadowrootmode="open">${e}<style>${t}</style></template>`,Mc=t=>{const e=$(t,"form");$(t,"form","#"),setTimeout(Ic,0,t,e)},Ic=(t,e)=>$(t,"form",e),J,Oc=0,Zi=0,Vn=t=>{clearTimeout(Zi),J||(J=zn("div",{"aria-live":"assertive"}),J.style.overflow="hidden",J.style.position="fixed",J.style.whiteSpace="nowrap",J.style.width="1px"),J.isConnected||document.body.append(J),t===""&&(J.textContent=""),t&&(J.textContent=`${t}${Oc++%2?" ":""}`,Zi=setTimeout(Vn,!Sc&&wc?2e3:300,""))},Gn="disabled",Qt="selected",Dc=class extends Yi{constructor(){super(...arguments),this._skipAttrChange=!1}static get observedAttributes(){return["id",Gn,Qt]}connectedCallback(){Oe&&(this.tabIndex=-1),this.hasAttribute("role")||$(this,"role","option"),$(this,"aria-disabled",`${this.disabled}`),$(this,"aria-selected",`${this.selected}`),Yt(this)}attributeChangedCallback(t){this._skipAttrChange||(this._skipAttrChange=!0,t==="id"?Yt(this):$(this,`aria-${t}`,`${this[t]}`),this._skipAttrChange=!1)}get defaultSelected(){return this[Qt]}set defaultSelected(t){this[Qt]=t}get disabled(){return $(this,Gn)!==null}set disabled(t){$(this,Gn,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=$(this,"label"))!=null?t:this.text}set label(t){$(this,"label",t)}get selected(){return $(this,Qt)!==null}set selected(t){$(this,Qt,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=$(this,"value"))!=null?t:this.text}set value(t){$(this,"value",t)}};Ji.define("u-option",Dc);var ts="data-activedescendant",He="aria-hidden",jn=`${$c}
16
16
  ::slotted([role="option"]) { display: block; cursor: pointer }
17
17
  ::slotted([role="option"][${ts}]) { ${Tc} }
18
- ::slotted([role="option"]:is([${He}="true"], [disabled], [hidden])) { display: none !important }`,Pc=Rc(jn),Xn,es="focus click keydown",Kn="focusout input pointerdown",Ne={of:"of",plural:"%d hits",singular:"%d hit"},ns=class extends Yi{constructor(){super(),this._texts=yc({},Ne),Ac(this,jn)}static get observedAttributes(){return["id",...Object.keys(Ne).map(t=>`data-sr-${t}`)]}connectedCallback(){this._root=Pe(this),$(this,"hidden",""),$(this,"role","listbox"),$(this,"tabindex","-1"),Un(this._root,es,this,!0),this._umutate=kc(this,ss,{attributeFilter:["disabled","hidden","label","value"],attributes:!0,characterData:!0,childList:!0,subtree:!0})}disconnectedCallback(){var t;this._root&&De(this._root,es,this,!0),this._root&&De(this._root,Kn,this),qe(this,null),(t=this._umutate)==null||t.call(this),this._umutate=this._root=this._input=void 0}attributeChangedCallback(t,e,n){const o=t?.split("data-sr-")[1];if(Ne[o])this._texts[o]=n||Ne[o];else if(this.id){const i=`input[list="${this.id}"]`,s=Pe(this).querySelector(i);s&&qe(this,s)}}handleEvent(t){t.defaultPrevented||(t.type==="focus"&&Qn(this,t),t.type==="focusout"&&Nc(this,t),t.type==="click"&&Bc(this,t),t.type==="input"&&ss(this),t.type==="keydown"&&Uc(this,t),t.type==="pointerdown"&&qc(this,t))}get options(){const t=!this._options&&this.querySelector('[role="option"],option');return t&&(this._options=this.getElementsByTagName(t?.nodeName)),this._options||this.getElementsByTagName("option")}},os=t=>t.disabled||t.readOnly,Yn=t=>t instanceof HTMLInputElement,Hc=t=>$(t,He)!=="true"&&t.clientHeight,Jt=(t,e)=>{t._input&&$(t._input,"aria-expanded",`${e}`),!(!t.isConnected||t.hidden!==e)&&(e||is(t),t.popover&&t.togglePopover(e),e&&setTimeout(()=>clearTimeout(Xn)),t.hidden=!e)},is=(t,e)=>{t._input&&$(t._input,"aria-activedescendant",Yt(e));for(const n of t.options)$(n,ts,n===e?"":null);e?.scrollIntoView({block:"nearest"})},qe=(t,e)=>{const n=e||t._input;n&&(t.popover&&($(t,"popover","manual"),$(n,"popovertarget",e&&Yt(t))),$(n,"aria-autocomplete",e&&"list"),$(n,"aria-controls",e&&Yt(t)),$(n,"autocomplete",e&&"off"),$(n,"enterkeyhint","done"),$(n,"role",e&&!os(n)?"combobox":null))},Qn=(t,{target:e})=>{var n,o;if(t._input!==e)if(Yn(e)&&e.getAttribute("list")===t.id){if(qe(t,null),qe(t,e),os(e))return;t._root&&Un(t._root,Kn,t),$(t,"aria-label",((o=(n=e.labels)==null?void 0:n[0])==null?void 0:o.textContent.trim())||null),Vn(),t._input=e,Oe&&Jt(t,!0)}else Jn(t)},Nc=(t,e)=>{Wn()?e.stopImmediatePropagation():Oe||setTimeout(Jn,0,t,e)},Jn=t=>{const e=Qi(t);t._input===e||t.contains(e)||(t._root&&De(t._root,Kn,t),Jt(t,!1),t._input=void 0)},qc=(t,e)=>t.contains(e.target)&&Wn(e),Bc=(t,e)=>{var n;if(Yn(e.target)&&Qn(t,e),t._input===e.target)return Jt(t,!0);if(!t.contains(e.target))return Jn(t);for(const o of t.options)if(o.contains(e.target))return(n=t._input)==null||n.focus(),t._input&&Lc(t._input,o.value),Jt(t,$(t,Cc)==="true")},Uc=(t,e)=>{if(Yn(e.target)&&Qn(t,e),t._input!==e.target)return;const{key:n,ctrlKey:o,metaKey:i,shiftKey:s,altKey:r}=e;if(o||i||s||n==="Tab"||r&&!n.startsWith("Arrow"))return;n==="Escape"&&!t.hidden&&e.preventDefault(),Jt(t,n!=="Escape");const a=n==="Enter",l=$(t._input,"aria-activedescendant"),c=[];let u=-1,d=-1;for(const m of t.options)Hc(m)&&(c.push(m),m.id===l&&(u=c.length-1));!r&&n==="ArrowDown"&&(d=(u+1)%c.length),!r&&n==="ArrowUp"&&(d=(u||c.length)-1),~u&&((n==="Home"||n==="PageUp")&&(d=0),(n==="End"||n==="PageDown")&&(d=c.length-1),a&&(d=u)),c[d]&&(e.preventDefault(),t._input.focus()),a&&c[d]?(e.stopImmediatePropagation(),Mc(t._input),c[d].click()):is(t,c[d])},ss=t=>{var e;if(!t._input||t.hidden)return;const n=t._input.value.toLowerCase().trim()||"",o=!t.hasAttribute("data-nofilter"),i=[],s=[];for(const r of t.options)(r.disabled||r.hidden||o&&!r.label.toLowerCase().includes(n)?i:s).push(r);for(const r of i)$(r,He,"true");for(const r of s)$(r,He,"false");clearTimeout(Xn),Xn=setTimeout(zc,500,t,s),_c&&s.forEach((r,a,{length:l})=>{$(r,"title",`${a+1} ${t._texts.of} ${l}`)}),(e=t._umutate)==null||e.takeRecords()},zc=(t,e)=>!t.hidden&&t._input===Qi(t)&&Vn(`${e.some(({value:n})=>n)?`${t._texts[e[1]?"plural":"singular"]}`.replace("%d",`${e.length}`):t.innerText}`);Me()&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){const t=$(this,"list");return t&&Pe(this).getElementById(t)}}),Ji.define("u-datalist",ns),j()&&!Ba()&&Ua();const Fc="3.2.5",rs="_alert_14zqc_1 _ds-alert_1dsd4_3",as="_app_14zqc_1",ls="_sticky_14zqc_1",cs="_avatar_14zqc_1 _ds-avatar_1dsd4_1",ds="_badge_14zqc_1",us="_breadcrumbs_14zqc_1 _ds-breadcrumbs_1dsd4_5",fs="_button_14zqc_1 _ds-button_1dsd4_1",ms="_card_14zqc_1",ps="_group_14zqc_1",hs="_chip_14zqc_1 _ds-chip_1dsd4_5",gs="_details_14zqc_1 _ds-details_1dsd4_3",bs="_dialog_14zqc_1 _ds-dialog_1dsd4_5",vs="__drawer_14zqc_1",ys="_divider_14zqc_1",ws="_errorsummary_14zqc_1 _ds-error-summary_1dsd4_5",_s="_field_14zqc_1 _ds-field_1dsd4_1",Ss="_suggestion_14zqc_1 _ds-suggestion_1dsd4_5",xs="_affixes_14zqc_1 _ds-field-affixes_1dsd4_3",Es="_fieldset_14zqc_1 _ds-fieldset_1dsd4_3",$s="_fileupload_14zqc_1",Ts="_helptext_14zqc_1 _ds-focus_1dsd4_1",Cs="_input_14zqc_1 _ds-input_1dsd4_1",As="_law_14zqc_1",ks="_grid_14zqc_1",Ls="_flex_14zqc_1",Rs="_link_14zqc_1",Ms="_logo_14zqc_1",Is="__logo_14zqc_1",Os="_pagination_14zqc_1 _ds-pagination_1dsd4_5",Ds="_popover_14zqc_1 _ds-popover_1dsd4_3",Ps="_print_14zqc_1",Hs="_progress_14zqc_1",Ns="__indeterminate_14zqc_1",qs="_skeleton_14zqc_1 _ds-skeleton_1dsd4_5",Bs="__skeleton_14zqc_1",Us="_spinner_14zqc_1",zs="_steps_14zqc_1",Fs="_table_14zqc_1 _ds-table_1dsd4_5",Ws="__scrollShadow_14zqc_1",Vs="_tabs_14zqc_1 _ds-tabs_1dsd4_5",Gs="__scrollMask_14zqc_1",js="_tag_14zqc_1 _ds-tag_1dsd4_5",Xs="_toast_14zqc_1",Ks="__toastClose_14zqc_1",Ys="__toastOpen_14zqc_1",Qs="__toastTimeout_14zqc_1",Js="_togglegroup_14zqc_1 _ds-toggle-group_1dsd4_5",Zs="__tooltip_14zqc_1 _ds-tooltip_1dsd4_5",tr="_heading_14zqc_1 _ds-heading_1dsd4_1",er="_ingress_14zqc_1",nr="_muted_14zqc_1",or="_info_14zqc_1",ir="_prose_14zqc_1",sr="_validation_14zqc_1 _ds-validation-message_1dsd4_1",rr="_body_14zqc_162",ar="__checked_14zqc_1",T={alert:rs,app:as,sticky:ls,avatar:cs,badge:ds,breadcrumbs:us,button:fs,card:ms,group:ps,chip:hs,details:gs,dialog:bs,_drawer:vs,divider:ys,errorsummary:ws,field:_s,suggestion:Ss,affixes:xs,fieldset:Es,fileupload:$s,helptext:Ts,input:Cs,law:As,grid:ks,flex:Ls,link:Rs,logo:Ms,_logo:Is,pagination:Os,popover:Ds,print:Ps,progress:Hs,_indeterminate:Ns,skeleton:qs,_skeleton:Bs,spinner:Us,steps:zs,table:Fs,_scrollShadow:Ws,tabs:Vs,_scrollMask:Gs,tag:js,toast:Xs,_toastClose:Ks,_toastOpen:Ys,_toastTimeout:Qs,togglegroup:Js,_tooltip:Zs,heading:tr,ingress:er,muted:nr,info:or,prose:ir,validation:sr,body:rr,_checked:ar},Wc=Object.freeze(Object.defineProperty({__proto__:null,_checked:ar,_drawer:vs,_indeterminate:Ns,_logo:Is,_scrollMask:Gs,_scrollShadow:Ws,_skeleton:Bs,_toastClose:Ks,_toastOpen:Ys,_toastTimeout:Qs,_tooltip:Zs,affixes:xs,alert:rs,app:as,avatar:cs,badge:ds,body:rr,breadcrumbs:us,button:fs,card:ms,chip:hs,default:T,details:gs,dialog:bs,divider:ys,errorsummary:ws,field:_s,fieldset:Es,fileupload:$s,flex:Ls,grid:ks,group:ps,heading:tr,helptext:Ts,info:or,ingress:er,input:Cs,law:As,link:Rs,logo:Ms,muted:nr,pagination:Os,popover:Ds,print:Ps,progress:Hs,prose:ir,skeleton:qs,spinner:Us,steps:zs,sticky:ls,suggestion:Ss,table:Fs,tabs:Vs,tag:js,toast:Xs,togglegroup:Js,validation:sr},Symbol.toStringTag,{value:"Module"}));function lr(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=lr(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function Vc(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=lr(t))&&(o&&(o+=" "),o+=e);return o}const Zt={capture:!0,passive:!0},U=()=>typeof window<"u"&&typeof document<"u",yt=t=>U()?document.getElementsByClassName(T[t].split(" ")[0]):[];function qt(t,e){let n;return function(...o){clearTimeout(n),n=setTimeout(()=>t.apply(this,o),e)}}const g=(t,e,n)=>n===void 0?t.getAttribute(e)??null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null),I=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.addEventListener(i,...o);return()=>cr(t,...e)},cr=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.removeEventListener(i,...o)},ut=(t,e)=>{if(!U())return;window._mtdsHotReloadCleanup||(window._mtdsHotReloadCleanup=new Map);const n=()=>{window._mtdsHotReloadCleanup?.get(t)?.map(o=>o()),window._mtdsHotReloadCleanup?.set(t,e())};document.readyState!=="complete"?I(window,"load",n):document.fonts?.ready?.then(n)||setTimeout(n,0)},Be=(t,e,n)=>{let o=0;const i=()=>{if(!t.isConnected)return s();e(r),r.takeRecords(),o=0},s=()=>r?.disconnect?.(),r=new MutationObserver(()=>{o||(o=requestAnimationFrame(i))});return r.observe(t,n),i(),s},R=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,s]of Object.entries(e))g(o,i,s);return o},Gc=typeof HTMLElement>"u"?class{}:HTMLElement,jc=(t,e)=>!U()||window.customElements.get(t)||window.customElements.define(t,e),Xc=typeof window<"u"&&window.CSSStyleSheet&&document.adoptedStyleSheets,Kc=(t,e)=>{if(!Xc)return;t.shadowRoot||t.attachShadow({mode:"open"}).append(R("slot"));const n=new CSSStyleSheet;n.replaceSync(e),t.shadowRoot.adoptedStyleSheets=[n]},Yc=`[data-command="toggle-app-expanded"],.${T.app.split(" ")[0]} > [command="show-modal"]`,Qc=`.${T.breadcrumbs.split(" ")[0]}`,Jc=`.${T.card.split(" ")[0]}`,dr=`.${T.chip.split(" ")[0]}`,Zc=`.${T.helptext.split(" ")[0]}`,td=`.${T.pagination.split(" ")[0]}`,ed='summary,u-summary,a,button,[role="tab"],[role="button"]',Zn="mattilsynet.matomo.cloud",nd=["setCustomUrl","setDocumentTitle","setReferrerUrl"],W="mtds-analytics-banner",od="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function ur(t,e={}){if(U()){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${Zn}/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"&&id();const r=s?`https://cdn.matomo.cloud/${Zn}/container_${s}.js`:`https://cdn.matomo.cloud/${Zn}/matomo.js`;document.querySelector(`script[src="${r}"]`)||document.head.append(R("script",{async:"",src:r}))}}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,r=["trackEvent",n,o,i,s];let a=location.href;window._paq.push([function(){a=this.getCurrentUrl()}]),window._paq.push(["setCustomUrl",a.split("#")[0]]),window._paq.push(r.filter(l=>l!==void 0)),window._paq.push(["setCustomUrl",a])}else if(t==="search"){const{query:n,category:o=!1,results:i=!1}=e;window._paq.push(["trackSiteSearch",n,o,i])}else if(t==="matomo"){const n=e;nd.includes(n?.[0])&&typeof n[1]!="string"&&(n[1]=`${n[1]??""}`),window._paq.push(n)}}}}function id(){if(document.getElementById(W)||window.localStorage.getItem(W))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${W}" data-analytics="ignore"><style>
18
+ ::slotted([role="option"]:is([${He}="true"], [disabled], [hidden])) { display: none !important }`,Pc=Rc(jn),Xn,es="focus click keydown",Kn="focusout input pointerdown",Ne={of:"of",plural:"%d hits",singular:"%d hit"},ns=class extends Yi{constructor(){super(),this._texts=yc({},Ne),Ac(this,jn)}static get observedAttributes(){return["id",...Object.keys(Ne).map(t=>`data-sr-${t}`)]}connectedCallback(){this._root=Pe(this),$(this,"hidden",""),$(this,"role","listbox"),$(this,"tabindex","-1"),Un(this._root,es,this,!0),this._umutate=kc(this,ss,{attributeFilter:["disabled","hidden","label","value"],attributes:!0,characterData:!0,childList:!0,subtree:!0})}disconnectedCallback(){var t;this._root&&De(this._root,es,this,!0),this._root&&De(this._root,Kn,this),qe(this,null),(t=this._umutate)==null||t.call(this),this._umutate=this._root=this._input=void 0}attributeChangedCallback(t,e,n){const o=t?.split("data-sr-")[1];if(Ne[o])this._texts[o]=n||Ne[o];else if(this.id){const i=`input[list="${this.id}"]`,s=Pe(this).querySelector(i);s&&qe(this,s)}}handleEvent(t){t.defaultPrevented||(t.type==="focus"&&Qn(this,t),t.type==="focusout"&&Nc(this,t),t.type==="click"&&Bc(this,t),t.type==="input"&&ss(this),t.type==="keydown"&&Uc(this,t),t.type==="pointerdown"&&qc(this,t))}get options(){const t=!this._options&&this.querySelector('[role="option"],option');return t&&(this._options=this.getElementsByTagName(t?.nodeName)),this._options||this.getElementsByTagName("option")}},os=t=>t.disabled||t.readOnly,Yn=t=>t instanceof HTMLInputElement,Hc=t=>$(t,He)!=="true"&&t.clientHeight,Jt=(t,e)=>{t._input&&$(t._input,"aria-expanded",`${e}`),!(!t.isConnected||t.hidden!==e)&&(e||is(t),t.popover&&t.togglePopover(e),e&&setTimeout(()=>clearTimeout(Xn)),t.hidden=!e)},is=(t,e)=>{t._input&&$(t._input,"aria-activedescendant",Yt(e));for(const n of t.options)$(n,ts,n===e?"":null);e?.scrollIntoView({block:"nearest"})},qe=(t,e)=>{const n=e||t._input;n&&(t.popover&&($(t,"popover","manual"),$(n,"popovertarget",e&&Yt(t))),$(n,"aria-autocomplete",e&&"list"),$(n,"aria-controls",e&&Yt(t)),$(n,"autocomplete",e&&"off"),$(n,"enterkeyhint","done"),$(n,"role",e&&!os(n)?"combobox":null))},Qn=(t,{target:e})=>{var n,o;if(t._input!==e)if(Yn(e)&&e.getAttribute("list")===t.id){if(qe(t,null),qe(t,e),os(e))return;t._root&&Un(t._root,Kn,t),$(t,"aria-label",((o=(n=e.labels)==null?void 0:n[0])==null?void 0:o.textContent.trim())||null),Vn(),t._input=e,Oe&&Jt(t,!0)}else Jn(t)},Nc=(t,e)=>{Wn()?e.stopImmediatePropagation():Oe||setTimeout(Jn,0,t,e)},Jn=t=>{const e=Qi(t);t._input===e||t.contains(e)||(t._root&&De(t._root,Kn,t),Jt(t,!1),t._input=void 0)},qc=(t,e)=>t.contains(e.target)&&Wn(e),Bc=(t,e)=>{var n;if(Yn(e.target)&&Qn(t,e),t._input===e.target)return Jt(t,!0);if(!t.contains(e.target))return Jn(t);for(const o of t.options)if(o.contains(e.target))return(n=t._input)==null||n.focus(),t._input&&Lc(t._input,o.value),Jt(t,$(t,Cc)==="true")},Uc=(t,e)=>{if(Yn(e.target)&&Qn(t,e),t._input!==e.target)return;const{key:n,ctrlKey:o,metaKey:i,shiftKey:s,altKey:r}=e;if(o||i||s||n==="Tab"||r&&!n.startsWith("Arrow"))return;n==="Escape"&&!t.hidden&&e.preventDefault(),Jt(t,n!=="Escape");const a=n==="Enter",l=$(t._input,"aria-activedescendant"),c=[];let u=-1,d=-1;for(const m of t.options)Hc(m)&&(c.push(m),m.id===l&&(u=c.length-1));!r&&n==="ArrowDown"&&(d=(u+1)%c.length),!r&&n==="ArrowUp"&&(d=(u||c.length)-1),~u&&((n==="Home"||n==="PageUp")&&(d=0),(n==="End"||n==="PageDown")&&(d=c.length-1),a&&(d=u)),c[d]&&(e.preventDefault(),t._input.focus()),a&&c[d]?(e.stopImmediatePropagation(),Mc(t._input),c[d].click()):is(t,c[d])},ss=t=>{var e;if(!t._input||t.hidden)return;const n=t._input.value.toLowerCase().trim()||"",o=!t.hasAttribute("data-nofilter"),i=[],s=[];for(const r of t.options)(r.disabled||r.hidden||o&&!r.label.toLowerCase().includes(n)?i:s).push(r);for(const r of i)$(r,He,"true");for(const r of s)$(r,He,"false");clearTimeout(Xn),Xn=setTimeout(zc,500,t,s),_c&&s.forEach((r,a,{length:l})=>{$(r,"title",`${a+1} ${t._texts.of} ${l}`)}),(e=t._umutate)==null||e.takeRecords()},zc=(t,e)=>!t.hidden&&t._input===Qi(t)&&Vn(`${e.some(({value:n})=>n)?`${t._texts[e[1]?"plural":"singular"]}`.replace("%d",`${e.length}`):t.innerText}`);Me()&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){const t=$(this,"list");return t&&Pe(this).getElementById(t)}}),Ji.define("u-datalist",ns),j()&&!Ba()&&Ua();const Fc="3.2.6",rs="_alert_14zqc_1 _ds-alert_1dsd4_3",as="_app_14zqc_1",ls="_sticky_14zqc_1",cs="_avatar_14zqc_1 _ds-avatar_1dsd4_1",ds="_badge_14zqc_1",us="_breadcrumbs_14zqc_1 _ds-breadcrumbs_1dsd4_5",fs="_button_14zqc_1 _ds-button_1dsd4_1",ms="_card_14zqc_1",ps="_group_14zqc_1",hs="_chip_14zqc_1 _ds-chip_1dsd4_5",gs="_details_14zqc_1 _ds-details_1dsd4_3",bs="_dialog_14zqc_1 _ds-dialog_1dsd4_5",vs="__drawer_14zqc_1",ys="_divider_14zqc_1",ws="_errorsummary_14zqc_1 _ds-error-summary_1dsd4_5",_s="_field_14zqc_1 _ds-field_1dsd4_1",Ss="_suggestion_14zqc_1 _ds-suggestion_1dsd4_5",xs="_affixes_14zqc_1 _ds-field-affixes_1dsd4_3",Es="_fieldset_14zqc_1 _ds-fieldset_1dsd4_3",$s="_fileupload_14zqc_1",Ts="_helptext_14zqc_1 _ds-focus_1dsd4_1",Cs="_input_14zqc_1 _ds-input_1dsd4_1",As="_law_14zqc_1",ks="_grid_14zqc_1",Ls="_flex_14zqc_1",Rs="_link_14zqc_1",Ms="_logo_14zqc_1",Is="__logo_14zqc_1",Os="_pagination_14zqc_1 _ds-pagination_1dsd4_5",Ds="_popover_14zqc_1 _ds-popover_1dsd4_3",Ps="_print_14zqc_1",Hs="_progress_14zqc_1",Ns="__indeterminate_14zqc_1",qs="_skeleton_14zqc_1 _ds-skeleton_1dsd4_5",Bs="__skeleton_14zqc_1",Us="_spinner_14zqc_1",zs="_steps_14zqc_1",Fs="_table_14zqc_1 _ds-table_1dsd4_5",Ws="__scrollShadow_14zqc_1",Vs="_tabs_14zqc_1 _ds-tabs_1dsd4_5",Gs="__scrollMask_14zqc_1",js="_tag_14zqc_1 _ds-tag_1dsd4_5",Xs="_toast_14zqc_1",Ks="__toastClose_14zqc_1",Ys="__toastOpen_14zqc_1",Qs="__toastTimeout_14zqc_1",Js="_togglegroup_14zqc_1 _ds-toggle-group_1dsd4_5",Zs="__tooltip_14zqc_1 _ds-tooltip_1dsd4_5",tr="_heading_14zqc_1 _ds-heading_1dsd4_1",er="_ingress_14zqc_1",nr="_muted_14zqc_1",or="_info_14zqc_1",ir="_prose_14zqc_1",sr="_validation_14zqc_1 _ds-validation-message_1dsd4_1",rr="_body_14zqc_162",ar="__checked_14zqc_1",T={alert:rs,app:as,sticky:ls,avatar:cs,badge:ds,breadcrumbs:us,button:fs,card:ms,group:ps,chip:hs,details:gs,dialog:bs,_drawer:vs,divider:ys,errorsummary:ws,field:_s,suggestion:Ss,affixes:xs,fieldset:Es,fileupload:$s,helptext:Ts,input:Cs,law:As,grid:ks,flex:Ls,link:Rs,logo:Ms,_logo:Is,pagination:Os,popover:Ds,print:Ps,progress:Hs,_indeterminate:Ns,skeleton:qs,_skeleton:Bs,spinner:Us,steps:zs,table:Fs,_scrollShadow:Ws,tabs:Vs,_scrollMask:Gs,tag:js,toast:Xs,_toastClose:Ks,_toastOpen:Ys,_toastTimeout:Qs,togglegroup:Js,_tooltip:Zs,heading:tr,ingress:er,muted:nr,info:or,prose:ir,validation:sr,body:rr,_checked:ar},Wc=Object.freeze(Object.defineProperty({__proto__:null,_checked:ar,_drawer:vs,_indeterminate:Ns,_logo:Is,_scrollMask:Gs,_scrollShadow:Ws,_skeleton:Bs,_toastClose:Ks,_toastOpen:Ys,_toastTimeout:Qs,_tooltip:Zs,affixes:xs,alert:rs,app:as,avatar:cs,badge:ds,body:rr,breadcrumbs:us,button:fs,card:ms,chip:hs,default:T,details:gs,dialog:bs,divider:ys,errorsummary:ws,field:_s,fieldset:Es,fileupload:$s,flex:Ls,grid:ks,group:ps,heading:tr,helptext:Ts,info:or,ingress:er,input:Cs,law:As,link:Rs,logo:Ms,muted:nr,pagination:Os,popover:Ds,print:Ps,progress:Hs,prose:ir,skeleton:qs,spinner:Us,steps:zs,sticky:ls,suggestion:Ss,table:Fs,tabs:Vs,tag:js,toast:Xs,togglegroup:Js,validation:sr},Symbol.toStringTag,{value:"Module"}));function lr(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=lr(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function Vc(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=lr(t))&&(o&&(o+=" "),o+=e);return o}const Zt={capture:!0,passive:!0},U=()=>typeof window<"u"&&typeof document<"u",yt=t=>U()?document.getElementsByClassName(T[t].split(" ")[0]):[];function qt(t,e){let n;return function(...o){clearTimeout(n),n=setTimeout(()=>t.apply(this,o),e)}}const g=(t,e,n)=>n===void 0?t.getAttribute(e)??null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null),I=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.addEventListener(i,...o);return()=>cr(t,...e)},cr=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.removeEventListener(i,...o)},ut=(t,e)=>{if(!U())return;window._mtdsHotReloadCleanup||(window._mtdsHotReloadCleanup=new Map);const n=()=>{window._mtdsHotReloadCleanup?.get(t)?.map(o=>o()),window._mtdsHotReloadCleanup?.set(t,e())};document.readyState!=="complete"?I(window,"load",n):document.fonts?.ready?.then(n)||setTimeout(n,0)},Be=(t,e,n)=>{let o=0;const i=()=>{if(!t.isConnected)return s();e(r),r.takeRecords(),o=0},s=()=>r?.disconnect?.(),r=new MutationObserver(()=>{o||(o=requestAnimationFrame(i))});return r.observe(t,n),i(),s},R=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,s]of Object.entries(e))g(o,i,s);return o},Gc=typeof HTMLElement>"u"?class{}:HTMLElement,jc=(t,e)=>!U()||window.customElements.get(t)||window.customElements.define(t,e),Xc=typeof window<"u"&&window.CSSStyleSheet&&document.adoptedStyleSheets,Kc=(t,e)=>{if(!Xc)return;t.shadowRoot||t.attachShadow({mode:"open"}).append(R("slot"));const n=new CSSStyleSheet;n.replaceSync(e),t.shadowRoot.adoptedStyleSheets=[n]},Yc=`[data-command="toggle-app-expanded"],.${T.app.split(" ")[0]} > [command="show-modal"]`,Qc=`.${T.breadcrumbs.split(" ")[0]}`,Jc=`.${T.card.split(" ")[0]}`,dr=`.${T.chip.split(" ")[0]}`,Zc=`.${T.helptext.split(" ")[0]}`,td=`.${T.pagination.split(" ")[0]}`,ed='summary,u-summary,a,button,[role="tab"],[role="button"]',Zn="mattilsynet.matomo.cloud",nd=["setCustomUrl","setDocumentTitle","setReferrerUrl"],W="mtds-analytics-banner",od="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function ur(t,e={}){if(U()){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${Zn}/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"&&id();const r=s?`https://cdn.matomo.cloud/${Zn}/container_${s}.js`:`https://cdn.matomo.cloud/${Zn}/matomo.js`;document.querySelector(`script[src="${r}"]`)||document.head.append(R("script",{async:"",src:r}))}}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,r=["trackEvent",n,o,i,s];let a=location.href;window._paq.push([function(){a=this.getCurrentUrl()}]),window._paq.push(["setCustomUrl",a.split("#")[0]]),window._paq.push(r.filter(l=>l!==void 0)),window._paq.push(["setCustomUrl",a])}else if(t==="search"){const{query:n,category:o=!1,results:i=!1}=e;window._paq.push(["trackSiteSearch",n,o,i])}else if(t==="matomo"){const n=e;nd.includes(n?.[0])&&typeof n[1]!="string"&&(n[1]=`${n[1]??""}`),window._paq.push(n)}}}}function id(){if(document.getElementById(W)||window.localStorage.getItem(W))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${W}" data-analytics="ignore"><style>
19
19
  #${W}[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 }
20
20
  #${W} 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 }
21
21
  #${W} button:focus-visible { outline: 2px solid }
@@ -1,4 +1,4 @@
1
- const o = "3.2.5";
1
+ const o = "3.2.6";
2
2
  export {
3
3
  o as version
4
4
  };