dibk-design 9.3.6 → 9.4.0

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.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(j,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(j=typeof globalThis<"u"?globalThis:j||self,x(j.DibkDesign={},j.React))})(this,function(j,x){"use strict";function Gt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const _=Gt(x);var Le={exports:{}},we={};/**
1
+ (function(j,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],x):(j=typeof globalThis<"u"?globalThis:j||self,x(j.DibkDesign={},j.React,j.ReactDOM))})(this,function(j,x,Gt){"use strict";function Kt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const g=Kt(x);var Le={exports:{}},we={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var it;function Kt(){if(it)return we;it=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(a,r,s){var c=null;if(s!==void 0&&(c=""+s),r.key!==void 0&&(c=""+r.key),"key"in r){s={};for(var d in r)d!=="key"&&(s[d]=r[d])}else s=r;return r=s.ref,{$$typeof:e,type:a,key:c,ref:r!==void 0?r:null,props:s}}return we.Fragment=t,we.jsx=n,we.jsxs=n,we}var Ce={};/**
9
+ */var it;function Zt(){if(it)return we;it=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(a,r,o){var c=null;if(o!==void 0&&(c=""+o),r.key!==void 0&&(c=""+r.key),"key"in r){o={};for(var d in r)d!=="key"&&(o[d]=r[d])}else o=r;return r=o.ref,{$$typeof:e,type:a,key:c,ref:r!==void 0?r:null,props:o}}return we.Fragment=t,we.jsx=n,we.jsxs=n,we}var Ce={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,12 +14,12 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var lt;function Zt(){return lt||(lt=1,process.env.NODE_ENV!=="production"&&function(){function e(g){if(g==null)return null;if(typeof g=="function")return g.$$typeof===P?null:g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case v:return"Fragment";case p:return"Profiler";case b:return"StrictMode";case L:return"Suspense";case $:return"SuspenseList";case k:return"Activity"}if(typeof g=="object")switch(typeof g.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),g.$$typeof){case f:return"Portal";case C:return(g.displayName||"Context")+".Provider";case w:return(g._context.displayName||"Context")+".Consumer";case I:var S=g.render;return g=g.displayName,g||(g=S.displayName||S.name||"",g=g!==""?"ForwardRef("+g+")":"ForwardRef"),g;case T:return S=g.displayName||null,S!==null?S:e(g.type)||"Memo";case M:S=g._payload,g=g._init;try{return e(g(S))}catch{}}return null}function t(g){return""+g}function n(g){try{t(g);var S=!1}catch{S=!0}if(S){S=console;var A=S.error,q=typeof Symbol=="function"&&Symbol.toStringTag&&g[Symbol.toStringTag]||g.constructor.name||"Object";return A.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",q),t(g)}}function a(g){if(g===v)return"<>";if(typeof g=="object"&&g!==null&&g.$$typeof===M)return"<...>";try{var S=e(g);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function r(){var g=X.A;return g===null?null:g.getOwner()}function s(){return Error("react-stack-top-frame")}function c(g){if(J.call(g,"key")){var S=Object.getOwnPropertyDescriptor(g,"key").get;if(S&&S.isReactWarning)return!1}return g.key!==void 0}function d(g,S){function A(){E||(E=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}A.isReactWarning=!0,Object.defineProperty(g,"key",{get:A,configurable:!0})}function i(){var g=e(this.type);return N[g]||(N[g]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),g=this.props.ref,g!==void 0?g:null}function l(g,S,A,q,ie,Z,at,st){return A=Z.ref,g={$$typeof:y,type:g,key:S,props:Z,_owner:ie},(A!==void 0?A:null)!==null?Object.defineProperty(g,"ref",{enumerable:!1,get:i}):Object.defineProperty(g,"ref",{enumerable:!1,value:null}),g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(g,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(g,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:at}),Object.defineProperty(g,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:st}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g}function u(g,S,A,q,ie,Z,at,st){var H=S.children;if(H!==void 0)if(q)if(z(H)){for(q=0;q<H.length;q++)m(H[q]);Object.freeze&&Object.freeze(H)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(H);if(J.call(S,"key")){H=e(g);var be=Object.keys(S).filter(function(ma){return ma!=="key"});q=0<be.length?"{key: someKey, "+be.join(": ..., ")+": ...}":"{key: someKey}",xe[H+q]||(be=0<be.length?"{"+be.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var lt;function Qt(){return lt||(lt=1,process.env.NODE_ENV!=="production"&&function(){function e(p){if(p==null)return null;if(typeof p=="function")return p.$$typeof===B?null:p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case v:return"Fragment";case _:return"Profiler";case b:return"StrictMode";case L:return"Suspense";case $:return"SuspenseList";case S:return"Activity"}if(typeof p=="object")switch(typeof p.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),p.$$typeof){case m:return"Portal";case w:return(p.displayName||"Context")+".Provider";case C:return(p._context.displayName||"Context")+".Consumer";case I:var E=p.render;return p=p.displayName,p||(p=E.displayName||E.name||"",p=p!==""?"ForwardRef("+p+")":"ForwardRef"),p;case M:return E=p.displayName||null,E!==null?E:e(p.type)||"Memo";case T:E=p._payload,p=p._init;try{return e(p(E))}catch{}}return null}function t(p){return""+p}function n(p){try{t(p);var E=!1}catch{E=!0}if(E){E=console;var D=E.error,q=typeof Symbol=="function"&&Symbol.toStringTag&&p[Symbol.toStringTag]||p.constructor.name||"Object";return D.call(E,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",q),t(p)}}function a(p){if(p===v)return"<>";if(typeof p=="object"&&p!==null&&p.$$typeof===T)return"<...>";try{var E=e(p);return E?"<"+E+">":"<...>"}catch{return"<...>"}}function r(){var p=X.A;return p===null?null:p.getOwner()}function o(){return Error("react-stack-top-frame")}function c(p){if(W.call(p,"key")){var E=Object.getOwnPropertyDescriptor(p,"key").get;if(E&&E.isReactWarning)return!1}return p.key!==void 0}function d(p,E){function D(){k||(k=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",E))}D.isReactWarning=!0,Object.defineProperty(p,"key",{get:D,configurable:!0})}function i(){var p=e(this.type);return z[p]||(z[p]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),p=this.props.ref,p!==void 0?p:null}function l(p,E,D,q,le,Z,at,ot){return D=Z.ref,p={$$typeof:y,type:p,key:E,props:Z,_owner:le},(D!==void 0?D:null)!==null?Object.defineProperty(p,"ref",{enumerable:!1,get:i}):Object.defineProperty(p,"ref",{enumerable:!1,value:null}),p._store={},Object.defineProperty(p._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(p,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(p,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:at}),Object.defineProperty(p,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ot}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p}function u(p,E,D,q,le,Z,at,ot){var H=E.children;if(H!==void 0)if(q)if(N(H)){for(q=0;q<H.length;q++)f(H[q]);Object.freeze&&Object.freeze(H)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(H);if(W.call(E,"key")){H=e(p);var be=Object.keys(E).filter(function(pa){return pa!=="key"});q=0<be.length?"{key: someKey, "+be.join(": ..., ")+": ...}":"{key: someKey}",ie[H+q]||(be=0<be.length?"{"+be.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,q,H,be,H),xe[H+q]=!0)}if(H=null,A!==void 0&&(n(A),H=""+A),c(S)&&(n(S.key),H=""+S.key),"key"in S){A={};for(var ot in S)ot!=="key"&&(A[ot]=S[ot])}else A=S;return H&&d(A,typeof g=="function"?g.displayName||g.name||"Unknown":g),l(g,H,Z,ie,r(),A,at,st)}function m(g){typeof g=="object"&&g!==null&&g.$$typeof===y&&g._store&&(g._store.validated=1)}var h=x,y=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),C=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),P=Symbol.for("react.client.reference"),X=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=Object.prototype.hasOwnProperty,z=Array.isArray,R=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(g){return g()}};var E,N={},B=h["react-stack-bottom-frame"].bind(h,s)(),W=R(a(s)),xe={};Ce.Fragment=v,Ce.jsx=function(g,S,A,q,ie){var Z=1e4>X.recentlyCreatedOwnerStacks++;return u(g,S,A,!1,q,ie,Z?Error("react-stack-top-frame"):B,Z?R(a(g)):W)},Ce.jsxs=function(g,S,A,q,ie){var Z=1e4>X.recentlyCreatedOwnerStacks++;return u(g,S,A,!0,q,ie,Z?Error("react-stack-top-frame"):B,Z?R(a(g)):W)}}()),Ce}var ct;function Qt(){return ct||(ct=1,process.env.NODE_ENV==="production"?Le.exports=Kt():Le.exports=Zt()),Le.exports}var o=Qt();const D=e=>(e==null?void 0:e.filter(Boolean).join(" "))||"",dt=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),en=e=>!(e!=null&&e.colors)||!Object.entries(e.colors).length?{}:Object.entries(e.colors).reduce((t,[n,a])=>(n&&a&&(t[`--color-${dt(n)}`]=a),t),{}),tn=e=>!(e!=null&&e.sizes)||!Object.entries(e.sizes).length?{}:Object.entries(e.sizes).reduce((t,[n,a])=>(n&&a&&(t[`--size-${dt(n)}`]=a),t),{}),nn=e=>({...en(e),...tn(e)}),rn=(e,t)=>{if(typeof document>"u")return;const n=document.createElement("style");n.setAttribute("id",e),n.textContent=t;const a=document.getElementById(e);a&&a.remove(),document.head.appendChild(n)},an=e=>Object.entries(e).map(([t,n])=>`${t}: ${n};`).join(""),de=e=>{const t=[];return x.Children.forEach(e,n=>{if(x.isValidElement(n)){const a=n;if(a.type===x.Fragment){const r=de(a.props.children);t.push(...r)}else t.push(x.cloneElement(a,{...a.props}))}else t.push(n)}),t},sn=e=>{if(typeof document>"u")return;const t=document.createElement("button");t.style.position="absolute",t.style.opacity="0",e.prepend(t),t.focus(),t.remove()},on=e=>Array.from(e.querySelectorAll('button, [href], input, [tabindex="0"]')).filter(n=>!!n),ut=e=>{sn(e);const t=on(e),n=t[0],a=t[t.length-1]||n;n&&(n.onkeydown=r=>{r.key==="Tab"&&r.shiftKey&&(r.preventDefault(),a.focus())}),a&&(a.onclick=()=>{n==null||n.focus()},a.onkeydown=r=>{r.key==="Tab"&&!r.shiftKey&&(r.preventDefault(),n==null||n.focus())})},G={accordion:"_accordion_kwqaf_67",default:"_default_kwqaf_73",panel:"_panel_kwqaf_76",content:"_content_kwqaf_77",secondary:"_secondary_kwqaf_80",info:"_info_kwqaf_88",contrast:"_contrast_kwqaf_96",margin:"_margin_kwqaf_104",panelText:"_panelText_kwqaf_138",panelChevron:"_panelChevron_kwqaf_144",expanded:"_expanded_kwqaf_171",initialized:"_initialized_kwqaf_187",hide:"_hide_kwqaf_1",show:"_show_kwqaf_1"},ln=({title:e,buttonProps:t,expanded:n,handleToggleExpand:a})=>o.jsxs("button",{...t,className:G.panel,onClick:a,"aria-expanded":n?"true":"false",children:[o.jsx("span",{className:G.panelText,children:e}),o.jsx("span",{className:`${G.panelChevron} ${n?G.expanded:""}`})]}),cn=({title:e,color:t="default",expanded:n=!1,onToggleExpand:a,buttonProps:r,noMargin:s=!1,initialized:c,children:d,...i})=>{const[l,u]=x.useState(n),[m,h]=x.useState(c),y=()=>{u(!l),h(!0),a&&a()};x.useEffect(()=>{u(n)},[n]);const f=D([G.accordion,t&&G[t],!s&&G.margin,i.className]);return o.jsxs("div",{className:f,...i,children:[o.jsx(ln,{title:e??"",buttonProps:r??{},expanded:l??!1,handleToggleExpand:y}),o.jsx("div",{className:`${G.content} ${m?G.initialized:""} ${l?G.expanded:""}`,children:d})]})};var Ee={},ht;function dn(){if(ht)return Ee;ht=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.parse=c,Ee.serialize=l;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/,r=Object.prototype.toString,s=(()=>{const h=function(){};return h.prototype=Object.create(null),h})();function c(h,y){const f=new s,v=h.length;if(v<2)return f;const b=(y==null?void 0:y.decode)||u;let p=0;do{const w=h.indexOf("=",p);if(w===-1)break;const C=h.indexOf(";",p),I=C===-1?v:C;if(w>I){p=h.lastIndexOf(";",w-1)+1;continue}const L=d(h,p,w),$=i(h,w,L),T=h.slice(L,$);if(f[T]===void 0){let M=d(h,w+1,I),k=i(h,I,M);const P=b(h.slice(M,k));f[T]=P}p=I+1}while(p<v);return f}function d(h,y,f){do{const v=h.charCodeAt(y);if(v!==32&&v!==9)return y}while(++y<f);return f}function i(h,y,f){for(;y>f;){const v=h.charCodeAt(--y);if(v!==32&&v!==9)return y+1}return f}function l(h,y,f){const v=(f==null?void 0:f.encode)||encodeURIComponent;if(!e.test(h))throw new TypeError(`argument name is invalid: ${h}`);const b=v(y);if(!t.test(b))throw new TypeError(`argument val is invalid: ${y}`);let p=h+"="+b;if(!f)return p;if(f.maxAge!==void 0){if(!Number.isInteger(f.maxAge))throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);p+="; Max-Age="+f.maxAge}if(f.domain){if(!n.test(f.domain))throw new TypeError(`option domain is invalid: ${f.domain}`);p+="; Domain="+f.domain}if(f.path){if(!a.test(f.path))throw new TypeError(`option path is invalid: ${f.path}`);p+="; Path="+f.path}if(f.expires){if(!m(f.expires)||!Number.isFinite(f.expires.valueOf()))throw new TypeError(`option expires is invalid: ${f.expires}`);p+="; Expires="+f.expires.toUTCString()}if(f.httpOnly&&(p+="; HttpOnly"),f.secure&&(p+="; Secure"),f.partitioned&&(p+="; Partitioned"),f.priority)switch(typeof f.priority=="string"?f.priority.toLowerCase():void 0){case"low":p+="; Priority=Low";break;case"medium":p+="; Priority=Medium";break;case"high":p+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${f.priority}`)}if(f.sameSite)switch(typeof f.sameSite=="string"?f.sameSite.toLowerCase():f.sameSite){case!0:case"strict":p+="; SameSite=Strict";break;case"lax":p+="; SameSite=Lax";break;case"none":p+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${f.sameSite}`)}return p}function u(h){if(h.indexOf("%")===-1)return h;try{return decodeURIComponent(h)}catch{return h}}function m(h){return r.call(h)==="[object Date]"}return Ee}dn();/**
22
+ <%s key={someKey} {...props} />`,q,H,be,H),ie[H+q]=!0)}if(H=null,D!==void 0&&(n(D),H=""+D),c(E)&&(n(E.key),H=""+E.key),"key"in E){D={};for(var st in E)st!=="key"&&(D[st]=E[st])}else D=E;return H&&d(D,typeof p=="function"?p.displayName||p.name||"Unknown":p),l(p,H,Z,le,r(),D,at,ot)}function f(p){typeof p=="object"&&p!==null&&p.$$typeof===y&&p._store&&(p._store.validated=1)}var h=x,y=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),w=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),B=Symbol.for("react.client.reference"),X=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.prototype.hasOwnProperty,N=Array.isArray,A=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(p){return p()}};var k,z={},R=h["react-stack-bottom-frame"].bind(h,o)(),U=A(a(o)),ie={};Ce.Fragment=v,Ce.jsx=function(p,E,D,q,le){var Z=1e4>X.recentlyCreatedOwnerStacks++;return u(p,E,D,!1,q,le,Z?Error("react-stack-top-frame"):R,Z?A(a(p)):U)},Ce.jsxs=function(p,E,D,q,le){var Z=1e4>X.recentlyCreatedOwnerStacks++;return u(p,E,D,!0,q,le,Z?Error("react-stack-top-frame"):R,Z?A(a(p)):U)}}()),Ce}var ct;function en(){return ct||(ct=1,process.env.NODE_ENV==="production"?Le.exports=Zt():Le.exports=Qt()),Le.exports}var s=en();const P=e=>(e==null?void 0:e.filter(Boolean).join(" "))||"",dt=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),tn=e=>!(e!=null&&e.colors)||!Object.entries(e.colors).length?{}:Object.entries(e.colors).reduce((t,[n,a])=>(n&&a&&(t[`--color-${dt(n)}`]=a),t),{}),nn=e=>!(e!=null&&e.sizes)||!Object.entries(e.sizes).length?{}:Object.entries(e.sizes).reduce((t,[n,a])=>(n&&a&&(t[`--size-${dt(n)}`]=a),t),{}),rn=e=>({...tn(e),...nn(e)}),an=(e,t)=>{if(typeof document>"u")return;const n=document.createElement("style");n.setAttribute("id",e),n.textContent=t;const a=document.getElementById(e);a&&a.remove(),document.head.appendChild(n)},on=e=>Object.entries(e).map(([t,n])=>`${t}: ${n};`).join(""),ue=e=>{const t=[];return x.Children.forEach(e,n=>{if(x.isValidElement(n)){const a=n;if(a.type===x.Fragment){const r=ue(a.props.children);t.push(...r)}else t.push(x.cloneElement(a,{...a.props}))}else t.push(n)}),t},sn=e=>{if(typeof document>"u")return;const t=document.createElement("button");t.style.position="absolute",t.style.opacity="0",e.prepend(t),t.focus(),t.remove()},ln=e=>Array.from(e.querySelectorAll('button, [href], input, [tabindex="0"]')).filter(n=>!!n),ut=e=>{sn(e);const t=ln(e),n=t[0],a=t[t.length-1]||n;n&&(n.onkeydown=r=>{r.key==="Tab"&&r.shiftKey&&(r.preventDefault(),a.focus())}),a&&(a.onclick=()=>{n==null||n.focus()},a.onkeydown=r=>{r.key==="Tab"&&!r.shiftKey&&(r.preventDefault(),n==null||n.focus())})},G={accordion:"_accordion_kwqaf_67",default:"_default_kwqaf_73",panel:"_panel_kwqaf_76",content:"_content_kwqaf_77",secondary:"_secondary_kwqaf_80",info:"_info_kwqaf_88",contrast:"_contrast_kwqaf_96",margin:"_margin_kwqaf_104",panelText:"_panelText_kwqaf_138",panelChevron:"_panelChevron_kwqaf_144",expanded:"_expanded_kwqaf_171",initialized:"_initialized_kwqaf_187",hide:"_hide_kwqaf_1",show:"_show_kwqaf_1"},cn=({title:e,buttonProps:t,expanded:n,handleToggleExpand:a})=>s.jsxs("button",{...t,className:G.panel,onClick:a,"aria-expanded":n?"true":"false",children:[s.jsx("span",{className:G.panelText,children:e}),s.jsx("span",{className:`${G.panelChevron} ${n?G.expanded:""}`})]}),dn=({title:e,color:t="default",expanded:n=!1,onToggleExpand:a,buttonProps:r,noMargin:o=!1,initialized:c,children:d,...i})=>{const[l,u]=x.useState(n),[f,h]=x.useState(c),y=()=>{u(!l),h(!0),a&&a()};x.useEffect(()=>{u(n)},[n]);const m=P([G.accordion,t&&G[t],!o&&G.margin,i.className]);return s.jsxs("div",{className:m,...i,children:[s.jsx(cn,{title:e??"",buttonProps:r??{},expanded:l??!1,handleToggleExpand:y}),s.jsx("div",{className:`${G.content} ${f?G.initialized:""} ${l?G.expanded:""}`,children:d})]})};var Ee={},ht;function un(){if(ht)return Ee;ht=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.parse=c,Ee.serialize=l;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/,r=Object.prototype.toString,o=(()=>{const h=function(){};return h.prototype=Object.create(null),h})();function c(h,y){const m=new o,v=h.length;if(v<2)return m;const b=(y==null?void 0:y.decode)||u;let _=0;do{const C=h.indexOf("=",_);if(C===-1)break;const w=h.indexOf(";",_),I=w===-1?v:w;if(C>I){_=h.lastIndexOf(";",C-1)+1;continue}const L=d(h,_,C),$=i(h,C,L),M=h.slice(L,$);if(m[M]===void 0){let T=d(h,C+1,I),S=i(h,I,T);const B=b(h.slice(T,S));m[M]=B}_=I+1}while(_<v);return m}function d(h,y,m){do{const v=h.charCodeAt(y);if(v!==32&&v!==9)return y}while(++y<m);return m}function i(h,y,m){for(;y>m;){const v=h.charCodeAt(--y);if(v!==32&&v!==9)return y+1}return m}function l(h,y,m){const v=(m==null?void 0:m.encode)||encodeURIComponent;if(!e.test(h))throw new TypeError(`argument name is invalid: ${h}`);const b=v(y);if(!t.test(b))throw new TypeError(`argument val is invalid: ${y}`);let _=h+"="+b;if(!m)return _;if(m.maxAge!==void 0){if(!Number.isInteger(m.maxAge))throw new TypeError(`option maxAge is invalid: ${m.maxAge}`);_+="; Max-Age="+m.maxAge}if(m.domain){if(!n.test(m.domain))throw new TypeError(`option domain is invalid: ${m.domain}`);_+="; Domain="+m.domain}if(m.path){if(!a.test(m.path))throw new TypeError(`option path is invalid: ${m.path}`);_+="; Path="+m.path}if(m.expires){if(!f(m.expires)||!Number.isFinite(m.expires.valueOf()))throw new TypeError(`option expires is invalid: ${m.expires}`);_+="; Expires="+m.expires.toUTCString()}if(m.httpOnly&&(_+="; HttpOnly"),m.secure&&(_+="; Secure"),m.partitioned&&(_+="; Partitioned"),m.priority)switch(typeof m.priority=="string"?m.priority.toLowerCase():void 0){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${m.priority}`)}if(m.sameSite)switch(typeof m.sameSite=="string"?m.sameSite.toLowerCase():m.sameSite){case!0:case"strict":_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"none":_+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${m.sameSite}`)}return _}function u(h){if(h.indexOf("%")===-1)return h;try{return decodeURIComponent(h)}catch{return h}}function f(h){return r.call(h)==="[object Date]"}return Ee}un();/**
23
23
  * react-router v7.6.2
24
24
  *
25
25
  * Copyright (c) Remix Software Inc.
@@ -28,7 +28,7 @@ React keys must be passed directly to JSX without using spread:
28
28
  * LICENSE.md file in the root directory of this source tree.
29
29
  *
30
30
  * @license MIT
31
- */function O(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Q(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Re({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Fe(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function ft(e,t,n="/"){return un(e,t,n,!1)}function un(e,t,n,a){let r=typeof t=="string"?Fe(t):t,s=ae(r.pathname||"/",n);if(s==null)return null;let c=mt(e);hn(c);let d=null;for(let i=0;d==null&&i<c.length;++i){let l=Cn(s);d=bn(c[i],l,a)}return d}function mt(e,t=[],n=[],a=""){let r=(s,c,d)=>{let i={relativePath:d===void 0?s.path||"":d,caseSensitive:s.caseSensitive===!0,childrenIndex:c,route:s};i.relativePath.startsWith("/")&&(O(i.relativePath.startsWith(a),`Absolute route path "${i.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),i.relativePath=i.relativePath.slice(a.length));let l=ee([a,i.relativePath]),u=n.concat(i);s.children&&s.children.length>0&&(O(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),mt(s.children,t,u,l)),!(s.path==null&&!s.index)&&t.push({path:l,score:yn(l,s.index),routesMeta:u})};return e.forEach((s,c)=>{var d;if(s.path===""||!((d=s.path)!=null&&d.includes("?")))r(s,c);else for(let i of pt(s.path))r(s,c,i)}),t}function pt(e){let t=e.split("/");if(t.length===0)return[];let[n,...a]=t,r=n.endsWith("?"),s=n.replace(/\?$/,"");if(a.length===0)return r?[s,""]:[s];let c=pt(a.join("/")),d=[];return d.push(...c.map(i=>i===""?s:[s,i].join("/"))),r&&d.push(...c),d.map(i=>e.startsWith("/")&&i===""?"/":i)}function hn(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xn(t.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}var fn=/^:[\w-]+$/,mn=3,pn=2,_n=1,gn=10,vn=-2,_t=e=>e==="*";function yn(e,t){let n=e.split("/"),a=n.length;return n.some(_t)&&(a+=vn),t&&(a+=pn),n.filter(r=>!_t(r)).reduce((r,s)=>r+(fn.test(s)?mn:s===""?_n:gn),a)}function xn(e,t){return e.length===t.length&&e.slice(0,-1).every((a,r)=>a===t[r])?e[e.length-1]-t[t.length-1]:0}function bn(e,t,n=!1){let{routesMeta:a}=e,r={},s="/",c=[];for(let d=0;d<a.length;++d){let i=a[d],l=d===a.length-1,u=s==="/"?t:t.slice(s.length)||"/",m=$e({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},u),h=i.route;if(!m&&l&&n&&!a[a.length-1].route.index&&(m=$e({path:i.relativePath,caseSensitive:i.caseSensitive,end:!1},u)),!m)return null;Object.assign(r,m.params),c.push({params:r,pathname:ee([s,m.pathname]),pathnameBase:Sn(ee([s,m.pathnameBase])),route:h}),m.pathnameBase!=="/"&&(s=ee([s,m.pathnameBase]))}return c}function $e(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=wn(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let s=r[0],c=s.replace(/(.)\/+$/,"$1"),d=r.slice(1);return{params:a.reduce((l,{paramName:u,isOptional:m},h)=>{if(u==="*"){let f=d[h]||"";c=s.slice(0,s.length-f.length).replace(/(.)\/+$/,"$1")}const y=d[h];return m&&!y?l[u]=void 0:l[u]=(y||"").replace(/%2F/g,"/"),l},{}),pathname:s,pathnameBase:c,pattern:e}}function wn(e,t=!1,n=!0){Q(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,i)=>(a.push({paramName:d,isOptional:i!=null}),i?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),a]}function Cn(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Q(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ae(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&a!=="/"?null:e.slice(n)||"/"}function En(e,t="/"){let{pathname:n,search:a="",hash:r=""}=typeof e=="string"?Fe(e):e;return{pathname:n?n.startsWith("/")?n:kn(n,t):t,search:Ln(a),hash:$n(r)}}function kn(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function Oe(e,t,n,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function jn(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function gt(e){let t=jn(e);return t.map((n,a)=>a===t.length-1?n.pathname:n.pathnameBase)}function vt(e,t,n,a=!1){let r;typeof e=="string"?r=Fe(e):(r={...e},O(!r.pathname||!r.pathname.includes("?"),Oe("?","pathname","search",r)),O(!r.pathname||!r.pathname.includes("#"),Oe("#","pathname","hash",r)),O(!r.search||!r.search.includes("#"),Oe("#","search","hash",r)));let s=e===""||r.pathname==="",c=s?"/":r.pathname,d;if(c==null)d=n;else{let m=t.length-1;if(!a&&c.startsWith("..")){let h=c.split("/");for(;h[0]==="..";)h.shift(),m-=1;r.pathname=h.join("/")}d=m>=0?t[m]:"/"}let i=En(r,d),l=c&&c!=="/"&&c.endsWith("/"),u=(s||c===".")&&n.endsWith("/");return!i.pathname.endsWith("/")&&(l||u)&&(i.pathname+="/"),i}var ee=e=>e.join("/").replace(/\/\/+/g,"/"),Sn=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ln=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$n=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function In(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var yt=["POST","PUT","PATCH","DELETE"];new Set(yt);var Nn=["GET",...yt];new Set(Nn);var ue=_.createContext(null);ue.displayName="DataRouter";var Ie=_.createContext(null);Ie.displayName="DataRouterState";var xt=_.createContext({isTransitioning:!1});xt.displayName="ViewTransition";var Mn=_.createContext(new Map);Mn.displayName="Fetchers";var Tn=_.createContext(null);Tn.displayName="Await";var te=_.createContext(null);te.displayName="Navigation";var Ve=_.createContext(null);Ve.displayName="Location";var ne=_.createContext({outlet:null,matches:[],isDataRoute:!1});ne.displayName="Route";var qe=_.createContext(null);qe.displayName="RouteError";function zn(e,{relative:t}={}){O(Ne(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:a}=_.useContext(te),{hash:r,pathname:s,search:c}=ke(e,{relative:t}),d=s;return n!=="/"&&(d=s==="/"?n:ee([n,s])),a.createHref({pathname:d,search:c,hash:r})}function Ne(){return _.useContext(Ve)!=null}function le(){return O(Ne(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(Ve).location}var bt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function wt(e){_.useContext(te).static||_.useLayoutEffect(e)}function Bn(){let{isDataRoute:e}=_.useContext(ne);return e?Yn():Dn()}function Dn(){O(Ne(),"useNavigate() may be used only in the context of a <Router> component.");let e=_.useContext(ue),{basename:t,navigator:n}=_.useContext(te),{matches:a}=_.useContext(ne),{pathname:r}=le(),s=JSON.stringify(gt(a)),c=_.useRef(!1);return wt(()=>{c.current=!0}),_.useCallback((i,l={})=>{if(Q(c.current,bt),!c.current)return;if(typeof i=="number"){n.go(i);return}let u=vt(i,JSON.parse(s),r,l.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:ee([t,u.pathname])),(l.replace?n.replace:n.push)(u,l.state,l)},[t,n,s,r,e])}_.createContext(null);function ke(e,{relative:t}={}){let{matches:n}=_.useContext(ne),{pathname:a}=le(),r=JSON.stringify(gt(n));return _.useMemo(()=>vt(e,JSON.parse(r),a,t==="path"),[e,r,a,t])}function Pn(e,t,n,a){O(Ne(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=_.useContext(te),{matches:s}=_.useContext(ne),c=s[s.length-1],d=c?c.params:{},i=c?c.pathname:"/",l=c?c.pathnameBase:"/",u=c&&c.route;{let p=u&&u.path||"";Et(i,!u||p.endsWith("*")||p.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${i}" (under <Route path="${p}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
31
+ */function O(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Q(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Re({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Fe(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function mt(e,t,n="/"){return hn(e,t,n,!1)}function hn(e,t,n,a){let r=typeof t=="string"?Fe(t):t,o=oe(r.pathname||"/",n);if(o==null)return null;let c=ft(e);mn(c);let d=null;for(let i=0;d==null&&i<c.length;++i){let l=En(o);d=wn(c[i],l,a)}return d}function ft(e,t=[],n=[],a=""){let r=(o,c,d)=>{let i={relativePath:d===void 0?o.path||"":d,caseSensitive:o.caseSensitive===!0,childrenIndex:c,route:o};i.relativePath.startsWith("/")&&(O(i.relativePath.startsWith(a),`Absolute route path "${i.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),i.relativePath=i.relativePath.slice(a.length));let l=ee([a,i.relativePath]),u=n.concat(i);o.children&&o.children.length>0&&(O(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),ft(o.children,t,u,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:xn(l,o.index),routesMeta:u})};return e.forEach((o,c)=>{var d;if(o.path===""||!((d=o.path)!=null&&d.includes("?")))r(o,c);else for(let i of pt(o.path))r(o,c,i)}),t}function pt(e){let t=e.split("/");if(t.length===0)return[];let[n,...a]=t,r=n.endsWith("?"),o=n.replace(/\?$/,"");if(a.length===0)return r?[o,""]:[o];let c=pt(a.join("/")),d=[];return d.push(...c.map(i=>i===""?o:[o,i].join("/"))),r&&d.push(...c),d.map(i=>e.startsWith("/")&&i===""?"/":i)}function mn(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:bn(t.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}var fn=/^:[\w-]+$/,pn=3,_n=2,gn=1,vn=10,yn=-2,_t=e=>e==="*";function xn(e,t){let n=e.split("/"),a=n.length;return n.some(_t)&&(a+=yn),t&&(a+=_n),n.filter(r=>!_t(r)).reduce((r,o)=>r+(fn.test(o)?pn:o===""?gn:vn),a)}function bn(e,t){return e.length===t.length&&e.slice(0,-1).every((a,r)=>a===t[r])?e[e.length-1]-t[t.length-1]:0}function wn(e,t,n=!1){let{routesMeta:a}=e,r={},o="/",c=[];for(let d=0;d<a.length;++d){let i=a[d],l=d===a.length-1,u=o==="/"?t:t.slice(o.length)||"/",f=$e({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},u),h=i.route;if(!f&&l&&n&&!a[a.length-1].route.index&&(f=$e({path:i.relativePath,caseSensitive:i.caseSensitive,end:!1},u)),!f)return null;Object.assign(r,f.params),c.push({params:r,pathname:ee([o,f.pathname]),pathnameBase:Ln(ee([o,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(o=ee([o,f.pathnameBase]))}return c}function $e(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=Cn(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let o=r[0],c=o.replace(/(.)\/+$/,"$1"),d=r.slice(1);return{params:a.reduce((l,{paramName:u,isOptional:f},h)=>{if(u==="*"){let m=d[h]||"";c=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const y=d[h];return f&&!y?l[u]=void 0:l[u]=(y||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:c,pattern:e}}function Cn(e,t=!1,n=!0){Q(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,i)=>(a.push({paramName:d,isOptional:i!=null}),i?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),a]}function En(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Q(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function oe(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&a!=="/"?null:e.slice(n)||"/"}function kn(e,t="/"){let{pathname:n,search:a="",hash:r=""}=typeof e=="string"?Fe(e):e;return{pathname:n?n.startsWith("/")?n:jn(n,t):t,search:$n(a),hash:In(r)}}function jn(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function Oe(e,t,n,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Sn(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function gt(e){let t=Sn(e);return t.map((n,a)=>a===t.length-1?n.pathname:n.pathnameBase)}function vt(e,t,n,a=!1){let r;typeof e=="string"?r=Fe(e):(r={...e},O(!r.pathname||!r.pathname.includes("?"),Oe("?","pathname","search",r)),O(!r.pathname||!r.pathname.includes("#"),Oe("#","pathname","hash",r)),O(!r.search||!r.search.includes("#"),Oe("#","search","hash",r)));let o=e===""||r.pathname==="",c=o?"/":r.pathname,d;if(c==null)d=n;else{let f=t.length-1;if(!a&&c.startsWith("..")){let h=c.split("/");for(;h[0]==="..";)h.shift(),f-=1;r.pathname=h.join("/")}d=f>=0?t[f]:"/"}let i=kn(r,d),l=c&&c!=="/"&&c.endsWith("/"),u=(o||c===".")&&n.endsWith("/");return!i.pathname.endsWith("/")&&(l||u)&&(i.pathname+="/"),i}var ee=e=>e.join("/").replace(/\/\/+/g,"/"),Ln=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$n=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,In=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Nn(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var yt=["POST","PUT","PATCH","DELETE"];new Set(yt);var Mn=["GET",...yt];new Set(Mn);var he=g.createContext(null);he.displayName="DataRouter";var Ie=g.createContext(null);Ie.displayName="DataRouterState";var xt=g.createContext({isTransitioning:!1});xt.displayName="ViewTransition";var Tn=g.createContext(new Map);Tn.displayName="Fetchers";var Bn=g.createContext(null);Bn.displayName="Await";var te=g.createContext(null);te.displayName="Navigation";var Ve=g.createContext(null);Ve.displayName="Location";var ne=g.createContext({outlet:null,matches:[],isDataRoute:!1});ne.displayName="Route";var qe=g.createContext(null);qe.displayName="RouteError";function Dn(e,{relative:t}={}){O(Ne(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:a}=g.useContext(te),{hash:r,pathname:o,search:c}=ke(e,{relative:t}),d=o;return n!=="/"&&(d=o==="/"?n:ee([n,o])),a.createHref({pathname:d,search:c,hash:r})}function Ne(){return g.useContext(Ve)!=null}function ce(){return O(Ne(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Ve).location}var bt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function wt(e){g.useContext(te).static||g.useLayoutEffect(e)}function zn(){let{isDataRoute:e}=g.useContext(ne);return e?Jn():Pn()}function Pn(){O(Ne(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(he),{basename:t,navigator:n}=g.useContext(te),{matches:a}=g.useContext(ne),{pathname:r}=ce(),o=JSON.stringify(gt(a)),c=g.useRef(!1);return wt(()=>{c.current=!0}),g.useCallback((i,l={})=>{if(Q(c.current,bt),!c.current)return;if(typeof i=="number"){n.go(i);return}let u=vt(i,JSON.parse(o),r,l.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:ee([t,u.pathname])),(l.replace?n.replace:n.push)(u,l.state,l)},[t,n,o,r,e])}g.createContext(null);function ke(e,{relative:t}={}){let{matches:n}=g.useContext(ne),{pathname:a}=ce(),r=JSON.stringify(gt(n));return g.useMemo(()=>vt(e,JSON.parse(r),a,t==="path"),[e,r,a,t])}function An(e,t,n,a){O(Ne(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=g.useContext(te),{matches:o}=g.useContext(ne),c=o[o.length-1],d=c?c.params:{},i=c?c.pathname:"/",l=c?c.pathnameBase:"/",u=c&&c.route;{let _=u&&u.path||"";Et(i,!u||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${i}" (under <Route path="${_}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
32
32
 
33
- Please change the parent <Route path="${p}"> to <Route path="${p==="/"?"*":`${p}/*`}">.`)}let m=le(),h;h=m;let y=h.pathname||"/",f=y;if(l!=="/"){let p=l.replace(/^\//,"").split("/");f="/"+y.replace(/^\//,"").split("/").slice(p.length).join("/")}let v=ft(e,{pathname:f});return Q(u||v!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Q(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),Vn(v&&v.map(p=>Object.assign({},p,{params:Object.assign({},d,p.params),pathname:ee([l,r.encodeLocation?r.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?l:ee([l,r.encodeLocation?r.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),s,n,a)}function An(){let e=Un(),t=In(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:a},s={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:s},"ErrorBoundary")," or"," ",_.createElement("code",{style:s},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:r},n):null,c)}var Rn=_.createElement(An,null),Fn=class extends _.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?_.createElement(ne.Provider,{value:this.props.routeContext},_.createElement(qe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function On({routeContext:e,match:t,children:n}){let a=_.useContext(ue);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(ne.Provider,{value:e},n)}function Vn(e,t=[],n=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let r=e,s=n==null?void 0:n.errors;if(s!=null){let i=r.findIndex(l=>l.route.id&&(s==null?void 0:s[l.route.id])!==void 0);O(i>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),r=r.slice(0,Math.min(r.length,i+1))}let c=!1,d=-1;if(n)for(let i=0;i<r.length;i++){let l=r[i];if((l.route.HydrateFallback||l.route.hydrateFallbackElement)&&(d=i),l.route.id){let{loaderData:u,errors:m}=n,h=l.route.loader&&!u.hasOwnProperty(l.route.id)&&(!m||m[l.route.id]===void 0);if(l.route.lazy||h){c=!0,d>=0?r=r.slice(0,d+1):r=[r[0]];break}}}return r.reduceRight((i,l,u)=>{let m,h=!1,y=null,f=null;n&&(m=s&&l.route.id?s[l.route.id]:void 0,y=l.route.errorElement||Rn,c&&(d<0&&u===0?(Et("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,f=null):d===u&&(h=!0,f=l.route.hydrateFallbackElement||null)));let v=t.concat(r.slice(0,u+1)),b=()=>{let p;return m?p=y:h?p=f:l.route.Component?p=_.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=i,_.createElement(On,{match:l,routeContext:{outlet:i,matches:v,isDataRoute:n!=null},children:p})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?_.createElement(Fn,{location:n.location,revalidation:n.revalidation,component:y,error:m,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):b()},null)}function He(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qn(e){let t=_.useContext(ue);return O(t,He(e)),t}function Hn(e){let t=_.useContext(Ie);return O(t,He(e)),t}function Xn(e){let t=_.useContext(ne);return O(t,He(e)),t}function Xe(e){let t=Xn(e),n=t.matches[t.matches.length-1];return O(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Wn(){return Xe("useRouteId")}function Un(){var a;let e=_.useContext(qe),t=Hn("useRouteError"),n=Xe("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[n]}function Yn(){let{router:e}=qn("useNavigate"),t=Xe("useNavigate"),n=_.useRef(!1);return wt(()=>{n.current=!0}),_.useCallback(async(r,s={})=>{Q(n.current,bt),n.current&&(typeof r=="number"?e.navigate(r):await e.navigate(r,{fromRouteId:t,...s}))},[e,t])}var Ct={};function Et(e,t,n){!t&&!Ct[e]&&(Ct[e]=!0,Q(!1,n))}_.memo(Jn);function Jn({routes:e,future:t,state:n}){return Pn(e,void 0,n,t)}var Me="get",Te="application/x-www-form-urlencoded";function ze(e){return e!=null&&typeof e.tagName=="string"}function Gn(e){return ze(e)&&e.tagName.toLowerCase()==="button"}function Kn(e){return ze(e)&&e.tagName.toLowerCase()==="form"}function Zn(e){return ze(e)&&e.tagName.toLowerCase()==="input"}function Qn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function er(e,t){return e.button===0&&(!t||t==="_self")&&!Qn(e)}var Be=null;function tr(){if(Be===null)try{new FormData(document.createElement("form"),0),Be=!1}catch{Be=!0}return Be}var nr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function We(e){return e!=null&&!nr.has(e)?(Q(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Te}"`),null):e}function rr(e,t){let n,a,r,s,c;if(Kn(e)){let d=e.getAttribute("action");a=d?ae(d,t):null,n=e.getAttribute("method")||Me,r=We(e.getAttribute("enctype"))||Te,s=new FormData(e)}else if(Gn(e)||Zn(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let i=e.getAttribute("formaction")||d.getAttribute("action");if(a=i?ae(i,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||Me,r=We(e.getAttribute("formenctype"))||We(d.getAttribute("enctype"))||Te,s=new FormData(d,e),!tr()){let{name:l,type:u,value:m}=e;if(u==="image"){let h=l?`${l}.`:"";s.append(`${h}x`,"0"),s.append(`${h}y`,"0")}else l&&s.append(l,m)}}else{if(ze(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Me,a=null,r=Te,c=e}return s&&r==="text/plain"&&(c=s,s=void 0),{action:a,method:n.toLowerCase(),encType:r,formData:s,body:c}}function Ue(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function ar(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function sr(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function or(e,t,n){let a=await Promise.all(e.map(async r=>{let s=t.routes[r.route.id];if(s){let c=await ar(s,n);return c.links?c.links():[]}return[]}));return dr(a.flat(1).filter(sr).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function kt(e,t,n,a,r,s){let c=(i,l)=>n[l]?i.route.id!==n[l].route.id:!0,d=(i,l)=>{var u;return n[l].pathname!==i.pathname||((u=n[l].route.path)==null?void 0:u.endsWith("*"))&&n[l].params["*"]!==i.params["*"]};return s==="assets"?t.filter((i,l)=>c(i,l)||d(i,l)):s==="data"?t.filter((i,l)=>{var m;let u=a.routes[i.route.id];if(!u||!u.hasLoader)return!1;if(c(i,l)||d(i,l))return!0;if(i.route.shouldRevalidate){let h=i.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:((m=n[0])==null?void 0:m.params)||{},nextUrl:new URL(e,window.origin),nextParams:i.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function ir(e,t,{includeHydrateFallback:n}={}){return lr(e.map(a=>{let r=t.routes[a.route.id];if(!r)return[];let s=[r.module];return r.clientActionModule&&(s=s.concat(r.clientActionModule)),r.clientLoaderModule&&(s=s.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(s=s.concat(r.hydrateFallbackModule)),r.imports&&(s=s.concat(r.imports)),s}).flat(1))}function lr(e){return[...new Set(e)]}function cr(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}function dr(e,t){let n=new Set;return new Set(t),e.reduce((a,r)=>{let s=JSON.stringify(cr(r));return n.has(s)||(n.add(s),a.push({key:s,link:r})),a},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ur=new Set([100,101,204,205]);function hr(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&ae(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function jt(){let e=_.useContext(ue);return Ue(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function fr(){let e=_.useContext(Ie);return Ue(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ye=_.createContext(void 0);Ye.displayName="FrameworkContext";function St(){let e=_.useContext(Ye);return Ue(e,"You must render this element inside a <HydratedRouter> element"),e}function mr(e,t){let n=_.useContext(Ye),[a,r]=_.useState(!1),[s,c]=_.useState(!1),{onFocus:d,onBlur:i,onMouseEnter:l,onMouseLeave:u,onTouchStart:m}=t,h=_.useRef(null);_.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let v=p=>{p.forEach(w=>{c(w.isIntersecting)})},b=new IntersectionObserver(v,{threshold:.5});return h.current&&b.observe(h.current),()=>{b.disconnect()}}},[e]),_.useEffect(()=>{if(a){let v=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(v)}}},[a]);let y=()=>{r(!0)},f=()=>{r(!1),c(!1)};return n?e!=="intent"?[s,h,{}]:[s,h,{onFocus:je(d,y),onBlur:je(i,f),onMouseEnter:je(l,y),onMouseLeave:je(u,f),onTouchStart:je(m,y)}]:[!1,h,{}]}function je(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function pr({page:e,...t}){let{router:n}=jt(),a=_.useMemo(()=>ft(n.routes,e,n.basename),[n.routes,e,n.basename]);return a?_.createElement(gr,{page:e,matches:a,...t}):null}function _r(e){let{manifest:t,routeModules:n}=St(),[a,r]=_.useState([]);return _.useEffect(()=>{let s=!1;return or(e,t,n).then(c=>{s||r(c)}),()=>{s=!0}},[e,t,n]),a}function gr({page:e,matches:t,...n}){let a=le(),{manifest:r,routeModules:s}=St(),{basename:c}=jt(),{loaderData:d,matches:i}=fr(),l=_.useMemo(()=>kt(e,t,i,r,a,"data"),[e,t,i,r,a]),u=_.useMemo(()=>kt(e,t,i,r,a,"assets"),[e,t,i,r,a]),m=_.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let f=new Set,v=!1;if(t.forEach(p=>{var C;let w=r.routes[p.route.id];!w||!w.hasLoader||(!l.some(I=>I.route.id===p.route.id)&&p.route.id in d&&((C=s[p.route.id])!=null&&C.shouldRevalidate)||w.hasClientLoader?v=!0:f.add(p.route.id))}),f.size===0)return[];let b=hr(e,c);return v&&f.size>0&&b.searchParams.set("_routes",t.filter(p=>f.has(p.route.id)).map(p=>p.route.id).join(",")),[b.pathname+b.search]},[c,d,a,r,l,t,e,s]),h=_.useMemo(()=>ir(u,r),[u,r]),y=_r(u);return _.createElement(_.Fragment,null,m.map(f=>_.createElement("link",{key:f,rel:"prefetch",as:"fetch",href:f,...n})),h.map(f=>_.createElement("link",{key:f,rel:"modulepreload",href:f,...n})),y.map(({key:f,link:v})=>_.createElement("link",{key:f,...v})))}function vr(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Lt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Lt&&(window.__reactRouterVersion="7.6.2")}catch{}var $t=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Se=_.forwardRef(function({onClick:t,discover:n="render",prefetch:a="none",relative:r,reloadDocument:s,replace:c,state:d,target:i,to:l,preventScrollReset:u,viewTransition:m,...h},y){let{basename:f}=_.useContext(te),v=typeof l=="string"&&$t.test(l),b,p=!1;if(typeof l=="string"&&v&&(b=l,Lt))try{let k=new URL(window.location.href),P=l.startsWith("//")?new URL(k.protocol+l):new URL(l),X=ae(P.pathname,f);P.origin===k.origin&&X!=null?l=X+P.search+P.hash:p=!0}catch{Q(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let w=zn(l,{relative:r}),[C,I,L]=mr(a,h),$=wr(l,{replace:c,state:d,target:i,preventScrollReset:u,relative:r,viewTransition:m});function T(k){t&&t(k),k.defaultPrevented||$(k)}let M=_.createElement("a",{...h,...L,href:b||w,onClick:p||s?t:T,ref:vr(y,I),target:i,"data-discover":!v&&n==="render"?"true":void 0});return C&&!v?_.createElement(_.Fragment,null,M,_.createElement(pr,{page:w})):M});Se.displayName="Link";var yr=_.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:a="",end:r=!1,style:s,to:c,viewTransition:d,children:i,...l},u){let m=ke(c,{relative:l.relative}),h=le(),y=_.useContext(Ie),{navigator:f,basename:v}=_.useContext(te),b=y!=null&&Sr(m)&&d===!0,p=f.encodeLocation?f.encodeLocation(m).pathname:m.pathname,w=h.pathname,C=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(w=w.toLowerCase(),C=C?C.toLowerCase():null,p=p.toLowerCase()),C&&v&&(C=ae(C,v)||C);const I=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let L=w===p||!r&&w.startsWith(p)&&w.charAt(I)==="/",$=C!=null&&(C===p||!r&&C.startsWith(p)&&C.charAt(p.length)==="/"),T={isActive:L,isPending:$,isTransitioning:b},M=L?t:void 0,k;typeof a=="function"?k=a(T):k=[a,L?"active":null,$?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let P=typeof s=="function"?s(T):s;return _.createElement(Se,{...l,"aria-current":M,className:k,ref:u,style:P,to:c,viewTransition:d},typeof i=="function"?i(T):i)});yr.displayName="NavLink";var xr=_.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:a,replace:r,state:s,method:c=Me,action:d,onSubmit:i,relative:l,preventScrollReset:u,viewTransition:m,...h},y)=>{let f=kr(),v=jr(d,{relative:l}),b=c.toLowerCase()==="get"?"get":"post",p=typeof d=="string"&&$t.test(d),w=C=>{if(i&&i(C),C.defaultPrevented)return;C.preventDefault();let I=C.nativeEvent.submitter,L=(I==null?void 0:I.getAttribute("formmethod"))||c;f(I||C.currentTarget,{fetcherKey:t,method:L,navigate:n,replace:r,state:s,relative:l,preventScrollReset:u,viewTransition:m})};return _.createElement("form",{ref:y,method:b,action:v,onSubmit:a?i:w,...h,"data-discover":!p&&e==="render"?"true":void 0})});xr.displayName="Form";function br(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function It(e){let t=_.useContext(ue);return O(t,br(e)),t}function wr(e,{target:t,replace:n,state:a,preventScrollReset:r,relative:s,viewTransition:c}={}){let d=Bn(),i=le(),l=ke(e,{relative:s});return _.useCallback(u=>{if(er(u,t)){u.preventDefault();let m=n!==void 0?n:Re(i)===Re(l);d(e,{replace:m,state:a,preventScrollReset:r,relative:s,viewTransition:c})}},[i,d,l,n,a,t,e,r,s,c])}var Cr=0,Er=()=>`__${String(++Cr)}__`;function kr(){let{router:e}=It("useSubmit"),{basename:t}=_.useContext(te),n=Wn();return _.useCallback(async(a,r={})=>{let{action:s,method:c,encType:d,formData:i,body:l}=rr(a,t);if(r.navigate===!1){let u=r.fetcherKey||Er();await e.fetch(u,n,r.action||s,{preventScrollReset:r.preventScrollReset,formData:i,body:l,formMethod:r.method||c,formEncType:r.encType||d,flushSync:r.flushSync})}else await e.navigate(r.action||s,{preventScrollReset:r.preventScrollReset,formData:i,body:l,formMethod:r.method||c,formEncType:r.encType||d,replace:r.replace,state:r.state,fromRouteId:n,flushSync:r.flushSync,viewTransition:r.viewTransition})},[e,t,n])}function jr(e,{relative:t}={}){let{basename:n}=_.useContext(te),a=_.useContext(ne);O(a,"useFormAction must be used inside a RouteContext");let[r]=a.matches.slice(-1),s={...ke(e||".",{relative:t})},c=le();if(e==null){s.search=c.search;let d=new URLSearchParams(s.search),i=d.getAll("index");if(i.some(u=>u==="")){d.delete("index"),i.filter(m=>m).forEach(m=>d.append("index",m));let u=d.toString();s.search=u?`?${u}`:""}}return(!e||e===".")&&r.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:ee([n,s.pathname])),Re(s)}function Sr(e,t={}){let n=_.useContext(xt);O(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=It("useViewTransitionState"),r=ke(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=ae(n.currentLocation.pathname,a)||n.currentLocation.pathname,c=ae(n.nextLocation.pathname,a)||n.nextLocation.pathname;return $e(r.pathname,c)!=null||$e(r.pathname,s)!=null}[...ur];const V={button:"_button_1jbpj_161",noMargin:"_noMargin_1jbpj_189",regular:"_regular_1jbpj_199",small:"_small_1jbpj_202",primary:"_primary_1jbpj_213",noHover:"_noHover_1jbpj_217",secondary:"_secondary_1jbpj_233",disabled:"_disabled_1jbpj_252",hasErrors:"_hasErrors_1jbpj_272",rounded:"_rounded_1jbpj_278",hasArrowLeft:"_hasArrowLeft_1jbpj_282",pushprev:"_pushprev_1jbpj_1",hasArrowRight:"_hasArrowRight_1jbpj_320",pushnext:"_pushnext_1jbpj_1",hasIcon:"_hasIcon_1jbpj_358",buttonContent:"_buttonContent_1jbpj_362"},Je=({content:e,color:t="primary",size:n="regular",arrow:a="none",disabled:r=!1,inputType:s,defaultChecked:c,hasErrors:d=!1,noHover:i=!1,rounded:l=!1,noMargin:u=!1,href:m,children:h,iconLeft:y,iconRight:f,...v})=>{const b=$=>{switch($){case"left":return V.hasArrowLeft;case"right":return V.hasArrowRight;default:return""}},p=s==="radio"?c?"primary":"secondary":t,w=D([V.button,V[p],V[n],b(a),i||s==="radio"?V.noHover:null,l&&V.rounded,d&&V.hasErrors,r?V.disabled:null,u?V.noMargin:null,y||f?V.hasIcon:null]),C={"aria-invalid":d||void 0,href:!r&&(m!=null&&m.length)?m:void 0,className:w,...v},I=$=>x.Children.toArray(de($)).map(M=>{if(!x.isValidElement(M))return null;const k=M,P=k.type===Se&&typeof k.props=="object"&&k.props!==null&&"to"in k.props;return!r&&P?x.cloneElement(k,{className:w,key:`button-${k.key}`,to:k.props.to},y,o.jsx("span",{className:V.buttonContent,children:k.props.children}),f):x.createElement("button",{...C,key:`button-${k.key}`},y,o.jsx("span",{className:V.buttonContent,children:e||(k.props?k.props.children:null)}),f)});if(s==="button")return o.jsxs("button",{type:"button",...C,children:[y,o.jsx("span",{className:V.buttonContent,children:e||h}),f]});if(s==="radio"){const $={...C};return delete $.href,o.jsxs("label",{className:w,children:[o.jsx("input",{...$,type:"radio"}),y,o.jsx("span",{className:V.buttonContent,children:e}),f]})}if(m!=null&&m.length&&!r){const $={...C};return"type"in $&&delete $.type,o.jsxs("a",{...$,children:[y,o.jsx("span",{className:V.buttonContent,children:e||h}),f]})}return x.isValidElement(h)&&h.type===Se?o.jsx(x.Fragment,{children:I(x.Children.toArray(h))}):o.jsxs("button",{...C,children:[y,o.jsx("span",{className:V.buttonContent,children:e||h}),f]})},he={checkBoxIcon:"_checkBoxIcon_1kc3w_1",showBox:"_showBox_1kc3w_22",hasErrors:"_hasErrors_1kc3w_27",checked:"_checked_1kc3w_37",disabled:"_disabled_1kc3w_53",checkmark:"_checkmark_1kc3w_58"},Ge=({size:e="20px",checked:t=!1,disabled:n=!1,showBox:a=!0,hasErrors:r=!1,checkmarkCharacter:s="✔"})=>{const c={height:e,width:e,fontSize:e},d=[he.checkBoxIcon,t&&he.checked,n&&he.disabled,a&&he.showBox,r&&he.hasErrors].filter(Boolean).join(" ");return o.jsx("span",{className:d,style:c,children:o.jsx("span",{"aria-hidden":!0,className:he.checkmark,children:t?s:""})})},re="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32.275'%20height='30.469'%20focusable='false'%3e%3cpath%20fill='%239d2024'%20d='m0%2014.355%202.246-6.933c5.176%201.823%208.936%203.402%2011.28%204.736-.62-5.892-.945-9.944-.977-12.158h7.08c-.098%203.223-.472%207.26-1.123%2012.11%203.353-1.693%207.194-3.256%2011.523-4.688l2.246%206.933c-4.134%201.368-8.186%202.28-12.158%202.735%201.986%201.725%204.785%204.801%208.399%209.228l-5.86%204.15c-1.888-2.57-4.118-6.07-6.69-10.497-2.408%204.59-4.524%208.089-6.347%2010.498l-5.762-4.15c3.776-4.656%206.478-7.732%208.106-9.23-4.2-.813-8.187-1.724-11.963-2.734'/%3e%3c/svg%3e",fe={checkBoxInput:"_checkBoxInput_f1w9m_1",requiredSymbol:"_requiredSymbol_f1w9m_6",contentOnly:"_contentOnly_f1w9m_13",disabled:"_disabled_f1w9m_13",labelText:"_labelText_f1w9m_19",hasErrors:"_hasErrors_f1w9m_27"},Nt=({checked:e=!1,disabled:t=!1,required:n=!1,requiredGroup:a=!1,id:r,name:s="",onChange:c,contentOnly:d=!1,hasErrors:i=!1,checkmarkCharacter:l="✔",tabIndex:u=0,children:m,"aria-controls":h,"aria-describedby":y,value:f})=>{const v=[fe.checkBoxInput,d&&fe.contentOnly,t&&fe.disabled,i&&fe.hasErrors].filter(Boolean).join(" "),b={checked:e,disabled:t,showBox:!d,hasErrors:d&&i,checkmarkCharacter:l},p={id:r,name:s,type:"checkbox",checked:e,disabled:t,required:n||a,onChange:c,tabIndex:u,"aria-controls":h,"aria-invalid":i?"true":void 0,"aria-describedby":y,value:f};return o.jsxs("label",{htmlFor:r,className:v,children:[d?o.jsx(Ge,{...b}):o.jsxs(o.Fragment,{children:[o.jsx(Ge,{...b}),o.jsx("input",{...p})]}),o.jsxs("span",{className:fe.labelText,children:[m,n&&o.jsx("img",{src:re,alt:"",className:fe.requiredSymbol})]})]})},Mt={checkBoxList:"_checkBoxList_1sp8d_1",requiredSymbol:"_requiredSymbol_1sp8d_16"},De={headerContainer:"_headerContainer_t2si7_1",header:"_header_t2si7_1","size-1":"_size-1_t2si7_8",bigHeader:"_bigHeader_t2si7_16","size-2":"_size-2_t2si7_28","size-3":"_size-3_t2si7_36","size-4":"_size-4_t2si7_44","size-5":"_size-5_t2si7_52"},Ke=({id:e,content:t,size:n=1,big:a,label:r,htmlTag:s,htmlFor:c,children:d})=>{const i=s||`h${n}`,l=D([De.header,De[`size-${n}`],a&&De.bigHeader]),u=r!=null&&r.length&&typeof r=="string"?{"--label":`"${r}"`}:void 0,m=x.createElement(i,{className:l,id:e||void 0,htmlFor:c||void 0,style:u},t!=null&&t.length?t:d);return o.jsx("div",{className:De.headerContainer,children:m})},Tt=({legend:e,legendSize:t,required:n=!1,compact:a=!1,children:r})=>{const s=c=>de(c).map(i=>{var l;return x.isValidElement(i)&&((l=i.type)==null?void 0:l.displayName)==="RadioButtonListItem"?x.cloneElement(i,{requiredGroup:n,compact:a,key:`checkboxListItem-${i.key}`}):i});return o.jsxs("fieldset",{className:Mt.checkBoxList,children:[!!(e!=null&&e.length)&&o.jsxs("legend",{children:[t?o.jsx(Ke,{size:t,children:e}):e,n&&o.jsx("img",{src:re,alt:"",className:Mt.requiredSymbol})]}),s(x.Children.toArray(r))]})},me={checkBoxListItem:"_checkBoxListItem_jnb8z_1",contentOnly:"_contentOnly_jnb8z_26",compact:"_compact_jnb8z_26",disabled:"_disabled_jnb8z_41",checked:"_checked_jnb8z_44"},zt=({checked:e=!1,disabled:t=!1,required:n=!1,requiredGroup:a=!1,id:r,name:s="",onChange:c,contentOnly:d=!1,compact:i=!1,hasErrors:l=!1,checkmarkCharacter:u="✔","aria-controls":m,"aria-describedby":h,children:y,value:f})=>{const v=D([me.checkBoxListItem,e&&me.checked,t&&me.disabled,i&&me.compact,d&&me.contentOnly,l&&me.hasErrors]),b={onChange:c??(()=>{}),checked:e,disabled:t,required:n,requiredGroup:a,contentOnly:d,hasErrors:l,"aria-controls":m,"aria-describedby":h,id:r,name:s,checkmarkCharacter:u,value:f};return o.jsx("div",{className:v,children:o.jsx(Nt,{...b,children:y})})},Lr={container:"_container_f8z49_1"},Bt=({maxWidth:e,children:t})=>{const n={"--max-width":e!=null&&e.length?e:void 0};return o.jsx("div",{className:Lr.container,style:n,children:t})},pe={contentBox:"_contentBox_1ndvc_1",link:"_link_1ndvc_8",default:"_default_1ndvc_21",content:"_content_1ndvc_1",title:"_title_1ndvc_25",secondary:"_secondary_1ndvc_28",regular:"_regular_1ndvc_36",large:"_large_1ndvc_45"},$r=({title:e=null,titleSize:t="regular",content:n="",children:a,color:r="default",href:s=null})=>{const c=()=>{if(!e)return null;const h=`${pe.title} ${pe[t]}`;return o.jsx("h2",{className:h,children:e})},d=pe[r]||"",i=s?pe.link:"",l=`${pe.contentBox} ${d} ${i}`.trim(),u=n!=null&&n.length?n:a,m=o.jsxs(o.Fragment,{children:[c(),o.jsx("div",{className:pe.content,children:u})]});return s?o.jsx("a",{href:s,className:l,children:m}):o.jsx("div",{className:l,children:m})},Dt={descriptionDetails:"_descriptionDetails_1d1dj_1",compact:"_compact_1d1dj_7"},Ir=({compact:e=!1,titleWidth:t,children:n})=>o.jsx("dd",{className:D([Dt.descriptionDetails,e&&Dt.compact]),style:{"--title-width":t||void 0},children:n}),Pt={descriptionList:"_descriptionList_w11ua_1",compact:"_compact_w11ua_13"},Nr=({compact:e=!1,titleWidth:t,children:n})=>{const a=r=>de(r).map(c=>x.isValidElement(c)?x.cloneElement(c,{compact:e,titleWidth:t,key:`descriptionListItem-${c.key}`}):c);return x.createElement("dl",{className:D([Pt.descriptionList,e&&Pt.compact]),style:{"--title-width":t||void 0}},a(x.Children.toArray(n)))},At={descriptionTerm:"_descriptionTerm_uuapd_1",compact:"_compact_uuapd_8"},Mr=({compact:e=!1,titleWidth:t,children:n})=>o.jsx("dt",{className:D([At.descriptionTerm,e&&At.compact]),style:{"--title-width":t||void 0},children:n}),Tr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='25'%20height='25'%3e%3cpath%20fill='%23072938'%20stroke='%23072938'%20stroke-linecap='round'%20stroke-width='3.23'%20d='m3.97%203.57%2017.44%2018.2m-17.44.01L21.41%203.57'/%3e%3c/svg%3e",se={dialog:"_dialog_psz2f_19",dialogContainer:"_dialogContainer_psz2f_36",dialogContent:"_dialogContent_psz2f_41",closeButton:"_closeButton_psz2f_48",isSidebar:"_isSidebar_psz2f_63",modalInVertical:"_modalInVertical_psz2f_1",noPadding:"_noPadding_psz2f_77",left:"_left_psz2f_116",modalInHorizontalLeft:"_modalInHorizontalLeft_psz2f_1",right:"_right_psz2f_123",modalInHorizontalRight:"_modalInHorizontalRight_psz2f_1",dialogOverlay:"_dialogOverlay_psz2f_131"},zr=({maxWidth:e="none",noPadding:t,closeButton:n,onClickOutside:a,modal:r=!0,attachTo:s,hidden:c=!1,children:d})=>{const i=x.useRef(null),l=x.useRef(null),u=x.useCallback(y=>{y&&ut(y)},[]);x.useEffect(()=>{const y=v=>{v.key==="Escape"&&a&&a()},f=v=>{l.current&&!l.current.contains(v.target)&&a()};return document.addEventListener("mousedown",f),document.addEventListener("keydown",y,!1),()=>{document.removeEventListener("mousedown",f),document.removeEventListener("keydown",y,!1)}},[a]),x.useEffect(()=>{i.current&&(i.current.close(),c||(r?i.current.showModal():i.current.show()))},[c,r]);const m=s&&D([se.isSidebar,se[s]]),h={"--max-width":e};return o.jsx("dialog",{className:D([se.dialog,m]),ref:i,children:o.jsx("div",{ref:l,className:se.dialogContainer,style:h,children:o.jsxs("div",{ref:u,className:D([se.dialogContent,t&&se.noPadding]),children:[n&&o.jsx("button",{type:"button","aria-label":"Lukk dialog",onClick:a,className:D([se.closeButton,t&&se.noPadding]),children:o.jsx("img",{src:Tr,alt:""})}),o.jsx("div",{"aria-live":"assertive",role:"dialog",children:d})]})})})},Pe={dragAndDropFileInput:"_dragAndDropFileInput_pfifv_1",requiredSymbol:"_requiredSymbol_pfifv_1",dragAndDropContainer:"_dragAndDropContainer_pfifv_8",highlighted:"_highlighted_pfifv_25"},Br="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20role='presentation'%3e%3cg%20clip-path='url(%23clip0_1089_7422)'%3e%3cmask%20id='mask0_1089_7422'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%20style='mask-type:%20alpha;'%3e%3crect%20width='20'%20height='20'%20style='fill:%20white;'%3e%3c/rect%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1089_7422)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%2010C0%204.4775%204.4775%200%2010%200C15.5225%200%2020%204.4775%2020%2010C20%2015.5225%2015.5225%2020%2010%2020C4.4775%2020%200%2015.5225%200%2010ZM11%2014.0766C11%2014.8122%2010.5188%2015.3333%209.83335%2015.3333C9.13335%2015.3333%208.66669%2014.8122%208.66669%2014.0766C8.66669%2013.341%209.13335%2012.8046%209.83335%2012.8046C10.5188%2012.8046%2011%2013.341%2011%2014.0766ZM10.65%2011.9463H8.98752L8.75419%204.66663H10.8834L10.65%2011.9463Z'%20style='fill:%20rgb(219,%200,%200);'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1089_7422'%3e%3crect%20width='20'%20height='20'%20fill='white'%3e%3c/rect%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Rt={errorMessage:"_errorMessage_i8u6b_7",errorSign:"_errorSign_i8u6b_19"},_e=({id:e,content:t=""})=>{const n=()=>({id:e!=null&&e.length?e:void 0,className:Rt.errorMessage});return(typeof t=="string"?t.trim().length>0:!!t)?o.jsxs("span",{"aria-live":"polite",...n(),children:[o.jsx("img",{src:Br,alt:"",className:Rt.errorSign}),t]}):null},Ze={label:"_label_18de6_1",inline:"_inline_18de6_11",normalCursor:"_normalCursor_18de6_14"},ce=({inline:e=!1,normalCursor:t=!1,htmlTag:n="label",children:a,id:r,...s})=>{const c=[Ze.label,e&&Ze.inline,t&&Ze.normalCursor].filter(Boolean).join(" "),d={...s,className:c,id:r||void 0};return x.createElement(n,d,a)},Dr=({id:e,name:t,onSelectChange:n,onDragAndDropChange:a,label:r="",contentOnly:s=!1,buttonColor:c="primary",buttonContent:d,buttonContentWhenSelectedFile:i,selectedFileName:l,defaultContent:u="",hasErrors:m=!1,errorMessage:h="",required:y=!1,children:f,"data-transaction-name":v})=>{const[b,p]=x.useState(!1),w=x.useRef(null),C=x.useRef(null),I=z=>{z.preventDefault(),z.stopPropagation()},L=(z,R)=>z||R,$=()=>{var z;(z=C.current)==null||z.click()},T=()=>`${e}-errorMessage`,M={id:e,"aria-describedby":m&&(h!=null&&h.toString().length)?T():void 0,"aria-invalid":m?"true":void 0,name:t,required:y},k=l&&i||d,P=x.useCallback(()=>p(!0),[]),X=x.useCallback(()=>p(!1),[]),J=x.useCallback(z=>{var R;I(z),(R=z.dataTransfer)!=null&&R.files&&a(z.dataTransfer.files),p(!1)},[a]);return x.useEffect(()=>{const z=w.current;if(z)return["dragenter","dragover"].forEach(R=>{z.addEventListener(R,P)}),["dragleave","drop"].forEach(R=>{z.addEventListener(R,X)}),["dragenter","dragover","dragleave","drop"].forEach(R=>{z.addEventListener(R,I)}),z.addEventListener("drop",J),()=>{["dragenter","dragover","dragleave","drop"].forEach(R=>{z.removeEventListener(R,I),z.removeEventListener(R,P),z.removeEventListener(R,X)}),z.removeEventListener("drop",J)}},[a]),o.jsxs("div",{className:Pe.dragAndDropFileInput,children:[o.jsxs(ce,{htmlFor:e,children:[r,y&&o.jsx("img",{src:re,alt:"",className:Pe.requiredSymbol})]}),o.jsx("div",{children:f}),!s&&o.jsxs("div",{ref:w,className:`${Pe.dragAndDropContainer} ${b?Pe.highlighted:""}`,children:[l?o.jsx("div",{children:o.jsxs("span",{children:[o.jsx("b",{children:"Valgt fil:"})," ",l]})}):o.jsx("div",{children:"Slipp fil her"}),o.jsx("input",{...M,ref:C,type:"file",onChange:n}),d&&o.jsxs(o.Fragment,{children:[o.jsx("div",{children:l?"":"eller klikk på knappen for å velge fil"}),o.jsx(Je,{size:"small",inputType:"button",color:c,onClick:$,content:k,hasErrors:m,"data-transaction-name":v})]})]}),s&&o.jsx("span",{children:L(l,u)}),o.jsx(_e,{id:T(),content:h})]})},Ft="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20role='presentation'%3e%3cpath%20d='M10%200C4.4775%200%200%204.4775%200%2010C0%2015.5225%204.4775%2020%2010%2020C15.5225%2020%2020%2015.5225%2020%2010C20%204.4775%2015.5225%200%2010%200ZM8.30583%2013.3417C8.77583%2011.8508%209.66583%2010.065%209.82333%209.61333C10.0508%208.9575%209.6475%208.66667%208.37333%209.7875L8.09%209.25417C9.54333%207.67333%2012.5358%207.31583%2011.5175%209.765C10.8817%2011.2942%2010.4267%2012.3267%2010.1667%2013.1233C9.7875%2014.2842%2010.745%2013.8133%2011.6825%2012.9475C11.81%2013.1558%2011.8517%2013.2233%2011.9792%2013.4633C9.8975%2015.445%207.58667%2015.62%208.30583%2013.3417ZM12.2575%206.53417C11.8142%206.91167%2011.1575%206.90333%2010.79%206.51583C10.4225%206.12833%2010.4842%205.50917%2010.9267%205.13167C11.37%204.75417%2012.0267%204.76333%2012.3942%205.15C12.76%205.53833%2012.7%206.1575%2012.2575%206.53417Z'%20style='fill:%20rgb(0,%2048,%2069);'%3e%3c/path%3e%3c/svg%3e",ge={errorBoxContainer:"_errorBoxContainer_88ulw_7",messageIn:"_messageIn_88ulw_1",warning:"_warning_88ulw_14",error:"_error_88ulw_7",fullScreen:"_fullScreen_88ulw_22",errorBox:"_errorBox_88ulw_7",infoSign:"_infoSign_88ulw_38"},Pr=({type:e="warning",fullScreen:t=!1,children:n=""})=>o.jsx("div",{className:D([ge.errorBoxContainer,ge[e],t&&ge.fullScreen]),children:o.jsxs("div",{className:D([ge.errorBox,t&&ge.fullScreen]),children:[o.jsx("img",{src:Ft,alt:"",className:ge.infoSign}),n]})}),Ar={footer:"_footer_19fad_1"},Rr=({children:e})=>o.jsx("footer",{className:Ar.footer,children:o.jsx(Bt,{children:e})}),Ot={infoBox:"_infoBox_1mh67_7",infoSign:"_infoSign_1mh67_15"},Fr=({children:e=""})=>o.jsxs("div",{className:Ot.infoBox,children:[o.jsx("img",{src:Ft,alt:"",className:Ot.infoSign}),e]}),U={inputField:"_inputField_9tnyr_1",noMargin:"_noMargin_9tnyr_4",requiredSymbol:"_requiredSymbol_9tnyr_10",file:"_file_9tnyr_17",input:"_input_9tnyr_1",hasErrors:"_hasErrors_9tnyr_50",fileInputContainer:"_fileInputContainer_9tnyr_62"},Or=e=>{const t=typeof e=="string"?new Date(e):e;if(Number.isNaN(t.getTime()))return String(e??"");const n=String(t.getDate()).padStart(2,"0"),a=String(t.getMonth()+1).padStart(2,"0"),r=t.getFullYear();return`${n}.${a}.${r}`},Vt=e=>{if(e==null||e==="")return;const t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return;const n=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return`${n}-${a}-${r}`},Vr=e=>!e||["text","search","url","email","tel","password","number"].includes(e),qr=({id:e,onChange:t=()=>{},onBlur:n,name:a="",type:r="text",disabled:s=!1,required:c=!1,readOnly:d,width:i,value:l,defaultValue:u,elementKey:m,label:h="",contentOnly:y=!1,buttonColor:f="primary",buttonContent:v,selectedFileName:b,placeholder:p="",defaultContent:w="",min:C,max:I,role:L,"aria-describedby":$,"aria-autocomplete":T,hasErrors:M=!1,errorMessage:k="",noMargin:P=!1})=>{const X=x.useRef(null),J=()=>`${e}-errorMessage`,z=i?{maxWidth:i}:{},R=(()=>{if(r==="file")return{};if(r==="date"){const B=l!==void 0?Vt(l):void 0,W=l===void 0&&u!==void 0?Vt(u):void 0;return l!==void 0?{value:B??""}:u!==void 0?{defaultValue:W}:{}}const N=B=>B instanceof Date?String(B.getTime()):B;return l!==void 0?{value:N(l)}:u!==void 0?{defaultValue:N(u)}:{}})(),E={name:a,readOnly:d,disabled:s,required:c,type:r,role:L,id:e,min:C,max:I,onChange:t,onBlur:n,placeholder:r==="file"?void 0:p,className:M?U.hasErrors:void 0,"aria-describedby":M&&k?J():$,"aria-invalid":M||void 0,"aria-autocomplete":Vr(r)?T:void 0,style:z,...R};if(y){const N=l??u??"",B=r==="date"?N?Or(N):w:String(N??"")||w;return o.jsxs("div",{className:D([U.inputField,U[r],P&&U.noMargin]),children:[o.jsxs(ce,{htmlFor:e,children:[h,c&&o.jsx("img",{src:re,alt:"",className:U.requiredSymbol})]}),o.jsx("span",{children:B}),M&&k?o.jsx(_e,{id:J(),content:k}):null]})}return o.jsxs("div",{className:D([U.inputField,U[r],P&&U.noMargin]),children:[o.jsxs(ce,{htmlFor:e,children:[h,c&&o.jsx("img",{src:re,alt:"",className:U.requiredSymbol}),r==="file"&&o.jsxs("div",{className:U.fileInputContainer,children:[o.jsx("span",{className:U.input,children:b}),v&&o.jsx(Je,{color:f,inputType:"button",onClick:()=>{var N;return(N=X.current)==null?void 0:N.click()},content:v})]})]}),o.jsx("input",{...E,ref:X},m||e),M&&k?o.jsx(_e,{id:J(),content:k}):null]})},Hr={lead:"_lead_176gy_1"},Xr=({id:e,htmlTag:t="p",children:n})=>x.createElement(t,{className:Hr.lead,id:e||void 0},n),qt={list:"_list_16gsl_1",compact:"_compact_16gsl_10"},Wr=({listStyle:e,compact:t=!1,ordered:n=!1,children:a})=>{const r=i=>de(i).map(u=>x.isValidElement(u)?x.cloneElement(u,{compact:t,key:`listItem-${u.key}`}):u),s=n?"ol":"ul",c=n?"decimal":"disc";return x.createElement(s,{className:`${qt.list} ${t?qt.compact:""}`,style:{["--listStyle"]:e||c}},r(x.Children.toArray(a)))},Ht={listItem:"_listItem_33xs0_1",compact:"_compact_33xs0_5"},Ur=({compact:e=!1,children:t})=>{const n=D([Ht.listItem,e&&Ht.compact]);return o.jsx("li",{className:n,children:t})},Qe={loadingAnimation:"_loadingAnimation_hzd5u_1",fixed:"_fixed_hzd5u_17"},Yr=({fixed:e=!1,message:t=""})=>{const n=e?`${Qe.loadingAnimation} ${Qe.fixed}`:Qe.loadingAnimation;return o.jsx("div",{className:n,children:t})},Jr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%20id='Layer_1'%20x='0px'%20y='0px'%20viewBox='0%200%20340.2%20412.5'%20style='enable-background:new%200%200%20340.2%20412.5;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23003045;}%20.st1{fill:%2389BAD6;}%20.st2{fill:%23FFFFFF;}%20%3c/style%3e%3cg%3e%3crect%20x='0'%20y='253.2'%20class='st0'%20width='340.2'%20height='105.8'/%3e%3crect%20x='0'%20class='st1'%20width='340.2'%20height='249.4'/%3e%3cg%3e%3cpolygon%20class='st2'%20points='138.5,189.9%20157,202%20157,118.8%20201.7,147.8%20201.7,106.6%20138.5,65.5%20'/%3e%3cpolygon%20class='st2'%20points='63.3,197.7%2063.3,153.5%20106.3,125.5%20106.3,30.2%2030.2,79.7%2030.2,219.2%20'/%3e%3cpolygon%20class='st2'%20points='208.9,101.9%20208.9,181.7%20238,200.5%20238,40.1%20175.9,80.4%20'/%3e%3cpolygon%20class='st2'%20points='113.4,30.2%20113.4,165.2%20131.4,153.5%20131.4,60.9%20131.4,41.9%20'/%3e%3cpolygon%20class='st2'%20points='259.5,110.2%20245.1,119.6%20245.1,195.9%20259.5,186.5%20309.9,219.2%20309.9,142.6%20'/%3e%3c/g%3e%3cpolygon%20class='st0'%20points='0,362.8%2075.6,412%2075.6,362.8%20'/%3e%3cg%3e%3cg%3e%3cpath%20class='st2'%20d='M30.2,277.5h6.2c7.3,0,11.6,2.9,11.6,11s-5.3,11-11.6,11h-6.2V277.5z%20M36.5,295.7c5.6,0,7.3-2.2,7.3-7.2%20c0-5-1.7-7.5-7.3-7.5h-2v14.6H36.5z'/%3e%3cpath%20class='st2'%20d='M51.9,277.5h4.3v21.9h-4.3V277.5z'/%3e%3cpath%20class='st2'%20d='M65.5,291.2h-0.2v8.2H61v-21.9h6.2c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L65.5,291.2z%20M67.2,288.2c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.6-3.5-4.3-3.5h-1.9v7.4H67.2z'/%3e%3cpath%20class='st2'%20d='M80,277.5h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6H94v3.6H80V277.5z'/%3e%3cpath%20class='st2'%20d='M97.8,277.5h4.3v9.8l8.7-9.8h4.4l-7.9,8.7l8.4,13.2h-4.8l-6.2-10.2l-2.6,2.8v7.4h-4.3V277.5z'/%3e%3cpath%20class='st2'%20d='M122.8,281.1h-6.3v-3.6h16.8v3.6H127v18.3h-4.3V281.1z'/%3e%3cpath%20class='st2'%20d='M134.7,288.4c0-7.6,5.4-11.5,10.8-11.5c6.4,0,10.8,3.9,10.8,11.5c0,7.6-5.4,11.5-10.8,11.5%20C139.1,299.9,134.7,296,134.7,288.4z%20M151.9,288.6c0-5.2-2.5-8-6.5-8c-3.9,0-6.5,2.8-6.5,7.7c0,5.2,2.5,8.1,6.5,8.1%20C149.4,296.3,151.9,293.5,151.9,288.6z'/%3e%3cpath%20class='st2'%20d='M164.4,291.2h-0.2v8.2h-4.3v-21.9h6.2c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L164.4,291.2z%20M166.2,288.2c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.5-3.5-4.3-3.5h-1.9v7.4H166.2z'/%3e%3cpath%20class='st2'%20d='M184.5,279.7l-0.8-2.2h4.4l8.6,21.9h-4.5l-1.7-4.5h-8.1l-1.7,4.5h-4.1L184.5,279.7z%20M183.6,291.7h5.8l-2.3-6%20l-0.6-1.9l-0.6,1.9L183.6,291.7z'/%3e%3cpath%20class='st2'%20d='M201.7,281.1h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V281.1z'/%3e%3cpath%20class='st2'%20d='M215.3,277.5h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6h9.7v3.6h-14V277.5z'/%3e%3cpath%20class='st2'%20d='M237.7,281.1h-6.3v-3.6h16.8v3.6H242v18.3h-4.3V281.1z'/%3e%3c/g%3e%3cg%3e%3cpath%20class='st2'%20d='M30.2,312.9H44v3.6h-9.5v5.5h6.2v3.3h-6.2v9.6h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M45.6,323.9c0-7.6,5.4-11.5,10.8-11.5c6.4,0,10.8,3.9,10.8,11.5c0,7.6-5.4,11.5-10.8,11.5%20C50,335.3,45.6,331.4,45.6,323.9z%20M62.8,324c0-5.2-2.5-8-6.5-8c-3.9,0-6.5,2.8-6.5,7.7c0,5.2,2.5,8.1,6.5,8.1%20C60.3,331.7,62.8,328.9,62.8,324z'/%3e%3cpath%20class='st2'%20d='M75.3,326.7h-0.2v8.2h-4.3v-21.9H77c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L75.3,326.7z%20M77,323.7c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.5-3.5-4.3-3.5h-1.9v7.4H77z'/%3e%3cpath%20class='st2'%20d='M97.6,312.9h6.5c6,0,8.5,2,8.5,5.5c0,3-1.7,4.5-4.1,5.1v0.1c2.6,0.5,4.5,1.7,4.5,5.1c0,3.5-2.5,6.2-8.6,6.2%20h-6.7V312.9z%20M104.3,321.9c3.2,0,4.1-1.1,4.1-2.9c0-1.8-1.2-2.6-4.1-2.6h-2.4v5.5H104.3z%20M104.4,331.3c3.2,0,4.3-1.1,4.3-3%20c0-1.9-1.1-3-4.3-3h-2.6v6H104.4z'/%3e%3cpath%20class='st2'%20d='M121.2,325.8l-7.2-12.9h4.7l4.8,9.2l4.9-9.2h4.2l-7.2,12.9v9h-4.3V325.8z'/%3e%3cpath%20class='st2'%20d='M133,323.9c0-7.6,4.8-11.5,10.7-11.5c3.6,0,5.7,1.1,6.9,2.1v4.8c-1.2-1.9-3.2-3.3-6.4-3.3%20c-4.4,0-6.9,2.7-6.9,7.7c0,5,2.4,8.3,6.3,8.3c1,0,2-0.1,2.7-0.4v-6.8h4.3v8.8c-1.5,1-3.9,1.8-7.2,1.8%20C137.3,335.3,133,331.5,133,323.9z'/%3e%3cpath%20class='st2'%20d='M153.8,323.9c0-7.6,4.8-11.5,10.7-11.5c3.6,0,5.7,1.1,6.9,2.1v4.8c-1.2-1.9-3.2-3.3-6.4-3.3%20c-4.4,0-6.9,2.7-6.9,7.7c0,5,2.4,8.3,6.3,8.3c1,0,2-0.1,2.7-0.4v-6.8h4.3v8.8c-1.5,1-3.9,1.8-7.2,1.8%20C158,335.3,153.8,331.5,153.8,323.9z'/%3e%3cpath%20class='st2'%20d='M175.7,312.9h4.3v9.8l8.7-9.8h4.4l-7.9,8.7l8.4,13.2h-4.8l-6.2-10.2l-2.6,2.8v7.4h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M193.8,312.9h4.4l5.2,15.4h0.1l5.3-15.4h4.1l-7.9,21.9h-3.5L193.8,312.9z'/%3e%3cpath%20class='st2'%20d='M219.3,315.1l-0.8-2.2h4.4l8.6,21.9h-4.5l-1.7-4.5h-8.1l-1.7,4.5h-4.1L219.3,315.1z%20M218.4,327.1h5.8l-2.3-6%20l-0.6-1.9l-0.6,1.9L218.4,327.1z'/%3e%3cpath%20class='st2'%20d='M234.1,312.9h4.3v18.3h8.2v3.7h-12.4V312.9z'/%3e%3cpath%20class='st2'%20d='M249.7,312.9h4.3v21.9h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M263.4,316.5h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V316.5z'/%3e%3cpath%20class='st2'%20d='M277,312.9h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6h9.7v3.6h-14V312.9z'/%3e%3cpath%20class='st2'%20d='M299.4,316.5h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V316.5z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Gr="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='14%20337%20406%20110'%20style='enable-background:new%2014%20337%20406%20110;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{display:none;}%20.st1{fill:%23003045;}%20.st2{fill:%2389BAD6;}%20.st3{fill:%23FFFFFF;}%20.st4{display:inline;fill:%23FFFFFF;}%20.st5{display:inline;fill:%23D7D4D1;}%20%3c/style%3e%3cg%20id='skisse__x28_forstørret_x29_'%20class='st0'%3e%3c/g%3e%3cg%20id='logo'%3e%3crect%20id='XMLID_5_'%20x='14'%20y='337'%20class='st1'%20width='640'%20height='110'/%3e%3cg%20id='XMLID_82_'%3e%3crect%20id='XMLID_80_'%20x='14'%20y='337'%20class='st2'%20width='150'%20height='110'/%3e%3cg%20id='XMLID_74_'%3e%3cpolygon%20id='XMLID_79_'%20class='st3'%20points='75.1,420.7%2083.2,426.1%2083.2,389.4%20103,402.2%20103,384%2075.1,365.9%20'/%3e%3cpolygon%20id='XMLID_78_'%20class='st3'%20points='41.9,424.2%2041.9,404.7%2060.9,392.4%2060.9,350.3%2027.3,372.1%2027.3,433.7%20'/%3e%3cpolygon%20id='XMLID_77_'%20class='st3'%20points='106.1,381.9%20106.1,417.1%20118.9,425.4%20118.9,354.7%2091.6,372.5%20'/%3e%3cpolygon%20id='XMLID_76_'%20class='st3'%20points='64,350.3%2064,409.8%2071.9,404.7%2071.9,363.9%2071.9,355.5%20'/%3e%3cpolygon%20id='XMLID_75_'%20class='st3'%20points='128.4,385.6%20122.1,389.7%20122.1,423.4%20128.4,419.3%20150.7,433.7%20150.7,399.9%20'/%3e%3c/g%3e%3c/g%3e%3cg%20id='XMLID_6_'%3e%3crect%20id='XMLID_81_'%20x='164.5'%20y='367.5'%20class='st1'%20width='255.5'%20height='79.5'/%3e%3cg%20id='XMLID_7_'%3e%3cg%20id='XMLID_44_'%3e%3cpath%20id='XMLID_71_'%20class='st3'%20d='M187.3,385.6h4.7c5.5,0,8.7,2.2,8.7,8.2s-4,8.2-8.7,8.2h-4.7V385.6z%20M191.9,399.4%20c4.2,0,5.5-1.6,5.5-5.4c0-3.7-1.3-5.6-5.5-5.6h-1.5v11H191.9z'/%3e%3cpath%20id='XMLID_69_'%20class='st3'%20d='M203.5,385.6h3.2v16.5h-3.2V385.6z'/%3e%3cpath%20id='XMLID_66_'%20class='st3'%20d='M213.7,396h-0.2v6.1h-3.2v-16.5h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L213.7,396z%20M215,393.7c2,0,3.2-1,3.2-2.9c0-1.9-1.2-2.7-3.2-2.7h-1.5v5.5h1.5V393.7z'/%3e%3cpath%20id='XMLID_64_'%20class='st3'%20d='M224.6,385.6h10.5v2.7h-7.3v4h4.9v2.5h-4.9v4.5h7.3v2.7h-10.5V385.6z'/%3e%3cpath%20id='XMLID_62_'%20class='st3'%20d='M238,385.6h3.2v7.4l6.5-7.3h3.3l-5.9,6.6l6.3,9.9h-3.6l-4.7-7.7l-1.9,2.1v5.5H238V385.6z'/%3e%3cpath%20id='XMLID_60_'%20class='st3'%20d='M256.8,388.4H252v-2.7h12.6v2.7H260v13.7h-3.2V388.4z'/%3e%3cpath%20id='XMLID_57_'%20class='st3'%20d='M265.7,393.9c0-5.7,4-8.6,8.1-8.6c4.8,0,8.1,3,8.1,8.6c0,5.7-4,8.6-8.1,8.6%20C269,402.5,265.7,399.6,265.7,393.9z%20M278.7,394c0-3.9-1.9-6-4.8-6s-4.8,2.1-4.8,5.8c0,3.9,1.9,6.1,4.8,6.1%20C276.7,399.8,278.7,397.7,278.7,394z'/%3e%3cpath%20id='XMLID_54_'%20class='st3'%20d='M288,396h-0.2v6.1h-3.2v-16.5h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L288,396z%20M289.3,393.7c2,0,3.2-1,3.2-2.9c0-1.9-1.2-2.7-3.2-2.7h-1.5v5.5h1.5V393.7z'/%3e%3cpath%20id='XMLID_51_'%20class='st3'%20d='M303.1,387.3l-0.6-1.7h3.3l6.5,16.5H309l-1.3-3.4h-6.1l-1.3,3.4h-3.1L303.1,387.3z%20M302.5,396.4h4.4l-1.7-4.5l-0.5-1.4l-0.5,1.4L302.5,396.4z'/%3e%3cpath%20id='XMLID_49_'%20class='st3'%20d='M316,388.4h-4.7v-2.7h12.6v2.7h-4.7v13.7H316V388.4z'/%3e%3cpath%20id='XMLID_47_'%20class='st3'%20d='M326.2,385.6h10.5v2.7h-7.3v4h4.9v2.5h-4.9v4.5h7.3v2.7h-10.5V385.6z'/%3e%3cpath%20id='XMLID_45_'%20class='st3'%20d='M343.1,388.4h-4.7v-2.7H351v2.7h-4.7v13.7h-3.2L343.1,388.4L343.1,388.4z'/%3e%3c/g%3e%3cg%20id='XMLID_8_'%3e%3cpath%20id='XMLID_42_'%20class='st3'%20d='M187.3,412.3h10.3v2.7h-7.1v4.1h4.7v2.4h-4.7v7.2h-3.2V412.3z'/%3e%3cpath%20id='XMLID_39_'%20class='st3'%20d='M198.8,420.5c0-5.7,4-8.6,8.1-8.6c4.8,0,8.1,3,8.1,8.6c0,5.7-4,8.6-8.1,8.6%20C202.1,429.1,198.8,426.2,198.8,420.5z%20M211.7,420.6c0-3.9-1.9-6-4.8-6c-2.9,0-4.8,2.1-4.8,5.8c0,3.9,1.9,6.1,4.8,6.1%20C209.8,426.4,211.7,424.3,211.7,420.6z'/%3e%3cpath%20id='XMLID_36_'%20class='st3'%20d='M221.1,422.6h-0.2v6.1h-3.2v-16.4h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L221.1,422.6z%20M222.4,420.3c2,0,3.2-1,3.2-2.9s-1.2-2.7-3.2-2.7h-1.5v5.5L222.4,420.3L222.4,420.3z'/%3e%3cpath%20id='XMLID_32_'%20class='st3'%20d='M237.8,412.3h4.9c4.5,0,6.4,1.5,6.4,4.1c0,2.3-1.3,3.4-3.1,3.8l0,0c2,0.3,3.3,1.3,3.3,3.9%20s-1.8,4.7-6.5,4.7h-5L237.8,412.3L237.8,412.3z%20M242.8,419c2.4,0,3.1-0.8,3.1-2.2c0-1.4-0.9-2-3.1-2H241v4.2H242.8z%20M243,426.1%20c2.4,0,3.2-0.8,3.2-2.3c0-1.4-0.8-2.3-3.2-2.3h-2v4.5h2V426.1z'/%3e%3cpath%20id='XMLID_30_'%20class='st3'%20d='M255.5,422l-5.4-9.7h3.5l3.6,6.9l3.7-6.9h3.2l-5.4,9.7v6.8h-3.2L255.5,422L255.5,422z'/%3e%3cpath%20id='XMLID_28_'%20class='st3'%20d='M264.5,420.5c0-5.7,3.6-8.6,8-8.6c2.7,0,4.3,0.8,5.2,1.6v3.6c-0.9-1.4-2.4-2.4-4.8-2.4%20c-3.3,0-5.2,2-5.2,5.7s1.8,6.2,4.7,6.2c0.8,0,1.5-0.1,2.1-0.3v-5.1h3.2v6.6c-1.1,0.7-2.9,1.4-5.4,1.4%20C267.7,429.1,264.5,426.3,264.5,420.5z'/%3e%3cpath%20id='XMLID_26_'%20class='st3'%20d='M280,420.5c0-5.7,3.6-8.6,8-8.6c2.7,0,4.3,0.8,5.2,1.6v3.6c-0.9-1.4-2.4-2.4-4.8-2.4%20c-3.3,0-5.2,2-5.2,5.7s1.8,6.2,4.7,6.2c0.8,0,1.5-0.1,2.1-0.3v-5.1h3.2v6.6c-1.1,0.7-2.9,1.4-5.4,1.4%20C283.2,429.1,280,426.3,280,420.5z'/%3e%3cpath%20id='XMLID_24_'%20class='st3'%20d='M296.5,412.3h3.2v7.3l6.5-7.3h3.3l-5.9,6.6l6.3,9.9h-3.6l-4.7-7.7l-1.9,2.1v5.5h-3.2%20L296.5,412.3L296.5,412.3z'/%3e%3cpath%20id='XMLID_22_'%20class='st3'%20d='M310.1,412.3h3.3l3.9,11.5h0.1l4-11.5h3.1l-5.9,16.5H316L310.1,412.3z'/%3e%3cpath%20id='XMLID_19_'%20class='st3'%20d='M329.2,413.9l-0.6-1.7h3.3l6.5,16.5h-3.3l-1.3-3.4h-6.1l-1.3,3.4h-3.1L329.2,413.9z%20M328.6,423h4.4l-1.7-4.5l-0.5-1.4l-0.5,1.4L328.6,423z'/%3e%3cpath%20id='XMLID_17_'%20class='st3'%20d='M340.4,412.3h3.2V426h6.1v2.8h-9.3L340.4,412.3L340.4,412.3z'/%3e%3cpath%20id='XMLID_15_'%20class='st3'%20d='M352.1,412.3h3.2v16.5h-3.2V412.3z'/%3e%3cpath%20id='XMLID_13_'%20class='st3'%20d='M362.3,415h-4.7v-2.7h12.6v2.7h-4.7v13.7h-3.2L362.3,415L362.3,415z'/%3e%3cpath%20id='XMLID_11_'%20class='st3'%20d='M372.6,412.3h10.5v2.7h-7.3v3.9h4.9v2.5h-4.9v4.6h7.3v2.7h-10.5V412.3z'/%3e%3cpath%20id='XMLID_9_'%20class='st3'%20d='M389.4,415h-4.7v-2.7h12.6v2.7h-4.7v13.7h-3.2L389.4,415L389.4,415z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='hamburgermeny'%20class='st0'%3e%3crect%20id='XMLID_94_'%20x='578'%20y='386'%20class='st4'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_95_'%20x='578'%20y='423'%20class='st4'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_96_'%20x='578'%20y='405'%20class='st4'%20width='60'%20height='6'/%3e%3c/g%3e%3cg%20id='hamburgermeny__hover'%20class='st0'%3e%3crect%20id='XMLID_97_'%20x='578'%20y='386'%20class='st5'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_93_'%20x='578'%20y='423'%20class='st5'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_91_'%20x='578'%20y='405'%20class='st5'%20width='60'%20height='6'/%3e%3c/g%3e%3c/svg%3e",Kr=e=>(e==null?void 0:e.logo)??"",Zr=e=>(e==null?void 0:e.logoPadding)??"",Qr=e=>(e==null?void 0:e.appName)??"",F={navigationBarContainer:"_navigationBarContainer_n1cc0_1",mainContentLink:"_mainContentLink_n1cc0_1",compact:"_compact_n1cc0_30",navigationBar:"_navigationBar_n1cc0_1",preventStacking:"_preventStacking_n1cc0_63",logoContainer:"_logoContainer_n1cc0_82",childElements:"_childElements_n1cc0_91",menuToggle:"_menuToggle_n1cc0_97",hamburgerIcon:"_hamburgerIcon_n1cc0_125",active:"_active_n1cc0_161",dropdownContainer:"_dropdownContainer_n1cc0_170",dropdown:"_dropdown_n1cc0_170",primaryList:"_primaryList_n1cc0_195",secondaryList:"_secondaryList_n1cc0_196",line:"_line_n1cc0_392"},et=({listItem:e})=>typeof e=="string"?o.jsx("li",{children:o.jsx("span",{children:e})}):typeof e=="object"?o.jsx("li",{children:o.jsx("a",{href:e.href,children:e.name})}):null,ea=({primaryListItems:e=[],secondaryListItems:t=[],logoLink:n="",logoLinkTitle:a,openLogoLinkInNewTab:r,theme:s,compact:c,mainContentId:d,preventChildElementStacking:i=!1,children:l})=>{const[u,m]=x.useState(!1),h=()=>m(!u),y=L=>({padding:Zr(L)}),f=(L=e,$=0)=>L.length?o.jsx("ul",{className:F.primaryList,children:L.map((T,M)=>{const k=`${$}-${M}`;return T.listItems?o.jsxs("li",{children:[o.jsx("span",{children:T.name}),f(T.listItems,$+1)]},k):o.jsx(et,{listItem:T},k)})}):null,v=()=>t.length?o.jsx("ul",{className:F.secondaryList,children:t.map(L=>o.jsx(et,{listItem:L},L.name))}):null,b=(L,$)=>{const T=Kr(s),M=Qr(s),k=L&&$?"":T&&M?`${M} logo`:"DIBK logo",P=T?o.jsx("img",{alt:k,src:T,style:y(s)}):o.jsx("img",{alt:k,src:c?Gr:Jr});return L!=null&&L.length?o.jsx("a",{href:L,title:$,target:r?"_blank":void 0,rel:r?"noopener noreferrer":void 0,children:P}):P},p=e.length>0||t.length>0,w=x.useId(),C=x.useId(),I=x.useId();return o.jsxs("div",{className:D([c&&F.compact,F.navigationBarContainer]),children:[d&&o.jsx("a",{id:w,href:`#${d}`,className:F.mainContentLink,children:o.jsx("span",{id:C,children:"Hopp til hovedinnhold"})}),o.jsxs("div",{className:D([F.navigationBar,i&&F.preventStacking]),children:[o.jsx("div",{className:F.logoContainer,children:b(n,a)}),l&&o.jsx("div",{className:F.childElements,children:l}),p&&o.jsxs("button",{type:"button",className:`${F.menuToggle} ${u?F.active:""}`,onClick:h,"aria-expanded":u?"true":"false","aria-controls":"main-menu-dropdown",children:[!c&&"Meny",o.jsxs("span",{className:F.hamburgerIcon,children:[o.jsx("span",{className:F.line}),o.jsx("span",{className:F.line}),o.jsx("span",{className:F.line})]})]})]}),p&&o.jsx("div",{className:D([F.dropdownContainer,u&&F.active]),children:o.jsxs("div",{id:I,className:F.dropdown,children:[f(),v()]})})]})},tt={paper:"_paper_1lgl3_1",noMargin:"_noMargin_1lgl3_6",noPadding:"_noPadding_1lgl3_9"},ta=({noMargin:e=!1,noPadding:t=!1,children:n})=>{const a=[tt.paper,e&&tt.noMargin,t&&tt.noPadding].filter(Boolean).join(" ");return o.jsx("div",{className:a,children:n})},Xt={progressBar:"_progressBar_t5aid_1",hasErrors:"_hasErrors_t5aid_23"},na=({progress:e=0,hasErrors:t=!1})=>o.jsx("div",{className:`${Xt.progressBar} ${t?Xt.hasErrors:""}`,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,style:{"--value":e}}),Ae={radioButtonIcon:"_radioButtonIcon_32fe0_1",hasErrors:"_hasErrors_32fe0_22",checked:"_checked_32fe0_32",disabled:"_disabled_32fe0_48"},Wt=({size:e="10px",checked:t=!1,disabled:n=!1,hasErrors:a=!1})=>{const r={height:e,width:e},s=[Ae.radioButtonIcon,t&&Ae.checked,n&&Ae.disabled,a&&Ae.hasErrors].filter(Boolean).join(" ");return o.jsx("span",{className:s,style:r})},ve={radioButtonInput:"_radioButtonInput_1i7cy_1",requiredSymbol:"_requiredSymbol_1i7cy_6",disabled:"_disabled_1i7cy_13",labelText:"_labelText_1i7cy_19",hasErrors:"_hasErrors_1i7cy_27"},Ut=({checked:e=!1,disabled:t=!1,required:n=!1,requiredGroup:a=!1,id:r,name:s="",onChange:c,contentOnly:d=!1,hasErrors:i=!1,inputValue:l,tabIndex:u,children:m,"aria-controls":h,"aria-describedby":y})=>{const f=[ve.radioButtonInput,e&&ve.checked,t&&ve.disabled,i&&ve.hasErrors].filter(Boolean).join(" "),v={checked:e,disabled:t,hasErrors:!d&&i},b={id:r,name:s,type:"radio",value:l,checked:e,disabled:t,required:n||a,onChange:c,tabIndex:u??void 0,"aria-controls":h,"aria-invalid":i?"true":void 0,"aria-describedby":y};return o.jsxs("label",{htmlFor:r,className:f,children:[!d&&o.jsxs(o.Fragment,{children:[o.jsx(Wt,{...v}),o.jsx("input",{...b})]}),o.jsxs("span",{className:ve.labelText,children:[m,n&&o.jsx("img",{src:re,alt:"",className:ve.requiredSymbol})]})]})},Yt={radioButtonList:"_radioButtonList_1cyu3_1",requiredSymbol:"_requiredSymbol_1cyu3_16"},ra=({legend:e,legendSize:t,required:n=!1,compact:a=!1,children:r})=>{const s=c=>de(c).map(i=>{var l;return x.isValidElement(i)&&((l=i.type)==null?void 0:l.displayName)==="RadioButtonListItem"?x.cloneElement(i,{requiredGroup:n,compact:a,key:`radioButtonListItem-${i.key}`}):i});return o.jsxs("fieldset",{className:Yt.radioButtonList,children:[!!(e!=null&&e.length)&&o.jsxs("legend",{children:[t?o.jsx(Ke,{size:t,children:e}):e,n&&o.jsx("img",{src:re,alt:"",className:Yt.requiredSymbol})]}),s(x.Children.toArray(r))]})},ye={radioButtonListItem:"_radioButtonListItem_1ggab_1",contentOnly:"_contentOnly_1ggab_26",compact:"_compact_1ggab_26",disabled:"_disabled_1ggab_41",checked:"_checked_1ggab_44"},aa=({inputValue:e,checked:t=!1,disabled:n=!1,required:a=!1,requiredGroup:r=!1,name:s="",id:c,onChange:d,contentOnly:i=!1,compact:l=!1,hasErrors:u=!1,"aria-controls":m,"aria-describedby":h,children:y})=>{const f=D([ye.radioButtonListItem,t&&ye.checked,n&&ye.disabled,l&&ye.compact,i&&ye.contentOnly,u&&ye.hasErrors]),v={onChange:d,inputValue:e,checked:t,disabled:n,required:a,requiredGroup:r,contentOnly:i,hasErrors:u,"aria-controls":m,"aria-describedby":h,id:c,name:s};return o.jsx("div",{className:f,children:o.jsx(Ut,{...v,children:y})})},oe={select:"_select_11vnt_1",requiredSymbol:"_requiredSymbol_11vnt_1",selectContainer:"_selectContainer_11vnt_8",selectListArrow:"_selectListArrow_11vnt_11",multipleSelectDropdown:"_multipleSelectDropdown_11vnt_40",multipleSelectElement:"_multipleSelectElement_11vnt_50",hasErrors:"_hasErrors_11vnt_98"},sa=e=>{const{id:t,name:n="",required:a=!1,disabled:r=!1,options:s=[],width:c,label:d="",contentOnly:i=!1,keyAsContent:l=!1,placeholder:u="",placeholderValue:m="",defaultContent:h="",role:y,"aria-describedby":f,hasErrors:v=!1,errorMessage:b=""}=e,[p,w]=x.useState(!1),C=x.useRef(null),I=x.useCallback(E=>{E&&ut(E)},[]),L=()=>w(!1);x.useEffect(()=>{const E=B=>{B.key==="Escape"&&L()},N=B=>{C.current&&!C.current.contains(B.target)&&L()};return document.addEventListener("mousedown",N),document.addEventListener("keydown",E),()=>{document.removeEventListener("mousedown",N),document.removeEventListener("keydown",E)}},[]);const $=E=>typeof E=="object"?{key:E.key,value:E.value}:{key:E,value:E},T=E=>{const N=s.map($).find(B=>B.value===E||B.key===E);return N?N.key??N.value:E},M=E=>Array.isArray(E)?E:E==null?[]:[E],k=()=>e.value!==void 0?M(e.value):e.defaultValue!==void 0?M(e.defaultValue):[],P=()=>{const E=k();return E.length===0?u||h||"":E.map(T).join(", ")},X=E=>{const N=k(),W=N.includes(E)?N.filter(xe=>xe!==E):[...N,E];e.multiple&&e.onChange(W)},J=()=>{const E=k();return s.map(N=>{const{key:B,value:W}=$(N),xe=E.includes(W),g=`${t}-${String(W)}`;return o.jsx(zt,{id:g,value:W,checked:xe,onChange:()=>X(W),children:B},String(W))})},z=()=>`${t}-errorMessage`;if(i){const E=k(),N=E.length===0?h:l?E.map(T).join(", "):E.join(", ");return o.jsxs("div",{className:oe.select,children:[o.jsx(ce,{htmlFor:t,children:d}),o.jsx("span",{children:N})]})}const R=E=>{const N=s.map($).find(B=>String(B.value)===E);return N?N.value:E};return o.jsxs("div",{className:oe.select,children:[o.jsxs(ce,{htmlFor:t,children:[d,a&&o.jsx("img",{src:re,alt:"",className:oe.requiredSymbol})]}),o.jsxs("div",{className:oe.selectContainer,style:c?{maxWidth:c}:void 0,children:[o.jsx("span",{className:oe.selectListArrow}),e.multiple?o.jsxs("div",{ref:C,children:[o.jsx("button",{type:"button",id:t,"aria-haspopup":"listbox","aria-expanded":p,onClick:()=>w(E=>!E),className:oe.multipleSelectElement,disabled:r,children:P()}),p&&o.jsx("div",{ref:I,className:oe.multipleSelectDropdown,role:"listbox","aria-multiselectable":"true","aria-labelledby":t,children:o.jsx(Tt,{compact:!0,children:J()})})]}):o.jsxs("select",{name:n,required:a,disabled:r,onChange:E=>e.onChange(R(E.target.value)),id:t,role:y,className:D([v&&oe.hasErrors]),"aria-describedby":v&&b?z():f,"aria-invalid":v||void 0,style:c?{maxWidth:c}:void 0,...e.value!==void 0?{value:e.value}:e.defaultValue!==void 0?{defaultValue:e.defaultValue}:{},children:[u&&o.jsx("option",{value:m,disabled:!0,children:u}),s.map(E=>{const{key:N,value:B}=$(E);return o.jsx("option",{value:String(B),children:N},String(B))})]})]}),o.jsx(_e,{id:z(),content:b})]})},Y={table:"_table_19a1d_1",thButton:"_thButton_19a1d_30",sortable:"_sortable_19a1d_41",label:"_label_19a1d_51",sortIndicators:"_sortIndicators_19a1d_55",sortArrow:"_sortArrow_19a1d_62",activeArrow:"_activeArrow_19a1d_65",evenRow:"_evenRow_19a1d_69",oddRow:"_oddRow_19a1d_72"},oa=({columns:e,data:t,caption:n,getRowId:a})=>{const[r,s]=x.useState(null);x.useEffect(()=>{const u=e.find(m=>m.sortable);s(u?{headerKey:u.key,direction:"asc"}:null)},[e]);const c=x.useMemo(()=>{const u=new Map;for(const m of e)u.set(m.key,m);return u},[e]),d=x.useMemo(()=>{if(!r)return t;const u=c.get(r.headerKey);if(!u)return t;const m=u.sortAccessor??u.accessor;if(!m)return t;const h=[...t];return h.sort((y,f)=>{const v=m(y),b=m(f);if(v==null||b==null)return 0;if(typeof v=="number"&&typeof b=="number")return r.direction==="asc"?v-b:b-v;if(v instanceof Date&&b instanceof Date)return r.direction==="asc"?v.getTime()-b.getTime():b.getTime()-v.getTime();const p=String(v),w=String(b);return r.direction==="asc"?p.localeCompare(w,void 0,{numeric:!0}):w.localeCompare(p,void 0,{numeric:!0})}),h},[t,r,c]),i=u=>{s(m=>!m||m.headerKey!==u?{headerKey:u,direction:"asc"}:{headerKey:u,direction:m.direction==="asc"?"desc":"asc"})},l=(u,m)=>{if(m)return(r==null?void 0:r.headerKey)!==u?"none":r.direction==="asc"?"ascending":"descending"};return o.jsxs("table",{className:Y.table,children:[n&&o.jsx("caption",{children:n}),o.jsx("thead",{children:o.jsx("tr",{children:e.map(({key:u,label:m,sortable:h,ariaLabel:y})=>{const f=(r==null?void 0:r.headerKey)===u,v=f&&r.direction==="asc",b=f&&r.direction==="desc";return o.jsx("th",{"aria-sort":l(u,h),children:o.jsxs("button",{type:"button",className:`${Y.thButton} ${h?Y.sortable:""}`,onClick:h?()=>i(u):void 0,disabled:!h,"aria-label":h?`${y??m}: sort ${f&&v?"descending":"ascending"}`:void 0,children:[o.jsx("span",{className:Y.label,children:m}),h&&o.jsxs("span",{className:Y.sortIndicators,"aria-hidden":"true",children:[o.jsx("span",{className:`${Y.sortArrow} ${v?Y.activeArrow:""}`,children:"▲"}),o.jsx("span",{className:`${Y.sortArrow} ${b?Y.activeArrow:""}`,children:"▼"})]})]})},u)})})}),o.jsx("tbody",{children:d.map((u,m)=>o.jsx("tr",{className:m%2===0?Y.evenRow:Y.oddRow,children:e.map(h=>{var y;return o.jsx("td",{children:h.render?h.render(u):String(((y=h.accessor)==null?void 0:y.call(h,u))??"")},h.key)})},a==null?void 0:a(u,m)))})]})},ia=e=>{let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length;for(let r=0;r<e;r++)t+=n.charAt(Math.floor(Math.random()*a));return t},nt={textarea:"_textarea_1596u_1",requiredSymbol:"_requiredSymbol_1596u_4",hasErrors:"_hasErrors_1596u_55"},la=({id:e,onChange:t,onBlur:n,name:a="",required:r=!1,readOnly:s,disabled:c,width:d,resize:i="both",value:l,defaultValue:u,elementKey:m,rows:h,label:y="",contentOnly:f=!1,placeholder:v="",defaultContent:b="","aria-describedby":p,hasErrors:w=!1,errorMessage:C=""})=>{const I=()=>`${e}-errorMessage`,L=!(l!=null&&l.length)&&(u!=null&&u.length)?u:void 0,$=m||`${e}-${ia(6)}`,T={...d&&{maxWidth:d},...i&&{resize:i}},M={name:a,readOnly:s,disabled:c,required:r,id:e,onChange:t,onBlur:n,value:L?void 0:l,defaultValue:L||void 0,placeholder:v,rows:h?parseInt(h,10):void 0,className:w?nt.hasErrors:"","aria-describedby":w&&C?I():p,"aria-invalid":w?"true":void 0,style:T};return o.jsxs("div",{className:nt.textarea,children:[o.jsxs(ce,{htmlFor:e,children:[y,r&&o.jsx("img",{src:re,alt:"",className:nt.requiredSymbol})]}),f?o.jsx("span",{children:l||u||b}):o.jsx("textarea",{...M},$),o.jsx(_e,{id:I(),content:C})]})},ca=({theme:e,children:t})=>{const n=nn(e),a=an(n);return rn("theme-provider",`:root {${a}}`),t},da={toggleNavigationButton:"_toggleNavigationButton_1eb2w_1"},ua=({id:e,htmlTag:t="button",showText:n,hideText:a,buttonProps:r={},isOpen:s=!1})=>x.createElement(t,{...r,className:da.toggleNavigationButton,id:e||void 0},s?a:n),K={wizardTopnavItem:"_wizardTopnavItem_5ar16_1",wizardTopnavItemContent:"_wizardTopnavItemContent_5ar16_4",vertical:"_vertical_5ar16_7",stepNumber:"_stepNumber_5ar16_24",stepName:"_stepName_5ar16_36",active:"_active_5ar16_46",finished:"_finished_5ar16_46",hasErrors:"_hasErrors_5ar16_46",horizontal:"_horizontal_5ar16_64"},ha="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20aria-label='Ferdig'%20style='fill:%20rgb(23,%20121,%2018);'%3e%3cmask%20id='mask0_1089_7430'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%20style='mask-type:%20alpha;'%3e%3crect%20width='20'%20height='20'%3e%3c/rect%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1089_7430)'%3e%3cpath%20d='M5.71427%208.57149L3.80951%2010.4762L8.57141%2015.2382L17.1428%206.66672L15.2381%204.76196L8.57141%2011.4286L5.71427%208.57149Z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",Jt=({step:e,index:t,activeStepId:n,direction:a="vertical"})=>{const r=n===e.id,s=a==="vertical",c=D([K.wizardTopnavItem,r&&K.active,e.finished&&K.finished,e.hasErrors&&K.hasErrors,K[a]]),d=r?"step":void 0,i=()=>o.jsxs(o.Fragment,{children:[o.jsx("span",{className:K.stepNumber,children:t+1}),o.jsx("span",{className:K.stepName,children:e.name}),s&&e.finished&&!r&&o.jsx("img",{src:ha,alt:"",className:K.checkmarkSymbol})]});return e.link&&Object.keys(e.link).length>0?o.jsx("li",{className:c,children:o.jsx(Se,{to:e.link,"aria-current":d,className:K.wizardTopnavItemContent,children:i()})}):o.jsx("li",{className:c,children:o.jsx("span",{"aria-current":d,className:K.wizardTopnavItemContent,children:i()})})},rt={wizardTopnavContainer:"_wizardTopnavContainer_qiy2o_1",wizardTopnav:"_wizardTopnav_qiy2o_1",vertical:"_vertical_qiy2o_6",horizontal:"_horizontal_qiy2o_11"},fa=({steps:e,activeStepId:t,direction:n="vertical","aria-label":a})=>{const r=Object.keys(e),c=`I dette skjemaet er det totalt ${r.length} steg som du skal gå igjennom`,d=a!=null&&a.length?a:c;return o.jsx("nav",{"aria-label":d,className:D([rt.wizardTopnavContainer,rt[n]]),children:o.jsx("ol",{className:rt.wizardTopnav,children:r.map((i,l)=>o.jsx(Jt,{step:e[i],activeStepId:t,direction:n,index:l},i))})})};j.Accordion=cn,j.Button=Je,j.CheckBoxIcon=Ge,j.CheckBoxInput=Nt,j.CheckBoxList=Tt,j.CheckBoxListItem=zt,j.Container=Bt,j.ContentBox=$r,j.DescriptionDetails=Ir,j.DescriptionList=Nr,j.DescriptionTerm=Mr,j.Dialog=zr,j.DragAndDropFileInput=Dr,j.ErrorBox=Pr,j.ErrorMessage=_e,j.Footer=Rr,j.Header=Ke,j.InfoBox=Fr,j.InputField=qr,j.Label=ce,j.Lead=Xr,j.List=Wr,j.ListItem=Ur,j.LoadingAnimation=Yr,j.NavigationBar=ea,j.NavigationBarListItem=et,j.Paper=ta,j.ProgressBar=na,j.RadioButtonIcon=Wt,j.RadioButtonInput=Ut,j.RadioButtonList=ra,j.RadioButtonListItem=aa,j.Select=sa,j.Table=oa,j.Textarea=la,j.ThemeProvider=ca,j.ToggleNavigationButton=ua,j.WizardNavigation=fa,j.WizardNavigationStep=Jt,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
33
+ Please change the parent <Route path="${_}"> to <Route path="${_==="/"?"*":`${_}/*`}">.`)}let f=ce(),h;h=f;let y=h.pathname||"/",m=y;if(l!=="/"){let _=l.replace(/^\//,"").split("/");m="/"+y.replace(/^\//,"").split("/").slice(_.length).join("/")}let v=mt(e,{pathname:m});return Q(u||v!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Q(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),qn(v&&v.map(_=>Object.assign({},_,{params:Object.assign({},d,_.params),pathname:ee([l,r.encodeLocation?r.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?l:ee([l,r.encodeLocation?r.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),o,n,a)}function Rn(){let e=Yn(),t=Nn(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:a},o={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:o},"ErrorBoundary")," or"," ",g.createElement("code",{style:o},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:r},n):null,c)}var Fn=g.createElement(Rn,null),On=class extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?g.createElement(ne.Provider,{value:this.props.routeContext},g.createElement(qe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Vn({routeContext:e,match:t,children:n}){let a=g.useContext(he);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(ne.Provider,{value:e},n)}function qn(e,t=[],n=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let r=e,o=n==null?void 0:n.errors;if(o!=null){let i=r.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id])!==void 0);O(i>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),r=r.slice(0,Math.min(r.length,i+1))}let c=!1,d=-1;if(n)for(let i=0;i<r.length;i++){let l=r[i];if((l.route.HydrateFallback||l.route.hydrateFallbackElement)&&(d=i),l.route.id){let{loaderData:u,errors:f}=n,h=l.route.loader&&!u.hasOwnProperty(l.route.id)&&(!f||f[l.route.id]===void 0);if(l.route.lazy||h){c=!0,d>=0?r=r.slice(0,d+1):r=[r[0]];break}}}return r.reduceRight((i,l,u)=>{let f,h=!1,y=null,m=null;n&&(f=o&&l.route.id?o[l.route.id]:void 0,y=l.route.errorElement||Fn,c&&(d<0&&u===0?(Et("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,m=null):d===u&&(h=!0,m=l.route.hydrateFallbackElement||null)));let v=t.concat(r.slice(0,u+1)),b=()=>{let _;return f?_=y:h?_=m:l.route.Component?_=g.createElement(l.route.Component,null):l.route.element?_=l.route.element:_=i,g.createElement(Vn,{match:l,routeContext:{outlet:i,matches:v,isDataRoute:n!=null},children:_})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?g.createElement(On,{location:n.location,revalidation:n.revalidation,component:y,error:f,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):b()},null)}function He(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Hn(e){let t=g.useContext(he);return O(t,He(e)),t}function Xn(e){let t=g.useContext(Ie);return O(t,He(e)),t}function Wn(e){let t=g.useContext(ne);return O(t,He(e)),t}function Xe(e){let t=Wn(e),n=t.matches[t.matches.length-1];return O(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Un(){return Xe("useRouteId")}function Yn(){var a;let e=g.useContext(qe),t=Xn("useRouteError"),n=Xe("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[n]}function Jn(){let{router:e}=Hn("useNavigate"),t=Xe("useNavigate"),n=g.useRef(!1);return wt(()=>{n.current=!0}),g.useCallback(async(r,o={})=>{Q(n.current,bt),n.current&&(typeof r=="number"?e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))},[e,t])}var Ct={};function Et(e,t,n){!t&&!Ct[e]&&(Ct[e]=!0,Q(!1,n))}g.memo(Gn);function Gn({routes:e,future:t,state:n}){return An(e,void 0,n,t)}var Me="get",Te="application/x-www-form-urlencoded";function Be(e){return e!=null&&typeof e.tagName=="string"}function Kn(e){return Be(e)&&e.tagName.toLowerCase()==="button"}function Zn(e){return Be(e)&&e.tagName.toLowerCase()==="form"}function Qn(e){return Be(e)&&e.tagName.toLowerCase()==="input"}function er(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function tr(e,t){return e.button===0&&(!t||t==="_self")&&!er(e)}var De=null;function nr(){if(De===null)try{new FormData(document.createElement("form"),0),De=!1}catch{De=!0}return De}var rr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function We(e){return e!=null&&!rr.has(e)?(Q(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Te}"`),null):e}function ar(e,t){let n,a,r,o,c;if(Zn(e)){let d=e.getAttribute("action");a=d?oe(d,t):null,n=e.getAttribute("method")||Me,r=We(e.getAttribute("enctype"))||Te,o=new FormData(e)}else if(Kn(e)||Qn(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let i=e.getAttribute("formaction")||d.getAttribute("action");if(a=i?oe(i,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||Me,r=We(e.getAttribute("formenctype"))||We(d.getAttribute("enctype"))||Te,o=new FormData(d,e),!nr()){let{name:l,type:u,value:f}=e;if(u==="image"){let h=l?`${l}.`:"";o.append(`${h}x`,"0"),o.append(`${h}y`,"0")}else l&&o.append(l,f)}}else{if(Be(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Me,a=null,r=Te,c=e}return o&&r==="text/plain"&&(c=o,o=void 0),{action:a,method:n.toLowerCase(),encType:r,formData:o,body:c}}function Ue(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function or(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function sr(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function ir(e,t,n){let a=await Promise.all(e.map(async r=>{let o=t.routes[r.route.id];if(o){let c=await or(o,n);return c.links?c.links():[]}return[]}));return ur(a.flat(1).filter(sr).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function kt(e,t,n,a,r,o){let c=(i,l)=>n[l]?i.route.id!==n[l].route.id:!0,d=(i,l)=>{var u;return n[l].pathname!==i.pathname||((u=n[l].route.path)==null?void 0:u.endsWith("*"))&&n[l].params["*"]!==i.params["*"]};return o==="assets"?t.filter((i,l)=>c(i,l)||d(i,l)):o==="data"?t.filter((i,l)=>{var f;let u=a.routes[i.route.id];if(!u||!u.hasLoader)return!1;if(c(i,l)||d(i,l))return!0;if(i.route.shouldRevalidate){let h=i.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:i.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function lr(e,t,{includeHydrateFallback:n}={}){return cr(e.map(a=>{let r=t.routes[a.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o}).flat(1))}function cr(e){return[...new Set(e)]}function dr(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}function ur(e,t){let n=new Set;return new Set(t),e.reduce((a,r)=>{let o=JSON.stringify(dr(r));return n.has(o)||(n.add(o),a.push({key:o,link:r})),a},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var hr=new Set([100,101,204,205]);function mr(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&oe(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function jt(){let e=g.useContext(he);return Ue(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function fr(){let e=g.useContext(Ie);return Ue(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ye=g.createContext(void 0);Ye.displayName="FrameworkContext";function St(){let e=g.useContext(Ye);return Ue(e,"You must render this element inside a <HydratedRouter> element"),e}function pr(e,t){let n=g.useContext(Ye),[a,r]=g.useState(!1),[o,c]=g.useState(!1),{onFocus:d,onBlur:i,onMouseEnter:l,onMouseLeave:u,onTouchStart:f}=t,h=g.useRef(null);g.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let v=_=>{_.forEach(C=>{c(C.isIntersecting)})},b=new IntersectionObserver(v,{threshold:.5});return h.current&&b.observe(h.current),()=>{b.disconnect()}}},[e]),g.useEffect(()=>{if(a){let v=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(v)}}},[a]);let y=()=>{r(!0)},m=()=>{r(!1),c(!1)};return n?e!=="intent"?[o,h,{}]:[o,h,{onFocus:je(d,y),onBlur:je(i,m),onMouseEnter:je(l,y),onMouseLeave:je(u,m),onTouchStart:je(f,y)}]:[!1,h,{}]}function je(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function _r({page:e,...t}){let{router:n}=jt(),a=g.useMemo(()=>mt(n.routes,e,n.basename),[n.routes,e,n.basename]);return a?g.createElement(vr,{page:e,matches:a,...t}):null}function gr(e){let{manifest:t,routeModules:n}=St(),[a,r]=g.useState([]);return g.useEffect(()=>{let o=!1;return ir(e,t,n).then(c=>{o||r(c)}),()=>{o=!0}},[e,t,n]),a}function vr({page:e,matches:t,...n}){let a=ce(),{manifest:r,routeModules:o}=St(),{basename:c}=jt(),{loaderData:d,matches:i}=fr(),l=g.useMemo(()=>kt(e,t,i,r,a,"data"),[e,t,i,r,a]),u=g.useMemo(()=>kt(e,t,i,r,a,"assets"),[e,t,i,r,a]),f=g.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let m=new Set,v=!1;if(t.forEach(_=>{var w;let C=r.routes[_.route.id];!C||!C.hasLoader||(!l.some(I=>I.route.id===_.route.id)&&_.route.id in d&&((w=o[_.route.id])!=null&&w.shouldRevalidate)||C.hasClientLoader?v=!0:m.add(_.route.id))}),m.size===0)return[];let b=mr(e,c);return v&&m.size>0&&b.searchParams.set("_routes",t.filter(_=>m.has(_.route.id)).map(_=>_.route.id).join(",")),[b.pathname+b.search]},[c,d,a,r,l,t,e,o]),h=g.useMemo(()=>lr(u,r),[u,r]),y=gr(u);return g.createElement(g.Fragment,null,f.map(m=>g.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...n})),h.map(m=>g.createElement("link",{key:m,rel:"modulepreload",href:m,...n})),y.map(({key:m,link:v})=>g.createElement("link",{key:m,...v})))}function yr(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Lt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Lt&&(window.__reactRouterVersion="7.6.2")}catch{}var $t=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Se=g.forwardRef(function({onClick:t,discover:n="render",prefetch:a="none",relative:r,reloadDocument:o,replace:c,state:d,target:i,to:l,preventScrollReset:u,viewTransition:f,...h},y){let{basename:m}=g.useContext(te),v=typeof l=="string"&&$t.test(l),b,_=!1;if(typeof l=="string"&&v&&(b=l,Lt))try{let S=new URL(window.location.href),B=l.startsWith("//")?new URL(S.protocol+l):new URL(l),X=oe(B.pathname,m);B.origin===S.origin&&X!=null?l=X+B.search+B.hash:_=!0}catch{Q(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let C=Dn(l,{relative:r}),[w,I,L]=pr(a,h),$=Cr(l,{replace:c,state:d,target:i,preventScrollReset:u,relative:r,viewTransition:f});function M(S){t&&t(S),S.defaultPrevented||$(S)}let T=g.createElement("a",{...h,...L,href:b||C,onClick:_||o?t:M,ref:yr(y,I),target:i,"data-discover":!v&&n==="render"?"true":void 0});return w&&!v?g.createElement(g.Fragment,null,T,g.createElement(_r,{page:C})):T});Se.displayName="Link";var xr=g.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:a="",end:r=!1,style:o,to:c,viewTransition:d,children:i,...l},u){let f=ke(c,{relative:l.relative}),h=ce(),y=g.useContext(Ie),{navigator:m,basename:v}=g.useContext(te),b=y!=null&&Lr(f)&&d===!0,_=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,C=h.pathname,w=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(C=C.toLowerCase(),w=w?w.toLowerCase():null,_=_.toLowerCase()),w&&v&&(w=oe(w,v)||w);const I=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let L=C===_||!r&&C.startsWith(_)&&C.charAt(I)==="/",$=w!=null&&(w===_||!r&&w.startsWith(_)&&w.charAt(_.length)==="/"),M={isActive:L,isPending:$,isTransitioning:b},T=L?t:void 0,S;typeof a=="function"?S=a(M):S=[a,L?"active":null,$?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let B=typeof o=="function"?o(M):o;return g.createElement(Se,{...l,"aria-current":T,className:S,ref:u,style:B,to:c,viewTransition:d},typeof i=="function"?i(M):i)});xr.displayName="NavLink";var br=g.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:a,replace:r,state:o,method:c=Me,action:d,onSubmit:i,relative:l,preventScrollReset:u,viewTransition:f,...h},y)=>{let m=jr(),v=Sr(d,{relative:l}),b=c.toLowerCase()==="get"?"get":"post",_=typeof d=="string"&&$t.test(d),C=w=>{if(i&&i(w),w.defaultPrevented)return;w.preventDefault();let I=w.nativeEvent.submitter,L=(I==null?void 0:I.getAttribute("formmethod"))||c;m(I||w.currentTarget,{fetcherKey:t,method:L,navigate:n,replace:r,state:o,relative:l,preventScrollReset:u,viewTransition:f})};return g.createElement("form",{ref:y,method:b,action:v,onSubmit:a?i:C,...h,"data-discover":!_&&e==="render"?"true":void 0})});br.displayName="Form";function wr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function It(e){let t=g.useContext(he);return O(t,wr(e)),t}function Cr(e,{target:t,replace:n,state:a,preventScrollReset:r,relative:o,viewTransition:c}={}){let d=zn(),i=ce(),l=ke(e,{relative:o});return g.useCallback(u=>{if(tr(u,t)){u.preventDefault();let f=n!==void 0?n:Re(i)===Re(l);d(e,{replace:f,state:a,preventScrollReset:r,relative:o,viewTransition:c})}},[i,d,l,n,a,t,e,r,o,c])}var Er=0,kr=()=>`__${String(++Er)}__`;function jr(){let{router:e}=It("useSubmit"),{basename:t}=g.useContext(te),n=Un();return g.useCallback(async(a,r={})=>{let{action:o,method:c,encType:d,formData:i,body:l}=ar(a,t);if(r.navigate===!1){let u=r.fetcherKey||kr();await e.fetch(u,n,r.action||o,{preventScrollReset:r.preventScrollReset,formData:i,body:l,formMethod:r.method||c,formEncType:r.encType||d,flushSync:r.flushSync})}else await e.navigate(r.action||o,{preventScrollReset:r.preventScrollReset,formData:i,body:l,formMethod:r.method||c,formEncType:r.encType||d,replace:r.replace,state:r.state,fromRouteId:n,flushSync:r.flushSync,viewTransition:r.viewTransition})},[e,t,n])}function Sr(e,{relative:t}={}){let{basename:n}=g.useContext(te),a=g.useContext(ne);O(a,"useFormAction must be used inside a RouteContext");let[r]=a.matches.slice(-1),o={...ke(e||".",{relative:t})},c=ce();if(e==null){o.search=c.search;let d=new URLSearchParams(o.search),i=d.getAll("index");if(i.some(u=>u==="")){d.delete("index"),i.filter(f=>f).forEach(f=>d.append("index",f));let u=d.toString();o.search=u?`?${u}`:""}}return(!e||e===".")&&r.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:ee([n,o.pathname])),Re(o)}function Lr(e,t={}){let n=g.useContext(xt);O(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=It("useViewTransitionState"),r=ke(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=oe(n.currentLocation.pathname,a)||n.currentLocation.pathname,c=oe(n.nextLocation.pathname,a)||n.nextLocation.pathname;return $e(r.pathname,c)!=null||$e(r.pathname,o)!=null}[...hr];const V={button:"_button_1jbpj_161",noMargin:"_noMargin_1jbpj_189",regular:"_regular_1jbpj_199",small:"_small_1jbpj_202",primary:"_primary_1jbpj_213",noHover:"_noHover_1jbpj_217",secondary:"_secondary_1jbpj_233",disabled:"_disabled_1jbpj_252",hasErrors:"_hasErrors_1jbpj_272",rounded:"_rounded_1jbpj_278",hasArrowLeft:"_hasArrowLeft_1jbpj_282",pushprev:"_pushprev_1jbpj_1",hasArrowRight:"_hasArrowRight_1jbpj_320",pushnext:"_pushnext_1jbpj_1",hasIcon:"_hasIcon_1jbpj_358",buttonContent:"_buttonContent_1jbpj_362"},Je=({content:e,color:t="primary",size:n="regular",arrow:a="none",disabled:r=!1,inputType:o,defaultChecked:c,hasErrors:d=!1,noHover:i=!1,rounded:l=!1,noMargin:u=!1,href:f,children:h,iconLeft:y,iconRight:m,...v})=>{const b=$=>{switch($){case"left":return V.hasArrowLeft;case"right":return V.hasArrowRight;default:return""}},_=o==="radio"?c?"primary":"secondary":t,C=P([V.button,V[_],V[n],b(a),i||o==="radio"?V.noHover:null,l&&V.rounded,d&&V.hasErrors,r?V.disabled:null,u?V.noMargin:null,y||m?V.hasIcon:null]),w={"aria-invalid":d||void 0,href:!r&&(f!=null&&f.length)?f:void 0,className:C,...v},I=$=>x.Children.toArray(ue($)).map(T=>{if(!x.isValidElement(T))return null;const S=T,B=S.type===Se&&typeof S.props=="object"&&S.props!==null&&"to"in S.props;return!r&&B?x.cloneElement(S,{className:C,key:`button-${S.key}`,to:S.props.to},y,s.jsx("span",{className:V.buttonContent,children:S.props.children}),m):x.createElement("button",{...w,key:`button-${S.key}`},y,s.jsx("span",{className:V.buttonContent,children:e||(S.props?S.props.children:null)}),m)});if(o==="button")return s.jsxs("button",{type:"button",...w,children:[y,s.jsx("span",{className:V.buttonContent,children:e||h}),m]});if(o==="radio"){const $={...w};return delete $.href,s.jsxs("label",{className:C,children:[s.jsx("input",{...$,type:"radio"}),y,s.jsx("span",{className:V.buttonContent,children:e}),m]})}if(f!=null&&f.length&&!r){const $={...w};return"type"in $&&delete $.type,s.jsxs("a",{...$,children:[y,s.jsx("span",{className:V.buttonContent,children:e||h}),m]})}return x.isValidElement(h)&&h.type===Se?s.jsx(x.Fragment,{children:I(x.Children.toArray(h))}):s.jsxs("button",{...w,children:[y,s.jsx("span",{className:V.buttonContent,children:e||h}),m]})},me={checkBoxIcon:"_checkBoxIcon_1kc3w_1",showBox:"_showBox_1kc3w_22",hasErrors:"_hasErrors_1kc3w_27",checked:"_checked_1kc3w_37",disabled:"_disabled_1kc3w_53",checkmark:"_checkmark_1kc3w_58"},Ge=({size:e="20px",checked:t=!1,disabled:n=!1,showBox:a=!0,hasErrors:r=!1,checkmarkCharacter:o="✔"})=>{const c={height:e,width:e,fontSize:e},d=[me.checkBoxIcon,t&&me.checked,n&&me.disabled,a&&me.showBox,r&&me.hasErrors].filter(Boolean).join(" ");return s.jsx("span",{className:d,style:c,children:s.jsx("span",{"aria-hidden":!0,className:me.checkmark,children:t?o:""})})},re="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32.275'%20height='30.469'%20focusable='false'%3e%3cpath%20fill='%239d2024'%20d='m0%2014.355%202.246-6.933c5.176%201.823%208.936%203.402%2011.28%204.736-.62-5.892-.945-9.944-.977-12.158h7.08c-.098%203.223-.472%207.26-1.123%2012.11%203.353-1.693%207.194-3.256%2011.523-4.688l2.246%206.933c-4.134%201.368-8.186%202.28-12.158%202.735%201.986%201.725%204.785%204.801%208.399%209.228l-5.86%204.15c-1.888-2.57-4.118-6.07-6.69-10.497-2.408%204.59-4.524%208.089-6.347%2010.498l-5.762-4.15c3.776-4.656%206.478-7.732%208.106-9.23-4.2-.813-8.187-1.724-11.963-2.734'/%3e%3c/svg%3e",fe={checkBoxInput:"_checkBoxInput_f1w9m_1",requiredSymbol:"_requiredSymbol_f1w9m_6",contentOnly:"_contentOnly_f1w9m_13",disabled:"_disabled_f1w9m_13",labelText:"_labelText_f1w9m_19",hasErrors:"_hasErrors_f1w9m_27"},Nt=({checked:e=!1,disabled:t=!1,required:n=!1,requiredGroup:a=!1,id:r,name:o="",onChange:c,contentOnly:d=!1,hasErrors:i=!1,checkmarkCharacter:l="✔",tabIndex:u=0,children:f,"aria-controls":h,"aria-describedby":y,value:m})=>{const v=[fe.checkBoxInput,d&&fe.contentOnly,t&&fe.disabled,i&&fe.hasErrors].filter(Boolean).join(" "),b={checked:e,disabled:t,showBox:!d,hasErrors:d&&i,checkmarkCharacter:l},_={id:r,name:o,type:"checkbox",checked:e,disabled:t,required:n||a,onChange:c,tabIndex:u,"aria-controls":h,"aria-invalid":i?"true":void 0,"aria-describedby":y,value:m};return s.jsxs("label",{htmlFor:r,className:v,children:[d?s.jsx(Ge,{...b}):s.jsxs(s.Fragment,{children:[s.jsx(Ge,{...b}),s.jsx("input",{..._})]}),s.jsxs("span",{className:fe.labelText,children:[f,n&&s.jsx("img",{src:re,alt:"",className:fe.requiredSymbol})]})]})},Mt={checkBoxList:"_checkBoxList_1sp8d_1",requiredSymbol:"_requiredSymbol_1sp8d_16"},ze={headerContainer:"_headerContainer_t2si7_1",header:"_header_t2si7_1","size-1":"_size-1_t2si7_8",bigHeader:"_bigHeader_t2si7_16","size-2":"_size-2_t2si7_28","size-3":"_size-3_t2si7_36","size-4":"_size-4_t2si7_44","size-5":"_size-5_t2si7_52"},Ke=({id:e,content:t,size:n=1,big:a,label:r,htmlTag:o,htmlFor:c,children:d})=>{const i=o||`h${n}`,l=P([ze.header,ze[`size-${n}`],a&&ze.bigHeader]),u=r!=null&&r.length&&typeof r=="string"?{"--label":`"${r}"`}:void 0,f=x.createElement(i,{className:l,id:e||void 0,htmlFor:c||void 0,style:u},t!=null&&t.length?t:d);return s.jsx("div",{className:ze.headerContainer,children:f})},Tt=({legend:e,legendSize:t,required:n=!1,compact:a=!1,children:r})=>{const o=c=>ue(c).map(i=>{var l;return x.isValidElement(i)&&((l=i.type)==null?void 0:l.displayName)==="RadioButtonListItem"?x.cloneElement(i,{requiredGroup:n,compact:a,key:`checkboxListItem-${i.key}`}):i});return s.jsxs("fieldset",{className:Mt.checkBoxList,children:[!!(e!=null&&e.length)&&s.jsxs("legend",{children:[t?s.jsx(Ke,{size:t,children:e}):e,n&&s.jsx("img",{src:re,alt:"",className:Mt.requiredSymbol})]}),o(x.Children.toArray(r))]})},pe={checkBoxListItem:"_checkBoxListItem_jnb8z_1",contentOnly:"_contentOnly_jnb8z_26",compact:"_compact_jnb8z_26",disabled:"_disabled_jnb8z_41",checked:"_checked_jnb8z_44"},Bt=({checked:e=!1,disabled:t=!1,required:n=!1,requiredGroup:a=!1,id:r,name:o="",onChange:c,contentOnly:d=!1,compact:i=!1,hasErrors:l=!1,checkmarkCharacter:u="✔","aria-controls":f,"aria-describedby":h,children:y,value:m})=>{const v=P([pe.checkBoxListItem,e&&pe.checked,t&&pe.disabled,i&&pe.compact,d&&pe.contentOnly,l&&pe.hasErrors]),b={onChange:c??(()=>{}),checked:e,disabled:t,required:n,requiredGroup:a,contentOnly:d,hasErrors:l,"aria-controls":f,"aria-describedby":h,id:r,name:o,checkmarkCharacter:u,value:m};return s.jsx("div",{className:v,children:s.jsx(Nt,{...b,children:y})})},$r={container:"_container_f8z49_1"},Dt=({maxWidth:e,children:t})=>{const n={"--max-width":e!=null&&e.length?e:void 0};return s.jsx("div",{className:$r.container,style:n,children:t})},_e={contentBox:"_contentBox_1ndvc_1",link:"_link_1ndvc_8",default:"_default_1ndvc_21",content:"_content_1ndvc_1",title:"_title_1ndvc_25",secondary:"_secondary_1ndvc_28",regular:"_regular_1ndvc_36",large:"_large_1ndvc_45"},Ir=({title:e=null,titleSize:t="regular",content:n="",children:a,color:r="default",href:o=null})=>{const c=()=>{if(!e)return null;const h=`${_e.title} ${_e[t]}`;return s.jsx("h2",{className:h,children:e})},d=_e[r]||"",i=o?_e.link:"",l=`${_e.contentBox} ${d} ${i}`.trim(),u=n!=null&&n.length?n:a,f=s.jsxs(s.Fragment,{children:[c(),s.jsx("div",{className:_e.content,children:u})]});return o?s.jsx("a",{href:o,className:l,children:f}):s.jsx("div",{className:l,children:f})},zt={descriptionDetails:"_descriptionDetails_1d1dj_1",compact:"_compact_1d1dj_7"},Nr=({compact:e=!1,titleWidth:t,children:n})=>s.jsx("dd",{className:P([zt.descriptionDetails,e&&zt.compact]),style:{"--title-width":t||void 0},children:n}),Pt={descriptionList:"_descriptionList_w11ua_1",compact:"_compact_w11ua_13"},Mr=({compact:e=!1,titleWidth:t,children:n})=>{const a=r=>ue(r).map(c=>x.isValidElement(c)?x.cloneElement(c,{compact:e,titleWidth:t,key:`descriptionListItem-${c.key}`}):c);return x.createElement("dl",{className:P([Pt.descriptionList,e&&Pt.compact]),style:{"--title-width":t||void 0}},a(x.Children.toArray(n)))},At={descriptionTerm:"_descriptionTerm_uuapd_1",compact:"_compact_uuapd_8"},Tr=({compact:e=!1,titleWidth:t,children:n})=>s.jsx("dt",{className:P([At.descriptionTerm,e&&At.compact]),style:{"--title-width":t||void 0},children:n}),Br="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='25'%20height='25'%3e%3cpath%20fill='%23072938'%20stroke='%23072938'%20stroke-linecap='round'%20stroke-width='3.23'%20d='m3.97%203.57%2017.44%2018.2m-17.44.01L21.41%203.57'/%3e%3c/svg%3e",ae={dialog:"_dialog_pl6ui_19",backdrop:"_backdrop_pl6ui_34",dialogContainer:"_dialogContainer_pl6ui_42",modalInVertical:"_modalInVertical_pl6ui_1",dialogContent:"_dialogContent_pl6ui_52",noPadding:"_noPadding_pl6ui_57",closeButton:"_closeButton_pl6ui_65",isSidebar:"_isSidebar_pl6ui_94",left:"_left_pl6ui_117",modalInHorizontalLeft:"_modalInHorizontalLeft_pl6ui_1",right:"_right_pl6ui_123",modalInHorizontalRight:"_modalInHorizontalRight_pl6ui_1"},Dr=({maxWidth:e="none",noPadding:t,closeButton:n,onClickOutside:a,modal:r=!0,attachTo:o,hidden:c=!1,children:d})=>{const[i,l]=x.useState(null),u=x.useRef(null),f=x.useCallback(v=>{v&&ut(v)},[]);x.useEffect(()=>{if(c)return;const v=b=>{b.key==="Escape"&&a&&a()};return document.addEventListener("keydown",v,!1),()=>{document.removeEventListener("keydown",v,!1)}},[c,a]),x.useEffect(()=>{if(typeof window>"u")return;const b=(()=>{const C="dibk-design-dialog-root";let w=document.getElementById(C);return w||(w=document.createElement("div"),w.setAttribute("id",C),document.body.appendChild(w)),w})(),_=document.createElement("div");return b.appendChild(_),l(_),()=>{l(null),b.contains(_)&&b.removeChild(_)}},[]),x.useEffect(()=>{if(c||!r)return;const v=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=v}},[c,r]);const h=o&&P([ae.isSidebar,ae[o]]),y={"--max-width":e};if(c||!i)return null;const m=r?{role:"dialog","aria-modal":"true"}:{role:"dialog"};return Gt.createPortal(s.jsxs("div",{className:P([ae.dialog,h]),onClick:a,...m,children:[r&&s.jsx("div",{className:ae.backdrop,"aria-hidden":"true"}),s.jsx("div",{ref:u,className:ae.dialogContainer,style:y,onClick:v=>v.stopPropagation(),children:s.jsxs("div",{ref:f,className:P([ae.dialogContent,t&&ae.noPadding]),children:[n&&s.jsx("button",{type:"button","aria-label":"Lukk dialog",onClick:a,className:P([ae.closeButton,t&&ae.noPadding]),children:s.jsx("img",{src:Br,alt:""})}),s.jsx("div",{"aria-live":"assertive",children:d})]})})]}),i)},Pe={dragAndDropFileInput:"_dragAndDropFileInput_pfifv_1",requiredSymbol:"_requiredSymbol_pfifv_1",dragAndDropContainer:"_dragAndDropContainer_pfifv_8",highlighted:"_highlighted_pfifv_25"},zr="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20role='presentation'%3e%3cg%20clip-path='url(%23clip0_1089_7422)'%3e%3cmask%20id='mask0_1089_7422'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%20style='mask-type:%20alpha;'%3e%3crect%20width='20'%20height='20'%20style='fill:%20white;'%3e%3c/rect%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1089_7422)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%2010C0%204.4775%204.4775%200%2010%200C15.5225%200%2020%204.4775%2020%2010C20%2015.5225%2015.5225%2020%2010%2020C4.4775%2020%200%2015.5225%200%2010ZM11%2014.0766C11%2014.8122%2010.5188%2015.3333%209.83335%2015.3333C9.13335%2015.3333%208.66669%2014.8122%208.66669%2014.0766C8.66669%2013.341%209.13335%2012.8046%209.83335%2012.8046C10.5188%2012.8046%2011%2013.341%2011%2014.0766ZM10.65%2011.9463H8.98752L8.75419%204.66663H10.8834L10.65%2011.9463Z'%20style='fill:%20rgb(219,%200,%200);'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1089_7422'%3e%3crect%20width='20'%20height='20'%20fill='white'%3e%3c/rect%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Rt={errorMessage:"_errorMessage_i8u6b_7",errorSign:"_errorSign_i8u6b_19"},ge=({id:e,content:t=""})=>{const n=()=>({id:e!=null&&e.length?e:void 0,className:Rt.errorMessage});return(typeof t=="string"?t.trim().length>0:!!t)?s.jsxs("span",{"aria-live":"polite",...n(),children:[s.jsx("img",{src:zr,alt:"",className:Rt.errorSign}),t]}):null},Ze={label:"_label_18de6_1",inline:"_inline_18de6_11",normalCursor:"_normalCursor_18de6_14"},de=({inline:e=!1,normalCursor:t=!1,htmlTag:n="label",children:a,id:r,...o})=>{const c=[Ze.label,e&&Ze.inline,t&&Ze.normalCursor].filter(Boolean).join(" "),d={...o,className:c,id:r||void 0};return x.createElement(n,d,a)},Pr=({id:e,name:t,onSelectChange:n,onDragAndDropChange:a,label:r="",contentOnly:o=!1,buttonColor:c="primary",buttonContent:d,buttonContentWhenSelectedFile:i,selectedFileName:l,defaultContent:u="",hasErrors:f=!1,errorMessage:h="",required:y=!1,children:m,"data-transaction-name":v})=>{const[b,_]=x.useState(!1),C=x.useRef(null),w=x.useRef(null),I=N=>{N.preventDefault(),N.stopPropagation()},L=(N,A)=>N||A,$=()=>{var N;(N=w.current)==null||N.click()},M=()=>`${e}-errorMessage`,T={id:e,"aria-describedby":f&&(h!=null&&h.toString().length)?M():void 0,"aria-invalid":f?"true":void 0,name:t,required:y},S=l&&i||d,B=x.useCallback(()=>_(!0),[]),X=x.useCallback(()=>_(!1),[]),W=x.useCallback(N=>{var A;I(N),(A=N.dataTransfer)!=null&&A.files&&a(N.dataTransfer.files),_(!1)},[a]);return x.useEffect(()=>{const N=C.current;if(N)return["dragenter","dragover"].forEach(A=>{N.addEventListener(A,B)}),["dragleave","drop"].forEach(A=>{N.addEventListener(A,X)}),["dragenter","dragover","dragleave","drop"].forEach(A=>{N.addEventListener(A,I)}),N.addEventListener("drop",W),()=>{["dragenter","dragover","dragleave","drop"].forEach(A=>{N.removeEventListener(A,I),N.removeEventListener(A,B),N.removeEventListener(A,X)}),N.removeEventListener("drop",W)}},[a]),s.jsxs("div",{className:Pe.dragAndDropFileInput,children:[s.jsxs(de,{htmlFor:e,children:[r,y&&s.jsx("img",{src:re,alt:"",className:Pe.requiredSymbol})]}),s.jsx("div",{children:m}),!o&&s.jsxs("div",{ref:C,className:`${Pe.dragAndDropContainer} ${b?Pe.highlighted:""}`,children:[l?s.jsx("div",{children:s.jsxs("span",{children:[s.jsx("b",{children:"Valgt fil:"})," ",l]})}):s.jsx("div",{children:"Slipp fil her"}),s.jsx("input",{...T,ref:w,type:"file",onChange:n}),d&&s.jsxs(s.Fragment,{children:[s.jsx("div",{children:l?"":"eller klikk på knappen for å velge fil"}),s.jsx(Je,{size:"small",inputType:"button",color:c,onClick:$,content:S,hasErrors:f,"data-transaction-name":v})]})]}),o&&s.jsx("span",{children:L(l,u)}),s.jsx(ge,{id:M(),content:h})]})},Ft="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20role='presentation'%3e%3cpath%20d='M10%200C4.4775%200%200%204.4775%200%2010C0%2015.5225%204.4775%2020%2010%2020C15.5225%2020%2020%2015.5225%2020%2010C20%204.4775%2015.5225%200%2010%200ZM8.30583%2013.3417C8.77583%2011.8508%209.66583%2010.065%209.82333%209.61333C10.0508%208.9575%209.6475%208.66667%208.37333%209.7875L8.09%209.25417C9.54333%207.67333%2012.5358%207.31583%2011.5175%209.765C10.8817%2011.2942%2010.4267%2012.3267%2010.1667%2013.1233C9.7875%2014.2842%2010.745%2013.8133%2011.6825%2012.9475C11.81%2013.1558%2011.8517%2013.2233%2011.9792%2013.4633C9.8975%2015.445%207.58667%2015.62%208.30583%2013.3417ZM12.2575%206.53417C11.8142%206.91167%2011.1575%206.90333%2010.79%206.51583C10.4225%206.12833%2010.4842%205.50917%2010.9267%205.13167C11.37%204.75417%2012.0267%204.76333%2012.3942%205.15C12.76%205.53833%2012.7%206.1575%2012.2575%206.53417Z'%20style='fill:%20rgb(0,%2048,%2069);'%3e%3c/path%3e%3c/svg%3e",ve={errorBoxContainer:"_errorBoxContainer_88ulw_7",messageIn:"_messageIn_88ulw_1",warning:"_warning_88ulw_14",error:"_error_88ulw_7",fullScreen:"_fullScreen_88ulw_22",errorBox:"_errorBox_88ulw_7",infoSign:"_infoSign_88ulw_38"},Ar=({type:e="warning",fullScreen:t=!1,children:n=""})=>s.jsx("div",{className:P([ve.errorBoxContainer,ve[e],t&&ve.fullScreen]),children:s.jsxs("div",{className:P([ve.errorBox,t&&ve.fullScreen]),children:[s.jsx("img",{src:Ft,alt:"",className:ve.infoSign}),n]})}),Rr={footer:"_footer_19fad_1"},Fr=({children:e})=>s.jsx("footer",{className:Rr.footer,children:s.jsx(Dt,{children:e})}),Ot={infoBox:"_infoBox_1mh67_7",infoSign:"_infoSign_1mh67_15"},Or=({children:e=""})=>s.jsxs("div",{className:Ot.infoBox,children:[s.jsx("img",{src:Ft,alt:"",className:Ot.infoSign}),e]}),Y={inputField:"_inputField_9tnyr_1",noMargin:"_noMargin_9tnyr_4",requiredSymbol:"_requiredSymbol_9tnyr_10",file:"_file_9tnyr_17",input:"_input_9tnyr_1",hasErrors:"_hasErrors_9tnyr_50",fileInputContainer:"_fileInputContainer_9tnyr_62"},Vr=e=>{const t=typeof e=="string"?new Date(e):e;if(Number.isNaN(t.getTime()))return String(e??"");const n=String(t.getDate()).padStart(2,"0"),a=String(t.getMonth()+1).padStart(2,"0"),r=t.getFullYear();return`${n}.${a}.${r}`},Vt=e=>{if(e==null||e==="")return;const t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return;const n=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return`${n}-${a}-${r}`},qr=e=>!e||["text","search","url","email","tel","password","number"].includes(e),Hr=({id:e,onChange:t=()=>{},onBlur:n,onFocus:a,name:r="",type:o="text",disabled:c=!1,required:d=!1,readOnly:i,width:l,value:u,defaultValue:f,elementKey:h,label:y="",contentOnly:m=!1,buttonColor:v="primary",buttonContent:b,selectedFileName:_,placeholder:C="",defaultContent:w="",min:I,max:L,role:$,"aria-describedby":M,"aria-autocomplete":T,hasErrors:S=!1,errorMessage:B="",noMargin:X=!1})=>{const W=x.useRef(null),N=()=>`${e}-errorMessage`,A=l?{maxWidth:l}:{},k=o==="date"&&!c&&!i,z=()=>{var E;if(!k||!W.current)return;document.activeElement!==W.current&&W.current.focus();const p=W.current;(E=p.showPicker)==null||E.call(p)},R=p=>{z(),a==null||a(p)},U=(()=>{if(o==="file")return{};if(o==="date"){const E=u!==void 0?Vt(u):void 0,D=u===void 0&&f!==void 0?Vt(f):void 0;return u!==void 0?{value:E??""}:f!==void 0?{defaultValue:D}:{}}const p=E=>E instanceof Date?String(E.getTime()):E;return u!==void 0?{value:p(u)}:f!==void 0?{defaultValue:p(f)}:{}})(),ie={name:r,readOnly:i,disabled:c,required:d,type:o,role:$,id:e,min:I,max:L,onChange:t,onBlur:n,onFocus:R,placeholder:o==="file"?void 0:C,className:S?Y.hasErrors:void 0,"aria-describedby":S&&B?N():M,"aria-invalid":S||void 0,"aria-autocomplete":qr(o)?T:void 0,style:A,...U};if(m){const p=u??f??"",E=o==="date"?p?Vr(p):w:String(p??"")||w;return s.jsxs("div",{className:P([Y.inputField,Y[o],X&&Y.noMargin]),children:[s.jsxs(de,{htmlFor:e,children:[y,d&&s.jsx("img",{src:re,alt:"",className:Y.requiredSymbol})]}),s.jsx("span",{children:E}),S&&B?s.jsx(ge,{id:N(),content:B}):null]})}return s.jsxs("div",{className:P([Y.inputField,Y[o],X&&Y.noMargin]),children:[s.jsxs(de,{htmlFor:e,children:[y,d&&s.jsx("img",{src:re,alt:"",className:Y.requiredSymbol}),o==="file"&&s.jsxs("div",{className:Y.fileInputContainer,children:[s.jsx("span",{className:Y.input,children:_}),b&&s.jsx(Je,{color:v,inputType:"button",onClick:()=>{var p;return(p=W.current)==null?void 0:p.click()},content:b})]})]}),s.jsx("input",{...ie,ref:W},h||e),S&&B?s.jsx(ge,{id:N(),content:B}):null]})},Xr={lead:"_lead_176gy_1"},Wr=({id:e,htmlTag:t="p",children:n})=>x.createElement(t,{className:Xr.lead,id:e||void 0},n),qt={list:"_list_16gsl_1",compact:"_compact_16gsl_10"},Ur=({listStyle:e,compact:t=!1,ordered:n=!1,children:a})=>{const r=i=>ue(i).map(u=>x.isValidElement(u)?x.cloneElement(u,{compact:t,key:`listItem-${u.key}`}):u),o=n?"ol":"ul",c=n?"decimal":"disc";return x.createElement(o,{className:`${qt.list} ${t?qt.compact:""}`,style:{["--listStyle"]:e||c}},r(x.Children.toArray(a)))},Ht={listItem:"_listItem_33xs0_1",compact:"_compact_33xs0_5"},Yr=({compact:e=!1,children:t})=>{const n=P([Ht.listItem,e&&Ht.compact]);return s.jsx("li",{className:n,children:t})},Qe={loadingAnimation:"_loadingAnimation_hzd5u_1",fixed:"_fixed_hzd5u_17"},Jr=({fixed:e=!1,message:t=""})=>{const n=e?`${Qe.loadingAnimation} ${Qe.fixed}`:Qe.loadingAnimation;return s.jsx("div",{className:n,children:t})},Gr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%20id='Layer_1'%20x='0px'%20y='0px'%20viewBox='0%200%20340.2%20412.5'%20style='enable-background:new%200%200%20340.2%20412.5;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23003045;}%20.st1{fill:%2389BAD6;}%20.st2{fill:%23FFFFFF;}%20%3c/style%3e%3cg%3e%3crect%20x='0'%20y='253.2'%20class='st0'%20width='340.2'%20height='105.8'/%3e%3crect%20x='0'%20class='st1'%20width='340.2'%20height='249.4'/%3e%3cg%3e%3cpolygon%20class='st2'%20points='138.5,189.9%20157,202%20157,118.8%20201.7,147.8%20201.7,106.6%20138.5,65.5%20'/%3e%3cpolygon%20class='st2'%20points='63.3,197.7%2063.3,153.5%20106.3,125.5%20106.3,30.2%2030.2,79.7%2030.2,219.2%20'/%3e%3cpolygon%20class='st2'%20points='208.9,101.9%20208.9,181.7%20238,200.5%20238,40.1%20175.9,80.4%20'/%3e%3cpolygon%20class='st2'%20points='113.4,30.2%20113.4,165.2%20131.4,153.5%20131.4,60.9%20131.4,41.9%20'/%3e%3cpolygon%20class='st2'%20points='259.5,110.2%20245.1,119.6%20245.1,195.9%20259.5,186.5%20309.9,219.2%20309.9,142.6%20'/%3e%3c/g%3e%3cpolygon%20class='st0'%20points='0,362.8%2075.6,412%2075.6,362.8%20'/%3e%3cg%3e%3cg%3e%3cpath%20class='st2'%20d='M30.2,277.5h6.2c7.3,0,11.6,2.9,11.6,11s-5.3,11-11.6,11h-6.2V277.5z%20M36.5,295.7c5.6,0,7.3-2.2,7.3-7.2%20c0-5-1.7-7.5-7.3-7.5h-2v14.6H36.5z'/%3e%3cpath%20class='st2'%20d='M51.9,277.5h4.3v21.9h-4.3V277.5z'/%3e%3cpath%20class='st2'%20d='M65.5,291.2h-0.2v8.2H61v-21.9h6.2c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L65.5,291.2z%20M67.2,288.2c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.6-3.5-4.3-3.5h-1.9v7.4H67.2z'/%3e%3cpath%20class='st2'%20d='M80,277.5h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6H94v3.6H80V277.5z'/%3e%3cpath%20class='st2'%20d='M97.8,277.5h4.3v9.8l8.7-9.8h4.4l-7.9,8.7l8.4,13.2h-4.8l-6.2-10.2l-2.6,2.8v7.4h-4.3V277.5z'/%3e%3cpath%20class='st2'%20d='M122.8,281.1h-6.3v-3.6h16.8v3.6H127v18.3h-4.3V281.1z'/%3e%3cpath%20class='st2'%20d='M134.7,288.4c0-7.6,5.4-11.5,10.8-11.5c6.4,0,10.8,3.9,10.8,11.5c0,7.6-5.4,11.5-10.8,11.5%20C139.1,299.9,134.7,296,134.7,288.4z%20M151.9,288.6c0-5.2-2.5-8-6.5-8c-3.9,0-6.5,2.8-6.5,7.7c0,5.2,2.5,8.1,6.5,8.1%20C149.4,296.3,151.9,293.5,151.9,288.6z'/%3e%3cpath%20class='st2'%20d='M164.4,291.2h-0.2v8.2h-4.3v-21.9h6.2c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L164.4,291.2z%20M166.2,288.2c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.5-3.5-4.3-3.5h-1.9v7.4H166.2z'/%3e%3cpath%20class='st2'%20d='M184.5,279.7l-0.8-2.2h4.4l8.6,21.9h-4.5l-1.7-4.5h-8.1l-1.7,4.5h-4.1L184.5,279.7z%20M183.6,291.7h5.8l-2.3-6%20l-0.6-1.9l-0.6,1.9L183.6,291.7z'/%3e%3cpath%20class='st2'%20d='M201.7,281.1h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V281.1z'/%3e%3cpath%20class='st2'%20d='M215.3,277.5h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6h9.7v3.6h-14V277.5z'/%3e%3cpath%20class='st2'%20d='M237.7,281.1h-6.3v-3.6h16.8v3.6H242v18.3h-4.3V281.1z'/%3e%3c/g%3e%3cg%3e%3cpath%20class='st2'%20d='M30.2,312.9H44v3.6h-9.5v5.5h6.2v3.3h-6.2v9.6h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M45.6,323.9c0-7.6,5.4-11.5,10.8-11.5c6.4,0,10.8,3.9,10.8,11.5c0,7.6-5.4,11.5-10.8,11.5%20C50,335.3,45.6,331.4,45.6,323.9z%20M62.8,324c0-5.2-2.5-8-6.5-8c-3.9,0-6.5,2.8-6.5,7.7c0,5.2,2.5,8.1,6.5,8.1%20C60.3,331.7,62.8,328.9,62.8,324z'/%3e%3cpath%20class='st2'%20d='M75.3,326.7h-0.2v8.2h-4.3v-21.9H77c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L75.3,326.7z%20M77,323.7c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.5-3.5-4.3-3.5h-1.9v7.4H77z'/%3e%3cpath%20class='st2'%20d='M97.6,312.9h6.5c6,0,8.5,2,8.5,5.5c0,3-1.7,4.5-4.1,5.1v0.1c2.6,0.5,4.5,1.7,4.5,5.1c0,3.5-2.5,6.2-8.6,6.2%20h-6.7V312.9z%20M104.3,321.9c3.2,0,4.1-1.1,4.1-2.9c0-1.8-1.2-2.6-4.1-2.6h-2.4v5.5H104.3z%20M104.4,331.3c3.2,0,4.3-1.1,4.3-3%20c0-1.9-1.1-3-4.3-3h-2.6v6H104.4z'/%3e%3cpath%20class='st2'%20d='M121.2,325.8l-7.2-12.9h4.7l4.8,9.2l4.9-9.2h4.2l-7.2,12.9v9h-4.3V325.8z'/%3e%3cpath%20class='st2'%20d='M133,323.9c0-7.6,4.8-11.5,10.7-11.5c3.6,0,5.7,1.1,6.9,2.1v4.8c-1.2-1.9-3.2-3.3-6.4-3.3%20c-4.4,0-6.9,2.7-6.9,7.7c0,5,2.4,8.3,6.3,8.3c1,0,2-0.1,2.7-0.4v-6.8h4.3v8.8c-1.5,1-3.9,1.8-7.2,1.8%20C137.3,335.3,133,331.5,133,323.9z'/%3e%3cpath%20class='st2'%20d='M153.8,323.9c0-7.6,4.8-11.5,10.7-11.5c3.6,0,5.7,1.1,6.9,2.1v4.8c-1.2-1.9-3.2-3.3-6.4-3.3%20c-4.4,0-6.9,2.7-6.9,7.7c0,5,2.4,8.3,6.3,8.3c1,0,2-0.1,2.7-0.4v-6.8h4.3v8.8c-1.5,1-3.9,1.8-7.2,1.8%20C158,335.3,153.8,331.5,153.8,323.9z'/%3e%3cpath%20class='st2'%20d='M175.7,312.9h4.3v9.8l8.7-9.8h4.4l-7.9,8.7l8.4,13.2h-4.8l-6.2-10.2l-2.6,2.8v7.4h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M193.8,312.9h4.4l5.2,15.4h0.1l5.3-15.4h4.1l-7.9,21.9h-3.5L193.8,312.9z'/%3e%3cpath%20class='st2'%20d='M219.3,315.1l-0.8-2.2h4.4l8.6,21.9h-4.5l-1.7-4.5h-8.1l-1.7,4.5h-4.1L219.3,315.1z%20M218.4,327.1h5.8l-2.3-6%20l-0.6-1.9l-0.6,1.9L218.4,327.1z'/%3e%3cpath%20class='st2'%20d='M234.1,312.9h4.3v18.3h8.2v3.7h-12.4V312.9z'/%3e%3cpath%20class='st2'%20d='M249.7,312.9h4.3v21.9h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M263.4,316.5h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V316.5z'/%3e%3cpath%20class='st2'%20d='M277,312.9h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6h9.7v3.6h-14V312.9z'/%3e%3cpath%20class='st2'%20d='M299.4,316.5h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V316.5z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Kr="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='14%20337%20406%20110'%20style='enable-background:new%2014%20337%20406%20110;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{display:none;}%20.st1{fill:%23003045;}%20.st2{fill:%2389BAD6;}%20.st3{fill:%23FFFFFF;}%20.st4{display:inline;fill:%23FFFFFF;}%20.st5{display:inline;fill:%23D7D4D1;}%20%3c/style%3e%3cg%20id='skisse__x28_forstørret_x29_'%20class='st0'%3e%3c/g%3e%3cg%20id='logo'%3e%3crect%20id='XMLID_5_'%20x='14'%20y='337'%20class='st1'%20width='640'%20height='110'/%3e%3cg%20id='XMLID_82_'%3e%3crect%20id='XMLID_80_'%20x='14'%20y='337'%20class='st2'%20width='150'%20height='110'/%3e%3cg%20id='XMLID_74_'%3e%3cpolygon%20id='XMLID_79_'%20class='st3'%20points='75.1,420.7%2083.2,426.1%2083.2,389.4%20103,402.2%20103,384%2075.1,365.9%20'/%3e%3cpolygon%20id='XMLID_78_'%20class='st3'%20points='41.9,424.2%2041.9,404.7%2060.9,392.4%2060.9,350.3%2027.3,372.1%2027.3,433.7%20'/%3e%3cpolygon%20id='XMLID_77_'%20class='st3'%20points='106.1,381.9%20106.1,417.1%20118.9,425.4%20118.9,354.7%2091.6,372.5%20'/%3e%3cpolygon%20id='XMLID_76_'%20class='st3'%20points='64,350.3%2064,409.8%2071.9,404.7%2071.9,363.9%2071.9,355.5%20'/%3e%3cpolygon%20id='XMLID_75_'%20class='st3'%20points='128.4,385.6%20122.1,389.7%20122.1,423.4%20128.4,419.3%20150.7,433.7%20150.7,399.9%20'/%3e%3c/g%3e%3c/g%3e%3cg%20id='XMLID_6_'%3e%3crect%20id='XMLID_81_'%20x='164.5'%20y='367.5'%20class='st1'%20width='255.5'%20height='79.5'/%3e%3cg%20id='XMLID_7_'%3e%3cg%20id='XMLID_44_'%3e%3cpath%20id='XMLID_71_'%20class='st3'%20d='M187.3,385.6h4.7c5.5,0,8.7,2.2,8.7,8.2s-4,8.2-8.7,8.2h-4.7V385.6z%20M191.9,399.4%20c4.2,0,5.5-1.6,5.5-5.4c0-3.7-1.3-5.6-5.5-5.6h-1.5v11H191.9z'/%3e%3cpath%20id='XMLID_69_'%20class='st3'%20d='M203.5,385.6h3.2v16.5h-3.2V385.6z'/%3e%3cpath%20id='XMLID_66_'%20class='st3'%20d='M213.7,396h-0.2v6.1h-3.2v-16.5h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L213.7,396z%20M215,393.7c2,0,3.2-1,3.2-2.9c0-1.9-1.2-2.7-3.2-2.7h-1.5v5.5h1.5V393.7z'/%3e%3cpath%20id='XMLID_64_'%20class='st3'%20d='M224.6,385.6h10.5v2.7h-7.3v4h4.9v2.5h-4.9v4.5h7.3v2.7h-10.5V385.6z'/%3e%3cpath%20id='XMLID_62_'%20class='st3'%20d='M238,385.6h3.2v7.4l6.5-7.3h3.3l-5.9,6.6l6.3,9.9h-3.6l-4.7-7.7l-1.9,2.1v5.5H238V385.6z'/%3e%3cpath%20id='XMLID_60_'%20class='st3'%20d='M256.8,388.4H252v-2.7h12.6v2.7H260v13.7h-3.2V388.4z'/%3e%3cpath%20id='XMLID_57_'%20class='st3'%20d='M265.7,393.9c0-5.7,4-8.6,8.1-8.6c4.8,0,8.1,3,8.1,8.6c0,5.7-4,8.6-8.1,8.6%20C269,402.5,265.7,399.6,265.7,393.9z%20M278.7,394c0-3.9-1.9-6-4.8-6s-4.8,2.1-4.8,5.8c0,3.9,1.9,6.1,4.8,6.1%20C276.7,399.8,278.7,397.7,278.7,394z'/%3e%3cpath%20id='XMLID_54_'%20class='st3'%20d='M288,396h-0.2v6.1h-3.2v-16.5h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L288,396z%20M289.3,393.7c2,0,3.2-1,3.2-2.9c0-1.9-1.2-2.7-3.2-2.7h-1.5v5.5h1.5V393.7z'/%3e%3cpath%20id='XMLID_51_'%20class='st3'%20d='M303.1,387.3l-0.6-1.7h3.3l6.5,16.5H309l-1.3-3.4h-6.1l-1.3,3.4h-3.1L303.1,387.3z%20M302.5,396.4h4.4l-1.7-4.5l-0.5-1.4l-0.5,1.4L302.5,396.4z'/%3e%3cpath%20id='XMLID_49_'%20class='st3'%20d='M316,388.4h-4.7v-2.7h12.6v2.7h-4.7v13.7H316V388.4z'/%3e%3cpath%20id='XMLID_47_'%20class='st3'%20d='M326.2,385.6h10.5v2.7h-7.3v4h4.9v2.5h-4.9v4.5h7.3v2.7h-10.5V385.6z'/%3e%3cpath%20id='XMLID_45_'%20class='st3'%20d='M343.1,388.4h-4.7v-2.7H351v2.7h-4.7v13.7h-3.2L343.1,388.4L343.1,388.4z'/%3e%3c/g%3e%3cg%20id='XMLID_8_'%3e%3cpath%20id='XMLID_42_'%20class='st3'%20d='M187.3,412.3h10.3v2.7h-7.1v4.1h4.7v2.4h-4.7v7.2h-3.2V412.3z'/%3e%3cpath%20id='XMLID_39_'%20class='st3'%20d='M198.8,420.5c0-5.7,4-8.6,8.1-8.6c4.8,0,8.1,3,8.1,8.6c0,5.7-4,8.6-8.1,8.6%20C202.1,429.1,198.8,426.2,198.8,420.5z%20M211.7,420.6c0-3.9-1.9-6-4.8-6c-2.9,0-4.8,2.1-4.8,5.8c0,3.9,1.9,6.1,4.8,6.1%20C209.8,426.4,211.7,424.3,211.7,420.6z'/%3e%3cpath%20id='XMLID_36_'%20class='st3'%20d='M221.1,422.6h-0.2v6.1h-3.2v-16.4h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L221.1,422.6z%20M222.4,420.3c2,0,3.2-1,3.2-2.9s-1.2-2.7-3.2-2.7h-1.5v5.5L222.4,420.3L222.4,420.3z'/%3e%3cpath%20id='XMLID_32_'%20class='st3'%20d='M237.8,412.3h4.9c4.5,0,6.4,1.5,6.4,4.1c0,2.3-1.3,3.4-3.1,3.8l0,0c2,0.3,3.3,1.3,3.3,3.9%20s-1.8,4.7-6.5,4.7h-5L237.8,412.3L237.8,412.3z%20M242.8,419c2.4,0,3.1-0.8,3.1-2.2c0-1.4-0.9-2-3.1-2H241v4.2H242.8z%20M243,426.1%20c2.4,0,3.2-0.8,3.2-2.3c0-1.4-0.8-2.3-3.2-2.3h-2v4.5h2V426.1z'/%3e%3cpath%20id='XMLID_30_'%20class='st3'%20d='M255.5,422l-5.4-9.7h3.5l3.6,6.9l3.7-6.9h3.2l-5.4,9.7v6.8h-3.2L255.5,422L255.5,422z'/%3e%3cpath%20id='XMLID_28_'%20class='st3'%20d='M264.5,420.5c0-5.7,3.6-8.6,8-8.6c2.7,0,4.3,0.8,5.2,1.6v3.6c-0.9-1.4-2.4-2.4-4.8-2.4%20c-3.3,0-5.2,2-5.2,5.7s1.8,6.2,4.7,6.2c0.8,0,1.5-0.1,2.1-0.3v-5.1h3.2v6.6c-1.1,0.7-2.9,1.4-5.4,1.4%20C267.7,429.1,264.5,426.3,264.5,420.5z'/%3e%3cpath%20id='XMLID_26_'%20class='st3'%20d='M280,420.5c0-5.7,3.6-8.6,8-8.6c2.7,0,4.3,0.8,5.2,1.6v3.6c-0.9-1.4-2.4-2.4-4.8-2.4%20c-3.3,0-5.2,2-5.2,5.7s1.8,6.2,4.7,6.2c0.8,0,1.5-0.1,2.1-0.3v-5.1h3.2v6.6c-1.1,0.7-2.9,1.4-5.4,1.4%20C283.2,429.1,280,426.3,280,420.5z'/%3e%3cpath%20id='XMLID_24_'%20class='st3'%20d='M296.5,412.3h3.2v7.3l6.5-7.3h3.3l-5.9,6.6l6.3,9.9h-3.6l-4.7-7.7l-1.9,2.1v5.5h-3.2%20L296.5,412.3L296.5,412.3z'/%3e%3cpath%20id='XMLID_22_'%20class='st3'%20d='M310.1,412.3h3.3l3.9,11.5h0.1l4-11.5h3.1l-5.9,16.5H316L310.1,412.3z'/%3e%3cpath%20id='XMLID_19_'%20class='st3'%20d='M329.2,413.9l-0.6-1.7h3.3l6.5,16.5h-3.3l-1.3-3.4h-6.1l-1.3,3.4h-3.1L329.2,413.9z%20M328.6,423h4.4l-1.7-4.5l-0.5-1.4l-0.5,1.4L328.6,423z'/%3e%3cpath%20id='XMLID_17_'%20class='st3'%20d='M340.4,412.3h3.2V426h6.1v2.8h-9.3L340.4,412.3L340.4,412.3z'/%3e%3cpath%20id='XMLID_15_'%20class='st3'%20d='M352.1,412.3h3.2v16.5h-3.2V412.3z'/%3e%3cpath%20id='XMLID_13_'%20class='st3'%20d='M362.3,415h-4.7v-2.7h12.6v2.7h-4.7v13.7h-3.2L362.3,415L362.3,415z'/%3e%3cpath%20id='XMLID_11_'%20class='st3'%20d='M372.6,412.3h10.5v2.7h-7.3v3.9h4.9v2.5h-4.9v4.6h7.3v2.7h-10.5V412.3z'/%3e%3cpath%20id='XMLID_9_'%20class='st3'%20d='M389.4,415h-4.7v-2.7h12.6v2.7h-4.7v13.7h-3.2L389.4,415L389.4,415z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='hamburgermeny'%20class='st0'%3e%3crect%20id='XMLID_94_'%20x='578'%20y='386'%20class='st4'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_95_'%20x='578'%20y='423'%20class='st4'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_96_'%20x='578'%20y='405'%20class='st4'%20width='60'%20height='6'/%3e%3c/g%3e%3cg%20id='hamburgermeny__hover'%20class='st0'%3e%3crect%20id='XMLID_97_'%20x='578'%20y='386'%20class='st5'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_93_'%20x='578'%20y='423'%20class='st5'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_91_'%20x='578'%20y='405'%20class='st5'%20width='60'%20height='6'/%3e%3c/g%3e%3c/svg%3e",Zr=e=>(e==null?void 0:e.logo)??"",Qr=e=>(e==null?void 0:e.logoPadding)??"",ea=e=>(e==null?void 0:e.appName)??"",F={navigationBarContainer:"_navigationBarContainer_n1cc0_1",mainContentLink:"_mainContentLink_n1cc0_1",compact:"_compact_n1cc0_30",navigationBar:"_navigationBar_n1cc0_1",preventStacking:"_preventStacking_n1cc0_63",logoContainer:"_logoContainer_n1cc0_82",childElements:"_childElements_n1cc0_91",menuToggle:"_menuToggle_n1cc0_97",hamburgerIcon:"_hamburgerIcon_n1cc0_125",active:"_active_n1cc0_161",dropdownContainer:"_dropdownContainer_n1cc0_170",dropdown:"_dropdown_n1cc0_170",primaryList:"_primaryList_n1cc0_195",secondaryList:"_secondaryList_n1cc0_196",line:"_line_n1cc0_392"},et=({listItem:e})=>typeof e=="string"?s.jsx("li",{children:s.jsx("span",{children:e})}):typeof e=="object"?s.jsx("li",{children:s.jsx("a",{href:e.href,children:e.name})}):null,ta=({primaryListItems:e=[],secondaryListItems:t=[],logoLink:n="",logoLinkTitle:a,openLogoLinkInNewTab:r,theme:o,compact:c,mainContentId:d,preventChildElementStacking:i=!1,children:l})=>{const[u,f]=x.useState(!1),h=()=>f(!u),y=L=>({padding:Qr(L)}),m=(L=e,$=0)=>L.length?s.jsx("ul",{className:F.primaryList,children:L.map((M,T)=>{const S=`${$}-${T}`;return M.listItems?s.jsxs("li",{children:[s.jsx("span",{children:M.name}),m(M.listItems,$+1)]},S):s.jsx(et,{listItem:M},S)})}):null,v=()=>t.length?s.jsx("ul",{className:F.secondaryList,children:t.map(L=>s.jsx(et,{listItem:L},L.name))}):null,b=(L,$)=>{const M=Zr(o),T=ea(o),S=L&&$?"":M&&T?`${T} logo`:"DIBK logo",B=M?s.jsx("img",{alt:S,src:M,style:y(o)}):s.jsx("img",{alt:S,src:c?Kr:Gr});return L!=null&&L.length?s.jsx("a",{href:L,title:$,target:r?"_blank":void 0,rel:r?"noopener noreferrer":void 0,children:B}):B},_=e.length>0||t.length>0,C=x.useId(),w=x.useId(),I=x.useId();return s.jsxs("div",{className:P([c&&F.compact,F.navigationBarContainer]),children:[d&&s.jsx("a",{id:C,href:`#${d}`,className:F.mainContentLink,children:s.jsx("span",{id:w,children:"Hopp til hovedinnhold"})}),s.jsxs("div",{className:P([F.navigationBar,i&&F.preventStacking]),children:[s.jsx("div",{className:F.logoContainer,children:b(n,a)}),l&&s.jsx("div",{className:F.childElements,children:l}),_&&s.jsxs("button",{type:"button",className:`${F.menuToggle} ${u?F.active:""}`,onClick:h,"aria-expanded":u?"true":"false","aria-controls":"main-menu-dropdown",children:[!c&&"Meny",s.jsxs("span",{className:F.hamburgerIcon,children:[s.jsx("span",{className:F.line}),s.jsx("span",{className:F.line}),s.jsx("span",{className:F.line})]})]})]}),_&&s.jsx("div",{className:P([F.dropdownContainer,u&&F.active]),children:s.jsxs("div",{id:I,className:F.dropdown,children:[m(),v()]})})]})},tt={paper:"_paper_1lgl3_1",noMargin:"_noMargin_1lgl3_6",noPadding:"_noPadding_1lgl3_9"},na=({noMargin:e=!1,noPadding:t=!1,children:n})=>{const a=[tt.paper,e&&tt.noMargin,t&&tt.noPadding].filter(Boolean).join(" ");return s.jsx("div",{className:a,children:n})},Xt={progressBar:"_progressBar_t5aid_1",hasErrors:"_hasErrors_t5aid_23"},ra=({progress:e=0,hasErrors:t=!1})=>s.jsx("div",{className:`${Xt.progressBar} ${t?Xt.hasErrors:""}`,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,style:{"--value":e}}),Ae={radioButtonIcon:"_radioButtonIcon_32fe0_1",hasErrors:"_hasErrors_32fe0_22",checked:"_checked_32fe0_32",disabled:"_disabled_32fe0_48"},Wt=({size:e="10px",checked:t=!1,disabled:n=!1,hasErrors:a=!1})=>{const r={height:e,width:e},o=[Ae.radioButtonIcon,t&&Ae.checked,n&&Ae.disabled,a&&Ae.hasErrors].filter(Boolean).join(" ");return s.jsx("span",{className:o,style:r})},ye={radioButtonInput:"_radioButtonInput_1i7cy_1",requiredSymbol:"_requiredSymbol_1i7cy_6",disabled:"_disabled_1i7cy_13",labelText:"_labelText_1i7cy_19",hasErrors:"_hasErrors_1i7cy_27"},Ut=({checked:e=!1,disabled:t=!1,required:n=!1,requiredGroup:a=!1,id:r,name:o="",onChange:c,contentOnly:d=!1,hasErrors:i=!1,inputValue:l,tabIndex:u,children:f,"aria-controls":h,"aria-describedby":y})=>{const m=[ye.radioButtonInput,e&&ye.checked,t&&ye.disabled,i&&ye.hasErrors].filter(Boolean).join(" "),v={checked:e,disabled:t,hasErrors:!d&&i},b={id:r,name:o,type:"radio",value:l,checked:e,disabled:t,required:n||a,onChange:c,tabIndex:u??void 0,"aria-controls":h,"aria-invalid":i?"true":void 0,"aria-describedby":y};return s.jsxs("label",{htmlFor:r,className:m,children:[!d&&s.jsxs(s.Fragment,{children:[s.jsx(Wt,{...v}),s.jsx("input",{...b})]}),s.jsxs("span",{className:ye.labelText,children:[f,n&&s.jsx("img",{src:re,alt:"",className:ye.requiredSymbol})]})]})},Yt={radioButtonList:"_radioButtonList_1cyu3_1",requiredSymbol:"_requiredSymbol_1cyu3_16"},aa=({legend:e,legendSize:t,required:n=!1,compact:a=!1,children:r})=>{const o=c=>ue(c).map(i=>{var l;return x.isValidElement(i)&&((l=i.type)==null?void 0:l.displayName)==="RadioButtonListItem"?x.cloneElement(i,{requiredGroup:n,compact:a,key:`radioButtonListItem-${i.key}`}):i});return s.jsxs("fieldset",{className:Yt.radioButtonList,children:[!!(e!=null&&e.length)&&s.jsxs("legend",{children:[t?s.jsx(Ke,{size:t,children:e}):e,n&&s.jsx("img",{src:re,alt:"",className:Yt.requiredSymbol})]}),o(x.Children.toArray(r))]})},xe={radioButtonListItem:"_radioButtonListItem_1ggab_1",contentOnly:"_contentOnly_1ggab_26",compact:"_compact_1ggab_26",disabled:"_disabled_1ggab_41",checked:"_checked_1ggab_44"},oa=({inputValue:e,checked:t=!1,disabled:n=!1,required:a=!1,requiredGroup:r=!1,name:o="",id:c,onChange:d,contentOnly:i=!1,compact:l=!1,hasErrors:u=!1,"aria-controls":f,"aria-describedby":h,children:y})=>{const m=P([xe.radioButtonListItem,t&&xe.checked,n&&xe.disabled,l&&xe.compact,i&&xe.contentOnly,u&&xe.hasErrors]),v={onChange:d,inputValue:e,checked:t,disabled:n,required:a,requiredGroup:r,contentOnly:i,hasErrors:u,"aria-controls":f,"aria-describedby":h,id:c,name:o};return s.jsx("div",{className:m,children:s.jsx(Ut,{...v,children:y})})},se={select:"_select_11vnt_1",requiredSymbol:"_requiredSymbol_11vnt_1",selectContainer:"_selectContainer_11vnt_8",selectListArrow:"_selectListArrow_11vnt_11",multipleSelectDropdown:"_multipleSelectDropdown_11vnt_40",multipleSelectElement:"_multipleSelectElement_11vnt_50",hasErrors:"_hasErrors_11vnt_98"},sa=e=>{const{id:t,name:n="",required:a=!1,disabled:r=!1,options:o=[],width:c,label:d="",contentOnly:i=!1,keyAsContent:l=!1,placeholder:u="",placeholderValue:f="",defaultContent:h="",role:y,"aria-describedby":m,hasErrors:v=!1,errorMessage:b=""}=e,[_,C]=x.useState(!1),w=x.useRef(null),I=x.useCallback(k=>{k&&ut(k)},[]),L=()=>C(!1);x.useEffect(()=>{const k=R=>{R.key==="Escape"&&L()},z=R=>{w.current&&!w.current.contains(R.target)&&L()};return document.addEventListener("mousedown",z),document.addEventListener("keydown",k),()=>{document.removeEventListener("mousedown",z),document.removeEventListener("keydown",k)}},[]);const $=k=>typeof k=="object"?{key:k.key,value:k.value}:{key:k,value:k},M=k=>{const z=o.map($).find(R=>R.value===k||R.key===k);return z?z.key??z.value:k},T=k=>Array.isArray(k)?k:k==null?[]:[k],S=()=>e.value!==void 0?T(e.value):e.defaultValue!==void 0?T(e.defaultValue):[],B=()=>{const k=S();return k.length===0?u||h||"":k.map(M).join(", ")},X=k=>{const z=S(),U=z.includes(k)?z.filter(ie=>ie!==k):[...z,k];e.multiple&&e.onChange(U)},W=()=>{const k=S();return o.map(z=>{const{key:R,value:U}=$(z),ie=k.includes(U),p=`${t}-${String(U)}`;return s.jsx(Bt,{id:p,value:U,checked:ie,onChange:()=>X(U),children:R},String(U))})},N=()=>`${t}-errorMessage`;if(i){const k=S(),z=k.length===0?h:l?k.map(M).join(", "):k.join(", ");return s.jsxs("div",{className:se.select,children:[s.jsx(de,{htmlFor:t,children:d}),s.jsx("span",{children:z})]})}const A=k=>{const z=o.map($).find(R=>String(R.value)===k);return z?z.value:k};return s.jsxs("div",{className:se.select,children:[s.jsxs(de,{htmlFor:t,children:[d,a&&s.jsx("img",{src:re,alt:"",className:se.requiredSymbol})]}),s.jsxs("div",{className:se.selectContainer,style:c?{maxWidth:c}:void 0,children:[s.jsx("span",{className:se.selectListArrow}),e.multiple?s.jsxs("div",{ref:w,children:[s.jsx("button",{type:"button",id:t,"aria-haspopup":"listbox","aria-expanded":_,onClick:()=>C(k=>!k),className:se.multipleSelectElement,disabled:r,children:B()}),_&&s.jsx("div",{ref:I,className:se.multipleSelectDropdown,role:"listbox","aria-multiselectable":"true","aria-labelledby":t,children:s.jsx(Tt,{compact:!0,children:W()})})]}):s.jsxs("select",{name:n,required:a,disabled:r,onChange:k=>e.onChange(A(k.target.value)),id:t,role:y,className:P([v&&se.hasErrors]),"aria-describedby":v&&b?N():m,"aria-invalid":v||void 0,style:c?{maxWidth:c}:void 0,...e.value!==void 0?{value:e.value}:e.defaultValue!==void 0?{defaultValue:e.defaultValue}:{},children:[u&&s.jsx("option",{value:f,disabled:!0,children:u}),o.map(k=>{const{key:z,value:R}=$(k);return s.jsx("option",{value:String(R),children:z},String(R))})]})]}),s.jsx(ge,{id:N(),content:b})]})},J={table:"_table_19a1d_1",thButton:"_thButton_19a1d_30",sortable:"_sortable_19a1d_41",label:"_label_19a1d_51",sortIndicators:"_sortIndicators_19a1d_55",sortArrow:"_sortArrow_19a1d_62",activeArrow:"_activeArrow_19a1d_65",evenRow:"_evenRow_19a1d_69",oddRow:"_oddRow_19a1d_72"},ia=({columns:e,data:t,caption:n,getRowId:a})=>{const[r,o]=x.useState(null);x.useEffect(()=>{const u=e.find(f=>f.sortable);o(u?{headerKey:u.key,direction:"asc"}:null)},[e]);const c=x.useMemo(()=>{const u=new Map;for(const f of e)u.set(f.key,f);return u},[e]),d=x.useMemo(()=>{if(!r)return t;const u=c.get(r.headerKey);if(!u)return t;const f=u.sortAccessor??u.accessor;if(!f)return t;const h=[...t];return h.sort((y,m)=>{const v=f(y),b=f(m);if(v==null||b==null)return 0;if(typeof v=="number"&&typeof b=="number")return r.direction==="asc"?v-b:b-v;if(v instanceof Date&&b instanceof Date)return r.direction==="asc"?v.getTime()-b.getTime():b.getTime()-v.getTime();const _=String(v),C=String(b);return r.direction==="asc"?_.localeCompare(C,void 0,{numeric:!0}):C.localeCompare(_,void 0,{numeric:!0})}),h},[t,r,c]),i=u=>{o(f=>!f||f.headerKey!==u?{headerKey:u,direction:"asc"}:{headerKey:u,direction:f.direction==="asc"?"desc":"asc"})},l=(u,f)=>{if(f)return(r==null?void 0:r.headerKey)!==u?"none":r.direction==="asc"?"ascending":"descending"};return s.jsxs("table",{className:J.table,children:[n&&s.jsx("caption",{children:n}),s.jsx("thead",{children:s.jsx("tr",{children:e.map(({key:u,label:f,sortable:h,ariaLabel:y})=>{const m=(r==null?void 0:r.headerKey)===u,v=m&&r.direction==="asc",b=m&&r.direction==="desc";return s.jsx("th",{"aria-sort":l(u,h),children:s.jsxs("button",{type:"button",className:`${J.thButton} ${h?J.sortable:""}`,onClick:h?()=>i(u):void 0,disabled:!h,"aria-label":h?`${y??f}: sort ${m&&v?"descending":"ascending"}`:void 0,children:[s.jsx("span",{className:J.label,children:f}),h&&s.jsxs("span",{className:J.sortIndicators,"aria-hidden":"true",children:[s.jsx("span",{className:`${J.sortArrow} ${v?J.activeArrow:""}`,children:"▲"}),s.jsx("span",{className:`${J.sortArrow} ${b?J.activeArrow:""}`,children:"▼"})]})]})},u)})})}),s.jsx("tbody",{children:d.map((u,f)=>s.jsx("tr",{className:f%2===0?J.evenRow:J.oddRow,children:e.map(h=>{var y;return s.jsx("td",{children:h.render?h.render(u):String(((y=h.accessor)==null?void 0:y.call(h,u))??"")},h.key)})},a==null?void 0:a(u,f)))})]})},la=e=>{let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length;for(let r=0;r<e;r++)t+=n.charAt(Math.floor(Math.random()*a));return t},nt={textarea:"_textarea_1596u_1",requiredSymbol:"_requiredSymbol_1596u_4",hasErrors:"_hasErrors_1596u_55"},ca=({id:e,onChange:t,onBlur:n,name:a="",required:r=!1,readOnly:o,disabled:c,width:d,resize:i="both",value:l,defaultValue:u,elementKey:f,rows:h,label:y="",contentOnly:m=!1,placeholder:v="",defaultContent:b="","aria-describedby":_,hasErrors:C=!1,errorMessage:w=""})=>{const I=()=>`${e}-errorMessage`,L=!(l!=null&&l.length)&&(u!=null&&u.length)?u:void 0,$=f||`${e}-${la(6)}`,M={...d&&{maxWidth:d},...i&&{resize:i}},T={name:a,readOnly:o,disabled:c,required:r,id:e,onChange:t,onBlur:n,value:L?void 0:l,defaultValue:L||void 0,placeholder:v,rows:h?parseInt(h,10):void 0,className:C?nt.hasErrors:"","aria-describedby":C&&w?I():_,"aria-invalid":C?"true":void 0,style:M};return s.jsxs("div",{className:nt.textarea,children:[s.jsxs(de,{htmlFor:e,children:[y,r&&s.jsx("img",{src:re,alt:"",className:nt.requiredSymbol})]}),m?s.jsx("span",{children:l||u||b}):s.jsx("textarea",{...T},$),s.jsx(ge,{id:I(),content:w})]})},da=({theme:e,children:t})=>{const n=rn(e),a=on(n);return an("theme-provider",`:root {${a}}`),t},ua={toggleNavigationButton:"_toggleNavigationButton_1eb2w_1"},ha=({id:e,htmlTag:t="button",showText:n,hideText:a,buttonProps:r={},isOpen:o=!1})=>x.createElement(t,{...r,className:ua.toggleNavigationButton,id:e||void 0},o?a:n),K={wizardTopnavItem:"_wizardTopnavItem_5ar16_1",wizardTopnavItemContent:"_wizardTopnavItemContent_5ar16_4",vertical:"_vertical_5ar16_7",stepNumber:"_stepNumber_5ar16_24",stepName:"_stepName_5ar16_36",active:"_active_5ar16_46",finished:"_finished_5ar16_46",hasErrors:"_hasErrors_5ar16_46",horizontal:"_horizontal_5ar16_64"},ma="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20aria-label='Ferdig'%20style='fill:%20rgb(23,%20121,%2018);'%3e%3cmask%20id='mask0_1089_7430'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%20style='mask-type:%20alpha;'%3e%3crect%20width='20'%20height='20'%3e%3c/rect%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1089_7430)'%3e%3cpath%20d='M5.71427%208.57149L3.80951%2010.4762L8.57141%2015.2382L17.1428%206.66672L15.2381%204.76196L8.57141%2011.4286L5.71427%208.57149Z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",Jt=({step:e,index:t,activeStepId:n,direction:a="vertical"})=>{const r=n===e.id,o=a==="vertical",c=P([K.wizardTopnavItem,r&&K.active,e.finished&&K.finished,e.hasErrors&&K.hasErrors,K[a]]),d=r?"step":void 0,i=()=>s.jsxs(s.Fragment,{children:[s.jsx("span",{className:K.stepNumber,children:t+1}),s.jsx("span",{className:K.stepName,children:e.name}),o&&e.finished&&!r&&s.jsx("img",{src:ma,alt:"",className:K.checkmarkSymbol})]});return e.link&&Object.keys(e.link).length>0?s.jsx("li",{className:c,children:s.jsx(Se,{to:e.link,"aria-current":d,className:K.wizardTopnavItemContent,children:i()})}):s.jsx("li",{className:c,children:s.jsx("span",{"aria-current":d,className:K.wizardTopnavItemContent,children:i()})})},rt={wizardTopnavContainer:"_wizardTopnavContainer_qiy2o_1",wizardTopnav:"_wizardTopnav_qiy2o_1",vertical:"_vertical_qiy2o_6",horizontal:"_horizontal_qiy2o_11"},fa=({steps:e,activeStepId:t,direction:n="vertical","aria-label":a})=>{const r=Object.keys(e),c=`I dette skjemaet er det totalt ${r.length} steg som du skal gå igjennom`,d=a!=null&&a.length?a:c;return s.jsx("nav",{"aria-label":d,className:P([rt.wizardTopnavContainer,rt[n]]),children:s.jsx("ol",{className:rt.wizardTopnav,children:r.map((i,l)=>s.jsx(Jt,{step:e[i],activeStepId:t,direction:n,index:l},i))})})};j.Accordion=dn,j.Button=Je,j.CheckBoxIcon=Ge,j.CheckBoxInput=Nt,j.CheckBoxList=Tt,j.CheckBoxListItem=Bt,j.Container=Dt,j.ContentBox=Ir,j.DescriptionDetails=Nr,j.DescriptionList=Mr,j.DescriptionTerm=Tr,j.Dialog=Dr,j.DragAndDropFileInput=Pr,j.ErrorBox=Ar,j.ErrorMessage=ge,j.Footer=Fr,j.Header=Ke,j.InfoBox=Or,j.InputField=Hr,j.Label=de,j.Lead=Wr,j.List=Ur,j.ListItem=Yr,j.LoadingAnimation=Jr,j.NavigationBar=ta,j.NavigationBarListItem=et,j.Paper=na,j.ProgressBar=ra,j.RadioButtonIcon=Wt,j.RadioButtonInput=Ut,j.RadioButtonList=aa,j.RadioButtonListItem=oa,j.Select=sa,j.Table=ia,j.Textarea=ca,j.ThemeProvider=da,j.ToggleNavigationButton=ha,j.WizardNavigation=fa,j.WizardNavigationStep=Jt,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
34
34
  //# sourceMappingURL=index.umd.js.map