import{o as et,p as tt,q as rt,r as nt,_ as it,n as p,M as Ae,L as Pe,S as Re,t as at,O as ot,l as st,v as lt,w as ct}from"./index-BxvdAQED.js";import{c as v,g as ut,u as ft,a as dt,b as pt,A as ht,F as mt,P as C}from"./useItemData-D9Y17CN9.js";import*as de from"https://assets.finn.no/npm/react/v18/react.production.min.js";import N from"https://assets.finn.no/npm/react/v18/react.production.min.js";import{B as k,t as vt,u as gt}from"./useAmplitudeToggles-Ju3U33OE.js";import"https://assets.finn.no/npm/react-dom/v18/react-dom.production.js";import"https://assets.finn.no/pkg/@warp-ds/react/v2/warp-react-18.js";import"https://assets.finn.no/pkg/@finn-no/pulse-sdk/v0/client.esm.min.js";import"https://assets.finn.no/pkg/@warp-ds/elements/v2/packages/toast/index.js";/**
 * @remix-run/react v2.12.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */let pe="positions";function yt({getKey:e,...t}){let{isSpaMode:r}=et(),n=tt(),i=rt();nt({getKey:e,storageKey:pe});let l=de.useMemo(()=>{if(!e)return null;let o=e(n,i);return o!==n.key?o:null},[]);if(r)return null;let u=((o,a)=>{if(!window.history.state||!window.history.state.key){let s=Math.random().toString(32).slice(2);window.history.replaceState({key:s},"")}try{let c=JSON.parse(sessionStorage.getItem(o)||"{}")[a||window.history.state.key];typeof c=="number"&&window.scrollTo(0,c)}catch(s){console.error(s),sessionStorage.removeItem(o)}}).toString();return de.createElement("script",it({},t,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${u})(${JSON.stringify(pe)}, ${JSON.stringify(l)})`}}))}var Ne={},K={},Q={};Object.defineProperty(Q,"__esModule",{value:!0});Q.default=_t;var he="html",me="head",I="body",Et=/<([a-zA-Z]+[0-9]?)/,ve=/<head[^]*>/i,ge=/<body[^]*>/i,L=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Y=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},ye=typeof window=="object"&&window.DOMParser;if(typeof ye=="function"){var Tt=new ye,bt="text/html";Y=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),Tt.parseFromString(e,bt)},L=Y}if(typeof document=="object"&&document.implementation){var M=document.implementation.createHTMLDocument();L=function(e,t){if(t){var r=M.documentElement.querySelector(t);return r&&(r.innerHTML=e),M}return M.documentElement.innerHTML=e,M}}var D=typeof document=="object"&&document.createElement("template"),J;D&&D.content&&(J=function(e){return D.innerHTML=e,D.content.childNodes});function _t(e){var t,r,n=e.match(Et),i=n&&n[1]?n[1].toLowerCase():"";switch(i){case he:{var l=Y(e);if(!ve.test(e)){var u=l.querySelector(me);(t=u==null?void 0:u.parentNode)===null||t===void 0||t.removeChild(u)}if(!ge.test(e)){var u=l.querySelector(I);(r=u==null?void 0:u.parentNode)===null||r===void 0||r.removeChild(u)}return l.querySelectorAll(he)}case me:case I:{var o=L(e).querySelectorAll(i);return ge.test(e)&&ve.test(e)?o[0].parentNode.childNodes:o}default:{if(J)return J(e);var u=L(e,I).querySelector(I);return u.childNodes}}}var F={},ee={},te={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function r(n){return n.type===t.Tag||n.type===t.Script||n.type===t.Style}e.isTag=r,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(te);var m={},S=v&&v.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(n[l]=i[l])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),P=v&&v.__assign||function(){return P=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},P.apply(this,arguments)};Object.defineProperty(m,"__esModule",{value:!0});m.cloneNode=m.hasChildren=m.isDocument=m.isDirective=m.isComment=m.isText=m.isCDATA=m.isTag=m.Element=m.Document=m.CDATA=m.NodeWithChildren=m.ProcessingInstruction=m.Comment=m.Text=m.DataNode=m.Node=void 0;var T=te,re=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),ne(this,t)},e}();m.Node=re;var H=function(e){S(t,e);function t(r){var n=e.call(this)||this;return n.data=r,n}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t}(re);m.DataNode=H;var Ie=function(e){S(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=T.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(H);m.Text=Ie;var Me=function(e){S(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=T.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(H);m.Comment=Me;var De=function(e){S(t,e);function t(r,n){var i=e.call(this,n)||this;return i.name=r,i.type=T.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(H);m.ProcessingInstruction=De;var B=function(e){S(t,e);function t(r){var n=e.call(this)||this;return n.children=r,n}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t}(re);m.NodeWithChildren=B;var je=function(e){S(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=T.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(B);m.CDATA=je;var Le=function(e){S(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=T.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(B);m.Document=Le;var Fe=function(e){S(t,e);function t(r,n,i,l){i===void 0&&(i=[]),l===void 0&&(l=r==="script"?T.ElementType.Script:r==="style"?T.ElementType.Style:T.ElementType.Tag);var u=e.call(this,i)||this;return u.name=r,u.attribs=n,u.type=l,u}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var i,l;return{name:n,value:r.attribs[n],namespace:(i=r["x-attribsNamespace"])===null||i===void 0?void 0:i[n],prefix:(l=r["x-attribsPrefix"])===null||l===void 0?void 0:l[n]}})},enumerable:!1,configurable:!0}),t}(B);m.Element=Fe;function He(e){return(0,T.isTag)(e)}m.isTag=He;function Be(e){return e.type===T.ElementType.CDATA}m.isCDATA=Be;function ze(e){return e.type===T.ElementType.Text}m.isText=ze;function Ve(e){return e.type===T.ElementType.Comment}m.isComment=Ve;function Ge(e){return e.type===T.ElementType.Directive}m.isDirective=Ge;function Ue(e){return e.type===T.ElementType.Root}m.isDocument=Ue;function St(e){return Object.prototype.hasOwnProperty.call(e,"children")}m.hasChildren=St;function ne(e,t){t===void 0&&(t=!1);var r;if(ze(e))r=new Ie(e.data);else if(Ve(e))r=new Me(e.data);else if(He(e)){var n=t?W(e.children):[],i=new Fe(e.name,P({},e.attribs),n);n.forEach(function(a){return a.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=P({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=P({},e["x-attribsPrefix"])),r=i}else if(Be(e)){var n=t?W(e.children):[],l=new je(n);n.forEach(function(s){return s.parent=l}),r=l}else if(Ue(e)){var n=t?W(e.children):[],u=new Le(n);n.forEach(function(s){return s.parent=u}),e["x-mode"]&&(u["x-mode"]=e["x-mode"]),r=u}else if(Ge(e)){var o=new De(e.name,e.data);e["x-name"]!=null&&(o["x-name"]=e["x-name"],o["x-publicId"]=e["x-publicId"],o["x-systemId"]=e["x-systemId"]),r=o}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}m.cloneNode=ne;function W(e){for(var t=e.map(function(n){return ne(n,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}(function(e){var t=v&&v.__createBinding||(Object.create?function(o,a,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(a,s);(!d||("get"in d?!a.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(o,c,d)}:function(o,a,s,c){c===void 0&&(c=s),o[c]=a[s]}),r=v&&v.__exportStar||function(o,a){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&t(a,o,s)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var n=te,i=m;r(m,e);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function o(a,s,c){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof s=="function"&&(c=s,s=l),typeof a=="object"&&(s=a,a=void 0),this.callback=a!=null?a:null,this.options=s!=null?s:l,this.elementCB=c!=null?c:null}return o.prototype.onparserinit=function(a){this.parser=a},o.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},o.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},o.prototype.onerror=function(a){this.handleCallback(a)},o.prototype.onclosetag=function(){this.lastNode=null;var a=this.tagStack.pop();this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(a)},o.prototype.onopentag=function(a,s){var c=this.options.xmlMode?n.ElementType.Tag:void 0,d=new i.Element(a,s,void 0,c);this.addNode(d),this.tagStack.push(d)},o.prototype.ontext=function(a){var s=this.lastNode;if(s&&s.type===n.ElementType.Text)s.data+=a,this.options.withEndIndices&&(s.endIndex=this.parser.endIndex);else{var c=new i.Text(a);this.addNode(c),this.lastNode=c}},o.prototype.oncomment=function(a){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=a;return}var s=new i.Comment(a);this.addNode(s),this.lastNode=s},o.prototype.oncommentend=function(){this.lastNode=null},o.prototype.oncdatastart=function(){var a=new i.Text(""),s=new i.CDATA([a]);this.addNode(s),a.parent=s,this.lastNode=a},o.prototype.oncdataend=function(){this.lastNode=null},o.prototype.onprocessinginstruction=function(a,s){var c=new i.ProcessingInstruction(a,s);this.addNode(c)},o.prototype.handleCallback=function(a){if(typeof this.callback=="function")this.callback(a,this.dom);else if(a)throw a},o.prototype.addNode=function(a){var s=this.tagStack[this.tagStack.length-1],c=s.children[s.children.length-1];this.options.withStartIndices&&(a.startIndex=this.parser.startIndex),this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),s.children.push(a),c&&(a.prev=c,c.next=a),a.parent=s,this.lastNode=null},o}();e.DomHandler=u,e.default=u})(ee);var $e={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,r){return t[r.toLowerCase()]=r,t},{})})($e);Object.defineProperty(F,"__esModule",{value:!0});F.formatAttributes=Xe;F.formatDOM=We;var j=ee,xt=$e;function Ot(e){return xt.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function Xe(e){for(var t={},r=0,n=e.length;r<n;r++){var i=e[r];t[i.name]=i.value}return t}function kt(e){e=e.toLowerCase();var t=Ot(e);return t||e}function We(e,t,r){t===void 0&&(t=null);for(var n=[],i,l=0,u=e.length;l<u;l++){var o=e[l];switch(o.nodeType){case 1:{var a=kt(o.nodeName);i=new j.Element(a,Xe(o.attributes)),i.children=We(a==="template"?o.content.childNodes:o.childNodes,i);break}case 3:i=new j.Text(o.nodeValue);break;case 8:i=new j.Comment(o.nodeValue);break;default:continue}var s=n[l-1]||null;s&&(s.next=i),i.parent=t,i.prev=s,i.next=null,n.push(i)}return r&&(i=new j.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r),i.next=n[0]||null,i.parent=t,n.unshift(i),n[1]&&(n[1].prev=n[0])),n}var wt=v&&v.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(K,"__esModule",{value:!0});K.default=Rt;var Ct=wt(Q),At=F,Pt=/<(![a-zA-Z\s]+)>/;function Rt(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(Pt),r=t?t[1]:void 0;return(0,At.formatDOM)((0,Ct.default)(e),null,r)}var z={},b={},V={},Nt=0;V.SAME=Nt;var It=1;V.CAMELCASE=It;V.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};const qe=0,x=1,G=2,U=3,ie=4,Ye=5,Je=6;function Mt(e){return g.hasOwnProperty(e)?g[e]:null}function E(e,t,r,n,i,l,u){this.acceptsBooleans=t===G||t===U||t===ie,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=u}const g={},Dt=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Dt.forEach(e=>{g[e]=new E(e,qe,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{g[e]=new E(e,x,!1,t,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(e=>{g[e]=new E(e,G,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{g[e]=new E(e,G,!1,e,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{g[e]=new E(e,U,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(e=>{g[e]=new E(e,U,!0,e,null,!1,!1)});["capture","download"].forEach(e=>{g[e]=new E(e,ie,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(e=>{g[e]=new E(e,Je,!1,e,null,!1,!1)});["rowSpan","start"].forEach(e=>{g[e]=new E(e,Ye,!1,e.toLowerCase(),null,!1,!1)});const ae=/[\-\:]([a-z])/g,oe=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(ae,oe);g[t]=new E(t,x,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(ae,oe);g[t]=new E(t,x,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(ae,oe);g[t]=new E(t,x,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(e=>{g[e]=new E(e,x,!1,e.toLowerCase(),null,!1,!1)});const jt="xlinkHref";g[jt]=new E("xlinkHref",x,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(e=>{g[e]=new E(e,x,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:Lt,SAME:Ft,possibleStandardNames:Ee}=V,Ht=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Bt=Ht+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",zt=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+Bt+"]*$")),Vt=Object.keys(Ee).reduce((e,t)=>{const r=Ee[t];return r===Ft?e[t]=t:r===Lt?e[t.toLowerCase()]=t:e[t]=r,e},{});b.BOOLEAN=U;b.BOOLEANISH_STRING=G;b.NUMERIC=Ye;b.OVERLOADED_BOOLEAN=ie;b.POSITIVE_NUMERIC=Je;b.RESERVED=qe;b.STRING=x;b.getPropertyInfo=Mt;b.isCustomAttribute=zt;b.possibleStandardNames=Vt;var se={},le={},Te=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Gt=/\n/g,Ut=/^\s*/,$t=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Xt=/^:\s*/,Wt=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,qt=/^[;\s]*/,Yt=/^\s+|\s+$/g,Jt=`
`,be="/",_e="*",O="",Zt="comment",Kt="declaration",Qt=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(h){var f=h.match(Gt);f&&(r+=f.length);var y=h.lastIndexOf(Jt);n=~y?h.length-y:n+h.length}function l(){var h={line:r,column:n};return function(f){return f.position=new u(h),s(),f}}function u(h){this.start=h,this.end={line:r,column:n},this.source=t.source}u.prototype.content=e;function o(h){var f=new Error(t.source+":"+r+":"+n+": "+h);if(f.reason=h,f.filename=t.source,f.line=r,f.column=n,f.source=e,!t.silent)throw f}function a(h){var f=h.exec(e);if(f){var y=f[0];return i(y),e=e.slice(y.length),f}}function s(){a(Ut)}function c(h){var f;for(h=h||[];f=d();)f!==!1&&h.push(f);return h}function d(){var h=l();if(!(be!=e.charAt(0)||_e!=e.charAt(1))){for(var f=2;O!=e.charAt(f)&&(_e!=e.charAt(f)||be!=e.charAt(f+1));)++f;if(f+=2,O===e.charAt(f-1))return o("End of comment missing");var y=e.slice(2,f-2);return n+=2,i(y),e=e.slice(f),n+=2,h({type:Zt,comment:y})}}function _(){var h=l(),f=a($t);if(f){if(d(),!a(Xt))return o("property missing ':'");var y=a(Wt),X=h({type:Kt,property:Se(f[0].replace(Te,O)),value:y?Se(y[0].replace(Te,O)):O});return a(qt),X}}function w(){var h=[];c(h);for(var f;f=_();)f!==!1&&(h.push(f),c(h));return h}return s(),w()};function Se(e){return e?e.replace(Yt,O):O}var er=v&&v.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(le,"__esModule",{value:!0});le.default=rr;var tr=er(Qt);function rr(e,t){var r=null;if(!e||typeof e!="string")return r;var n=(0,tr.default)(e),i=typeof t=="function";return n.forEach(function(l){if(l.type==="declaration"){var u=l.property,o=l.value;i?t(u,o,l):o&&(r=r||{},r[u]=o)}}),r}var $={};Object.defineProperty($,"__esModule",{value:!0});$.camelCase=void 0;var nr=/^--[a-zA-Z0-9-]+$/,ir=/-([a-z])/g,ar=/^[^-]+$/,or=/^-(webkit|moz|ms|o|khtml)-/,sr=/^-(ms)-/,lr=function(e){return!e||ar.test(e)||nr.test(e)},cr=function(e,t){return t.toUpperCase()},xe=function(e,t){return"".concat(t,"-")},ur=function(e,t){return t===void 0&&(t={}),lr(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(sr,xe):e=e.replace(or,xe),e.replace(ir,cr))};$.camelCase=ur;var fr=v&&v.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},dr=fr(le),pr=$;function Z(e,t){var r={};return!e||typeof e!="string"||(0,dr.default)(e,function(n,i){n&&i&&(r[(0,pr.camelCase)(n,t)]=i)}),r}Z.default=Z;var hr=Z;(function(e){var t=v&&v.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=l,e.setStyleProp=o;var r=N,n=t(hr),i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function l(c,d){return c.includes("-")?!i.has(c):!!(d&&typeof d.is=="string")}var u={reactCompat:!0};function o(c,d){if(typeof c=="string"){if(!c.trim()){d.style={};return}try{d.style=(0,n.default)(c,u)}catch{d.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var a=function(c){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(c.name)};e.canTextBeChildOfNode=a;var s=function(c){return c};e.returnFirstArg=s})(se);Object.defineProperty(z,"__esModule",{value:!0});z.default=yr;var A=b,Oe=se,mr=["checked","value"],vr=["input","select","textarea"],gr={reset:!0,submit:!0};function yr(e,t){e===void 0&&(e={});var r={},n=!!(e.type&&gr[e.type]);for(var i in e){var l=e[i];if((0,A.isCustomAttribute)(i)){r[i]=l;continue}var u=i.toLowerCase(),o=ke(u);if(o){var a=(0,A.getPropertyInfo)(o);switch(mr.includes(o)&&vr.includes(t)&&!n&&(o=ke("default"+u)),r[o]=l,a&&a.type){case A.BOOLEAN:r[o]=!0;break;case A.OVERLOADED_BOOLEAN:l===""&&(r[o]=!0);break}continue}Oe.PRESERVE_CUSTOM_ATTRIBUTES&&(r[i]=l)}return(0,Oe.setStyleProp)(e.style,r),r}function ke(e){return A.possibleStandardNames[e]}var ce={},Er=v&&v.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ce,"__esModule",{value:!0});ce.default=Ze;var q=N,Tr=Er(z),R=se,br={cloneElement:q.cloneElement,createElement:q.createElement,isValidElement:q.isValidElement};function Ze(e,t){t===void 0&&(t={});for(var r=[],n=typeof t.replace=="function",i=t.transform||R.returnFirstArg,l=t.library||br,u=l.cloneElement,o=l.createElement,a=l.isValidElement,s=e.length,c=0;c<s;c++){var d=e[c];if(n){var _=t.replace(d,c);if(a(_)){s>1&&(_=u(_,{key:_.key||c})),r.push(i(_,d,c));continue}}if(d.type==="text"){var w=!d.data.trim().length;if(w&&d.parent&&!(0,R.canTextBeChildOfNode)(d.parent)||t.trim&&w)continue;r.push(i(d.data,d,c));continue}var h=d,f={};_r(h)?((0,R.setStyleProp)(h.attribs.style,h.attribs),f=h.attribs):h.attribs&&(f=(0,Tr.default)(h.attribs,h.name));var y=void 0;switch(d.type){case"script":case"style":d.children[0]&&(f.dangerouslySetInnerHTML={__html:d.children[0].data});break;case"tag":d.name==="textarea"&&d.children[0]?f.defaultValue=d.children[0].data:d.children&&d.children.length&&(y=Ze(d.children,t));break;default:continue}s>1&&(f.key=c),r.push(i(o(d.name,f,y),d,c))}return r.length===1?r[0]:r}function _r(e){return R.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,R.isCustomComponent)(e.name,e.attribs)}(function(e){var t=v&&v.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=o;var r=t(K);e.htmlToDOM=r.default;var n=t(z);e.attributesToProps=n.default;var i=t(ce);e.domToReact=i.default;var l=ee;Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return l.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return l.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return l.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return l.Text}});var u={lowerCaseAttributeNames:!1};function o(a,s){if(typeof a!="string")throw new TypeError("First argument must be a string");return a?(0,i.default)((0,r.default)(a,(s==null?void 0:s.htmlparser2)||u),s):[]}})(Ne);const we=ut(Ne),Ke=we.default||we,Sr=e=>{const{children:t,podletsCss:r,podletsJs:n,podiumHead:i,podiumBody:l}=e,{locale:u}=ft();return p.jsxs("html",{lang:u,children:[p.jsxs("head",{children:[p.jsx(xr,{head:i}),p.jsx(Ae,{}),p.jsx(Pe,{}),r.map(o=>p.jsx("link",{href:o.value,media:o.media,rel:o.rel,type:o.type},o.value)),n.map(o=>p.jsx("link",{href:o.value,as:"script",crossOrigin:"anonymous",rel:"preload"},o.value))]}),p.jsxs("body",{children:[t,p.jsx(yt,{}),p.jsx(Re,{}),p.jsx(Or,{body:l}),p.jsx(kr,{podiumBody:l,podletsJs:n})]})]})};function xr({head:e}){return N.useMemo(()=>Ke(e),[e])}function Or({body:e}){return N.useMemo(()=>Ke(e),[e])}function kr({podletsJs:e}){return dt()?p.jsx(p.Fragment,{children:e.map(r=>p.jsx("script",{src:r.value,crossOrigin:"anonymous",defer:r.defer,type:r.type},r.value))}):null}const wr=[{domain:"tori.fi",brand:k.TORI},{domain:"finn.no",brand:k.FINN},{domain:"dba.dk",brand:k.DBA}],Cr=()=>{var e,t;return(t=(e=wr.find(r=>document.location.hostname.includes(r.domain)))==null?void 0:e.brand)!=null?t:k.FINN},Ar={[k.TORI]:{domain:"tori.fi",path:"tori"},[k.FINN]:{domain:"finn.no",path:"finn"},[k.DBA]:{domain:"dba.dk",path:"dba"}},Pr=void 0;function Ce({statusCode:e}){const t=e!=null?e:500;N.useEffect(()=>{vt(t.toString())},[t]);const r=Rr(t),n=t.toString();return p.jsxs("html",{children:[p.jsxs("head",{children:[p.jsx("meta",{charSet:"utf-8"}),p.jsx("title",{children:n}),p.jsx("meta",{name:"viewport",content:"width=device-width,initial-scale=1"}),p.jsx("meta",{name:"robots",content:"noindex"}),p.jsx(Ae,{}),p.jsx(Pe,{})]}),p.jsxs("body",{children:[p.jsx("iframe",{title:n,src:r,style:{position:"fixed",top:"0px",bottom:"0px",right:"0px",width:"100%",border:"none",margin:"0",padding:"0",overflow:"hidden",zIndex:"999999",height:"100%"}}),p.jsx(Re,{})]})]})}function Rr(e){const r=typeof document>"u"?Pr():Cr(),n=Ar[r];return e===404?`https://assets.${n.domain}/pkg/@borealis/error-pages-static/v2/${n.path}/404.html`:`https://assets.${n.domain}/pkg/@borealis/error-pages-static/v2/${n.path}/5xx.html`}const Nr={background:"unset"};function Vr(){var fe;const e=at(),{appConfig:t,isPreview:r,podlets:n,podletsCss:i,podletsJs:l,podiumHead:u,podiumBody:o}=e,{advertisingPodlet:a,broadcast:s,consent:c,footer:d,header:_,loginRefreshPodlet:w}=n,h={podletsCss:i,podletsJs:l,podiumHead:u,podiumBody:o},{amplitudeToggles:f}=gt(),{itemData:y}=pt(),X=((fe=f==null?void 0:f.narrowLayout)==null?void 0:fe.variant)==="challenger",Qe=!y.isWebstore&&!X,ue="ad-start-link";return p.jsx(ht,{...t,userId:t.userId,children:p.jsx(mt,{children:p.jsxs(Sr,{...h,children:[p.jsx(Ir,{id:ue}),p.jsx(C,{content:_}),p.jsx(C,{content:w}),r?null:p.jsx(C,{content:a}),p.jsxs("main",{className:`page-container ${Qe?"page-container--wide":""} pt-10 skiplink-target`,id:ue,style:r?Nr:void 0,children:[p.jsx(C,{content:s}),p.jsx(ot,{})]}),p.jsx(C,{content:c}),p.jsx(C,{content:d})]})})})}function Ir({id:e}){return p.jsx("a",{href:`#${e}`,className:"skiplink",children:st.t({id:"root.goToAd",message:"Go to the ad"})})}function Gr(){const e=lt();return ct(e)?p.jsx(Ce,{statusCode:e.status}):p.jsx(Ce,{})}export{Gr as ErrorBoundary,Vr as default};
