PageSourceSearch

https://www.furuvik.se/a2bb2e2efa4f8e80776c200c5bfc4590aeaecb87-61805a421a1df8681c96.js

js furuvik.se collected 2026-09-24 21:14:23 UTC 200,341 bytes, 3 lines download raw bytes

vendor: 8,140 bytes, lines 1-2
1/*! For license information please see a2bb2e2efa4f8e80776c200c5bfc4590aeaecb87-61805a421a1df8681c96.js.LICENSE.txt */
2(self.webpackChunkparks_furuvik=self.webpackChunkparks_furuvik||[]).push([[870],{3254:function(e,t,n){"use strict";n.d(t,{A:function(){return U}});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create;Object.create;var o=n(96540),a="right-scroll-bar-position",s="width-before-scroll-bar";function l(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var c="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,u=new WeakMap;function d(e,t){var n,r,i,a=(n=t||null,r=function(t){return e.forEach(function(e){return l(e,t)})},(i=(0,o.useState)(function(){return{value:n,callback:r,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}})[0]).callback=r,i.facade);return c(function(){var t=u.get(a);if(t){var n=new Set(t),r=new Set(e),i=a.current;n.forEach(function(e){r.has(e)||l(e,null)}),r.forEach(function(e){n.has(e)||l(e,i)})}u.set(a,e)},[e]),a}function f(e){return e}function m(e,t){void 0===t&&(t=f);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}var h=function(e){void 0===e&&(e={});var t=m(null);return t.options=r({async:!0,ssr:!1},e),t}(),p=function(){},g=o.forwardRef(function(e,t){var n=o.useRef(null),a=o.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),s=a[0],l=a[1],c=e.forwardProps,u=e.children,f=e.className,m=e.removeScrollBar,g=e.enabled,v=e.shards,y=e.sideCar,b=e.noIsolation,w=e.inert,x=e.allowPinchZoom,E=e.as,S=void 0===E?"div":E,T=e.gapMode,C=i(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=y,A=d([n,t]),I=r(r({},C),s);return o.createElement(o.Fragment,null,g&&o.createElement(k,{sideCar:h,removeScrollBar:m,shards:v,noIsolation:b,inert:w,setCallbacks:l,allowPinchZoom:!!x,lockRef:n,gapMode:T}),c?o.cloneElement(o.Children.only(u),r(r({},I),{ref:A})):o.createElement(S,r({},I,{className:f,ref:A}),u))});g.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},g.classNames={fullWidth:s,zeroRight:a};var v,y=function(e){var t=e.sideCar,n=i(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return o.createElement(a,r({},n))};y.isSideCarExport=!0;function b(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=v||n.nc;return t&&e.setAttribute("nonce",t),e}var w=function(){var e=0,t=null;return{add:function(n){var r,i;0==e&&(t=b())&&(i=n,(r=t).styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},x=function(){var e,t=(e=w(),function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},E={left:0,top:0,right:0,gap:0},S=function(e){return parseInt(e||"",10)||0},T=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return E;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[S(n),S(r),S(i)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},C=x(),k="data-scroll-locked",A=function(e,t,n,r){var i=e.left,o=e.top,l=e.right,c=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(c,"px ").concat(r,";\n  }\n  body[").concat(k,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(l,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(c,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(a," {\n    right: ").concat(c,"px ").concat(r,";\n  }\n  \n  .").concat(s," {\n    margin-right: ").concat(c,"px ").concat(r,";\n  }\n  \n  .").concat(a," .").concat(a," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(s," .").concat(s," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(k,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n  }\n")},I=function(){var e=parseInt(document.body.getAttribute(k)||"0",10);return isFinite(e)?e:0},L=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;o.useEffect(function(){return document.body.setAttribute(k,(I()+1).toString()),function(){var e=I()-1;e<=0?document.body.removeAttribute(k):document.body.setAttribute(k,e.toString())}},[]);var a=o.useMemo(function(){return T(i)},[i]);return o.createElement(C,{styles:A(a,!t,i,n?"":"!important")})},N=!1;if("undefined"!=typeof window)try{var j=Object.defineProperty({},"passive",{get:function(){return N=!0,!0}});window.addEventListener("test",j,j),window.removeEventListener("test",j,j)}catch(K){N=!1}var O=!!N&&{passive:!1},_=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},P=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),R(e,r)){var i=D(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},R=function(e,t){return"v"===e?function(e){return _(e,"overflowY")}(t):function(e){return _(e,"overflowX")}(t)},D=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},M=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},F=function(e){return[e.deltaX,e.deltaY]},B=function(e){return e&&"current"in e?e.current:e},V=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},W=0,Q=[];function H(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var z,q=(z=function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(W++)[0],a=o.useState(x)[0],s=o.useRef(e);o.useEffect(function(){s.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}
2([e.lockRef.current],(e.shards||[]).map(B),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,o=M(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-o[0],c="deltaY"in e?e.deltaY:a[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=P(d,u);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=P(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=i),!i)return!0;var m=r.current||i;return function(e,t,n,r,i){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{var m=D(e,s),h=m[0],p=m[1]-m[2]-o*h;(h||p)&&R(e,s)&&(d+=p,f+=h),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&a>d)||!u&&(i&&Math.abs(f)<1||!i&&-a>f))&&(c=!0),c}(m,t,e,"h"===m?l:c,!0)},[]),c=o.useCallback(function(e){var n=e;if(Q.length&&Q[Q.length-1]===a){var r="deltaY"in n?F(n):M(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,i=r,t[0]===i[0]&&t[1]===i[1]);var t,i})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var o=(s.current.shards||[]).map(B).filter(Boolean).filter(function(e){return e.contains(n.target)});(o.length>0?l(n,o[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=o.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:H(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=o.useCallback(function(e){n.current=M(e),r.current=void 0},[]),f=o.useCallback(function(t){u(t.type,F(t),t.target,l(t,e.lockRef.current))},[]),m=o.useCallback(function(t){u(t.type,M(t),t.target,l(t,e.lockRef.current))},[]);o.useEffect(function(){return Q.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",c,O),document.addEventListener("touchmove",c,O),document.addEventListener("touchstart",d,O),function(){Q=Q.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,O),document.removeEventListener("touchmove",c,O),document.removeEventListener("touchstart",d,O)}},[]);var h=e.removeScrollBar,p=e.inert;return o.createElement(o.Fragment,null,p?o.createElement(a,{styles:V(i)}):null,h?o.createElement(L,{gapMode:e.gapMode}):null)},h.useMedium(z),y),G=o.forwardRef(function(e,t){return o.createElement(g,r({},e,{ref:t,sideCar:q}))});G.classNames=g.classNames;var U=G},4163:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(74848),i="core--input-helper-text-module--helper-text--a2e2a6",o=n(2160),a=n(96864),s=e=>{let{helperText:t,contentfulLabelId:n}=e;return(0,r.jsx)(o.P.div,{initial:{opacity:0}
2,animate:{opacity:1},children:(0,r.jsx)("p",{"data-contentful-label-id":n,className:(0,a.TD)(i,"body-s"),children:t})},"helperText")}},7971:function(e,t,n){"use strict";n.d(t,{C:function(){return a}});var r=n(96540),i=n(91071),o=n(88200);var a=e=>{const{present:t,children:n}=e,a=function(e){const[t,n]=r.useState(),i=r.useRef({}),a=r.useRef(e),l=r.useRef("none"),c=e?"mounted":"unmounted",[u,d]=function(e,t){return r.useReducer((e,n)=>t[e][n]??e,e)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect(()=>{const e=s(i.current);l.current="mounted"===u?e:"none"},[u]),(0,o.N)(()=>{const t=i.current,n=a.current;if(n!==e){const r=l.current,i=s(t);if(e)d("MOUNT");else if("none"===i||"none"===t?.display)d("UNMOUNT");else{d(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}a.current=e}},[e,d]),(0,o.N)(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,r=r=>{const o=s(i.current).includes(r.animationName);if(r.target===t&&o&&(d("ANIMATION_END"),!a.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},o=e=>{e.target===t&&(l.current=s(i.current))};return t.addEventListener("animationstart",o),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",o),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:r.useCallback(e=>{e&&(i.current=getComputedStyle(e)),n(e)},[])}}(t),l="function"==typeof n?n({present:a.isPresent}):r.Children.only(n),c=(0,i.s)(a.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(l));return"function"==typeof n||a.isPresent?r.cloneElement(l,{ref:c}):null};function s(e){return e?.animationName||"none"}a.displayName="Presence"},9957:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{m:function(){return r}})},10263:function(e,t,n){"use strict";n.d(t,{c:function(){return i}});var r=n(96540);function i(e){const t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},12729:function(e){"use strict";const t=/[\p{Lu}]/u,n=/[\p{Ll}]/u,r=/^[\p{Lu}](?![\p{Lu}])/gu,i=/([\p{Alpha}\p{N}_]|$)/u,o=/[_.\- ]+/,a=new RegExp("^"+o.source),s=new RegExp(o.source+i.source,"gu"),l=new RegExp("\\d+"+i.source,"gu"),c=(e,i)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");if(i={pascalCase:!1,preserveConsecutiveUppercase:!1,...i},0===(e=Array.isArray(e)?e.map(e=>e.trim()).filter(e=>e.length).join("-"):e.trim()).length)return"";const o=!1===i.locale?e=>e.toLowerCase():e=>e.toLocaleLowerCase(i.locale),c=!1===i.locale?e=>e.toUpperCase():e=>e.toLocaleUpperCase(i.locale);if(1===e.length)return i.pascalCase?c(e):o(e);return e!==o(e)&&(e=((e,r,i)=>{let o=!1,a=!1,s=!1;for(let l=0;l<e.length;l++){const c=e[l];o&&t.test(c)?(e=e.slice(0,l)+"-"+e.slice(l),o=!1,s=a,a=!0,l++):a&&s&&n.test(c)?(e=e.slice(0,l-1)+"-"+e.slice(l-1),s=a,a=!1,o=!0):(o=r(c)===c&&i(c)!==c,s=a,a=i(c)===c&&r(c)!==c)}return e})(e,o,c)),e=e.replace(a,""),e=i.preserveConsecutiveUppercase?((e,t)=>(r.lastIndex=0,e.replace(r,e=>t(e))))(e,o):o(e),i.pascalCase&&(e=c(e.charAt(0))+e.slice(1)),((e,t)=>(s.lastIndex=0,l.lastIndex=0,e.replace(s,(e,n)=>t(n)).replace(l,e=>t(e))))(e,c)};e.exports=c,e.exports.default=c},13562:function(e,t,n){"use strict";n.d(t,{L:function(){return i},h:function(){return r}});const r=new Set(["Escape","Esc"]),i=new(function(){function e(){this.stack=[],this.documentHandler=e=>{const t=this.stack[this.stack.length-1];t&&t.documentEventListener(e)}}var t=e.prototype;return t.registerNewlyOpenedModal=function(e){0===this.stack.length&&document.addEventListener("keydown",this.documentHandler,!0),-1===this.stack.findIndex(t=>t.modalKey===e.modalKey)?this.stack.push(e):console.log("ModalStackManager: Modal with key already registered, skipping new register: ",e.modalKey)},t.unregisterClosedModal=function(e){const t=this.stack.findIndex(t=>t.modalKey===e);-1!==t&&this.stack.splice(t,1),0===this.stack.length&&document.removeEventListener("keydown",this.documentHandler,!0)},t.isAnyModalOpen=function(){return this.stack.length>0},t.isModalOpen=function(e){return this.stack.some(t=>t.modalKey===e)},e}())},18723:function(e,t,n){"use strict";var r;n.d(t,{B:function(){return l}});var i=n(96540),o=n(88200),a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>{}),s=0;function l(e){const[t,n]=i.useState(a());return(0,o.N)(()=>{e||n(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},20065:function(e,t,n){"use strict";n.d(t,{n:function(){return u}});var r=n(98587),i=n(74848),o=n(32389),a={summaryTotalWrapper:"core--summary-total-module--summary-total-wrapper--01547c",row:"core--summary-total-module--row--8c9de2",summaryTotal:"core--summary-total-module--summary-total--385946"},s=n(96864),l=n(1967);const c=["labelId"];function u(e){let{labelId:t}=e,n=(0,r.A)(e,c);const{t:u}=(0,o.Bd)();if("noPrice"===n.type)return(0,i.jsx)("div",{className:a.summaryTotalWrapper,children:(0,i.jsxs)("div",{className:(0,s.TD)(a.row,a.summaryTotal,"bold"),"data-testid":"summary-total",children:[(0,i.jsx)("div",{"data-contentful-label-id":t,children:u(t)}),(0,i.jsx)("div",{children:"—"})]})});const{price:d,originalProductSummaryAmount:f}=n;if(!f)return(0,i.jsx)("div",{className:a.summaryTotalWrapper,children:(0,i.jsxs)("div",{className:(0,s.TD)(a.row,a.summaryTotal,"bold"),"data-testid":"summary-total",children:[(0,i.jsx)("div",{"data-contentful-label-id":t,children:u(t)}),(0,i.jsx)("div",{children:(0,l.qO)(d)})]})});const m=d-f;return(0,i.jsxs)("div",{className:a.summaryTotalWrapper,children:[(0,i.jsxs)("div",{className:a.row,children:[(0,i.jsx)("div",{"data-contentful-label-id":"cartSummaryProducts",children:u("cartSummaryProducts")}),(0,i.jsx)("div",{children:(0,l.qO)(f)})]}),(0,i.jsxs)("div",{className:a.row,children:[(0,i.jsx)("div",{"data-contentful-label-id":"cartSummaryDeductedDiscounts",children:u("cartSummaryDeductedDiscounts")}),(0,i.jsx)("div",{children:(0,l.qO)(m)})]}),(0,i.jsxs)("div",{className:(0,s.TD)(a.row,a.summaryTotal,"bold"),"data-testid":"summary-total",children:[(0,i.jsx)("div",{"data-contentful-label-id":t,children:u(t)}),(0,i.jsx)("div",{children:(0,l.qO)(d)})]})]})}},20121:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(98587),i=n(74848),o={label:"core--input-label-module--label--2c5711",required:"core--input-label-module--required--cb2c56"},a=n(96864),s=n(32389);const l=["label","contentfulLabelId","inputName","additionalText","isRequired","isGroupedInput"];var c=e=>{let{label:t,contentfulLabelId:n,inputName:c,additionalText:u,isRequired:d,isGroupedInput:f}=e,m=(0,r.A)(e,l);const{t:h}=(0,s.Bd)();return(0,i.jsxs)("label",Object.assign({"data-contentful-label-id":n,htmlFor:c,className:(0,a.TD)(o.label,f?"p_small":"body-m","bold")},m,{children:[t,u&&(0,i.jsx)("span",{className:o.additionalText,children:" ("+u+")"}),d&&(0,i.jsx)("span",{"data-contentful-label-id":"mandatory",className:o.required+" body-s bold",children:" ("+h("mandatory")+")"})]}))}},25463:function(e,t,n){"use strict";n.d(t,{a:function(){return m}});var r=n(74848),i=n(96540),o={modalWrapper:"core--modal-module--modal-wrapper--c70744",modalOverlay:"core--modal-module--modal-overlay--a27f2d",modalOpacity:"core--modal-module--modal-opacity--da63e6",modalContent:"core--modal-module--modal-content--341d83",modalBottomIn:"core--modal-module--modal-bottom-in--3d8886",modalOpacityReverse:"core--modal-module--modal-opacity-reverse--8c7cde",modalBottomOut:"core--modal-module--modal-bottom-out--cc73d4",modalLeft:"core--modal-module--modal-left--75eac
25",modalLeftReverse:"core--modal-module--modal-left-reverse--3d112b"},a=n(40961),s=e=>{let{portalId:t,children:n}=e;const[r,o]=(0,i.useState)(null);return(0,i.useEffect)(()=>{if("undefined"!=typeof window){const e=document.getElementById(null!=t?t:"");e&&o(e)}},[t]),r?(0,a.createPortal)(n,r):null},l=n(13562),c=n(2160),u=n(67561),d=n(96864);const f="input, select, textarea, a, button, area",m=e=>{let{id:t,isOpen:n,className:a,innerClassName:m,onClose:h,refWrapperElement:p,disableScrollClassName:g="",portalId:v,modalTitle:y,roleType:b="dialog",modalDescription:w,modalOnAnimationEnd:x,modalOnTransitionEnd:E,overlayOnAnimationEnd:S,overlayOnTransitionEnd:T,disableInitialFocusInModal:C,disableTouchLock:k=!0,isClosable:A=!0,verticalContentPosition:I,horizontalContentPosition:L,blurBackground:N=!1,centerContentVertically:j,centerContentHorizontally:O,children:_,modalContentAnimation:P}=e;const R=(0,i.useRef)(null),[D,M]=(0,i.useState)(null),F=n&&D,B=(0,i.useMemo)(()=>t||Math.floor(1e6*Math.random()+1),[t]);I=I||(void 0!==j?j?"center":"top":"center"),L=L||(void 0!==O?O?"center":"left":"center"),(0,i.useEffect)(()=>(F?(l.L.isAnyModalOpen()||q(!0),l.L.registerNewlyOpenedModal({modalKey:B.toString(),documentEventListener:Q}),V()):(l.L.unregisterClosedModal(B.toString()),l.L.isAnyModalOpen()||q(!1)),()=>{l.L.unregisterClosedModal(B.toString()),l.L.isAnyModalOpen()||q(!1)}),[F,B]),(0,i.useEffect)(()=>{const e=D;if(!e)return;const t=t=>{if("Tab"===t.key){const n=e.querySelectorAll(f),r=null==n?void 0:n[0],i=null==n?void 0:n[n.length-1];t.shiftKey?document.activeElement===r&&(null!=i&&i.focus(),t.preventDefault()):document.activeElement===i&&(null!=r&&r.focus(),t.preventDefault())}};return F?e.addEventListener("keydown",t):e.removeEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},[F,D]);const V=()=>{C||z()},W=e=>{e.target===R.current&&A&&H(e)},Q=e=>{l.h.has(null==e?void 0:e.key)&&A&&H(e)},H=e=>{h&&h(e)},z=()=>{const e=null==D?void 0:D.querySelectorAll(f);e&&e.length&&e[0].focus()},q=e=>{if(e){const e=window.scrollY;document.body.style.position="fixed",document.body.style.top="-"+e+"px",document.body.style.width="100%",p&&!k&&p.addEventListener("touchmove",G,{passive:!1})}else{const e=Math.abs(parseInt(document.body.style.top||"0"));document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,e),p&&!k&&p.removeEventListener("touchmove",G)}},G=e=>{e.preventDefault()},U=()=>(0,r.jsx)("div",{className:[o.modalWrapper,a].join(" ").trim(),children:(0,r.jsx)("div",{ref:R,onAnimationEnd:()=>{S&&"function"==typeof S&&S()},onTransitionEnd:()=>{T&&"function"==typeof T&&T()},onMouseDown:W,className:o.modalOverlay,"data-vertical-position":I,"data-horizontal-position":L,"data-blur-background":!!N,children:(0,r.jsx)(c.P.div,Object.assign({},P,{ref:M,onAnimationEnd:()=>{x&&"function"==typeof x&&x()},onTransitionEnd:()=>{E&&"function"==typeof E&&E()},role:"none"===b?void 0:b,"aria-modal":"true","aria-labelledby":y,"aria-describedby":w,className:(0,d.TD)(o.modalContent,m),tabIndex:-1,children:_}))})});return(0,r.jsxs)(u.N,{children:[n&&v&&(0,r.jsx)(s,{portalId:v,children:U()}),n&&!v&&(0,r.jsx)(i.Fragment,{children:U()})]})}},26875:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});n(26910);var r=n(96540),i=n(11508);const o={DEVICE_MOBILE:0,DEVICE_DESKTOP:768};function a(e){void 0===e&&(e=o);const t=JSON.stringify(e),n=(0,r.useMemo)(()=>Object.entries(JSON.parse(t)).sort((e,t)=>{let[,n]=e,[,r]=t;return n-r}),[t]),[a,s]=(0,r.useState)(n[0][0]);return(0,r.useLayoutEffect)(()=>{const e=e=>{var t;const[r]=null!==(t=n.findLast(t=>{let[,n]=t;return e>=n}))&&void 0!==t?t:n[0];r!==a&&s(r)},t=i.A.subscribe("onResizeWindowWidth",e);return"undefined"!=typeof window&&e(window.innerWidth),()=>{t.remove()}},[n,a]),a}},29172:function(e,t,n){"use strict";n.d(t,{N:function(){return f}});var r=n(96540),i=n(58291),o=n.n(i),a=n(86121),s=n.n(a),l=n(73074),c=n.n(l),u=n(99200),d=n.n(u);s()(o()),c()(o()),d()(o());const f=(e,t,n)=>{const o=(0,r.useMemo)(()=>{if(null!=t)return i.Index.load(JSON.parse(t))},[t]),a=(0,r.useMemo)(()=>n,[n]);return(0,r.useMemo)(()=>e&&o&&a?o.search(e).map(e=>{let{ref:t}=e;return a[t]}):[],[e,o,a])}},30736:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(74848),i={footer:"core--footer-module--footer--8f59a3",footerUpperWrapper:"core--footer-module--footer-upper-wrapper--300f84",logoWrapper:"core--footer-module--logo-wrapper--e1ea6f",list:"core--footer-module--list--b75cc1",listCentered:"core--footer-module--list_centered--1da869",linksList:"core--footer-module--links-list--8bb313",linkItem:"core--footer-module--link-item--00cdbd",additionalLinkItem:"core--footer-module--additional-link-item--86340c",linkItemLink:"core--footer-module--link-item-link--7106e3",listItem:"core--footer-module--list-item--79a05d",listItemFlowing:"core--footer-module--list-item-flowing--514ae8",additionalLinksList:"core--footer-module--additional-links-list--5e73b7",additionalLinkItemLink:"core--footer-module--additional-link-item-link--54659d",additionalLinks:"core--footer-module--additional-links--91744d",footerLink:"core--footer-module--footer-link--7b2a54",divider:"core--footer-module--divider--abc7ed",dividerHiddenDesktop:"core--footer-module--divider_hidden-desktop--fadc46",contactList:"core--footer-module--contact-list--d86991",contactListItem:"core--footer-module--contact-list-item--cb458a",contactIcon:"core--footer-module--contact-icon--fd904c",socialMediaWrapper:"core--footer-module--social-media-wrapper--338c0f",socialMediaTitle:"core--footer-module--social-media-title--f5fb85",socialMediaList:"core--footer-module--social-media-list--0f516d",socialMediaListItem:"core--footer-module--social-media-list-item--cae153",socialMediaListLink:"core--footer-module--social-media-list-link--6eddd9",organizationList:"core--footer-module--organization-list--825f75",organizationLink:"core--footer-module--organization-link--d67299",parksWrapper:"core--footer-module--parks-wrapper--bfaab6",parksLogo:"core--footer-module--parks-logo--2b71c7",parksList:"core--footer-module--parks-list--508a37",parksListItem:"core--footer-module--parks-list-item--6d5bb0",parksListImage:"core--footer-module--parks-list-image--758b7a"},o=n(32532),a=n(87499);function s(e){var t,n;return!(null==e||null===(t=e.image)||void 0===t||null===(n=t.file)||void 0===n||!n.url)}var l=n(96864);const c=e=>{var t;let{link:n}=e;return s(n)&&(0,r.jsx)("img",{className:i.parksListImage,loading:"lazy",src:n.image.file.url,alt:null!==(t=n.title)&&void 0!==t?t:""})};var u=e=>{var t,n,u,d,f,m,h,p,g,v,y,b;let{siteConfig:w}=e;
2const x=null==w||null===(t=w.footerBackground)||void 0===t||null===(n=t.backgroundPattern)||void 0===n||null===(u=n.file)||void 0===u?void 0:u.url,E=null==w?void 0:w.footerLogo,S=null!==(d=null==w?void 0:w.footerLinks)&&void 0!==d?d:[],T=null!==(f=null==w?void 0:w.additionalFooterLinks)&&void 0!==f?f:[],C=null==w?void 0:w.footerPhoneNumber,k=null==w?void 0:w.footerAddress,A=null==w||null===(m=w.footerAddressLink)||void 0===m?void 0:m.slug,I=null==w?void 0:w.footerEmail,L=null==w?void 0:w.footerSocialMediaTitle,N=null!==(h=null==w?void 0:w.footerSocialMediaLinks)&&void 0!==h?h:[],j=null!==(p=null==w?void 0:w.footerOrganizationLinks)&&void 0!==p?p:[],O=null==w?void 0:w.footerParksAndResortsLink,_=null!==(g=null==w?void 0:w.footerParksLinks)&&void 0!==g?g:[];return(0,r.jsxs)("div",{style:x?{backgroundImage:"url("+x+")"}:{},className:i.footer,children:[(0,r.jsxs)("div",{className:(0,l.TD)(i.footerUpperWrapper,"block--max-width-narrow"),children:[E&&(0,r.jsx)("div",{className:i.logoWrapper,children:E.gatsbyImageData?(0,r.jsx)(o.G,{image:E.gatsbyImageData,alt:"Footer logo"}):null!==(v=E.file)&&void 0!==v&&v.url?(0,r.jsx)("img",{src:E.file.url,alt:"Footer logo"}):null}),S.length>0&&(0,r.jsx)("ul",{className:(0,l.TD)(i.list,i.linksList),children:S.map(e=>(0,r.jsx)("li",{className:(0,l.TD)(i.listItem,i.linkItem),children:(0,r.jsx)(a.A,{className:(0,l.TD)("p_small",i.footerLink,i.linkItemLink),internalLink:null==e?void 0:e.slug,externalLink:null==e?void 0:e.externalUrl,title:null==e?void 0:e.title,children:null==e?void 0:e.title})},null==e?void 0:e.id))}),(0,r.jsx)("div",{className:i.divider}),T.length>0&&(0,r.jsx)("ul",{className:(0,l.TD)(i.list,i.additionalLinksList),children:T.map(e=>(0,r.jsx)("li",{className:(0,l.TD)(i.listItem,i.additionalLinkItem),children:(0,r.jsx)(a.A,{className:(0,l.TD)("p_tiny",i.footerLink,i.additionalLinks,i.additionalLinkItemLink),internalLink:null==e?void 0:e.slug,externalLink:null==e?void 0:e.externalUrl,title:null==e?void 0:e.title,children:null==e?void 0:e.title})},null==e?void 0:e.id))}),(0,r.jsx)("address",{children:(0,r.jsxs)("ul",{className:(0,l.TD)(i.list,i.contactList),children:[C&&(0,r.jsxs)("li",{className:(0,l.TD)("p_tiny",i.listItem,i.contactListItem),children:[(0,r.jsx)("span",{className:(0,l.TD)("icon-phone-android",i.contactIcon)}),(0,r.jsx)(a.A,{externalLink:"tel:"+C,title:C,children:C})]}),k&&(0,r.jsxs)("li",{className:(0,l.TD)("p_tiny",i.listItem,i.contactListItem),children:[(0,r.jsx)("span",{className:(0,l.TD)("icon-location",i.contactIcon)}),(0,r.jsx)(a.A,{internalLink:A,title:k,children:(0,r.jsx)("span",{children:k})})]}),I&&(0,r.jsxs)("li",{className:(0,l.TD)("p_tiny",i.listItem,i.contactListItem),children:[(0,r.jsx)("span",{className:(0,l.TD)("icon-send",i.contactIcon)}),(0,r.jsx)(a.A,{externalLink:"mailto:"+I,title:I,children:I})]})]})}),(0,r.jsxs)("div",{className:i.socialMediaWrapper,children:[L&&(0,r.jsx)("span",{className:(0,l.TD)("p_tiny",i.socialMediaTitle),children:L}),N.length>0&&(0,r.jsx)("ul",{className:(0,l.TD)(i.list,i.socialMediaList),children:N.map(e=>{var t,n;return(0,r.jsx)("li",{className:(0,l.TD)(i.listItem,i.socialMediaListItem,i.listItem_flowing),children:(0,r.jsx)(a.A,{"aria-label":(null==e?void 0:e.title)||"Social Media Link",externalLink:null==e?void 0:e.externalUrl,title:null==e?void 0:e.title,openInNewTab:!0,className:(0,l.TD)(i.socialMediaListLink,i.socialMediaListLink),children:(0,r.jsx)("span",{className:null!==(t=null!==(n=null==e?void 0:e.linkIcon)&&void 0!==n?n:null==e?void 0:e.icon)&&void 0!==t?t:""})})},null==e?void 0:e.id)})})]}),j.length>0&&(0,r.jsx)("ul",{className:(0,l.TD)(i.organizationList),children:j.map(e=>{var t,n;return(0,r.jsx)("li",{className:i.organizationListItem,children:(0,r.jsx)(a.A,{externalLink:null!==(t=null==e?void 0:e.externalUrl)&&void 0!==t?t:"",openInNewTab:!0,title:null==e?void 0:e.title,className:i.organizationLink,children:s(e)&&(0,r.jsx)("img",{src:e.image.file.url,alt:null!==(n=e.title)&&void 0!==n?n:""})})},null==e?void 0:e.id)})})]}),(0,r.jsx)("div",{className:i.parksWrapper,children:(0,r.jsxs)("div",{className:"block--max-width-narrow",children:[O&&(0,r.jsx)(a.A,{externalLink:null!==(y=O.externalUrl)&&void 0!==y?y:"",openInNewTab:!0,className:i.parksLogo,title:O.title,children:s(O)&&(0,r.jsx)("img",{loading:"lazy",src:O.image.file.url,alt:null!==(b=O.t
2itle)&&void 0!==b?b:"",className:i.parksLogo})}),_.length>0&&(0,r.jsx)("ul",{className:(0,l.TD)(i.list_centered,i.parksList),children:_.map(e=>{var t;return(0,r.jsxs)("li",{className:(0,l.TD)(i.listItem_flowing,i.parksListItem),children:[!(null!=e&&e.externalUrl)&&(0,r.jsx)(c,{link:e}),(null==e?void 0:e.externalUrl)&&(0,r.jsx)(a.A,{externalLink:null!==(t=null==e?void 0:e.externalUrl)&&void 0!==t?t:"",openInNewTab:!0,title:null==e?void 0:e.title,children:(0,r.jsx)(c,{link:e})})]},null==e?void 0:e.id)})})]})})]})}},31952:function(e,t,n){"use strict";n.d(t,{t:function(){return a}});var r=n(32389),i=n(67071),o=n(14756);const a=(e,t)=>{var n;const a=null!==(n=null==e?void 0:e.map(e=>e.productId))&&void 0!==n?n:[],{productsById:s}=(0,i.QT)(a),{t:l}=(0,r.Bd)();return null==e?void 0:e.map(e=>{var n,r;return(0,o.Di)(e,s,null!==(n=null==t?void 0:t.discountItems)&&void 0!==n?n:[],null!==(r=null==t?void 0:t.redeemableValidationResults)&&void 0!==r?r:[],l)})}},32532:function(e,t,n){"use strict";n.d(t,{G:function(){return ne},L:function(){return D},M:function(){return z},P:function(){return H},_:function(){return u},a:function(){return c},b:function(){return j},f:function(){return N},g:function(){return O},h:function(){return I},w:function(){return _}});var r=n(60436),i=(n(26910),n(96540)),o=n(12729),a=n.n(o),s=n(5556),l=n.n(s);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}const d=[.25,.5,1,2],f=[750,1080,1366,1920],m=[320,654,768,1024,1366,1600,1920,2048,2560,3440,3840,4096],h=800,p=800,g=4/3,v=e=>console.warn(e),y=(e,t)=>e-t,b=(e,t)=>{switch(t){case"constrained":return"(min-width: "+e+"px) "+e+"px, 100vw";case"fixed":return e+"px";case"fullWidth":return"100vw";default:return}},w=e=>e.map(e=>e.src+" "+e.width+"w").join(",\n");function x(e){const t=e.lastIndexOf(".");if(-1!==t){const n=e.slice(t+1);if("jpeg"===n)return"jpg";if(3===n.length||4===n.length)return n}}function E(e){let{layout:t="constrained",width:n,height:r,sourceMetadata:i,breakpoints:o,aspectRatio:s,formats:l=["auto","webp"]}=e;return l=l.map(e=>e.toLowerCase()),t=a()(t),n&&r?c({},e,{formats:l,layout:t,aspectRatio:n/r}):(i.width&&i.height&&!s&&(s=i.width/i.height),"fullWidth"===t?(n=n||i.width||o[o.length-1],r=r||Math.round(n/(s||g))):(n||(n=r&&s?r*s:i.width?i.width:r?Math.round(r/g):p),s&&!r?r=Math.round(n/s):s||(s=n/r)),c({},e,{width:n,height:r,aspectRatio:s,layout:t,formats:l}))}const S=e=>Array.from(new Set([1].concat((0,r.A)(e)))).sort(y);function T(e){let t,{sourceMetadata:n,width:r,height:i,fit:o="cover",outputPixelDensities:a=d,breakpoints:s,layout:l}=e,c=n.width/n.height;const u=S(a);if(r&&i){const e=C(n,{width:r,height:i,fit:o});r=e.width,i=e.height,c=e.aspectRatio}r=r&&Math.min(r,n.width),i=i&&Math.min(i,n.height),r||i||(i=(r=Math.min(h,n.width))/c),r||(r=i*c);const f=r;return(n.width<r||n.height<i)&&(r=n.width,i=n.height),r=Math.round(r),(null==s?void 0:s.length)>0?(t=s.filter(e=>e<=n.width),t.length<s.length&&!t.includes(n.width)&&t.push(n.width)):(t=u.map(e=>Math.round(e*r)),t=t.filter(e=>e<=n.width)),"constrained"!==l||t.includes(r)||t.push(r),t=t.sort(y),{sizes:t,aspectRatio:c,presentationWidth:f,presentationHeight:Math.round(f/c),unscaledWidth:r}}function C(e,t){const n=e.width/e.height;let r=t.width,i=t.height;switch(t.fit){case"fill":r=t.width?t.width:e.width,i=t.height?t.height:e.height;break;case"inside":{const e=t.width?t.width:Number.MAX_SAFE_INTEGER,o=t.height?t.height:Number.MAX_SAFE_INTEGER;r=Math.min(e,Math.round(o*n)),i=Math.min(o,Math.round(e/n));break}case"outside":{const e=t.width?t.width:0,o=t.height?t.height:0;r=Math.max(e,Math.round(o*n)),i=Math.max(o,Math.round(e/n));break}default:t.width&&!t.height&&(r=t.width,i=Math.round(t.width/n)),t.height&&!t.width&&(r=Math.round(t.height*n),i=t.height)}return{width:r,height:i,aspectRatio:r/i}}
2const k=["baseUrl","urlBuilder","sourceWidth","sourceHeight","pluginName","formats","breakpoints","options"],A=["images","placeholder"],I=()=>"undefined"!=typeof HTMLImageElement&&"loading"in HTMLImageElement.prototype;function L(e,t,n){const r={};let i="gatsby-image-wrapper";return"fixed"===n?(r.width=e,r.height=t):"constrained"===n&&(i="gatsby-image-wrapper gatsby-image-wrapper-constrained"),{className:i,"data-gatsby-image-wrapper":"",style:r}}function N(e){var t;let{baseUrl:n,urlBuilder:r,sourceWidth:i,sourceHeight:o,pluginName:a="getImageData",formats:s=["auto"],breakpoints:l,options:h}=e,g=u(e,k);return null!=(t=l)&&t.length||"fullWidth"!==g.layout&&"FULL_WIDTH"!==g.layout||(l=m),function(e){e=E(e);let{pluginName:t,sourceMetadata:n,generateImageSource:r,layout:i,fit:o,options:a,width:s,height:l,filename:u,reporter:m={warn:v},backgroundColor:h,placeholderURL:g}=e;if(t||m.warn('[gatsby-plugin-image] "generateImageData" was not passed a plugin name'),"function"!=typeof r)throw new Error("generateImageSource must be a function");var y;n&&(n.width||n.height)?n.format||(n.format=x(u)):n={width:s,height:l,format:(null==(y=n)?void 0:y.format)||x(u)||"auto"};const k=new Set(e.formats);(0===k.size||k.has("auto")||k.has(""))&&(k.delete("auto"),k.delete(""),k.add(n.format)),k.has("jpg")&&k.has("png")&&(m.warn("["+t+"] Specifying both 'jpg' and 'png' formats is not supported. Using 'auto' instead"),k.delete("jpg"===n.format?"png":"jpg"));const A=function(e){const{width:t,height:n,filename:r,layout:i="constrained",sourceMetadata:o,reporter:a={warn:v},breakpoints:s=f}=e,l=Object.entries({width:t,height:n}).filter(e=>{let[t,n]=e;return"number"==typeof n&&n<1});if(l.length)throw new Error("Specified dimensions for images must be positive numbers (> 0). Problem dimensions you have are "+l.map(e=>e.join(": ")).join(", "));return"fixed"===i?function(e){let{filename:t,sourceMetadata:n,width:r,height:i,fit:o="cover",outputPixelDensities:a=d,reporter:s={warn:v}}=e,l=n.width/n.height;const c=S(a);if(r&&i){const e=C(n,{width:r,height:i,fit:o});r=e.width,i=e.height,l=e.aspectRatio}r?i||(i=Math.round(r/l)):r=i?Math.round(i*l):p;const u=r;if(n.width<r||n.height<i){const e=n.width<r?"width":"height";s.warn("\nThe requested "+e+' "'+("width"===e?r:i)+'px" for the image '+t+" was larger than the actual image "+e+" of "+n[e]+"px. If possible, replace the current image with a larger one."),"width"===e?(r=n.width,i=Math.round(r/l)):r=(i=n.height)*l}return{sizes:c.filter(e=>e>=1).map(e=>Math.round(e*r)).filter(e=>e<=n.width),aspectRatio:l,presentationWidth:u,presentationHeight:Math.round(u/l),unscaledWidth:r}}(e):"constrained"===i?T(e):"fullWidth"===i?T(c({breakpoints:s},e)):(a.warn("No valid layout was provided for the image at "+r+". Valid image layouts are fixed, fullWidth, and constrained. Found "+i),{sizes:[o.width],presentationWidth:o.width,presentationHeight:o.height,aspectRatio:o.width/o.height,unscaledWidth:o.width})}(c({},e,{sourceMetadata:n})),I={sources:[]};let L=e.sizes;L||(L=b(A.presentationWidth,i)),k.forEach(e=>{const n=A.sizes.map(n=>{const i=r(u,n,Math.round(n/A.aspectRatio),e,o,a);if(null!=i&&i.width&&i.height&&i.src&&i.format)return i;m.warn("["+t+"] The resolver for image "+u+" returned an invalid value.")}).filter(Boolean);if("jpg"===e||"png"===e||"auto"===e){const e=n.find(e=>e.width===A.unscaledWidth)||n[0];e&&(I.fallback={src:e.src,srcSet:w(n),sizes:L})}else{var i;null==(i=I.sources)||i.push({srcSet:w(n),sizes:L,type:"image/"+e})}});const N={images:I,layout:i,backgroundColor:h};switch(g&&(N.placeholder={fallback:g}),i){case"fixed":N.width=A.presentationWidth,N.height=A.presentationHeight;break;case"fullWidth":N.width=1,N.height=1/A.aspectRatio;break;case"constrained":N.width=e.width||A.presentationWidth||1,N.height=(N.width||1)/A.aspectRatio}return N}(c({},g,{pluginName:a,generateImageSource:(e,t,n,i)=>({width:t,height:n,format:i,src:r({baseUrl:e,width:t,height:n,options:h,format:i})}),filename:n,formats:s,breakpoints:l,sourceMetadata:{width:i,height:o,format:"auto"}}))}function j(e,t,n,r,i){return void 0===i&&(i={}),c({},n,{loading:r,shouldLoad:e,"data-main-image":"",style:c({},i,{opacity:t?1:0})})}function O(e,t,n,r,i,o,a,s){const l={};o&&(l.backgroundColor=o,"fixed"===n?(l.width=r,l.height=i,l.backgroundColor=o,l.position="relative"):("constrained"===n||"fullWidth"===n)&&(l.position="absolute",l.top=0,l.left=0,l.bottom=0,l.right=0)),a&&(l.objectFit=a),s&&(l.objectPosition=s);const u=c({},e,{"aria-hidden":!0,"data-placeholder-image":"",style:c({opacity:t?0:1,transition:"opacity 500ms linear"},l)});return u}function _(e,t){var n,i;const{images:o,placeholder:a}=e,s=c({},u(e,A),{images:c({},o,{sources:[]}),placeholder:a&&c({},a,{sources:[]})});var l;return t.forEach(t=>{var n;let{media:i,image:o}=t;i&&(o.layout,e.layout,(n=s.images.sources).push.apply(n,(0,r.A)(o.images.sources.map(e=>c({},e,{media:i}))).concat([{media:i,srcSet:o.images.fallback.srcSet}
2])),s.placeholder&&s.placeholder.sources.push({media:i,srcSet:o.placeholder.fallback}))}),(n=s.images.sources).push.apply(n,(0,r.A)(o.sources)),null!=a&&a.sources&&(null==(l=s.placeholder)||(i=l.sources).push.apply(i,(0,r.A)(a.sources))),s}const P=["children"],R=function(e){let{layout:t,width:n,height:r}=e;return"fullWidth"===t?i.createElement("div",{"aria-hidden":!0,style:{paddingTop:r/n*100+"%"}}):"constrained"===t?i.createElement("div",{style:{maxWidth:n,display:"block"}},i.createElement("img",{alt:"",role:"presentation","aria-hidden":"true",src:"data:image/svg+xml;charset=utf-8,%3Csvg%20height='"+r+"'%20width='"+n+"'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%3E%3C/svg%3E",style:{maxWidth:"100%",display:"block",position:"static"}})):null},D=function(e){let{children:t}=e,n=u(e,P);return i.createElement(i.Fragment,null,i.createElement(R,c({},n)),t,null)},M=["src","srcSet","loading","alt","shouldLoad"],F=["fallback","sources","shouldLoad"],B=function(e){let{src:t,srcSet:n,loading:r,alt:o="",shouldLoad:a}=e,s=u(e,M);return i.createElement("img",c({},s,{decoding:"async",loading:r,src:a?t:void 0,"data-src":a?void 0:t,srcSet:a?n:void 0,"data-srcset":a?void 0:n,alt:o}))},V=function(e){let{fallback:t,sources:n=[],shouldLoad:r=!0}=e,o=u(e,F);const a=o.sizes||(null==t?void 0:t.sizes),s=i.createElement(B,c({},o,t,{sizes:a,shouldLoad:r}));return n.length?i.createElement("picture",null,n.map(e=>{let{media:t,srcSet:n,type:o}=e;return i.createElement("source",{key:t+"-"+o+"-"+n,type:o,media:t,srcSet:r?n:void 0,"data-srcset":r?void 0:n,sizes:a})}),s):s};var W;B.propTypes={src:s.string.isRequired,alt:s.string.isRequired,sizes:s.string,srcSet:s.string,shouldLoad:s.bool},V.displayName="Picture",V.propTypes={alt:s.string.isRequired,shouldLoad:s.bool,fallback:s.exact({src:s.string.isRequired,srcSet:s.string,sizes:s.string}),sources:s.arrayOf(s.oneOfType([s.exact({media:s.string.isRequired,type:s.string,sizes:s.string,srcSet:s.string.isRequired}),s.exact({media:s.string,type:s.string.isRequired,sizes:s.string,srcSet:s.string.isRequired})]))};const Q=["fallback"],H=function(e){let{fallback:t}=e,n=u(e,Q);return t?i.createElement(V,c({},n,{fallback:{src:t},"aria-hidden":!0,alt:""})):i.createElement("div",c({},n))};H.displayName="Placeholder",H.propTypes={fallback:s.string,sources:null==(W=V.propTypes)?void 0:W.sources,alt:function(e,t,n){return e[t]?new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed."):null}};const z=function(e){return i.createElement(i.Fragment,null,i.createElement(V,c({},e)),i.createElement("noscript",null,i.createElement(V,c({},e,{shouldLoad:!0}))))};z.displayName="MainImage",z.propTypes=V.propTypes;const q=["as","className","class","style","image","loading","imgClassName","imgStyle","backgroundColor","objectFit","objectPosition"],G=["style","className"],U=e=>e.replace(/\n/g,""),K=function(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];return e.alt||""===e.alt?l().string.apply(l(),[e,t,n].concat(i)):new Error('The "alt" prop is required in '+n+'. If the image is purely presentational then pass an empty string: e.g. alt="". Learn more: https://a11y-style-guide.com/style-guide/section-media.html')},Y={image:l().object.isRequired,alt:K},$=["as","image","style","backgroundColor","className","class","onStartLoad","onLoad","onError"],X=["style","className"],J=new Set;let Z,ee;const te=function(e){let{as:t="div",image:r,style:o,backgroundColor:a,className:s,class:l,onStartLoad:d,onLoad:f,onError:m}=e,h=u(e,$);const{width:p,height:g,layout:v}=r,y=L(p,g,v),{style:b,className:w}=y,x=u(y,X),E=(0,i.useRef)(),S=(0,i.useMemo)(()=>JSON.stringify(r.images),[r.images]);l&&(s=l);const T=function(e,t,n){let r="";return"fullWidth"===e&&(r='<div aria-hidden="true" style="padding-top: '+n/t*100+'%;"></div>'),"constrained"===e&&(r='<div style="max-width: '+t+'px; display: block;"><img alt="" role="presentation" aria-hidden="true" src="data:image/svg+xml;charset=utf-8,%3Csvg%20height=\''+n+"'%20width='"+t+"'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%3E%3C/svg%3E\" style=\"max-width: 100%; display: block; position: static;\"></div>"),r}(v,p,g);return(0,i.useEffect)(()=>{Z||(Z=n.e(108).then(n.bind(n,81108)).then(e=>{let{renderImageToString:t,swapPlaceholderImage:n}=e;return ee=t,{renderImageToString:t,swapPlaceholderImage:n}}));const e=E.current.querySelector("[data-gatsby-image-ssr]");if(e&&I())return e.complete?(null==d||d({wasCached:!0}),null==f||f({wasCached:!0}),setTimeout(()=>{e.removeAttribute("data-gatsby-image-ssr")},0)):(null==d||d({wasCached:!0}),e.addEventListener("load",function t(){e.removeEventListener("load",t),null==f||f({wasCached:!0}),setTimeout(()=>{e.removeAttribute("data-gatsby-image-ssr")},0)})),void J.add(S);if(ee&&J.has(S))return;let t,i;return Z.then(e=>{let{renderImageToString:n,swapPlaceholderImage:a}=e;E.current&&(E.current.innerHTML=n(c({isLoading:!0,isLoaded:J.has(S),image:r},h)),J.has(S)||(t=requestAnimationFrame(()=>{E.current&&(i=a(E.current,S,J,o,d,f,m))})))}),()=>{t&&cancelAnimationFrame(t),i&&i()}},[r]),(0,i.useLayoutEffect)(()=>{J.has(S)&&ee&&(E.current.innerHTML=ee(c({isLoading:J.has(S),isLoaded:J.has(S),image:r},h)),null==d||d({wasCached:!0}),null==f||f({wasCached:!0}))},[r]),(0,i.createElement)(t,c({},x,{style:c({},b,o,{backgroundColor:a}),className:w+(s?" "+s:""),ref:E,dangerouslySetInnerHTML:{__html:T},suppressHydrationWarning:!0}))},ne=(0,i.memo)(function(e){return e.image?(0,i.createElement)(te,e):null});
2ne.propTypes=Y,ne.displayName="GatsbyImage";const re=["src","__imageData","__error","width","height","aspectRatio","tracedSVGOptions","placeholder","formats","quality","transformOptions","jpgOptions","pngOptions","webpOptions","avifOptions","blurredOptions","breakpoints","outputPixelDensities"];function ie(e){return function(t){let{src:n,__imageData:r,__error:o}=t,a=u(t,re);return o&&console.warn(o),r?i.createElement(e,c({image:r},a)):(console.warn("Image not loaded",n),null)}}const oe=ie(function(e){let{as:t="div",className:n,class:r,style:o,image:a,loading:s="lazy",imgClassName:l,imgStyle:d,backgroundColor:f,objectFit:m,objectPosition:h}=e,p=u(e,q);if(!a)return console.warn("[gatsby-plugin-image] Missing image prop"),null;r&&(n=r),d=c({objectFit:m,objectPosition:h,backgroundColor:f},d);const{width:g,height:v,layout:y,images:b,placeholder:w,backgroundColor:x}=a,E=L(g,v,y),{style:S,className:T}=E,C=u(E,G),k={fallback:void 0,sources:[]};return b.fallback&&(k.fallback=c({},b.fallback,{srcSet:b.fallback.srcSet?U(b.fallback.srcSet):void 0})),b.sources&&(k.sources=b.sources.map(e=>c({},e,{srcSet:U(e.srcSet)}))),i.createElement(t,c({},C,{style:c({},S,o,{backgroundColor:f}),className:T+(n?" "+n:"")}),i.createElement(D,{layout:y,width:g,height:v},i.createElement(H,c({},O(w,!1,y,g,v,x,m,h))),i.createElement(z,c({"data-gatsby-image-ssr":"",className:l},p,j("eager"===s,!1,k,s,d)))))}),ae=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return"fullWidth"!==e.layout||"width"!==t&&"height"!==t||!e[t]?l().number.apply(l(),[e,t].concat(r)):new Error('"'+t+'" '+e[t]+" may not be passed when layout is fullWidth.")},se=new Set(["fixed","fullWidth","constrained"]),le={src:l().string.isRequired,alt:K,width:ae,height:ae,sizes:l().string,layout:e=>{if(void 0!==e.layout&&!se.has(e.layout))return new Error("Invalid value "+e.layout+'" provided for prop "layout". Defaulting to "constrained". Valid values are "fixed", "fullWidth" or "constrained".')}};oe.displayName="StaticImage",oe.propTypes=le;const ce=ie(ne);ce.displayName="StaticImage",ce.propTypes=le},34743:function(e,t,n){"use strict";n.d(t,{UE:function(){return a},we:function(){return f}});var r=n(52425),i=n(96540),o=n(40961);const a=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:i}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?(0,r.UE)({element:n.current,padding:i}).fn(t):{}:n?(0,r.UE)({element:n,padding:i}).fn(t):{};var o}});var s="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function l(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!l(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!==r--;){const n=i[r];if(("_owner"!==n||!e.$$typeof)&&!l(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function c(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){const n=c(e);return Math.round(t*n)/n}function d(e){const t=i.useRef(e);return s(()=>{t.current=e}),t}function f(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:f,elements:{reference:m,floating:h}={},transform:p=!0,whileElementsMounted:g,open:v}=e,[y,b]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,x]=i.useState(a);l(w,a)||x(a);const[E,S]=i.useState(null),[T,C]=i.useState(null),k=i.useCallback(e=>{e!==N.current&&(N.current=e,S(e))},[]),A=i.useCallback(e=>{e!==j.current&&(j.current=e,C(e))},[]),I=m||E,L=h||T,N=i.useRef(null),j=i.useRef(null),O=i.useRef(y),_=null!=g,P=d(g),R=d(f),D=i.useCallback(()=>{if(!N.current||!j.current)return;const e={placement:t,strategy:n,middleware:w};R.current&&(e.platform=R.current),(0,r.rD)(N.current,j.current,e).then(e=>{const t={...e,isPositioned:!0};M.current&&!l(O.current,t)&&(O.current=t,o.flushSync(()=>{b(t)}))})}
2,[w,t,n,R]);s(()=>{!1===v&&O.current.isPositioned&&(O.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[v]);const M=i.useRef(!1);s(()=>(M.current=!0,()=>{M.current=!1}),[]),s(()=>{if(I&&(N.current=I),L&&(j.current=L),I&&L){if(P.current)return P.current(I,L,D);D()}},[I,L,D,P,_]);const F=i.useMemo(()=>({reference:N,floating:j,setReference:k,setFloating:A}),[k,A]),B=i.useMemo(()=>({reference:I,floating:L}),[I,L]),V=i.useMemo(()=>{const e={position:n,left:0,top:0};if(!B.floating)return e;const t=u(B.floating,y.x),r=u(B.floating,y.y);return p?{...e,transform:"translate("+t+"px, "+r+"px)",...c(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,p,B.floating,y.x,y.y]);return i.useMemo(()=>({...y,update:D,refs:F,elements:B,floatingStyles:V}),[y,D,F,B,V])}},38885:function(e,t,n){"use strict";n.d(t,{E:function(){return $},A:function(){return J}});var r=n(74848),i=n(96540),o={cart:"core--cart-module--cart--220415",innerWrapper:"core--cart-module--inner-wrapper--ba448f",title:"core--cart-module--title--6f5dd8",list:"core--cart-module--list--23af23",listItem:"core--cart-module--list-item--ef3118",bottomButtonWrapper:"core--cart-module--bottom-button-wrapper--1f70ce",checkoutButton:"core--cart-module--checkout-button--af61d0",continueShoppingButton:"core--cart-module--continue-shopping-button--18daad",bwWrapper:"core--cart-module--bw-wrapper--8bbeb0",bwInnerWrapper:"core--cart-module--bw-inner-wrapper--7c37da",bwImg:"core--cart-module--bw-img--9698b4",bwText:"core--cart-module--bw-text--f9e3c6",bwQuantity:"core--cart-module--bw-quantity--4d02dd",bwReadMore:"core--cart-module--bw-read-more--9246d3"},a=n(60436),s=(n(26910),"core--cart-item-module--cart-item--05900d"),l="core--cart-item-module--link--170211",c="core--cart-item-module--header--b63839",u="core--cart-item-module--image-link--655be5",d="core--cart-item-module--image--fa968a",f="core--cart-item-module--image-gradient--b6128a",m="core--cart-item-module--title-column--73297f",h="core--cart-item-module--title-and-info--a0a75b",p="core--cart-item-module--cta--a861d8",g="core--cart-item-module--price-and-quantity--3f655b",v="core--cart-item-module--prices--4f1610",y="core--cart-item-module--previous-price--5fbbcc",b="core--cart-item-module--express-pass-wrapper--b0b4bd",w="core--cart-item-module--express-pass-divider--5fe651",x="core--cart-item-module--express-pass-list--c60b60",E="core--cart-item-module--redeemable-wrapper--d08272",S="core--cart-item-module--redeemable-divider--eb8c88",T="core--cart-item-module--redeemable-list--c640b6",C="core--cart-item-module--redeemable-code--c375b6",k="core--cart-item-module--quantity-popover-content--187835",A="core--cart-item-module--current-price--3fcde1",I=n(32389),L=n(87499),N=n(92944),j=n(72520),O=n(48917),_=n(90406),P=n(72864),R=n(67071),D=n(90520),M=n(75855),F=n(18293),B=n(88030),V=n(23931),W=n(26263),Q=n(11508),H=n(72890),z=n(1967);const q=e=>{let{item:t}=e;return void 0===t.price?null:(0,r.jsx)("p",{className:A,children:(0,z.fr)(t.price)})},G=(0,i.forwardRef)(function(e,t){var n,o,A,G,U,K,Y,$,X,J,Z,ee;let{item:te,isDisabled:ne,deleteCartItem:re,updateCartItemQuantity:ie}=e;const{t:oe}=(0,I.Bd)(),[ae,se]=(0,i.useState)(null),[le,ce]=(0,i.useState)(!1),ue=te.minimumQuantity,de=te.productType,fe=(0,R.Bj)(null!==(n=te.productId)&&void 0!==n?n:void 0),me=te.name,he=null!==(o=null==fe||null===(A=fe.contentfulProduct)||void 0===A||null===(G=A.productImage)||void 0===G||null===(U=G.file)||void 0===U?void 0:U.url)&&void 0!==o?o:B.A.getPlaceholderImage("cartItem"),pe=null==fe||null===(K=fe.contentfulProduct)||void 0===K||null===(Y=K.productPageLink)||void 0===Y?void 0:Y.slug,ge=de===N.WebshopProductType.SHIPPING_FEE,ve=(0,a.A)(te.subItems.filter(e=>{var t;return"QueuePass"===(null===(t=e.slot)||void 0===t?void 0:t.SlotType)}).map(e=>{let{slot:t}=e;const n=W.A.getRideById(t.locationId);return Object.assign({},t,{rideName:n?n.title:""})})).sort((e,t)=>e.slotFrom&&t.slotFrom?(0,V.JO)(e.slotFrom).valueOf()-(0,V.JO)(t.slotFrom).valueOf():0),ye=te.subItems.filter(e=>{var t;return"TimePass"===(null===(t=e.slot)||void 0===t?void 0:t.SlotType)}),be=[me,(0,H.EI)(te.metadata)&&"("+te.metadata.join(", ")+")",oe("cartItemQuantity",{count:te.quantity}),"number"==typeof te.previousTotalPrice&&oe("cartItemPreviousTotal",{price:(0,z.fr)(te.previousTotalPrice)}),(0,H.EI)(null===($=te.redeemableItems)||void 0===$?void 0:$.filter(e=>"voucher"===e.type))?oe("usedVoucherCodes")+": "+(null===(X=te.redeemableItems)||void 0===X?void 0:X.map(e=>"voucher"===e.type&&e.code+" "+(0,z.fr)(e.amount)).filter(H.zz).join(", ")):null,oe("cartItemTotal",{price:(0,z.fr)(null!==(J=te.price)&&void 0!==J?J:0)}),te.message&&[te.message.heading,te.message.paragraph].filter(H.zz).join(". "),(0,H.EI)(ve)&&ve.map(e=>V.Ay.toStringTimeHHMM(e.slotFrom)+(e.rideName?" - "+e.rideName:"")).join(", "),(0,H.EI)(ye)&&ye.map(e=>{var t,n;return e.name+": "+V.Ay.toStringTimeHHMM(null===(t=e.slot)||void 0===t?void 0:t.slotFrom)+(null!==(n=e.slot)&&void 0!==n&&n.isFullDay?oe("cartItemFullDayTimePass"):"")}
2).join(", ")].filter(Boolean).join(". "),we=[te.quantity>1?(0,z.fr)(te.unitPriceIncludingVat)+" / st":null].concat((0,a.A)(null!==(Z=te.metadata)&&void 0!==Z?Z:[])).filter(H.zz),xe=(0,j.$)(()=>Q.A.publish("trackEvent",{category:"Cart",action:"Clicked link",label:me}));return(0,r.jsxs)("div",{className:s,tabIndex:-1,"aria-label":be,ref:t,"data-testid":"cart-item",children:[(0,r.jsx)(O.c,{text:ae||"",ariaLive:"assertive"}),(0,r.jsxs)("div",{className:c,children:[he&&!ge&&(0,r.jsxs)(L.A,{internalLink:pe,onClick:xe,className:u,children:[(0,r.jsx)("div",{className:d,style:{backgroundImage:"url("+he+")"}}),(0,r.jsx)("div",{className:f,children:" "})]}),(0,r.jsxs)("div",{className:m,"data-image-is-rendered":!!he&&!ge,children:[(0,r.jsx)(L.A,{className:l,internalLink:pe,onClick:xe,children:(0,r.jsxs)("div",{className:h,children:[(0,r.jsx)("p",{className:"bold",children:me}),(0,H.EI)(we)&&(0,r.jsx)(r.Fragment,{children:we.map((e,t)=>(0,r.jsx)("p",{className:"body-xs",children:e},t))}),(0,H.EI)(ye)&&(0,r.jsx)(r.Fragment,{children:ye.map((e,t)=>{var n,i;return(0,r.jsxs)("p",{className:"body-xs",children:[(0,r.jsx)("span",{className:"bold",children:e.name}),": "+V.Ay.toStringTimeHHMM(null===(n=e.slot)||void 0===n?void 0:n.slotFrom)+(null!==(i=e.slot)&&void 0!==i&&i.isFullDay?oe("cartItemFullDayTimePass"):"")]},t)})})]})}),te.cta&&(0,r.jsx)(F.Pf,{className:p,label:te.cta.label,url:te.cta.url,openInNewTab:te.cta.openInNewTab}),te.message&&(0,r.jsx)(M.l,{type:te.message.type,heading:te.message.heading,paragraph:te.message.paragraph,headingLevel:"p",border:!0,hideIcon:!0,"data-testid":"cart-item-message"})]}),(0,r.jsxs)("div",{className:g,children:[(0,r.jsxs)("div",{className:v,children:["number"==typeof te.previousTotalPrice&&(0,r.jsx)("s",{className:y,children:(0,z.fr)(te.previousTotalPrice)}),!(0,H.EI)(te.redeemableItems)&&(0,r.jsx)(q,{item:te})]}),!ge&&(null!==(ee=te.price)&&void 0!==ee?ee:0)>=0&&!!re&&!!ie&&(0,r.jsxs)(P.A,{asModal:!0,contentClassName:k,isOpenOverride:le,setIsOpenOverride:ce,triggerButton:{buttonType:"OutlineButton",label:te.quantity.toString(),ariaLabel:oe("cartItemQuantityTriggerLabel",{count:te.quantity}),iconRightNew:le?"expand-less":"expand-more"},children:[(0,r.jsx)("p",{className:"bold",children:oe("cartItemQuantitySelector")}),(0,r.jsx)("div",{children:(0,r.jsx)(_.A,{isDisabled:ne,quantity:te.quantity,maxQuantity:function(e){switch(de){case N.WebshopProductType.BOOKABLE_TIMESLOT:case N.WebshopProductType.CARD_REACTIVATION:case"ActivityPass":case"QueuePass":case"TimePass":case"DatePass":return!0}return te.quantity>=(null!==(e=te.stockQuantity)&&void 0!==e?e:Number.MAX_SAFE_INTEGER)||!!(te.data&&Object.keys(te.data).length>0)}()?te.quantity:te.stockQuantity,onQuantityChange:e=>{var t;if(!ie||!re)return;const n=e-te.quantity;let r="";if(-1===n&&(1===te.quantity||te.quantity===ue))return r=oe("cartItemRemoved",{name:me}),Q.A.publish("trackEvent",{category:"Cart",action:"Deleted item",label:me}),void re(te,r);ie(te,te.quantity+n),r=oe("cartItemUpdated",{name:me,quantity:te.quantity+n,price:(0,z.fr)((null!==(t=te.price)&&void 0!==t?t:0)+n*te.unitPriceIncludingVat)}),se(r),Q.A.publish("trackEvent",{category:"Cart",action:n<0?"Decrease item":"Increase item",label:me})},removeQuantityIconOverride:"trash"})})]}),!ge&&(!re||!ie)&&1!==te.quantity&&(0,r.jsx)("p",{className:"bold",children:oe("pieces",{count:te.quantity})})]})]}),(0,H.EI)(ve)&&(0,r.jsxs)("div",{className:b,children:[(0,r.jsx)("hr",{className:w}),(0,r.jsx)("p",{className:"bold body-xs","data-contentful-label-id":"cartQueuePassesHeading",children:oe("cartQueuePassesHeading")}),(0,r.jsx)("ul",{className:x,children:ve.map(e=>(0,r.jsxs)("li",{className:"body-xs",children:[V.Ay.toStringTimeHHMM(e.slotFrom),e.rideName?" - "+e.rideName:""]},e.slotId))})]}),(0,H.EI)(te.redeemableItems)&&(0,r.jsxs)("div",{className:E,children:[(0,r.jsx)("hr",{className:S}),(0,r.jsx)("ul",{className:T,children:te.redeemableItems.map(e=>(0,r.jsxs)("li",{className:"body-s",children:[(0,r.jsxs)("div",{className:C,children:[(0,r.jsx)(D.Ay,{name:"discount"}),(0,r.jsx)("p",{children:"voucher"===e.type?e.code:e.campaignName})]}),(0,r.jsx)("p",{children:(0,z.fr)(e.amount)})]},e.id))}),(0,r.jsx)(q,{item:te})]})]})});var U=n(20065),K=n(26366),Y=n(96864);const $=e=>{var t,n;let{continueShoppingLink:i,onContinueShopping:a,variant:s="ghost"}=e;const{t:l}=(0,I.Bd)(),c=null==i||null===(t=i.internalLink)||void 0===t?void 0:t.slug,u=l("continueShopping"),d=null!==(n=null==i?void 0:i.title)&&void 0!==n?n:u,f="primary"===s?F.jn:F.rp;return(0,r.jsx)("span",{onClick:a,children:c?(0,r.jsx)("primary"===s?F.Vg:F.Pf,{className:o.continueShoppingButton,label:d,url:c,isFullWidth:!0}):(0,r.jsx)(f,{className:o.continueShoppingButton,label:u,isFullWidth:!0})})},X=e=>{let{totalSumInclVat:t}=e;const{t:n}=(0,I.Bd)(),[a,s]=(0,i.useState)(!1);return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:o.bwWrapper,children:[(0,r.jsx)("img",{className:o.bwImg,alt:"Text Black 
2week",src:"/images/black-week/GLT_BW_BlackWeek.png"}),(0,r.jsxs)("div",{className:o.bwInnerWrapper,children:[(0,r.jsx)("p",{"data-contentful-label-id":"BW_CART_TEXT",className:o.bwText,children:n("BW_CART_TEXT","Antal gratis åkband som ingår i ditt köp")}),(0,r.jsx)("span",{className:o.bwQuantity,children:(l=t,Math.floor(l/450)+" st")})]}),(0,r.jsx)("button",{className:o.bwReadMore,onClick:()=>s(!a),"aria-expanded":a,"aria-controls":"readMoreContent","data-contentful-label-id":"BW_CART_READ_MORE_LABEL & BW_CART_READ_LESS_LABEL",children:a?n("BW_CART_READ_LESS_LABEL","Läs mindre"):n("BW_CART_READ_MORE_LABEL","Varför får jag gratis åkband?")}),(0,r.jsx)("div",{"data-contentful-label-id":"BW_CART_READ_MORE_TEXT",id:"readMoreContent",style:{display:a?"block":"none"},"aria-hidden":!a,children:n("BW_CART_READ_MORE_TEXT","För varje 450 kronor du handlar för får du automatiskt ett åkband med på köpet! Gäller hela Black week till och med 29/11.")})]})});var l};function J(e){let{hideContinueShopping:t,hideGoToCheckout:n,hideHeadline:a,hideTotalSum:s,hideShippingProducts:l,enableBlackWeekOffer:c,onContinueShopping:u,onGoToCheckout:d,checkoutUrl:f,isDisabled:m,products:h,totalSumInclVat:p,originalProductSummaryAmount:g,deleteCartItem:v,updateCartItemQuantity:y,innerWrapperClassName:b}=e;const{t:w}=(0,I.Bd)(),{eCommerce:{continueShoppingLink:x}}=(0,K.N)(),E=w("toPayment"),S=!t,T=!n,C=!a,k=!s,[A,L]=(0,i.useState)(null),j=(0,i.useRef)([]),_=(0,i.useRef)(null),{productsById:P}=(0,R.QT)(h.map(e=>e.productId).filter(H.zz)),D=h.filter(e=>{var t,n;return(null===(t=P.get(null!==(n=e.productId)&&void 0!==n?n:0))||void 0===t?void 0:t.glkProduct.productType)!==N.WebshopProductType.SHIPPING_FEE}),M=l?D:h,B=(e,t)=>{var n;null!=v&&v(e),t&&(L((n=t)?""+n:null),setTimeout(()=>{const e=j.current.find(e=>null!==e);e?e.focus():_.current&&_.current.focus()},50))},V=D.reduce((e,t)=>{let{quantity:n}=t;return e+n},0);return(0,r.jsxs)("div",{className:o.cart,children:[(0,r.jsxs)("div",{className:(0,Y.TD)(o.innerWrapper,b),children:[C&&(0,r.jsx)("div",{ref:_,className:(0,Y.TD)(o.title,"heading-s"),children:(W=V,W>0?w("yourCart")+" ("+w("cartArticleCount",{count:W})+")":w("yourCart")+" "+w("cartIsEmpty"))}),(0,r.jsx)("ul",{className:o.list,children:M.map((e,t)=>(0,r.jsx)("li",{className:o.listItem,children:(0,r.jsx)(G,{ref:e=>j.current[t]=e,item:e,isDisabled:m,deleteCartItem:B,updateCartItemQuantity:y})},String(e.id)))}),c&&(0,r.jsx)(X,{totalSumInclVat:Number(p)}),V>0&&k&&(0,r.jsx)(U.n,{type:"price",labelId:"cartSummary",price:p,originalProductSummaryAmount:g})]}),(T||S)&&(0,r.jsxs)("div",{className:o.bottomButtonWrapper,children:[T&&(0,r.jsx)("span",{onClick:d,children:(0,r.jsx)(F.Vg,{label:E,isDisabled:m,url:m?void 0:f,className:o.checkoutButton,isFullWidth:!0})}),S&&(0,r.jsx)($,{continueShoppingLink:x,onContinueShopping:u})]}),(0,r.jsx)(O.c,{text:A||"",ariaLive:"assertive"})]});var W}},42523:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var r=n(74848),i="core--input-error-module--inner-wrapper--305033",o="core--input-error-module--icon-wrapper--c4927e",a="core--input-error-module--icon--f418dc",s="core--input-error-module--message--6f8bab",l=n(67561),c=n(2160),u=n(90520),d=n(32389),f=e=>{let{showError:t,isRequired:n,errorText:f,validationType:m,errorLevel:h="error",id:p,"data-testid":g}=e;const{t:v}=(0,d.Bd)(),y=f||(()=>{switch(m){case"EMAIL":return v("inputValidationEmail");case"PHONE":return v("inputValidationPhone");case"ZIPCODE":return v("inputValidationPostalCode");case"BIRTHDATE":return v("inputValidationDateOfBirth");case"DATE":return v("inputValidationDate");default:return}})()||(n?v("inputValidationRequired"):void 0);return y?(0,r.jsx)(l.N,{mode:"wait",children:t&&(0,r.jsxs)(c.P.div,{id:p,initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0,margin:0,transition:{opacity:{duration:.1}}},transition:{duration:.2,easings:"easeInOut"},className:i,"data-error-level":h,"data-testid":g,children:[(0,r.jsx)("div",{className:o,children:(0,r.jsx)(u.Ay,{name:h,size:"l",className:a})}),(0,r.jsx)("div",{className:s,children:(0,r.jsx)("span",{className:s+" p_
2small","data-error-level":h,children:y})},"errorMessage")]},"inputError")}):null}},47045:function(e,t,n){"use strict";n.d(t,{A:function(){return ie}});var r=n(74848),i="core--header-module--header--380ecd",o=n(96540),a={wrapper:"core--header-actions-module--wrapper--afba2e",iconButton:"core--header-actions-module--icon-button--c4b048",search:"core--header-actions-module--search--6f8108",languageSelectorWrapper:"core--header-actions-module--language-selector-wrapper--39f860",logo:"core--header-actions-module--logo--6dfdab",logoImage:"core--header-actions-module--logo-image--b9255e",leftWrapper:"core--header-actions-module--left-wrapper--f53cc7",rightWrapper:"core--header-actions-module--right-wrapper--beb5e4",logoWrapper:"core--header-actions-module--logo-wrapper--c22c2a",logoLink:"core--header-actions-module--logo-link--2c9ccb",buttonLabel:"core--header-actions-module--button-label--c9dae3",cartIconWrapper:"core--header-actions-module--cart-icon-wrapper--92af60",itemsInCart:"core--header-actions-module--items-in-cart--204edc"},s=n(71960),l=n(18293),c=n(87499),u=n(2160),d=n(32389),f=n(67071),m=n(49521),h=n(11508),p=n(96864),g=n(95495),v=n(14756);const y=[a.iconButton,"waves-effect"],b=e=>{let{siteName:t,logoUrl:n,logoImageUrl:i}=e;return(0,r.jsx)("div",{className:a.logoWrapper,children:(0,r.jsx)(c.A,{internalLink:n,className:a.logoLink,children:i&&(0,r.jsx)("div",{className:a.logo,children:(0,r.jsx)("img",{className:a.logoImage,src:i,alt:t})})})})},w=e=>{let{onClick:t}=e;const{t:n}=(0,d.Bd)(),{initial:i,totalItems:s}=(e=>{const{cartId:t,data:n}=(0,g.gj)(),[r]=(0,o.useState)(!!t),[i,a]=(0,o.useState)({initial:!0,totalItems:void 0}),{productsById:s}=(0,f.QT)(null!==(e=null==n?void 0:n.cartItems.map(e=>e.productId))&&void 0!==e?e:[]),l=null==n?void 0:n.cartItems.filter(e=>!(0,v.aW)(s.get(e.productId))).reduce((e,t)=>e+t.quantity,0);return(0,o.useEffect)(()=>{"number"==typeof l&&a(e=>({initial:r&&void 0===e.totalItems,totalItems:l}))},[r,l]),i})(),[c,h]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{setTimeout(()=>{m.A.getItem("hideHeaderCart")&&h(!0)},0)},[]),(0,r.jsxs)("div",{className:a.cartIconWrapper,"data-should-hide":c,children:[(0,r.jsx)(l.a6,{className:p.TD.apply(void 0,y),onClick:t,ariaLabel:n("openFullPageOverlay",[n("cart")]),iconCenterNew:"cart",iconSize:"xl"}),!!s&&(0,r.jsx)(u.P.span,{initial:{scale:0},animate:{scale:[1,1.5,1]},transition:{duration:.6},className:(0,p.TD)(a.itemsInCart,a.addItem,!i&&a.addItem),children:s},s+"top")]})},x=e=>{let{languageSelectionList:t,disableCart:n,closeMenu:i,toggleSearch:o,toggleCart:c,toggleMore:u,setActionButtonRef:f,siteName:m,logoUrl:g,logoImageUrl:v}=e;const{t:x}=(0,d.Bd)(),E=(e,t)=>n=>{f(n.currentTarget),h.A.publish("trackEvent",{category:"Header",action:"Opened",label:e}),null==t||t()};return(0,r.jsxs)("div",{className:a.wrapper,children:[(0,r.jsxs)("div",{className:a.leftWrapper,children:[(null==t?void 0:t.languages)&&(0,r.jsx)("div",{className:a.languageSelectorWrapper,children:(0,r.jsx)(s.G,{locales:t.languages,onSelectorOpen:E("Language Selector"),onSelectorClose:i})}),(0,r.jsx)("div",{className:a.search,children:(0,r.jsx)(l.a6,{onClick:E("Search",o),label:x("search"),ariaLabel:x("openFullPageOverlay",[x("search")]),labelClass:a.buttonLabel,iconLeftNew:"search",iconSize:"xl",className:p.TD.apply(void 0,y)})})]}),(0,r.jsx)(b,{siteName:m,logoUrl:g,logoImageUrl:v}),(0,r.jsxs)("div",{className:a.rightWrapper,children:[!n&&(0,r.jsx)(w,{onClick:E("Cart",c)}),(0,r.jsx)(l.a6,{className:p.TD.apply(void 0,y),onClick:E("Menu",u),label:x("menu"),ariaLabel:x("openFullPageOverlay",[x("menu")]),labelClass:a.buttonLabel,iconLeftNew:"menu",iconSize:"xl"})]})]})};var E="core--header-overlays-module--overlay-content-wrapper--f78a14",S=n(68245),T=n(64741),C={searchWrapper:"core--lunr-search-module--search-wrapper--e3e76d",menuLogo:"core--lunr-search-module--menu-logo--29ca49",fallback:"core--lunr-search-module--fallback--ae3659",searchContent:"core--lunr-search-module--search-content--f0e32e",search:"core--lunr-search-module--search--83e644",list:"core--lunr-search-module--list--c39332",listItemHeading:"core--lunr-search-module--list-item-heading--19e16d",listItem:"core--lunr-search-module--list-item--26d37d",noResult:"core--lunr-search-module--no-result--f560f9",listItemUrl:"core--lunr-search-module--list-item-url--e54572"},k=n(92100),A=n(48917),I=n(32532),L=n(73787),N=n(90265),j=n(29172);const O=(0,T.A)(e=>{h.A.publish("trackPageview",{virtualPagePath:"/search?q="+e,virtualPageTitle:"Searched for "+e})},1e3);function _(e){const[t,n]=(0,o.useState)(""),[i,a]=(0,o.useState)(void 0),[s,l]=(0,o.useState)(void 0),[u,f]=(0,o.useState)(void 0),{t:m}=(0,d.Bd)(),h=(0,j.N)(i,s,u),g=h.filter(e=>e.slug).slice(0,10),[v,y]=(0,o.useState)(0),b=(0,o.useCallback)((0,T.A)(e=>{y(e)},2e3),[]);(0,o.useEffect)(()=>{b(g.length)},[g.length,b]);const{menuLogo:w,isStartPage:x,logoUrl:E,closeMenu:S}=e;return(0,o.useEffect)(()=>{L.A.getSingelton().getLunrData(N.A.getCurrentLocale()).then(e=>{let{index:t,store:n}=e;l(t),f(n)})}
2,[]),(0,r.jsxs)("div",{className:C.searchWrapper,"data-add-gap":!w,children:[(0,r.jsx)("div",{className:(0,p.TD)("block--max-width-narrow",C.searchContent),children:(0,r.jsxs)("search",{className:C.search,children:[(0,r.jsx)(k.A,{name:"search",icon:"search",type:"search",value:t,onChange:(e,t)=>(e=>{n(e);const t=e.toLowerCase().split(" ").filter(e=>e.length>1);if(0===t.length&&!g.length)return;const r=t.map(e=>"title:"+e+"^100 title:*"+e+"*^30 keywords:"+e+"^30 keywords:*"+e+"*^5").join(" ");a(r),O(e)})(t),placeholder:m("searchPlaceHolder"),className:C.inputWrapper,inputClassName:C.inputField}),(0,r.jsx)(A.c,{text:m("searchResultCount",{count:v}),ariaLive:"polite"}),(t.length>1||g.length>0)&&(0,r.jsx)("h6",{className:(0,p.TD)(C.listItemHeading),"data-contentful-label-id":"searchResultHeading",children:m("searchResultHeading")}),(0,r.jsxs)("ul",{className:(0,p.TD)(C.list,t.length>1&&C.listActive,"block--max-width-narrow"),"aria-label":m("searchResultHeading"),children:[g.map(e=>(0,r.jsx)("li",{className:C.listItem,children:(0,r.jsx)(c.A,{internalLink:e.slug,className:(0,p.TD)(C.listItemUrl,"body-s"),onClick:()=>(S(),void O.flush()),children:e.title})},e.title+e.id)),t.length>1&&0===h.length&&(0,r.jsx)("li",{className:(0,p.TD)(C.listItem,C.noResult),"data-contentful-label-id":"searchNoSearchResultText",children:m("searchNoSearchResultText")},"no_search_result")]})]})}),w&&(0,r.jsx)(c.A,{internalLink:x?void 0:E,onClick:S,"aria-label":m("backToLandingPage"),children:"string"!=typeof w?(0,r.jsx)(I.G,{className:C.menuLogo,image:w,alt:m("image")}):(0,r.jsx)("img",{className:(0,p.TD)(C.menuLogo,C.fallback),src:w,alt:m("image")})})]})}var P="core--site-menu-module--site-menu-wrapper--5b4ce1",R="core--site-menu-module--site-menu-logo-link--ddd915",D="core--site-menu-module--site-menu-logo--3cdeae",M="core--site-menu-module--fallback--c1ae89",F="core--site-menu-module--login-section--6c7049",B="core--site-menu-module--link-group--368fa0",V="core--site-menu-module--group-headline--c9ff44",W="core--site-menu-module--link-group-list--53386b",Q="core--site-menu-module--list-item-link--e766dc",H="core--site-menu-module--list-item--1b3795";const z=e=>{let{siteMenuLogo:t,siteName:n,isStartPage:i,logoUrl:o,hasBackgroundImage:a,loginLink:s,linkGroups:l,closeMenu:u}=e;return(0,r.jsxs)("div",{role:"menu","data-add-gap":!t,"data-has-background-image":a,className:P,children:[t&&(0,r.jsx)(c.A,{internalLink:i?void 0:o,onClick:u,className:R,children:"string"!=typeof t?(0,r.jsx)(I.G,{className:D,image:t,alt:n}):(0,r.jsx)("img",{className:(0,p.TD)(D,M),src:t,alt:n})}),s&&(0,r.jsx)("div",{className:F,children:s}),null==l?void 0:l.map(e=>(0,r.jsxs)("div",{className:B,children:[e.headline&&(0,r.jsx)("h4",{className:(0,p.TD)(V,"body-s"),children:e.headline}),(0,r.jsx)("ul",{className:W,children:e.listObjects.map(t=>(0,r.jsx)(c.A,{role:"listitem",contentfulLink:t,className:Q,onClick:()=>{u(),h.A.publish("trackEvent",{category:"Navigation",action:"Clicked link",label:t.title||""})},children:(0,r.jsx)("li",{role:"none",className:(0,p.TD)(H,e.secondary?"body-s":"h5"),children:t.title})},t.id))})]},e.id))]})};var q=n(95615);const G=e=>{let{disableCart:t,contextValues:n,menuLogo:i,siteName:o,isStartPage:a,logoUrl:s,loginLink:l,siteMenuLinkGroups:c,siteMenuBackgroundPatternUrls:u,closeMenu:f,setContextValues:m}=e;const p={"--image-url-default":(null==u?void 0:u.default)&&"url("+(null==u?void 0:u.default)+")","--image-url-high-quality":(null==u?void 0:u.highQuality)&&"url("+(null==u?void 0:u.highQuality)+")","--image-url-low-quality":(null==u?void 0:u.lowQuality)&&"url("+(null==u?void 0:u.lowQuality)+")"},{t:g}=(0,d.Bd)(),v=e=>()=>{h.A.publish("trackEvent",{category:"Header",action:"Closed",label:e}),f()};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(S.A,{open:n.showMenu,onClose:v("Site Menu"),id:"site-menu",pageName:g("menu"),focusOnCloseButton:!0,children:(0,r.jsx)("div",{className:E,"data-has-image":!!u,style:p,children:(0,r.jsx)(z,{siteMenuLogo:i,siteName:o,isStartPage:a,logoUrl:s,hasBackgroundImage:!!u,loginLink:l,linkGroups:c,closeMenu:f})})}),!t&&(0,r.jsx)(S.A,{open:n.showCart,onClose:v("Cart"),id:"cart",pageName:g("cart"),focusOnCloseButton:!0,children:(0,r.jsx)("div",{className:E,
2children:(0,r.jsx)(q.k,{onGoToCheckout:()=>{f(),h.A.publish("trackEvent",{category:"Header",action:"Clicked",label:"Checkout"})},onContinueShopping:()=>{f(),h.A.publish("trackEvent",{category:"Header",action:"Closed",label:"Cart"})}})})}),(0,r.jsx)(S.A,{open:n.showSearch,onClose:v("Search"),id:"search",pageName:g("search"),children:(0,r.jsx)("div",{className:E,children:(0,r.jsx)(_,{setContextValues:m,menuLogo:i,isStartPage:a,logoUrl:s,closeMenu:f})})})]})};var U=n(13562),K=e=>{var t,n,a,s,l,c;let{siteName:u,siteLogo:d,menuLogo:f,siteMenuLinkGroups:m,siteConfig:p,isStartPage:g,disableCart:v=!1,contextValues:y,setContextValues:b,loginLink:w,languageSelectionList:E,siteMenuBackgroundPatternUrls:S}=e;const[T,C]=(0,o.useState)(!1),k=(0,o.useRef)(null),A=null===(t=d.internalLink)||void 0===t?void 0:t.slug,I=null===(n=d.image)||void 0===n?void 0:n.file.url,L=(null==f?void 0:f.gatsbyImageData)||(null==f||null===(a=f.file)||void 0===a?void 0:a.url)||(null===(s=p.footerLogo)||void 0===s?void 0:s.gatsbyImageData)||(null===(l=p.footerLogo)||void 0===l||null===(c=l.file)||void 0===c?void 0:c.url),N=(0,o.useCallback)(e=>{k.current=e},[]),j=(0,o.useCallback)(()=>{const e=!y.showCart;b(Object.assign({showCart:e},e?{}:{isMainVisible:!0}))},[y.showCart,b]),O=(0,o.useCallback)(()=>{const e=!y.showMenu;b(Object.assign({showMenu:e},e?{}:{isMainVisible:!0}))},[y.showMenu,b]),_=(0,o.useCallback)(()=>{const e=!y.showSearch;b(Object.assign({showSearch:e},e?{}:{isMainVisible:!0}))},[y.showSearch,b]),P=(0,o.useCallback)(()=>{var e;b({showMenu:!1,showCart:!1,showSearch:!1,isMainVisible:!0}),null===(e=k.current)||void 0===e||e.focus()},[b]);return(0,o.useEffect)(()=>{const e=()=>{if(U.L.isAnyModalOpen())return;const e=window.scrollY;C(t=>!t&&e>70||!(t&&e<30)&&t)},t=h.A.subscribe("onScroll",e);return e(),()=>t.remove()},[]),(0,r.jsxs)("header",{className:i,"data-header-size":T?"reduced":void 0,children:[(0,r.jsx)(x,{languageSelectionList:E,disableCart:v,closeMenu:P,toggleSearch:_,toggleCart:j,toggleMore:O,setActionButtonRef:N,siteName:u,logoUrl:A,logoImageUrl:I}),(0,r.jsx)(G,{disableCart:v,contextValues:y,closeMenu:P,menuLogo:L,siteName:u,isStartPage:g,logoUrl:A,loginLink:w,siteMenuLinkGroups:m,siteMenuBackgroundPatternUrls:S,setContextValues:b})]})},Y=n(31414),$={wrapper:"login-link-module--wrapper--3330c",icon:"login-link-module--icon--2ab65",linkArrow:"login-link-module--link-arrow--a0fce",loginLink:"login-link-module--login-link--a29e5",headline:"login-link-module--headline--82dcf",infoText:"login-link-module--info-text--9ef94"},X=n(97623),J=n(64218),Z=n(44246),ee=n(17420),te=n(85086),ne=n(90520);var re=()=>{const e=Z.A.getLabel("LOGIN_MY_PAGES","Mina sidor"),t=Z.A.getLabel("LOGIN_NOT_EXPANDED_SUBTEXT","Logga in för att få tillgång till digitala biljetter m.m."),n=Z.A.getLabel("LOGIN_TO_MY_PAGES_LABEL","Se dina biljetter, årskort och köp på mina sidor"),i=N.A.getCurrentLocale(),o=(0,Y.QN)(),a=e=>{(0,X.navigate)(e),o.setValue({showMenu:!1,showCart:!1,isAnimating:!0,isAnimationDone:!1},()=>{o.setValue({isMainVisible:!0})})};return(0,r.jsx)("div",{className:$.wrapper,children:(0,r.jsx)(ee.ow,{children:o=>o.isLoggedIn?(0,r.jsxs)("button",{className:$.loginLink,onClick:()=>a(J.J.HOME.getSlug(i)),children:[(0,r.jsxs)("div",{className:$.textContainer,children:[(0,r.jsx)("h6",{className:$.headline,children:(0,te.o6)(o,"user.firstName")+" "+(0,te.o6)(o,"user.lastName")}),(0,r.jsx)("p",{className:[$.infoText,"p_tiny"].join(" "),children:n})]}),(0,r.jsx)(ne.Ay,{name:"chevron-right",className:$.linkArrow})]}):(0,r.jsxs)("button",{className:$.loginLink,onClick:()=>a(J.J.LOGIN.getSlug(i)),children:[(0,r.jsxs)("div",{className:$.textContainer,children:[(0,r.jsx)("h6",{className:$.headline,children:e}),(0,r.jsx)("p",{className:[$.infoText,"p_tiny"].join(" "),children:t})]}),(0,r.jsx)(ne.Ay,{name:"chevron-right",className:$.linkArrow})]})})})};var ie=e=>{var t,n,i,a,s,l,c;let{siteName:u="Furuvik",siteConfig:d,isStartPage:f,pageHeader:m}=e;const h=(0,o.useContext)(Y.FI),p=(null==m?void 0:m.siteMenuBackgroundPattern)&&{default:m.siteMenuBackgroundPattern.file.url,highQuality:null!==(t=null===(n=m.siteMenuBackgroun
2dPattern.highQuality)||void 0===n||null===(i=n.images.fallback)||void 0===i?void 0:i.src)&&void 0!==t?t:"",lowQuality:null!==(a=null===(s=m.siteMenuBackgroundPattern.lowQuality)||void 0===s||null===(l=s.images.fallback)||void 0===l?void 0:l.src)&&void 0!==a?a:""},g=null==m||null===(c=m.siteMenuLinkGroups)||void 0===c?void 0:c.map(e=>{var t;return Object.assign({},e,{listObjects:null===(t=e.listObjects)||void 0===t?void 0:t.filter(e=>"ContentfulLink"===e.__typename)})}),v=Object.assign({},m,{siteMenuLinkGroups:g,languageSelectionList:m.languageSelectionList});return(0,r.jsx)(K,Object.assign({},v,{siteName:u,siteConfig:d,isStartPage:f,setContextValues:e=>h.setValue(e),contextValues:h,siteMenuBackgroundPatternUrls:p,loginLink:(0,r.jsx)(re,{})}))}},49734:function(e,t){"use strict";var n=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})};function r(e){let t=0,n=0,r=e;do{t+=r.offsetTop||0,n+=r.offsetLeft||0,r=r.offsetParent}while(r);return{top:t,left:n}}class i{constructor(e){this.element=e}getHorizontalScroll(){return this.element.scrollLeft}getVerticalScroll(){return this.element.scrollTop}getMaxHorizontalScroll(){return this.element.scrollWidth-this.element.clientWidth}getMaxVerticalScroll(){return this.element.scrollHeight-this.element.clientHeight}getHorizontalElementScrollOffset(e,t){return r(e).left-r(t).left}getVerticalElementScrollOffset(e,t){return r(e).top-r(t).top}scrollTo(e,t){this.element.scrollLeft=e,this.element.scrollTop=t}}class o{constructor(){this.element=window}getHorizontalScroll(){return window.scrollX||document.documentElement.scrollLeft}getVerticalScroll(){return window.scrollY||document.documentElement.scrollTop}getMaxHorizontalScroll(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth)-window.innerWidth}getMaxVerticalScroll(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-window.innerHeight}getHorizontalElementScrollOffset(e){return(window.scrollX||document.documentElement.scrollLeft)+e.getBoundingClientRect().left}getVerticalElementScrollOffset(e){return(window.scrollY||document.documentElement.scrollTop)+e.getBoundingClientRect().top}scrollTo(e,t){window.scrollTo(e,t)}}const a={elements:[],cancelMethods:[],add:(e,t)=>{a.elements.push(e),a.cancelMethods.push(t)},remove:(e,t)=>{const n=a.elements.indexOf(e);n>-1&&(t&&a.cancelMethods[n](),a.elements.splice(n,1),a.cancelMethods.splice(n,1))}},s="undefined"!=typeof window,l={cancelOnUserAction:!0,easing:e=>--e*e*e+1,elementToScroll:s?window:null,horizontalOffset:0,maxDuration:3e3,minDuration:250,speed:500,verticalOffset:0};t.A=function(e,t={}){return n(this,void 0,void 0,function*(){if(!s)return new Promise(e=>{e(!1)});if(!window.Promise)throw"Browser doesn't support Promises, and animated-scroll-to depends on it, please provide a polyfill.";let n,r,c,u=Object.assign(Object.assign({},l),t);const d=u.elementToScroll===window,f=!!u.elementToScroll.nodeName;if(!d&&!f)throw"Element to scroll needs to be either window or DOM element.";const m=d?document.documentElement:u.elementToScroll;"smooth"===getComputedStyle(m).getPropertyValue("scroll-behavior")&&console.warn(`${m.tagName} has "scroll-behavior: smooth" which can mess up with animated-scroll-to's animations`);const h=d?new o:new i(u.elementToScroll);if(e instanceof Element){if(c=e,f&&(!u.elementToScroll.contains(c)||u.elementToScroll.isSameNode(c)))throw"options.elementToScroll has to be a parent of scrollToElement";n=h.getHorizontalElementScrollOffset(c,u.elementToScroll),r=h.getVerticalElementScrollOffset(c,u.elementToScroll)}else if("number"==typeof e)n=h.getHorizontalScroll(),r=e;else{if(!Array.isArray(e)||2!==e.length)throw"Wrong function signature. Check documentation.\nAvailable method signatures are:\n  animateScrollTo(y:number, options)\n  animateScrollTo([x:number | null, y:number | null], options)\n  animateScrollTo(scrollToElement:Element, options)";n=null===e[0]?h.getHorizontalScroll():e[0],r=null===e[1]?h.getVerticalScroll():e[1]}n+=u.horizontalOffset,r+=u.verticalOffset;const p=h.getMaxHorizontalScroll(),g=h.getHorizontalScroll();n>p&&(n=p);const v=n-g,y=h.getMaxVerticalScroll(),b=h.getVerticalScroll();r>y&&(r=y);const w=r-b,x=Math.abs(Math.round(v/1e3*u.speed)),E=Math.abs(Math.round(w/1e3*u.speed));let S=x>E?x:E;return S<u.minDuration?S=u.minDuration:S>u.maxDuration&&(S=u.maxDuration),new Promise((e,t)=>
2{let i;0===v&&0===w&&e(!0),a.remove(h.element,!0);const o=()=>{d(),cancelAnimationFrame(i),e(!1)};a.add(h.element,o);const s=u.cancelOnUserAction?o:e=>e.preventDefault(),l=u.cancelOnUserAction?{passive:!0}:{passive:!1},c=["wheel","touchstart","keydown","mousedown"],d=()=>{c.forEach(e=>{h.element.removeEventListener(e,s,l)})};c.forEach(e=>{h.element.addEventListener(e,s,l)});const f=Date.now(),m=()=>{var t=Date.now()-f,o=t/S;const s=Math.round(g+v*u.easing(o)),l=Math.round(b+w*u.easing(o));t<S&&(s!==n||l!==r)?(h.scrollTo(s,l),i=requestAnimationFrame(m)):(h.scrollTo(n,r),cancelAnimationFrame(i),d(),a.remove(h.element,!1),e(!0))};i=requestAnimationFrame(m)})})}},52425:function(e,t,n){"use strict";n.d(t,{UE:function(){return Q},ll:function(){return M},rD:function(){return z},UU:function(){return B},jD:function(){return W},ER:function(){return H},BN:function(){return F},Ej:function(){return V}});var r=n(97193),i=n(95361);function o(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function a(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return e instanceof Node||e instanceof a(e).Node}function c(e){return e instanceof Element||e instanceof a(e).Element}function u(e){return e instanceof HTMLElement||e instanceof a(e).HTMLElement}function d(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof a(e).ShadowRoot)}function f(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=v(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function m(e){return["table","td","th"].includes(o(e))}function h(e){const t=p(),n=v(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function p(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function g(e){return["html","body","#document"].includes(o(e))}function v(e){return a(e).getComputedStyle(e)}function y(e){return c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function b(e){if("html"===o(e))return e;const t=e.assignedSlot||e.parentNode||d(e)&&e.host||s(e);return d(t)?t.host:t}function w(e){const t=b(e);return g(t)?e.ownerDocument?e.ownerDocument.body:e.body:u(t)&&f(t)?t:w(t)}function x(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=w(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=a(i);return o?t.concat(s,s.visualViewport||[],f(i)?i:[],s.frameElement&&n?x(s.frameElement):[]):t.concat(i,x(i,[],n))}function E(e){const t=v(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=u(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:i,l=(0,r.LI)(n)!==a||(0,r.LI)(i)!==s;return l&&(n=a,i=s),{width:n,height:i,$:l}}function S(e){return c(e)?e:e.contextElement}function T(e){const t=S(e);if(!u(t))return(0,r.Jx)(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:a}=E(t);let s=(a?(0,r.LI)(n.width):n.width)/i,l=(a?(0,r.LI)(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const C=(0,r.Jx)(0);function k(e){const t=a(e);return p()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:C}function A(e,t,n,i){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),s=S(e);let l=(0,r.Jx)(1);t&&(i?c(i)&&(l=T(i)):l=T(e));const u=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==a(e))&&t}(s,n,i)?k(s):(0,r.Jx)(0);let d=(o.left+u.x)/l.x,f=(o.top+u.y)/l.y,m=o.width/l.x,h=o.height/l.y;if(s){const e=a(s),t=i&&c(i)?a(i):i;let n=e,r=n.frameElement;for(;r&&i&&t!==n;){const e=T(r),t=r.getBoundingClientRect(),i=v(r),o=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,s=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;d*=e.x,f*=e.y,m*=e.x,h*=e.y,d+=o,f+=s,n=a(r),r=n.frameElement}}return(0,r.B1)({width:m,height:h,x:d,y:f})}const I=[":popover-open",":modal"];function L(e){return I.some(t=>{try{return e.matches(t)}catch(n){return!1}})}function N(e){return A(s(e)).left+y(e).scrollLeft}function j(e,t,n){let i;if("viewport"===t)i=function(e,t){const n=a(e),r=s(e),i=n.visualVie
2wport;let o=r.clientWidth,l=r.clientHeight,c=0,u=0;if(i){o=i.width,l=i.height;const e=p();(!e||e&&"fixed"===t)&&(c=i.offsetLeft,u=i.offsetTop)}return{width:o,height:l,x:c,y:u}}(e,n);else if("document"===t)i=function(e){const t=s(e),n=y(e),i=e.ownerDocument.body,o=(0,r.T9)(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=(0,r.T9)(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let l=-n.scrollLeft+N(e);const c=-n.scrollTop;return"rtl"===v(i).direction&&(l+=(0,r.T9)(t.clientWidth,i.clientWidth)-o),{width:o,height:a,x:l,y:c}}(s(e));else if(c(t))i=function(e,t){const n=A(e,!0,"fixed"===t),i=n.top+e.clientTop,o=n.left+e.clientLeft,a=u(e)?T(e):(0,r.Jx)(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:i*a.y}}(t,n);else{const n=k(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return(0,r.B1)(i)}function O(e,t){const n=b(e);return!(n===t||!c(n)||g(n))&&("fixed"===v(n).position||O(n,t))}function _(e,t,n){const i=u(t),a=s(t),l="fixed"===n,c=A(e,!0,l,t);let d={scrollLeft:0,scrollTop:0};const m=(0,r.Jx)(0);if(i||!i&&!l)if(("body"!==o(t)||f(a))&&(d=y(t)),i){const e=A(t,!0,l,t);m.x=e.x+t.clientLeft,m.y=e.y+t.clientTop}else a&&(m.x=N(a));return{x:c.left+d.scrollLeft-m.x,y:c.top+d.scrollTop-m.y,width:c.width,height:c.height}}function P(e,t){return u(e)&&"fixed"!==v(e).position?t?t(e):e.offsetParent:null}function R(e,t){const n=a(e);if(!u(e)||L(e))return n;let r=P(e,t);for(;r&&m(r)&&"static"===v(r).position;)r=P(r,t);return r&&("html"===o(r)||"body"===o(r)&&"static"===v(r).position&&!h(r))?n:r||function(e){let t=b(e);for(;u(t)&&!g(t);){if(h(t))return t;t=b(t)}return null}(e)||n}const D={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:a}=e;const l="fixed"===a,c=s(i),d=!!t&&L(t.floating);if(i===c||d&&l)return n;let m={scrollLeft:0,scrollTop:0},h=(0,r.Jx)(1);const p=(0,r.Jx)(0),g=u(i);if((g||!g&&!l)&&(("body"!==o(i)||f(c))&&(m=y(i)),u(i))){const e=A(i);h=T(i),p.x=e.x+i.clientLeft,p.y=e.y+i.clientTop}return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-m.scrollLeft*h.x+p.x,y:n.y*h.y-m.scrollTop*h.y+p.y}},getDocumentElement:s,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:a}=e;const s=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=x(e,[],!1).filter(e=>c(e)&&"body"!==o(e)),i=null;const a="fixed"===v(e).position;let s=a?b(e):e;for(;c(s)&&!g(s);){const t=v(s),n=h(s);n||"fixed"!==t.position||(i=null),(a?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||f(s)&&!n&&O(e,s))?r=r.filter(e=>e!==s):i=t,s=b(s)}return t.set(e,r),r}(t,this._c):[].concat(n),i],l=s[0],u=s.reduce((e,n)=>{const i=j(t,n,a);return e.top=(0,r.T9)(i.top,e.top),e.right=(0,r.jk)(i.right,e.right),e.bottom=(0,r.jk)(i.bottom,e.bottom),e.left=(0,r.T9)(i.left,e.left),e},j(t,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:R,getElementRects:async function(e){const t=this.getOffsetParent||R,n=this.getDimensions;return{reference:_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=E(e);return{width:t,height:n}},getScale:T,isElement:c,isRTL:function(e){return"rtl"===v(e).direction}};function M(e,t,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:u=!1}=i,d=S(e),f=o||a?[...d?x(d):[],...x(t)]:[];f.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const m=d&&c?function(e,t){let n,i=null;const o=s(e);function a(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return function s(l,c){void 0===l&&(l=!1),void 0===c&&(c=1),a();const{left:u,top:d,width:f,height:m}=e.getBoundingClientRect();if(l||t(),!f||!m)return;const h={rootMargin:-(0,r.RI)(d)+"px "+-(0,r.RI)(o.clientWidth-(u+f))+"px "+-(0,r.RI)(o.clientHeight-(d+m))+"px "+-(0,r.RI)(u)+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,c))||1};let p=!0;function g(e){const t=e[0].intersectionRatio;if(t!==c){if(!p)return s();t?s(!1,t):n=setTimeout(()=>{s(!1,1e-7)},100)}p=!1}try{i=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(v){i=new IntersectionObserver(g,h)}i.observe(e)}(!0),a}(d,n):null;let h,p=-1,g=null;l&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),d&&!u&&g.observe(d),g.observe(t));let v=u?A(e):null;return u&&function t(){const r=A(e);!v||r.x===v.x&&r.y===v.y&&r.width===v.width&&r.height===v.height||n();v=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;
2f.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=g)||e.disconnect(),g=null,u&&cancelAnimationFrame(h)}}const F=i.BN,B=i.UU,V=i.Ej,W=i.jD,Q=i.UE,H=i.ER,z=(e,t,n)=>{const r=new Map,o={platform:D,...n},a={...o.platform,_c:r};return(0,i.rD)(e,t,{...o,platform:a})}},54150:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var r=n(96540),i=n(88200);function o(e){const[t,n]=r.useState(void 0);return(0,i.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let i,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,o=t.blockSize}else i=e.offsetWidth,o=e.offsetHeight;n({width:i,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},58174:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(74848),i={wrapper:"core--quantity-selector-module--wrapper--ebed0c",button:"core--quantity-selector-module--button--a003b0",icon:"core--quantity-selector-module--icon--ef01e6",textWrapper:"core--quantity-selector-module--text-wrapper--772877",description:"core--quantity-selector-module--description--c1816d"},o=n(18293),a=n(32389),s=n(96864),l=e=>{let{isDisabled:t,quantity:n,minQuantity:l=0,maxQuantity:c,isMaxQuantityReached:u,onQuantityChanged:d,wrapperClassName:f,classNameLeftButton:m,classNameRightButton:h,quantityClassName:p,perPerson:g,quantityPresentatorOverride:v,removeQuantityIconOverride:y,description:b,testIds:w}=e;const{t:x}=(0,a.Bd)(),E=e=>{if(!d||"function"!=typeof d)return;const t=(e=>{let t=e;return"number"==typeof l&&t<l&&(t=l),"number"==typeof c&&t>c&&(t=c),t})(e);t!==n&&d(t)},S=t||"number"==typeof l&&n<=l,T=t||"number"==typeof c&&n>=c||u,C=null!=v?v:(n+" "+(null!=g?g:"")+" "+(null!=b?b:"")).trim();return(0,r.jsxs)("div",{className:(0,s.TD)(f,i.wrapper),children:[(0,r.jsx)(o.tA,{isDisabled:S,iconCenterNew:y&&1===n?y:"remove",ariaLabel:x("decrease")+" "+x("quantity"),onClick:()=>E(n-1),className:(0,s.TD)(m,i.button,i.buttonDecrease),testId:w&&w[0]}),(0,r.jsx)("span",{className:(0,s.TD)(p,i.textWrapper,"subtitle"),children:C}),(0,r.jsx)(o.tA,{isDisabled:T,iconCenterNew:"add",ariaLabel:x("increase")+" "+x("quantity"),onClick:()=>E(n+1),className:(0,s.TD)(h,i.button,i.buttonIncrease),testId:w&&w[1]})]})}},58241:function(e,t,n){"use strict";n.d(t,{Eq:function(){return u}});var r=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},i=new WeakMap,o=new WeakMap,a={},s=0,l=function(e){return e&&(e.host||l(e.parentNode))},c=function(e,t,n,r){var c=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=l(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);a[n]||(a[n]=new WeakMap);var u=a[n],d=[],f=new Set,m=new Set(c),h=function(e){e&&!f.has(e)&&(f.add(e),h(e.parentNode))};c.forEach(h);var p=function(e){e&&!m.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(f.has(e))p(e);else try{var t=e.getAttribute(r),a=null!==t&&"false"!==t,s=(i.get(e)||0)+1,l=(u.get(e)||0)+1;i.set(e,s),u.set(e,l),d.push(e),1===s&&a&&o.set(e,!0),1===l&&e.setAttribute(n,"true"),a||e.setAttribute(r,"true")}catch(c){console.error("aria-hidden: cannot operate on ",e,c)}})};return p(t),f.clear(),s++,function(){d.forEach(function(e){var t=i.get(e)-1,a=u.get(e)-1;i.set(e,t),u.set(e,a),t||(o.has(e)||e.removeAttribute(r),o.delete(e)),a||e.removeAttribute(n)}),--s||(i=new WeakMap,i=new WeakMap,o=new WeakMap,a={})}},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=t||r(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live]"))),c(i,o,n,"aria-hidden")):function(){return null}}},58291:function(e,t,n){var r,i;!function(){var o,a,s,l,c,u,d,f,m,h,p,g,v,y,b,w,x,E,S,T,C,k,A,I,L,N,j,O,_,P,R=function(e){var t=new R.Builder;return t.pipeline.add(R.trimmer,R.stopWordFilter,R.stemmer),t.searchPipeline.add(R.stemmer),e.call(t,t),t.build()};R.version="2.3.9",R.utils={},R.utils.warn=(o=this,function(e){o.console&&console.warn&&console.warn(e)}),R.utils.asString=function(e){return null==e?"":e.toString()},R.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),n=Object.keys(e),r=0;r<n.length;r++){var i=n[r],o=e[i];if(Array.isArray(o))t[i]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");t[i]=o}}return t},R.FieldRef=function(e,t,n){this.docRef=e,this.fieldName=t,this._stringValue=n},R.FieldRef.joiner="/",R.FieldRef.fromString=function(e){var t=e.indexOf(R.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var n=e.slice(0,t),r=e.slice(t+1);return new R.FieldRef(r,n,e)},R.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+R.FieldRef.joiner+this.docRef),this._stringValue},R.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},R.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},R.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},R.Set.prototype.contains=function(e){return!!this.elements[e]},R.Set.prototype.intersect=function(e){var t,n,r,i=[];if(e===R.Set.complete)return this;if(e===R.Set.empty)return e;this.length<e.length?(t=this,n=e):(t=e,n=this),r=Object.keys(t.elements);for(var o=0;o<r.length;o++){var a=r[o];a in n.elements&&i.push(a)}return new R.Set(i)},R.Set.prototype.union=function(e){return e===R.Set.complete?R.Set.complete:e===R.Set.empty?this:new R.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},R.idf=function(e,t){var n=0;for(var r in e)"_index"!=r&&(n+=Object.keys(e[r]).length);var i=(t-n+.5)/(n+.5);return Math.log(1+Math.abs(i))},R.Token=function(e,t){this.str=e||"",this.metadata=t||{}},R.Token.prototype.toString=function(){return this.str},R.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},R.Token.prototype.clone=function(e){return e=e||function(e){return e},new R.Token(e(this.str,this.metadata),this.metadata)},R.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map(function(e){return new R.Token(R.utils.asString(e).toLowerCase(),R.utils.clone(t))});for(var n=e.toString().toLowerCase(),r=n.length,i=[],o=0,a=0;o<=r;o++){var s=o-a;if(n.charAt(o).match(R.tokenizer.separator)||o==r){if(s>0){var l=R.utils.clone(t)||{};l.position=[a,s],l.index=i.length,i.push(new R.Token(n.slice(a,o),l))}a=o+1}}return i},R.tokenizer.separator=/[\s\-]+/,R.Pipeline=function(){this._stack=[]},R.Pipeline.registeredFunctions=Object.create(null),R.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&R.utils.warn("Overwriting existing registered function: "+t),e.label=t,R.Pipeline.registeredFunctions[e.label]=e},R.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||R.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},R.Pipeline.load=function(e){var t=new R.Pipeline;return e.forEach(function(e){var n=R.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)}),t},R.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEac
2h(function(e){R.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)},this)},R.Pipeline.prototype.after=function(e,t){R.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},R.Pipeline.prototype.before=function(e,t){R.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},R.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},R.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n<t;n++){for(var r=this._stack[n],i=[],o=0;o<e.length;o++){var a=r(e[o],o,e);if(null!=a&&""!==a)if(Array.isArray(a))for(var s=0;s<a.length;s++)i.push(a[s]);else i.push(a)}e=i}return e},R.Pipeline.prototype.runString=function(e,t){var n=new R.Token(e,t);return this.run([n]).map(function(e){return e.toString()})},R.Pipeline.prototype.reset=function(){this._stack=[]},R.Pipeline.prototype.toJSON=function(){return this._stack.map(function(e){return R.Pipeline.warnIfFunctionNotRegistered(e),e.label})},R.Vector=function(e){this._magnitude=0,this.elements=e||[]},R.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,n=this.elements.length/2,r=n-t,i=Math.floor(r/2),o=this.elements[2*i];r>1&&(o<e&&(t=i),o>e&&(n=i),o!=e);)r=n-t,i=t+Math.floor(r/2),o=this.elements[2*i];return o==e||o>e?2*i:o<e?2*(i+1):void 0},R.Vector.prototype.insert=function(e,t){this.upsert(e,t,function(){throw"duplicate index"})},R.Vector.prototype.upsert=function(e,t,n){this._magnitude=0;var r=this.positionForIndex(e);this.elements[r]==e?this.elements[r+1]=n(this.elements[r+1],t):this.elements.splice(r,0,e,t)},R.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,n=1;n<t;n+=2){var r=this.elements[n];e+=r*r}return this._magnitude=Math.sqrt(e)},R.Vector.prototype.dot=function(e){for(var t=0,n=this.elements,r=e.elements,i=n.length,o=r.length,a=0,s=0,l=0,c=0;l<i&&c<o;)(a=n[l])<(s=r[c])?l+=2:a>s?c+=2:a==s&&(t+=n[l+1]*r[c+1],l+=2,c+=2);return t},R.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},R.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t<this.elements.length;t+=2,n++)e[n]=this.elements[t];return e},R.Vector.prototype.toJSON=function(){return this.elements},R.stemmer=(a={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},s={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},d="^("+(c="[^aeiou][^aeiouy]*")+")?"+(u=(l="[aeiouy]")+"[aeiou]*")+c+"("+u+")?$",f="^("+c+")?"+u+c+u+c,m="^("+c+")?"+l,h=new RegExp("^("+c+")?"+u+c),p=new RegExp(f),g=new RegExp(d),v=new RegExp(m),y=/^(.+?)(ss|i)es$/,b=/^(.+?)([^s])s$/,w=/^(.+?)eed$/,x=/^(.+?)(ed|ing)$/,E=/.$/,S=/(at|bl|iz)$/,T=new RegExp("([^aeiouylsz])\\1$"),C=new RegExp("^"+c+l+"[^aeiouwxy]$"),k=/^(.+?[^aeiou])y$/,A=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,I=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,L=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,N=/^(.+?)(s|t)(ion)$/,j=/^(.+?)e$/,O=/ll$/,_=new RegExp("^"+c+l+"[^aeiouwxy]$"),P=function(e){var t,n,r,i,o,l,c;if(e.length<3)return e;if("y"==(r=e.substr(0,1))&&(e=r.toUpperCase()+e.substr(1)),o=b,(i=y).test(e)?e=e.replace(i,"$1$2"):o.test(e)&&(e=e.replace(o,"$1$2")),o=x,(i=w).test(e)){var u=i.exec(e);(i=h).test(u[1])&&(i=E,e=e.replace(i,""))}else o.test(e)&&(t=(u=o.exec(e))[1],(o=v).test(t)&&(l=T,c=C,(o=S).test(e=t)?e+="e":l.test(e)?(i=E,e=e.replace(i,"")):c.test(e)&&(e+="e")));return(i=k).test(e)&&(e=(t=(u=i.exec(e))[1])+"i"),(i=A).test(e)&&(t=(u=i.exec(e))[1],n=u[2],(i=h).test(t)&&(e=t+a[n])),(i=I).test(e)&&(t=(u=i.exec(e))[1],n=u[2],(i=h).test(t)&&(e=t+s[n])),o=N,(i=L).test(e)?(t=(u=i.exec(e))[1],(i=p).test(t)&&(e=t)):o.test(e)&&(t=(u=o.exec(e))[1]+u[2],(o=p).test(t)&&(e=t)),(i=j).test(e)&&(t=(u=i.exec(e))[1],o=g,l=_,((i=p).test(t)||o.test(t)&&!l.test(t))&&(e=t)),o=p,(i=O).test(e)&&o.test(e)&&(i=E,e=e.replace(i,"")),"y"==r&&(e=r.toLowerCase()+e.substr(1)),e},function(e){return e.update(P)}),R.Pipeline.registerFunction(R.stemmer,"stemmer"),R.generateStopWordFilter=function(e){var t=e.reduce(function(e,t){return e[t]=t,e},{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},R.stopWordFilter=R.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),R.Pipeline.registerFunction(R.stopWordFilter,"stopWordFilter"),R.trimmer=function(e){return e.update(function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")})},R.Pipeline.registerFunction(R.trimmer,"trimmer"),R.TokenSet=function(){this.final=!1,this.edges={},this.id=R.TokenSet._nextId,R.TokenSet._nextId+=1},R.TokenSet._nextId=1,R.TokenSet.fromArray=function(e){for(var t=new R.TokenSet.Builder,n=0,r=e.length;n<r;n++)t.insert(e[n]);return t.finish(),t.root},R.TokenSet.fromClause=function(e){return"editDistance"in e?R.TokenSet.fromFuzzyString(e.term,e.editDistance):R.TokenSet.fromString(e.term)},R.TokenSet.fromFuzzyString=function(e,t){for(var n=new R.TokenSet,r=[{node:n,editsRemaining:t,str:e}];r.length;){var i=r.pop();if(i.str.length>0){var o,a=i.str.charAt(0);a in i.node.edges?o=i.node.edges[a]:(o=new R.TokenSet,i.node.edges[a]=o),1==i.str.length&&(o.final=!0),r.push({node:o,editsRemaining:i.editsRemaining,str:i.str.slice(1)})}if(0!=i.editsRemaining){if("*"in i.node.edges)var s=i.node.edges["*"];else{s=new R.TokenSet;i.node.edges["*"]=s}if(0==i.str.length&&(s.final=!0),r.push({node:s,editsRemaining:i.editsRemaining-1,str:i.str}),i.str.length>1&&r.push({node:i.node,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)}),1==i.str.length&&(i.node.final=!0),i.str.length>=1){if("*"in i.node.edges)var l=i.node.edges["*"];else{l=new R.TokenSet;i.node.edges["*"]=l}1==i.str.length&&(l.final=!0),r.push({node:l,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)})}if(i.str.length>1){var c,u=i.str.charAt(0),d=i.str.charAt(1);d in i.node.edges?c=i.node.edges[d]:(c=new R.TokenSet,i.node.edges[d]=c),1==i.str.length&&(c.final=!0),r.push({node:c,editsRemaining:i.editsRemaining-1,str:u+i.str.slice(2)})}}}return n},R.TokenSet.fromString=function(e){for(var t=new R.TokenSet,n=t,r=0,i=e.length;r<i;r++){var o=e[r],a=r==i-1;
2if("*"==o)t.edges[o]=t,t.final=a;else{var s=new R.TokenSet;s.final=a,t.edges[o]=s,t=s}}return n},R.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var n=t.pop(),r=Object.keys(n.node.edges),i=r.length;n.node.final&&(n.prefix.charAt(0),e.push(n.prefix));for(var o=0;o<i;o++){var a=r[o];t.push({prefix:n.prefix.concat(a),node:n.node.edges[a]})}}return e},R.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),n=t.length,r=0;r<n;r++){var i=t[r];e=e+i+this.edges[i].id}return e},R.TokenSet.prototype.intersect=function(e){for(var t=new R.TokenSet,n=void 0,r=[{qNode:e,output:t,node:this}];r.length;){n=r.pop();for(var i=Object.keys(n.qNode.edges),o=i.length,a=Object.keys(n.node.edges),s=a.length,l=0;l<o;l++)for(var c=i[l],u=0;u<s;u++){var d=a[u];if(d==c||"*"==c){var f=n.node.edges[d],m=n.qNode.edges[c],h=f.final&&m.final,p=void 0;d in n.output.edges?(p=n.output.edges[d]).final=p.final||h:((p=new R.TokenSet).final=h,n.output.edges[d]=p),r.push({qNode:m,output:p,node:f})}}}return t},R.TokenSet.Builder=function(){this.previousWord="",this.root=new R.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},R.TokenSet.Builder.prototype.insert=function(e){var t,n=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var r=0;r<e.length&&r<this.previousWord.length&&e[r]==this.previousWord[r];r++)n++;this.minimize(n),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(r=n;r<e.length;r++){var i=new R.TokenSet,o=e[r];t.edges[o]=i,this.uncheckedNodes.push({parent:t,char:o,child:i}),t=i}t.final=!0,this.previousWord=e},R.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},R.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var n=this.uncheckedNodes[t],r=n.child.toString();r in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[r]:(n.child._str=r,this.minimizedNodes[r]=n.child),this.uncheckedNodes.pop()}},R.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},R.Index.prototype.search=function(e){return this.query(function(t){new R.QueryParser(e,t).parse()})},R.Index.prototype.query=function(e){for(var t=new R.Query(this.fields),n=Object.create(null),r=Object.create(null),i=Object.create(null),o=Object.create(null),a=Object.create(null),s=0;s<this.fields.length;s++)r[this.fields[s]]=new R.Vector;e.call(t,t);for(s=0;s<t.clauses.length;s++){var l=t.clauses[s],c=null,u=R.Set.empty;c=l.usePipeline?this.pipeline.runString(l.term,{fields:l.fields}):[l.term];for(var d=0;d<c.length;d++){var f=c[d];l.term=f;var m=R.TokenSet.fromClause(l),h=this.tokenSet.intersect(m).toArray();if(0===h.length&&l.presence===R.Query.presence.REQUIRED){for(var p=0;p<l.fields.length;p++){o[j=l.fields[p]]=R.Set.empty}break}for(var g=0;g<h.length;g++){var v=h[g],y=this.invertedIndex[v],b=y._index;for(p=0;p<l.fields.length;p++){var w=y[j=l.fields[p]],x=Object.keys(w),E=v+"/"+j,S=new R.Set(x);if(l.presence==R.Query.presence.REQUIRED&&(u=u.union(S),void 0===o[j]&&(o[j]=R.Set.complete)),l.presence!=R.Query.presence.PROHIBITED){if(r[j].upsert(b,l.boost,function(e,t){return e+t}),!i[E]){for(var T=0;T<x.length;T++){var C,k=x[T],A=new R.FieldRef(k,j),I=w[k];void 0===(C=n[A])?n[A]=new R.MatchData(v,j,I):C.add(v,j,I)}i[E]=!0}}else void 0===a[j]&&(a[j]=R.Set.empty),a[j]=a[j].union(S)}}}if(l.presence===R.Query.presence.REQUIRED)for(p=0;p<l.fields.length;p++){o[j=l.fields[p]]=o[j].intersect(u)}}var L=R.Set.complete,N=R.Set.empty;for(s=0;s<this.fields.length;s++){var j;o[j=this.fields[s]]&&(L=L.intersect(o[j])),a[j]&&(N=N.union(a[j]))}var O=Object.keys(n),_=[],P=Object.create(null);if(t.isNegated()){O=Object.keys(this.fieldVectors);for(s=0;s<O.length;s++){A=O[s];var D=R.FieldRef.fromString(A);n[A]=new R.MatchData}}for(s=0;s<O.length;s++){var M=(D=R.FieldRef.fromString(O[s])).docRef;if(L.contains(M)&&!N.contains(M)){var F,B=this.fieldVectors[D],V=r[D.fieldName].similarity(B);
2if(void 0!==(F=P[M]))F.score+=V,F.matchData.combine(n[D]);else{var W={ref:M,score:V,matchData:n[D]};P[M]=W,_.push(W)}}}return _.sort(function(e,t){return t.score-e.score})},R.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map(function(e){return[e,this.invertedIndex[e]]},this),t=Object.keys(this.fieldVectors).map(function(e){return[e,this.fieldVectors[e].toJSON()]},this);return{version:R.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},R.Index.load=function(e){var t={},n={},r=e.fieldVectors,i=Object.create(null),o=e.invertedIndex,a=new R.TokenSet.Builder,s=R.Pipeline.load(e.pipeline);e.version!=R.version&&R.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+R.version+"' does not match serialized index '"+e.version+"'");for(var l=0;l<r.length;l++){var c=(d=r[l])[0],u=d[1];n[c]=new R.Vector(u)}for(l=0;l<o.length;l++){var d,f=(d=o[l])[0],m=d[1];a.insert(f),i[f]=m}return a.finish(),t.fields=e.fields,t.fieldVectors=n,t.invertedIndex=i,t.tokenSet=a.root,t.pipeline=s,new R.Index(t)},R.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=R.tokenizer,this.pipeline=new R.Pipeline,this.searchPipeline=new R.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},R.Builder.prototype.ref=function(e){this._ref=e},R.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},R.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},R.Builder.prototype.k1=function(e){this._k1=e},R.Builder.prototype.add=function(e,t){var n=e[this._ref],r=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var i=0;i<r.length;i++){var o=r[i],a=this._fields[o].extractor,s=a?a(e):e[o],l=this.tokenizer(s,{fields:[o]}),c=this.pipeline.run(l),u=new R.FieldRef(n,o),d=Object.create(null);this.fieldTermFrequencies[u]=d,this.fieldLengths[u]=0,this.fieldLengths[u]+=c.length;for(var f=0;f<c.length;f++){var m=c[f];if(null==d[m]&&(d[m]=0),d[m]+=1,null==this.invertedIndex[m]){var h=Object.create(null);h._index=this.termIndex,this.termIndex+=1;for(var p=0;p<r.length;p++)h[r[p]]=Object.create(null);this.invertedIndex[m]=h}null==this.invertedIndex[m][o][n]&&(this.invertedIndex[m][o][n]=Object.create(null));for(var g=0;g<this.metadataWhitelist.length;g++){var v=this.metadataWhitelist[g],y=m.metadata[v];null==this.invertedIndex[m][o][n][v]&&(this.invertedIndex[m][o][n][v]=[]),this.invertedIndex[m][o][n][v].push(y)}}}},R.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,n={},r={},i=0;i<t;i++){var o=R.FieldRef.fromString(e[i]),a=o.fieldName;r[a]||(r[a]=0),r[a]+=1,n[a]||(n[a]=0),n[a]+=this.fieldLengths[o]}var s=Object.keys(this._fields);for(i=0;i<s.length;i++){var l=s[i];n[l]=n[l]/r[l]}this.averageFieldLength=n},R.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),n=t.length,r=Object.create(null),i=0;i<n;i++){for(var o=R.FieldRef.fromString(t[i]),a=o.fieldName,s=this.fieldLengths[o],l=new R.Vector,c=this.fieldTermFrequencies[o],u=Object.keys(c),d=u.length,f=this._fields[a].boost||1,m=this._documents[o.docRef].boost||1,h=0;h<d;h++){var p,g,v,y=u[h],b=c[y],w=this.invertedIndex[y]._index;void 0===r[y]?(p=R.idf(this.invertedIndex[y],this.documentCount),r[y]=p):p=r[y],g=p*((this._k1+1)*b)/(this._k1*(1-this._b+this._b*(s/this.averageFieldLength[a]))+b),g*=f,g*=m,v=Math.round(1e3*g)/1e3,l.insert(w,v)}e[o]=l}this.fieldVectors=e},R.Builder.prototype.createTokenSet=function(){this.tokenSet=R.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},R.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new R.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},R.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1
vendor: 4,607 bytes, line 2
2);t.unshift(this),e.apply(this,t)},R.MatchData=function(e,t,n){for(var r=Object.create(null),i=Object.keys(n||{}),o=0;o<i.length;o++){var a=i[o];r[a]=n[a].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=r)},R.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),n=0;n<t.length;n++){var r=t[n],i=Object.keys(e.metadata[r]);null==this.metadata[r]&&(this.metadata[r]=Object.create(null));for(var o=0;o<i.length;o++){var a=i[o],s=Object.keys(e.metadata[r][a]);null==this.metadata[r][a]&&(this.metadata[r][a]=Object.create(null));for(var l=0;l<s.length;l++){var c=s[l];null==this.metadata[r][a][c]?this.metadata[r][a][c]=e.metadata[r][a][c]:this.metadata[r][a][c]=this.metadata[r][a][c].concat(e.metadata[r][a][c])}}}},R.MatchData.prototype.add=function(e,t,n){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=n);if(t in this.metadata[e])for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i];o in this.metadata[e][t]?this.metadata[e][t][o]=this.metadata[e][t][o].concat(n[o]):this.metadata[e][t][o]=n[o]}else this.metadata[e][t]=n},R.Query=function(e){this.clauses=[],this.allFields=e},R.Query.wildcard=new String("*"),R.Query.wildcard.NONE=0,R.Query.wildcard.LEADING=1,R.Query.wildcard.TRAILING=2,R.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},R.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=R.Query.wildcard.NONE),e.wildcard&R.Query.wildcard.LEADING&&e.term.charAt(0)!=R.Query.wildcard&&(e.term="*"+e.term),e.wildcard&R.Query.wildcard.TRAILING&&e.term.slice(-1)!=R.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=R.Query.presence.OPTIONAL),this.clauses.push(e),this},R.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=R.Query.presence.PROHIBITED)return!1;return!0},R.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach(function(e){this.term(e,R.utils.clone(t))},this),this;var n=t||{};return n.term=e.toString(),this.clause(n),this},R.QueryParseError=function(e,t,n){this.name="QueryParseError",this.message=e,this.start=t,this.end=n},R.QueryParseError.prototype=new Error,R.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},R.QueryLexer.prototype.run=function(){for(var e=R.QueryLexer.lexText;e;)e=e(this)},R.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,n=this.pos,r=0;r<this.escapeCharPositions.length;r++)n=this.escapeCharPositions[r],e.push(this.str.slice(t,n)),t=n+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},R.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},R.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},R.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return R.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},R.QueryLexer.prototype.width=function(){return this.pos-this.start},R.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},R.QueryLexer.prototype.backup=function(){this.pos-=1},R.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=R.QueryLexer.EOS&&this.backup()},R.QueryLexer.prototype.more=function(){return this.pos<this.length},R.QueryLexer.EOS="EOS",R.QueryLexer.FIELD="FIELD",R.QueryLexer.TERM="TERM",R.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",R.QueryLexer.BOOST="BOOST",R.QueryLexer.PRESENCE="PRESENCE",R.QueryLexer.lexField=function(e){return e.backup(),e.emit(R.QueryLexer.FIELD),e.ignore(),R.QueryLexer.lexText},R.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(R.QueryLexer.TERM)),e.ignore(),e.more())return R.QueryLexer.lexText},R.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(R.QueryLexer.EDIT_DISTANCE),R.QueryLexer.lexText},R.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(R.QueryLexer.BOOST),R.QueryLexer.lexText},R.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(R.QueryLexer.TERM)},R.QueryLexer.termSeparator=R.tokenizer.separator,R.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==R.QueryLexer.EOS)return R.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return R.QueryLexer.lexField;
2if("~"==t)return e.backup(),e.width()>0&&e.emit(R.QueryLexer.TERM),R.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(R.QueryLexer.TERM),R.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(R.QueryLexer.PRESENCE),R.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(R.QueryLexer.PRESENCE),R.QueryLexer.lexText;if(t.match(R.QueryLexer.termSeparator))return R.QueryLexer.lexTerm}else e.escapeCharacter()}},R.QueryParser=function(e,t){this.lexer=new R.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},R.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=R.QueryParser.parseClause;e;)e=e(this);return this.query},R.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},R.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},R.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},R.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case R.QueryLexer.PRESENCE:return R.QueryParser.parsePresence;case R.QueryLexer.FIELD:return R.QueryParser.parseField;case R.QueryLexer.TERM:return R.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new R.QueryParseError(n,t.start,t.end)}},R.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=R.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=R.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new R.QueryParseError(n,t.start,t.end)}var r=e.peekLexeme();if(null==r){n="expecting term or field, found nothing";throw new R.QueryParseError(n,t.start,t.end)}switch(r.type){case R.QueryLexer.FIELD:return R.QueryParser.parseField;case R.QueryLexer.TERM:return R.QueryParser.parseTerm;default:n="expecting term or field, found '"+r.type+"'";throw new R.QueryParseError(n,r.start,r.end)}}},R.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map(function(e){return"'"+e+"'"}).join(", "),r="unrecognised field '"+t.str+"', possible fields: "+n;throw new R.QueryParseError(r,t.start,t.end)}e.currentClause.fields=[t.str];var i=e.peekLexeme();if(null==i){r="expecting term, found nothing";throw new R.QueryParseError(r,t.start,t.end)}if(i.type===R.QueryLexer.TERM)return R.QueryParser.parseTerm;r="expecting term, found '"+i.type+"'";throw new R.QueryParseError(r,i.start,i.end)}},R.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(null!=n)switch(n.type){case R.QueryLexer.TERM:return e.nextClause(),R.QueryParser.parseTerm;case R.QueryLexer.FIELD:return e.nextClause(),R.QueryParser.parseField;case R.QueryLexer.EDIT_DISTANCE:return R.QueryParser.parseEditDistance;case R.QueryLexer.BOOST:return R.QueryParser.parseBoost;case R.QueryLexer.PRESENCE:return e.nextClause(),R.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+n.type+"'";throw new R.QueryParseError(r,n.start,n.end)}else e.nextClause()}},R.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="edit distance must be numeric";throw new R.QueryParseError(r,t.start,t.end)}e.currentClause.editDistance=n;var i=e.peekLexeme();if(null!=i)switch(i.type){case R.QueryLexer.TERM:return e.nextClause(),R.QueryParser.parseTerm;case R.QueryLexer.FIELD:return e.nextClause(),R.QueryParser.parseField;case R.QueryLexer.EDIT_DISTANCE:return R.QueryParser.parseEditDistance;case R.QueryLexer.BOOST:return R.QueryParser.parseBoost;case R.QueryLexer.PRESENCE:return e.nextClause(),R.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+i.type+"'";throw new R.QueryParseError(r,i.start,i.end)}else e.nextClause()}}
2,R.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="boost must be numeric";throw new R.QueryParseError(r,t.start,t.end)}e.currentClause.boost=n;var i=e.peekLexeme();if(null!=i)switch(i.type){case R.QueryLexer.TERM:return e.nextClause(),R.QueryParser.parseTerm;case R.QueryLexer.FIELD:return e.nextClause(),R.QueryParser.parseField;case R.QueryLexer.EDIT_DISTANCE:return R.QueryParser.parseEditDistance;case R.QueryLexer.BOOST:return R.QueryParser.parseBoost;case R.QueryLexer.PRESENCE:return e.nextClause(),R.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+i.type+"'";throw new R.QueryParseError(r,i.start,i.end)}else e.nextClause()}},void 0===(i="function"==typeof(r=function(){return R})?r.call(t,n,t,e):r)||(e.exports=i)}()},61463:function(e,t,n){"use strict";n.d(t,{Oh:function(){return o}});var r=n(96540),i=0;function o(){r.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??a()),document.body.insertAdjacentElement("beforeend",e[1]??a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},62133:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(96540),i=n(74848);function o(e,t=[]){let n=[];const o=()=>{const t=n.map(e=>r.createContext(e));return function(n){const i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(t,o){const a=r.createContext(o),s=n.length;n=[...n,o];const l=t=>{const{scope:n,children:o,...l}=t,c=n?.[e]?.[s]||a,u=r.useMemo(()=>l,Object.values(l));return(0,i.jsx)(c.Provider,{value:u,children:o})};return l.displayName=t+"Provider",[l,function(n,i){const l=i?.[e]?.[s]||a,c=r.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},a(o,...t)]}function a(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const i=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}},62209:function(e,t,n){"use strict";n.d(t,{bh:function(){return g},CS:function(){return p},jW:function(){return I},t2:function(){return w},Ay:function(){return L},Te:function(){return b},tW:function(){return y},Cy:function(){return v},mN:function(){return A}});var r=n(60436),i=n(64741),o=n(2383),a=n(53098);var s=function(e){return!0===e||!1===e||(0,a.A)(e)&&"[object Boolean]"==(0,o.A)(e)},l=n(81590),c=n(49521),u=n(52156),d=n(23931),f=n(72890),m=n(96540),h=n(49734);const p={EMAIL:"EMAIL",PHONE:"PHONE",BIRTHDATE:"BIRTHDATE",CONTACT:"CONTACT",ZIPCODE:"ZIPCODE",TERMS_AND_CONDITIONS_CHECKBOX:"TERMS_AND_CONDITIONS_CHECKBOX",LICENSE_PLATE:"LICENSE_PLATE",DATE:"DATE"},g={INPUT_FIELD:"INPUT_FIELD",DATE_FIELD:"DATE_FIELD",IMAGE_FIELD:"IMAGE_FIELD",SELECT_BOX:"SELECT_BOX",CHECK_BOX:"CHECK_BOX",AMOUNT_FIELD:"AMOUNT_FIELD",TEXT_AREA:"TEXT_AREA"},v=function(e,t,n,i,o){if(void 0===n&&(n="sessionStorage"),!e||null===e.fields||0===e.fields.size||!t)throw Error("Missing params to saveFormValues.");const a=((0,f.EI)(o)?(0,r.A)(e.fields.values()).filter(e=>!o.includes(e.name)):(0,r.A)(e.fields.values())).reduce((e,t)=>t.value?(e[t.name]=t.value,e):e,{}),s="number"==typeof i&&i>0?d.Ay.addMinutes((0,d.JO)(),i).getTime():null;"sessionStorage"===n?c.A.setItem(t,a,s):u.A.setItem(t,a,s)},y=function(e,t,n,r){if(void 0===n&&(n="sessionStorage"),!e||null===e.fields||0===e.fields.size||!t)throw Error("Missing params to restoreFormValues.");const i=Object.assign({},e),o="sessionStorage"===n?c.A.getItem(t):u.A.getItem(t);if(!o)return i;for(const a in o){if(!Object.hasOwn(o,a))continue;if((0,f.EI)(r)&&r.includes(a))continue;const e=i.fields.get(a);e.value=o[a];const t=T(e);i.fields.set(e.name,t)}return i},b=function(e){return void 0===e&&(e=new Map),{fields:e,isFormValid:null}},w=function(e,t){void 0===t&&(t={value:void 0,isRequired:void 0,validationType:void 0,isEditable:void 0,errorText:void 0,label:void 0,placeholder:void 0,type:void 0,autoComplete:void 0,helperText:void 0,selectBoxOptions:void 0,selectableCalendarDates:void 0,fullyBookedDates:void 0,checkBoxOptions:void 0,fieldId:void 0,price:void 0,priceType:void 0,baseAmount:!1,minValue:void 0,maxValue:void 0,removeDaysInThePast:void 0,inputRef:void 0});const n=Object.assign({},{value:null,isRequired:!1,validationType:null,isEditable:!0,errorText:null,label:null,placeholder:null,type:g.INPUT_FIELD,autoComplete:null,helperText:null,selectBoxOptions:[],selectableCalendarDates:null,fullyBookedDates:null,checkBoxOptions:[],fieldId:null,price:null,priceType:null,baseAmount:!1,minValue:null,maxValue:null,removeDaysInThePast:null,inputRef:null},t);return{name:e,value:n.value,isValid:null,errorText:n.errorText,validationType:n.validationType,isRequired:n.isRequired,isEditable:n.isEditable,label:n.label,placeholder:n.placeholder,type:n.type,autoComplete:n.autoComplete,helperText:n.helperText,selectBoxOptions:n.selectBoxOptions,selectableCalendarDates:n.selectableCalendarDates,fullyBookedDates:n.fullyBookedDates,checkBoxOptions:n.checkBoxOptions,fieldId:n.fieldId,price:n.price,priceType:n.priceType,baseAmount:n.baseAmount,minValue:n.minValue,maxValue:n.maxValue,removeDaysInThePast:n.removeDaysInThePast,inputRef:n.inputRef,inputMode:n.inputMode}},x=e=>{for(const t of e.fields.values()){if(t.isEditable&&(!1===t.isValid||t.isRequired&&k(t.value)||t.isRequired&&0===t.value.length))return!1;if(t.isRequired&&!1===t.isValid)return!1;if(t.isRequired&&null===t.isValid&&!1===T(t).isValid)return!1}return!0},E=e=>{const t=new Map;for(const n of e.fields.values())n.isEditable&&n.isRequired&&k(n.value)?t.set(n.name,"REQUIRED_BUT_EMPTY"):(n.isEditable&&!1===n.isValid||n.isEditable&&null===n.isValid&&!1===T(n).isValid)&&t.set(n.name,"INVALID_VALIDATION");return t.size>0?t:null},S=e=>{const t=Object.assign({},e);for(const n of t.fields.values()){const e=T(n);t.fields.set(n.name,e)}return t},T=e=>{const t=Object.assign({},e);if(!e.isEditable)return t;if(t.isRequired&&k(t.value))return t.isValid=!1,t;if(t.validationType){t.validationType===p.ZIPCODE&&(t.value=t.value.replace(/\s/g,""));const e=C(t.value,t.validationType),n=void 0!==t.value&&null!==t.value&&""!==t.value;if(!e&&n)return t.isValid=!1,t}if("AMOUNT_FIELD"===t.type){var n;const e=Number(null!==(n=t.value)&&void 0!==n?n:0),r=void 0!==t.value&&null!==t.value&&""!==t.value;if((t.isRequired||r)&&(null!=t.minValue&&e<t.minValue||null!=t.maxValue&&e>t.maxValue))return t.isValid=!1,t}return Object.assign({},t,{isValid:!0})},C=(e,t)=>{switch(t){case p.EMAIL:return(0,l.DT)(e);case p.PHONE:return(0,l.FY)(e);case p.BIRTHDATE:return(0,l.Ws)(e,1,120);case p.LICENSE_PLATE:return(0,l.AA)(e);case p.CONTACT:return!(!(0,l.DT)(e)&&!(0,l.FY)(e));case p.ZIPCODE:return(0,l.Xh)(e);case p.DATE:return!0;
2case p.TERMS_AND_CONDITIONS_CHECKBOX:for(const t of e)if(t.checked)return!0;return!1}return null},k=e=>!e||""===e,A=function(e,t){void 0===t&&(t=!1);const n=(0,m.useMemo)(()=>{if(!e||!t)return e;const n=new Map((0,r.A)(e.fields.entries()).map(e=>{let[t,n]=e;return[t,n.inputRef?n:Object.assign({},n,{inputRef:{current:null}})]}));return Object.assign({},e,{fields:n})},[e,t]),[o,a]=(0,m.useState)(n),[l,c]=(0,m.useState)(!1),[u,d]=(0,m.useState)(new Map),f=(0,m.useRef)(o);f.current=o;const p=(0,m.useCallback)(function(e,t,n){void 0===n&&(n={instantValidate:!1});const r=Object.assign({},f.current.fields.get(e));r.value=t;const i={fields:new Map(f.current.fields)};if(s(n.isValid))return i.fields.set(e,Object.assign({},r,{isValid:n.isValid})),a(i),void c(x(i));if(null!==r.isValid||n.instantValidate){const t=T(r);i.fields.set(e,t),a(i),c(x(i))}else i.fields.set(e,r),a(i),v(e)},[]),g=(0,m.useCallback)(e=>{const t=T(f.current.fields.get(e)),n={fields:new Map(f.current.fields)};n.fields.set(e,t),a(n),c(x(n))},[]),v=(0,m.useCallback)(function(e,t){void 0===t&&(t=1e3);const n=u.get(e);if(n)n.cancel(),n(e);else{const n=(0,i.A)(()=>{g(e)},t);u.set(e,n),d(u),n()}},[u,d,g]),y=(0,m.useCallback)(()=>{const e=S(f.current),t=x(e);return a(e),c(t),{form:Object.assign({},e),isFormValid:t}},[]),b=(0,m.useCallback)(function(e){void 0===e&&(e=!0);const t=S(f.current),n=E(t);return e&&a(t),c(null===n),{form:Object.assign({},t),formValidationError:n}},[]),w=(0,m.useCallback)(function(e,t){var n;let r;if(void 0===t&&(t=!0),"FIRST_INVALID"===e){const e=E(f.current);r=Array.from(f.current.fields.values()).find(t=>{var n;return(null===(n=t.inputRef)||void 0===n?void 0:n.current)&&t.isEditable&&(null==e?void 0:e.has(t.name))})}else if(r=f.current.fields.get(e),null===(n=r)||void 0===n||!n.isEditable)return;r&&(t?((0,h.A)(r.inputRef.current,{verticalOffset:-100,speed:1e3}),r.inputRef.current.focus({preventScroll:!1})):r.inputRef.current.focus())},[]);return[o,l,p,a,y,b,w]},I=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.forEach(t=>{t&&"object"==typeof t&&"current"in t?t.current=e:t&&"function"==typeof t&&t(e)})};var L=(e,t)=>{const n=new Map,r=function(r,o){void 0===o&&(o=1e3);const a=n.get(r);if(a)a.cancel(),a(r);else{const a=(0,i.A)(()=>(n=>
2{const r=T(t.state[e].fields.get(n)),i={fields:new Map(t.state[e].fields),isFormValid:t.state[e].isFormValid};i.fields.set(n,r),i.isFormValid=x(i),t.setState({[e]:i})})(r),o);n.set(r,a),a()}};return{handleFieldOnChange:function(n,i,o){void 0===o&&(o={instantValidate:!1});const a=Object.assign({},t.state[e].fields.get(n));a.value=i;const s={fields:new Map(t.state[e].fields),isFormValid:t.state[e].isFormValid};if(null!==a.isValid||o.instantValidate){const r=T(a);s.fields.set(n,r),s.isFormValid=x(s),t.setState({[e]:s})}else s.fields.set(n,a),t.setState({[e]:s},()=>r(n))}}}},64218:function(e,t,n){"use strict";n.d(t,{J:function(){return v}});var r=n(90265);const i="hantera-biljetter",o="handle-tickets",a="hantera-aktiviteter",s="handle-activities",l="hantera-produkter",c="handle-products",u="ge-bort-produkt",d="give-away-product",f="smarta-armband",m="smart-wristbands",h={sv:{HOME:"hem",FRIENDS:"vanner",GIFTS:"presenter",LOGIN:"login",ORDERS:"ordrar",DISCOUNTS:"rabattkoder",PARKING:"parkering",PROFILE:"profil",BOOKING:"bokning",HANDLE_BOOKING:i,SEASON_PASSES:"sasongskort",GIFT_CARDS:"presentkort",SMART_WRISTBANDS:f,SMART_WRISTBANDS_BLOCK:f+"/sparra",SMART_WRISTBANDS_RECAP:f+"/summering",TICKETS:"biljetter",CHANGE_VISIT_DATE:i+"/andra-besoksdag",CHANGE_JETPASS:i+"/andra-jetpass",OBLITERATE_TICKETS:i+"/avboka",HANDLE_ACTIVITY_PASSES:a,CHANGE_ACTIVITY_PASS_DATE:a+"/andra-dag",CHANGE_ACTIVITY_PASS_TIME:a+"/andra-tid",RECEIVE_GIFT:l+"/ta-emot-produkt",GIVE_AWAY_TICKET_HISTORY:l+"/"+u+"/historik",GIVE_AWAY_TICKET:l+"/"+u,RECEIVE_SHARING:l+"/ta-emot-delning",ACTIVATE_VOUCHER:"registrera-kort",SHARE_PRODUCTS:"dela-produkter",SIGNUP:"registrera-konto"},en:{HOME:"home",FRIENDS:"friends",GIFTS:"gifts",LOGIN:"login",ORDERS:"orders",DISCOUNTS:"discounts",PARKING:"parking",PROFILE:"profile",BOOKING:"booking",HANDLE_BOOKING:o,SEASON_PASSES:"season-passes",GIFT_CARDS:"gift-cards",SMART_WRISTBANDS:m,SMART_WRISTBANDS_BLOCK:m+"/block",SMART_WRISTBANDS_RECAP:m+"/recap",TICKETS:"tickets",CHANGE_VISIT_DATE:o+"/change-visit-date",CHANGE_JETPASS:o+"/change-jetpass",OBLITERATE_TICKETS:o+"/cancel",HANDLE_ACTIVITY_PASSES:s,CHANGE_ACTIVITY_PASS_DATE:s+"/change-date",CHANGE_ACTIVITY_PASS_TIME:s+"/change-time",RECEIVE_GIFT:c+"/receive-product",GIVE_AWAY_TICKET_HISTORY:c+"/"+d+"/history",GIVE_AWAY_TICKET:c+"/"+d,RECEIVE_SHARING:c+"/receive-sharing",ACTIVATE_VOUCHER:"activate-card",SHARE_PRODUCTS:"share-products",SIGNUP:"register-account"}},p={sv:"/mina-sidor",en:"/en/my-pages"},g={sv:"/",en:"/en"},v={getSitePath:()=>""+g[r.A.getCurrentLocale()],getBasePath:e=>e?""+p[e]:""+p[r.A.getCurrentLocale()],HOME:{getSlug:e=>e?p[e]+"/"+h[e].HOME:p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].HOME,getShort:e=>e?h[e].HOME:h[r.A.getCurrentLocale()].HOME},SMART_WRISTBANDS:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].SMART_WRISTBANDS,getShort:()=>h[r.A.getCurrentLocale()].SMART_WRISTBANDS},SMART_WRISTBANDS_BLOCK:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].SMART_WRISTBANDS_BLOCK,getShort:()=>h[r.A.getCurrentLocale()].SMART_WRISTBANDS_BLOCK},SMART_WRISTBANDS_RECAP:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].SMART_WRISTBANDS_RECAP,getShort:()=>h[r.A.getCurrentLocale()].SMART_WRISTBANDS_RECAP},TICKETS:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].TICKETS,getShort:()=>h[r.A.getCurrentLocale()].TICKETS},FRIENDS:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].FRIENDS,getShort:()=>h[r.A.getCurrentLocale()].FRIENDS},GIFTS:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].GIFTS,getShort:()=>h[r.A.getCurrentLocale()].GIFTS},LOGIN:{getSlug:e=>e?p[e]+"/"+h[e].LOGIN:p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].LOGIN,getShort:()=>h[r.A.getCurrentLocale()].LOGIN},ORDERS:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].ORDERS,getShort:()=>h[r.A.getCurrentLocale()].ORDERS},DISCOUNTS:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].DISCOUNTS,getShort:()=>h[r.A.getCurrentLocale()].DISCOUNTS},PARKING:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].PARKING,getShort:()=>h[r.A.getCurrentLocale()].PARKING},PROFILE:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].PROFILE,getShort:()=>h[r.A.getCurrentLocale()].PROFILE},BOOKING:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].BOOKING,getShort:()=>h[r.A.getCurrentLocale()].BOOKING},HANDLE_BOOKING:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].HANDLE_BOOKING,getShort:()=>h[r.A.getCurrentLocale()].HANDLE_BOOKING},SEASON_PASSES:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].SEASON_PASSES,getShort:()=>h[r.A.getCurrentLocale()].SEASON_PASSES},GIFT_CARDS:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].GIFT_CARDS,getShort:()=>h[r.A.getCurrentLocale()].GIFT_CARDS}
2,CHANGE_VISIT_DATE:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].CHANGE_VISIT_DATE,getShort:()=>h[r.A.getCurrentLocale()].CHANGE_VISIT_DATE},CHANGE_JETPASS:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].CHANGE_JETPASS,getShort:()=>h[r.A.getCurrentLocale()].CHANGE_JETPASS},OBLITERATE_TICKETS:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].OBLITERATE_TICKETS,getShort:()=>h[r.A.getCurrentLocale()].OBLITERATE_TICKETS},HANDLE_ACTIVITY_PASSES:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].HANDLE_ACTIVITY_PASSES,getShort:()=>h[r.A.getCurrentLocale()].HANDLE_ACTIVITY_PASSES},CHANGE_ACTIVITY_PASS_DATE:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].CHANGE_ACTIVITY_PASS_DATE,getShort:()=>h[r.A.getCurrentLocale()].CHANGE_ACTIVITY_PASS_DATE},CHANGE_ACTIVITY_PASS_TIME:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].CHANGE_ACTIVITY_PASS_TIME,getShort:()=>h[r.A.getCurrentLocale()].CHANGE_ACTIVITY_PASS_TIME},RECEIVE_GIFT:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].RECEIVE_GIFT,getShort:()=>h[r.A.getCurrentLocale()].RECEIVE_GIFT},GIVE_AWAY_TICKET:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].GIVE_AWAY_TICKET,getShort:()=>h[r.A.getCurrentLocale()].GIVE_AWAY_TICKET},GIVE_AWAY_TICKET_HISTORY:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].GIVE_AWAY_TICKET_HISTORY,getShort:()=>h[r.A.getCurrentLocale()].GIVE_AWAY_TICKET_HISTORY},SHARE_PRODUCTS:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].SHARE_PRODUCTS,getShort:()=>h[r.A.getCurrentLocale()].SHARE_PRODUCTS},RECEIVE_SHARING:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].RECEIVE_SHARING,getShort:()=>h[r.A.getCurrentLocale()].RECEIVE_SHARING},ACTIVATE_VOUCHER:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].ACTIVATE_VOUCHER,getShort:()=>h[r.A.getCurrentLocale()].ACTIVATE_VOUCHER},SIGNUP:{getSlug:()=>p[r.A.getCurrentLocale()]+"/"+h[r.A.getCurrentLocale()].SIGNUP,getShort:()=>h[r.A.getCurrentLocale()].SIGNUP}}},67071:function(e,t,n){"use strict";n.d(t,{Bj:function(){return m},QT:function(){return p},TT:function(){return g},XM:function(){return h}});var r=n(96540),i=n(79414),o=n(26366),a=n(85086),s=n(72890),l=n(1967);function c(e,t,n){if(!e&&!t)return;const r="sv"===n||"nn"===n?"Swe":"Eng",i=e?e["friendlySalesName"+r]:t.productName||(0,a.$8)("Should not reach here, since either glkProduct or contentfulProduct must be defined"),o=e?e["friendlyDisplayName"+r]:t.productNameMyPages||i,s=(null==t?void 0:t.shortDescription)||void 0,c=(null==t?void 0:t.customPriceText)||(null!=e&&e.priceIncludingVat?(0,l.fr)(e.priceIncludingVat):void 0);return e?{productId:e.id,name:i,myParksName:o,description:s,price:c,glkProduct:e,contentfulProduct:t}:{productId:void 0,name:i,myParksName:o,description:s,price:c,glkProduct:void 0,contentfulProduct:t}}function u(e,t,n){var r;const i=e.filter(n);return null!==(r=i.find(e=>e.node_locale===t))&&void 0!==r?r:i[0]}function d(e,t,n){return c(t.glkProducts.find(t=>t.id===e),u(t.contentfulProducts,n,t=>{var n;return(null===(n=t.productData)||void 0===n?void 0:n.glkId)===e.toString()}),n)}function f(e,t,n){var r;const i=u(t.contentfulProducts,n,t=>t.contentful_id===e),o=null!=i&&null!==(r=i.productData)&&void 0!==r&&r.glkId?parseInt(i.productData.glkId,10):void 0;return c(o?t.glkProducts.find(e=>e.id===o):void 0,i,n)}function m(e){const{currentLocale:t}=(0,i.sG)();return function(e,t){const{products:n}=(0,o.N)();return(0,r.useMemo)(()=>{if(e)return d(e,n,t)},[e,t,n])}(e,t)}function h(e){const{currentLocale:t}=(0,i.sG)();return function(e,t){const{products:n}=(0,o.N)();return(0,r.useMemo)(()=>{if(e)return f(e,n,t)},[e,t,n])}(e,t)}function p(e){const{currentLocale:t}=(0,i.sG)();return function(e,t){const{products:n}=(0,o.N)();return(0,r.useMemo)(()=>{const r=e.map(e=>{const r=d(e,n,t);return r&&[e,r]}).filter(s.zz);return{productsById:(0,a.bg)(r),productList:r.map(e=>{let[,t]=e;return t})}},[e.join(";"),t,n])}(e,t)}function g(e){const{currentLocale:t}=(0,i.sG)();return function(e,t){const{products:n}=(0,o.N)();return(0,r.useMemo)(()=>{const r=e.map(e=>[e,f(e,n,t)]);return{productsById:(0,a.bg)(r),productList:r.map(e=>{let[,t]=e;return t}).filter(s.zz)}},[e.join(";"),t,n])}(e,t)}},68245:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(74848),i=n(67561),o=n(2160),a=n(96540),s="core--full-page-overlay-module--overlay--e24dab",l="core--full-page-overlay-module--close-button--b3c282",c=n(18293),u=n(25463),d=n(26875),f=n(11508),m=n(74525),h=n(32389);const p=e=>{let{open:t,onClose:n,fullyOpenOnDesktop:p=!1,id:g,pageName:v,focusOnCloseButton:y,children:b}=e;const{t:w}=(0,h.Bd)(),[x,E]=(0,a.useState)(!1),S=(0,m.B)(),T=(0,a.useRef)(null),C="LARGE"!==(0,d.m)({SMALL:0,LARGE:1024})||p?"100vw":"35vw",k=(0,a.useMemo)(()=>g||Math.floor(1e6*Math.random()+1),[g]),A=()=>E(!0);return(0,a.useEffect)(()=>{t&&y&&T.current&&T.current.focus()},[t]),(0,r.jsx)(i.N,{children:(0,r.jsx)(u.a,{isOpen:t,onClose:A,id:k,refWrapperElement:null!=S?S:void 0,children:(0,r.jsxs)(o.P.div,{initial:{right:"-"+C},animate:{right:x?"-"+C:0},exit:{right:"-"+C},transition:{duration:.4,ease:"easeOut"},drag:"x",dragConstraints:{left:0,right:3e3},dragSnapToOrigin:!0,dragElastic:0,dragTransition:{bounceStiffness:250,bounceDamping:30},onDragEnd:(e,t)=>{let{offset:n,velocity:r}=t;(n.x>300||r.x>500)&&A()},onAnimationComplete:()=>{x&&(f.A.publish(f.c,k),n(),E(!1))},className:s,style:{width:C},"data-is-open":t,children:[(0,r.jsx)(c.jn,{ref:T,iconCenterNew:"close",iconSize:"xxl",onClick:A,className:l,ariaLabel:w("closeFullPageOverlay",[v]),testId:"fullPageOverlayCloseButton"}),b]})})})}},71960:function(e,t,n){"use strict";n.d(t,{G:function(){return b}});var r=n(74848),i=n(96540),o="core--language-selector-module--language-button--1752
26c",a="core--language-selector-module--list-wrapper--674288",s="core--language-selector-module--link--c76b35",l=n(18293),c=n(25463),u=n(87499),d=n(90520),f=n(32389),m=n(74525),h=n(67561),p=n(79414),g=n(96864);const v=[o,"waves-effect"],y=e=>{const t="flag-"+e;return t&&t in d.KD?t:"globe"},b=e=>{var t;let{locales:n,portalId:o,modalPosition:b="left",onSelectorOpen:w,onSelectorClose:x}=e;const{t:E}=(0,f.Bd)(),[S,T]=(0,i.useState)(!1),C=(0,m.B)(),k=e=>{T(!1),x(e)},{slugs:A,currentLocale:I}=(0,p.sG)(),L=(null===(t=n.find(e=>e.locale===I))||void 0===t?void 0:t.title)||I;return n.length<2?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.a6,{iconLeftNew:y(I),className:g.TD.apply(void 0,v),iconSize:"s",label:I,ariaLabel:E("languagePickerButton",[L]),onClick:e=>{T(!0),null==w||w(e)}}),(0,r.jsx)(h.N,{children:S&&(0,r.jsx)(c.a,{isOpen:S,onClose:k,id:"language-selection",verticalContentPosition:"top",horizontalContentPosition:b,portalId:o,refWrapperElement:o?void 0:null!=C?C:void 0,children:(0,r.jsx)("nav",{className:a,children:(0,r.jsx)("ul",{children:n.map(e=>{var t;const n=(null!==(t=A[e.locale])&&void 0!==t?t:e.url)+(()=>{if("undefined"!=typeof window)return window.location.hash})();return(0,r.jsx)("li",{role:"none",children:(0,r.jsxs)(u.A,{role:"listitem",internalLink:n,className:s,onClick:()=>k(n),lang:e.locale,children:[(0,r.jsx)(d.Ay,{name:y(e.locale),size:"s"}),(0,r.jsx)("span",{className:(0,g.TD)(e.locale===I&&"bold"),children:e.title})]})},n+" : "+e.title)})})})})})]})}},72520:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=n(96540);function i(e){const t=(0,r.useRef)(!1);return function(n){for(var r,i,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];"function"!=typeof e||t.current||(t.current=!0,n.persist(),n.preventDefault(),e.apply(void 0,[n].concat(a)),null===(r=(i=n.target).click)||void 0===r||r.call(i))}}},72864:function(e,t,n){"use strict";n.d(t,{A:function(){return it}});var r=n(98587),i=n(74848),o=n(96540),a=n(9957),s=n(91071),l=n(62133),c=n(40961),u=o.forwardRef((e,t)=>{const{children:n,...r}=e,a=o.Children.toArray(n),s=a.find(m);if(s){const e=s.props.children,n=a.map(t=>t===s?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:t);return(0,i.jsx)(d,{...r,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,i.jsx)(d,{...r,ref:t,children:n})});u.displayName="Slot";var d=o.forwardRef((e,t)=>{const{children:n,...r}=e;if(o.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),i=function(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==o.Fragment&&(i.ref=t?(0,s.t)(t,e):e),o.cloneElement(n,i)}return o.Children.count(n)>1?o.Children.only(null):null});d.displayName="SlotClone";var f=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});function m(e){return o.isValidElement(e)&&e.type===f}var h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=o.forwardRef((e,n)=>{const{asChild:r,...o}=e,a=r?u:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(a,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});var p,g=n(10263),v=n(92129),y="dismissableLayer.update",b="dismissableLayer.pointerDownOutside",w="dismissableLayer.focusOutside",x=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),E=o.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,onDismiss:d,...f}=e,m=o.useContext(x),[E,S]=o.useState(null),k=E?.ownerDocument??globalThis?.document,[,A]=o.useState({}),I=(0,s.s)(t,e=>
vendor: 6,085 bytes, line 2
2S(e)),L=Array.from(m.layers),[N]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),j=L.indexOf(N),O=E?L.indexOf(E):-1,_=m.layersWithOutsidePointerEventsDisabled.size>0,P=O>=j,R=function(e,t=globalThis?.document){const n=(0,g.c)(e),r=o.useRef(!1),i=o.useRef(()=>{});return o.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){C(b,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...m.branches].some(e=>e.contains(t));P&&!n&&(l?.(e),u?.(e),e.defaultPrevented||d?.())},k),D=function(e,t=globalThis?.document){const n=(0,g.c)(e),r=o.useRef(!1);return o.useEffect(()=>{const e=e=>{if(e.target&&!r.current){C(w,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...m.branches].some(e=>e.contains(t))||(c?.(e),u?.(e),e.defaultPrevented||d?.())},k);return(0,v.U)(e=>{O===m.layers.size-1&&(r?.(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},k),o.useEffect(()=>{if(E)return n&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(p=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(E)),m.layers.add(E),T(),()=>{n&&1===m.layersWithOutsidePointerEventsDisabled.size&&(k.body.style.pointerEvents=p)}},[E,k,n,m]),o.useEffect(()=>()=>{E&&(m.layers.delete(E),m.layersWithOutsidePointerEventsDisabled.delete(E),T())},[E,m]),o.useEffect(()=>{const e=()=>A({});return document.addEventListener(y,e),()=>document.removeEventListener(y,e)},[]),(0,i.jsx)(h.div,{...f,ref:I,style:{pointerEvents:_?P?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.m)(e.onFocusCapture,D.onFocusCapture),onBlurCapture:(0,a.m)(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:(0,a.m)(e.onPointerDownCapture,R.onPointerDownCapture)})});E.displayName="DismissableLayer";var S=o.forwardRef((e,t)=>{const n=o.useContext(x),r=o.useRef(null),a=(0,s.s)(t,r);return o.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,i.jsx)(h.div,{...e,ref:a})});function T(){const e=new CustomEvent(y);document.dispatchEvent(e)}function C(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?function(e,t){e&&c.flushSync(()=>e.dispatchEvent(t))}(i,o):i.dispatchEvent(o)}S.displayName="DismissableLayerBranch";var k=n(61463),A="focusScope.autoFocusOnMount",I="focusScope.autoFocusOnUnmount",L={bubbles:!1,cancelable:!0},N=o.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:l,...c}=e,[u,d]=o.useState(null),f=(0,g.c)(a),m=(0,g.c)(l),p=o.useRef(null),v=(0,s.s)(t,e=>d(e)),y=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(y.paused||!u)return;const t=e.target;u.contains(t)?p.current=t:P(p.current,{select:!0})},t=function(e){if(y.paused||!u)return;const t=e.relatedTarget;null!==t&&(u.contains(t)||P(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&P(u)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,u,y.paused]),o.useEffect(()=>{if(u){R.add(y);const t=document.activeElement;if(!u.contains(t)){const n=new CustomEvent(A,L);u.addEventListener(A,f),u.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(P(r,{select:t}),document.activeElement!==n)return}((e=j(u),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&P(u))}return()=>{u.removeEventListener(A,f),setTimeout(()=>{const e=new CustomEvent(I,L);u.addEventListener(I,m),u.dispatchEvent(e),e.defaultPrevented||P(t??document.body,{select:!0}),u.removeEventListener(I,m),R.remove(y)},0)}}var e},[u,f,m,y]);const b=o.useCallback(e=>{if(!n&&!r)return;if(y.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){const t=e.currentTarget,[r,o]=function(e){const t=j(e),n=O(t,e),r=O(t.reverse(),e);return[n,r]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&P(o,{select:!0})):(e.preventDefault(),n&&P(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,y.paused]);return(0,i.jsx)(h.div,{tabIndex:-1,...c,ref:v,onKeyDown:b})});function j(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function O(e,t){for(const n of e)if(!_(n,{upTo:t}))return n}function _(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function P(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}N.displayName="FocusScope";var R=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=D(e,t),e.unshift(t)},remove(t){e=D(e,t),e[0]?.resume()}}}();function D(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var M=n(18723),F=n(34743),B=n(52425),V=n(95361),W=o.forwardRef((e,t)=>
2{const{children:n,width:r=10,height:o=5,...a}=e;return(0,i.jsx)(h.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,i.jsx)("polygon",{points:"0,0 30,0 15,10"})})});W.displayName="Arrow";var Q=W,H=n(88200),z=n(54150),q="Popper",[G,U]=(0,l.A)(q),[K,Y]=G(q),$=e=>{const{__scopePopper:t,children:n}=e,[r,a]=o.useState(null);return(0,i.jsx)(K,{scope:t,anchor:r,onAnchorChange:a,children:n})};$.displayName=q;var X="PopperAnchor",J=o.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,l=Y(X,n),c=o.useRef(null),u=(0,s.s)(t,c);return o.useEffect(()=>{l.onAnchorChange(r?.current||c.current)}),r?null:(0,i.jsx)(h.div,{...a,ref:u})});J.displayName=X;var Z="PopperContent",[ee,te]=G(Z),ne=o.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:l="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:m=0,sticky:p="partial",hideWhenDetached:v=!1,updatePositionStrategy:y="optimized",onPlaced:b,...w}=e,x=Y(Z,n),[E,S]=o.useState(null),T=(0,s.s)(t,e=>S(e)),[C,k]=o.useState(null),A=(0,z.X)(C),I=A?.width??0,L=A?.height??0,N=r+("center"!==l?"-"+l:""),j="number"==typeof m?m:{top:0,right:0,bottom:0,left:0,...m},O=Array.isArray(f)?f:[f],_=O.length>0,P={padding:j,boundary:O.filter(ae),altBoundary:_},{refs:R,floatingStyles:D,placement:M,isPositioned:W,middlewareData:Q}=(0,F.we)({strategy:"fixed",placement:N,whileElementsMounted:(...e)=>(0,B.ll)(...e,{animationFrame:"always"===y}),elements:{reference:x.anchor},middleware:[(0,V.cY)({mainAxis:a+L,alignmentAxis:c}),d&&(0,B.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?(0,B.ER)():void 0,...P}),d&&(0,B.UU)({...P}),(0,B.Ej)({...P,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:o}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)}}),C&&(0,F.UE)({element:C,padding:u}),se({arrowWidth:I,arrowHeight:L}),v&&(0,B.jD)({strategy:"referenceHidden",...P})]}),[q,G]=le(M),U=(0,g.c)(b);(0,H.N)(()=>{W&&U?.()},[W,U]);const K=Q.arrow?.x,$=Q.arrow?.y,X=0!==Q.arrow?.centerOffset,[J,te]=o.useState();return(0,H.N)(()=>{E&&te(window.getComputedStyle(E).zIndex)},[E]),(0,i.jsx)("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:W?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[Q.transformOrigin?.x,Q.transformOrigin?.y].join(" "),...Q.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,i.jsx)(ee,{scope:n,placedSide:q,onArrowChange:k,arrowX:K,arrowY:$,shouldHideArrow:X,children:(0,i.jsx)(h.div,{"data-side":q,"data-align":G,...w,ref:T,style:{...w.style,animation:W?void 0:"none"}})})})});ne.displayName=Z;var re="PopperArrow",ie={top:"bottom",right:"left",bottom:"top",left:"right"},oe=o.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=te(re,n),a=ie[o.placedSide];return(0,i.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,i.jsx)(Q,{...r,ref:t,style:{...r.style,display:"block"}})})});function ae(e){return null!==e}oe.displayName=re;var se=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:i}=t,o=0!==i.arrow?.centerOffset,a=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[l,c]=le(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(i.arrow?.x??0)+a/2,f=(i.arrow?.y??0)+s/2;let m="",h="";return"bottom"===l?(m=o?u:`${d}px`,h=-s+"px"):"top"===l?(m=o?u:`${d}px`,h=`${r.floating.height+s}px`):"right"===l?(m=-s+"px",h=o?u:`${f}px`):"left"===l&&(m=`${r.floating.width+s}px`,h=o?u:`${f}px`),{data:{x:m,y:h}}}});function le(e){const[t,n="center"]=e.split("-");return[t,n]}var ce=$,ue=J,de=ne,fe=oe,me=o.forwardRef((e,t)=>
2{const{container:n,...r}=e,[a,s]=o.useState(!1);(0,H.N)(()=>s(!0),[]);const l=n||a&&globalThis?.document?.body;return l?c.createPortal((0,i.jsx)(h.div,{...r,ref:t}),l):null});me.displayName="Portal";var he=n(7971),pe=n(81351),ge=n(58241),ve=n(3254),ye="Popover",[be,we]=(0,l.A)(ye,[U]),xe=U(),[Ee,Se]=be(ye),Te=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:s,modal:l=!1}=e,c=xe(t),u=o.useRef(null),[d,f]=o.useState(!1),[m=!1,h]=(0,pe.i)({prop:r,defaultProp:a,onChange:s});return(0,i.jsx)(ce,{...c,children:(0,i.jsx)(Ee,{scope:t,contentId:(0,M.B)(),triggerRef:u,open:m,onOpenChange:h,onOpenToggle:o.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:d,onCustomAnchorAdd:o.useCallback(()=>f(!0),[]),onCustomAnchorRemove:o.useCallback(()=>f(!1),[]),modal:l,children:n})})};Te.displayName=ye;var Ce="PopoverAnchor",ke=o.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=Se(Ce,n),s=xe(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=a;return o.useEffect(()=>(l(),()=>c()),[l,c]),(0,i.jsx)(ue,{...s,...r,ref:t})});ke.displayName=Ce;var Ae="PopoverTrigger",Ie=o.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Se(Ae,n),l=xe(n),c=(0,s.s)(t,o.triggerRef),u=(0,i.jsx)(h.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":We(o.open),...r,ref:c,onClick:(0,a.m)(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?u:(0,i.jsx)(ue,{asChild:!0,...l,children:u})});Ie.displayName=Ae;var Le="PopoverPortal",[Ne,je]=be(Le,{forceMount:void 0}),Oe=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Se(Le,t);return(0,i.jsx)(Ne,{scope:t,forceMount:n,children:(0,i.jsx)(he.C,{present:n||a.open,children:(0,i.jsx)(me,{asChild:!0,container:o,children:r})})})};Oe.displayName=Le;var _e="PopoverContent",Pe=o.forwardRef((e,t)=>{const n=je(_e,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Se(_e,e.__scopePopover);return(0,i.jsx)(he.C,{present:r||a.open,children:a.modal?(0,i.jsx)(Re,{...o,ref:t}):(0,i.jsx)(De,{...o,ref:t})})});Pe.displayName=_e;var Re=o.forwardRef((e,t)=>{const n=Se(_e,e.__scopePopover),r=o.useRef(null),l=(0,s.s)(t,r),c=o.useRef(!1);return o.useEffect(()=>{const e=r.current;if(e)return(0,ge.Eq)(e)},[]),(0,i.jsx)(ve.A,{as:u,allowPinchZoom:!0,children:(0,i.jsx)(Me,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.m)(e.onCloseAutoFocus,e=>{e.preventDefault(),c.current||n.triggerRef.current?.focus()}),onPointerDownOutside:(0,a.m)(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;c.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,a.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),De=o.forwardRef((e,t)=>{const n=Se(_e,e.__scopePopover),r=o.useRef(!1),a=o.useRef(!1);return(0,i.jsx)(Me,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const i=t.target,o=n.triggerRef.current?.contains(i);o&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),Me=o.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...f}=e,m=Se(_e,n),h=xe(n);return(0,k.Oh)(),(0,i.jsx)(N,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,i.jsx)(E,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>m.onOpenChange(!1),children:(0,i.jsx)(de,{"data-state":We(m.open),role:"dialog",id:m.contentId,...h,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Fe="PopoverClose",Be=o.forwardRef((e,t)=>
2{const{__scopePopover:n,...r}=e,o=Se(Fe,n);return(0,i.jsx)(h.button,{type:"button",...r,ref:t,onClick:(0,a.m)(e.onClick,()=>o.onOpenChange(!1))})});Be.displayName=Fe;var Ve=o.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xe(n);return(0,i.jsx)(fe,{...o,...r,ref:t})});function We(e){return e?"open":"closed"}Ve.displayName="PopoverArrow";var Qe=Te,He=ke,ze=Ie,qe=Oe,Ge=Pe,Ue=Ve,Ke=n(85621),Ye=n(18293),$e=n(13562),Xe=n(2160),Je="core--popover-module--content--a70c09",Ze="core--popover-module--arrow--90820f",et=n(96864),tt=n(85086);const nt=["triggerButton"],rt=["buttonType"],it=e=>{let{triggerButton:t,contentClassName:n,children:r,withArrow:a,isOpenOverride:s,setIsOpenOverride:l,anchorRefOverride:c,asModal:u=!1,"data-testid":d}=e;const[f,m]=(0,o.useState)(!1),h=(0,Ke.bq)(),p=(0,o.useId)();return(0,i.jsxs)(Qe,{open:null!=s?s:f,onOpenChange:e=>{l?l(e):m(e),u&&(e?$e.L.registerNewlyOpenedModal({modalKey:p.toString(),documentEventListener:e=>{$e.h.has(e.key)&&$e.L.unregisterClosedModal(p.toString())}}):$e.L.unregisterClosedModal(p.toString()))},modal:u,children:[t&&ot(t)&&(0,i.jsx)(ze,{asChild:!0,children:(0,i.jsx)(at,{triggerButton:t})}),t&&!ot(t)&&(0,i.jsx)(ze,{asChild:!0,children:t}),c&&(0,i.jsx)(He,{virtualRef:c}),(0,i.jsx)(qe,{container:h,children:(0,i.jsx)(Ge,{className:Je,sideOffset:5,collisionPadding:10,align:"start",asChild:!0,"data-testid":d,children:(0,i.jsxs)(Xe.P.div,{initial:"closed",animate:"open",variants:{open:{opacity:1,y:0},closed:{opacity:0,y:-50}},className:(0,et.TD)(n),children:[r,a&&(0,i.jsx)(Ue,{className:Ze})]})})})]})},ot=e=>"buttonType"in e,at=(0,o.forwardRef)(function(e,t){let{triggerButton:n}=e,o=(0,r.A)(e,nt);const{buttonType:a}=n,s=(0,r.A)(n,rt);switch(a){case"PrimaryButton":return(0,i.jsx)(Ye.jn,Object.assign({ref:t},s,o));case"SecondaryButton":return(0,i.jsx)(Ye.tA,Object.assign({ref:t},s,o));case"GhostButton":return(0,i.jsx)(Ye.a6,Object.assign({ref:t},s,o));case"OutlineButton":return(0,i.jsx)(Ye.rp,Object.assign({ref:t},s,o));default:return(0,tt.ZT)()}})},73074:function(e,t,n){var r,i;void 0===(i="function"==typeof(r=function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");var t,n,r;e.sv=function(){this.pipeline.reset(),this.pipeline.add(e.sv.trimmer,e.sv.stopWordFilter,e.sv.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.sv.stemmer))},e.sv.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",e.sv.trimmer=e.trimmerSupport.generateTrimmer(e.sv.wordCharacters),e.Pipeline.registerFunction(e.sv.trimmer,"trimmer-sv"),e.sv.stemmer=(t=e.stemmerSupport.Among,n=e.stemmerSupport.SnowballProgram,r=new function(){var e,r,i=[new t("a",-1,1),new t("arna",0,1),new t("erna",0,1),new t("heterna",2,1),new t("orna",0,1),new t("ad",-1,1),new t("e",-1,1),new t("ade",6,1),new t("ande",6,1),new t("arne",6,1),new t("are",6,1),new t("aste",6,1),new t("en",-1,1),new t("anden",12,1),new t("aren",12,1),new t("heten",12,1),new t("ern",-1,1),new t("ar",-1,1),new t("er",-1,1),new t("heter",18,1),new t("or",-1,1),new t("s",-1,2),new t("as",21,1),new t("arnas",22,1),new t("ernas",22,1),new t("ornas",22,1),new t("es",21,1),new t("ades",26,1),new t("andes",26,1),new t("ens",21,1),new t("arens",29,1),new t("hetens",29,1),new t("erns",21,1),new t("at",-1,1),new t("andet",-1,1),new t("het",-1,1),new t("ast",-1,1)],o=[new t("dd",-1,-1),new t("gd",-1,-1),new t("nn",-1,-1),new t("dt",-1,-1),new t("gt",-1,-1),new t("kt",-1,-1),new t("tt",-1,-1)],a=[new t("ig",-1,1),new t("lig",0,1),new t("els",-1,1),new t("fullt",-1,3),new t("löst",-1,2)],s=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,24,0,32],l=[119,127,149],c=new n;function u(){var t,n=c.cursor+3;if(r=c.limit,0<=n||n<=c.limit){for(e=n;;){if(t=c.cursor,c.in_grouping(s,97,246)){c.cursor=t;break}if(c.cursor=t,c.cursor>=c.limit)return;c.cursor++}for(;!c.out_grouping(s,97,246);){if(c.cursor>=c.limit)return;c.cursor++}(r=c.cursor)<e&&(r=e)}}function d(){var e,t=c.limit_backward;if(c.cursor>=r&&(c.limit_backward=r,c.cursor=c.limit,c.ket=c.cursor,e=c.find_among_b(i,37),c.limit_backward=t,e))switch(c.bra=c.cursor,e){case 1:c.slice_del();break;case 2:c.in_grouping_b(l,98,121)&&c.slice_del()}}function f(){var e=c.limit_backward;c.cursor>=r&&(c.limit_backward=r,c.cursor=c.limit,c.find_among_b(o,7)&&(c.cursor=c.limit,c.ket=c.cursor,c.cursor>c.limit_backward&&(c.bra=--c.cursor,c.slice_del())),c.limit_backward=e)}function m(){var e,t;if(c.cursor>=r){if(t=c.limit_backward,c.limit_backward=r,c.cursor=c.limit,c.ket=c.cursor,e=c.find_among_b(a,5))switch(c.bra=c.cursor,e){case 1:c.slice_del();break;case 2:c.slice_from("lös");break;case 3:c.slice_from("full")}c.limit_backward=t}}this.setCurrent=function(e){c.setCurrent(e)},this.getCurrent=function(){return c.getCurrent()},this.stem=function(){var e=c.cursor;return u(),c.limit_backward=e,c.cursor=c.limit,d(),c.cursor=c.limit,f(),c.cursor=c.limit,m(),!0}},function(e){return"function"==typeof e.update?e.update(function(e){return r.setCurrent(e),r.stem(),r.getCurrent()}):(r.setCurrent(e),r.stem(),r.getCurrent())}),e.Pipeline.registerFunction(e.sv.stemmer,"stemmer-sv"),e.sv.stopWordFilter=e.generateStopWordFilter("alla allt att av blev bli blir blivit de dem den denna deras dess dessa det detta dig din dina ditt du där då efter ej eller en er era ert ett från för ha hade han hans har henne hennes hon honom hur här i icke ingen inom inte jag ju kan kunde man med mellan men mig min mina mitt mot mycket ni nu när någon något några och om oss på samma sedan sig sin sina sitta själv skulle som så sådan sådana sådant till under upp ut utan vad var vara varför varit varje vars vart vem vi vid vilka vilkas vilken vilket vår våra vårt än är åt över".split(" ")),e.Pipeline.registerFunction(e.sv.stopWordFilter,"stopWordFilter-sv")}})?r.call(t,n,t,e):r)||(e.exports=i)},73787:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});let r=function(){function e(){this.urlsForKey=void 0,this.initializedKey=void 0,this.promiseForKey=void 0,this.indexForKey=void 0,this.storeForKey=void 0,this.urlsForKey=void 0,this.initializedKey={},this.promiseForKey={},this.indexForKey={},this.storeForKey={}}e.getSingelton=function(){return this.instance||(this.instance=new e),this.instance};var t=e.prototype;return t.setUrls=function(e){this.urlsForKey=e},t.initializeIndex=async function(e){if(this.initializedKey[e])return Promise.resolve();if(this.promiseForKey[e])return this.promiseForKey[e];if(!this.urlsForKey)throw new Error("No urls set");if(!this.urlsForKey[e])throw new Error("No urls for key"+e);const t=this.fetchIndex(e),n=this.fetchStore(e);return this.promiseForKey[e]=Promise.all([t,n]).then(t=>{let[n,r]=t;this.indexForKey[e]=n,this.storeForKey[e]=r,this.initializedKey[e]=!0}),this.promiseForKey[e]},t.fetchIndex=async function(e){return(await fetch(this.urlsForKey[e].publicIndexURL)).text()},t.fetchStore=async function(e){const t=await fetch(this.urlsForKey[e].publicStoreURL);return JSON.parse(await t.text())},t.getLunrData=async function(e){try{await this.initializeIndex(e)}catch(t){return console.error(t),{index:void 0,store:void 0}}return{index:this.indexForKey[e],store:this.storeForKey[e]}},e}();r.instance=void 0},75855:function(e,t,n){"use strict";n.d(t,{l:function(){return v}});var r=n(98587),i=n(74848),o=n(18293),a=n(90520),s="core--banner-module--wrapper--27b87f",l="core--banner-module--icon--490291",c="core--banner-module--close-button--9b5a22",u="core--banner-module--heading--7ca085",d="core--banner-module--paragraph--0f78dd",f="core--banner-module--children--ef8e4b",m="core--banner-module--button--21ae78",h=n(2160),p=n(85086);const g=["type","heading","paragraph","id","headingLevel","border","arrow","buttonText","buttonVariant","center","hideIcon","announcement","onClose","onButtonClick","children","data-testid"],v=e=>{let{type:t,heading:n,paragraph:m,id:p,headingLevel:v="span",border:x=!1,arrow:E,buttonText:S,buttonVariant:T="OutlineButton",center:C=!1,hideIcon:k=!1,announcement:A="off",onClose:I,onButtonClick:L,children:N,"data-testid":j}=e,O=(0,r.A)(e,g);return(0,i.jsxs)(h.P.div,Object.assign({"data-type":t,"data-has-border":x,"data-has-arrow":!!E,"data-hide-close-button":!I,"data-hide-icon":k,"data-arrow-position":E,"data-is-centered":C,className:s,id:p,role:y(A),"data-testid":j},O,{children:[!k&&(0,i.jsx)(a.Ay,{name:b(t),size:"xl",className:l}),(0,i.jsx)(v,{className:u+" bold",children:n}),I&&(0,i.jsx)(o.a6,{iconCenterNew:"close",iconSize:"xxl",className:c,onClick:I}),m&&(0,i.jsx)("p",{className:d,children:m}),N&&(0,i.jsx)("div",{className:f,children:N}),L&&S&&(0,i.jsx)(w,{buttonText:S,buttonVariant:T,onButtonClick:L,dataTestId:j+"-button"})]}))},y=e=>{switch(e){case"off":return;case"polite":return"status";case"assertive":return"alert";default:return(0,p.ZT)()}},b=e=>{switch(e){case"information":case"inheritTheme":return"info";case"warning":case"darkWarning":return"warning";case"critical":return"error";
2case"success":return"check";default:return(0,p.ZT)()}},w=e=>{let{buttonText:t,buttonVariant:n,onButtonClick:r,dataTestId:a}=e;switch(n){case"PrimaryButton":return(0,i.jsx)(o.jn,{className:m,label:t,onClick:r,testId:a});case"SecondaryButton":return(0,i.jsx)(o.tA,{className:m,label:t,onClick:r,testId:a});case"GhostButton":return(0,i.jsx)(o.a6,{className:m,label:t,onClick:r,testId:a});case"OutlineButton":return(0,i.jsx)(o.rp,{className:m,label:t,onClick:r,testId:a});default:return(0,p.ZT)()}}},81351:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(96540),i=n(10263);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,a]=function({defaultProp:e,onChange:t}){const n=r.useState(e),[o]=n,a=r.useRef(o),s=(0,i.c)(t);return r.useEffect(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o,c=(0,i.c)(n);return[l,r.useCallback(t=>{if(s){const n="function"==typeof t?t(e):t;n!==e&&c(n)}else a(t)},[s,e,a,c])]}},81590:function(e,t,n){"use strict";n.d(t,{$q:function(){return u},AA:function(){return c},DT:function(){return a},FY:function(){return s},Ws:function(){return m},Xh:function(){return l},Zd:function(){return f},bx:function(){return d},iT:function(){return g},uO:function(){return h}});var r=n(23931),i=n(74353),o=n.n(i);function a(e){return/^([\w+-]+\.)*[\w+-]+@([\w+-]+\.)*[\w+-]+\.[a-zA-Z]{2,}$/.test(e)}function s(e){return/^(\+\d{2}|0)([\d\-\s]){9,15}$/.test(e)}function l(e){return/^[0-9]{3}[ ]?[0-9]{1,2}$/.test(e)}function c(e){return/^[A-Za-z0-9åÅäÄöÖ]{2,7}$/.test(e)}function u(e){const t=parseInt(e),n=(0,r.JO)().getFullYear();return t>1900&&t<n}function d(e){const t=parseInt(e);return t>=1&&t<=12}function f(e){const t=parseInt(e);return t>=1&&t<=31}function m(e,t,n){return!!e&&(10===e.length&&(!!g(e,t)&&(!!function(e,t){if(!e)return!1;const n=(0,r.JO)(e);if(!r.Ay.isDateValid(n))return!1;const i=(0,r.JO)();return i.setFullYear(i.getFullYear()-t),n>i}(e,n)&&p(e))))}const h=(e,t,n)=>{if(!u(e))return!1;if(!d(t))return!1;if(!f(n))return!1;const r=o()(e+"-"+t).format("YYYY-MM"),i=o()(r).daysInMonth();return parseInt(n)<=i},p=e=>{if(!e)return!1;if(!o()(e).isValid())return!1;const t=e.split("-"),n=t[0],r=t[1],i=t[2];return!!d(r)&&h(n,r,i)};function g(e,t){if(!e)return!1;const n=(0,r.JO)(e);if(!r.Ay.isDateValid(n))return!1;const i=(0,r.JO)();return i.setFullYear(i.getFullYear()-t),n<i}},83073:function(e,t,n){"use strict";n.d(t,{R:function(){return l}});var r=n(64741),i=(n(26910),n(96540)),o=n(90380),a=n(11508);const s=e=>{const t=e.match(/(\d*\.?\d+)(rem|px)/);if(!t)return 0;const[n,r,i]=t;return"rem"===i?16*parseFloat(r):parseFloat(r)},l=()=>{const[e,t]=(0,i.useState)([]),n=(0,i.useRef)([]);return(0,i.useLayoutEffect)(()=>{const e=e=>{const r=Object.entries(o.f).filter(t=>{let[,n]=t;const r=s(n);return r>0&&e>=r}).sort((e,t)=>{let[,n]=e,[,r]=t;return s(n)-s(r)}).map(e=>{let[t]=e;return t}),i=r.length?r:["unknown"];var a,l;a=i,l=n.current,a.length===l.length&&a.every((e,t)=>e===l[t])||(n.current=i,t(i))},i=(0,r.A)(e,100),l=a.A.subscribe("onResizeWindowWidth",i);return e(window.innerWidth),()=>{l.remove()}},[]),e}},85621:function(e,t,n){"use strict";n.d(t,{Fz:function(){return s},Q$:function(){return l},bq:function(){return c}});var r=n(74848),i=n(96540),o="core--modal-portal-module--modal-portal--c32909",a=n(96864);const s="modal-portal",l=e=>{let{pageTheme:t}=e;return(0,r.jsx)("div",{id:s,className:(0,a.TD)(o,t?"page-theme page-theme-"+t+" "+t:"")})},c=()=>{const[e,t]=(0,i.useState)();return(0,i.useEffect)(()=>{const e=document.getElementById(s);t(null!=e?e:void 0)},[]),e}},86121:function(e,t,n){var r,i;void 0===(i="function"==typeof(r=function(){return function(e){e.stemmerSupport={Among:function(e,t,n,r){if(this.toCharArray=function(e){for(var t=e.length,n=new Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n},!e&&""!=e||!t&&0!=t||!n)throw"Bad Among initialisation: s:"+e+", substring_i: "+t+", result: "+n;this.s_size=e.length,this.s=this.toCharArray(e),this.substring_i=t,this.result=n,this.method=r},SnowballProgram:function(){var e;return{bra:0,ket:0,limit:0,cursor:0,limit_backward:0,setCurrent:function(t){e=t,this.cursor=0,this.limit=t.length,this.limit_backward=0,this.bra=this.cursor,this.ket=this.limit},getCurrent:function(){var t=e;return e=null,t},in_grouping:function(t,n,r){if(this.cursor<this.limit){var i=e.charCodeAt(this.cursor);if(i<=r&&i>=n&&t[(i-=n)>>3]&1<<(7&i))return this.cursor++,!0}return!1},in_grouping_b:function(t,n,r){if(this.cursor>this.limit_backward){var i=e.charCodeAt(this.cursor-1);if(i<=r&&i>=n&&t[(i-=n)>>3]&1<<(7&i))return this.cursor--,!0}return!1},out_grouping:function(t,n,r){if(this.cursor<this.limit){var i=e.charCodeAt(this.cursor);if(i>r||i<n)return this.cursor++,!0;if(!(t[(i-=n)>>3]&1<<(7&i)))return this.cursor++,!0}return!1},out_grouping_b:function(t,n,r){if(this.cursor>this.limit_backward){var i=e.charCodeAt(this.cursor-1);if(i>r||i<n)return this.cursor--,!0;if(!(t[(i-=n)>>3]&1<<(7&i)))return this.cursor--,!0}return!1},eq_s:function(t,n){if(this.limit-this.cursor<t)return!1;for(var r=0;r<t;r++)if(e.charCodeAt(this.cursor+r)!=n.charCodeAt(r))return!1;return this.cursor+=t,!0},eq_s_b:function(t,n){if(this.cursor-this.limit_backward<t)return!1;for(var r=0;r<t;r++)if(e.charCodeAt(this.cursor-t+r)!=n.charCodeAt(r))return!1;return this.cursor-=t,!0},find_among:function(t,n){for(var r=0,i=n,o=this.cursor,a=this.limit,s=0,l=0,c=!1;;){for(var u=r+(i-r>>1),d=0,f=s<l?s:l,m=t[u],h=f;h<m.s_size;h++){if(o+f==a){d=-1;break}if(d=e.charCodeAt(o+f)-m.s[h])break;f++}if(d<0?(i=u,l=f):(r=u,s=f),i-r<=1){if(r>0||i==r||c)break;c=!0}}for(;;){if(s>=(m=t[r]).s_size){if(this.cursor=o+m.s_size,!m.method)return m.result;var p=m.method();if(this.cursor=o+m.s_size,p)return m.result}if((r=m.substring_i)<0)return 0}},find_among_b:function(t,n){for(var r=0,i=n,o=this.cursor,a=this.limit_backward,s=0,l=0,c=!1;;){for(var u=r+(i-r>>1),d=0,f=s<l?s:l,m=(h=t[u]).s_size-1-f;m>=0;m--){if(o-f==a){d=-1;break}if(d=e.charCodeAt(o-1-f)-h.s[m])break;f++}if(d<0?(i=u,l=f):(r=u,s=f),i-r<=1){if(r>0||i==r||c)break;c=!0}}for(;;){var h;if(s>=(h=t[r]).s_size){if(this.cursor=o-h.s_size,!h.method)return h.result;var p=h.method();if(this.cursor=o-h.s_size,p)return h.result}if((r=h.substring_i)<0)return 0}},replace_s:function(t,n,r){var i=r.length-(n-t),o=e.substring(0,t),a=e.substring(n);return e=o+r+a,this.limit+=i,this.cursor>=n?this.cursor+=i:this.cursor>t&&(this.cursor=t),i},slice_check:function(){if(this.bra<0||this.bra>this.ket||this.ket>this.limit||this.limit>e.length)throw"faulty slice operation"},slice_from:function(e){this.slice_check(),this.replace_s(this.bra,this.ket,e)},slice_del:function(){this.slice_from("")}
2,insert:function(e,t,n){var r=this.replace_s(e,t,n);e<=this.bra&&(this.bra+=r),e<=this.ket&&(this.ket+=r)},slice_to:function(){return this.slice_check(),e.substring(this.bra,this.ket)},eq_v_b:function(e){return this.eq_s_b(e.length,e)}}}},e.trimmerSupport={generateTrimmer:function(e){var t=new RegExp("^[^"+e+"]+"),n=new RegExp("[^"+e+"]+$");return function(e){return"function"==typeof e.update?e.update(function(e){return e.replace(t,"").replace(n,"")}):e.replace(t,"").replace(n,"")}}}}})?r.call(t,n,t,e):r)||(e.exports=i)},88200:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var r=n(96540),i=Boolean(globalThis?.document)?r.useLayoutEffect:()=>{}},90380:function(e,t,n){"use strict";n.d(t,{f:function(){return r}});const r={xsmall:"(min-width: 20rem)",small:"(min-width: 22.5rem)",medium:"(min-width: 48rem)",large:"(min-width: 90rem)",xlarge:"(min-width: 200rem)",ieOnly:"all and (-ms-high-contrast:none)"}},90406:function(e,t,n){"use strict";n.d(t,{A:function(){return g}});var r=n(74848),i="core--quantity-selector-styled-module--wrapper--8e7cf6",o="core--quantity-selector-styled-module--description-wrapper--6d7a40",a="core--quantity-selector-styled-module--label--11b9dd",s="core--quantity-selector-styled-module--sublabel--f8265b",l="core--quantity-selector-styled-module--quantity-selector--cffffd",c="core--quantity-selector-styled-module--left-button--b455f9",u="core--quantity-selector-styled-module--right-button--56f0cb",d="core--quantity-selector-styled-module--full-width--36f152",f="core--quantity-selector-styled-module--quantity-display--ece691",m="core--quantity-selector-styled-module--quantity-display-full-width--57daed",h=n(96864),p=n(58174),g=e=>{let{parentClassName:t,wrapperClassName:n,classNameLeftButton:g,classNameRightButton:v,quantityClassName:y,label:b,sublabel:w,isDisabled:x,isFullWidth:E,quantity:S,maxQuantity:T,minQuantity:C,quantityPresentatorOverride:k,removeQuantityIconOverride:A,onQuantityChange:I}=e;return(0,r.jsxs)("div",{className:(0,h.TD)(i,t),children:[b&&(0,r.jsxs)("label",{className:o,children:[(0,r.jsx)("span",{className:"heading-xs "+a,children:b}),w&&(0,r.jsx)("p",{className:"p_small "+s,children:w})]}),(0,r.jsx)(p.A,{wrapperClassName:(0,h.TD)(n,l,E&&d),quantityClassName:(0,h.TD)(y,E?m:f),classNameLeftButton:(0,h.TD)(g,c),classNameRightButton:(0,h.TD)(v,u),isDisabled:x,quantity:S,maxQuantity:T,minQuantity:C,quantityPresentatorOverride:k,removeQuantityIconOverride:A,onQuantityChanged:I,testIds:["decrease-button-"+b,"increase-button-"+b]})]})}},91071:function(e,t,n){"use strict";n.d(t,{s:function(){return a},t:function(){return o}});var r=n(96540);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let n=!1;const r=e.map(e=>{const r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function a(...e){return r.useCallback(o(...e),e)}},92100:function(e,t,n){"use strict";n.d(t,{A:function(){return x}});var r=n(98587),i=n(74848),o="core--input-field-module--wrapper--c560e1",a="core--input-field-module--disabled--834b49",s="core--input-field-module--input--91e629",l="core--input-field-module--grouped-input--d0fec0",c="core--input-field-module--inner-wrapper--0def2d",u="core--input-field-module--input-wrapper--d725a9",d="core--input-field-module--input-error--c08f06",f="core--input-field-module--input-field-icon--4b9896",m="core--input-field-module--disabled-icon--08c11c",h=n(62209),p=n(90520),g=n(96864),v=n(20121),y=n(4163),b=n(42523);const w=["type","className","inputMode","value","name","label","placeholder","onChange","onInput","focus","autoComplete","helperText","errorText","isValid","isEditable","isDisabled","isRequired","inputClassName","formField","onBlur","onKeyUp","onKeyDown","additionalText","inputRef","icon","onClick","isGroupedInput"];var x=e=>{let{type:t,className:n,inputMode:x,value:E,name:S,label:T,placeholder:C,onChange:k,onInput:A,focus:I,autoComplete:L,helperText:N,errorText:j,isValid:O,isEditable:_,isDisabled:P,isRequired:R,inputClassName:D,formField:M,onBlur:F,onKeyUp:B,onKeyDown:V,additionalText:W,inputRef:Q,icon:H,onClick:z,isGroupedInput:q}=e,G=(0,r.A)(e,w);M&&(S=S||M.name,E=E||M.value,O="boolean"==typeof O?O:M.isValid,N=N||M.helperText,j=j||M.errorText,_="boolean"==typeof _?_:M.isEditable,C=C||M.placeholder,R=R||M.isRequired,T=T||M.label,L=L||M.autoComplete,x=x||M.inputMode),(!1===_||M&&!1===M.isEditable)&&(P=!0);const U=!1===O,K=S?S+"-error":void 0,Y="PHONE"===(null==M?void 0:M.validationType),$=e=>Y?e.replace(/[^\d+\s-]/g,""):e;return(0,i.jsx)("div",{className:(0,g.TD)(o,P&&a,q&&l,n),children:(0,i.jsxs)("div",{className:c,onClick:z,children:[T&&(0,i.jsx)(v.A,{label:T,inputName:S||void 0,additionalText:W,isRequired:R,isGroupedInput:q}),(0,i.jsxs)("div",{className:u,children:[(0,i.jsx)("input",Object.assign({ref:e=>(0,h.jW)(e,Q,null==M?void 0:M.inputRef),id:S||void 0,type:t||"text",tabIndex:0,"data-has-icon":!!H,"data-has-on-cl
2ick":!!z,className:(0,g.TD)(s,U&&d,D),value:E||"",name:S,disabled:P,autoFocus:I,inputMode:x||("number"===t?"numeric":void 0),placeholder:C,autoComplete:L||"off","aria-invalid":U||void 0,"aria-describedby":U&&K?K:void 0,onChange:e=>null==k?void 0:k(e.target.name,$(e.target.value)),onInput:e=>null==A?void 0:A(e.currentTarget.name,$(e.currentTarget.value)),onBlur:e=>(e=>{F&&"function"==typeof F&&F(e)})(e),onKeyUp:e=>(e=>{B&&"function"==typeof B&&B(e)})(e),onKeyDown:e=>(e=>{V&&"function"==typeof V&&V(e)})(e)},G)),H&&(0,i.jsx)(p.Ay,{name:H,size:"xl",className:f+" "+(P?m:"")}),N&&(0,i.jsx)(y.A,{helperText:N}),(0,i.jsx)(b.A,{id:K,showError:U,isRequired:R,errorText:j,validationType:null==M?void 0:M.validationType})]})]})})}},92129:function(e,t,n){"use strict";n.d(t,{U:function(){return o}});var r=n(96540),i=n(10263);function o(e,t=globalThis?.document){const n=(0,i.c)(e);r.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}},94474:function(e,t,n){"use strict";n.d(t,{a:function(){return o}});var r=n(83073),i=n(96540);const o=()=>{const e=(0,r.R)();return(0,i.useMemo)(()=>!e.includes("medium"),[e])}},95361:function(e,t,n){"use strict";n.d(t,{BN:function(){return m},ER:function(){return h},Ej:function(){return p},UE:function(){return s},UU:function(){return l},cY:function(){return f},jD:function(){return d},rD:function(){return o}});var r=n(97193);function i(e,t,n){let{reference:i,floating:o}=e;const a=(0,r.TV)(t),s=(0,r.Dz)(t),l=(0,r.sq)(s),c=(0,r.C0)(t),u="y"===a,d=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,m=i[l]/2-o[l]/2;let h;switch(c){case"top":h={x:d,y:i.y-o.height};break;case"bottom":h={x:d,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:f};break;case"left":h={x:i.x-o.width,y:f};break;default:h={x:i.x,y:i.y}}switch((0,r.Sg)(t)){case"start":h[s]-=m*(n&&u?-1:1);break;case"end":h[s]+=m*(n&&u?-1:1)}return h}const o=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,l=a.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=i(u,r,c),m=r,h={},p=0;for(let g=0;g<l.length;g++){const{name:n,fn:a}=l[g],{x:v,y:y,data:b,reset:w}=await a({x:d,y:f,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});d=null!=v?v:d,f=null!=y?y:f,h={...h,[n]:{...h[n],...b}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(m=w.placement),w.rects&&(u=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:d,y:f}=i(u,m,c))),g=-1)}return{x:d,y:f,placement:m,strategy:o,middlewareData:h}};async function a(e,t){var n;void 0===t&&(t={});const{x:i,y:o,platform:a,rects:s,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=(0,r._3)(t,e),p=(0,r.nI)(h),g=l[m?"floating"===f?"reference":"floating":f],v=(0,r.B1)(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),y="floating"===f?{...s.floating,x:i,y:o}:s.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),w=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},x=(0,r.B1)(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:b,strategy:c}):y);return{top:(v.top-x.top+p.top)/w.y,bottom:(x.bottom-v.bottom+p.bottom)/w.y,left:(v.left-x.left+p.left)/w.x,right:(x.right-v.right+p.right)/w.x}}const s=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:a,platform:s,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=(0,r._3)(e,t)||{};if(null==u)return{};const f=(0,r.nI)(d),m={x:n,y:i},h=(0,r.Dz)(o),p=(0,r.sq)(h),g=await s.getDimensions(u),v="y"===h,y=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",x=a.reference[p]+a.reference[h]-m[h]-a.floating[p],E=m[h]-a.reference[h],S=await(null==s.getOffsetParent?void 0:s.getOffsetParent(u));let T=S?S[w]:0;T&&await(null==s.isElement?void 0:s.isElement(S))||(T=l.floating[w]||a.floating[p]);const C=x/2-E/2,k=T/2-g[p]/2-1,A=(0,r.jk)(f[y],k),I=(0,r.jk)(f[b],k),L=A,N=T-g[p]-I,j=T/2-g[p]/2+C,O=(0,r.qE)(L,j,N),_=!c.arrow&&null!=(0,r.Sg)(o)&&j!==O&&a.reference[p]/2-(j<L?A:I)-g[p]/2<0,P=_?j<L?j-L:j-N:0;return{[h]:m[h]+P,data:{[h]:O,centerOffset:j-O-P,..._&&{alignmentOffset:P}},reset:_}}});const l=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:s,rects:l,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...y}=(0,r._3)(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const b=(0,r.C0)(o),w=(0,r.C0)(c)===c,x=await(null==u.isRTL?void 0:u.isRTL(d.floating)),E=h||(w||!v?[(0,r.bV)(c)]:(0,r.WJ)(c));h||"none"===g||E.push(...(0,r.lP)(c,v,g,x));const S=[c,...E],T=await a(t,y),C=[];let k=(null==(i=s.flip)?void 0:i.overflows)||[];if(f&&C.push(T[b]),m){const e=(0,r.w7)(o,l,x);C.push(T[e[0]],T[e[1]])}if(k=[...k,{placement:o,overflows:C}],!C.every(e=>e<=0)){var A,I;const e=((null==(A=s.flip)?void 0:A.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(I=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>
2e.overflows[1]-t.overflows[1])[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var L;const e=null==(L=k.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:L[0];e&&(n=e);break}case"initialPlacement":n=c}if(o!==n)return{reset:{placement:n}}}return{}}}};function c(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function u(e){return r.r_.some(t=>e[t]>=0)}const d=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...o}=(0,r._3)(e,t);switch(i){case"referenceHidden":{const e=c(await a(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:u(e)}}}case"escaped":{const e=c(await a(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:u(e)}}}default:return{}}}}};const f=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:a,placement:s,middlewareData:l}=t,c=await async function(e,t){const{placement:n,platform:i,elements:o}=e,a=await(null==i.isRTL?void 0:i.isRTL(o.floating)),s=(0,r.C0)(n),l=(0,r.Sg)(n),c="y"===(0,r.TV)(n),u=["left","top"].includes(s)?-1:1,d=a&&c?-1:1,f=(0,r._3)(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:p}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof p&&(h="end"===l?-1*p:p),c?{x:h*d,y:m*u}:{x:m*u,y:h*d}}(t,e);return s===(null==(n=l.offset)?void 0:n.placement)&&null!=(i=l.arrow)&&i.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:s}}}}},m=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=(0,r._3)(e,t),d={x:n,y:i},f=await a(t,u),m=(0,r.TV)((0,r.C0)(o)),h=(0,r.PG)(m);let p=d[h],g=d[m];if(s){const e="y"===h?"bottom":"right",t=p+f["y"===h?"top":"left"],n=p-f[e];p=(0,r.qE)(t,p,n)}if(l){const e="y"===m?"bottom":"right",t=g+f["y"===m?"top":"left"],n=g-f[e];g=(0,r.qE)(t,g,n)}const v=c.fn({...t,[h]:p,[m]:g});return{...v,data:{x:v.x-n,y:v.y-i}}}}},h=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:o,rects:a,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=(0,r._3)(e,t),d={x:n,y:i},f=(0,r.TV)(o),m=(0,r.PG)(f);let h=d[m],p=d[f];const g=(0,r._3)(l,t),v="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const e="y"===m?"height":"width",t=a.reference[m]-a.floating[e]+v.mainAxis,n=a.reference[m]+a.reference[e]-v.mainAxis;h<t?h=t:h>n&&(h=n)}if(u){var y,b;const e="y"===m?"width":"height",t=["top","left"].includes((0,r.C0)(o)),n=a.reference[f]-a.floating[e]+(t&&(null==(y=s.offset)?void 0:y[f])||0)+(t?0:v.crossAxis),i=a.reference[f]+a.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[f])||0)-(t?v.crossAxis:0);p<n?p=n:p>i&&(p=i)}return{[m]:h,[f]:p}}}},p=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:i,platform:o,elements:s}=t,{apply:l=()=>{},...c}=(0,r._3)(e,t),u=await a(t,c),d=(0,r.C0)(n),f=(0,r.Sg)(n),m="y"===(0,r.TV)(n),{width:h,height:p}=i.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==o.isRTL?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const y=p-u[g],b=h-u[v],w=!t.middlewareData.shift;let x=y,E=b;if(m){const e=h-u.left-u.right;E=f||w?(0,r.jk)(b,e):e}else{const e=p-u.top-u.bottom;x=f||w?(0,r.jk)(y,e):e}if(w&&!f){const e=(0,r.T9)(u.left,0),t=(0,r.T9)(u.right,0),n=(0,r.T9)(u.top,0),i=(0,r.T9)(u.bottom,0);m?E=h-2*(0!==e||0!==t?e+t:(0,r.T9)(u.left,u.right)):x=p-2*(0!==n||0!==i?n+i:(0,r.T9)(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:x});const S=await o.getDimensions(s.floating);return h!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}}},95615:function(e,t,n){"use strict";n.d(t,{k:function(){return l}});var r=n(74848),i=n(38885),o=n(95495),a=n(31952),s=n(26366);const l=e=>{var t,n,l;const{data:c,error:u,isLoading:d,removeCartItem:f,updateCartItemQuantity:m}=(0,o.gj)(),h=null!==(t=(0,a.t)(null==c?void 0:c.cartItems,c))&&void 0!==t?t:[],{eCommerce:p}=(0,s.N)();return(0,r.jsx)(i.A,Object.assign({},e,{checkoutUrl:p.shopServicePaymentSlug,isDisabled:d,totalSumInclVat:null!==(n=null==c?void 0:c.cartPrice.amount.amountIncludingVat)&&void 0!==n?n:0,originalProductSummaryAmount:null==c||null===(l=c.cartPrice.amountBeforeDiscounts)||void 0===l?void 0:l.amountIncludingVat,products:null!=h?h:[],deleteC
2artItem:e=>f(e.id),updateCartItemQuantity:(e,t)=>m(e.id,t)}))}},97193:function(e,t,n){"use strict";n.d(t,{B1:function(){return C},C0:function(){return m},Dz:function(){return y},Jx:function(){return l},LI:function(){return a},PG:function(){return p},RI:function(){return s},Sg:function(){return h},T9:function(){return o},TV:function(){return v},WJ:function(){return w},_3:function(){return f},bV:function(){return S},jk:function(){return i},lP:function(){return E},nI:function(){return T},qE:function(){return d},r_:function(){return r},sq:function(){return g},w7:function(){return b}});const r=["top","right","bottom","left"],i=Math.min,o=Math.max,a=Math.round,s=Math.floor,l=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function d(e,t,n){return o(e,i(t,n))}function f(e,t){return"function"==typeof e?e(t):e}function m(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function v(e){return["top","bottom"].includes(m(e))?"y":"x"}function y(e){return p(v(e))}function b(e,t,n){void 0===n&&(n=!1);const r=h(e),i=y(e),o=g(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=S(a)),[a,S(a)]}function w(e){const t=S(e);return[x(e),t,x(t)]}function x(e){return e.replace(/start|end/g,e=>u[e])}function E(e,t,n,r){const i=h(e);let o=function(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}(m(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(x)))),o}function S(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function T(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function C(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}},98823:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(94474),i=n(83073),o=n(96540);var a=n(96864),s=n(74848);var l=e=>{let{children:t}=e;const n=(()=>{const[e,t]=(0,o.useState)(),n=(0,i.R)(),a=(0,r.a)();return(0,o.useEffect)(()=>{(()=>{const e=document.getElementById("navbar");t(a&&e?e.clientHeight-1:void 0)})()},[a,n]),e})();return(0,s.jsx)("div",{id:"Layout",style:n?{"--navbar-sticky-bottom-height":n+"px"}:void 0,className:(0,a.TD)(n>0?"navbar-sticky-bottom":void 0),children:t})}},99200:function(e,t,n){var r,i;void 0===(i="function"==typeof(r=function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");var t,n,r;e.no=function(){this.pipeline.reset(),this.pipeline.add(e.no.trimmer,e.no.stopWordFilter,e.no.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.no.stemmer))},e.no.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",e.no.trimmer=e.trimmerSupport.generateTrimmer(e.no.wordCharacters),e.Pipeline.registerFunction(e.no.trimmer,"trimmer-no"),e.no.stemmer=(t=e.stemmerSupport.Among,n=e.stemmerSupport.SnowballProgram,r=new function(){var e,r,i=[new t("a",-1,1),new t("e",-1,1),new t("ede",1,1),new t("ande",1,1),new t("ende",1,1),new t("ane",1,1),new t("ene",1,1),new t("hetene",6,1),new t("erte",1,3),new t("en",-1,1),new t("heten",9,1),new t("ar",-1,1),new t("er",-1,1),new t("heter",12,1),new t("s",-1,2),new t("as",14,1),new t("es",14,1),new t("edes",16,1),new t("endes",16,1),new t("enes",16,1),new t("hetenes",19,1),new t("ens",14,1),new t("hetens",21,1),new t("ers",14,1),new t("ets",14,1),new t("et",-1,1),new t("het",25,1),new t("ert",-1,3),new t("ast",-1,1)],o=[new t("dt",-1,-1),new t("vt",-1,-1)],a=[new t("leg",-1,1),new t("eleg",0,1),new t("ig",-1,1),new t("eig",2,1),new t("lig",2,1),new t("elig",4,1),new t("els",-1,1),new t("lov",-1,1),new t("elov",7,1),new t("slov",7,1),new t("hetslov",9,1)],s=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,48,0,128],l=[119,125,149,1],c=new n;function u(){var t,n=c.cursor+3;if(r=c.limit,0<=n||n<=c.limit){for(e=n;;){if(t=c.cursor,c.in_grouping(s,97,248)){c.cursor=t;break}if(t>=c.limit)return;c.cursor=t+1}for(;!c.out_grouping(s,97,248);){if(c.cursor>=c.limit)return;c.cursor++}(r=c.cursor)<e&&(r=e)}}function d(){var e,t,n;if(c.cursor>=r&&(t=c.limit_backward,c.limit_backward=r,c.ket=c.cursor,e=c.find_among_b(i,29),c.limit_backward=t,e))switch(c.bra=c.cursor,e){case 1:c.slice_del();break;case 2:n=c.limit-c.cursor,c.in_grouping_b(l,98,122)?c.slice_del():(c.cursor=c.limit-n,c.eq_s_b(1,"k")&&c.out_grouping_b(s,97,248)&&c.slice_del());break;case 3:c.slice_from("er")}}function f(){var e,t=c.limit-c.cursor;c.cursor>=r&&(e=c.limit_backward,c.limit_backward=r,c.ket=c.cursor,c.find_among_b(o,2)?(c.bra=c.cursor,c.limit_backward=e,c.cursor=c.limit-t,c.cursor>c.limit_backward&&(c.cursor--,c.bra=c.cursor,c.slice_del())):c.limit_backward=e)}function m(){var e,t;c.cursor>=r&&(t=c.limit_backward,c.limit_backward=r,c.ket=c.cursor,(e=c.find_among_b(a,11))?(c.bra=c.cursor,c.limit_backward=t,1==e&&c.slice_del()):c.limit_backward=t)}this.setCurrent=function(e){c.setCurrent(e)},this.getCurrent=function(){return c.getCurrent()},this.stem=function(){var e=c.cursor;return u(),c.limit_backward=e,c.cursor=c.limit,d(),c.cursor=c.limit,f(),c.cursor=c.limit,m(),!0}},function(e){return"function"==typeof e.update?e.update(function(e){return r.setCurrent(e),r.stem(),r.getCurrent()}):(r.setCurrent(e),r.stem(),r.getCurrent())}),e.Pipeline.registerFunction(e.no.stemmer,"stemmer-no"),e.no.stopWordFilter=e.generateStopWordFilter("alle at av bare begge ble blei bli blir blitt både båe da de deg dei deim deira deires dem den denne der dere deres det dette di din disse ditt du dykk dykkar då eg ein eit eitt eller elles en enn er et ett etter for fordi fra før ha hadde han hans har hennar henne hennes her hjå ho hoe honom hoss hossen hun hva hvem hver hvilke hvilken hvis hvor hvordan hvorfor i ikke ikkje ikkje ingen ingi inkje inn inni ja jeg kan kom korleis korso kun kunne kva kvar kvarhelst kven kvi kvifor man mange me med medan meg meget mellom men mi min mine mitt mot mykje ned no noe noen noka noko nokon nokor nokre nå når og også om opp oss over på samme seg selv si si sia sidan siden sin sine sitt sjøl skal skulle slik so som som somme somt så sånn til um upp ut uten var vart varte ved vere verte vi vil ville vore vors vort vår være være vært å".split(" ")),e.Pipeline.registerFunction(e.no.stopWordFilter,"stopWordFilter-no")}})?r.call(t,n,t,e):r)||(e.exports=i)}}]);
3//# sourceMappingURL=a2bb2e2efa4f8e80776c200c5bfc4590aeaecb87-61805a421a1df8681c96.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.