1import{I as Xt,l as it,M as Wt,W as V,E as xe,R as Yt,f as Rt,a9 as pe,T as Se,a4 as Ie,D as Y,a6 as T,u as ye,G as Ne,C as Te,o as Z,c as Ae,v as $,B as J,x as ve,a as we,aq as Ee,F as ke,a7 as _e,a8 as qe}from"./entry.2d9f710c.js";import{u as Be}from"./fetch.a914c4c8.js";import{a as Ce,u as De}from"./useHrefLangs.37f067ec.js";import{x as Le,h as Pe,d as Me,B as tt,r as Fe,f as Vt}from"./decode.10f7ca82.js";import{_ as Re}from"./BxDebugRender.vue.c0bd7950.js";import{_ as Ve}from"./SwCardProduct.vue.9bd1b1f7.js";import{B as Oe}from"./Button.15fe1509.js";import{_ as Ue}from"./Filters.vue.09f53522.js";import{d as $e}from"./useDeepMerge.385d011a.js";import"./nuxt-link.0b41400c.js";import"./useBoxalinoParse.8f473052.js";import"./useGetGtmUserData.958a506a.js";import"./ProductImagePlaceholder.325f4b88.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./star.7ea2e79c.js";import"./accessibilityTranslations.04b4b0aa.js";import"./product.50b73fc6.js";import"./product.742a56a5.js";import"./product.99dae9e0.js";import"./product.cbe3fc5b.js";import"./isRxProduct.c2f62b9c.js";var o;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(o||(o={}));var n;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"})(n||(n={}));function L(e){return e===o.Space||e===o.NewLine||e===o.Tab||e===o.FormFeed||e===o.CarriageReturn}function K(e){return e===o.Slash||e===o.Gt||L(e)}function Ot(e){return e>=o.Zero&&e<=o.Nine}function Ge(e){return e>=o.LowerA&&e<=o.LowerZ||e>=o.UpperA&&e<=o.UpperZ}function He(e){return e>=o.UpperA&&e<=o.UpperF||e>=o.LowerA&&e<=o.LowerF}var C;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(C||(C={}));const w={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class ze{constructor({xmlMode:t=!1,decodeEntities:i=!0},s){this.cbs=s,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=t,this.decodeEntities=i,this.entityTrie=t?Le:Pe}reset(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(t){t===o.Lt||!this.decodeEntities&&this.fastForwardTo(o.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===o.Amp&&(this.state=n.BeforeEntity)}stateSpecialStartSequence(t){const i=this.sequenceIndex===this.currentSequence.length;if(!(i?K(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!i){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===o.Gt||L(t)){const i=this.index-this.currentSequence.length;if(this.sectionStart<i){const s=this.index;this.index=i,this.cbs.ontext(this.sectionStart,i),this.index=s}this.isSpecial=!1,this.sectionStart=i+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===w.TitleEnd?this.decodeEntities&&t===o.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(o.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===o.Lt)}stateCDATASequence(t){t===w.Cdata[this.sequenceIndex]?++this.sequenceIndex===w.Cdata.length&&(this.state=n.InCommentLike,this.currentSequence=w.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=n.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===w.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=n.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!K(t):Ge(t)}startSpecial(t,i){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=i,this.state=n.SpecialStartSequence}stateBeforeTagName(t){if(t===o.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===o.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){const i=t|32;this.sectionStart=this.index,!this.xmlMode&&i===w.TitleEnd[2]?this.startSpecial(w.TitleEnd,3):this.state=!this.xmlMode&&i===w.ScriptEnd[2]?n.BeforeSpecialS:n.InTagName}else t===o.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(t))}stateInTagName(t){K(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){L(t)||(t===o.Gt?this.state=n.Text:(this.state=this.isTagStartChar(t)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===o.Gt||L(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===o.Gt||this.fastForwardTo(o.Gt))&&(this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===o.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):t===o.Slash?this.state=n.InSelfClosingTag:L(t)||(this.state=n.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===o.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):L(t)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===o.Eq||K(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===o.Eq?this.state=n.BeforeAttributeValue:t===o.Slash||t===o.Gt?(this.cbs.onattribend(C.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(t)):L(t)||(this.cbs.onattribend(C.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===o.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):t===o.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):L(t)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,i){t===i||!this.decodeEntities&&this.fastForwardTo(i)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(i===o.DoubleQuote?C.Double:C.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&t===o.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,o.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,o.SingleQuote)}stateInAttributeValueNoQuotes(t){L(t)||t===o.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(C.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===o.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)}stateBeforeDeclaration(t){t===o.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=t===o.Dash?n.BeforeComment:n.InDeclaration}stateInDeclaration(t){(t===o.Gt||this.fastForwardTo(o.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===o.Gt||this.fastForwardTo(o.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===o.Dash?(this.state=n.InCommentLike,this.currentSequence=w.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration}stateInSpecialComment(t){(t===o.Gt||this.fastForwardTo(o.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){const i=t|32;i===w.ScriptEnd[3]?this.startSpecial(w.ScriptEnd,4):i===w.StyleEnd[3]?this.startSpecial(w.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(t))}stateBeforeEntity(t){this.entityExcess=1,this.entityResult=0,t===o.Number?this.state=n.BeforeNumericEntity:t===o.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(t))}stateInNamedEntity(t){if(this.entityExcess+=1,this.trieIndex=Me(this.entityTrie,this.trieCurrent,this.trieIndex+1,t),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];const i=this.trieCurrent&tt.VALUE_LENGTH;if(i){const s=(i>>14)-1;if(!this.allowLegacyEntity()&&t!==o.Semi)this.trieIndex+=s;else{const a=this.index-this.entityExcess+1;a>this.sectionStart&&this.emitPartial(this.sectionStart,a),this.entityResult=this.trieIndex,this.trieIndex+=s,this.entityExcess=0,this.sectionStart=this.index+1,s===0&&this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult===0)return;switch((this.entityTrie[this.entityResult]&tt.VALUE_LENGTH)>>14){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~tt.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(t){(t|32)===o.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(t))}emitNumericEntity(t){const i=this.index-this.entityExcess-1;i+2+ +(this.state===n.InHexEntity)!==this.index&&(i>this.sectionStart&&this.emitPartial(this.sectionStart,i),this.sectionStart=this.index+Number(t),this.emitCodePoint(Fe(this.entityResult))),this.state=this.baseState}stateInNumericEntity(t){t===o.Semi?this.emitNumericEntity(!0):Ot(t)?(this.entityResult=this.entityResult*10+(t-o.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(t){t===o.Semi?this.emitNumericEntity(!0):Ot(t)?(this.entityResult=this.entityResult*16+(t-o.Zero),this.entityExcess++):He(t)?(this.entityResult=this.entityResult*16+((t|32)-o.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case n.Text:{this.stateText(t);break}case n.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case n.InSpecialTag:{this.stateInSpecialTag(t);break}case n.CDATASequence:{this.stateCDATASequence(t);break}case n.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case n.InAttributeName:{this.stateInAttributeName(t);break}case n.InCommentLike:{this.stateInCommentLike(t);break}case n.InSpecialComment:{this.stateInSpecialComment(t);break}case n.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case n.InTagName:{this.stateInTagName(t);break}case n.InClosingTagName:{this.stateInClosingTagName(t);break}case n.BeforeTagName:{this.stateBeforeTagName(t);break}case n.AfterAttributeName:{this.stateAfterAttributeName(t);break}case n.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case n.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case n.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case n.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case n.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case n.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case n.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case n.InDeclaration:{this.stateInDeclaration(t);break}case n.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case n.BeforeComment:{this.stateBeforeComment(t);break}case n.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case n.InNamedEntity:{this.stateInNamedEntity(t);break}case n.BeforeEntity:{this.stateBeforeEntity(t);break}case n.InHexEntity:{this.stateInHexEntity(t);break}case n.InNumericEntity:{this.stateInNumericEntity(t);break}default:this.stateBeforeNumericEntity(t)}this.index++}this.cleanup()}finish(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===w.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===n.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!
11):this.state===n.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InTagName||this.state===n.BeforeAttributeName||this.state===n.BeforeAttributeValue||this.state===n.AfterAttributeName||this.state===n.InAttributeName||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueDq||this.state===n.InAttributeValueNq||this.state===n.InClosingTagName||this.cbs.ontext(this.sectionStart,t)}emitPartial(t,i){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(t,i):this.cbs.ontext(t,i)}emitCodePoint(t){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(t):this.cbs.ontextentity(t)}}const G=new Set(["input","option","optgroup","select","button","datalist","textarea"]),b=new Set(["p"]),Ut=new Set(["thead","tbody"]),$t=new Set(["dd","dt"]),Gt=new Set(["rt","rp"]),je=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",b],["h1",b],["h2",b],["h3",b],["h4",b],["h5",b],["h6",b],["select",G],["input",G],["output",G],["button",G],["datalist",G],["textarea",G],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",$t],["dt",$t],["address",b],["article",b],["aside",b],["blockquote",b],["details",b],["div",b],["dl",b],["fieldset",b],["figcaption",b],["figure",b],["footer",b],["form",b],["header",b],["hr",b],["main",b],["nav",b],["ol",b],["pre",b],["section",b],["table",b],["ul",b],["rt",Gt],["rp",Gt],["tbody",Ut],["tfoot",Ut]]),Qe=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Ht=new Set(["math","svg"]),zt=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),Ze=/\s|\//;class Ke{constructor(t,i={}){var s,a,l,h,g;this.options=i,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.lowerCaseTagNames=(s=i.lowerCaseTags)!==null&&s!==void 0?s:!i.xmlMode,this.lowerCaseAttributeNames=(a=i.lowerCaseAttributeNames)!==null&&a!==void 0?a:!i.xmlMode,this.tokenizer=new((l=i.Tokenizer)!==null&&l!==void 0?l:ze)(this.options,this),(g=(h=this.cbs).onparserinit)===null||g===void 0||g.call(h,this)}ontext(t,i){var s,a;const l=this.getSlice(t,i);this.endIndex=i-1,(a=(s=this.cbs).ontext)===null||a===void 0||a.call(s,l),this.startIndex=i}ontextentity(t){var i,s;const a=this.tokenizer.getSectionStart();this.endIndex=a-1,(s=(i=this.cbs).ontext)===null||s===void 0||s.call(i,Vt(t)),this.startIndex=a}isVoidElement(t){return!this.options.xmlMode&&Qe.has(t)}onopentagname(t,i){this.endIndex=i;let s=this.getSlice(t,i);this.lowerCaseTagNames&&(s=s.toLowerCase()),this.emitOpenTag(s)}emitOpenTag(t){var i,s,a,l;this.openTagStart=this.startIndex,this.tagname=t;const h=!this.options.xmlMode&&je.get(t);if(h)for(;this.stack.length>0&&h.has(this.stack[this.stack.length-1]);){const g=this.stack.pop();(s=(i=this.cbs).onclosetag)===null||s===void 0||s.call(i,g,!0)}this.isVoidElement(t)||(this.stack.push(t),Ht.has(t)?this.foreignContext.push(!0):zt.has(t)&&this.foreignContext.push(!1)),(l=(a=this.cbs).onopentagname)===null||l===void 0||l.call(a,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var i,s;this.startIndex=this.openTagStart,this.attribs&&((s=(i=this.cbs).onopentag)===null||s===void 0||s.call(i,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,i){var s,a,l,h,g,x;this.endIndex=i;let p=this.getSlice(t,i);if(this.lowerCaseTagNames&&(p=p.toLowerCase()),(Ht.has(p)||zt.has(p))&&this.foreignContext.pop(),this.isVoidElement(p))!this.options.xmlMode&&p==="br"&&((a=(s=this.cbs).onopentagname)===null||a===void 0||a.call(s,"br"),(h=(l=this.cbs).onopentag)===null||h===void 0||h.call(l,"br",{},!0),(x=(g=this.cbs).onclosetag)===null||x===void 0||x.call(g,"br",!1));else{const I=this.stack.lastIndexOf(p);if(I!==-1)if(this.cbs.onclosetag){let A=this.stack.length-I;for(;A--;)this.cbs.onclosetag(this.stack.pop(),A!==0)}else this.stack.length=I;else!this.options.xmlMode&&p==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=i+1}onselfclosingtag(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var i,s;const a=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===a&&((s=(i=this.cbs).onclosetag)===null||s===void 0||s.call(i,a,!t),this.stack.pop())}onattribname(t,i){this.startIndex=t;const s=this.getSlice(t,i);this.attribname=this.lowerCaseAttributeNames?s.toLowerCase():s}onattribdata(t,i){this.attribvalue+=this.getSlice(t,i)}onattribentity(t){this.attribvalue+=Vt(t)}
1onattribend(t,i){var s,a;this.endIndex=i,(a=(s=this.cbs).onattribute)===null||a===void 0||a.call(s,this.attribname,this.attribvalue,t===C.Double?'"':t===C.Single?"'":t===C.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){const i=t.search(Ze);let s=i<0?t:t.substr(0,i);return this.lowerCaseTagNames&&(s=s.toLowerCase()),s}ondeclaration(t,i){this.endIndex=i;const s=this.getSlice(t,i);if(this.cbs.onprocessinginstruction){const a=this.getInstructionName(s);this.cbs.onprocessinginstruction(`!${a}`,`!${s}`)}this.startIndex=i+1}onprocessinginstruction(t,i){this.endIndex=i;const s=this.getSlice(t,i);if(this.cbs.onprocessinginstruction){const a=this.getInstructionName(s);this.cbs.onprocessinginstruction(`?${a}`,`?${s}`)}this.startIndex=i+1}oncomment(t,i,s){var a,l,h,g;this.endIndex=i,(l=(a=this.cbs).oncomment)===null||l===void 0||l.call(a,this.getSlice(t,i-s)),(g=(h=this.cbs).oncommentend)===null||g===void 0||g.call(h),this.startIndex=i+1}oncdata(t,i,s){var a,l,h,g,x,p,I,A,k,E;this.endIndex=i;const P=this.getSlice(t,i-s);this.options.xmlMode||this.options.recognizeCDATA?((l=(a=this.cbs).oncdatastart)===null||l===void 0||l.call(a),(g=(h=this.cbs).ontext)===null||g===void 0||g.call(h,P),(p=(x=this.cbs).oncdataend)===null||p===void 0||p.call(x)):((A=(I=this.cbs).oncomment)===null||A===void 0||A.call(I,`[CDATA[${P}]]`),(E=(k=this.cbs).oncommentend)===null||E===void 0||E.call(k)),this.startIndex=i+1}onend(){var t,i;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let s=this.stack.length;s>0;this.cbs.onclosetag(this.stack[--s],!0));}(i=(t=this.cbs).onend)===null||i===void 0||i.call(t)}reset(){var t,i,s,a;(i=(t=this.cbs).onreset)===null||i===void 0||i.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(a=(s=this.cbs).onparserinit)===null||a===void 0||a.call(s,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,i){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let s=this.buffers[0].slice(t-this.bufferOffset,i-this.bufferOffset);for(;i-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),s+=this.buffers[0].slice(0,i-this.bufferOffset);return s}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var i,s;if(this.ended){(s=(i=this.cbs).onerror)===null||s===void 0||s.call(i,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var i,s;if(this.ended){(s=(i=this.cbs).onerror)===null||s===void 0||s.call(i,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}}var m;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(m||(m={}));function Xe(e){return e.type===m.Tag||e.type===m.Script||e.type===m.Style}const We=m.Root,Ye=m.Text,Je=m.Directive,ti=m.Comment,ei=m.Script,ii=m.Style,si=m.Tag,ni=m.CDATA,ai=m.Doctype;class Jt{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return ne(this,t)}}class rt extends Jt{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}}class st extends rt{constructor(){super(...arguments),this.type=m.Text}get nodeType(){return 3}}class te extends rt{constructor(){super(...arguments),this.type=m.Comment}get nodeType(){return 8}}class ee extends rt{constructor(t,i){super(i),this.name=t,this.type=m.Directive}get nodeType(){return 1}}class ot extends Jt{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}}class ie extends ot{constructor(){super(...arguments),this.type=m.CDATA}get nodeType(){return 4}}class nt extends ot{constructor(){super(...arguments),this.type=m.Root}get nodeType(){return 9}}class se extends ot{constructor(t,i,s=[],a=t==="script"?m.Script:t==="style"?m.Style:m.Tag){super(s),this.name=t,this.attribs=i,this.type=a}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var i,s;return{name:t,value:this.attribs[t],namespace:(i=this["x-attribsNamespace"])===null||i===void 0?void 0:i[t],prefix:(s=this["x-attribsPrefix"])===null||s===void 0?void 0:s[t]}})}}function ri(e){return Xe(e)}function oi(e){return e.type===m.CDATA}function li(e){return e.type===m.Text}function ci(e){return e.type===m.Comment}function hi(e){return e.type===m.Directive}function ui(e){return e.type===m.Root}function di(e){return Object.prototype.hasOwnProperty.call(e,"children")}function ne(e,t=!1){let i;if(li(e))i=new st(e.data);else if(ci(e))i=new te(e.data);else if(ri(e)){const s=t?et(e.children):[],a=new se(e.name,{...e.attribs},s);
1s.forEach(l=>l.parent=a),e.namespace!=null&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]={...e["x-attribsPrefix"]}),i=a}else if(oi(e)){const s=t?et(e.children):[],a=new ie(s);s.forEach(l=>l.parent=a),i=a}else if(ui(e)){const s=t?et(e.children):[],a=new nt(s);s.forEach(l=>l.parent=a),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),i=a}else if(hi(e)){const s=new ee(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),i=s}else throw new Error(`Not implemented yet: ${e.type}`);return i.startIndex=e.startIndex,i.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(i.sourceCodeLocation=e.sourceCodeLocation),i}function et(e){const t=e.map(i=>ne(i,!0));for(let i=1;i<t.length;i++)t[i].prev=t[i-1],t[i-1].next=t[i];return t}const jt={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class fi{constructor(t,i,s){this.dom=[],this.root=new nt(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof i=="function"&&(s=i,i=jt),typeof t=="object"&&(i=t,t=void 0),this.callback=t??null,this.options=i??jt,this.elementCB=s??null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new nt(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;const t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,i){const s=this.options.xmlMode?m.Tag:void 0,a=new se(t,i,void 0,s);this.addNode(a),this.tagStack.push(a)}ontext(t){const{lastNode:i}=this;if(i&&i.type===m.Text)i.data+=t,this.options.withEndIndices&&(i.endIndex=this.parser.endIndex);else{const s=new st(t);this.addNode(s),this.lastNode=s}}oncomment(t){if(this.lastNode&&this.lastNode.type===m.Comment){this.lastNode.data+=t;return}const i=new te(t);this.addNode(i),this.lastNode=i}oncommentend(){this.lastNode=null}oncdatastart(){const t=new st(""),i=new ie([t]);this.addNode(i),t.parent=i,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,i){const s=new ee(t,i);this.addNode(s)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){const i=this.tagStack[this.tagStack.length-1],s=i.children[i.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),i.children.push(t),s&&(t.prev=s,s.next=t),t.parent=i,this.lastNode=null}}const Qt=/["&'<>$\x80-\uFFFF]/g,mi=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),gi=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function ae(e){let t="",i=0,s;for(;(s=Qt.exec(e))!==null;){const a=s.index,l=e.charCodeAt(a),h=mi.get(l);h!==void 0?(t+=e.substring(i,a)+h,i=a+1):(t+=`${e.substring(i,a)}&#x${gi(e,a).toString(16)};`,i=Qt.lastIndex+=+((l&64512)===55296))}return t+e.substr(i)}function re(e,t){return function(s){let a,l=0,h="";for(;a=e.exec(s);)l!==a.index&&(h+=s.substring(l,a.index)),h+=t.get(a[0].charCodeAt(0)),l=a.index+1;return h+s.substring(l)}}const bi=re(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),xi=re(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),pi=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Si=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Ii=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function yi(e){return e.replace(/"/g,""")}function Ni(e,t){var i;if(!e)return;const s=((i=t.encodeEntities)!==null&&i!==void 0?i:t.decodeEntities)===!1?yi:t.xmlMode||t.encodeEntities!=="utf8"?ae:bi;return Object.keys(e).map(a=>{var l,h;const g=(l=e[a])!==null&&l!==void 0?l:"";return t.xmlMode==="foreign"&&(a=(h=Si.get(a))!==null&&h!==void 0?h:a),!t.emptyAttrs&&!t.xmlMode&&g===""?a:`${a}="${s(g)}"`}).join(" ")}const Zt=new Set(["area","base","basefont","br","col","command","embed","frame","hr","
1img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function lt(e,t={}){const i="length"in e?e:[e];let s="";for(let a=0;a<i.length;a++)s+=Ti(i[a],t);return s}function Ti(e,t){switch(e.type){case We:return lt(e.children,t);case ai:case Je:return Ei(e);case ti:return qi(e);case ni:return _i(e);case ei:case ii:case si:return wi(e,t);case Ye:return ki(e,t)}}const Ai=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),vi=new Set(["svg","math"]);function wi(e,t){var i;t.xmlMode==="foreign"&&(e.name=(i=pi.get(e.name))!==null&&i!==void 0?i:e.name,e.parent&&Ai.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&vi.has(e.name)&&(t={...t,xmlMode:"foreign"});let s=`<${e.name}`;const a=Ni(e.attribs,t);return a&&(s+=` ${a}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&Zt.has(e.name))?(t.xmlMode||(s+=" "),s+="/>"):(s+=">",e.children.length>0&&(s+=lt(e.children,t)),(t.xmlMode||!Zt.has(e.name))&&(s+=`</${e.name}>`)),s}function Ei(e){return`<${e.data}>`}function ki(e,t){var i;let s=e.data||"";return((i=t.encodeEntities)!==null&&i!==void 0?i:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&Ii.has(e.parent.name))&&(s=t.xmlMode||t.encodeEntities!=="utf8"?ae(s):xi(s)),s}function _i(e){return`<![CDATA[${e.children[0].data}]]>`}function qi(e){return`<!--${e.data}-->`}function Bi(e,t){return lt(e,t)}function Ci(e,t){return di(e)?e.children.map(i=>Bi(i,t)).join(""):""}function Di(e,t){const i=new fi(void 0,t);return new Ke(i,t).end(e),i.root}function Li(){const e=Xt().public.pages,t={};for(const s in e){const a=e[s];for(const l in a)t[a[l]]=s}function i(s){const a=s.replace(/^\/(fr|it|de)(\/|$)/,"/");return t[a]||null}return{resolvePageKey:i}}const oe=["id","products_group_id","sku","title","selected_sales_price","selected_list_price","link","image","content_unit","content_amount","pharmacode","type","description","publishedDate","url","url_key"];function Pi(e){return e.replace(/([:[,]\s*)(0\d+)(?=\s*[,\]}])/g,'$1"$2"')}function Kt(e){return JSON.parse(Pi(e))}function at(e){var a,l,h,g,x,p,I,A,k,E;const t=(((h=(l=(a=e==null?void 0:e.data)==null?void 0:a.default)==null?void 0:l[1])==null?void 0:h.blocks)??[]).filter(P=>{var N;return((N=P.template)==null?void 0:N[0])==="product_item"}),i=((I=(p=(x=(g=e==null?void 0:e.data)==null?void 0:g.default)==null?void 0:x[1])==null?void 0:p["bx-hits"])==null?void 0:I.totalHitCount)??0,s=((E=(k=(A=e==null?void 0:e.data)==null?void 0:A.default)==null?void 0:k[0])==null?void 0:E["bx-facets"])??[];return{blocks:t,totalHitCount:i,facets:s}}function Mi(){const{locale:e}=it(),i=Wt().searchParams.get("_bx_debug")||!1,s=V({}),a=V({}),l=V({}),h=V({}),g={},x={},p=V({}),I=V({}),A=V({});function k(d){return Object.entries(I[d]??{}).filter(([,q])=>q).map(([q,v])=>({field:q,negative:!1,...v}))}async function E(d,q){var F;const v=((F=g[d])==null?void 0:F.filters)??[],B=k(d);return await $fetch("/api/boxalino",{method:"POST",headers:Yt(),body:$e({widget:"navigation",limit:x[d],offset:q,lang:e.value,returnFields:oe,groupBy:"products_group_id",parameters:{debug:i}},{...g[d],limit:x[d],filters:[...v,...B]})})}async function P(d,q){I[d]=q,l[d]=x[d];const v=await E(d,0),{blocks:B,totalHitCount:F,facets:H}=at(v);s[d]=B,a[d]=F,p[d]=H.length?H:p[d]}async function N(d){if(!h[d]||a[d]<=l[d])return;const q=await E(d,l[d]),{blocks:v,totalHitCount:B}=at(q);s[d].push(...v),a[d]=B||a[d],l[d]+=x[d]}const M=xe(()=>Object.keys(h).some(d=>h[d]&&a[d]>l[d]));return{bxProducts:s,bxTotals:a,bxOffsets:l,bxPaginationEnabled:h,bxParsedRequests:g,bxPageSizes:x,bxFacets:p,bxActiveFilters:I,bxShowFilters:A,anyCanLoadMore:M,fetchWidget:E,submitFilters:P,loadMore:N,buildFiltersArray:k}}const Fi={class:"py-8"},Ri="errors/RoutingNotFound",Vi=40,cs=Rt({__name:"[...all]",async setup(e){var St,It,yt,Nt,Tt,At,vt,wt,Et,kt,_t,qt,Bt,Ct,Dt,Lt,Pt,Mt,Ft;let t,i;const s=Xt(),{locale:a,locales:l}=it(),h=l.value.map(r=>r.code);pe(),Se();const g=Wt(),x=g.pathname.split("/").pop(),p=s.channelName,I=g.searchParams.get("_bx_debug")||!1;let A=Ie(a);const k=`content-page-${x}-${a.value}`,E={url:x,lang:A,channel:p,availableLocales:h};function P(){return $fetch("/api/content-page",{method:"POST",body:E})}const{data:N}=([t,i]=Y(()=>Be("/api/content-page",{method:"POST",body:E},"$fRQxySqH8d")),t=await t,i(),t);let M=(yt=(It=(St=N.value)==null?void 0:St.data)==null?void 0:It.document)==null?void 0:yt.published;{M=(At=(Tt=(Nt=N.value)==null?void 0:Nt.data)==null?void 0:Tt.document)==null?void 0:At.published;const r=!((wt=(vt=N.value)==null?void 0:vt.data)!=null&&wt.document);if(M===!0&&sessionStorage.setItem(k,JSON.stringify({published:!0})),!r&&M===!1&&sessionStorage.removeItem(k),r){const c=sessionStorage.getItem(k);if(c&&((Et=JSON.parse(c))==null?void 0:Et.published)===!0){const f=([t,i]=Y(()=>P()),t=await t,i(),t);(kt=f==null?void 0:f.data)!=null&&kt.document&&(N.value=f,M=f.data.document.published)}}}function d(r){var f,S,y,O,_,R;const c=Di(r||""),u=[];for(const D of c.children)if(D.type==="tag"){if(D.name==="section"&&!((S=(f=D.attribs)==null?void 0:f.class)!=null&&S.includes("pimcore_area")))u.push(D);else if(D.name==="div"&&((O=(y=D.attribs)==null?void 0:y.class)!=null&&O.includes("pimcore_area")))for(const U of D.children||[])U.type==="tag"&&U.name==="section"&&!((R=(_=U.attribs)==null?void 0:_.class)!=null&&R.includes("pimcore_area"))&&u.push(U)}return u}function q(r){return r.map(c=>{var u,f,S;return{id:((u=c==null?void 0:c.attribs)==null?void 0:u.id)||null,class:((f=c==null?void 0:c.attribs)==null?void 0:f.class)||null,style:((S=c==null?void 0:c.attribs)==null?void 0:S.style)||null,attribs:c.attribs,children:c.children,innerHTML:Ci(c)}})}let v=[],B=[];if((qt=(_t=N.value)==null?void 0:_t.data)!=null&&qt.document){const r=N.value.data.document.rendered||"";B=d(r),v=q(B),v.title=N.value.data.document.title,v.description=N.value.data.document.description}const F=!!((Ct=(Bt=N.value)==null?void 0:Bt.data)!=null&&Ct.document),{bxProducts:H,bxTotals:j,bxOffsets:X,bxPaginationEnabled:ct,bxParsedRequests:le,bxPageSizes:ht,bxFacets:ut,bxActiveFilters:dt,bxShowFilters:ft,anyCanLoadMore:Oi,fetchWidget:Ui,submitFilters:ce,loadMore:he}=Mi();function mt(r,c=[]){var u,f,S;for(const y of r||[])y.type==="tag"&&(y.name==="section"&&((f=(u=y.attribs)==null?void 0:u.class)!=null&&f.includes("boxalino-request"))&&((S=y.attribs)!=null&&S.id)?c.push(y):mt(y.children,c));return c}async function ue(r){const c=r.filter(u=>{try{return Kt(u.attribs["data-request"]),!0}catch{return!1}});return c.length===0?[]:await Promise.all(c.map(async u=>{const f=Kt(u.attribs["data-request"]),S=u.attribs.id,y=u.attribs["data-pagination"]==="1",O=u.attribs["data-filters"]==="1",_=f.hitCount??f.limit??Vi,R=await $fetch("/api/boxalino",{method:"POST",headers:Yt(),body:{widget:"navigation",offset:0,lang:a.value,returnFields:oe,groupBy:"products_group_id",parameters:{debug:I},...f,limit:_}}),{blocks:D,totalHitCount:U,facets:be}=at(R);return{divId:S,hasPagination:y,showFilters:O,parsedRequest:f,pageSize:_,blocks:D,totalHitCount:U,facets:be}}))}const de=([t,i]=Y(()=>ue(mt(B))),t=await t,i(),t);for(const r of de)H[r.divId]=[...r.blocks],j[r.divId]=r.totalHitCount,X[r.divId]=r.pageSize,ct[r.divId]=r.hasPagination,le[r.divId]=r.parsedRequest,ht[r.divId]=r.pageSize,ut[r.divId]=r.facets,dt[r.divId]={},ft[r.divId]=r.showFilters;const fe=Rt({props:{divId:{type:String,required:!0}},setup(r){const{t:c}=it();return()=>{const u=ct[r.divId]&&j[r.divId]>X[r.divId],f=u?Math.min(j[r.divId]-X[r.divId],ht[r.divId]):0,S=ut[r.divId],y=H[r.divId]??[],O=y.length===1?"grid-cols-[minmax(0,min(70%,16rem))] justify-center sm:justify-start":"grid-cols-2";return T("div",{},[ft[r.divId]&&(S!=null&&S.length)?T("div",{class:"mb-6"},[T(Ue,{filters:S,activeFilters:dt[r.divId],totalProducts:j[r.divId],onUpdate:_=>ce(r.divId,_),excludeMarkFilter:!0})]):null,T("div",{class:`grid grid-flow-row-dense ${O} sm:grid-cols-3 md:grid-cols-[repeat(auto-fill,minmax(max(25%_-_15px,155px),1fr))] xl:grid-cols-[repeat(auto-fill,minmax(max(25%_-_15px,260px),1fr))] gap-3.5 gap-y-8.5 md:gap-5 md:gap-y-5 px-5 md:px-0 mx-auto pb-4 md:pb-0 items-center justify-items-center`},y.map(_=>{var R;return T(Ve,{product:_,key:(R=_==null?void 0:_["bx-hit"])==null?void 0:R.id})})),u?T("div",{class:"flex justify-center mt-8 mb-8"},[T(Oe,{onClick:()=>he(r.divId),class:"lg:px-8 lg:py-4 p-4 rounded-lg bg-primary-800 color-differs inline-flex items-center"},()=>[T("span",{class:"text-sm font-semibold uppercase tracking-0.65"},c("listing.loadMore")),T("span",{class:"text-xs font-semibold ml-1"},`(${f})`)])]):null])}}});function gt(r){var c,u,f;return!r||r.type!=="tag"?!1:r.name==="section"&&((u=(c=r.attribs)==null?void 0:c.class)!=null&&u.includes("boxalino-request"))&&((f=r.attribs)!=null&&f.id)?!0:(r.children||[]).some(gt)}function bt(r){var u,f,S;if(r.type==="text")return r.data;if(r.type!=="tag"&&r.type!=="script"&&r.type!=="style")return null;if(r.name==="section"&&((f=(u=r.attribs)==null?void 0:u.class)!=null&&f.includes("boxalino-request"))&&((S=r.attribs)!=null&&S.id))return T(fe,{divId:r.attribs.id,key:r.attribs.id});const c=(r.children||[]).map(bt).filter(y=>y!=null);return T(r.name,{...r.attribs},c.length?c:void 0)}const W=T("div",{},B.map((r,c)=>gt(r)?bt(r):T("div",v[c])));ye({link:[...F?[{rel:"canonical",href:Ne(a.value)}]:[]],title:v.title,meta:[{name:"description",content:v.description},...F?[]:[{name:"robots",content:"noindex, follow"}]]});const{resolvePageKey:me}=Li(),xt=me("/"+x),Q=(Lt=(Dt=N.value)==null?void 0:Dt.data)==null?void 0:Lt.document,z={};if(Q){const r=h.map(c=>c+"_CH");for(const c of r){const u=Q[c];if(Array.isArray(u)&&u.length>0){const f=(Ft=(Mt=(Pt=u[0])==null?void 0:Pt.target)==null?void 0:Mt.fullpath)==null?void 0:Ft.split("/").pop();f&&(z[c]=f)}}}const pt=Te("contentPageLocaleUrls");if(Q){const r={[a.value]:x};for(const c in z)r[c.replace(/_CH$/,"")]=z[c];pt.value=r}else pt.value=null;if(xt)Ce(xt,"cp");else if(Q){const r={[A]:`cp/${x}`},c={en_CH:"en_GB"};for(const u in z){const f=c[u]??u;r[f]=`cp/${z[u]}`}De(r)}function ge(){return T("div",T(_e(qe(Ri))))}return(r,c)=>{var u;return Z(),Ae(ke,null,[$(I)?(Z(),J(Re,{key:0,data:$(I)},null,8,["data"])):ve("",!0),we("div",Fi,[$(W)&&((u=$(W).children)==null?void 0:u.length)>0&&$(M)===!0?(Z(),J(Ee($(W)),{key:0})):(Z(),J(ge,{key:1}))])],64)}}});
1export{cs as default};
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.